diff --git a/404.html b/404.html index f2243a5..6c371ab 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@ Water Tracker - + diff --git a/assets/BottleSVGDesktop-79f1fc23.js b/assets/BottleSVGDesktop-3f60ea07.js similarity index 99% rename from assets/BottleSVGDesktop-79f1fc23.js rename to assets/BottleSVGDesktop-3f60ea07.js index 01326f6..91edc9f 100644 --- a/assets/BottleSVGDesktop-79f1fc23.js +++ b/assets/BottleSVGDesktop-3f60ea07.js @@ -1,4 +1,4 @@ -import{s,a as d,j as a,J as p}from"./index-27897a98.js";import{F as M,H as n,S as x,c as Z}from"./LoginForm.styled-7fc8d3bf.js";const j=s.section` +import{s,a as d,j as a,J as p}from"./index-ba023575.js";import{F as M,H as n,S as x,c as Z}from"./LoginForm.styled-5680e7a9.js";const j=s.section` height: calc(100vh - 60px); position: relative; diff --git a/assets/ErrorPage-50b30871.js b/assets/ErrorPage-7dfdb422.js similarity index 99% rename from assets/ErrorPage-50b30871.js rename to assets/ErrorPage-7dfdb422.js index 40677c1..3451e42 100644 --- a/assets/ErrorPage-50b30871.js +++ b/assets/ErrorPage-7dfdb422.js @@ -1,4 +1,4 @@ -import{s as t,u as a,r as e,j as Q}from"./index-27897a98.js";const l=t.div` +import{s as t,u as a,r as e,j as Q}from"./index-ba023575.js";const l=t.div` width: 100%; height: 100vh; position: relative; diff --git a/assets/ForgotPassword-adff9757.js b/assets/ForgotPassword-7423a349.js similarity index 62% rename from assets/ForgotPassword-adff9757.js rename to assets/ForgotPassword-7423a349.js index 9d4cb62..63886b3 100644 --- a/assets/ForgotPassword-adff9757.js +++ b/assets/ForgotPassword-7423a349.js @@ -1 +1 @@ -import{d as i,c as m,j as o,aj as d,B as r}from"./index-27897a98.js";import"./LoginForm.styled-7fc8d3bf.js";import{F as p,a as u,b as c,c as l,d as h,e as g}from"./ForgotPassword.styled-7ef57b50.js";const b=()=>{const{register:e,handleSubmit:s}=i(),t=m();function a(n){t(d(n)).unwrap().then(()=>r.info("We have sent an email to reset your password.")).catch(()=>r.error("Oops something went wrong!!"))}return o.jsxs(p,{children:[o.jsx(u,{children:"Forgot password"}),o.jsx(c,{onSubmit:s(a),children:o.jsxs(l,{children:[o.jsx(h,{...e("email"),name:"email",type:"email",placeholder:"Your email",required:!0}),o.jsx(g,{type:"submit",children:"Send"})]})})]})};export{b as default}; +import{d as i,c as m,j as o,aj as d,B as r}from"./index-ba023575.js";import"./LoginForm.styled-5680e7a9.js";import{F as p,a as u,b as c,c as l,d as h,e as g}from"./ForgotPassword.styled-82aba51a.js";const b=()=>{const{register:e,handleSubmit:s}=i(),t=m();function a(n){t(d(n)).unwrap().then(()=>r.info("We have sent an email to reset your password.")).catch(()=>r.error("Oops something went wrong!!"))}return o.jsxs(p,{children:[o.jsx(u,{children:"Forgot password"}),o.jsx(c,{onSubmit:s(a),children:o.jsxs(l,{children:[o.jsx(h,{...e("email"),name:"email",type:"email",placeholder:"Your email",required:!0}),o.jsx(g,{type:"submit",children:"Send"})]})})]})};export{b as default}; diff --git a/assets/ForgotPassword.styled-7ef57b50.js b/assets/ForgotPassword.styled-82aba51a.js similarity index 96% rename from assets/ForgotPassword.styled-7ef57b50.js rename to assets/ForgotPassword.styled-82aba51a.js index c5aebb9..80138f1 100644 --- a/assets/ForgotPassword.styled-7ef57b50.js +++ b/assets/ForgotPassword.styled-82aba51a.js @@ -1,4 +1,4 @@ -import{s as o}from"./index-27897a98.js";const t=o.div` +import{s as o}from"./index-ba023575.js";const t=o.div` display: flex; flex-direction: column; justify-content: center; diff --git a/assets/HomePage-fa163926.js b/assets/HomePage-65adb93a.js similarity index 99% rename from assets/HomePage-fa163926.js rename to assets/HomePage-65adb93a.js index 3acaae9..3aa2293 100644 --- a/assets/HomePage-fa163926.js +++ b/assets/HomePage-65adb93a.js @@ -1,4 +1,4 @@ -var zi=Object.defineProperty;var Hi=(n,r,e)=>r in n?zi(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var E=(n,r,e)=>(Hi(n,typeof r!="symbol"?r+"":r,e),e);import{c as Ie,k as Ne,j as u,a as ke,_ as P,w as Ki,r as w,T as Tn,l as qi,m as Vi,n as Qi,p as Gi,q as Ui,t as Xi,C as Zi,v as Ji,G as ec,x as tc,y as En,z as ee,R as Ur,A as de,D as Qe,E as nc,F as rc,H as x,I as oc,K as So,L as ac,M as La,Q as sc,S as ic,s as N,U as X,V as On,W as cc,X as lc,B as qe,Y as uc,J as Rn,Z as dc,$ as pc,a0 as tn,a1 as fc,a2 as hc,a3 as mc,a4 as gc,a5 as yc,a6 as bc,a7 as Ba,a8 as wc,a9 as xc,aa as Aa,b as lr,ab as Wa,ac as vc,ad as ur,ae as kc,af as Dc,ag as Mc,ah as dr,ai as Sc}from"./index-27897a98.js";const za=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalIsOpen},Ha=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalDeleteOpen},_c=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalAddForm},Cc=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalEditForm},Ka=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.isModalDayNorm},qa=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalId},Pc=n=>n.waterSlice.daysGenStats,Nn=n=>n.waterSlice.waterTodayList,Xr=n=>n.waterSlice.waterPercentageToday,Tc=[{value:"woman",label:"For woman"},{value:"man",label:"For man"}],Va=[{gender:"woman",massRate:"0,03",timeRate:"0,4"},{gender:"man",massRate:"0,04",timeRate:"0,6"}],Qa={hint:"V is the volume of the water norm in liters per day, M is your body weight, T is the time of active sports, or another type of activity commensurate in terms of loads (in the absence of these, you must set 0)",time:"The time of active participation in sports or other activities with a high physical load in hours:",rate:"Calculate your rate:",weight:"Your weight in kilograms:",waterAmount:"The required amount of water in liters per day:",howMuch:"Write down how much water you will drink:"},_o=n=>+n.split(",").join(".");function pr(n,r){const e=n.target.name==="mass"?6:4,t=n.target.value;/^-?[0-9]*\.?[0-9]*$/.test(t)&&r(t.replace(/^0(?=\d)/g,"").slice(0,e))}const Ec=(n,r,e)=>{let t=0;return Va.forEach(s=>{const{gender:a,massRate:i,timeRate:c}=s;e===a&&(t=+n*_o(i)+ +r*_o(c))}),t&&t.toFixed(1)},Zr=()=>{const n=Ie();return e=>{e.target===e.currentTarget&&n(Ne(!1))}},Jr=n=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...n,children:u.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M1 13 13 1M1 1l12 12"})});function Oc(){const{t:n,i18n:r}=ke(),{hint:e,rate:t}=Qa,o=()=>({fontSize:r.language==="uk"&&window.innerWidth<=767?"16px":"18px"});return u.jsxs("div",{children:[u.jsx("div",{children:u.jsx("ul",{children:Va.map(s=>{const{gender:a,massRate:i,timeRate:c}=s;return u.jsx("li",{className:"formula",children:u.jsxs("p",{children:[n(`For ${a}`),":",u.jsx("span",{style:o(),children:` V=(M*${i}) + (T*${c})`})]})},`${a}+${i}`)})})}),u.jsxs("p",{className:"hint",children:[u.jsx("span",{className:"star",children:"*"})," ",n(`${e}`)]}),u.jsx("h3",{children:n(`${t}`)})]})}const Rc={black:"#000",white:"#fff"},At=Rc,Nc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},gt=Nc,jc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yt=jc,Fc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bt=Fc,Ic={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},wt=Ic,$c={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},xt=$c,Yc={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Nt=Yc,Lc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bc=Lc;function Wt(n){let r="https://mui.com/production-error/?code="+n;for(let e=1;e96?Wc:zc},Po=function(r,e,t){var o;if(e){var s=e.shouldForwardProp;o=r.__emotion_forwardProp&&s?function(a){return r.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&t&&(o=r.__emotion_forwardProp),o},Hc=function(r){var e=r.cache,t=r.serialized,o=r.isStringTag;return Gi(e,t,o),Ui(function(){return Xi(e,t,o)}),null},Kc=function n(r,e){var t=r.__emotion_real===r,o=t&&r.__emotion_base||r,s,a;e!==void 0&&(s=e.label,a=e.target);var i=Po(r,e,t),c=i||Co(o),l=!c("as");return function(){var d=arguments,h=t&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var m=d.length,g=1;gr(Qc(o)?e:o):r;return u.jsx(ec,{styles:t})}/** +var zi=Object.defineProperty;var Hi=(n,r,e)=>r in n?zi(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var E=(n,r,e)=>(Hi(n,typeof r!="symbol"?r+"":r,e),e);import{c as Ie,k as Ne,j as u,a as ke,_ as P,w as Ki,r as w,T as Tn,l as qi,m as Vi,n as Qi,p as Gi,q as Ui,t as Xi,C as Zi,v as Ji,G as ec,x as tc,y as En,z as ee,R as Ur,A as de,D as Qe,E as nc,F as rc,H as x,I as oc,K as So,L as ac,M as La,Q as sc,S as ic,s as N,U as X,V as On,W as cc,X as lc,B as qe,Y as uc,J as Rn,Z as dc,$ as pc,a0 as tn,a1 as fc,a2 as hc,a3 as mc,a4 as gc,a5 as yc,a6 as bc,a7 as Ba,a8 as wc,a9 as xc,aa as Aa,b as lr,ab as Wa,ac as vc,ad as ur,ae as kc,af as Dc,ag as Mc,ah as dr,ai as Sc}from"./index-ba023575.js";const za=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalIsOpen},Ha=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalDeleteOpen},_c=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalAddForm},Cc=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalEditForm},Ka=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.isModalDayNorm},qa=n=>{var r;return(r=n.waterSlice.modal)==null?void 0:r.modalId},Pc=n=>n.waterSlice.daysGenStats,Nn=n=>n.waterSlice.waterTodayList,Xr=n=>n.waterSlice.waterPercentageToday,Tc=[{value:"woman",label:"For woman"},{value:"man",label:"For man"}],Va=[{gender:"woman",massRate:"0,03",timeRate:"0,4"},{gender:"man",massRate:"0,04",timeRate:"0,6"}],Qa={hint:"V is the volume of the water norm in liters per day, M is your body weight, T is the time of active sports, or another type of activity commensurate in terms of loads (in the absence of these, you must set 0)",time:"The time of active participation in sports or other activities with a high physical load in hours:",rate:"Calculate your rate:",weight:"Your weight in kilograms:",waterAmount:"The required amount of water in liters per day:",howMuch:"Write down how much water you will drink:"},_o=n=>+n.split(",").join(".");function pr(n,r){const e=n.target.name==="mass"?6:4,t=n.target.value;/^-?[0-9]*\.?[0-9]*$/.test(t)&&r(t.replace(/^0(?=\d)/g,"").slice(0,e))}const Ec=(n,r,e)=>{let t=0;return Va.forEach(s=>{const{gender:a,massRate:i,timeRate:c}=s;e===a&&(t=+n*_o(i)+ +r*_o(c))}),t&&t.toFixed(1)},Zr=()=>{const n=Ie();return e=>{e.target===e.currentTarget&&n(Ne(!1))}},Jr=n=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...n,children:u.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M1 13 13 1M1 1l12 12"})});function Oc(){const{t:n,i18n:r}=ke(),{hint:e,rate:t}=Qa,o=()=>({fontSize:r.language==="uk"&&window.innerWidth<=767?"16px":"18px"});return u.jsxs("div",{children:[u.jsx("div",{children:u.jsx("ul",{children:Va.map(s=>{const{gender:a,massRate:i,timeRate:c}=s;return u.jsx("li",{className:"formula",children:u.jsxs("p",{children:[n(`For ${a}`),":",u.jsx("span",{style:o(),children:` V=(M*${i}) + (T*${c})`})]})},`${a}+${i}`)})})}),u.jsxs("p",{className:"hint",children:[u.jsx("span",{className:"star",children:"*"})," ",n(`${e}`)]}),u.jsx("h3",{children:n(`${t}`)})]})}const Rc={black:"#000",white:"#fff"},At=Rc,Nc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},gt=Nc,jc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yt=jc,Fc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bt=Fc,Ic={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},wt=Ic,$c={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},xt=$c,Yc={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Nt=Yc,Lc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bc=Lc;function Wt(n){let r="https://mui.com/production-error/?code="+n;for(let e=1;e96?Wc:zc},Po=function(r,e,t){var o;if(e){var s=e.shouldForwardProp;o=r.__emotion_forwardProp&&s?function(a){return r.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&t&&(o=r.__emotion_forwardProp),o},Hc=function(r){var e=r.cache,t=r.serialized,o=r.isStringTag;return Gi(e,t,o),Ui(function(){return Xi(e,t,o)}),null},Kc=function n(r,e){var t=r.__emotion_real===r,o=t&&r.__emotion_base||r,s,a;e!==void 0&&(s=e.label,a=e.target);var i=Po(r,e,t),c=i||Co(o),l=!c("as");return function(){var d=arguments,h=t&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var m=d.length,g=1;gr(Qc(o)?e:o):r;return u.jsx(ec,{styles:t})}/** * @mui/styled-engine v5.15.11 * * @license MIT diff --git a/assets/LoginForm.styled-7fc8d3bf.js b/assets/LoginForm.styled-5680e7a9.js similarity index 97% rename from assets/LoginForm.styled-7fc8d3bf.js rename to assets/LoginForm.styled-5680e7a9.js index fe9037d..934bf0a 100644 --- a/assets/LoginForm.styled-7fc8d3bf.js +++ b/assets/LoginForm.styled-5680e7a9.js @@ -1,4 +1,4 @@ -import{s as o,ak as i}from"./index-27897a98.js";const a=o.div` +import{s as o,ak as i}from"./index-ba023575.js";const a=o.div` margin-top: 24px; margin-bottom: 66px; @media only screen and (min-width: 768px) { diff --git a/assets/LoginPage-dfd7deb6.js b/assets/LoginPage-04049d83.js similarity index 88% rename from assets/LoginPage-dfd7deb6.js rename to assets/LoginPage-04049d83.js index f23b693..ee5a2f9 100644 --- a/assets/LoginPage-dfd7deb6.js +++ b/assets/LoginPage-04049d83.js @@ -1 +1 @@ -import{a as q,b as i,r as E,u as L,c as B,d as v,o as M,e as k,f as l,j as e,O as R,P as T,g as V,B as c}from"./index-27897a98.js";import{S as W,L as C,A as D,E as m,a as G,B as I,b as Q,c as $}from"./BottleSVGDesktop-79f1fc23.js";import{L as p,a as h,P as A,b as F}from"./LoginForm.styled-7fc8d3bf.js";const z=()=>{var d,u;const{t:s}=q(),x=i.useMediaQuery({query:"(max-width: 767px)"}),j=i.useMediaQuery({minWidth:768,maxWidth:1279}),g=i.useMediaQuery({query:"(min-width: 1280px)"}),[n,y]=E.useState(!1),w=L(),S=B(),{register:o,handleSubmit:b,formState:{errors:a}}=v({resolver:M(k({email:l().email(s("emailValidation")).matches(/^(?!.*@[^,]*,)/,s("emailPattern")).required(s("emailRequired")),password:l().min(8,s("passwordLength")).max(64).required(s("passwordRequired"))}).required()),mode:"onChange"});function P(t){S(V(t)).unwrap().then(r=>{c.success(`Welcome ${r.user.username}`),w("/home")}).catch(r=>c.error(r))}function f(){y(t=>!t)}return e.jsx(W,{children:e.jsxs(C,{children:[e.jsxs(D,{on:!0,handleSubmit:b,submit:P,errors:a,children:[e.jsxs(p,{children:[s("enteryouremail"),e.jsx(h,{type:"text",placeholder:s("eMail"),name:"email",required:!0,...o("email")}),e.jsx(m,{children:(d=a==null?void 0:a.email)==null?void 0:d.message})]}),e.jsxs(p,{children:[s("enterYourPassword"),e.jsx(h,{type:n?"text":"password",placeholder:s("password"),name:"password",required:!0,...o("password")}),e.jsx(m,{children:(u=a==null?void 0:a.password)==null?void 0:u.message}),e.jsx(A,{type:"button",onClick:f,children:n?e.jsx(R,{}):e.jsx(T,{})})]}),e.jsx(F,{type:"submit",children:s("signIn")})]}),e.jsxs(G,{children:[x&&e.jsx(I,{}),j&&e.jsx(Q,{}),g&&e.jsx($,{})]})]})})};export{z as default}; +import{a as q,b as i,r as E,u as L,c as B,d as v,o as M,e as k,f as l,j as e,O as R,P as T,g as V,B as c}from"./index-ba023575.js";import{S as W,L as C,A as D,E as m,a as G,B as I,b as Q,c as $}from"./BottleSVGDesktop-3f60ea07.js";import{L as p,a as h,P as A,b as F}from"./LoginForm.styled-5680e7a9.js";const z=()=>{var d,u;const{t:s}=q(),x=i.useMediaQuery({query:"(max-width: 767px)"}),j=i.useMediaQuery({minWidth:768,maxWidth:1279}),g=i.useMediaQuery({query:"(min-width: 1280px)"}),[n,y]=E.useState(!1),w=L(),S=B(),{register:o,handleSubmit:b,formState:{errors:a}}=v({resolver:M(k({email:l().email(s("emailValidation")).matches(/^(?!.*@[^,]*,)/,s("emailPattern")).required(s("emailRequired")),password:l().min(8,s("passwordLength")).max(64).required(s("passwordRequired"))}).required()),mode:"onChange"});function P(t){S(V(t)).unwrap().then(r=>{c.success(`Welcome ${r.user.username}`),w("/home")}).catch(r=>c.error(r))}function f(){y(t=>!t)}return e.jsx(W,{children:e.jsxs(C,{children:[e.jsxs(D,{on:!0,handleSubmit:b,submit:P,errors:a,children:[e.jsxs(p,{children:[s("enteryouremail"),e.jsx(h,{type:"text",placeholder:s("eMail"),name:"email",required:!0,...o("email")}),e.jsx(m,{children:(d=a==null?void 0:a.email)==null?void 0:d.message})]}),e.jsxs(p,{children:[s("enterYourPassword"),e.jsx(h,{type:n?"text":"password",placeholder:s("password"),name:"password",required:!0,...o("password")}),e.jsx(m,{children:(u=a==null?void 0:a.password)==null?void 0:u.message}),e.jsx(A,{type:"button",onClick:f,children:n?e.jsx(R,{}):e.jsx(T,{})})]}),e.jsx(F,{type:"submit",children:s("signIn")})]}),e.jsxs(G,{children:[x&&e.jsx(I,{}),j&&e.jsx(Q,{}),g&&e.jsx($,{})]})]})})};export{z as default}; diff --git a/assets/RegistrationPage-ee6affea.js b/assets/RegistrationPage-73a95ce4.js similarity index 92% rename from assets/RegistrationPage-ee6affea.js rename to assets/RegistrationPage-73a95ce4.js index f7f5e8c..6f2d45d 100644 --- a/assets/RegistrationPage-ee6affea.js +++ b/assets/RegistrationPage-73a95ce4.js @@ -1 +1 @@ -import{a as v,b as o,r as O,u as T,c as C,e as V,f as n,h as D,d as G,j as e,O as y,P as q,o as Q,i as W,B as d,g as $}from"./index-27897a98.js";import{S as A,L as F,A as I,E as p,a as U,B as N,b as Y,c as z}from"./BottleSVGDesktop-79f1fc23.js";import{L as l,a as c,P as f,b as H}from"./LoginForm.styled-7fc8d3bf.js";const Z=()=>{var x,w,j;const{t:s}=v(),S=o.useMediaQuery({query:"(max-width: 767px)"}),b=o.useMediaQuery({minWidth:768,maxWidth:1279}),E=o.useMediaQuery({query:"(min-width: 1280px)"}),[t,m]=O.useState(!1),L=T(),u=C(),r={email:{email:s("emailValidation"),matches:s("emailPattern"),required:s("emailRequired")},password:{min:s("passwordLength"),required:s("passwordRequired")},repPassword:{min:s("repPasswordLength"),oneOf:s("repPasswordMatch"),required:s("repPasswordRequired")}},B=V({email:n().email(r.email.email).matches(/^(?!.*@[^,]*,)/,r.email.matches).required(r.email.required),password:n().min(8,r.password.min).required(r.password.required),repPassword:n().min(8,r.repPassword.min).oneOf([D("password")],r.repPassword.oneOf).required(r.repPassword.required)}).required("Required"),{register:i,handleSubmit:M,formState:{errors:a}}=G({resolver:Q(B),mode:"onChange"});function R({email:g,password:P}){u(W({email:g,password:P})).unwrap().then(()=>{d.success("Sign up done!"),u($({email:g,password:P})).unwrap().then(()=>{L("/home")}).catch(k=>{d.error(k)})}).catch(()=>d.error("Ooops... Something went wrong!"))}function h(){m(!t)}return e.jsx(A,{children:e.jsxs(F,{children:[e.jsxs(I,{on:!1,handleSubmit:M,submit:R,errors:a,children:[e.jsxs(l,{children:[s("enteryouremail"),e.jsx(c,{type:"text",placeholder:s("eMail"),name:"email",...i("email")}),e.jsx(p,{children:(x=a==null?void 0:a.email)==null?void 0:x.message})]}),e.jsxs(l,{children:[s("enterYourPassword"),e.jsx(c,{type:t?"text":"password",placeholder:s("password"),name:"password",...i("password")}),e.jsx(p,{children:(w=a==null?void 0:a.password)==null?void 0:w.message}),e.jsx(f,{type:"button",onClick:h,children:t?e.jsx(y,{}):e.jsx(q,{})})]}),e.jsxs(l,{children:[s("repeatpassword"),e.jsx(c,{type:t?"text":"password",placeholder:s("repeatpassword"),name:"repPassword",...i("repPassword")}),e.jsx(p,{children:(j=a==null?void 0:a.repPassword)==null?void 0:j.message}),e.jsx(f,{type:"button",onClick:h,children:t?e.jsx(y,{}):e.jsx(q,{})})]}),e.jsx(H,{type:"submit",children:s("signUp")})]}),e.jsxs(U,{children:[S&&e.jsx(N,{}),b&&e.jsx(Y,{}),E&&e.jsx(z,{})]})]})})};export{Z as default}; +import{a as v,b as o,r as O,u as T,c as C,e as V,f as n,h as D,d as G,j as e,O as y,P as q,o as Q,i as W,B as d,g as $}from"./index-ba023575.js";import{S as A,L as F,A as I,E as p,a as U,B as N,b as Y,c as z}from"./BottleSVGDesktop-3f60ea07.js";import{L as l,a as c,P as f,b as H}from"./LoginForm.styled-5680e7a9.js";const Z=()=>{var x,w,j;const{t:s}=v(),S=o.useMediaQuery({query:"(max-width: 767px)"}),b=o.useMediaQuery({minWidth:768,maxWidth:1279}),E=o.useMediaQuery({query:"(min-width: 1280px)"}),[t,m]=O.useState(!1),L=T(),u=C(),r={email:{email:s("emailValidation"),matches:s("emailPattern"),required:s("emailRequired")},password:{min:s("passwordLength"),required:s("passwordRequired")},repPassword:{min:s("repPasswordLength"),oneOf:s("repPasswordMatch"),required:s("repPasswordRequired")}},B=V({email:n().email(r.email.email).matches(/^(?!.*@[^,]*,)/,r.email.matches).required(r.email.required),password:n().min(8,r.password.min).required(r.password.required),repPassword:n().min(8,r.repPassword.min).oneOf([D("password")],r.repPassword.oneOf).required(r.repPassword.required)}).required("Required"),{register:i,handleSubmit:M,formState:{errors:a}}=G({resolver:Q(B),mode:"onChange"});function R({email:g,password:P}){u(W({email:g,password:P})).unwrap().then(()=>{d.success("Sign up done!"),u($({email:g,password:P})).unwrap().then(()=>{L("/home")}).catch(k=>{d.error(k)})}).catch(()=>d.error("Ooops... Something went wrong!"))}function h(){m(!t)}return e.jsx(A,{children:e.jsxs(F,{children:[e.jsxs(I,{on:!1,handleSubmit:M,submit:R,errors:a,children:[e.jsxs(l,{children:[s("enteryouremail"),e.jsx(c,{type:"text",placeholder:s("eMail"),name:"email",...i("email")}),e.jsx(p,{children:(x=a==null?void 0:a.email)==null?void 0:x.message})]}),e.jsxs(l,{children:[s("enterYourPassword"),e.jsx(c,{type:t?"text":"password",placeholder:s("password"),name:"password",...i("password")}),e.jsx(p,{children:(w=a==null?void 0:a.password)==null?void 0:w.message}),e.jsx(f,{type:"button",onClick:h,children:t?e.jsx(y,{}):e.jsx(q,{})})]}),e.jsxs(l,{children:[s("repeatpassword"),e.jsx(c,{type:t?"text":"password",placeholder:s("repeatpassword"),name:"repPassword",...i("repPassword")}),e.jsx(p,{children:(j=a==null?void 0:a.repPassword)==null?void 0:j.message}),e.jsx(f,{type:"button",onClick:h,children:t?e.jsx(y,{}):e.jsx(q,{})})]}),e.jsx(H,{type:"submit",children:s("signUp")})]}),e.jsxs(U,{children:[S&&e.jsx(N,{}),b&&e.jsx(Y,{}),E&&e.jsx(z,{})]})]})})};export{Z as default}; diff --git a/assets/UpdatePassword-4ee14844.js b/assets/UpdatePassword-45e2c80b.js similarity index 85% rename from assets/UpdatePassword-4ee14844.js rename to assets/UpdatePassword-45e2c80b.js index 4260567..10b1eb7 100644 --- a/assets/UpdatePassword-4ee14844.js +++ b/assets/UpdatePassword-45e2c80b.js @@ -1,2 +1,2 @@ -import{d as u,c as w,al as l,u as m,j as s,am as h,B as a}from"./index-27897a98.js";import{F as g,a as x,b as j,c as r,d as e,e as f}from"./ForgotPassword.styled-7ef57b50.js";const b=()=>{const{register:o,handleSubmit:n}=u(),t=w(),d=l(),p=m();function c({newPassword:i}){t(h({tempCode:d,newPassword:i})).unwrap().then(()=>{a.info(`Your password change succsessful! +import{d as u,c as w,al as l,u as m,j as s,am as h,B as a}from"./index-ba023575.js";import{F as g,a as x,b as j,c as r,d as e,e as f}from"./ForgotPassword.styled-82aba51a.js";const b=()=>{const{register:o,handleSubmit:n}=u(),t=w(),d=l(),p=m();function c({newPassword:i}){t(h({tempCode:d,newPassword:i})).unwrap().then(()=>{a.info(`Your password change succsessful! Please login!`),p("/signin")}).catch(()=>a.error("Oops something went wrong!!"))}return s.jsxs(g,{children:[s.jsx(x,{children:"Update your password"}),s.jsxs(j,{onSubmit:n(c),children:[s.jsxs(r,{children:["New password",s.jsx(e,{...o("newPassword"),name:"newPassword",type:"password",placeholder:"Your password"})]}),s.jsxs(r,{children:["Confirm new password",s.jsx(e,{...o("confPassword"),name:"confPassword",type:"password",placeholder:"Your password"})]}),s.jsx(f,{children:"Update"})]})]})};export{b as default}; diff --git a/assets/WelcomePage-21824cc1.js b/assets/WelcomePage-1b04377f.js similarity index 99% rename from assets/WelcomePage-21824cc1.js rename to assets/WelcomePage-1b04377f.js index 427bd8b..5da3c66 100644 --- a/assets/WelcomePage-21824cc1.js +++ b/assets/WelcomePage-1b04377f.js @@ -1,4 +1,4 @@ -import{J as o,j as a,s as i,N as d,a as s}from"./index-27897a98.js";const p=e=>{const t=o();return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:374,height:278,fill:"none",...e,children:[a.jsx("path",{fill:t.BottleSVG,d:"M186.998 278.001c80.098 0 145.03-3.781 145.03-8.446 0-4.664-64.932-8.446-145.03-8.446-80.097 0-145.03 3.782-145.03 8.446 0 4.665 64.933 8.446 145.03 8.446Z"}),a.jsx("path",{fill:"#407BFF",d:"M102.699 210.592a2.65 2.65 0 0 1 .963-1.71 2.661 2.661 0 0 1 1.879-.581c6.403-.097 12.395 4.417 17.952 9.259 1.235 1.067 2.573 2.172 3.957 1.052.428-.353.741-.826.898-1.357a5.013 5.013 0 0 0 0-2.657 5.803 5.803 0 0 0-1.01-1.977c-2.416-3.171-5.356-4.693-7.742-7.968a28.9 28.9 0 0 1-3.298-6.043c-.748-1.88-2.244-4.917-1.646-7.461.666-3.044 2.947-2.783 4.331-2.365 4.376 1.305 8.46 4.417 12.17 8.289 3.957 4.118 7.54 9.08 11.108 14.011 1.346 1.873 2.767 3.798 4.488 4.477 1.72.679 3.897-.418 4.622-3.119.726-2.701-.127-5.804-.306-8.49a39.137 39.137 0 0 1 .463-9.595c.243-1.674.81-3.286 1.668-4.745 1.93-2.82 4.788-1.828 6.658.306a19.586 19.586 0 0 1 3.261 5.969 68.49 68.49 0 0 1 3.74 18.54c.284 3.917.883 7.998 2.498 11.035 2.611 4.909 7.48 4.521 11.258 1.947 6.575-4.477 11.646-14.594 13-25.904.441-3.686.553-7.67 1.9-10.759 1.174-2.671 4.189-4.477 5.662-1.597.594 1.44.76 3.02.479 4.552a32.248 32.248 0 0 1-1.115 4.476c-.748 2.537-1.496 7.289.524 8.774a2.42 2.42 0 0 0 2.027.224c6.612-1.373 12.761-7.58 16.8-16.242a51.127 51.127 0 0 0 3.336-10.155c.486-2.134.688-4.424 1.227-6.543a11.924 11.924 0 0 1 2.049-4.618c2.574-3.074 8.513-1.627 8.849 4.961.202 3.813-.815 7.543-1.189 11.274-.232 2.327 1.212 2.313 2.289 2.238 5.161-.522 9.724-5.715 13.771-11.117 4.809-6.424 10.135-14.765 16.702-15.011 1.496-.052 3.987.142 4.885 2.447a7.657 7.657 0 0 1 0 4.327c-1.332 5.507-5.236 8.349-8.228 11.072a139.352 139.352 0 0 0-22.089 26.516c-.95 1.493-1.929 3.955-1.024 5.417a1.636 1.636 0 0 0 1.683.746c3.089-.239 5.984-2.686 8.804-4.715 2.82-2.03 6.021-3.805 8.976-2.276a8.033 8.033 0 0 1 3.672 4.969c.528 1.804.613 3.708.247 5.551-1.085 5.066-5.774 7.342-8.355 9.841a86.222 86.222 0 0 0-9.724 11.109c-2.693 3.678-5.236 7.707-7.929 11.318-9.724 12.93-23.188 14.848-35.156 16.347-13.023 1.627-26.075.746-39.023-.962-9.417-1.254-18.7-3.925-27.893-7.096-3.157-1.141-6.291-2.387-9.387-3.864-3.329-1.582-8.228-2.559-9.507-8.789-.27-1.343.044-2.433.935-2.932 2.76-1.567 6.694.529 9.29 1.91 3.583 1.91 6.979 4.633 10.659 6.103a4.89 4.89 0 0 0 3.829.201 2.837 2.837 0 0 0 1.414-1.291 3.43 3.43 0 0 0 .269-2.454 2.92 2.92 0 0 0-.748-1.172 71.201 71.201 0 0 0-23.277-15.832c-2.805-1.201-5.67-2.186-8.37-3.887a18.799 18.799 0 0 1-5.536-5.222c-1.256-2.007-3.276-5.551-2.64-8.752ZM245.768 155.746a3.323 3.323 0 0 1-3.94.623 3.312 3.312 0 0 1-1.448-1.523 3.295 3.295 0 0 1-.237-2.084c2.581-12.497 8.191-21.585 14.863-16.869 4.982 3.514-2.828 13.205-9.238 19.853Z",opacity:.1}),a.jsx("path",{fill:"#407BFF",d:"M227.67 161.58a14.068 14.068 0 0 0 7.249-11.191l5.056-61.44a22.68 22.68 0 0 0-1.183-9.33 22.713 22.713 0 0 0-4.868-8.054L218.343 54.92a9.06 9.06 0 0 1-2.401-6.894l.748-8.998-40.325-3.305-.748 8.998a9.029 9.029 0 0 1-3.493 6.409l-18.102 13.899a22.77 22.77 0 0 0-6.117 7.156 22.716 22.716 0 0 0-2.694 9.012l-5.064 61.44a14.043 14.043 0 0 0 1.122 6.77 14.083 14.083 0 0 0 4.196 5.436 14.078 14.078 0 0 0-5.033 4.686 14.026 14.026 0 0 0-2.207 6.505l-6.456 78.34a14.079 14.079 0 0 0 3.31 10.266 14.15 14.15 0 0 0 9.616 4.932l66.572 5.453a14.147 14.147 0 0 0 10.294-3.294 14.081 14.081 0 0 0 4.943-9.59l6.455-78.34a14.048 14.048 0 0 0-1.105-6.773 14.087 14.087 0 0 0-4.184-5.448Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"m176.377 35.736-.572 6.938 40.316 3.306.571-6.938-40.315-3.306Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"m233.551 73.168-15.581-16.66s-10.046.432-2.244 12.72c6.65 10.394 18.236 8.775 17.825 3.94Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M131.777 244.344a14.074 14.074 0 0 0 3.31 10.266 14.15 14.15 0 0 0 9.616 4.932l66.572 5.453a14.142 14.142 0 0 0 10.294-3.294 14.081 14.081 0 0 0 4.942-9.59l-94.734-7.767Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M230.639 74.609a18.265 18.265 0 0 1 4.862 13.96l-5.056 61.447a9.605 9.605 0 0 1-1.517 4.432 9.634 9.634 0 0 1-3.435 3.193l-5.887 3.253 5.273 4.171a9.59 9.59 0 0 1 3.636 8.326l-6.455 78.339a9.609 9.609 0 0 1-3.363 6.542 9.656 9.656 0 0 1-7.012 2.262l-66.572-5.454a9.673 9.673 0 0 1-6.584-3.35 9.626 9.626 0 0 1-2.28-7.013l6.455-78.339a9.623 9.623 0 0 1 4.944-7.633l5.887-3.253-5.236-4.17a9.582 9.582 0 0 1-3.635-8.327l5.064-61.44c.21-2.537.948-5.001 2.168-7.237a18.307 18.307 0 0 1 4.915-5.745c5.984-3.857 21.692 5.745 40.086 7.252 18.393 1.507 29.897-3.149 33.742-1.216Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M196.858 75.833c-18.385-1.492-34.108-11.117-40.092-7.26 10.472 5.745 22.44 9.304 39.801 10.729 17.361 1.425 34.071-4.693 34.071-4.693-3.845-1.932-15.394 2.738-33.78 1.224ZM140.153 142.637a14.05 14.05 0 0 0 1.122 6.769 14.089 14.089 0 0 0 4.197 5.437l82.197 6.715a14.106 14.106 0 0 0 5.036-4.687 14.051 14.051 0 0 0 2.212-6.505l-94.764-7.729Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"m217.533 28.038-40.203-3.307a3.055 3.055 0 0 0-3.299 2.79l-.801 9.757a3.056 3.056 0 0 0 2.799 3.292l40.203 3.307a3.055 3.055 0 0 0 3.299-2.79l.801-9.757a3.056 3.056 0 0 0-2.799-3.292Z"}),a.jsx("path",{fill:"#fff",d:"M178.068 39.064a.377.377 0 0 1-.327-.258.376.376 0 0 1-.017-.145l.942-11.803a.374.374 0 0 1 .404-.343.374.374 0 0 1 .344.403l-.972 11.795a.376.376 0 0 1-.374.351ZM185.361 39.662a.375.375 0 0 1-.344-.403l.972-11.796a.38.38 0 0 1 .544-.303.358.358 0 0 1 .183.218c.014.047.019.096.014.145l-.995 11.796a.379.379 0 0 1-.374.343ZM192.646 40.288a.375.375 0 0 1-.344-.403l.972-11.795a.392.392 0 0 1 .404-.343.366.366 0 0 1 .256.13.373.373 0 0 1 .088.272l-.972 11.796a.373.373 0 0 1-.404.343ZM199.943 40.855a.377.377 0 0 1-.327-.258.376.376 0 0 1-.017-.145l.972-11.795a.38.38 0 0 1 .544-.304.36.36 0 0 1 .183.219.372.372 0 0 1 .014.144l-.973 11.796a.344.344 0 0 1-.037.14.355.355 0 0 1-.215.186.363.363 0 0 1-.144.017ZM207.197 41.452a.375.375 0 0 1-.344-.403l.972-11.796a.398.398 0 0 1 .404-.343.377.377 0 0 1 .328.258c.015.047.02.096.016.145l-.972 11.796a.37.37 0 0 1-.257.329.371.371 0 0 1-.147.014ZM214.521 42.048a.375.375 0 0 1-.344-.403l.943-11.803a.38.38 0 0 1 .403-.343.374.374 0 0 1 .337.403l-.965 11.803a.379.379 0 0 1-.374.343Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M152.593 122.113c-1.137-6.275-10.3-5.827-10.824.522l-1.645 20.002a14.04 14.04 0 0 0 1.121 6.77 14.078 14.078 0 0 0 4.197 5.436 14.045 14.045 0 0 0-7.241 11.192l-6.455 78.339a14.077 14.077 0 0 0 3.31 10.267 14.15 14.15 0 0 0 9.615 4.931l17.204 1.41a12.43 12.43 0 0 0 10.202-4.018 12.359 12.359 0 0 0 3.023-10.516l-22.507-124.335Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M218.79 224.69a7.284 7.284 0 0 1-1.562 3.939 7.316 7.316 0 0 1-3.493 2.41 7.318 7.318 0 0 1-7.814-2.227 7.283 7.283 0 0 1-.929-8.054 7.303 7.303 0 0 1 2.952-3.044 7.339 7.339 0 0 1 4.151-.895 7.333 7.333 0 0 1 4.98 2.554 7.294 7.294 0 0 1 1.715 5.317ZM195.534 196.437a5.153 5.153 0 0 1-1.103 2.788 5.188 5.188 0 0 1-5.476 1.756 5.169 5.169 0 0 1-3.722-4.375 5.15 5.15 0 0 1 .538-2.949 5.174 5.174 0 0 1 5.029-2.786 5.19 5.19 0 0 1 3.52 1.807 5.162 5.162 0 0 1 1.214 3.759ZM173.897 133.549a5.176 5.176 0 0 1-4.924-2.959 5.15 5.15 0 0 1 .853-5.671 5.185 5.185 0 0 1 7.99.399 5.156 5.156 0 0 1-1.956 7.745 5.197 5.197 0 0 1-1.963.486ZM188.012 102.684a3.674 3.674 0 0 1-3.496-2.088 3.649 3.649 0 0 1 .6-4.021 3.668 3.668 0 0 1 3.955-.982 3.66 3.66 0 0 1 2.42 3.271 3.664 3.664 0 0 1-3.479 3.82ZM210.72 174.121a2.13 2.13 0 0 1-1.479 1.853 2.142 2.142 0 0 1-2.778-1.788 2.133 2.133 0 0 1 2.298-2.37 2.137 2.137 0 0 1 1.959 2.305Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"M171.975 232.495h-.359a4.35 4.35 0 0 1-2.992-1.492 4.264 4.264 0 0 1-1.01-3.149 4.327 4.327 0 0 1 2.909-3.727 4.341 4.341 0 0 1 4.591 1.157 4.316 4.316 0 0 1 .784 4.659 4.336 4.336 0 0 1-3.961 2.589l.038-.037Zm0-8.088a3.752 3.752 0 0 0-2.336.832 3.724 3.724 0 0 0 .785 6.285 3.748 3.748 0 0 0 4.542-1.122 3.73 3.73 0 0 0-.112-4.667 3.75 3.75 0 0 0-2.565-1.313l-.314-.015ZM218.237 145.189h-.261a3.155 3.155 0 0 1-2.141-1.097 3.137 3.137 0 0 1-.739-2.283 3.137 3.137 0 0 1 1.102-2.138 3.152 3.152 0 0 1 4.434.362c.54.633.806 1.454.74 2.283a3.173 3.173 0 0 1-1.1 2.141 3.144 3.144 0 0 1-2.035.732Zm-2.58-3.35a2.583 2.583 0 0 0 2.883 2.752 2.597 2.597 0 0 0 2.002-1.386 2.566 2.566 0 0 0 .162-1.97 2.594 2.594 0 0 0-.492-.881 2.551 2.551 0 0 0-1.795-.836 2.6 2.6 0 0 0-1.886.601 2.56 2.56 0 0 0-.904 1.757l.03-.037ZM169.907 79.04h-.112a1.497 1.497 0 0 1-1.347-1.582 1.494 1.494 0 0 1 1.843-1.354 1.498 1.498 0 0 1 1.124 1.193 1.495 1.495 0 0 1-1.471 1.75l-.037-.008Zm-.905-1.538a.903.903 0 0 0 1.487.76.896.896 0 0 0 .278-.963.906.906 0 0 0-1.139-.588.896.896 0 0 0-.626.791ZM202.984 117.68h-.314a3.75 3.75 0 0 1-2.561-1.308 3.72 3.72 0 0 1 1.65-5.939 3.747 3.747 0 0 1 3.957 1.007 3.722 3.722 0 0 1-.7 5.642 3.746 3.746 0 0 1-2.039.613l.007-.015Zm0-6.938a3.166 3.166 0 0 0-2.057.746 3.192 3.192 0 0 0-1.122 2.163 3.182 3.182 0 0 0 1.199 2.752 3.192 3.192 0 0 0 2.96.538 3.183 3.183 0 0 0 2.095-2.153 3.186 3.186 0 0 0-.629-2.935 3.153 3.153 0 0 0-2.176-1.111h-.27Z",opacity:.7}),a.jsx("path",{fill:"#fff",d:"m233.669 150.299 4.832-58.59a2.852 2.852 0 0 0-1.549-2.777 2.87 2.87 0 0 0-1.076-.305 2.864 2.864 0 0 0-2.784 1.54 2.854 2.854 0 0 0-.305 1.072l-4.833 58.59a11.788 11.788 0 0 1-1.86 5.467 11.834 11.834 0 0 1-4.236 3.934l-2.939 1.634 2.64 2.081a11.857 11.857 0 0 1 3.537 4.571 11.817 11.817 0 0 1 .951 5.695l-6.455 78.34c-.389 4.7-3.351 6.991-7.518 8.818a1.313 1.313 0 0 0-.618.576 1.299 1.299 0 0 0 .264 1.574c.213.196.485.317.773.342 3.14.256 6.254-.742 8.656-2.775a11.845 11.845 0 0 0 4.158-8.065l6.455-78.34a11.81 11.81 0 0 0-4.488-10.266l-2.641-2.089 2.94-1.626a11.848 11.848 0 0 0 4.233-3.936 11.807 11.807 0 0 0 1.863-5.465Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M311.31 241.352c-.808-3.656-10.891-1.492-12.978-1.156a61.072 61.072 0 0 0-11.848 3.409c-4.211 1.649-9.103 4.074-13.464 1.567-2.521-1.447 6.231-4.305 7.024-4.596a64.003 64.003 0 0 0 10.726-4.909c1.384-.821 4.062-2.783 2.91-4.775-.958-1.649-4.391-1.492-6.478-1.239a77.264 77.264 0 0 0-18.468 4.619 182.874 182.874 0 0 0-16.95 7.737 21.875 21.875 0 0 1-6.874 2.469c-2.633.373-5.857-.186-6.896-1.641-1.04-1.455.299-3.156.606-4.618a7.835 7.835 0 0 0-.517-5.223 5.515 5.515 0 0 0-2.431-2.552c-2.849-1.492-7.158-.94-10.023.239a16.464 16.464 0 0 0-5.004 3.298 20.127 20.127 0 0 0-5.894 10.109 9.393 9.393 0 0 1-3.965 6.021c-4.009 2.694-11.354 2.537-16.972 1.186-9.806-2.32-17.286-7.744-19.089-13.869-.875-2.918-1.301-5.969-5.236-7.111-2.543-.746-7.869-.223-6.732 2.985a9.976 9.976 0 0 0 1.601 2.417c1.04 1.365 2.147 3.939-.942 4.768a9.611 9.611 0 0 1-3.045.149c-9.933-.664-19.074-3.969-24.998-8.625a20.099 20.099 0 0 1-4.832-5.469c-.703-1.156-.957-2.402-1.728-3.544a6.865 6.865 0 0 0-2.992-2.484c-3.815-1.634-12.776-.784-13.404 2.798-.337 1.94.875 4.043 1.496 5.886.111.233.138.497.075.746-.18.47-.89.605-1.496.642-8.011.53-15.783-2.574-22.508-5.812-7.12-3.432-14.96-7.901-24.856-7.953a19.233 19.233 0 0 0-6.066.694c-.5.132-.964.372-1.361.701a1.737 1.737 0 0 0-.33 1.925 4.475 4.475 0 0 0 1.392 1.656c2.992 2.432 7.18 3.417 11.003 4.671a188.172 188.172 0 0 1 32.747 14.138c1.055.589 2.925 1.955 1.444 2.984-1.481 1.03-4.488.366-6.26.075-3.217-.522-6.306-1.358-9.44-2.141-4.144-1.045-8.976-1.992-13.464-1.127-2.372.455-4.488 1.425-5.603 2.738a2.58 2.58 0 0 0-.479 2.985c1.541 2.738 8.565 3.917 12.402 5.222a125.348 125.348 0 0 1 14.384 5.917c3.987 1.969 7.69 4.126 11.729 6.058 14.429 6.901 34.58 7.789 52.599 8.461 19.56.746 39.21.112 58.718-.97 14.212-.791 28.162-2.351 42.09-4.186 4.002-.522 7.981-1.164 11.968-1.708a75.099 75.099 0 0 0 11.968-2.366 10.115 10.115 0 0 0 3.852-1.924c1.07-.993 1.407-2.291-.508-2.664-4.01-.798-8.138.112-12.058.821a233.36 233.36 0 0 0-13.075 2.783c-1.969.523-3.967.93-5.984 1.216a15.069 15.069 0 0 1-6.066-.388c-.644-.202-1.347-.56-1.384-1.127-.038-.567.501-.925 1.055-1.141 8.07-3.194 16.643-5.223 25.274-7.088 5.857-1.269 11.819-2.044 17.721-3.037 5.378-.903 11.048-1.111 15.708-4.514a5.366 5.366 0 0 0 2.064-2.484 2.974 2.974 0 0 0 .142-1.649ZM79.847 211.143c-2.191-6.215-10-17.22-11.646-10.722-.883 3.649 11.646 10.722 11.646 10.722ZM275.961 223.378c4.174-3.797 9.38-6.057 10.053-2.715.628 3.163-10.053 2.715-10.053 2.715ZM104.718 193.177c-2.857-1.493-5.086-3.887-3.411-4.887 1.676-1 3.411 4.887 3.411 4.887Z",opacity:.3}),a.jsx("defs",{children:a.jsx("clipPath",{id:"a",children:a.jsx("path",{fill:"#fff",d:"M0 0h374v278H0z"})})})]})},h=e=>{const t=o();return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:402,height:352,fill:"none",...e,children:[a.jsx("path",{fill:t.BottleSVG,d:"M200.87 352.008c110.938 0 200.87-5.25 200.87-11.727 0-6.476-89.932-11.726-200.87-11.726C89.933 328.555 0 333.805 0 340.281c0 6.477 89.933 11.727 200.87 11.727Z"}),a.jsx("path",{fill:"#407BFF",d:"M84.113 258.411a3.679 3.679 0 0 1 3.936-3.18c8.869-.135 17.167 6.133 24.864 12.856 1.71 1.481 3.564 3.015 5.481 1.461a3.86 3.86 0 0 0 1.243-1.886 6.952 6.952 0 0 0 0-3.688 8.066 8.066 0 0 0-1.398-2.745c-3.347-4.403-7.418-6.516-10.723-11.064a40.187 40.187 0 0 1-4.569-8.391c-1.036-2.61-3.108-6.827-2.279-10.359.922-4.227 4.082-3.864 5.998-3.284 6.061 1.813 11.718 6.133 16.856 11.509 5.481 5.719 10.443 12.608 15.385 19.455 1.865 2.6 3.833 5.273 6.216 6.216 2.383.942 5.397-.58 6.402-4.33 1.005-3.751-.176-8.06-.425-11.789a54.5 54.5 0 0 1 .643-13.323 18.15 18.15 0 0 1 2.31-6.588c2.673-3.916 6.63-2.538 9.22.425a27.201 27.201 0 0 1 4.517 8.287 95.252 95.252 0 0 1 5.18 25.743c.394 5.439 1.223 11.105 3.461 15.322 3.615 6.816 10.36 6.277 15.591 2.703 9.107-6.215 16.131-20.262 18.006-35.967.611-5.118.767-10.65 2.632-14.938 1.626-3.709 5.801-6.216 7.842-2.217a11.279 11.279 0 0 1 .663 6.319 44.72 44.72 0 0 1-1.544 6.215c-1.036 3.523-2.072 10.122.726 12.183a3.34 3.34 0 0 0 2.807.311c9.158-1.906 17.674-10.525 23.269-22.552a71.204 71.204 0 0 0 4.62-14.1c.674-2.962.953-6.143 1.699-9.085a16.569 16.569 0 0 1 2.839-6.412c3.564-4.268 11.79-2.258 12.256 6.889.28 5.293-1.129 10.473-1.647 15.653-.322 3.232 1.678 3.211 3.17 3.108 7.148-.726 13.468-7.936 19.073-15.436 6.661-8.919 14.037-20.501 23.133-20.843 2.072-.072 5.522.197 6.766 3.398a10.66 10.66 0 0 1 0 6.008c-1.845 7.646-7.252 11.593-11.396 15.374a193.371 193.371 0 0 0-30.594 36.817c-1.315 2.072-2.672 5.49-1.419 7.521a2.27 2.27 0 0 0 2.331 1.036c4.279-.332 8.288-3.73 12.194-6.547 3.906-2.818 8.34-5.284 12.432-3.16a11.134 11.134 0 0 1 5.087 6.899c.731 2.505.848 5.148.341 7.708-1.502 7.034-7.997 10.193-11.572 13.664a119.753 119.753 0 0 0-13.468 15.425c-3.729 5.107-7.252 10.701-10.981 15.715-13.468 17.953-32.116 20.615-48.692 22.697-18.037 2.259-36.115 1.036-54.048-1.336-13.044-1.74-25.9-5.449-38.633-9.852-4.372-1.585-8.713-3.315-13.002-5.366-4.61-2.196-11.396-3.553-13.167-12.203-.373-1.865.062-3.377 1.295-4.072 3.823-2.175 9.272.736 12.867 2.652 4.962 2.652 9.666 6.434 14.763 8.474a6.747 6.747 0 0 0 5.304.28 3.934 3.934 0 0 0 1.958-1.792 4.774 4.774 0 0 0 .373-3.408 4.067 4.067 0 0 0-1.036-1.627 98.578 98.578 0 0 0-32.24-21.982c-3.885-1.668-7.853-3.036-11.593-5.398a26.072 26.072 0 0 1-7.666-7.251c-1.74-2.787-4.538-7.707-3.657-12.152ZM282.268 182.26a4.588 4.588 0 0 1-7.79-4.144c3.574-17.352 11.344-29.97 20.585-23.423 6.9 4.88-3.916 18.336-12.795 27.567Z",opacity:.1}),a.jsx("path",{fill:"#407BFF",d:"M257.198 190.361a19.559 19.559 0 0 0 10.039-15.539l7.003-85.31a31.564 31.564 0 0 0-8.381-24.137l-21.58-23.112a12.6 12.6 0 0 1-3.326-9.572l1.036-12.493-55.85-4.59-1.036 12.494a12.52 12.52 0 0 1-1.481 4.96A12.524 12.524 0 0 1 180.264 37l-25.071 19.3a31.59 31.59 0 0 0-12.204 22.448l-7.014 85.309a19.553 19.553 0 0 0 7.366 16.948 19.516 19.516 0 0 0-10.028 15.539l-8.941 108.774a19.58 19.58 0 0 0 17.902 21.102l92.204 7.572a19.571 19.571 0 0 0 14.259-4.573 19.58 19.58 0 0 0 6.845-13.317l8.94-108.774a19.54 19.54 0 0 0-7.324-16.968Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"m186.154 15.628-.792 9.633 55.839 4.59.792-9.633-55.839-4.59Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"m265.341 67.602-21.58-23.132s-13.914.6-3.108 17.663c9.21 14.43 25.257 12.182 24.688 5.47Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M124.382 305.277a19.58 19.58 0 0 0 17.902 21.102l92.204 7.573a19.561 19.561 0 0 0 21.103-17.891l-131.209-10.784Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M261.311 69.602a25.383 25.383 0 0 1 6.734 19.382l-7.004 85.32a13.344 13.344 0 0 1-6.858 10.587l-8.153 4.517 7.304 5.791a13.326 13.326 0 0 1 5.035 11.561l-8.941 108.773a13.351 13.351 0 0 1-14.369 12.224l-92.204-7.573a13.362 13.362 0 0 1-9.119-4.652 13.38 13.38 0 0 1-3.158-9.737l8.941-108.773a13.337 13.337 0 0 1 6.848-10.598l8.153-4.516-7.252-5.791a13.341 13.341 0 0 1-5.035-11.561l7.014-85.31a25.382 25.382 0 0 1 9.811-18.025c8.288-5.356 30.044 7.977 55.519 10.07 25.475 2.092 41.409-4.372 46.734-1.69Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M214.525 71.3c-25.465-2.071-47.242-15.435-55.53-10.079 14.504 7.977 31.08 12.918 55.126 14.897 24.045 1.979 47.189-6.516 47.189-6.516-5.325-2.683-21.32 3.802-46.785 1.699ZM135.986 164.058a19.553 19.553 0 0 0 7.366 16.948l113.846 9.324a19.559 19.559 0 0 0 10.039-15.539l-131.251-10.733Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M243.16 4.94 187.478.348a4.235 4.235 0 0 0-4.569 3.875l-1.111 13.546a4.24 4.24 0 0 0 3.877 4.57l55.683 4.593a4.234 4.234 0 0 0 4.569-3.875l1.11-13.546a4.24 4.24 0 0 0-3.877-4.57Z"}),a.jsx("path",{fill:"#fff",d:"M188.501 20.25a.522.522 0 0 1-.454-.358.529.529 0 0 1-.023-.202l1.306-16.388a.52.52 0 1 1 1.036.083l-1.347 16.378a.52.52 0 0 1-.518.487ZM198.601 21.079a.519.519 0 0 1-.476-.56l1.347-16.378a.529.529 0 0 1 .559-.477.504.504 0 0 1 .447.36c.02.064.026.132.019.2l-1.378 16.378a.528.528 0 0 1-.518.477ZM208.692 21.949a.517.517 0 0 1-.476-.56l1.346-16.378a.54.54 0 0 1 .56-.476.517.517 0 0 1 .476.56l-1.346 16.377a.533.533 0 0 1-.181.355.518.518 0 0 1-.379.122ZM218.793 22.736a.521.521 0 0 1-.454-.358.529.529 0 0 1-.023-.201l1.347-16.378a.529.529 0 0 1 .559-.477.514.514 0 0 1 .352.181.52.52 0 0 1 .096.178c.019.065.026.133.019.2l-1.347 16.378a.507.507 0 0 1-.549.477ZM228.843 23.565a.517.517 0 0 1-.477-.56l1.347-16.378a.55.55 0 0 1 .559-.476.522.522 0 0 1 .454.358.53.53 0 0 1 .023.201l-1.347 16.378a.52.52 0 0 1-.178.358.506.506 0 0 1-.381.119ZM238.985 24.393a.517.517 0 0 1-.476-.559l1.305-16.388a.529.529 0 0 1 .559-.477.517.517 0 0 1 .467.56l-1.337 16.388a.527.527 0 0 1-.518.476Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M153.214 135.56c-1.574-8.712-14.265-8.091-14.991.725l-2.279 27.773a19.553 19.553 0 0 0 7.366 16.948 19.508 19.508 0 0 0-10.028 15.539l-8.941 108.774a19.583 19.583 0 0 0 17.902 21.102l23.828 1.957A17.193 17.193 0 0 0 180.2 322.8a17.173 17.173 0 0 0 4.188-14.602L153.214 135.56Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M244.9 277.991a10.138 10.138 0 0 1-7 8.815 10.127 10.127 0 0 1-10.824-3.093 10.12 10.12 0 0 1-1.287-11.182 10.137 10.137 0 0 1 9.839-5.469 10.138 10.138 0 0 1 9.272 10.929ZM212.691 238.76a7.166 7.166 0 0 1-4.951 6.241 7.171 7.171 0 0 1-7.66-2.187 7.163 7.163 0 0 1-.911-7.914 7.165 7.165 0 0 1 2.896-2.99 7.158 7.158 0 0 1 8.944 1.631 7.178 7.178 0 0 1 1.682 5.219ZM182.719 151.441a7.173 7.173 0 0 1-6.82-4.109 7.174 7.174 0 0 1 1.182-7.874 7.168 7.168 0 0 1 11.066.555 7.18 7.18 0 0 1 1.4 3.917 7.198 7.198 0 0 1-.413 2.771 7.17 7.17 0 0 1-6.415 4.74ZM202.269 108.584a5.08 5.08 0 0 1-5.274-5.817 5.077 5.077 0 1 1 8.779 4.16 5.077 5.077 0 0 1-3.505 1.657ZM233.722 207.775a2.967 2.967 0 0 1-2.049 2.573 2.961 2.961 0 0 1-2.345-5.409 2.964 2.964 0 0 1 1.68-.365 2.97 2.97 0 0 1 2.714 3.201Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"M180.057 288.826h-.497a6.002 6.002 0 0 1-2.279-.621 6.005 6.005 0 0 1-1.865-1.45 5.948 5.948 0 0 1-1.399-4.372 5.996 5.996 0 0 1 4.029-5.175 5.998 5.998 0 1 1 1.959 11.67l.052-.052Zm0-11.229a5.18 5.18 0 0 0-2.148 9.881 5.18 5.18 0 0 0 6.137-8.037 5.178 5.178 0 0 0-3.554-1.823l-.435-.021ZM244.134 167.601h-.363a4.362 4.362 0 0 1-3.989-4.692 4.365 4.365 0 0 1 4.704-3.989 4.359 4.359 0 0 1 3.988 4.693 4.41 4.41 0 0 1-1.523 2.973 4.336 4.336 0 0 1-2.817 1.015Zm-3.575-4.651a3.59 3.59 0 0 0 1.952 3.457 3.58 3.58 0 0 0 3.943-.463 3.591 3.591 0 0 0 1.255-2.442 3.577 3.577 0 0 0-.84-2.614 3.545 3.545 0 0 0-2.487-1.16 3.57 3.57 0 0 0-3.481 1.929 3.579 3.579 0 0 0-.383 1.345l.041-.052ZM177.197 75.755h-.155a2.073 2.073 0 0 1-1.452-3.308 2.072 2.072 0 1 1 1.659 3.318l-.052-.01Zm-1.253-2.134a1.247 1.247 0 0 0 .678 1.215 1.252 1.252 0 0 0 1.766-1.497 1.255 1.255 0 0 0-1.577-.816 1.248 1.248 0 0 0-.736.624 1.247 1.247 0 0 0-.131.474ZM223.01 129.406h-.435a5.169 5.169 0 0 1-3.548-1.816 5.185 5.185 0 0 1-1.208-3.798 5.181 5.181 0 0 1 10.269-.399 5.177 5.177 0 0 1-5.089 6.034l.011-.021Zm0-9.634a4.386 4.386 0 0 0-2.849 1.036 4.434 4.434 0 0 0-1.554 3.004 4.414 4.414 0 0 0 1.66 3.822 4.424 4.424 0 0 0 6.131-6.318 4.373 4.373 0 0 0-3.015-1.544h-.373Z",opacity:.7}),a.jsx("path",{fill:"#fff",d:"m265.506 174.697 6.693-81.352a3.973 3.973 0 0 0-2.146-3.855 3.969 3.969 0 0 0-1.491-.423 3.956 3.956 0 0 0-4.278 3.626l-6.693 81.352a16.406 16.406 0 0 1-8.443 13.053l-4.072 2.268 3.657 2.891a16.438 16.438 0 0 1 6.216 14.254l-8.94 108.773c-.539 6.527-4.642 9.707-10.412 12.245a1.815 1.815 0 0 0-1.047 1.954 1.815 1.815 0 0 0 1.627 1.506 16.462 16.462 0 0 0 17.747-15.052l8.94-108.773a16.43 16.43 0 0 0-6.216-14.255l-3.657-2.9 4.072-2.259a16.43 16.43 0 0 0 8.443-13.053Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M373.043 301.123c-1.119-5.076-15.084-2.072-17.974-1.606a84.378 84.378 0 0 0-16.411 4.735c-5.832 2.289-12.608 5.656-18.648 2.175-3.491-2.01 8.63-5.977 9.728-6.381a88.655 88.655 0 0 0 14.857-6.817c1.916-1.139 5.625-3.864 4.03-6.63-1.326-2.289-6.082-2.072-8.972-1.719a106.767 106.767 0 0 0-25.579 6.412 253.093 253.093 0 0 0-23.476 10.743 30.272 30.272 0 0 1-9.521 3.429c-3.646.518-8.111-.259-9.552-2.279-1.44-2.02.415-4.382.84-6.413a10.897 10.897 0 0 0-.715-7.251 7.651 7.651 0 0 0-3.367-3.543c-3.947-2.072-9.915-1.306-13.883.331a22.79 22.79 0 0 0-6.93 4.579 27.967 27.967 0 0 0-8.164 14.037 13.067 13.067 0 0 1-5.491 8.36c-5.553 3.74-15.726 3.522-23.507 1.647-13.582-3.222-23.942-10.753-26.438-19.258-1.213-4.05-1.803-8.287-7.252-9.872-3.523-1.036-10.899-.311-9.324 4.143a13.81 13.81 0 0 0 2.217 3.357c1.44 1.896 2.973 5.469-1.306 6.619a13.267 13.267 0 0 1-4.216.208c-13.758-.922-26.418-5.512-34.623-11.976a27.884 27.884 0 0 1-6.693-7.593c-.974-1.606-1.326-3.336-2.393-4.921a9.511 9.511 0 0 0-4.144-3.45c-5.284-2.268-17.695-1.087-18.565 3.885-.466 2.694 1.212 5.615 2.072 8.174.154.322.19.689.103 1.036-.248.652-1.233.839-2.072.89-11.095.736-21.86-3.573-31.173-8.069-9.863-4.766-20.72-10.971-34.426-11.044a26.575 26.575 0 0 0-8.402.964 4.945 4.945 0 0 0-1.886.974 2.409 2.409 0 0 0-.456 2.672 6.214 6.214 0 0 0 1.927 2.3c4.144 3.377 9.946 4.745 15.24 6.485a260.386 260.386 0 0 1 45.356 19.631c1.46.818 4.05 2.714 2 4.144-2.052 1.429-6.216.507-8.672.103-4.455-.725-8.733-1.885-13.074-2.973-5.74-1.45-12.432-2.766-18.648-1.564-3.284.632-6.216 1.979-7.76 3.802a3.583 3.583 0 0 0-.663 4.144c2.134 3.802 11.862 5.438 17.177 7.251a173.397 173.397 0 0 1 19.922 8.215c5.522 2.735 10.65 5.729 16.245 8.412 19.984 9.582 47.894 10.815 72.851 11.747 27.092 1.036 54.308.156 81.326-1.346 19.684-1.098 39.006-3.263 58.296-5.812 5.543-.725 11.054-1.616 16.576-2.372a103.9 103.9 0 0 0 16.576-3.284 14.002 14.002 0 0 0 5.336-2.673c1.481-1.378 1.947-3.18-.705-3.698-5.553-1.108-11.272.155-16.7 1.14a321.616 321.616 0 0 0-18.11 3.864 70.84 70.84 0 0 1-8.288 1.688 20.827 20.827 0 0 1-8.402-.539c-.89-.279-1.864-.777-1.916-1.564-.052-.787.694-1.284 1.461-1.585 11.178-4.434 23.051-7.251 35.006-9.841 8.112-1.761 16.369-2.839 24.543-4.216 7.449-1.254 15.302-1.544 21.756-6.268a7.438 7.438 0 0 0 2.859-3.45 4.14 4.14 0 0 0 .197-2.289ZM52.464 259.178c-3.036-8.629-13.852-23.909-16.13-14.886-1.223 5.065 16.13 14.886 16.13 14.886ZM324.082 276.167c5.781-5.273 12.991-8.411 13.924-3.771.87 4.392-13.924 3.771-13.924 3.771ZM86.91 234.232c-3.957-2.072-7.045-5.397-4.724-6.785 2.32-1.388 4.724 6.785 4.724 6.785Z",opacity:.3})]})},r=i.svg` +import{J as o,j as a,s as i,N as d,a as s}from"./index-ba023575.js";const p=e=>{const t=o();return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:374,height:278,fill:"none",...e,children:[a.jsx("path",{fill:t.BottleSVG,d:"M186.998 278.001c80.098 0 145.03-3.781 145.03-8.446 0-4.664-64.932-8.446-145.03-8.446-80.097 0-145.03 3.782-145.03 8.446 0 4.665 64.933 8.446 145.03 8.446Z"}),a.jsx("path",{fill:"#407BFF",d:"M102.699 210.592a2.65 2.65 0 0 1 .963-1.71 2.661 2.661 0 0 1 1.879-.581c6.403-.097 12.395 4.417 17.952 9.259 1.235 1.067 2.573 2.172 3.957 1.052.428-.353.741-.826.898-1.357a5.013 5.013 0 0 0 0-2.657 5.803 5.803 0 0 0-1.01-1.977c-2.416-3.171-5.356-4.693-7.742-7.968a28.9 28.9 0 0 1-3.298-6.043c-.748-1.88-2.244-4.917-1.646-7.461.666-3.044 2.947-2.783 4.331-2.365 4.376 1.305 8.46 4.417 12.17 8.289 3.957 4.118 7.54 9.08 11.108 14.011 1.346 1.873 2.767 3.798 4.488 4.477 1.72.679 3.897-.418 4.622-3.119.726-2.701-.127-5.804-.306-8.49a39.137 39.137 0 0 1 .463-9.595c.243-1.674.81-3.286 1.668-4.745 1.93-2.82 4.788-1.828 6.658.306a19.586 19.586 0 0 1 3.261 5.969 68.49 68.49 0 0 1 3.74 18.54c.284 3.917.883 7.998 2.498 11.035 2.611 4.909 7.48 4.521 11.258 1.947 6.575-4.477 11.646-14.594 13-25.904.441-3.686.553-7.67 1.9-10.759 1.174-2.671 4.189-4.477 5.662-1.597.594 1.44.76 3.02.479 4.552a32.248 32.248 0 0 1-1.115 4.476c-.748 2.537-1.496 7.289.524 8.774a2.42 2.42 0 0 0 2.027.224c6.612-1.373 12.761-7.58 16.8-16.242a51.127 51.127 0 0 0 3.336-10.155c.486-2.134.688-4.424 1.227-6.543a11.924 11.924 0 0 1 2.049-4.618c2.574-3.074 8.513-1.627 8.849 4.961.202 3.813-.815 7.543-1.189 11.274-.232 2.327 1.212 2.313 2.289 2.238 5.161-.522 9.724-5.715 13.771-11.117 4.809-6.424 10.135-14.765 16.702-15.011 1.496-.052 3.987.142 4.885 2.447a7.657 7.657 0 0 1 0 4.327c-1.332 5.507-5.236 8.349-8.228 11.072a139.352 139.352 0 0 0-22.089 26.516c-.95 1.493-1.929 3.955-1.024 5.417a1.636 1.636 0 0 0 1.683.746c3.089-.239 5.984-2.686 8.804-4.715 2.82-2.03 6.021-3.805 8.976-2.276a8.033 8.033 0 0 1 3.672 4.969c.528 1.804.613 3.708.247 5.551-1.085 5.066-5.774 7.342-8.355 9.841a86.222 86.222 0 0 0-9.724 11.109c-2.693 3.678-5.236 7.707-7.929 11.318-9.724 12.93-23.188 14.848-35.156 16.347-13.023 1.627-26.075.746-39.023-.962-9.417-1.254-18.7-3.925-27.893-7.096-3.157-1.141-6.291-2.387-9.387-3.864-3.329-1.582-8.228-2.559-9.507-8.789-.27-1.343.044-2.433.935-2.932 2.76-1.567 6.694.529 9.29 1.91 3.583 1.91 6.979 4.633 10.659 6.103a4.89 4.89 0 0 0 3.829.201 2.837 2.837 0 0 0 1.414-1.291 3.43 3.43 0 0 0 .269-2.454 2.92 2.92 0 0 0-.748-1.172 71.201 71.201 0 0 0-23.277-15.832c-2.805-1.201-5.67-2.186-8.37-3.887a18.799 18.799 0 0 1-5.536-5.222c-1.256-2.007-3.276-5.551-2.64-8.752ZM245.768 155.746a3.323 3.323 0 0 1-3.94.623 3.312 3.312 0 0 1-1.448-1.523 3.295 3.295 0 0 1-.237-2.084c2.581-12.497 8.191-21.585 14.863-16.869 4.982 3.514-2.828 13.205-9.238 19.853Z",opacity:.1}),a.jsx("path",{fill:"#407BFF",d:"M227.67 161.58a14.068 14.068 0 0 0 7.249-11.191l5.056-61.44a22.68 22.68 0 0 0-1.183-9.33 22.713 22.713 0 0 0-4.868-8.054L218.343 54.92a9.06 9.06 0 0 1-2.401-6.894l.748-8.998-40.325-3.305-.748 8.998a9.029 9.029 0 0 1-3.493 6.409l-18.102 13.899a22.77 22.77 0 0 0-6.117 7.156 22.716 22.716 0 0 0-2.694 9.012l-5.064 61.44a14.043 14.043 0 0 0 1.122 6.77 14.083 14.083 0 0 0 4.196 5.436 14.078 14.078 0 0 0-5.033 4.686 14.026 14.026 0 0 0-2.207 6.505l-6.456 78.34a14.079 14.079 0 0 0 3.31 10.266 14.15 14.15 0 0 0 9.616 4.932l66.572 5.453a14.147 14.147 0 0 0 10.294-3.294 14.081 14.081 0 0 0 4.943-9.59l6.455-78.34a14.048 14.048 0 0 0-1.105-6.773 14.087 14.087 0 0 0-4.184-5.448Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"m176.377 35.736-.572 6.938 40.316 3.306.571-6.938-40.315-3.306Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"m233.551 73.168-15.581-16.66s-10.046.432-2.244 12.72c6.65 10.394 18.236 8.775 17.825 3.94Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M131.777 244.344a14.074 14.074 0 0 0 3.31 10.266 14.15 14.15 0 0 0 9.616 4.932l66.572 5.453a14.142 14.142 0 0 0 10.294-3.294 14.081 14.081 0 0 0 4.942-9.59l-94.734-7.767Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M230.639 74.609a18.265 18.265 0 0 1 4.862 13.96l-5.056 61.447a9.605 9.605 0 0 1-1.517 4.432 9.634 9.634 0 0 1-3.435 3.193l-5.887 3.253 5.273 4.171a9.59 9.59 0 0 1 3.636 8.326l-6.455 78.339a9.609 9.609 0 0 1-3.363 6.542 9.656 9.656 0 0 1-7.012 2.262l-66.572-5.454a9.673 9.673 0 0 1-6.584-3.35 9.626 9.626 0 0 1-2.28-7.013l6.455-78.339a9.623 9.623 0 0 1 4.944-7.633l5.887-3.253-5.236-4.17a9.582 9.582 0 0 1-3.635-8.327l5.064-61.44c.21-2.537.948-5.001 2.168-7.237a18.307 18.307 0 0 1 4.915-5.745c5.984-3.857 21.692 5.745 40.086 7.252 18.393 1.507 29.897-3.149 33.742-1.216Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M196.858 75.833c-18.385-1.492-34.108-11.117-40.092-7.26 10.472 5.745 22.44 9.304 39.801 10.729 17.361 1.425 34.071-4.693 34.071-4.693-3.845-1.932-15.394 2.738-33.78 1.224ZM140.153 142.637a14.05 14.05 0 0 0 1.122 6.769 14.089 14.089 0 0 0 4.197 5.437l82.197 6.715a14.106 14.106 0 0 0 5.036-4.687 14.051 14.051 0 0 0 2.212-6.505l-94.764-7.729Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"m217.533 28.038-40.203-3.307a3.055 3.055 0 0 0-3.299 2.79l-.801 9.757a3.056 3.056 0 0 0 2.799 3.292l40.203 3.307a3.055 3.055 0 0 0 3.299-2.79l.801-9.757a3.056 3.056 0 0 0-2.799-3.292Z"}),a.jsx("path",{fill:"#fff",d:"M178.068 39.064a.377.377 0 0 1-.327-.258.376.376 0 0 1-.017-.145l.942-11.803a.374.374 0 0 1 .404-.343.374.374 0 0 1 .344.403l-.972 11.795a.376.376 0 0 1-.374.351ZM185.361 39.662a.375.375 0 0 1-.344-.403l.972-11.796a.38.38 0 0 1 .544-.303.358.358 0 0 1 .183.218c.014.047.019.096.014.145l-.995 11.796a.379.379 0 0 1-.374.343ZM192.646 40.288a.375.375 0 0 1-.344-.403l.972-11.795a.392.392 0 0 1 .404-.343.366.366 0 0 1 .256.13.373.373 0 0 1 .088.272l-.972 11.796a.373.373 0 0 1-.404.343ZM199.943 40.855a.377.377 0 0 1-.327-.258.376.376 0 0 1-.017-.145l.972-11.795a.38.38 0 0 1 .544-.304.36.36 0 0 1 .183.219.372.372 0 0 1 .014.144l-.973 11.796a.344.344 0 0 1-.037.14.355.355 0 0 1-.215.186.363.363 0 0 1-.144.017ZM207.197 41.452a.375.375 0 0 1-.344-.403l.972-11.796a.398.398 0 0 1 .404-.343.377.377 0 0 1 .328.258c.015.047.02.096.016.145l-.972 11.796a.37.37 0 0 1-.257.329.371.371 0 0 1-.147.014ZM214.521 42.048a.375.375 0 0 1-.344-.403l.943-11.803a.38.38 0 0 1 .403-.343.374.374 0 0 1 .337.403l-.965 11.803a.379.379 0 0 1-.374.343Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M152.593 122.113c-1.137-6.275-10.3-5.827-10.824.522l-1.645 20.002a14.04 14.04 0 0 0 1.121 6.77 14.078 14.078 0 0 0 4.197 5.436 14.045 14.045 0 0 0-7.241 11.192l-6.455 78.339a14.077 14.077 0 0 0 3.31 10.267 14.15 14.15 0 0 0 9.615 4.931l17.204 1.41a12.43 12.43 0 0 0 10.202-4.018 12.359 12.359 0 0 0 3.023-10.516l-22.507-124.335Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M218.79 224.69a7.284 7.284 0 0 1-1.562 3.939 7.316 7.316 0 0 1-3.493 2.41 7.318 7.318 0 0 1-7.814-2.227 7.283 7.283 0 0 1-.929-8.054 7.303 7.303 0 0 1 2.952-3.044 7.339 7.339 0 0 1 4.151-.895 7.333 7.333 0 0 1 4.98 2.554 7.294 7.294 0 0 1 1.715 5.317ZM195.534 196.437a5.153 5.153 0 0 1-1.103 2.788 5.188 5.188 0 0 1-5.476 1.756 5.169 5.169 0 0 1-3.722-4.375 5.15 5.15 0 0 1 .538-2.949 5.174 5.174 0 0 1 5.029-2.786 5.19 5.19 0 0 1 3.52 1.807 5.162 5.162 0 0 1 1.214 3.759ZM173.897 133.549a5.176 5.176 0 0 1-4.924-2.959 5.15 5.15 0 0 1 .853-5.671 5.185 5.185 0 0 1 7.99.399 5.156 5.156 0 0 1-1.956 7.745 5.197 5.197 0 0 1-1.963.486ZM188.012 102.684a3.674 3.674 0 0 1-3.496-2.088 3.649 3.649 0 0 1 .6-4.021 3.668 3.668 0 0 1 3.955-.982 3.66 3.66 0 0 1 2.42 3.271 3.664 3.664 0 0 1-3.479 3.82ZM210.72 174.121a2.13 2.13 0 0 1-1.479 1.853 2.142 2.142 0 0 1-2.778-1.788 2.133 2.133 0 0 1 2.298-2.37 2.137 2.137 0 0 1 1.959 2.305Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"M171.975 232.495h-.359a4.35 4.35 0 0 1-2.992-1.492 4.264 4.264 0 0 1-1.01-3.149 4.327 4.327 0 0 1 2.909-3.727 4.341 4.341 0 0 1 4.591 1.157 4.316 4.316 0 0 1 .784 4.659 4.336 4.336 0 0 1-3.961 2.589l.038-.037Zm0-8.088a3.752 3.752 0 0 0-2.336.832 3.724 3.724 0 0 0 .785 6.285 3.748 3.748 0 0 0 4.542-1.122 3.73 3.73 0 0 0-.112-4.667 3.75 3.75 0 0 0-2.565-1.313l-.314-.015ZM218.237 145.189h-.261a3.155 3.155 0 0 1-2.141-1.097 3.137 3.137 0 0 1-.739-2.283 3.137 3.137 0 0 1 1.102-2.138 3.152 3.152 0 0 1 4.434.362c.54.633.806 1.454.74 2.283a3.173 3.173 0 0 1-1.1 2.141 3.144 3.144 0 0 1-2.035.732Zm-2.58-3.35a2.583 2.583 0 0 0 2.883 2.752 2.597 2.597 0 0 0 2.002-1.386 2.566 2.566 0 0 0 .162-1.97 2.594 2.594 0 0 0-.492-.881 2.551 2.551 0 0 0-1.795-.836 2.6 2.6 0 0 0-1.886.601 2.56 2.56 0 0 0-.904 1.757l.03-.037ZM169.907 79.04h-.112a1.497 1.497 0 0 1-1.347-1.582 1.494 1.494 0 0 1 1.843-1.354 1.498 1.498 0 0 1 1.124 1.193 1.495 1.495 0 0 1-1.471 1.75l-.037-.008Zm-.905-1.538a.903.903 0 0 0 1.487.76.896.896 0 0 0 .278-.963.906.906 0 0 0-1.139-.588.896.896 0 0 0-.626.791ZM202.984 117.68h-.314a3.75 3.75 0 0 1-2.561-1.308 3.72 3.72 0 0 1 1.65-5.939 3.747 3.747 0 0 1 3.957 1.007 3.722 3.722 0 0 1-.7 5.642 3.746 3.746 0 0 1-2.039.613l.007-.015Zm0-6.938a3.166 3.166 0 0 0-2.057.746 3.192 3.192 0 0 0-1.122 2.163 3.182 3.182 0 0 0 1.199 2.752 3.192 3.192 0 0 0 2.96.538 3.183 3.183 0 0 0 2.095-2.153 3.186 3.186 0 0 0-.629-2.935 3.153 3.153 0 0 0-2.176-1.111h-.27Z",opacity:.7}),a.jsx("path",{fill:"#fff",d:"m233.669 150.299 4.832-58.59a2.852 2.852 0 0 0-1.549-2.777 2.87 2.87 0 0 0-1.076-.305 2.864 2.864 0 0 0-2.784 1.54 2.854 2.854 0 0 0-.305 1.072l-4.833 58.59a11.788 11.788 0 0 1-1.86 5.467 11.834 11.834 0 0 1-4.236 3.934l-2.939 1.634 2.64 2.081a11.857 11.857 0 0 1 3.537 4.571 11.817 11.817 0 0 1 .951 5.695l-6.455 78.34c-.389 4.7-3.351 6.991-7.518 8.818a1.313 1.313 0 0 0-.618.576 1.299 1.299 0 0 0 .264 1.574c.213.196.485.317.773.342 3.14.256 6.254-.742 8.656-2.775a11.845 11.845 0 0 0 4.158-8.065l6.455-78.34a11.81 11.81 0 0 0-4.488-10.266l-2.641-2.089 2.94-1.626a11.848 11.848 0 0 0 4.233-3.936 11.807 11.807 0 0 0 1.863-5.465Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M311.31 241.352c-.808-3.656-10.891-1.492-12.978-1.156a61.072 61.072 0 0 0-11.848 3.409c-4.211 1.649-9.103 4.074-13.464 1.567-2.521-1.447 6.231-4.305 7.024-4.596a64.003 64.003 0 0 0 10.726-4.909c1.384-.821 4.062-2.783 2.91-4.775-.958-1.649-4.391-1.492-6.478-1.239a77.264 77.264 0 0 0-18.468 4.619 182.874 182.874 0 0 0-16.95 7.737 21.875 21.875 0 0 1-6.874 2.469c-2.633.373-5.857-.186-6.896-1.641-1.04-1.455.299-3.156.606-4.618a7.835 7.835 0 0 0-.517-5.223 5.515 5.515 0 0 0-2.431-2.552c-2.849-1.492-7.158-.94-10.023.239a16.464 16.464 0 0 0-5.004 3.298 20.127 20.127 0 0 0-5.894 10.109 9.393 9.393 0 0 1-3.965 6.021c-4.009 2.694-11.354 2.537-16.972 1.186-9.806-2.32-17.286-7.744-19.089-13.869-.875-2.918-1.301-5.969-5.236-7.111-2.543-.746-7.869-.223-6.732 2.985a9.976 9.976 0 0 0 1.601 2.417c1.04 1.365 2.147 3.939-.942 4.768a9.611 9.611 0 0 1-3.045.149c-9.933-.664-19.074-3.969-24.998-8.625a20.099 20.099 0 0 1-4.832-5.469c-.703-1.156-.957-2.402-1.728-3.544a6.865 6.865 0 0 0-2.992-2.484c-3.815-1.634-12.776-.784-13.404 2.798-.337 1.94.875 4.043 1.496 5.886.111.233.138.497.075.746-.18.47-.89.605-1.496.642-8.011.53-15.783-2.574-22.508-5.812-7.12-3.432-14.96-7.901-24.856-7.953a19.233 19.233 0 0 0-6.066.694c-.5.132-.964.372-1.361.701a1.737 1.737 0 0 0-.33 1.925 4.475 4.475 0 0 0 1.392 1.656c2.992 2.432 7.18 3.417 11.003 4.671a188.172 188.172 0 0 1 32.747 14.138c1.055.589 2.925 1.955 1.444 2.984-1.481 1.03-4.488.366-6.26.075-3.217-.522-6.306-1.358-9.44-2.141-4.144-1.045-8.976-1.992-13.464-1.127-2.372.455-4.488 1.425-5.603 2.738a2.58 2.58 0 0 0-.479 2.985c1.541 2.738 8.565 3.917 12.402 5.222a125.348 125.348 0 0 1 14.384 5.917c3.987 1.969 7.69 4.126 11.729 6.058 14.429 6.901 34.58 7.789 52.599 8.461 19.56.746 39.21.112 58.718-.97 14.212-.791 28.162-2.351 42.09-4.186 4.002-.522 7.981-1.164 11.968-1.708a75.099 75.099 0 0 0 11.968-2.366 10.115 10.115 0 0 0 3.852-1.924c1.07-.993 1.407-2.291-.508-2.664-4.01-.798-8.138.112-12.058.821a233.36 233.36 0 0 0-13.075 2.783c-1.969.523-3.967.93-5.984 1.216a15.069 15.069 0 0 1-6.066-.388c-.644-.202-1.347-.56-1.384-1.127-.038-.567.501-.925 1.055-1.141 8.07-3.194 16.643-5.223 25.274-7.088 5.857-1.269 11.819-2.044 17.721-3.037 5.378-.903 11.048-1.111 15.708-4.514a5.366 5.366 0 0 0 2.064-2.484 2.974 2.974 0 0 0 .142-1.649ZM79.847 211.143c-2.191-6.215-10-17.22-11.646-10.722-.883 3.649 11.646 10.722 11.646 10.722ZM275.961 223.378c4.174-3.797 9.38-6.057 10.053-2.715.628 3.163-10.053 2.715-10.053 2.715ZM104.718 193.177c-2.857-1.493-5.086-3.887-3.411-4.887 1.676-1 3.411 4.887 3.411 4.887Z",opacity:.3}),a.jsx("defs",{children:a.jsx("clipPath",{id:"a",children:a.jsx("path",{fill:"#fff",d:"M0 0h374v278H0z"})})})]})},h=e=>{const t=o();return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:402,height:352,fill:"none",...e,children:[a.jsx("path",{fill:t.BottleSVG,d:"M200.87 352.008c110.938 0 200.87-5.25 200.87-11.727 0-6.476-89.932-11.726-200.87-11.726C89.933 328.555 0 333.805 0 340.281c0 6.477 89.933 11.727 200.87 11.727Z"}),a.jsx("path",{fill:"#407BFF",d:"M84.113 258.411a3.679 3.679 0 0 1 3.936-3.18c8.869-.135 17.167 6.133 24.864 12.856 1.71 1.481 3.564 3.015 5.481 1.461a3.86 3.86 0 0 0 1.243-1.886 6.952 6.952 0 0 0 0-3.688 8.066 8.066 0 0 0-1.398-2.745c-3.347-4.403-7.418-6.516-10.723-11.064a40.187 40.187 0 0 1-4.569-8.391c-1.036-2.61-3.108-6.827-2.279-10.359.922-4.227 4.082-3.864 5.998-3.284 6.061 1.813 11.718 6.133 16.856 11.509 5.481 5.719 10.443 12.608 15.385 19.455 1.865 2.6 3.833 5.273 6.216 6.216 2.383.942 5.397-.58 6.402-4.33 1.005-3.751-.176-8.06-.425-11.789a54.5 54.5 0 0 1 .643-13.323 18.15 18.15 0 0 1 2.31-6.588c2.673-3.916 6.63-2.538 9.22.425a27.201 27.201 0 0 1 4.517 8.287 95.252 95.252 0 0 1 5.18 25.743c.394 5.439 1.223 11.105 3.461 15.322 3.615 6.816 10.36 6.277 15.591 2.703 9.107-6.215 16.131-20.262 18.006-35.967.611-5.118.767-10.65 2.632-14.938 1.626-3.709 5.801-6.216 7.842-2.217a11.279 11.279 0 0 1 .663 6.319 44.72 44.72 0 0 1-1.544 6.215c-1.036 3.523-2.072 10.122.726 12.183a3.34 3.34 0 0 0 2.807.311c9.158-1.906 17.674-10.525 23.269-22.552a71.204 71.204 0 0 0 4.62-14.1c.674-2.962.953-6.143 1.699-9.085a16.569 16.569 0 0 1 2.839-6.412c3.564-4.268 11.79-2.258 12.256 6.889.28 5.293-1.129 10.473-1.647 15.653-.322 3.232 1.678 3.211 3.17 3.108 7.148-.726 13.468-7.936 19.073-15.436 6.661-8.919 14.037-20.501 23.133-20.843 2.072-.072 5.522.197 6.766 3.398a10.66 10.66 0 0 1 0 6.008c-1.845 7.646-7.252 11.593-11.396 15.374a193.371 193.371 0 0 0-30.594 36.817c-1.315 2.072-2.672 5.49-1.419 7.521a2.27 2.27 0 0 0 2.331 1.036c4.279-.332 8.288-3.73 12.194-6.547 3.906-2.818 8.34-5.284 12.432-3.16a11.134 11.134 0 0 1 5.087 6.899c.731 2.505.848 5.148.341 7.708-1.502 7.034-7.997 10.193-11.572 13.664a119.753 119.753 0 0 0-13.468 15.425c-3.729 5.107-7.252 10.701-10.981 15.715-13.468 17.953-32.116 20.615-48.692 22.697-18.037 2.259-36.115 1.036-54.048-1.336-13.044-1.74-25.9-5.449-38.633-9.852-4.372-1.585-8.713-3.315-13.002-5.366-4.61-2.196-11.396-3.553-13.167-12.203-.373-1.865.062-3.377 1.295-4.072 3.823-2.175 9.272.736 12.867 2.652 4.962 2.652 9.666 6.434 14.763 8.474a6.747 6.747 0 0 0 5.304.28 3.934 3.934 0 0 0 1.958-1.792 4.774 4.774 0 0 0 .373-3.408 4.067 4.067 0 0 0-1.036-1.627 98.578 98.578 0 0 0-32.24-21.982c-3.885-1.668-7.853-3.036-11.593-5.398a26.072 26.072 0 0 1-7.666-7.251c-1.74-2.787-4.538-7.707-3.657-12.152ZM282.268 182.26a4.588 4.588 0 0 1-7.79-4.144c3.574-17.352 11.344-29.97 20.585-23.423 6.9 4.88-3.916 18.336-12.795 27.567Z",opacity:.1}),a.jsx("path",{fill:"#407BFF",d:"M257.198 190.361a19.559 19.559 0 0 0 10.039-15.539l7.003-85.31a31.564 31.564 0 0 0-8.381-24.137l-21.58-23.112a12.6 12.6 0 0 1-3.326-9.572l1.036-12.493-55.85-4.59-1.036 12.494a12.52 12.52 0 0 1-1.481 4.96A12.524 12.524 0 0 1 180.264 37l-25.071 19.3a31.59 31.59 0 0 0-12.204 22.448l-7.014 85.309a19.553 19.553 0 0 0 7.366 16.948 19.516 19.516 0 0 0-10.028 15.539l-8.941 108.774a19.58 19.58 0 0 0 17.902 21.102l92.204 7.572a19.571 19.571 0 0 0 14.259-4.573 19.58 19.58 0 0 0 6.845-13.317l8.94-108.774a19.54 19.54 0 0 0-7.324-16.968Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"m186.154 15.628-.792 9.633 55.839 4.59.792-9.633-55.839-4.59Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"m265.341 67.602-21.58-23.132s-13.914.6-3.108 17.663c9.21 14.43 25.257 12.182 24.688 5.47Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M124.382 305.277a19.58 19.58 0 0 0 17.902 21.102l92.204 7.573a19.561 19.561 0 0 0 21.103-17.891l-131.209-10.784Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M261.311 69.602a25.383 25.383 0 0 1 6.734 19.382l-7.004 85.32a13.344 13.344 0 0 1-6.858 10.587l-8.153 4.517 7.304 5.791a13.326 13.326 0 0 1 5.035 11.561l-8.941 108.773a13.351 13.351 0 0 1-14.369 12.224l-92.204-7.573a13.362 13.362 0 0 1-9.119-4.652 13.38 13.38 0 0 1-3.158-9.737l8.941-108.773a13.337 13.337 0 0 1 6.848-10.598l8.153-4.516-7.252-5.791a13.341 13.341 0 0 1-5.035-11.561l7.014-85.31a25.382 25.382 0 0 1 9.811-18.025c8.288-5.356 30.044 7.977 55.519 10.07 25.475 2.092 41.409-4.372 46.734-1.69Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M214.525 71.3c-25.465-2.071-47.242-15.435-55.53-10.079 14.504 7.977 31.08 12.918 55.126 14.897 24.045 1.979 47.189-6.516 47.189-6.516-5.325-2.683-21.32 3.802-46.785 1.699ZM135.986 164.058a19.553 19.553 0 0 0 7.366 16.948l113.846 9.324a19.559 19.559 0 0 0 10.039-15.539l-131.251-10.733Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M243.16 4.94 187.478.348a4.235 4.235 0 0 0-4.569 3.875l-1.111 13.546a4.24 4.24 0 0 0 3.877 4.57l55.683 4.593a4.234 4.234 0 0 0 4.569-3.875l1.11-13.546a4.24 4.24 0 0 0-3.877-4.57Z"}),a.jsx("path",{fill:"#fff",d:"M188.501 20.25a.522.522 0 0 1-.454-.358.529.529 0 0 1-.023-.202l1.306-16.388a.52.52 0 1 1 1.036.083l-1.347 16.378a.52.52 0 0 1-.518.487ZM198.601 21.079a.519.519 0 0 1-.476-.56l1.347-16.378a.529.529 0 0 1 .559-.477.504.504 0 0 1 .447.36c.02.064.026.132.019.2l-1.378 16.378a.528.528 0 0 1-.518.477ZM208.692 21.949a.517.517 0 0 1-.476-.56l1.346-16.378a.54.54 0 0 1 .56-.476.517.517 0 0 1 .476.56l-1.346 16.377a.533.533 0 0 1-.181.355.518.518 0 0 1-.379.122ZM218.793 22.736a.521.521 0 0 1-.454-.358.529.529 0 0 1-.023-.201l1.347-16.378a.529.529 0 0 1 .559-.477.514.514 0 0 1 .352.181.52.52 0 0 1 .096.178c.019.065.026.133.019.2l-1.347 16.378a.507.507 0 0 1-.549.477ZM228.843 23.565a.517.517 0 0 1-.477-.56l1.347-16.378a.55.55 0 0 1 .559-.476.522.522 0 0 1 .454.358.53.53 0 0 1 .023.201l-1.347 16.378a.52.52 0 0 1-.178.358.506.506 0 0 1-.381.119ZM238.985 24.393a.517.517 0 0 1-.476-.559l1.305-16.388a.529.529 0 0 1 .559-.477.517.517 0 0 1 .467.56l-1.337 16.388a.527.527 0 0 1-.518.476Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M153.214 135.56c-1.574-8.712-14.265-8.091-14.991.725l-2.279 27.773a19.553 19.553 0 0 0 7.366 16.948 19.508 19.508 0 0 0-10.028 15.539l-8.941 108.774a19.583 19.583 0 0 0 17.902 21.102l23.828 1.957A17.193 17.193 0 0 0 180.2 322.8a17.173 17.173 0 0 0 4.188-14.602L153.214 135.56Z",opacity:.2}),a.jsx("path",{fill:"#407BFF",d:"M244.9 277.991a10.138 10.138 0 0 1-7 8.815 10.127 10.127 0 0 1-10.824-3.093 10.12 10.12 0 0 1-1.287-11.182 10.137 10.137 0 0 1 9.839-5.469 10.138 10.138 0 0 1 9.272 10.929ZM212.691 238.76a7.166 7.166 0 0 1-4.951 6.241 7.171 7.171 0 0 1-7.66-2.187 7.163 7.163 0 0 1-.911-7.914 7.165 7.165 0 0 1 2.896-2.99 7.158 7.158 0 0 1 8.944 1.631 7.178 7.178 0 0 1 1.682 5.219ZM182.719 151.441a7.173 7.173 0 0 1-6.82-4.109 7.174 7.174 0 0 1 1.182-7.874 7.168 7.168 0 0 1 11.066.555 7.18 7.18 0 0 1 1.4 3.917 7.198 7.198 0 0 1-.413 2.771 7.17 7.17 0 0 1-6.415 4.74ZM202.269 108.584a5.08 5.08 0 0 1-5.274-5.817 5.077 5.077 0 1 1 8.779 4.16 5.077 5.077 0 0 1-3.505 1.657ZM233.722 207.775a2.967 2.967 0 0 1-2.049 2.573 2.961 2.961 0 0 1-2.345-5.409 2.964 2.964 0 0 1 1.68-.365 2.97 2.97 0 0 1 2.714 3.201Z",opacity:.3}),a.jsx("path",{fill:"#fff",d:"M180.057 288.826h-.497a6.002 6.002 0 0 1-2.279-.621 6.005 6.005 0 0 1-1.865-1.45 5.948 5.948 0 0 1-1.399-4.372 5.996 5.996 0 0 1 4.029-5.175 5.998 5.998 0 1 1 1.959 11.67l.052-.052Zm0-11.229a5.18 5.18 0 0 0-2.148 9.881 5.18 5.18 0 0 0 6.137-8.037 5.178 5.178 0 0 0-3.554-1.823l-.435-.021ZM244.134 167.601h-.363a4.362 4.362 0 0 1-3.989-4.692 4.365 4.365 0 0 1 4.704-3.989 4.359 4.359 0 0 1 3.988 4.693 4.41 4.41 0 0 1-1.523 2.973 4.336 4.336 0 0 1-2.817 1.015Zm-3.575-4.651a3.59 3.59 0 0 0 1.952 3.457 3.58 3.58 0 0 0 3.943-.463 3.591 3.591 0 0 0 1.255-2.442 3.577 3.577 0 0 0-.84-2.614 3.545 3.545 0 0 0-2.487-1.16 3.57 3.57 0 0 0-3.481 1.929 3.579 3.579 0 0 0-.383 1.345l.041-.052ZM177.197 75.755h-.155a2.073 2.073 0 0 1-1.452-3.308 2.072 2.072 0 1 1 1.659 3.318l-.052-.01Zm-1.253-2.134a1.247 1.247 0 0 0 .678 1.215 1.252 1.252 0 0 0 1.766-1.497 1.255 1.255 0 0 0-1.577-.816 1.248 1.248 0 0 0-.736.624 1.247 1.247 0 0 0-.131.474ZM223.01 129.406h-.435a5.169 5.169 0 0 1-3.548-1.816 5.185 5.185 0 0 1-1.208-3.798 5.181 5.181 0 0 1 10.269-.399 5.177 5.177 0 0 1-5.089 6.034l.011-.021Zm0-9.634a4.386 4.386 0 0 0-2.849 1.036 4.434 4.434 0 0 0-1.554 3.004 4.414 4.414 0 0 0 1.66 3.822 4.424 4.424 0 0 0 6.131-6.318 4.373 4.373 0 0 0-3.015-1.544h-.373Z",opacity:.7}),a.jsx("path",{fill:"#fff",d:"m265.506 174.697 6.693-81.352a3.973 3.973 0 0 0-2.146-3.855 3.969 3.969 0 0 0-1.491-.423 3.956 3.956 0 0 0-4.278 3.626l-6.693 81.352a16.406 16.406 0 0 1-8.443 13.053l-4.072 2.268 3.657 2.891a16.438 16.438 0 0 1 6.216 14.254l-8.94 108.773c-.539 6.527-4.642 9.707-10.412 12.245a1.815 1.815 0 0 0-1.047 1.954 1.815 1.815 0 0 0 1.627 1.506 16.462 16.462 0 0 0 17.747-15.052l8.94-108.773a16.43 16.43 0 0 0-6.216-14.255l-3.657-2.9 4.072-2.259a16.43 16.43 0 0 0 8.443-13.053Z",opacity:.3}),a.jsx("path",{fill:"#407BFF",d:"M373.043 301.123c-1.119-5.076-15.084-2.072-17.974-1.606a84.378 84.378 0 0 0-16.411 4.735c-5.832 2.289-12.608 5.656-18.648 2.175-3.491-2.01 8.63-5.977 9.728-6.381a88.655 88.655 0 0 0 14.857-6.817c1.916-1.139 5.625-3.864 4.03-6.63-1.326-2.289-6.082-2.072-8.972-1.719a106.767 106.767 0 0 0-25.579 6.412 253.093 253.093 0 0 0-23.476 10.743 30.272 30.272 0 0 1-9.521 3.429c-3.646.518-8.111-.259-9.552-2.279-1.44-2.02.415-4.382.84-6.413a10.897 10.897 0 0 0-.715-7.251 7.651 7.651 0 0 0-3.367-3.543c-3.947-2.072-9.915-1.306-13.883.331a22.79 22.79 0 0 0-6.93 4.579 27.967 27.967 0 0 0-8.164 14.037 13.067 13.067 0 0 1-5.491 8.36c-5.553 3.74-15.726 3.522-23.507 1.647-13.582-3.222-23.942-10.753-26.438-19.258-1.213-4.05-1.803-8.287-7.252-9.872-3.523-1.036-10.899-.311-9.324 4.143a13.81 13.81 0 0 0 2.217 3.357c1.44 1.896 2.973 5.469-1.306 6.619a13.267 13.267 0 0 1-4.216.208c-13.758-.922-26.418-5.512-34.623-11.976a27.884 27.884 0 0 1-6.693-7.593c-.974-1.606-1.326-3.336-2.393-4.921a9.511 9.511 0 0 0-4.144-3.45c-5.284-2.268-17.695-1.087-18.565 3.885-.466 2.694 1.212 5.615 2.072 8.174.154.322.19.689.103 1.036-.248.652-1.233.839-2.072.89-11.095.736-21.86-3.573-31.173-8.069-9.863-4.766-20.72-10.971-34.426-11.044a26.575 26.575 0 0 0-8.402.964 4.945 4.945 0 0 0-1.886.974 2.409 2.409 0 0 0-.456 2.672 6.214 6.214 0 0 0 1.927 2.3c4.144 3.377 9.946 4.745 15.24 6.485a260.386 260.386 0 0 1 45.356 19.631c1.46.818 4.05 2.714 2 4.144-2.052 1.429-6.216.507-8.672.103-4.455-.725-8.733-1.885-13.074-2.973-5.74-1.45-12.432-2.766-18.648-1.564-3.284.632-6.216 1.979-7.76 3.802a3.583 3.583 0 0 0-.663 4.144c2.134 3.802 11.862 5.438 17.177 7.251a173.397 173.397 0 0 1 19.922 8.215c5.522 2.735 10.65 5.729 16.245 8.412 19.984 9.582 47.894 10.815 72.851 11.747 27.092 1.036 54.308.156 81.326-1.346 19.684-1.098 39.006-3.263 58.296-5.812 5.543-.725 11.054-1.616 16.576-2.372a103.9 103.9 0 0 0 16.576-3.284 14.002 14.002 0 0 0 5.336-2.673c1.481-1.378 1.947-3.18-.705-3.698-5.553-1.108-11.272.155-16.7 1.14a321.616 321.616 0 0 0-18.11 3.864 70.84 70.84 0 0 1-8.288 1.688 20.827 20.827 0 0 1-8.402-.539c-.89-.279-1.864-.777-1.916-1.564-.052-.787.694-1.284 1.461-1.585 11.178-4.434 23.051-7.251 35.006-9.841 8.112-1.761 16.369-2.839 24.543-4.216 7.449-1.254 15.302-1.544 21.756-6.268a7.438 7.438 0 0 0 2.859-3.45 4.14 4.14 0 0 0 .197-2.289ZM52.464 259.178c-3.036-8.629-13.852-23.909-16.13-14.886-1.223 5.065 16.13 14.886 16.13 14.886ZM324.082 276.167c5.781-5.273 12.991-8.411 13.924-3.771.87 4.392-13.924 3.771-13.924 3.771ZM86.91 234.232c-3.957-2.072-7.045-5.397-4.724-6.785 2.32-1.388 4.724 6.785 4.724 6.785Z",opacity:.3})]})},r=i.svg` @media only screen and (min-width: 768px) { width: 40px; height: 40px; diff --git a/assets/index-27897a98.js b/assets/index-ba023575.js similarity index 67% rename from assets/index-27897a98.js rename to assets/index-ba023575.js index d9415e1..5bc40d2 100644 --- a/assets/index-27897a98.js +++ b/assets/index-ba023575.js @@ -6,7 +6,7 @@ var h5=Object.defineProperty;var m5=(e,t,n)=>t in e?h5(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Is=Symbol.for("react.element"),v5=Symbol.for("react.portal"),w5=Symbol.for("react.fragment"),x5=Symbol.for("react.strict_mode"),b5=Symbol.for("react.profiler"),S5=Symbol.for("react.provider"),E5=Symbol.for("react.context"),C5=Symbol.for("react.forward_ref"),O5=Symbol.for("react.suspense"),k5=Symbol.for("react.memo"),P5=Symbol.for("react.lazy"),w1=Symbol.iterator;function $5(e){return e===null||typeof e!="object"?null:(e=w1&&e[w1]||e["@@iterator"],typeof e=="function"?e:null)}var Gg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qg=Object.assign,Jg={};function mo(e,t,n){this.props=e,this.context=t,this.refs=Jg,this.updater=n||Gg}mo.prototype.isReactComponent={};mo.prototype.setState=function(e,t){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,t,"setState")};mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xg(){}Xg.prototype=mo.prototype;function fp(e,t,n){this.props=e,this.context=t,this.refs=Jg,this.updater=n||Gg}var dp=fp.prototype=new Xg;dp.constructor=fp;Qg(dp,mo.prototype);dp.isPureReactComponent=!0;var x1=Array.isArray,ey=Object.prototype.hasOwnProperty,pp={current:null},ty={key:!0,ref:!0,__self:!0,__source:!0};function ny(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ey.call(t,r)&&!ty.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1t in e?h5(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ay=k,jt=N5;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rf=Object.prototype.hasOwnProperty,V5=/^[: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]*$/,S1={},E1={};function z5(e){return Rf.call(E1,e)?!0:Rf.call(S1,e)?!1:V5.test(e)?E1[e]=!0:(S1[e]=!0,!1)}function B5(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U5(e,t,n,r){if(t===null||typeof t>"u"||B5(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new wt(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){at[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var mp=/[\-:]([a-z])/g;function gp(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(mp,gp);at[t]=new wt(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(mp,gp);at[t]=new wt(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(mp,gp);at[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yp(e,t,n,r){var i=at.hasOwnProperty(t)?at[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rf=Object.prototype.hasOwnProperty,V5=/^[: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]*$/,S1={},E1={};function z5(e){return Rf.call(E1,e)?!0:Rf.call(S1,e)?!1:V5.test(e)?E1[e]=!0:(S1[e]=!0,!1)}function B5(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U5(e,t,n,r){if(t===null||typeof t>"u"||B5(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new wt(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){at[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var mp=/[\-:]([a-z])/g;function gp(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(mp,gp);at[t]=new wt(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(mp,gp);at[t]=new wt(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(mp,gp);at[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yp(e,t,n,r){var i=at.hasOwnProperty(t)?at[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{yc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vo(e):""}function H5(e){switch(e.tag){case 5:return Vo(e.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 2:case 15:return e=vc(e.type,!1),e;case 11:return e=vc(e.type.render,!1),e;case 1:return e=vc(e.type,!0),e;default:return""}}function Lf(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 ki:return"Fragment";case Oi:return"Portal";case Ff:return"Profiler";case vp:return"StrictMode";case Af:return"Suspense";case Mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cy:return(e.displayName||"Context")+".Consumer";case uy:return(e._context.displayName||"Context")+".Provider";case wp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xp:return t=e.displayName||null,t!==null?t:Lf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Lf(e(t))}catch{}}return null}function W5(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lf(t);case 8:return t===vp?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z5(e){var t=dy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=Z5(e))}function py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 Df(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function O1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hy(e,t){t=t.checked,t!=null&&yp(e,"checked",t,!1)}function If(e,t){hy(e,t);var n=Sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function k1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Vi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ea.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={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},Y5=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){Y5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function vy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function wy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var K5=De({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 zf(e,t){if(t){if(K5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Bf(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}}var Uf=null;function bp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hf=null,zi=null,Bi=null;function T1(e){if(e=Vs(e)){if(typeof Hf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=hu(t),Hf(e.stateNode,e.type,t))}}function xy(e){zi?Bi?Bi.push(e):Bi=[e]:zi=e}function by(){if(zi){var e=zi,t=Bi;if(Bi=zi=null,T1(e),t)for(e=0;e>>=0,e===0?32:31-(ow(e)/sw|0)|0}var ta=64,na=4194304;function Bo(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 cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Bo(l):(o&=s,o!==0&&(r=Bo(o)))}else s=n&~i,s!==0?r=Bo(s):o!==0&&(r=Bo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-un(t),e[t]=n}function cw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qo),j1=String.fromCharCode(32),N1=!1;function zy(e,t){switch(e){case"keyup":return jw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function By(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pi=!1;function Vw(e,t){switch(e){case"compositionend":return By(t);case"keypress":return t.which!==32?null:(N1=!0,j1);case"textInput":return e=t.data,e===j1&&N1?null:e;default:return null}}function zw(e,t){if(Pi)return e==="compositionend"||!Tp&&zy(e,t)?(e=Ny(),_a=kp=sr=null,Pi=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=U1(n)}}function Zy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yy(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function _p(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")}function Gw(e){var t=Yy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zy(n.ownerDocument.documentElement,n)){if(r!==null&&_p(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=H1(n,o);var s=H1(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$i=null,Gf=null,Qo=null,Qf=!1;function W1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qf||$i==null||$i!==sl(r)||(r=$i,"selectionStart"in r&&_p(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}),Qo&&ms(Qo,r)||(Qo=r,r=pl(Gf,"onSelect"),0Ri||(e.current=rd[Ri],rd[Ri]=null,Ri--)}function $e(e,t){Ri++,rd[Ri]=e.current,e.current=t}var Er={},pt=_r(Er),Ot=_r(!1),Jr=Er;function Qi(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kt(e){return e=e.childContextTypes,e!=null}function ml(){Re(Ot),Re(pt)}function J1(e,t,n){if(pt.current!==Er)throw Error(z(168));$e(pt,t),$e(Ot,n)}function nv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,W5(e)||"Unknown",i));return De({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Jr=pt.current,$e(pt,e),$e(Ot,Ot.current),!0}function X1(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=nv(e,t,Jr),r.__reactInternalMemoizedMergedChildContext=e,Re(Ot),Re(pt),$e(pt,e)):Re(Ot),$e(Ot,n)}var Dn=null,mu=!1,Fc=!1;function rv(e){Dn===null?Dn=[e]:Dn.push(e)}function lx(e){mu=!0,rv(e)}function Rr(){if(!Fc&&Dn!==null){Fc=!0;var e=0,t=Oe;try{var n=Dn;for(Oe=1;e>=s,i-=s,jn=1<<32-un(t)+i|n<P?($=S,S=null):$=S.sibling;var R=d(h,S,v[P],w);if(R===null){S===null&&(S=$);break}e&&S&&R.alternate===null&&t(h,S),p=o(R,p,P),C===null?b=R:C.sibling=R,C=R,S=$}if(P===v.length)return n(h,S),Fe&&Ar(h,P),b;if(S===null){for(;PP?($=S,S=null):$=S.sibling;var D=d(h,S,R.value,w);if(D===null){S===null&&(S=$);break}e&&S&&D.alternate===null&&t(h,S),p=o(D,p,P),C===null?b=D:C.sibling=D,C=D,S=$}if(R.done)return n(h,S),Fe&&Ar(h,P),b;if(S===null){for(;!R.done;P++,R=v.next())R=f(h,R.value,w),R!==null&&(p=o(R,p,P),C===null?b=R:C.sibling=R,C=R);return Fe&&Ar(h,P),b}for(S=r(h,S);!R.done;P++,R=v.next())R=y(S,h,P,R.value,w),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?P:R.key),p=o(R,p,P),C===null?b=R:C.sibling=R,C=R);return e&&S.forEach(function(A){return t(h,A)}),Fe&&Ar(h,P),b}function x(h,p,v,w){if(typeof v=="object"&&v!==null&&v.type===ki&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Js:e:{for(var b=v.key,C=p;C!==null;){if(C.key===b){if(b=v.type,b===ki){if(C.tag===7){n(h,C.sibling),p=i(C,v.props.children),p.return=h,h=p;break e}}else if(C.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===nr&&s0(b)===C.type){n(h,C.sibling),p=i(C,v.props),p.ref=_o(h,C,v),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===ki?(p=Ur(v.props.children,h.mode,w,v.key),p.return=h,h=p):(w=ja(v.type,v.key,v.props,null,h.mode,w),w.ref=_o(h,p,v),w.return=h,h=w)}return s(h);case Oi:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=i(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Vc(v,h.mode,w),p.return=h,h=p}return s(h);case nr:return C=v._init,x(h,p,C(v._payload),w)}if(zo(v))return m(h,p,v,w);if(Oo(v))return g(h,p,v,w);ua(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,v),p.return=h,h=p):(n(h,p),p=Nc(v,h.mode,w),p.return=h,h=p),s(h)):n(h,p)}return x}var Xi=fv(!0),dv=fv(!1),zs={},Cn=_r(zs),ws=_r(zs),xs=_r(zs);function jr(e){if(e===zs)throw Error(z(174));return e}function Np(e,t){switch($e(xs,t),$e(ws,e),$e(Cn,zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vf(t,e)}Re(Cn),$e(Cn,t)}function eo(){Re(Cn),Re(ws),Re(xs)}function pv(e){jr(xs.current);var t=jr(Cn.current),n=Vf(t,e.type);t!==n&&($e(ws,e),$e(Cn,n))}function Vp(e){ws.current===e&&(Re(Cn),Re(ws))}var Me=_r(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Ac=[];function zp(){for(var e=0;en?n:4,e(!0);var r=Mc.transition;Mc.transition={};try{e(!1),t()}finally{Oe=n,Mc.transition=r}}function Tv(){return Xt().memoizedState}function dx(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_v(e))Rv(t,n);else if(n=av(e,t,n,r),n!==null){var i=yt();cn(n,e,r,i),Fv(n,t,r)}}function px(e,t,n){var r=yr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_v(e))Rv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,dn(l,s)){var a=t.interleaved;a===null?(i.next=i,Ip(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=av(e,t,i,r),n!==null&&(i=yt(),cn(n,e,r,i),Fv(n,t,r))}}function _v(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Rv(e,t){Jo=El=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ep(e,n)}}var Cl={readContext:Jt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},hx={readContext:Jt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:l0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4194308,4,Cv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dx.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:a0,useDebugValue:Zp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=a0(!1),t=e[0];return e=fx.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=hn();if(Fe){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),et===null)throw Error(z(349));ei&30||gv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,l0(vv.bind(null,r,o,e),[e]),r.flags|=2048,Es(9,yv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=hn(),t=et.identifierPrefix;if(Fe){var n=Nn,r=jn;n=(r&~(1<<32-un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bs++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{yc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vo(e):""}function H5(e){switch(e.tag){case 5:return Vo(e.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 2:case 15:return e=vc(e.type,!1),e;case 11:return e=vc(e.type.render,!1),e;case 1:return e=vc(e.type,!0),e;default:return""}}function Lf(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 $i:return"Fragment";case Pi:return"Portal";case Ff:return"Profiler";case vp:return"StrictMode";case Af:return"Suspense";case Mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cy:return(e.displayName||"Context")+".Consumer";case uy:return(e._context.displayName||"Context")+".Provider";case wp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xp:return t=e.displayName||null,t!==null?t:Lf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Lf(e(t))}catch{}}return null}function W5(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lf(t);case 8:return t===vp?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z5(e){var t=dy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=Z5(e))}function py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 Df(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function O1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hy(e,t){t=t.checked,t!=null&&yp(e,"checked",t,!1)}function If(e,t){hy(e,t);var n=Sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function k1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Bi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ea.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={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},Y5=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){Y5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function vy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function wy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var K5=De({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 zf(e,t){if(t){if(K5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Bf(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}}var Uf=null;function bp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hf=null,Ui=null,Hi=null;function T1(e){if(e=Vs(e)){if(typeof Hf!="function")throw Error(z(280));var t=e.stateNode;t&&(t=hu(t),Hf(e.stateNode,e.type,t))}}function xy(e){Ui?Hi?Hi.push(e):Hi=[e]:Ui=e}function by(){if(Ui){var e=Ui,t=Hi;if(Hi=Ui=null,T1(e),t)for(e=0;e>>=0,e===0?32:31-(ow(e)/sw|0)|0}var ta=64,na=4194304;function Bo(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 cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Bo(l):(o&=s,o!==0&&(r=Bo(o)))}else s=n&~i,s!==0?r=Bo(s):o!==0&&(r=Bo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-un(t),e[t]=n}function cw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qo),j1=String.fromCharCode(32),N1=!1;function zy(e,t){switch(e){case"keyup":return jw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function By(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function Vw(e,t){switch(e){case"compositionend":return By(t);case"keypress":return t.which!==32?null:(N1=!0,j1);case"textInput":return e=t.data,e===j1&&N1?null:e;default:return null}}function zw(e,t){if(Ti)return e==="compositionend"||!Tp&&zy(e,t)?(e=Ny(),_a=kp=sr=null,Ti=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=U1(n)}}function Zy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yy(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function _p(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")}function Gw(e){var t=Yy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zy(n.ownerDocument.documentElement,n)){if(r!==null&&_p(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=H1(n,o);var s=H1(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_i=null,Gf=null,Qo=null,Qf=!1;function W1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qf||_i==null||_i!==sl(r)||(r=_i,"selectionStart"in r&&_p(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}),Qo&&ms(Qo,r)||(Qo=r,r=pl(Gf,"onSelect"),0Ai||(e.current=rd[Ai],rd[Ai]=null,Ai--)}function $e(e,t){Ai++,rd[Ai]=e.current,e.current=t}var Er={},pt=Rr(Er),Ot=Rr(!1),Xr=Er;function Xi(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kt(e){return e=e.childContextTypes,e!=null}function ml(){Re(Ot),Re(pt)}function J1(e,t,n){if(pt.current!==Er)throw Error(z(168));$e(pt,t),$e(Ot,n)}function nv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,W5(e)||"Unknown",i));return De({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Xr=pt.current,$e(pt,e),$e(Ot,Ot.current),!0}function X1(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=nv(e,t,Xr),r.__reactInternalMemoizedMergedChildContext=e,Re(Ot),Re(pt),$e(pt,e)):Re(Ot),$e(Ot,n)}var Dn=null,mu=!1,Fc=!1;function rv(e){Dn===null?Dn=[e]:Dn.push(e)}function lx(e){mu=!0,rv(e)}function Fr(){if(!Fc&&Dn!==null){Fc=!0;var e=0,t=Oe;try{var n=Dn;for(Oe=1;e>=s,i-=s,jn=1<<32-un(t)+i|n<P?($=S,S=null):$=S.sibling;var R=d(h,S,v[P],w);if(R===null){S===null&&(S=$);break}e&&S&&R.alternate===null&&t(h,S),p=o(R,p,P),C===null?b=R:C.sibling=R,C=R,S=$}if(P===v.length)return n(h,S),Fe&&Mr(h,P),b;if(S===null){for(;PP?($=S,S=null):$=S.sibling;var D=d(h,S,R.value,w);if(D===null){S===null&&(S=$);break}e&&S&&D.alternate===null&&t(h,S),p=o(D,p,P),C===null?b=D:C.sibling=D,C=D,S=$}if(R.done)return n(h,S),Fe&&Mr(h,P),b;if(S===null){for(;!R.done;P++,R=v.next())R=f(h,R.value,w),R!==null&&(p=o(R,p,P),C===null?b=R:C.sibling=R,C=R);return Fe&&Mr(h,P),b}for(S=r(h,S);!R.done;P++,R=v.next())R=y(S,h,P,R.value,w),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?P:R.key),p=o(R,p,P),C===null?b=R:C.sibling=R,C=R);return e&&S.forEach(function(A){return t(h,A)}),Fe&&Mr(h,P),b}function x(h,p,v,w){if(typeof v=="object"&&v!==null&&v.type===$i&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Js:e:{for(var b=v.key,C=p;C!==null;){if(C.key===b){if(b=v.type,b===$i){if(C.tag===7){n(h,C.sibling),p=i(C,v.props.children),p.return=h,h=p;break e}}else if(C.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===nr&&s0(b)===C.type){n(h,C.sibling),p=i(C,v.props),p.ref=_o(h,C,v),p.return=h,h=p;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===$i?(p=Hr(v.props.children,h.mode,w,v.key),p.return=h,h=p):(w=ja(v.type,v.key,v.props,null,h.mode,w),w.ref=_o(h,p,v),w.return=h,h=w)}return s(h);case Pi:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=i(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Vc(v,h.mode,w),p.return=h,h=p}return s(h);case nr:return C=v._init,x(h,p,C(v._payload),w)}if(zo(v))return m(h,p,v,w);if(Oo(v))return g(h,p,v,w);ua(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,v),p.return=h,h=p):(n(h,p),p=Nc(v,h.mode,w),p.return=h,h=p),s(h)):n(h,p)}return x}var to=fv(!0),dv=fv(!1),zs={},Cn=Rr(zs),ws=Rr(zs),xs=Rr(zs);function Nr(e){if(e===zs)throw Error(z(174));return e}function Np(e,t){switch($e(xs,t),$e(ws,e),$e(Cn,zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vf(t,e)}Re(Cn),$e(Cn,t)}function no(){Re(Cn),Re(ws),Re(xs)}function pv(e){Nr(xs.current);var t=Nr(Cn.current),n=Vf(t,e.type);t!==n&&($e(ws,e),$e(Cn,n))}function Vp(e){ws.current===e&&(Re(Cn),Re(ws))}var Me=Rr(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Ac=[];function zp(){for(var e=0;en?n:4,e(!0);var r=Mc.transition;Mc.transition={};try{e(!1),t()}finally{Oe=n,Mc.transition=r}}function Tv(){return Xt().memoizedState}function dx(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_v(e))Rv(t,n);else if(n=av(e,t,n,r),n!==null){var i=yt();cn(n,e,r,i),Fv(n,t,r)}}function px(e,t,n){var r=yr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_v(e))Rv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,dn(l,s)){var a=t.interleaved;a===null?(i.next=i,Ip(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=av(e,t,i,r),n!==null&&(i=yt(),cn(n,e,r,i),Fv(n,t,r))}}function _v(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Rv(e,t){Jo=El=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ep(e,n)}}var Cl={readContext:Jt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},hx={readContext:Jt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:l0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4194308,4,Cv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dx.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:a0,useDebugValue:Zp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=a0(!1),t=e[0];return e=fx.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=hn();if(Fe){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),et===null)throw Error(z(349));ti&30||gv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,l0(vv.bind(null,r,o,e),[e]),r.flags|=2048,Es(9,yv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=hn(),t=et.identifierPrefix;if(Fe){var n=Nn,r=jn;n=(r&~(1<<32-un(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[wn]=t,e[vs]=r,zv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":Te("cancel",e),Te("close",e),i=r;break;case"iframe":case"object":case"embed":Te("load",e),i=r;break;case"video":case"audio":for(i=0;ino&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Fe)return ct(t),null}else 2*Ve()-o.renderingStartTime>no&&n!==1073741824&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,n=Me.current,$e(Me,r?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return Jp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Sx(e,t){switch(Fp(t),t.tag){case 1:return kt(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return eo(),Re(Ot),Re(pt),zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vp(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return eo(),null;case 10:return Dp(t.type._context),null;case 22:case 23:return Jp(),null;case 24:return null;default:return null}}var fa=!1,dt=!1,Ex=typeof WeakSet=="function"?WeakSet:Set,K=null;function Li(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function md(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var y0=!1;function Cx(e,t){if(Jf=fl,e=Yy(),_p(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xf={focusedElem:e,selectionRange:n},fl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,x=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:rn(t.type,g),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(w){Ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=y0,y0=!1,m}function Xo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&md(t,n,o)}i=i.next}while(i!==r)}}function vu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hv(e){var t=e.alternate;t!==null&&(e.alternate=null,Hv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[vs],delete t[nd],delete t[sx],delete t[ax])),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 Wv(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wv(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 yd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hl));else if(r!==4&&(e=e.child,e!==null))for(yd(e,t,n),e=e.sibling;e!==null;)yd(e,t,n),e=e.sibling}function vd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}var it=null,on=!1;function Xn(e,t,n){for(n=n.child;n!==null;)Zv(e,t,n),n=n.sibling}function Zv(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(cu,n)}catch{}switch(n.tag){case 5:dt||Li(n,t);case 6:var r=it,i=on;it=null,Xn(e,t,n),it=r,on=i,it!==null&&(on?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(on?(e=it,n=n.stateNode,e.nodeType===8?Rc(e.parentNode,n):e.nodeType===1&&Rc(e,n),ps(e)):Rc(it,n.stateNode));break;case 4:r=it,i=on,it=n.stateNode.containerInfo,on=!0,Xn(e,t,n),it=r,on=i;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&md(n,t,s),i=i.next}while(i!==r)}Xn(e,t,n);break;case 1:if(!dt&&(Li(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,Xn(e,t,n),dt=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function w0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ex),t.forEach(function(r){var i=Ax.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kx(r/1960))-r,10e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,Pl=0,we&6)throw Error(z(331));var i=we;for(we|=4,K=e.current;K!==null;){var o=K,s=o.child;if(K.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aVe()-Gp?Br(e,0):qp|=n),Pt(e,t)}function e2(e,t){t===0&&(e.mode&1?(t=na,na<<=1,!(na&130023424)&&(na=4194304)):t=1);var n=yt();e=Zn(e,t),e!==null&&(js(e,t,n),Pt(e,n))}function Fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e2(e,n)}function Ax(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),e2(e,n)}var t2;t2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ot.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,xx(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Fe&&t.flags&1048576&&iv(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;La(e,t),e=t.pendingProps;var i=Qi(t,pt.current);Hi(t,n),i=Up(null,t,r,e,i,n);var o=Hp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kt(r)?(o=!0,gl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jp(t),i.updater=gu,t.stateNode=i,i._reactInternals=t,ld(t,r,e,n),t=fd(null,t,r,!0,o,n)):(t.tag=0,Fe&&o&&Rp(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(La(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Lx(r),e=rn(r,e),i){case 0:t=cd(null,t,r,e,n);break e;case 1:t=h0(null,t,r,e,n);break e;case 11:t=d0(null,t,r,e,n);break e;case 14:t=p0(null,t,r,rn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),cd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),h0(e,t,r,i,n);case 3:e:{if(jv(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lv(e,t),bl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=to(Error(z(423)),t),t=m0(e,t,r,n,i);break e}else if(r!==i){i=to(Error(z(424)),t),t=m0(e,t,r,n,i);break e}else for(Ft=hr(t.stateNode.containerInfo.firstChild),Lt=t,Fe=!0,sn=null,n=dv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ji(),r===i){t=Yn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return pv(t),e===null&&od(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ed(r,i)?s=null:o!==null&&ed(r,o)&&(t.flags|=32),Iv(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&od(t),null;case 13:return Nv(e,t,n);case 4:return Np(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xi(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),d0(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,$e(wl,r._currentValue),r._currentValue=s,o!==null)if(dn(o.value,s)){if(o.children===i.children&&!Ot.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Vn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),sd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hi(t,n),i=Jt(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=rn(r,t.pendingProps),i=rn(r.type,i),p0(e,t,r,i,n);case 15:return Lv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),La(e,t),t.tag=1,kt(r)?(e=!0,gl(t)):e=!1,Hi(t,n),cv(t,r,i),ld(t,r,i,n),fd(null,t,r,!0,e,n);case 19:return Vv(e,t,n);case 22:return Dv(e,t,n)}throw Error(z(156,t.tag))};function n2(e,t){return $y(e,t)}function Mx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 qt(e,t,n,r){return new Mx(e,t,n,r)}function eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lx(e){if(typeof e=="function")return eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wp)return 11;if(e===xp)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=qt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ja(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")eh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ki:return Ur(n.children,i,o,t);case vp:s=8,i|=8;break;case Ff:return e=qt(12,n,t,i|2),e.elementType=Ff,e.lanes=o,e;case Af:return e=qt(13,n,t,i),e.elementType=Af,e.lanes=o,e;case Mf:return e=qt(19,n,t,i),e.elementType=Mf,e.lanes=o,e;case fy:return xu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uy:s=10;break e;case cy:s=9;break e;case wp:s=11;break e;case xp:s=14;break e;case nr:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=qt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ur(e,t,n,r){return e=qt(7,e,r,t),e.lanes=n,e}function xu(e,t,n,r){return e=qt(22,e,r,t),e.elementType=fy,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return e=qt(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dx(e,t,n,r,i){this.tag=t,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=xc(0),this.expirationTimes=xc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function th(e,t,n,r,i,o,s,l,a){return e=new Dx(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jp(o),e}function Ix(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),iy.exports=zt;var oh=iy.exports;const lj=cp(oh);var P0=oh;_f.createRoot=P0.createRoot,_f.hydrateRoot=P0.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ic(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ud(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yx=typeof WeakMap=="function"?WeakMap:Map;function Av(e,t,n){n=Vn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kl||(kl=!0,wd=r),ud(e,t)},n}function Mv(e,t,n){n=Vn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ud(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ud(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function u0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yx;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Rx.bind(null,e,t,n),t.then(e,e))}function c0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function f0(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var vx=Gn.ReactCurrentOwner,Ct=!1;function ht(e,t,n,r){t.child=e===null?dv(t,null,n,r):to(t,e.child,n,r)}function d0(e,t,n,r,i){n=n.render;var o=t.ref;return Zi(t,i),r=Up(e,t,n,r,o,i),n=Hp(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yn(e,t,i)):(Fe&&n&&Rp(t),t.flags|=1,ht(e,t,r,i),t.child)}function p0(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!eh(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Lv(e,t,o,r,i)):(e=ja(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:ms,n(s,r)&&e.ref===t.ref)return Yn(e,t,i)}return t.flags|=1,e=vr(o,r),e.ref=t.ref,e.return=t,t.child=e}function Lv(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ms(o,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,Yn(e,t,i)}return cd(e,t,n,r,i)}function Dv(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(ji,Rt),Rt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(ji,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$e(ji,Rt),Rt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$e(ji,Rt),Rt|=r;return ht(e,t,i,n),t.child}function Iv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cd(e,t,n,r,i){var o=kt(n)?Xr:pt.current;return o=Xi(t,o),Zi(t,i),n=Up(e,t,n,r,o,i),r=Hp(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yn(e,t,i)):(Fe&&r&&Rp(t),t.flags|=1,ht(e,t,n,i),t.child)}function h0(e,t,n,r,i){if(kt(n)){var o=!0;gl(t)}else o=!1;if(Zi(t,i),t.stateNode===null)La(e,t),cv(t,n,r),ld(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Jt(u):(u=kt(n)?Xr:pt.current,u=Xi(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&o0(t,s,r,u),rr=!1;var d=t.memoizedState;s.state=d,bl(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Ot.current||rr?(typeof c=="function"&&(ad(t,n,c,r),a=t.memoizedState),(l=rr||i0(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,lv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:rn(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Jt(a):(a=kt(n)?Xr:pt.current,a=Xi(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&o0(t,s,r,a),rr=!1,d=t.memoizedState,s.state=d,bl(t,r,s,i);var m=t.memoizedState;l!==f||d!==m||Ot.current||rr?(typeof y=="function"&&(ad(t,n,y,r),m=t.memoizedState),(u=rr||i0(t,n,u,r,d,m,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return fd(e,t,n,r,o,i)}function fd(e,t,n,r,i,o){Iv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&X1(t,n,!1),Yn(e,t,o);r=t.stateNode,vx.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=to(t,e.child,null,o),t.child=to(t,null,l,o)):ht(e,t,l,o),t.memoizedState=r.state,i&&X1(t,n,!0),t.child}function jv(e){var t=e.stateNode;t.pendingContext?J1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&J1(e,t.context,!1),Np(e,t.containerInfo)}function m0(e,t,n,r,i){return eo(),Ap(i),t.flags|=256,ht(e,t,n,r),t.child}var dd={dehydrated:null,treeContext:null,retryLane:0};function pd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nv(e,t,n){var r=t.pendingProps,i=Me.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$e(Me,i&1),e===null)return od(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=xu(s,r,0,null),e=Hr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=pd(n),t.memoizedState=dd,e):Yp(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return wx(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=vr(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=vr(l,o):(o=Hr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?pd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=dd,r}return o=e.child,e=o.sibling,r=vr(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yp(e,t){return t=xu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ca(e,t,n,r){return r!==null&&Ap(r),to(t,e.child,null,n),e=Yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wx(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Ic(Error(z(422))),ca(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=xu({mode:"visible",children:r.children},i,0,null),o=Hr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&to(t,e.child,null,s),t.child.memoizedState=pd(s),t.memoizedState=dd,o);if(!(t.mode&1))return ca(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(z(419)),r=Ic(o,r,void 0),ca(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ct||l){if(r=et,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Zn(e,i),cn(r,e,i,-1))}return Xp(),r=Ic(Error(z(421))),ca(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fx.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ft=hr(i.nextSibling),Lt=t,Fe=!0,sn=null,e!==null&&(Yt[Kt++]=jn,Yt[Kt++]=Nn,Yt[Kt++]=ei,jn=e.id,Nn=e.overflow,ei=t),t=Yp(t,r.children),t.flags|=4096,t)}function g0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sd(e.return,t,n)}function jc(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vv(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ht(e,t,r.children,n),r=Me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&g0(e,n,t);else if(e.tag===19)g0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($e(Me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Sl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jc(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jc(t,!0,n,null,o);break;case"together":jc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function La(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ni|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xx(e,t,n){switch(t.tag){case 3:jv(t),eo();break;case 5:pv(t);break;case 1:kt(t.type)&&gl(t);break;case 4:Np(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$e(wl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($e(Me,Me.current&1),t.flags|=128,null):n&t.child.childLanes?Nv(e,t,n):($e(Me,Me.current&1),e=Yn(e,t,n),e!==null?e.sibling:null);$e(Me,Me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(Me,Me.current),r)break;return null;case 22:case 23:return t.lanes=0,Dv(e,t,n)}return Yn(e,t,n)}var zv,hd,Bv,Uv;zv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hd=function(){};Bv=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Nr(Cn.current);var o=null;switch(n){case"input":i=Df(e,i),r=Df(e,r),o=[];break;case"select":i=De({},i,{value:void 0}),r=De({},r,{value:void 0}),o=[];break;case"textarea":i=Nf(e,i),r=Nf(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}zf(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ls.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ls.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Te("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Uv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ro(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bx(e,t,n){var r=t.pendingProps;switch(Fp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return kt(t.type)&&ml(),ct(t),null;case 3:return r=t.stateNode,no(),Re(Ot),Re(pt),zp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(la(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sn!==null&&(Sd(sn),sn=null))),hd(e,t),ct(t),null;case 5:Vp(t);var i=Nr(xs.current);if(n=t.type,e!==null&&t.stateNode!=null)Bv(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return ct(t),null}if(e=Nr(Cn.current),la(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[wn]=t,r[vs]=o,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[wn]=t,e[vs]=r,zv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":Te("cancel",e),Te("close",e),i=r;break;case"iframe":case"object":case"embed":Te("load",e),i=r;break;case"video":case"audio":for(i=0;iio&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Fe)return ct(t),null}else 2*Ve()-o.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,n=Me.current,$e(Me,r?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return Jp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Sx(e,t){switch(Fp(t),t.tag){case 1:return kt(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return no(),Re(Ot),Re(pt),zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vp(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return no(),null;case 10:return Dp(t.type._context),null;case 22:case 23:return Jp(),null;case 24:return null;default:return null}}var fa=!1,dt=!1,Ex=typeof WeakSet=="function"?WeakSet:Set,K=null;function Ii(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function md(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var y0=!1;function Cx(e,t){if(Jf=fl,e=Yy(),_p(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xf={focusedElem:e,selectionRange:n},fl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,x=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:rn(t.type,g),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(w){Ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=y0,y0=!1,m}function Xo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&md(t,n,o)}i=i.next}while(i!==r)}}function vu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hv(e){var t=e.alternate;t!==null&&(e.alternate=null,Hv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[vs],delete t[nd],delete t[sx],delete t[ax])),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 Wv(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wv(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 yd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hl));else if(r!==4&&(e=e.child,e!==null))for(yd(e,t,n),e=e.sibling;e!==null;)yd(e,t,n),e=e.sibling}function vd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}var it=null,on=!1;function Xn(e,t,n){for(n=n.child;n!==null;)Zv(e,t,n),n=n.sibling}function Zv(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(cu,n)}catch{}switch(n.tag){case 5:dt||Ii(n,t);case 6:var r=it,i=on;it=null,Xn(e,t,n),it=r,on=i,it!==null&&(on?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(on?(e=it,n=n.stateNode,e.nodeType===8?Rc(e.parentNode,n):e.nodeType===1&&Rc(e,n),ps(e)):Rc(it,n.stateNode));break;case 4:r=it,i=on,it=n.stateNode.containerInfo,on=!0,Xn(e,t,n),it=r,on=i;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&md(n,t,s),i=i.next}while(i!==r)}Xn(e,t,n);break;case 1:if(!dt&&(Ii(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,Xn(e,t,n),dt=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function w0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ex),t.forEach(function(r){var i=Ax.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kx(r/1960))-r,10e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,Pl=0,we&6)throw Error(z(331));var i=we;for(we|=4,K=e.current;K!==null;){var o=K,s=o.child;if(K.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aVe()-Gp?Ur(e,0):qp|=n),Pt(e,t)}function e2(e,t){t===0&&(e.mode&1?(t=na,na<<=1,!(na&130023424)&&(na=4194304)):t=1);var n=yt();e=Zn(e,t),e!==null&&(js(e,t,n),Pt(e,n))}function Fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e2(e,n)}function Ax(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),e2(e,n)}var t2;t2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ot.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,xx(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Fe&&t.flags&1048576&&iv(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;La(e,t),e=t.pendingProps;var i=Xi(t,pt.current);Zi(t,n),i=Up(null,t,r,e,i,n);var o=Hp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kt(r)?(o=!0,gl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jp(t),i.updater=gu,t.stateNode=i,i._reactInternals=t,ld(t,r,e,n),t=fd(null,t,r,!0,o,n)):(t.tag=0,Fe&&o&&Rp(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(La(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Lx(r),e=rn(r,e),i){case 0:t=cd(null,t,r,e,n);break e;case 1:t=h0(null,t,r,e,n);break e;case 11:t=d0(null,t,r,e,n);break e;case 14:t=p0(null,t,r,rn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),cd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),h0(e,t,r,i,n);case 3:e:{if(jv(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lv(e,t),bl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ro(Error(z(423)),t),t=m0(e,t,r,n,i);break e}else if(r!==i){i=ro(Error(z(424)),t),t=m0(e,t,r,n,i);break e}else for(Ft=hr(t.stateNode.containerInfo.firstChild),Lt=t,Fe=!0,sn=null,n=dv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eo(),r===i){t=Yn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return pv(t),e===null&&od(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ed(r,i)?s=null:o!==null&&ed(r,o)&&(t.flags|=32),Iv(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&od(t),null;case 13:return Nv(e,t,n);case 4:return Np(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=to(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),d0(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,$e(wl,r._currentValue),r._currentValue=s,o!==null)if(dn(o.value,s)){if(o.children===i.children&&!Ot.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Vn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),sd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Zi(t,n),i=Jt(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=rn(r,t.pendingProps),i=rn(r.type,i),p0(e,t,r,i,n);case 15:return Lv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),La(e,t),t.tag=1,kt(r)?(e=!0,gl(t)):e=!1,Zi(t,n),cv(t,r,i),ld(t,r,i,n),fd(null,t,r,!0,e,n);case 19:return Vv(e,t,n);case 22:return Dv(e,t,n)}throw Error(z(156,t.tag))};function n2(e,t){return $y(e,t)}function Mx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 qt(e,t,n,r){return new Mx(e,t,n,r)}function eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lx(e){if(typeof e=="function")return eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wp)return 11;if(e===xp)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=qt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ja(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")eh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $i:return Hr(n.children,i,o,t);case vp:s=8,i|=8;break;case Ff:return e=qt(12,n,t,i|2),e.elementType=Ff,e.lanes=o,e;case Af:return e=qt(13,n,t,i),e.elementType=Af,e.lanes=o,e;case Mf:return e=qt(19,n,t,i),e.elementType=Mf,e.lanes=o,e;case fy:return xu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uy:s=10;break e;case cy:s=9;break e;case wp:s=11;break e;case xp:s=14;break e;case nr:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=qt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Hr(e,t,n,r){return e=qt(7,e,r,t),e.lanes=n,e}function xu(e,t,n,r){return e=qt(22,e,r,t),e.elementType=fy,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return e=qt(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dx(e,t,n,r,i){this.tag=t,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=xc(0),this.expirationTimes=xc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function th(e,t,n,r,i,o,s,l,a){return e=new Dx(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jp(o),e}function Ix(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),iy.exports=zt;var oh=iy.exports;const lj=cp(oh);var P0=oh;_f.createRoot=P0.createRoot,_f.hydrateRoot=P0.hydrateRoot;/** * @remix-run/router v1.8.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ux(){return Math.random().toString(36).substr(2,8)}function T0(e,t){return{usr:e.state,key:e.key,idx:t}}function Ed(e,t,n,r){return n===void 0&&(n=null),Os({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vo(t):t,{state:n,key:t&&t.key||r||Ux()})}function _l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hx(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=lr.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Os({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=lr.Pop;let x=c(),h=x==null?null:x-u;u=x,a&&a({action:l,location:g.location,delta:h})}function d(x,h){l=lr.Push;let p=Ed(g.location,x,h);n&&n(p,x),u=c()+1;let v=T0(p,u),w=g.createHref(p);try{s.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(w)}o&&a&&a({action:l,location:g.location,delta:1})}function y(x,h){l=lr.Replace;let p=Ed(g.location,x,h);n&&n(p,x),u=c();let v=T0(p,u),w=g.createHref(p);s.replaceState(v,"",w),o&&a&&a({action:l,location:g.location,delta:0})}function m(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:_l(x);return ze(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return l},get location(){return e(i,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener($0,f),a=x,()=>{i.removeEventListener($0,f),a=null}},createHref(x){return t(i,x)},createURL:m,encodeLocation(x){let h=m(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:y,go(x){return s.go(x)}};return g}var _0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_0||(_0={}));function Wx(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?vo(t):t,i=ah(r.pathname||"/",n);if(i==null)return null;let o=a2(e);Zx(o);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(ze(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=wr([r,a.relativePath]),c=n.concat(a);o.children&&o.children.length>0&&(ze(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),a2(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Xx(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of l2(o.path))i(o,s,a)}),t}function l2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=l2(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Zx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:e6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yx=/^:\w+$/,Kx=3,qx=2,Gx=1,Qx=10,Jx=-2,R0=e=>e==="*";function Xx(e,t){let n=e.split("/"),r=n.length;return n.some(R0)&&(r+=Jx),t&&(r+=qx),n.filter(i=>!R0(i)).reduce((i,o)=>i+(Yx.test(o)?Kx:o===""?Gx:Qx),r)}function e6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function t6(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(c==="*"){let d=l[f]||"";s=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=o6(l[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function r6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function i6(e){try{return decodeURI(e)}catch(t){return sh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o6(e,t){try{return decodeURIComponent(e)}catch(n){return sh(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ah(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function s6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?vo(e):e;return{pathname:n?n.startsWith("/")?n:a6(n,t):t,search:u6(r),hash:c6(i)}}function a6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function zc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=vo(e):(i=Os({},e),ze(!i.pathname||!i.pathname.includes("?"),zc("?","pathname","search",i)),ze(!i.pathname||!i.pathname.includes("#"),zc("#","pathname","hash",i)),ze(!i.search||!i.search.includes("#"),zc("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(r||s==null)l=n;else{let f=t.length-1;if(s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=s6(i,l),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const wr=e=>e.join("/").replace(/\/\/+/g,"/"),l6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function f6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const u2=["post","put","patch","delete"];new Set(u2);const d6=["get",...u2];new Set(d6);/** + */function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ux(){return Math.random().toString(36).substr(2,8)}function T0(e,t){return{usr:e.state,key:e.key,idx:t}}function Ed(e,t,n,r){return n===void 0&&(n=null),Os({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xo(t):t,{state:n,key:t&&t.key||r||Ux()})}function _l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Hx(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=lr.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Os({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=lr.Pop;let x=c(),h=x==null?null:x-u;u=x,a&&a({action:l,location:g.location,delta:h})}function d(x,h){l=lr.Push;let p=Ed(g.location,x,h);n&&n(p,x),u=c()+1;let v=T0(p,u),w=g.createHref(p);try{s.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(w)}o&&a&&a({action:l,location:g.location,delta:1})}function y(x,h){l=lr.Replace;let p=Ed(g.location,x,h);n&&n(p,x),u=c();let v=T0(p,u),w=g.createHref(p);s.replaceState(v,"",w),o&&a&&a({action:l,location:g.location,delta:0})}function m(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:_l(x);return ze(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return l},get location(){return e(i,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener($0,f),a=x,()=>{i.removeEventListener($0,f),a=null}},createHref(x){return t(i,x)},createURL:m,encodeLocation(x){let h=m(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:y,go(x){return s.go(x)}};return g}var _0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_0||(_0={}));function Wx(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?xo(t):t,i=ah(r.pathname||"/",n);if(i==null)return null;let o=a2(e);Zx(o);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(ze(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=wr([r,a.relativePath]),c=n.concat(a);o.children&&o.children.length>0&&(ze(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),a2(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Xx(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of l2(o.path))i(o,s,a)}),t}function l2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=l2(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Zx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:e6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yx=/^:\w+$/,Kx=3,qx=2,Gx=1,Qx=10,Jx=-2,R0=e=>e==="*";function Xx(e,t){let n=e.split("/"),r=n.length;return n.some(R0)&&(r+=Jx),t&&(r+=qx),n.filter(i=>!R0(i)).reduce((i,o)=>i+(Yx.test(o)?Kx:o===""?Gx:Qx),r)}function e6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function t6(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(c==="*"){let d=l[f]||"";s=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=o6(l[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function r6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function i6(e){try{return decodeURI(e)}catch(t){return sh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o6(e,t){try{return decodeURIComponent(e)}catch(n){return sh(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ah(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function s6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xo(e):e;return{pathname:n?n.startsWith("/")?n:a6(n,t):t,search:u6(r),hash:c6(i)}}function a6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function zc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function lh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=xo(e):(i=Os({},e),ze(!i.pathname||!i.pathname.includes("?"),zc("?","pathname","search",i)),ze(!i.pathname||!i.pathname.includes("#"),zc("#","pathname","hash",i)),ze(!i.search||!i.search.includes("#"),zc("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(r||s==null)l=n;else{let f=t.length-1;if(s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=s6(i,l),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const wr=e=>e.join("/").replace(/\/\/+/g,"/"),l6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),u6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function f6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const u2=["post","put","patch","delete"];new Set(u2);const d6=["get",...u2];new Set(d6);/** * React Router v6.15.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),s=k.useRef(!1);return d2(()=>{s.current=!0}),k.useCallback(function(a,u){if(u===void 0&&(u={}),!s.current)return;if(typeof a=="number"){n.go(a);return}let c=uh(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:wr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const m6=k.createContext(null);function g6(e){let t=k.useContext($n).outlet;return t&&k.createElement(m6.Provider,{value:e},t)}function uj(){let{matches:e}=k.useContext($n),t=e[e.length-1];return t?t.params:{}}function dh(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext($n),{pathname:i}=xo(),o=JSON.stringify(lh(r).map(s=>s.pathnameBase));return k.useMemo(()=>uh(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function y6(e,t){return v6(e,t)}function v6(e,t,n){wo()||ze(!1);let{navigator:r}=k.useContext(ci),{matches:i}=k.useContext($n),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let a=xo(),u;if(t){var c;let g=typeof t=="string"?vo(t):t;l==="/"||(c=g.pathname)!=null&&c.startsWith(l)||ze(!1),u=g}else u=a;let f=u.pathname||"/",d=l==="/"?f:f.slice(l.length)||"/",y=Wx(e,{pathname:d}),m=E6(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wr([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wr([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&m?k.createElement(Ou.Provider,{value:{location:Rl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:lr.Pop}},m):m}function w6(){let e=P6(),t=f6(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,o)}const x6=k.createElement(w6,null);class b6 extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement($n.Provider,{value:this.props.routeContext},k.createElement(f2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S6(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(ch);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement($n.Provider,{value:t},r)}function E6(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let l=o.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));l>=0||ze(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((l,a,u)=>{let c=a.route.id?s==null?void 0:s[a.route.id]:null,f=null;n&&(f=a.route.errorElement||x6);let d=t.concat(o.slice(0,u+1)),y=()=>{let m;return c?m=f:a.route.Component?m=k.createElement(a.route.Component,null):a.route.element?m=a.route.element:m=l,k.createElement(S6,{match:a,routeContext:{outlet:l,matches:d,isDataRoute:n!=null},children:m})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?k.createElement(b6,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):y()},null)}var p2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(p2||{}),Fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Fl||{});function C6(e){let t=k.useContext(ch);return t||ze(!1),t}function O6(e){let t=k.useContext(c2);return t||ze(!1),t}function k6(e){let t=k.useContext($n);return t||ze(!1),t}function h2(e){let t=k6(),n=t.matches[t.matches.length-1];return n.route.id||ze(!1),n.route.id}function P6(){var e;let t=k.useContext(f2),n=O6(Fl.UseRouteError),r=h2(Fl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function $6(){let{router:e}=C6(p2.UseNavigateStable),t=h2(Fl.UseNavigateStable),n=k.useRef(!1);return d2(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Rl({fromRouteId:t},o)))},[e,t])}function m2(e){let{to:t,replace:n,state:r,relative:i}=e;wo()||ze(!1);let{matches:o}=k.useContext($n),{pathname:s}=xo(),l=fh(),a=uh(t,lh(o).map(c=>c.pathnameBase),s,i==="path"),u=JSON.stringify(a);return k.useEffect(()=>l(JSON.parse(u),{replace:n,state:r,relative:i}),[l,u,i,n,r]),null}function T6(e){return g6(e.context)}function An(e){ze(!1)}function _6(e){let{basename:t="/",children:n=null,location:r,navigationType:i=lr.Pop,navigator:o,static:s=!1}=e;wo()&&ze(!1);let l=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:l,navigator:o,static:s}),[l,o,s]);typeof r=="string"&&(r=vo(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:y="default"}=r,m=k.useMemo(()=>{let g=ah(u,l);return g==null?null:{location:{pathname:g,search:c,hash:f,state:d,key:y},navigationType:i}},[l,u,c,f,d,y,i]);return m==null?null:k.createElement(ci.Provider,{value:a},k.createElement(Ou.Provider,{children:n,value:m}))}function R6(e){let{children:t,location:n}=e;return y6(Cd(t),n)}new Promise(()=>{});function Cd(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let o=[...t,i];if(r.type===k.Fragment){n.push.apply(n,Cd(r.props.children,o));return}r.type!==An&&ze(!1),!r.props.index||!r.props.children||ze(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Cd(r.props.children,o)),n.push(s)}),n}/** + */function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),s=k.useRef(!1);return d2(()=>{s.current=!0}),k.useCallback(function(a,u){if(u===void 0&&(u={}),!s.current)return;if(typeof a=="number"){n.go(a);return}let c=uh(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:wr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const m6=k.createContext(null);function g6(e){let t=k.useContext($n).outlet;return t&&k.createElement(m6.Provider,{value:e},t)}function uj(){let{matches:e}=k.useContext($n),t=e[e.length-1];return t?t.params:{}}function dh(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext($n),{pathname:i}=di(),o=JSON.stringify(lh(r).map(s=>s.pathnameBase));return k.useMemo(()=>uh(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function y6(e,t){return v6(e,t)}function v6(e,t,n){bo()||ze(!1);let{navigator:r}=k.useContext(fi),{matches:i}=k.useContext($n),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let a=di(),u;if(t){var c;let g=typeof t=="string"?xo(t):t;l==="/"||(c=g.pathname)!=null&&c.startsWith(l)||ze(!1),u=g}else u=a;let f=u.pathname||"/",d=l==="/"?f:f.slice(l.length)||"/",y=Wx(e,{pathname:d}),m=E6(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:wr([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:wr([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&m?k.createElement(Ou.Provider,{value:{location:Rl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:lr.Pop}},m):m}function w6(){let e=P6(),t=f6(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,o)}const x6=k.createElement(w6,null);class b6 extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement($n.Provider,{value:this.props.routeContext},k.createElement(f2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S6(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(ch);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement($n.Provider,{value:t},r)}function E6(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let l=o.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));l>=0||ze(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((l,a,u)=>{let c=a.route.id?s==null?void 0:s[a.route.id]:null,f=null;n&&(f=a.route.errorElement||x6);let d=t.concat(o.slice(0,u+1)),y=()=>{let m;return c?m=f:a.route.Component?m=k.createElement(a.route.Component,null):a.route.element?m=a.route.element:m=l,k.createElement(S6,{match:a,routeContext:{outlet:l,matches:d,isDataRoute:n!=null},children:m})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?k.createElement(b6,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:y(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):y()},null)}var p2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(p2||{}),Fl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Fl||{});function C6(e){let t=k.useContext(ch);return t||ze(!1),t}function O6(e){let t=k.useContext(c2);return t||ze(!1),t}function k6(e){let t=k.useContext($n);return t||ze(!1),t}function h2(e){let t=k6(),n=t.matches[t.matches.length-1];return n.route.id||ze(!1),n.route.id}function P6(){var e;let t=k.useContext(f2),n=O6(Fl.UseRouteError),r=h2(Fl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function $6(){let{router:e}=C6(p2.UseNavigateStable),t=h2(Fl.UseNavigateStable),n=k.useRef(!1);return d2(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Rl({fromRouteId:t},o)))},[e,t])}function m2(e){let{to:t,replace:n,state:r,relative:i}=e;bo()||ze(!1);let{matches:o}=k.useContext($n),{pathname:s}=di(),l=fh(),a=uh(t,lh(o).map(c=>c.pathnameBase),s,i==="path"),u=JSON.stringify(a);return k.useEffect(()=>l(JSON.parse(u),{replace:n,state:r,relative:i}),[l,u,i,n,r]),null}function T6(e){return g6(e.context)}function An(e){ze(!1)}function _6(e){let{basename:t="/",children:n=null,location:r,navigationType:i=lr.Pop,navigator:o,static:s=!1}=e;bo()&&ze(!1);let l=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:l,navigator:o,static:s}),[l,o,s]);typeof r=="string"&&(r=xo(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:y="default"}=r,m=k.useMemo(()=>{let g=ah(u,l);return g==null?null:{location:{pathname:g,search:c,hash:f,state:d,key:y},navigationType:i}},[l,u,c,f,d,y,i]);return m==null?null:k.createElement(fi.Provider,{value:a},k.createElement(Ou.Provider,{children:n,value:m}))}function R6(e){let{children:t,location:n}=e;return y6(Cd(t),n)}new Promise(()=>{});function Cd(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let o=[...t,i];if(r.type===k.Fragment){n.push.apply(n,Cd(r.props.children,o));return}r.type!==An&&ze(!1),!r.props.index||!r.props.children||ze(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Cd(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.15.0 * * Copyright (c) Remix Software Inc. @@ -64,33 +64,41 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function F6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A6(e,t){return e.button===0&&(!t||t==="_self")&&!F6(e)}const M6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],L6=["aria-current","caseSensitive","className","end","style","to","children"],D6="startTransition",F0=as[D6];function I6(e){let{basename:t,children:n,future:r,window:i}=e,o=k.useRef();o.current==null&&(o.current=Bx({window:i,v5Compat:!0}));let s=o.current,[l,a]=k.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=k.useCallback(f=>{u&&F0?F0(()=>a(f)):a(f)},[a,u]);return k.useLayoutEffect(()=>s.listen(c),[s,c]),k.createElement(_6,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s})}const j6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y2=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:a,to:u,preventScrollReset:c}=t,f=g2(t,M6),{basename:d}=k.useContext(ci),y,m=!1;if(typeof u=="string"&&N6.test(u)&&(y=u,j6))try{let p=new URL(window.location.href),v=u.startsWith("//")?new URL(p.protocol+u):new URL(u),w=ah(v.pathname,d);v.origin===p.origin&&w!=null?u=w+v.search+v.hash:m=!0}catch{}let g=p6(u,{relative:i}),x=z6(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:i});function h(p){r&&r(p),p.defaultPrevented||x(p)}return k.createElement("a",Al({},f,{href:y||g,onClick:m||o?r:h,ref:n,target:a}))}),V6=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:l,to:a,children:u}=t,c=g2(t,L6),f=dh(a,{relative:c.relative}),d=xo(),y=k.useContext(c2),{navigator:m}=k.useContext(ci),g=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,x=d.pathname,h=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(x=x.toLowerCase(),h=h?h.toLowerCase():null,g=g.toLowerCase());let p=x===g||!s&&x.startsWith(g)&&x.charAt(g.length)==="/",v=h!=null&&(h===g||!s&&h.startsWith(g)&&h.charAt(g.length)==="/"),w=p?r:void 0,b;typeof o=="function"?b=o({isActive:p,isPending:v}):b=[o,p?"active":null,v?"pending":null].filter(Boolean).join(" ");let C=typeof l=="function"?l({isActive:p,isPending:v}):l;return k.createElement(y2,Al({},c,{"aria-current":w,className:b,ref:n,style:C,to:a}),typeof u=="function"?u({isActive:p,isPending:v}):u)});var A0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(A0||(A0={}));var M0;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(M0||(M0={}));function z6(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,l=fh(),a=xo(),u=dh(e,{relative:s});return k.useCallback(c=>{if(A6(c,n)){c.preventDefault();let f=r!==void 0?r:_l(a)===_l(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[a,l,u,r,i,n,e,o,s])}const B6="modulepreload",U6=function(e){return"/byte-my-water-app/"+e},L0={},fi=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=U6(o),o in L0)return;L0[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":B6,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};function rt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var H6=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),D0=H6,Bc=()=>Math.random().toString(36).substring(7).split("").join("."),W6={INIT:`@@redux/INIT${Bc()}`,REPLACE:`@@redux/REPLACE${Bc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bc()}`},Ml=W6;function ph(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function hh(e,t,n){if(typeof e!="function")throw new Error(rt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(rt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rt(1));return n(hh)(e,t)}let r=e,i=t,o=new Map,s=o,l=0,a=!1;function u(){s===o&&(s=new Map,o.forEach((x,h)=>{s.set(h,x)}))}function c(){if(a)throw new Error(rt(3));return i}function f(x){if(typeof x!="function")throw new Error(rt(4));if(a)throw new Error(rt(5));let h=!0;u();const p=l++;return s.set(p,x),function(){if(h){if(a)throw new Error(rt(6));h=!1,u(),s.delete(p),o=null}}}function d(x){if(!ph(x))throw new Error(rt(7));if(typeof x.type>"u")throw new Error(rt(8));if(typeof x.type!="string")throw new Error(rt(17));if(a)throw new Error(rt(9));try{a=!0,i=r(i,x)}finally{a=!1}return(o=s).forEach(p=>{p()}),x}function y(x){if(typeof x!="function")throw new Error(rt(10));r=x,d({type:Ml.REPLACE})}function m(){const x=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(rt(11));function p(){const w=h;w.next&&w.next(c())}return p(),{unsubscribe:x(p)}},[D0](){return this}}}return d({type:Ml.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:y,[D0]:m}}function Z6(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ml.INIT})>"u")throw new Error(rt(12));if(typeof n(void 0,{type:Ml.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rt(13))})}function Y6(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw l&&l.type,new Error(rt(14));u[f]=m,a=a||m!==y}return a=a||r.length!==Object.keys(s).length,a?u:s}}function Ll(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function K6(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(rt(15))};const s={getState:i.getState,dispatch:(a,...u)=>o(a,...u)},l=e.map(a=>a(s));return o=Ll(...l)(i.dispatch),{...i,dispatch:o}}}function q6(e){return ph(e)&&"type"in e&&typeof e.type=="string"}var v2=Symbol.for("immer-nothing"),I0=Symbol.for("immer-draftable"),Nt=Symbol.for("immer-state");function an(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ro=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[Nt]}function Kn(e){var t;return e?w2(e)||Array.isArray(e)||!!e[I0]||!!((t=e.constructor)!=null&&t[I0])||Pu(e)||$u(e):!1}var G6=Object.prototype.constructor.toString();function w2(e){if(!e||typeof e!="object")return!1;const t=ro(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===G6}function Dl(e,t){ku(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ku(e){const t=e[Nt];return t?t.type_:Array.isArray(e)?1:Pu(e)?2:$u(e)?3:0}function Od(e,t){return ku(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x2(e,t,n){const r=ku(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Q6(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pu(e){return e instanceof Map}function $u(e){return e instanceof Set}function Lr(e){return e.copy_||e.base_}function kd(e,t){if(Pu(e))return new Map(e);if($u(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&w2(e))return ro(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Nt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=J6),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>mh(r,!0))),e}function J6(){an(2)}function Tu(e){return Object.isFrozen(e)}var X6={};function ri(e){const t=X6[e];return t||an(0,e),t}var ks;function b2(){return ks}function e8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function j0(e,t){t&&(ri("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pd(e){$d(e),e.drafts_.forEach(t8),e.drafts_=null}function $d(e){e===ks&&(ks=e.parent_)}function N0(e){return ks=e8(ks,e)}function t8(e){const t=e[Nt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function V0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Nt].modified_&&(Pd(t),an(4)),Kn(e)&&(e=Il(t,e),t.parent_||jl(t,e)),t.patches_&&ri("Patches").generateReplacementPatches_(n[Nt].base_,e,t.patches_,t.inversePatches_)):e=Il(t,n,[]),Pd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==v2?e:void 0}function Il(e,t,n){if(Tu(t))return t;const r=t[Nt];if(!r)return Dl(t,(i,o)=>z0(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return jl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Dl(o,(l,a)=>z0(e,r,i,l,a,n,s)),jl(e,i,!1),n&&e.patches_&&ri("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function z0(e,t,n,r,i,o,s){if(Cr(i)){const l=o&&t&&t.type_!==3&&!Od(t.assigned_,r)?o.concat(r):void 0,a=Il(e,i,l);if(x2(n,r,a),Cr(a))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Kn(i)&&!Tu(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Il(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&jl(e,i)}}function jl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mh(t,n)}function n8(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:b2(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=gh;n&&(i=[r],o=Ps);const{revoke:s,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=s,l}var gh={get(e,t){if(t===Nt)return e;const n=Lr(e);if(!Od(n,t))return r8(e,n,t);const r=n[t];return e.finalized_||!Kn(r)?r:r===Uc(e.base_,t)?(Hc(e),e.copy_[t]=_d(r,e)):r},has(e,t){return t in Lr(e)},ownKeys(e){return Reflect.ownKeys(Lr(e))},set(e,t,n){const r=S2(Lr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Uc(Lr(e),t),o=i==null?void 0:i[Nt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Q6(n,i)&&(n!==void 0||Od(e.base_,t)))return!0;Hc(e),Td(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Uc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Hc(e),Td(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Lr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){an(11)},getPrototypeOf(e){return ro(e.base_)},setPrototypeOf(){an(12)}},Ps={};Dl(gh,(e,t)=>{Ps[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ps.deleteProperty=function(e,t){return Ps.set.call(this,e,t,void 0)};Ps.set=function(e,t,n){return gh.set.call(this,e[0],t,n,e[0])};function Uc(e,t){const n=e[Nt];return(n?Lr(n):e)[t]}function r8(e,t,n){var i;const r=S2(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function S2(e,t){if(!(t in e))return;let n=ro(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ro(n)}}function Td(e){e.modified_||(e.modified_=!0,e.parent_&&Td(e.parent_))}function Hc(e){e.copy_||(e.copy_=kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var i8=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(a=o,...u){return s.produce(a,c=>n.call(this,c,...u))}}typeof n!="function"&&an(6),r!==void 0&&typeof r!="function"&&an(7);let i;if(Kn(t)){const o=N0(this),s=_d(t,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Pd(o):$d(o)}return j0(o,r),V0(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===v2&&(i=void 0),this.autoFreeze_&&mh(i,!0),r){const o=[],s=[];ri("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else an(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,a=>t(a,...l));let r,i;return[this.produce(t,n,(s,l)=>{r=s,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Kn(e)||an(8),Cr(e)&&(e=E2(e));const t=N0(this),n=_d(e,void 0);return n[Nt].isManual_=!0,$d(t),n}finishDraft(e,t){const n=e&&e[Nt];(!n||!n.isManual_)&&an(9);const{scope_:r}=n;return j0(r,t),V0(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ri("Patches").applyPatches_;return Cr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function _d(e,t){const n=Pu(e)?ri("MapSet").proxyMap_(e,t):$u(e)?ri("MapSet").proxySet_(e,t):n8(e,t);return(t?t.scope_:b2()).drafts_.push(n),n}function E2(e){return Cr(e)||an(10,e),C2(e)}function C2(e){if(!Kn(e)||Tu(e))return e;const t=e[Nt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=kd(e,t.scope_.immer_.useStrictShallowCopy_)}else n=kd(e,!0);return Dl(n,(r,i)=>{x2(n,r,C2(i))}),t&&(t.finalized_=!1),n}var Vt=new i8,O2=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseStrictShallowCopy.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function o8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function s8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function a8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var B0=e=>Array.isArray(e)?e:[e];function l8(e){const t=Array.isArray(e[0])?e[0]:e;return a8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function u8(e,t){const n=[],{length:r}=e;for(let i=0;i{n=ha(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function k2(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,l,a={},u=i.pop();typeof u=="object"&&(a=u,u=i.pop()),o8(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...a},{memoize:f,memoizeOptions:d=[],argsMemoize:y=yh,argsMemoizeOptions:m=[],devModeChecks:g={}}=c,x=B0(d),h=B0(m),p=l8(i),v=f(function(){return o++,u.apply(null,arguments)},...x),w=y(function(){s++;const C=u8(p,arguments);return l=v.apply(null,C),l},...h);return Object.assign(w,{resultFunc:u,memoizedResultFunc:v,dependencies:p,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var p8=k2(yh),h8=Object.assign((e,t=p8)=>{s8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,l,a)=>(s[n[a]]=l,s),{}))},{withTypes:()=>h8});function P2(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var m8=P2(),g8=P2,y8=(...e)=>{const t=k2(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...l)=>i(Cr(s)?E2(s):s,...l);return Object.assign(o,i),o},{withTypes:()=>n});return n};y8(yh);var v8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ll:Ll.apply(null,arguments)},w8=e=>e&&typeof e.match=="function";function zn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error($t(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>q6(r)&&r.type===e,n}var $2=class Ho extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ho.prototype)}static get[Symbol.species](){return Ho}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ho(...t[0].concat(this)):new Ho(...t.concat(this))}};function H0(e){return Kn(e)?O2(e,()=>{}):e}function W0(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error($t(10));const r=n.insert(t,e);return e.set(t,r),r}function x8(e){return typeof e=="boolean"}var b8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new $2;return n&&(x8(n)?s.push(m8):s.push(g8(n.extraArgument))),s},S8="RTK_autoBatch",T2=e=>t=>{setTimeout(t,e)},E8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T2(10),C8=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const l=new Set,a=e.type==="tick"?queueMicrotask:e.type==="raf"?E8:e.type==="callback"?e.queueNotification:T2(e.timeout),u=()=>{s=!1,o&&(o=!1,l.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),d=r.subscribe(f);return l.add(c),()=>{d(),l.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[S8]),o=!i,o&&(s||(s=!0,a(u))),r.dispatch(c)}finally{i=!0}}})},O8=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new $2(e);return r&&i.push(C8(typeof r=="object"?r:void 0)),i},k8=!0;function P8(e){const t=b8(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ph(n))l=Y6(n);else throw new Error($t(1));let a;typeof r=="function"?a=r(t):a=t();let u=Ll;i&&(u=v8({trace:!k8,...typeof i=="object"&&i}));const c=K6(...a),f=O8(c);let d=typeof s=="function"?s(f):f();const y=u(...d);return hh(l,o,y)}function _2(e){const t={},n=[];let r;const i={addCase(o,s){const l=typeof o=="string"?o:o.type;if(!l)throw new Error($t(28));if(l in t)throw new Error($t(29));return t[l]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function $8(e){return typeof e=="function"}function T8(e,t){let[n,r,i]=_2(t),o;if($8(e))o=()=>H0(e());else{const l=H0(e);o=()=>l}function s(l=o(),a){let u=[n[a.type],...r.filter(({matcher:c})=>c(a)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Cr(c)){const y=f(c,a);return y===void 0?c:y}else{if(Kn(c))return O2(c,d=>f(d,a));{const d=f(c,a);if(d===void 0){if(c===null)return c;throw new Error($t(9))}return d}}return c},l)}return s.getInitialState=o,s}var _8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",R2=(e=21)=>{let t="",n=e;for(;n--;)t+=_8[Math.random()*64|0];return t},R8=(e,t)=>w8(e)?e.match(t):e(t);function Na(...e){return t=>e.some(n=>R8(n,t))}var F8=["name","message","stack","code"],Wc=class{constructor(e,t){hc(this,"_type");this.payload=e,this.meta=t}},Z0=class{constructor(e,t){hc(this,"_type");this.payload=e,this.meta=t}},A8=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of F8)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Ut=(()=>{function e(t,n,r){const i=zn(t+"/fulfilled",(a,u,c,f)=>({payload:a,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),o=zn(t+"/pending",(a,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:a,requestStatus:"pending"}})),s=zn(t+"/rejected",(a,u,c,f,d)=>({payload:f,error:(r&&r.serializeError||A8)(a||"Rejected"),meta:{...d||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(a==null?void 0:a.name)==="AbortError",condition:(a==null?void 0:a.name)==="ConditionError"}}));function l(a){return(u,c,f)=>{const d=r!=null&&r.idGenerator?r.idGenerator(a):R2(),y=new AbortController;let m,g;function x(p){g=p,y.abort()}const h=async function(){var w,b;let p;try{let C=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,a,{getState:c,extra:f});if(L8(C)&&(C=await C),C===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const S=new Promise((P,$)=>{m=()=>{$({name:"AbortError",message:g||"Aborted"})},y.signal.addEventListener("abort",m)});u(o(d,a,(b=r==null?void 0:r.getPendingMeta)==null?void 0:b.call(r,{requestId:d,arg:a},{getState:c,extra:f}))),p=await Promise.race([S,Promise.resolve(n(a,{dispatch:u,getState:c,extra:f,requestId:d,signal:y.signal,abort:x,rejectWithValue:(P,$)=>new Wc(P,$),fulfillWithValue:(P,$)=>new Z0(P,$)})).then(P=>{if(P instanceof Wc)throw P;return P instanceof Z0?i(P.payload,d,a,P.meta):i(P,d,a)})])}catch(C){p=C instanceof Wc?s(null,d,a,C.payload,C.meta):s(C,d,a)}finally{m&&y.signal.removeEventListener("abort",m)}return r&&!r.dispatchConditionRejection&&s.match(p)&&p.meta.condition||u(p),p}();return Object.assign(h,{abort:x,requestId:d,arg:a,unwrap(){return h.then(M8)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,settled:Na(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function M8(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function L8(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var D8=Symbol.for("rtk-slice-createasyncthunk");function I8(e,t){return`${e}/${t}`}function j8({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[D8];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error($t(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers(V8()):i.reducers)||{},a=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,w){const b=typeof v=="string"?v:v.type;if(!b)throw new Error($t(12));if(b in u.sliceCaseReducersByType)throw new Error($t(13));return u.sliceCaseReducersByType[b]=w,c},addMatcher(v,w){return u.sliceMatchers.push({matcher:v,reducer:w}),c},exposeAction(v,w){return u.actionCreators[v]=w,c},exposeCaseReducer(v,w){return u.sliceCaseReducersByName[v]=w,c}};a.forEach(v=>{const w=l[v],b={reducerName:v,type:I8(o,v),createNotation:typeof i.reducers=="function"};B8(w)?H8(b,w,c,t):z8(b,w,c)});function f(){const[v={},w=[],b=void 0]=typeof i.extraReducers=="function"?_2(i.extraReducers):[i.extraReducers],C={...v,...u.sliceCaseReducersByType};return T8(i.initialState,S=>{for(let P in C)S.addCase(P,C[P]);for(let P of u.sliceMatchers)S.addMatcher(P.matcher,P.reducer);for(let P of w)S.addMatcher(P.matcher,P.reducer);b&&S.addDefaultCase(b)})}const d=v=>v,y=new Map;let m;function g(v,w){return m||(m=f()),m(v,w)}function x(){return m||(m=f()),m.getInitialState()}function h(v,w=!1){function b(S){let P=S[v];return typeof P>"u"&&w&&(P=x()),P}function C(S=d){const P=W0(y,w,{insert:()=>new WeakMap});return W0(P,S,{insert:()=>{const $={};for(const[R,D]of Object.entries(i.selectors??{}))$[R]=N8(D,S,x,w);return $}})}return{reducerPath:v,getSelectors:C,get selectors(){return C(b)},selectSlice:b}}const p={name:o,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...h(s),injectInto(v,{reducerPath:w,...b}={}){const C=w??s;return v.inject({reducerPath:C,reducer:g},b),{...p,...h(C,!0)}}};return p}}function N8(e,t,n,r){function i(o,...s){let l=t(o);return typeof l>"u"&&r&&(l=n()),e(l,...s)}return i.unwrapped=e,i}var vh=j8();function V8(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function z8({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!U8(r))throw new Error($t(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?zn(e,s):zn(e))}function B8(e){return e._reducerDefinitionType==="asyncThunk"}function U8(e){return e._reducerDefinitionType==="reducerWithPrepare"}function H8({type:e,reducerName:t},n,r,i){if(!i)throw new Error($t(18));const{payloadCreator:o,fulfilled:s,pending:l,rejected:a,settled:u,options:c}=n,f=i(e,o,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),l&&r.addCase(f.pending,l),a&&r.addCase(f.rejected,a),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||ma,pending:l||ma,rejected:a||ma,settled:u||ma})}function ma(){}var W8=(e,t)=>{if(typeof e!="function")throw new Error($t(32))},wh="listenerMiddleware",Z8=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=zn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error($t(21));return W8(o),{predicate:i,type:t,effect:o}},Y8=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Z8(e);return{id:R2(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error($t(22))}}},{withTypes:()=>Y8}),K8=Object.assign(zn(`${wh}/add`),{withTypes:()=>K8});zn(`${wh}/removeAll`);var q8=Object.assign(zn(`${wh}/remove`),{withTypes:()=>q8});function $t(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function F2(e,t){return function(){return e.apply(t,arguments)}}const{toString:G8}=Object.prototype,{getPrototypeOf:xh}=Object,_u=(e=>t=>{const n=G8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=e=>(e=e.toLowerCase(),t=>_u(t)===e),Ru=e=>t=>typeof t===e,{isArray:bo}=Array,$s=Ru("undefined");function Q8(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A2=Tn("ArrayBuffer");function J8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A2(e.buffer),t}const X8=Ru("string"),Qt=Ru("function"),M2=Ru("number"),Fu=e=>e!==null&&typeof e=="object",eb=e=>e===!0||e===!1,Va=e=>{if(_u(e)!=="object")return!1;const t=xh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tb=Tn("Date"),nb=Tn("File"),rb=Tn("Blob"),ib=Tn("FileList"),ob=e=>Fu(e)&&Qt(e.pipe),sb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=_u(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},ab=Tn("URLSearchParams"),lb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bo(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const D2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I2=e=>!$s(e)&&e!==D2;function Rd(){const{caseless:e}=I2(this)&&this||{},t={},n=(r,i)=>{const o=e&&L2(t,i)||i;Va(t[o])&&Va(r)?t[o]=Rd(t[o],r):Va(r)?t[o]=Rd({},r):bo(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Bs(t,(i,o)=>{n&&Qt(i)?e[o]=F2(i,n):e[o]=i},{allOwnKeys:r}),e),cb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},db=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&xh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hb=e=>{if(!e)return null;if(bo(e))return e;let t=e.length;if(!M2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xh(Uint8Array)),gb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},yb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vb=Tn("HTMLFormElement"),wb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Y0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xb=Tn("RegExp"),j2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bs(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},bb=e=>{j2(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sb=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return bo(e)?r(e):r(String(e).split(t)),n},Eb=()=>{},Cb=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Zc="abcdefghijklmnopqrstuvwxyz",K0="0123456789",N2={DIGIT:K0,ALPHA:Zc,ALPHA_DIGIT:Zc+Zc.toUpperCase()+K0},Ob=(e=16,t=N2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kb(e){return!!(e&&Qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pb=e=>{const t=new Array(10),n=(r,i)=>{if(Fu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=bo(r)?[]:{};return Bs(r,(s,l)=>{const a=n(s,i+1);!$s(a)&&(o[l]=a)}),t[i]=void 0,o}}return r};return n(e,0)},$b=Tn("AsyncFunction"),Tb=e=>e&&(Fu(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),L={isArray:bo,isArrayBuffer:A2,isBuffer:Q8,isFormData:sb,isArrayBufferView:J8,isString:X8,isNumber:M2,isBoolean:eb,isObject:Fu,isPlainObject:Va,isUndefined:$s,isDate:tb,isFile:nb,isBlob:rb,isRegExp:xb,isFunction:Qt,isStream:ob,isURLSearchParams:ab,isTypedArray:mb,isFileList:ib,forEach:Bs,merge:Rd,extend:ub,trim:lb,stripBOM:cb,inherits:fb,toFlatObject:db,kindOf:_u,kindOfTest:Tn,endsWith:pb,toArray:hb,forEachEntry:gb,matchAll:yb,isHTMLForm:vb,hasOwnProperty:Y0,hasOwnProp:Y0,reduceDescriptors:j2,freezeMethods:bb,toObjectSet:Sb,toCamelCase:wb,noop:Eb,toFiniteNumber:Cb,findKey:L2,global:D2,isContextDefined:I2,ALPHABET:N2,generateString:Ob,isSpecCompliantForm:kb,toJSONObject:Pb,isAsyncFn:$b,isThenable:Tb};function ve(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}L.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V2=ve.prototype,z2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{z2[e]={value:e}});Object.defineProperties(ve,z2);Object.defineProperty(V2,"isAxiosError",{value:!0});ve.from=(e,t,n,r,i,o)=>{const s=Object.create(V2);return L.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ve.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const _b=null;function Fd(e){return L.isPlainObject(e)||L.isArray(e)}function B2(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function q0(e,t,n){return e?e.concat(t).map(function(i,o){return i=B2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Rb(e){return L.isArray(e)&&!e.some(Fd)}const Fb=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Au(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!L.isUndefined(x[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(L.isDate(m))return m.toISOString();if(!a&&L.isBlob(m))throw new ve("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(m)||L.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,x){let h=m;if(m&&!x&&typeof m=="object"){if(L.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(L.isArray(m)&&Rb(m)||(L.isFileList(m)||L.endsWith(g,"[]"))&&(h=L.toArray(m)))return g=B2(g),h.forEach(function(v,w){!(L.isUndefined(v)||v===null)&&t.append(s===!0?q0([g],w,o):s===null?g:g+"[]",u(v))}),!1}return Fd(m)?!0:(t.append(q0(x,g,o),u(m)),!1)}const f=[],d=Object.assign(Fb,{defaultVisitor:c,convertValue:u,isVisitable:Fd});function y(m,g){if(!L.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),L.forEach(m,function(h,p){(!(L.isUndefined(h)||h===null)&&i.call(t,h,L.isString(p)?p.trim():p,g,d))===!0&&y(h,g?g.concat(p):[p])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return y(e),t}function G0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function bh(e,t){this._pairs=[],e&&Au(e,this,t)}const U2=bh.prototype;U2.append=function(t,n){this._pairs.push([t,n])};U2.toString=function(t){const n=t?function(r){return t.call(this,r,G0)}:G0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ab(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H2(e,t,n){if(!t)return e;const r=n&&n.encode||Ab,i=n&&n.serialize;let o;if(i?o=i(t,n):o=L.isURLSearchParams(t)?t.toString():new bh(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Mb{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Q0=Mb,W2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lb=typeof URLSearchParams<"u"?URLSearchParams:bh,Db=typeof FormData<"u"?FormData:null,Ib=typeof Blob<"u"?Blob:null,jb={isBrowser:!0,classes:{URLSearchParams:Lb,FormData:Db,Blob:Ib},protocols:["http","https","file","blob","url","data"]},Z2=typeof window<"u"&&typeof document<"u",Nb=(e=>Z2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vb=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z2,hasStandardBrowserEnv:Nb,hasStandardBrowserWebWorkerEnv:Vb},Symbol.toStringTag,{value:"Module"})),xn={...zb,...jb};function Bb(e,t){return Au(e,new xn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return xn.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ub(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hb(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&L.isArray(i)?i.length:s,a?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=Hb(i[s])),!l)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,i)=>{t(Ub(r),i,n,0)}),n}return null}function Wb(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Sh={transitional:W2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(t);if(o&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return i?JSON.stringify(Y2(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bb(t,this.formSerializer).toString();if((l=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Au(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Wb(t)):t}],transformResponse:[function(t){const n=this.transitional||Sh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&L.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ve.from(l,ve.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Sh.headers[e]={}});const Eh=Sh,Zb=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yb=e=>{const t={};let n,r,i;return e&&e.split(` + */function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function F6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A6(e,t){return e.button===0&&(!t||t==="_self")&&!F6(e)}const M6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],L6=["aria-current","caseSensitive","className","end","style","to","children"],D6="startTransition",F0=as[D6];function I6(e){let{basename:t,children:n,future:r,window:i}=e,o=k.useRef();o.current==null&&(o.current=Bx({window:i,v5Compat:!0}));let s=o.current,[l,a]=k.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=k.useCallback(f=>{u&&F0?F0(()=>a(f)):a(f)},[a,u]);return k.useLayoutEffect(()=>s.listen(c),[s,c]),k.createElement(_6,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s})}const j6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y2=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:a,to:u,preventScrollReset:c}=t,f=g2(t,M6),{basename:d}=k.useContext(fi),y,m=!1;if(typeof u=="string"&&N6.test(u)&&(y=u,j6))try{let p=new URL(window.location.href),v=u.startsWith("//")?new URL(p.protocol+u):new URL(u),w=ah(v.pathname,d);v.origin===p.origin&&w!=null?u=w+v.search+v.hash:m=!0}catch{}let g=p6(u,{relative:i}),x=z6(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:i});function h(p){r&&r(p),p.defaultPrevented||x(p)}return k.createElement("a",Al({},f,{href:y||g,onClick:m||o?r:h,ref:n,target:a}))}),V6=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:l,to:a,children:u}=t,c=g2(t,L6),f=dh(a,{relative:c.relative}),d=di(),y=k.useContext(c2),{navigator:m}=k.useContext(fi),g=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,x=d.pathname,h=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(x=x.toLowerCase(),h=h?h.toLowerCase():null,g=g.toLowerCase());let p=x===g||!s&&x.startsWith(g)&&x.charAt(g.length)==="/",v=h!=null&&(h===g||!s&&h.startsWith(g)&&h.charAt(g.length)==="/"),w=p?r:void 0,b;typeof o=="function"?b=o({isActive:p,isPending:v}):b=[o,p?"active":null,v?"pending":null].filter(Boolean).join(" ");let C=typeof l=="function"?l({isActive:p,isPending:v}):l;return k.createElement(y2,Al({},c,{"aria-current":w,className:b,ref:n,style:C,to:a}),typeof u=="function"?u({isActive:p,isPending:v}):u)});var A0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(A0||(A0={}));var M0;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(M0||(M0={}));function z6(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,l=fh(),a=di(),u=dh(e,{relative:s});return k.useCallback(c=>{if(A6(c,n)){c.preventDefault();let f=r!==void 0?r:_l(a)===_l(u);l(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[a,l,u,r,i,n,e,o,s])}const B6="modulepreload",U6=function(e){return"/byte-my-water-app/"+e},L0={},pi=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=U6(o),o in L0)return;L0[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":B6,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};function rt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var H6=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),D0=H6,Bc=()=>Math.random().toString(36).substring(7).split("").join("."),W6={INIT:`@@redux/INIT${Bc()}`,REPLACE:`@@redux/REPLACE${Bc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bc()}`},Ml=W6;function ph(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function hh(e,t,n){if(typeof e!="function")throw new Error(rt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(rt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rt(1));return n(hh)(e,t)}let r=e,i=t,o=new Map,s=o,l=0,a=!1;function u(){s===o&&(s=new Map,o.forEach((x,h)=>{s.set(h,x)}))}function c(){if(a)throw new Error(rt(3));return i}function f(x){if(typeof x!="function")throw new Error(rt(4));if(a)throw new Error(rt(5));let h=!0;u();const p=l++;return s.set(p,x),function(){if(h){if(a)throw new Error(rt(6));h=!1,u(),s.delete(p),o=null}}}function d(x){if(!ph(x))throw new Error(rt(7));if(typeof x.type>"u")throw new Error(rt(8));if(typeof x.type!="string")throw new Error(rt(17));if(a)throw new Error(rt(9));try{a=!0,i=r(i,x)}finally{a=!1}return(o=s).forEach(p=>{p()}),x}function y(x){if(typeof x!="function")throw new Error(rt(10));r=x,d({type:Ml.REPLACE})}function m(){const x=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(rt(11));function p(){const w=h;w.next&&w.next(c())}return p(),{unsubscribe:x(p)}},[D0](){return this}}}return d({type:Ml.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:y,[D0]:m}}function Z6(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ml.INIT})>"u")throw new Error(rt(12));if(typeof n(void 0,{type:Ml.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rt(13))})}function Y6(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw l&&l.type,new Error(rt(14));u[f]=m,a=a||m!==y}return a=a||r.length!==Object.keys(s).length,a?u:s}}function Ll(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function K6(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(rt(15))};const s={getState:i.getState,dispatch:(a,...u)=>o(a,...u)},l=e.map(a=>a(s));return o=Ll(...l)(i.dispatch),{...i,dispatch:o}}}function q6(e){return ph(e)&&"type"in e&&typeof e.type=="string"}var v2=Symbol.for("immer-nothing"),I0=Symbol.for("immer-draftable"),Nt=Symbol.for("immer-state");function an(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var oo=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[Nt]}function Kn(e){var t;return e?w2(e)||Array.isArray(e)||!!e[I0]||!!((t=e.constructor)!=null&&t[I0])||Pu(e)||$u(e):!1}var G6=Object.prototype.constructor.toString();function w2(e){if(!e||typeof e!="object")return!1;const t=oo(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===G6}function Dl(e,t){ku(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ku(e){const t=e[Nt];return t?t.type_:Array.isArray(e)?1:Pu(e)?2:$u(e)?3:0}function Od(e,t){return ku(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function x2(e,t,n){const r=ku(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Q6(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pu(e){return e instanceof Map}function $u(e){return e instanceof Set}function Dr(e){return e.copy_||e.base_}function kd(e,t){if(Pu(e))return new Map(e);if($u(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&w2(e))return oo(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Nt];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=J6),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>mh(r,!0))),e}function J6(){an(2)}function Tu(e){return Object.isFrozen(e)}var X6={};function ii(e){const t=X6[e];return t||an(0,e),t}var ks;function b2(){return ks}function e8(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function j0(e,t){t&&(ii("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pd(e){$d(e),e.drafts_.forEach(t8),e.drafts_=null}function $d(e){e===ks&&(ks=e.parent_)}function N0(e){return ks=e8(ks,e)}function t8(e){const t=e[Nt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function V0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Nt].modified_&&(Pd(t),an(4)),Kn(e)&&(e=Il(t,e),t.parent_||jl(t,e)),t.patches_&&ii("Patches").generateReplacementPatches_(n[Nt].base_,e,t.patches_,t.inversePatches_)):e=Il(t,n,[]),Pd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==v2?e:void 0}function Il(e,t,n){if(Tu(t))return t;const r=t[Nt];if(!r)return Dl(t,(i,o)=>z0(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return jl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Dl(o,(l,a)=>z0(e,r,i,l,a,n,s)),jl(e,i,!1),n&&e.patches_&&ii("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function z0(e,t,n,r,i,o,s){if(Cr(i)){const l=o&&t&&t.type_!==3&&!Od(t.assigned_,r)?o.concat(r):void 0,a=Il(e,i,l);if(x2(n,r,a),Cr(a))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Kn(i)&&!Tu(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Il(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&jl(e,i)}}function jl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&mh(t,n)}function n8(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:b2(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=gh;n&&(i=[r],o=Ps);const{revoke:s,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=s,l}var gh={get(e,t){if(t===Nt)return e;const n=Dr(e);if(!Od(n,t))return r8(e,n,t);const r=n[t];return e.finalized_||!Kn(r)?r:r===Uc(e.base_,t)?(Hc(e),e.copy_[t]=_d(r,e)):r},has(e,t){return t in Dr(e)},ownKeys(e){return Reflect.ownKeys(Dr(e))},set(e,t,n){const r=S2(Dr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Uc(Dr(e),t),o=i==null?void 0:i[Nt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Q6(n,i)&&(n!==void 0||Od(e.base_,t)))return!0;Hc(e),Td(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Uc(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Hc(e),Td(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Dr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){an(11)},getPrototypeOf(e){return oo(e.base_)},setPrototypeOf(){an(12)}},Ps={};Dl(gh,(e,t)=>{Ps[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ps.deleteProperty=function(e,t){return Ps.set.call(this,e,t,void 0)};Ps.set=function(e,t,n){return gh.set.call(this,e[0],t,n,e[0])};function Uc(e,t){const n=e[Nt];return(n?Dr(n):e)[t]}function r8(e,t,n){var i;const r=S2(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function S2(e,t){if(!(t in e))return;let n=oo(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=oo(n)}}function Td(e){e.modified_||(e.modified_=!0,e.parent_&&Td(e.parent_))}function Hc(e){e.copy_||(e.copy_=kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var i8=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(a=o,...u){return s.produce(a,c=>n.call(this,c,...u))}}typeof n!="function"&&an(6),r!==void 0&&typeof r!="function"&&an(7);let i;if(Kn(t)){const o=N0(this),s=_d(t,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Pd(o):$d(o)}return j0(o,r),V0(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===v2&&(i=void 0),this.autoFreeze_&&mh(i,!0),r){const o=[],s=[];ii("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else an(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,a=>t(a,...l));let r,i;return[this.produce(t,n,(s,l)=>{r=s,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Kn(e)||an(8),Cr(e)&&(e=E2(e));const t=N0(this),n=_d(e,void 0);return n[Nt].isManual_=!0,$d(t),n}finishDraft(e,t){const n=e&&e[Nt];(!n||!n.isManual_)&&an(9);const{scope_:r}=n;return j0(r,t),V0(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ii("Patches").applyPatches_;return Cr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function _d(e,t){const n=Pu(e)?ii("MapSet").proxyMap_(e,t):$u(e)?ii("MapSet").proxySet_(e,t):n8(e,t);return(t?t.scope_:b2()).drafts_.push(n),n}function E2(e){return Cr(e)||an(10,e),C2(e)}function C2(e){if(!Kn(e)||Tu(e))return e;const t=e[Nt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=kd(e,t.scope_.immer_.useStrictShallowCopy_)}else n=kd(e,!0);return Dl(n,(r,i)=>{x2(n,r,C2(i))}),t&&(t.finalized_=!1),n}var Vt=new i8,O2=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseStrictShallowCopy.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function o8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function s8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function a8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var B0=e=>Array.isArray(e)?e:[e];function l8(e){const t=Array.isArray(e[0])?e[0]:e;return a8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function u8(e,t){const n=[],{length:r}=e;for(let i=0;i{n=ha(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function k2(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,l,a={},u=i.pop();typeof u=="object"&&(a=u,u=i.pop()),o8(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...a},{memoize:f,memoizeOptions:d=[],argsMemoize:y=yh,argsMemoizeOptions:m=[],devModeChecks:g={}}=c,x=B0(d),h=B0(m),p=l8(i),v=f(function(){return o++,u.apply(null,arguments)},...x),w=y(function(){s++;const C=u8(p,arguments);return l=v.apply(null,C),l},...h);return Object.assign(w,{resultFunc:u,memoizedResultFunc:v,dependencies:p,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var p8=k2(yh),h8=Object.assign((e,t=p8)=>{s8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,l,a)=>(s[n[a]]=l,s),{}))},{withTypes:()=>h8});function P2(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var m8=P2(),g8=P2,y8=(...e)=>{const t=k2(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...l)=>i(Cr(s)?E2(s):s,...l);return Object.assign(o,i),o},{withTypes:()=>n});return n};y8(yh);var v8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ll:Ll.apply(null,arguments)},w8=e=>e&&typeof e.match=="function";function zn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error($t(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>q6(r)&&r.type===e,n}var $2=class Ho extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ho.prototype)}static get[Symbol.species](){return Ho}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ho(...t[0].concat(this)):new Ho(...t.concat(this))}};function H0(e){return Kn(e)?O2(e,()=>{}):e}function W0(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error($t(10));const r=n.insert(t,e);return e.set(t,r),r}function x8(e){return typeof e=="boolean"}var b8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new $2;return n&&(x8(n)?s.push(m8):s.push(g8(n.extraArgument))),s},S8="RTK_autoBatch",T2=e=>t=>{setTimeout(t,e)},E8=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T2(10),C8=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const l=new Set,a=e.type==="tick"?queueMicrotask:e.type==="raf"?E8:e.type==="callback"?e.queueNotification:T2(e.timeout),u=()=>{s=!1,o&&(o=!1,l.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),d=r.subscribe(f);return l.add(c),()=>{d(),l.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[S8]),o=!i,o&&(s||(s=!0,a(u))),r.dispatch(c)}finally{i=!0}}})},O8=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new $2(e);return r&&i.push(C8(typeof r=="object"?r:void 0)),i},k8=!0;function P8(e){const t=b8(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ph(n))l=Y6(n);else throw new Error($t(1));let a;typeof r=="function"?a=r(t):a=t();let u=Ll;i&&(u=v8({trace:!k8,...typeof i=="object"&&i}));const c=K6(...a),f=O8(c);let d=typeof s=="function"?s(f):f();const y=u(...d);return hh(l,o,y)}function _2(e){const t={},n=[];let r;const i={addCase(o,s){const l=typeof o=="string"?o:o.type;if(!l)throw new Error($t(28));if(l in t)throw new Error($t(29));return t[l]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function $8(e){return typeof e=="function"}function T8(e,t){let[n,r,i]=_2(t),o;if($8(e))o=()=>H0(e());else{const l=H0(e);o=()=>l}function s(l=o(),a){let u=[n[a.type],...r.filter(({matcher:c})=>c(a)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Cr(c)){const y=f(c,a);return y===void 0?c:y}else{if(Kn(c))return O2(c,d=>f(d,a));{const d=f(c,a);if(d===void 0){if(c===null)return c;throw new Error($t(9))}return d}}return c},l)}return s.getInitialState=o,s}var _8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",R2=(e=21)=>{let t="",n=e;for(;n--;)t+=_8[Math.random()*64|0];return t},R8=(e,t)=>w8(e)?e.match(t):e(t);function Na(...e){return t=>e.some(n=>R8(n,t))}var F8=["name","message","stack","code"],Wc=class{constructor(e,t){hc(this,"_type");this.payload=e,this.meta=t}},Z0=class{constructor(e,t){hc(this,"_type");this.payload=e,this.meta=t}},A8=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of F8)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Ut=(()=>{function e(t,n,r){const i=zn(t+"/fulfilled",(a,u,c,f)=>({payload:a,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),o=zn(t+"/pending",(a,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:a,requestStatus:"pending"}})),s=zn(t+"/rejected",(a,u,c,f,d)=>({payload:f,error:(r&&r.serializeError||A8)(a||"Rejected"),meta:{...d||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(a==null?void 0:a.name)==="AbortError",condition:(a==null?void 0:a.name)==="ConditionError"}}));function l(a){return(u,c,f)=>{const d=r!=null&&r.idGenerator?r.idGenerator(a):R2(),y=new AbortController;let m,g;function x(p){g=p,y.abort()}const h=async function(){var w,b;let p;try{let C=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,a,{getState:c,extra:f});if(L8(C)&&(C=await C),C===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const S=new Promise((P,$)=>{m=()=>{$({name:"AbortError",message:g||"Aborted"})},y.signal.addEventListener("abort",m)});u(o(d,a,(b=r==null?void 0:r.getPendingMeta)==null?void 0:b.call(r,{requestId:d,arg:a},{getState:c,extra:f}))),p=await Promise.race([S,Promise.resolve(n(a,{dispatch:u,getState:c,extra:f,requestId:d,signal:y.signal,abort:x,rejectWithValue:(P,$)=>new Wc(P,$),fulfillWithValue:(P,$)=>new Z0(P,$)})).then(P=>{if(P instanceof Wc)throw P;return P instanceof Z0?i(P.payload,d,a,P.meta):i(P,d,a)})])}catch(C){p=C instanceof Wc?s(null,d,a,C.payload,C.meta):s(C,d,a)}finally{m&&y.signal.removeEventListener("abort",m)}return r&&!r.dispatchConditionRejection&&s.match(p)&&p.meta.condition||u(p),p}();return Object.assign(h,{abort:x,requestId:d,arg:a,unwrap(){return h.then(M8)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,settled:Na(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function M8(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function L8(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var D8=Symbol.for("rtk-slice-createasyncthunk");function I8(e,t){return`${e}/${t}`}function j8({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[D8];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error($t(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers(V8()):i.reducers)||{},a=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,w){const b=typeof v=="string"?v:v.type;if(!b)throw new Error($t(12));if(b in u.sliceCaseReducersByType)throw new Error($t(13));return u.sliceCaseReducersByType[b]=w,c},addMatcher(v,w){return u.sliceMatchers.push({matcher:v,reducer:w}),c},exposeAction(v,w){return u.actionCreators[v]=w,c},exposeCaseReducer(v,w){return u.sliceCaseReducersByName[v]=w,c}};a.forEach(v=>{const w=l[v],b={reducerName:v,type:I8(o,v),createNotation:typeof i.reducers=="function"};B8(w)?H8(b,w,c,t):z8(b,w,c)});function f(){const[v={},w=[],b=void 0]=typeof i.extraReducers=="function"?_2(i.extraReducers):[i.extraReducers],C={...v,...u.sliceCaseReducersByType};return T8(i.initialState,S=>{for(let P in C)S.addCase(P,C[P]);for(let P of u.sliceMatchers)S.addMatcher(P.matcher,P.reducer);for(let P of w)S.addMatcher(P.matcher,P.reducer);b&&S.addDefaultCase(b)})}const d=v=>v,y=new Map;let m;function g(v,w){return m||(m=f()),m(v,w)}function x(){return m||(m=f()),m.getInitialState()}function h(v,w=!1){function b(S){let P=S[v];return typeof P>"u"&&w&&(P=x()),P}function C(S=d){const P=W0(y,w,{insert:()=>new WeakMap});return W0(P,S,{insert:()=>{const $={};for(const[R,D]of Object.entries(i.selectors??{}))$[R]=N8(D,S,x,w);return $}})}return{reducerPath:v,getSelectors:C,get selectors(){return C(b)},selectSlice:b}}const p={name:o,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...h(s),injectInto(v,{reducerPath:w,...b}={}){const C=w??s;return v.inject({reducerPath:C,reducer:g},b),{...p,...h(C,!0)}}};return p}}function N8(e,t,n,r){function i(o,...s){let l=t(o);return typeof l>"u"&&r&&(l=n()),e(l,...s)}return i.unwrapped=e,i}var vh=j8();function V8(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function z8({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!U8(r))throw new Error($t(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?zn(e,s):zn(e))}function B8(e){return e._reducerDefinitionType==="asyncThunk"}function U8(e){return e._reducerDefinitionType==="reducerWithPrepare"}function H8({type:e,reducerName:t},n,r,i){if(!i)throw new Error($t(18));const{payloadCreator:o,fulfilled:s,pending:l,rejected:a,settled:u,options:c}=n,f=i(e,o,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),l&&r.addCase(f.pending,l),a&&r.addCase(f.rejected,a),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||ma,pending:l||ma,rejected:a||ma,settled:u||ma})}function ma(){}var W8=(e,t)=>{if(typeof e!="function")throw new Error($t(32))},wh="listenerMiddleware",Z8=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=zn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error($t(21));return W8(o),{predicate:i,type:t,effect:o}},Y8=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Z8(e);return{id:R2(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error($t(22))}}},{withTypes:()=>Y8}),K8=Object.assign(zn(`${wh}/add`),{withTypes:()=>K8});zn(`${wh}/removeAll`);var q8=Object.assign(zn(`${wh}/remove`),{withTypes:()=>q8});function $t(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function F2(e,t){return function(){return e.apply(t,arguments)}}const{toString:G8}=Object.prototype,{getPrototypeOf:xh}=Object,_u=(e=>t=>{const n=G8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=e=>(e=e.toLowerCase(),t=>_u(t)===e),Ru=e=>t=>typeof t===e,{isArray:So}=Array,$s=Ru("undefined");function Q8(e){return e!==null&&!$s(e)&&e.constructor!==null&&!$s(e.constructor)&&Qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A2=Tn("ArrayBuffer");function J8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A2(e.buffer),t}const X8=Ru("string"),Qt=Ru("function"),M2=Ru("number"),Fu=e=>e!==null&&typeof e=="object",eb=e=>e===!0||e===!1,Va=e=>{if(_u(e)!=="object")return!1;const t=xh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tb=Tn("Date"),nb=Tn("File"),rb=Tn("Blob"),ib=Tn("FileList"),ob=e=>Fu(e)&&Qt(e.pipe),sb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qt(e.append)&&((t=_u(e))==="formdata"||t==="object"&&Qt(e.toString)&&e.toString()==="[object FormData]"))},ab=Tn("URLSearchParams"),lb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),So(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const D2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I2=e=>!$s(e)&&e!==D2;function Rd(){const{caseless:e}=I2(this)&&this||{},t={},n=(r,i)=>{const o=e&&L2(t,i)||i;Va(t[o])&&Va(r)?t[o]=Rd(t[o],r):Va(r)?t[o]=Rd({},r):So(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Bs(t,(i,o)=>{n&&Qt(i)?e[o]=F2(i,n):e[o]=i},{allOwnKeys:r}),e),cb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},db=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&xh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},hb=e=>{if(!e)return null;if(So(e))return e;let t=e.length;if(!M2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xh(Uint8Array)),gb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},yb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vb=Tn("HTMLFormElement"),wb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Y0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xb=Tn("RegExp"),j2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bs(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},bb=e=>{j2(e,(t,n)=>{if(Qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sb=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return So(e)?r(e):r(String(e).split(t)),n},Eb=()=>{},Cb=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Zc="abcdefghijklmnopqrstuvwxyz",K0="0123456789",N2={DIGIT:K0,ALPHA:Zc,ALPHA_DIGIT:Zc+Zc.toUpperCase()+K0},Ob=(e=16,t=N2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kb(e){return!!(e&&Qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pb=e=>{const t=new Array(10),n=(r,i)=>{if(Fu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=So(r)?[]:{};return Bs(r,(s,l)=>{const a=n(s,i+1);!$s(a)&&(o[l]=a)}),t[i]=void 0,o}}return r};return n(e,0)},$b=Tn("AsyncFunction"),Tb=e=>e&&(Fu(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),L={isArray:So,isArrayBuffer:A2,isBuffer:Q8,isFormData:sb,isArrayBufferView:J8,isString:X8,isNumber:M2,isBoolean:eb,isObject:Fu,isPlainObject:Va,isUndefined:$s,isDate:tb,isFile:nb,isBlob:rb,isRegExp:xb,isFunction:Qt,isStream:ob,isURLSearchParams:ab,isTypedArray:mb,isFileList:ib,forEach:Bs,merge:Rd,extend:ub,trim:lb,stripBOM:cb,inherits:fb,toFlatObject:db,kindOf:_u,kindOfTest:Tn,endsWith:pb,toArray:hb,forEachEntry:gb,matchAll:yb,isHTMLForm:vb,hasOwnProperty:Y0,hasOwnProp:Y0,reduceDescriptors:j2,freezeMethods:bb,toObjectSet:Sb,toCamelCase:wb,noop:Eb,toFiniteNumber:Cb,findKey:L2,global:D2,isContextDefined:I2,ALPHABET:N2,generateString:Ob,isSpecCompliantForm:kb,toJSONObject:Pb,isAsyncFn:$b,isThenable:Tb};function ve(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}L.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V2=ve.prototype,z2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{z2[e]={value:e}});Object.defineProperties(ve,z2);Object.defineProperty(V2,"isAxiosError",{value:!0});ve.from=(e,t,n,r,i,o)=>{const s=Object.create(V2);return L.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ve.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const _b=null;function Fd(e){return L.isPlainObject(e)||L.isArray(e)}function B2(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function q0(e,t,n){return e?e.concat(t).map(function(i,o){return i=B2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Rb(e){return L.isArray(e)&&!e.some(Fd)}const Fb=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function Au(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!L.isUndefined(x[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(L.isDate(m))return m.toISOString();if(!a&&L.isBlob(m))throw new ve("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(m)||L.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,x){let h=m;if(m&&!x&&typeof m=="object"){if(L.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(L.isArray(m)&&Rb(m)||(L.isFileList(m)||L.endsWith(g,"[]"))&&(h=L.toArray(m)))return g=B2(g),h.forEach(function(v,w){!(L.isUndefined(v)||v===null)&&t.append(s===!0?q0([g],w,o):s===null?g:g+"[]",u(v))}),!1}return Fd(m)?!0:(t.append(q0(x,g,o),u(m)),!1)}const f=[],d=Object.assign(Fb,{defaultVisitor:c,convertValue:u,isVisitable:Fd});function y(m,g){if(!L.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),L.forEach(m,function(h,p){(!(L.isUndefined(h)||h===null)&&i.call(t,h,L.isString(p)?p.trim():p,g,d))===!0&&y(h,g?g.concat(p):[p])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return y(e),t}function G0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function bh(e,t){this._pairs=[],e&&Au(e,this,t)}const U2=bh.prototype;U2.append=function(t,n){this._pairs.push([t,n])};U2.toString=function(t){const n=t?function(r){return t.call(this,r,G0)}:G0;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ab(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H2(e,t,n){if(!t)return e;const r=n&&n.encode||Ab,i=n&&n.serialize;let o;if(i?o=i(t,n):o=L.isURLSearchParams(t)?t.toString():new bh(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Mb{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Q0=Mb,W2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lb=typeof URLSearchParams<"u"?URLSearchParams:bh,Db=typeof FormData<"u"?FormData:null,Ib=typeof Blob<"u"?Blob:null,jb={isBrowser:!0,classes:{URLSearchParams:Lb,FormData:Db,Blob:Ib},protocols:["http","https","file","blob","url","data"]},Z2=typeof window<"u"&&typeof document<"u",Nb=(e=>Z2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vb=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z2,hasStandardBrowserEnv:Nb,hasStandardBrowserWebWorkerEnv:Vb},Symbol.toStringTag,{value:"Module"})),xn={...zb,...jb};function Bb(e,t){return Au(e,new xn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return xn.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ub(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hb(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&L.isArray(i)?i.length:s,a?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=Hb(i[s])),!l)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,i)=>{t(Ub(r),i,n,0)}),n}return null}function Wb(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Sh={transitional:W2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(t);if(o&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return i?JSON.stringify(Y2(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bb(t,this.formSerializer).toString();if((l=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Au(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Wb(t)):t}],transformResponse:[function(t){const n=this.transitional||Sh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&L.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ve.from(l,ve.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Sh.headers[e]={}});const Eh=Sh,Zb=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yb=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Zb[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},J0=Symbol("internals");function Ao(e){return e&&String(e).trim().toLowerCase()}function za(e){return e===!1||e==null?e:L.isArray(e)?e.map(za):String(e)}function Kb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yc(e,t,n,r,i){if(L.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function Gb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qb(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Mu{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,a,u){const c=Ao(a);if(!c)throw new Error("header name must be a non-empty string");const f=L.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||a]=za(l))}const s=(l,a)=>L.forEach(l,(u,c)=>o(u,c,a));return L.isPlainObject(t)||t instanceof this.constructor?s(t,n):L.isString(t)&&(t=t.trim())&&!qb(t)?s(Yb(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ao(t),t){const r=L.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Kb(i);if(L.isFunction(n))return n.call(this,i,r);if(L.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ao(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Yc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Ao(s),s){const l=L.findKey(r,s);l&&(!n||Yc(r,r[l],l,n))&&(delete r[l],i=!0)}}return L.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Yc(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return L.forEach(this,(i,o)=>{const s=L.findKey(r,o);if(s){n[s]=za(i),delete n[o];return}const l=t?Gb(o):String(o).trim();l!==o&&delete n[o],n[l]=za(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[J0]=this[J0]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=Ao(s);r[l]||(Qb(i,s),r[l]=!0)}return L.isArray(t)?t.forEach(o):o(t),this}}Mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(Mu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});L.freezeMethods(Mu);const Bn=Mu;function Kc(e,t){const n=this||Eh,r=t||n,i=Bn.from(r.headers);let o=r.data;return L.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function K2(e){return!!(e&&e.__CANCEL__)}function Us(e,t,n){ve.call(this,e??"canceled",ve.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Us,ve,{__CANCEL__:!0});function Jb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xb=xn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q2(e,t){return e&&!eS(t)?tS(e,t):t}const nS=xn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const l=L.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function rS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];s||(s=u),n[i]=a,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,a=r(l),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-o)/a:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const oS=typeof XMLHttpRequest<"u",sS=oS&&function(e){return new Promise(function(n,r){let i=e.data;const o=Bn.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;if(L.isFormData(i)){if(xn.hasStandardBrowserEnv||xn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[g,...x]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...x].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+x))}const d=q2(e.baseURL,e.url);f.open(e.method.toUpperCase(),H2(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function y(){if(!f)return;const g=Bn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};Jb(function(v){n(v),u()},function(v){r(v),u()},h),f=null}if("onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(r(new ve("Request aborted",ve.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new ve("Network Error",ve.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||W2;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new ve(x,h.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,f)),f=null},xn.hasStandardBrowserEnv&&(l&&L.isFunction(l)&&(l=l(e)),l||l!==!1&&nS(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Xb.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&L.forEach(o.toJSON(),function(x,h){f.setRequestHeader(h,x)}),L.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",X0(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",X0(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{f&&(r(!g||g.type?new Us(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=rS(d);if(m&&xn.protocols.indexOf(m)===-1){r(new ve("Unsupported protocol "+m+":",ve.ERR_BAD_REQUEST,e));return}f.send(i||null)})},Ad={http:_b,xhr:sS};L.forEach(Ad,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const em=e=>`- ${e}`,aS=e=>L.isFunction(e)||e===null||e===!1,G2={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(em).join(` -`):" "+em(o[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ad};function qc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Us(null,e)}function tm(e){return qc(e),e.headers=Bn.from(e.headers),e.data=Kc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),G2.getAdapter(e.adapter||Eh.adapter)(e).then(function(r){return qc(e),r.data=Kc.call(e,e.transformResponse,r),r.headers=Bn.from(r.headers),r},function(r){return K2(r)||(qc(e),r&&r.response&&(r.response.data=Kc.call(e,e.transformResponse,r.response),r.response.headers=Bn.from(r.response.headers))),Promise.reject(r)})}const nm=e=>e instanceof Bn?{...e}:e;function io(e,t){t=t||{};const n={};function r(u,c,f){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:f},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function i(u,c,f){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(nm(u),nm(c),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||i,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==l||(n[c]=d)}),n}const Q2="1.6.8",Ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rm={};Ch.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Q2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new ve(i(s," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!rm[s]&&(rm[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function lS(e,t,n){if(typeof e!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new ve("option "+o+" must be "+a,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Md={assertOptions:lS,validators:Ch},er=Md.validators;class Nl{constructor(t){this.defaults=t,this.interceptors={request:new Q0,response:new Q0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=io(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Md.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:Md.assertOptions(i,{encode:er.function,serialize:er.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&L.merge(o.common,o[n.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Bn.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!a){const m=[tm.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new Us(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Oh(function(i){t=i}),cancel:t}}}const uS=Oh;function cS(e){return function(n){return e.apply(null,n)}}function fS(e){return L.isObject(e)&&e.isAxiosError===!0}const Ld={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ld).forEach(([e,t])=>{Ld[t]=e});const dS=Ld;function J2(e){const t=new Ba(e),n=F2(Ba.prototype.request,t);return L.extend(n,Ba.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return J2(io(e,i))},n}const We=J2(Eh);We.Axios=Ba;We.CanceledError=Us;We.CancelToken=uS;We.isCancel=K2;We.VERSION=Q2;We.toFormData=Au;We.AxiosError=ve;We.Cancel=We.CanceledError;We.all=function(t){return Promise.all(t)};We.spread=cS;We.isAxiosError=fS;We.mergeConfig=io;We.AxiosHeaders=Bn;We.formToJSON=e=>Y2(L.isHTMLForm(e)?new FormData(e):e);We.getAdapter=G2.getAdapter;We.HttpStatusCode=dS;We.default=We;const pS=We,xt=pS.create({baseURL:"https://byte-water-back.onrender.com/api"});function Lu(e){xt.defaults.headers.authorization=`Bearer ${e}`}function hS(){xt.defaults.headers.authorization=""}const Gc=Ut("auth/signUp",async(e,t)=>{try{const{data:n}=await xt.post("users/register",e);return n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Qc=Ut("auth/signIn",async(e,t)=>{try{const{data:n}=await xt.post("users/login",e);return n&&Lu(n.token),n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Hr=Ut("/api/users/current",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt("users/current");return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Wr=Ut("/api/users/logout",async(e,t)=>{try{const{data:n}=await xt.post("users/logout");return hS(),n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Zr=Ut("user/updateAvatar",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt.patch("users/avatars",e,{headers:{"Content-type":"multipart/form-data"}});return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Yr=Ut("user/updateUser",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt.patch("users/update-user",e);return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Zi=Ut("user/forgotPassword",async(e,t)=>{try{const{data:n}=await xt.post("users/forgot-password",e);return n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Yi=Ut("user/updatePassword",async({tempCode:e,newPassword:t},n)=>{try{const{data:r}=await xt.post(`users/update-password/${e.tempCode}`,{newPassword:t});return r}catch(r){return n.rejectWithValue(r.response.data.message??r.message)}}),mS=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:48,fill:"none",...e,children:[E.jsxs("g",{clipPath:"url(#a)",children:[E.jsx("path",{fill:"#9EBBFF",d:"M15.82 7.319c.673-.53 1.523.618 1.613 1.677.09 1.06-.852 3.443-3.496 4.061-2.645.618-2.959 2.251-2.87 3.223.09.97-.358 2.03-1.3 1.81-.94-.22-1.03-1.678-.178-3.047.851-1.37 3.002-2.604 3.361-3.355.36-.75.09-1.633.807-1.942.717-.309 1.659.486 1.57 1.237 0 0 .716-.707.627-1.766-.06-.695-.473-1.632-.135-1.898ZM33.212 13.764c.25-.708 2.017-.31 2.42.662.404.97.27 1.721.673 2.383.403.662-.717 1.766-1.547 1.633-.83-.132-.516-1.633-.516-2.295 0-.662-1.433-1.236-1.03-2.383ZM27.61 5.427c.613-.54 1.927.39 2.285 1.14.36.75.045 2.737-1.053 2.692-1.098-.044-.662-1.597-1.053-1.92-.695-.574-.672-1.478-.18-1.912ZM20.042.829c.435.673.111 1.589-.994 1.795-1.106.206-1.315-.707-1.913-.5-.598.206-1.256.352-1.524-.118-.268-.471.03-1.177 1.225-1.177s2.407-1.236 3.206 0ZM13.086 7.265c.52 0 .941-.447.941-.999 0-.551-.421-.998-.941-.998s-.941.447-.941.998c0 .552.42.999.94.999ZM9.003 10.57c-.334-.166-1.43 1.559-.683 1.765.747.207 1.218-1.5.683-1.765ZM6.078 15.69s1.464.794.926 2.427c-.538 1.633-1.703 1.427-2.062.927-.359-.5-.359-1.177.24-1.649.597-.471.896-1.705.896-1.705ZM37.157 24.488s.448.663.224 1.854-.582 3.53.672 4.194c1.255.663 1.749-1.678 1.256-2.384-.492-.706.269-3.135-2.152-3.664ZM38.749 35.127c.532 0 .964-.514.964-1.147 0-.634-.432-1.148-.964-1.148s-.964.514-.964 1.148c0 .634.432 1.147.964 1.147ZM.939 35.569c.83-.425 1.524.264 1.613 1.544.09 1.28 1.3 2.384.673 3.046-.628.662-1.357-2.074-1.928-2.328-.875-.39-1.569-1.645-.358-2.263Z"}),E.jsx("path",{fill:"#9EBBFF",d:"M36.236 36.848c-.783.795.259 1.618-1.589 3.708-.77.87.568 3.473-3.138 3.443 0 0-2.152 1.942-4.303 2.208-2.152.265-3.049-.089-5.11 1.06-2.063 1.147-6.635-.796-8.518-1.634-1.883-.839-2.6-.928-4.212-.928-1.614 0-.986-2.472-2.152-3.531-1.166-1.06-2.51-1.5-2.6-2.471-.09-.97-.987-1.413-.897-2.914.09-1.501-1.434-1.942-1.613-3.796-.179-1.855.806-2.207.447-3.266-.358-1.06-.447-1.942.09-3.002.064-.128.138-.251.222-.368.461-.646.903-.596 1.213-1.662.359-1.237-.628-1.766.448-2.295 1.076-.53 1.435 1.058.807 2.648-.629 1.59-1.435 3.09-.359 3.355 1.077.264.808-3.002 2.242-4.503 1.435-1.501.807-1.853 2.69-3.355 1.881-1.5 2.061-.882 2.689-2.472.627-1.59 2.399-3.266 4.204-4.06 1.805-.796 2.61-1.148 2.341-2.473-.27-1.325 1.235-1.324 1.29-2.737.056-1.412-1.2-2.383-2.276-2.03-1.075.353-2.152.353-1.793-.794.359-1.147 2.617-1.06 3.684-.53 1.067.529 1.964-.794 3.399.53 1.434 1.324 3.317 1.766 3.048 4.857-.269 3.09-.538 4.148.627 4.325 1.165.178.18-1.412.18-2.648 0-1.235 2.062-1.148 2.6-.177.537.97-.18 2.648.358 3.267.538.619 1.525.53 1.793 1.412.269.882-.179 4.502 1.076 5.297 1.255.795.986-1.942 2.062-1.103 1.076.838 1.345 2.339.717 3.84-.418 1.003-.461 3.508-.218 5.664.118 1.067.306 2.05.552 2.722.741 2.03.781 3.618-.002 4.413Z"}),E.jsx("path",{fill:"#C6D7FF",d:"M21.374 14.347c2.354-.732 4.33 3.318 3.51 5.059-.819 1.74-1.169 7.108 1.873 6.44 3.042-.667.82-5.83 2.457-5.726 1.638.104.936 4.828 1.99 6.326 1.053 1.498 4.686 11.754-1.168 15.326-5.854 3.572-14.138 3.457-17.31.807a13.854 13.854 0 0 1-2.88-3.264 6.84 6.84 0 0 1-.65-1.278c-.285-.768-.235-1.038-.523-1.809a7.295 7.295 0 0 0-.722-1.415c-.633-.958-.92-.846-1.511-1.68-.197-.278-.824-1.218-.882-2.485-.015-.331-.058-1.258.343-1.423.453-.187 1.04.78 1.642.58.315-.106.452-.471.539-.7.254-.677 0-1.096-.123-2.099-.094-.776-.207-1.709.255-2.496.076-.13.294-.55 1.018-.944 2.546-1.383 4.833-.115 6.498-2.65 1.665-2.535 1.698-2.702 3.261-3.368 1.564-.665.16-2.51 2.383-3.2Z"}),E.jsx("path",{fill:"#407BFF",d:"M20.44 48c-1.662 0-3.983-.67-7.019-2.022-1.85-.825-2.506-.894-4.055-.894-1.226 0-1.487-1.1-1.697-1.985-.148-.624-.301-1.27-.716-1.647-.385-.35-.789-.627-1.178-.896-.788-.542-1.469-1.01-1.544-1.82-.03-.32-.177-.584-.349-.891-.27-.484-.607-1.085-.548-2.078.036-.616-.26-1.016-.635-1.523-.412-.556-.878-1.186-.978-2.215-.102-1.054.142-1.666.338-2.16.16-.401.257-.644.129-1.023-.325-.957-.536-2.018.11-3.29.272-.535.559-.786.789-.988.262-.23.45-.395.619-.977.124-.43.054-.747-.014-1.055-.103-.462-.23-1.037.66-1.475.447-.22.884-.183 1.2.1.57.51.627 1.782.136 3.024-.086.218-.175.434-.262.645-.34.825-.727 1.756-.559 2.083.013.025.044.084.198.122.01.003.019.005.029.004.173-.06.382-.884.507-1.377.25-.985.562-2.214 1.333-3.021a5.627 5.627 0 0 0 1.015-1.408c.3-.556.584-1.082 1.712-1.982.719-.573 1.197-.846 1.547-1.047.536-.307.68-.389 1.027-1.268.655-1.66 2.467-3.415 4.405-4.269l.008-.003c1.878-.828 2.314-1.06 2.114-2.05-.18-.886.29-1.347.67-1.717.318-.31.592-.578.613-1.108.022-.579-.226-1.118-.664-1.442-.345-.254-.749-.333-1.108-.215-.689.227-1.612.398-2.097-.069-.196-.188-.386-.548-.184-1.195.13-.415.45-.74.925-.94.98-.412 2.475-.224 3.298.184.296.146.575.095 1.006-.001.66-.148 1.482-.331 2.483.592.304.28.64.527.963.766 1.196.878 2.432 1.787 2.205 4.398-.034.386-.067.741-.098 1.067-.232 2.444-.187 2.764.401 2.853.042.007.084.01.126.008.025-.159-.082-.586-.155-.878-.109-.438-.233-.934-.233-1.406 0-.613.382-1.075 1.02-1.235.766-.192 1.863.09 2.3.878.326.588.272 1.335.224 1.994-.035.478-.074 1.02.09 1.207.166.192.416.305.68.425.437.197.98.443 1.189 1.125.097.32.112.855.13 1.53.035 1.241.087 3.116.785 3.558.128.08.2.091.224.085.102-.03.248-.343.335-.53.167-.358.357-.766.762-.861.246-.059.506.018.772.224 1.201.937 1.529 2.616.834 4.28-.577 1.379-.377 6.157.34 8.115.822 2.25.793 3.912-.086 4.805-.204.207-.226.395-.256.797-.05.649-.117 1.537-1.319 2.896-.15.17-.186.536-.224.923-.103 1.047-.257 2.619-3.057 2.65-.486.414-2.416 1.96-4.401 2.204-.611.075-1.126.102-1.58.126-1.148.06-1.978.102-3.39.888-.485.27-1.099.406-1.845.406ZM4.915 21.675a.509.509 0 0 0-.219.064c-.355.175-.345.219-.253.638.076.342.18.81.002 1.423-.23.793-.543 1.068-.847 1.334-.21.183-.407.356-.613.762-.493.971-.392 1.758-.068 2.713.216.638.034 1.095-.143 1.538-.174.44-.372.937-.288 1.812.08.822.463 1.34.834 1.841.41.553.834 1.126.781 2.013-.046.774.197 1.209.455 1.669.195.349.397.71.441 1.188.043.459.562.816 1.219 1.268.392.269.835.575 1.26.96.586.534.775 1.329.942 2.03.236.996.388 1.401.949 1.401 1.608 0 2.402.083 4.371.96 5.11 2.277 7.264 2.154 8.17 1.65 1.569-.874 2.521-.923 3.727-.985.441-.023.941-.05 1.525-.12 2.006-.248 4.07-2.093 4.091-2.111.07-.064.163-.1.26-.1h.003c2.24.018 2.33-.902 2.436-1.967.05-.51.097-.994.409-1.346 1.034-1.17 1.088-1.883 1.131-2.456.032-.42.066-.854.471-1.267.642-.652.61-2.118-.085-4.023-.792-2.165-.979-7.102-.328-8.659.562-1.343.326-2.677-.6-3.4a.525.525 0 0 0-.118-.074c-.072.069-.177.295-.242.434-.177.381-.379.813-.818.94-.264.076-.55.018-.854-.174-1.039-.658-1.093-2.607-1.137-4.172-.015-.571-.03-1.111-.099-1.335-.103-.338-.348-.463-.773-.655-.312-.142-.667-.302-.944-.62-.368-.423-.321-1.07-.272-1.754.043-.582.086-1.184-.132-1.576-.241-.437-.957-.628-1.436-.508-.443.112-.443.406-.443.503 0 .38.113.829.212 1.225.165.66.308 1.231-.021 1.586-.181.194-.454.265-.812.211-1.378-.209-1.268-1.366-1.05-3.67.031-.323.065-.677.098-1.062.19-2.192-.731-2.87-1.898-3.727-.342-.251-.695-.51-1.03-.82-.703-.65-1.183-.543-1.788-.407-.452.1-.965.215-1.52-.06-.66-.328-1.912-.475-2.653-.164-.265.111-.43.268-.491.466-.066.211-.072.376-.014.432.101.098.536.15 1.318-.108.602-.197 1.262-.078 1.811.328.64.473 1.002 1.249.97 2.076-.032.827-.48 1.265-.839 1.616-.376.367-.553.564-.458 1.032.328 1.618-.756 2.097-2.553 2.887l-.008.004c-1.74.766-3.423 2.387-4.002 3.853-.427 1.082-.708 1.276-1.356 1.648-.328.188-.777.445-1.45.98-1.007.804-1.244 1.242-1.518 1.75a6.357 6.357 0 0 1-1.133 1.57c-.634.664-.919 1.786-1.147 2.687-.134.528-.25.984-.417 1.324-.329.666-.799.663-1.05.6-.408-.1-.604-.335-.696-.515-.326-.633.072-1.595.532-2.709.086-.208.174-.42.258-.634.422-1.069.305-1.974.063-2.192a.166.166 0 0 0-.123-.046Z"}),E.jsx("path",{fill:"#407BFF",d:"M10.014 18.401c-.105 0-.21-.013-.312-.037a1.207 1.207 0 0 1-.847-.735c-.302-.717-.115-1.765.489-2.735.491-.789 1.356-1.505 2.12-2.139.56-.466 1.091-.905 1.226-1.188.117-.245.16-.521.2-.788.075-.486.16-1.038.753-1.294.405-.174.897-.097 1.316.209.211.153.384.352.505.581.13-.265.239-.621.204-1.036a5.495 5.495 0 0 0-.13-.704c-.136-.591-.263-1.15.102-1.439a.86.86 0 0 1 .902-.12c.587.25 1.105 1.126 1.179 1.995.098 1.157-.92 3.707-3.717 4.36-2.486.581-2.726 2.08-2.649 2.922.071.768-.163 1.503-.595 1.872-.206.18-.472.278-.746.276Zm4.083-8.44a.563.563 0 0 0-.224.044c-.288.124-.34.38-.413.859-.045.292-.096.624-.248.944-.19.396-.714.831-1.378 1.382-.73.605-1.558 1.291-2 2-.493.794-.673 1.687-.447 2.223.091.217.242.352.448.4.217.05.396.013.547-.116.293-.25.454-.81.4-1.392-.076-.825.073-2.82 3.089-3.524 2.46-.575 3.36-2.77 3.276-3.762-.06-.714-.488-1.374-.833-1.52a.28.28 0 0 0-.314.04c-.079.094.037.6.099.872.06.261.12.53.142.782.1 1.177-.678 1.957-.71 1.99a.29.29 0 0 1-.33.054.28.28 0 0 1-.16-.288c.032-.269-.139-.59-.425-.799a.893.893 0 0 0-.519-.19ZM34.904 18.736c-.065 0-.129-.005-.192-.015-.928-.148-.84-1.341-.781-2.13a6.75 6.75 0 0 0 .024-.446c0-.152-.2-.374-.392-.589-.39-.436-.924-1.032-.623-1.887.118-.336.453-.537.918-.55.735-.017 1.723.433 2.04 1.198.204.49.279.925.344 1.308.068.394.126.735.31 1.036.205.338.158.77-.13 1.19-.319.464-.92.885-1.518.885Zm-.997-5.05h-.033c-.1.003-.34.025-.39.168-.178.505.087.853.511 1.326.276.308.535.598.535.965 0 .139-.012.307-.025.486-.043.583-.11 1.464.3 1.53.35.055.863-.226 1.14-.628.074-.107.234-.382.113-.58-.24-.395-.31-.802-.384-1.235-.063-.371-.129-.756-.309-1.188-.21-.504-.928-.844-1.458-.844ZM28.878 9.544l-.048-.001c-.947-.038-1.052-.932-1.116-1.465-.02-.174-.054-.466-.112-.522-.398-.329-.631-.792-.639-1.27-.007-.421.159-.81.454-1.07.236-.208.555-.279.923-.205.746.15 1.542.863 1.815 1.435.28.584.225 1.781-.265 2.51-.26.385-.61.588-1.012.588Zm-.81-3.995a.39.39 0 0 0-.268.09.823.823 0 0 0-.261.638c.005.319.16.619.434.846.23.19.27.53.313.89.077.643.157.948.567.964.217.009.4-.101.557-.335.364-.541.428-1.527.224-1.954-.21-.437-.855-1.01-1.409-1.121a.799.799 0 0 0-.157-.018ZM18.732 2.939c-.511 0-.834-.22-1.082-.39-.234-.16-.308-.196-.42-.157-.431.149-1.444.498-1.869-.246a.945.945 0 0 1 .005-.96c.14-.24.521-.64 1.47-.64.365 0 .754-.14 1.132-.274.744-.265 1.671-.595 2.317.405.262.405.305.878.12 1.3-.208.473-.683.81-1.303.926a2.013 2.013 0 0 1-.37.036ZM17.307 1.81c.273 0 .49.148.672.273.267.183.52.355 1.016.263.435-.081.748-.292.881-.594a.802.802 0 0 0-.077-.77c-.38-.59-.822-.466-1.635-.176-.424.152-.863.308-1.327.308-.484 0-.838.13-.974.358a.385.385 0 0 0 0 .396c.13.228.494.225 1.178-.01a.814.814 0 0 1 .266-.048ZM13.085 7.547c-.678 0-1.23-.576-1.23-1.282 0-.707.552-1.283 1.23-1.283.678 0 1.229.576 1.229 1.282 0 .707-.551 1.283-1.23 1.283Zm0-1.998c-.36 0-.654.321-.654.715 0 .395.294.716.654.716.36 0 .653-.321.653-.716 0-.394-.293-.715-.653-.715ZM8.449 12.636c-.07 0-.14-.01-.206-.028a.61.61 0 0 1-.452-.49c-.106-.553.419-1.42.812-1.71.236-.176.418-.147.53-.092.46.228.471.93.244 1.507-.203.518-.548.813-.928.813Zm.466-1.752c-.211.178-.58.758-.562 1.095.004.072.018.075.045.083.166.046.346-.198.443-.444.128-.328.118-.611.074-.734ZM5.695 19.688c-.391 0-.772-.18-.987-.48-.486-.678-.364-1.514.295-2.033.425-.335.719-1.234.796-1.551a.281.281 0 0 1 .163-.194.293.293 0 0 1 .255.011c.579.314 1.545 1.296 1.062 2.764-.38 1.153-1.04 1.415-1.4 1.47-.06.008-.122.013-.184.013Zm.544-3.53c-.149.435-.437 1.112-.877 1.46-.514.404-.42.933-.183 1.262a.655.655 0 0 0 .615.233c.394-.059.727-.443.937-1.084.313-.95-.153-1.568-.492-1.871ZM38.479 30.935a1.2 1.2 0 0 1-.561-.15c-1.358-.716-1.118-2.908-.819-4.494.198-1.05-.177-1.64-.18-1.645a.28.28 0 0 1 .133-.421.292.292 0 0 1 .168-.013c1.906.417 2.054 1.924 2.153 2.922.036.364.07.708.174.857.424.608.268 1.96-.299 2.582-.218.24-.484.362-.77.362Zm-.835-5.99c.086.349.136.837.02 1.45-.41 2.181-.233 3.49.526 3.891.255.135.45.107.629-.09.41-.453.503-1.524.253-1.882-.189-.27-.228-.666-.273-1.124-.083-.846-.176-1.79-1.155-2.244ZM38.748 35.411c-.69 0-1.252-.642-1.252-1.431 0-.79.561-1.431 1.252-1.431.69 0 1.251.642 1.251 1.431 0 .79-.562 1.431-1.251 1.431Zm0-2.295c-.373 0-.676.388-.676.864 0 .477.303.864.676.864.372 0 .676-.388.676-.864s-.304-.864-.676-.864ZM3.02 40.545a.538.538 0 0 1-.076-.005c-.455-.066-.779-.706-1.153-1.448-.176-.349-.471-.933-.614-1.003C.513 37.792.02 37.129 0 36.513c-.013-.5.273-.925.805-1.197.396-.202.805-.208 1.152-.016.5.276.82.93.881 1.794.035.491.255.96.468 1.415.306.65.621 1.323.128 1.843a.558.558 0 0 1-.414.193Zm-1.605-4.818a.763.763 0 0 0-.345.093c-.335.171-.501.399-.494.677.011.398.38.87.84 1.075.307.138.539.572.89 1.268.185.364.52 1.029.704 1.13l.004-.004c.218-.23.055-.613-.23-1.219-.223-.477-.477-1.019-.519-1.614-.046-.66-.266-1.16-.59-1.339a.529.529 0 0 0-.26-.067ZM22.77 32.5c.23 1.128-.505 2.314-1.568 2.76-1.489.667-3.356-.118-3.805-1.681a2.27 2.27 0 0 1-.055-1.079.166.166 0 0 1 .058-.095.17.17 0 0 1 .272.091c.244 1.147 1.212 2.005 2.368 1.993 1.148-.008 2.089-.855 2.336-1.989.041-.21.353-.208.393 0h.001Z"}),E.jsx("path",{fill:"#fff",d:"M9.888 34.225c1.038-.196 1.673-1.413 1.419-2.72-.254-1.307-1.3-2.209-2.338-2.013-1.038.195-1.673 1.413-1.42 2.72.255 1.307 1.301 2.208 2.339 2.013ZM9.946 28.198c1.073.329 2.15-3.13 4.05-3.912 1.901-.783 3.154-3.245 3.737-4.837.583-1.593 2.976-2.633 2.47-3.746-.505-1.113-2.694-.217-3.984 1.478-1.29 1.696-.714 3.465-2.66 4.213-1.945.749-5.833 6.124-3.613 6.804Z",opacity:.5}),E.jsx("path",{fill:"#407BFF",d:"M35.256 36.728c-.735.718.244 1.46-1.492 3.348-.723.785.533 3.136-2.948 3.108 0 0-2.023 1.754-4.045 1.993-2.023.24-2.865-.08-4.803.957-1.938 1.036-6.235-.717-8.005-1.475-1.77-.758-2.443-.837-3.96-.837-1.516 0-.926-2.232-2.022-3.188-1.095-.957-2.36-1.355-2.444-2.231-.084-.877-.926-1.276-.842-2.631.085-1.356-1.348-1.753-1.516-3.428-.168-1.674.757-1.992.42-2.948-.337-.957-.42-1.754.085-2.71.06-.116.13-.227.209-.332.021.542.052 1.084.24 1.42.195.348.452.669.571 1.046.306.967-.378 1.951-.477 2.957-.186 1.86 1.56 3.299 2.753 4.787 1.063 1.325 1.824 2.954 3.324 3.82 1.67.966 3.834.718 5.662.06 1.828-.657 3.497-1.684 5.36-2.25 2.155-.657 4.466-.668 6.727-.555 1.628.08 3.488.143 4.62-.966.652-.637.913-1.54 1.09-2.41a20.14 20.14 0 0 0 .383-5.082l.592 1.105c.11.963.288 1.85.519 2.457.697 1.833.734 3.268 0 3.985Z",opacity:.2}),E.jsx("path",{fill:"#407BFF",d:"M25.413 24.93c1.231-.124 2.368 1.203 2.539 2.963.17 1.76-.689 3.288-1.92 3.412-1.23.123-2.367-1.204-2.538-2.964-.17-1.76.689-3.287 1.92-3.411Z"}),E.jsx("path",{fill:"#fff",d:"M25.498 25.667c.392.161.561.76.378 1.338-.184.578-.651.916-1.044.755-.392-.162-.56-.76-.377-1.338.184-.578.651-.916 1.043-.755Z"}),E.jsx("path",{fill:"#8BAEFF",d:"M26.819 29.452c.185.135.208.466.05.738-.158.272-.437.383-.622.248-.185-.136-.208-.466-.05-.738.157-.272.436-.383.622-.248Z"}),E.jsx("path",{fill:"#407BFF",d:"M14.857 24.93c-1.23-.124-2.367 1.203-2.538 2.963-.171 1.76.688 3.288 1.918 3.412 1.231.123 2.368-1.204 2.539-2.964.171-1.76-.688-3.287-1.919-3.411Z"}),E.jsx("path",{fill:"#fff",d:"M14.772 25.667c-.392.161-.561.76-.377 1.338.183.578.65.916 1.043.755.392-.162.56-.76.377-1.338-.184-.578-.65-.916-1.043-.755Z"}),E.jsx("path",{fill:"#8BAEFF",d:"M13.45 29.452c-.185.135-.208.466-.05.738.158.272.437.383.622.248.185-.136.208-.466.05-.738-.158-.272-.436-.383-.622-.248Z"})]}),E.jsx("path",{fill:"#407BFF",d:"M48.576 12.469V21h-1.752v-8.531h1.752Zm2.625 0v1.377h-6.96v-1.377h6.96Zm1.002 0h3.182c.652 0 1.213.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.765l-.012-1.371h2.056c.31 0 .565-.055.768-.164.203-.11.355-.262.457-.457.106-.196.158-.422.158-.68 0-.274-.05-.51-.152-.71a1.029 1.029 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V21h-1.758v-8.531ZM56.973 21l-1.946-3.803 1.858-.011 1.968 3.732V21h-1.88Zm6.386-7.072L61.04 21h-1.87l3.17-8.531h1.19l-.17 1.459ZM65.287 21l-2.326-7.072-.188-1.46h1.202L67.162 21h-1.875Zm-.105-3.176v1.377h-4.506v-1.377h4.506Zm7.611.346h1.752a3.176 3.176 0 0 1-.475 1.53 2.829 2.829 0 0 1-1.166 1.042c-.496.25-1.093.375-1.793.375a3.671 3.671 0 0 1-1.47-.281 3.13 3.13 0 0 1-1.114-.82 3.654 3.654 0 0 1-.697-1.29 5.575 5.575 0 0 1-.24-1.693v-.592c0-.625.082-1.189.246-1.693a3.74 3.74 0 0 1 .715-1.295 3.186 3.186 0 0 1 1.119-.82 3.56 3.56 0 0 1 1.453-.287c.711 0 1.31.129 1.799.386.492.258.873.614 1.142 1.067.274.453.438.969.493 1.547h-1.758a2.262 2.262 0 0 0-.205-.873 1.164 1.164 0 0 0-.533-.545c-.235-.125-.547-.188-.938-.188-.293 0-.549.055-.767.164-.22.11-.403.276-.551.498-.149.223-.26.504-.334.844-.07.336-.106.73-.106 1.184v.603c0 .442.033.83.1 1.166.066.332.168.613.304.844.141.227.32.398.54.516.222.113.49.17.802.17.367 0 .67-.06.908-.176.239-.117.42-.291.545-.522.13-.23.206-.517.229-.861Zm4.664-5.701V21h-1.758v-8.531h1.758Zm5.11 0-3.381 4.213-1.952 2.097-.316-1.664 1.318-1.804 2.174-2.842h2.156ZM80.567 21l-2.513-3.943 1.3-1.09L82.649 21h-2.08Zm8.485-1.371V21h-4.541v-1.371h4.54Zm-3.967-7.16V21h-1.758v-8.531h1.758Zm3.375 3.474v1.336h-3.95v-1.336h3.95Zm.586-3.474v1.377h-4.535v-1.377h4.535Zm1.031 0h3.182c.652 0 1.213.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.765l-.012-1.371h2.056c.31 0 .565-.055.768-.164.203-.11.355-.262.457-.457.106-.196.158-.422.158-.68 0-.274-.05-.51-.152-.71a1.029 1.029 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V21h-1.758v-8.531ZM94.848 21l-1.946-3.803 1.858-.011 1.968 3.732V21h-1.88ZM51.77 30.535v.404c0 .649-.088 1.23-.264 1.746a3.84 3.84 0 0 1-.744 1.319c-.32.36-.703.635-1.149.826a3.66 3.66 0 0 1-1.47.287 3.686 3.686 0 0 1-1.471-.287 3.297 3.297 0 0 1-1.149-.826 3.861 3.861 0 0 1-.755-1.319c-.176-.515-.264-1.097-.264-1.746v-.404c0-.652.088-1.234.264-1.746a3.84 3.84 0 0 1 .744-1.318c.324-.364.707-.64 1.148-.832a3.686 3.686 0 0 1 1.47-.287c.54 0 1.03.095 1.472.287.445.191.828.468 1.148.832.324.363.574.802.75 1.318.18.512.27 1.094.27 1.746Zm-1.776.404v-.416c0-.453-.04-.851-.123-1.195a2.59 2.59 0 0 0-.363-.867 1.569 1.569 0 0 0-.586-.527 1.675 1.675 0 0 0-.791-.182c-.297 0-.56.06-.791.182-.227.117-.42.293-.58.527a2.672 2.672 0 0 0-.358.867 5.186 5.186 0 0 0-.123 1.195v.416c0 .45.041.848.123 1.196.082.343.203.635.364.873.16.234.355.412.586.533.23.121.494.182.79.182.297 0 .561-.06.792-.182.23-.121.423-.299.58-.533.156-.239.275-.53.357-.873.082-.348.123-.746.123-1.195Zm4.799-4.47V35h-1.758v-8.531h1.758Zm3.398 3.644v1.371h-3.879v-1.37h3.88Zm.41-3.644v1.377h-4.288v-1.377h4.289Zm6.065 7.178 1.7-7.178h.948l.217 1.195L65.721 35H64.7l-.035-1.353Zm-.873-7.178 1.406 7.178L65.082 35h-1.137l-1.892-8.531h1.74Zm5.232 7.148 1.39-7.148h1.74L70.267 35H69.13l-.106-1.383Zm-1.177-7.148 1.71 7.207L69.513 35h-1.02l-1.822-7.342.234-1.19h.944Zm8.472 1.459L74 35h-1.87l3.17-8.531h1.19l-.17 1.459ZM78.248 35l-2.326-7.072-.188-1.46h1.202L80.123 35h-1.875Zm-.105-3.176v1.377h-4.506v-1.377h4.506Zm5.859-5.355V35H82.25v-8.531h1.752Zm2.625 0v1.377h-6.961v-1.377h6.961Zm6.727 7.16V35h-4.541v-1.371h4.54Zm-3.967-7.16V35h-1.758v-8.531h1.758Zm3.375 3.474v1.336h-3.95v-1.336h3.95Zm.586-3.474v1.377h-4.535v-1.377h4.535Zm1.03 0h3.183c.652 0 1.212.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.766l-.011-1.371h2.056c.309 0 .565-.055.768-.164.203-.11.355-.262.457-.457a1.41 1.41 0 0 0 .158-.68c0-.274-.05-.51-.152-.71a1.028 1.028 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V35h-1.758v-8.531ZM99.149 35l-1.945-3.803 1.858-.011 1.968 3.732V35h-1.88Z"}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h40v48H0z"})})})]});var qe=function(){return qe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Xe(So,--en):0,ao--,Be===10&&(ao=1,Iu--),Be}function fn(){return Be=en2||Id(Be)>3?"":" "}function PS(e,t){for(;--t&&fn()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Nu(e,Ha()+(t<6&&Kr()==32&&fn()==32))}function jd(e){for(;fn();)switch(Be){case e:return en;case 34:case 39:e!==34&&e!==39&&jd(Be);break;case 40:e===41&&jd(e);break;case 92:fn();break}return en}function $S(e,t){for(;fn()&&e+Be!==47+10;)if(e+Be===42+42&&Kr()===47)break;return"/*"+Nu(t,en-1)+"*"+Ph(e===47?e:fn())}function TS(e){for(;!Id(Kr());)fn();return Nu(e,en)}function _S(e){return OS(Wa("",null,null,null,[""],e=CS(e),0,[0],e))}function Wa(e,t,n,r,i,o,s,l,a){for(var u=0,c=0,f=s,d=0,y=0,m=0,g=1,x=1,h=1,p=0,v="",w=i,b=o,C=r,S=v;x;)switch(m=p,p=fn()){case 40:if(m!=108&&Xe(S,f-1)==58){Ua(S+=fe(Jc(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:S+=Jc(p);break;case 9:case 10:case 13:case 32:S+=kS(m);break;case 92:S+=PS(Ha()-1,7);continue;case 47:switch(Kr()){case 42:case 47:Wo(RS($S(fn(),Ha()),t,n,a),a);break;default:S+="/"}break;case 123*g:l[u++]=gn(S)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:h==-1&&(S=fe(S,/\f/g,"")),y>0&&gn(S)-f&&Wo(y>32?sm(S+";",r,n,f-1,a):sm(fe(S," ","")+";",r,n,f-2,a),a);break;case 59:S+=";";default:if(Wo(C=om(S,t,n,u,c,i,l,v,w=[],b=[],f,o),o),p===123)if(c===0)Wa(S,t,C,C,w,o,f,l,b);else switch(d===99&&Xe(S,3)===110?100:d){case 100:case 108:case 109:case 115:Wa(e,C,C,r&&Wo(om(e,C,C,0,0,i,l,v,i,w=[],f,b),b),i,b,f,l,r?w:b);break;default:Wa(S,C,C,C,[""],b,0,l,b)}}u=c=y=0,g=h=1,v=S="",f=s;break;case 58:f=1+gn(S),y=m;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&ES()==125)continue}switch(S+=Ph(p),p*g){case 38:h=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(gn(S)-1)*h,h=1;break;case 64:Kr()===45&&(S+=Jc(fn())),d=Kr(),c=f=gn(v=S+=TS(Ha())),p++;break;case 45:m===45&&gn(S)==2&&(g=0)}}return o}function om(e,t,n,r,i,o,s,l,a,u,c,f){for(var d=i-1,y=i===0?o:[""],m=r3(y),g=0,x=0,h=0;g0?y[p]+" "+v:fe(v,/&\f/g,y[p])))&&(a[h++]=w);return ju(e,t,n,i===0?Du:l,a,u,c,f)}function RS(e,t,n,r){return ju(e,t,n,e3,Ph(SS()),so(e,2,-2),0,r)}function sm(e,t,n,r,i){return ju(e,t,n,kh,so(e,0,r),so(e,r+1,-1),r,i)}function o3(e,t,n){switch(xS(e,t)){case 5103:return Ee+"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 Ee+e+e;case 4789:return ns+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+ns+e+_e+e+e;case 5936:switch(Xe(e,t+11)){case 114:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ee+e+_e+e+e;case 6165:return Ee+e+_e+"flex-"+e+e;case 5187:return Ee+e+fe(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return Ee+e+_e+"flex-item-"+fe(e,/flex-|-self/g,"")+(Ln(e,/flex-|baseline/)?"":_e+"grid-row-"+fe(e,/flex-|-self/g,""))+e;case 4675:return Ee+e+_e+"flex-line-pack"+fe(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ee+e+_e+fe(e,"shrink","negative")+e;case 5292:return Ee+e+_e+fe(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+fe(e,"-grow","")+Ee+e+_e+fe(e,"grow","positive")+e;case 4554:return Ee+fe(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4200:if(!Ln(e,/flex-|baseline/))return _e+"grid-column-align"+so(e,t)+e;break;case 2592:case 3360:return _e+fe(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ln(r.props,/grid-\w+-end/)})?~Ua(e+(n=n[t].value),"span")?e:_e+fe(e,"-start","")+e+_e+"grid-row-span:"+(~Ua(n,"span")?Ln(n,/\d+/):+Ln(n,/\d+/)-+Ln(e,/\d+/))+";":_e+fe(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ln(r.props,/grid-\w+-start/)})?e:_e+fe(fe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,Ee+"$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(gn(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ns+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ua(e,"stretch")?o3(fe(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return fe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,a,u){return _e+i+":"+o+u+(s?_e+i+"-span:"+(l?a:+a-+o)+u:"")+e});case 4949:if(Xe(e,t+6)===121)return fe(e,":",":"+Ee)+e;break;case 6444:switch(Xe(e,Xe(e,14)===45?18:11)){case 120:return fe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ee+(Xe(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+_e+"$2box$3")+e;case 100:return fe(e,":",":"+_e)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return fe(e,"scroll-","scroll-snap-")+e}return e}function Vl(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case kh:e.return=o3(e.value,e.length,n);return;case t3:return Vl([tr(e,{value:fe(e.value,"@","@"+Ee)})],r);case Du:if(e.length)return bS(n=e.props,function(i){switch(Ln(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yi(tr(e,{props:[fe(i,/:(read-\w+)/,":"+ns+"$1")]})),yi(tr(e,{props:[i]})),Dd(e,{props:im(n,r)});break;case"::placeholder":yi(tr(e,{props:[fe(i,/:(plac\w+)/,":"+Ee+"input-$1")]})),yi(tr(e,{props:[fe(i,/:(plac\w+)/,":"+ns+"$1")]})),yi(tr(e,{props:[fe(i,/:(plac\w+)/,_e+"input-$1")]})),yi(tr(e,{props:[i]})),Dd(e,{props:im(n,r)});break}return""})}}var s3={animationIterationCount:1,aspectRatio: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},lo=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",$h=typeof window<"u"&&"HTMLElement"in window,DS=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),IS={},Vu=Object.freeze([]),uo=Object.freeze({});function Th(e,t,n){return n===void 0&&(n=uo),e.theme!==n.theme&&e.theme||t||n.theme}var a3=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),jS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,NS=/(^-|-$)/g;function am(e){return e.replace(jS,"-").replace(NS,"")}var VS=/(a)(d)/gi,lm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Nd(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=lm(t%52)+n;return(lm(t%52)+n).replace(VS,"$1-$2")}var Xc,Ii=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},l3=function(e){return Ii(5381,e)};function _h(e){return Nd(l3(e)>>>0)}function zS(e){return e.displayName||e.name||"Component"}function ef(e){return typeof e=="string"&&!0}var u3=typeof Symbol=="function"&&Symbol.for,c3=u3?Symbol.for("react.memo"):60115,BS=u3?Symbol.for("react.forward_ref"):60112,US={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},HS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},WS=((Xc={})[BS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xc[c3]=f3,Xc);function um(e){return("type"in(t=e)&&t.type.$$typeof)===c3?f3:"$$typeof"in e?WS[e.$$typeof]:US;var t}var ZS=Object.defineProperty,YS=Object.getOwnPropertyNames,cm=Object.getOwnPropertySymbols,KS=Object.getOwnPropertyDescriptor,qS=Object.getPrototypeOf,fm=Object.prototype;function Rh(e,t,n){if(typeof t!="string"){if(fm){var r=qS(t);r&&r!==fm&&Rh(e,r,n)}var i=YS(t);cm&&(i=i.concat(cm(t)));for(var o=um(e),s=um(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var GS=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Or(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(h,","))}),a+="".concat(m).concat(g,'{content:"').concat(x,'"}').concat(`/*!sc*/ -`)},c=0;c0?".".concat(t):d},c=a.slice();c.push(function(d){d.type===Du&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(a7,n).replace(r,u))}),s.prefix&&c.push(LS),c.push(FS);var f=function(d,y,m,g){y===void 0&&(y=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var x=d.replace(l7,""),h=_S(m||y?"".concat(m," ").concat(y," { ").concat(x," }"):x);s.namespace&&(h=p3(h,s.namespace));var p=[];return Vl(h,AS(c.concat(MS(function(v){return p.push(v)})))),p};return f.hash=a.length?a.reduce(function(d,y){return y.name||Or(15),Ii(d,y.name)},5381).toString():"",f}var c7=new Ul,zd=u7(),h3=ee.createContext({shouldForwardProp:void 0,styleSheet:c7,stylis:zd});h3.Consumer;ee.createContext(void 0);function Bd(){return k.useContext(h3)}var m3=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=zd);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Ah(this,function(){throw Or(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=zd),this.name+t.hash},e}(),f7=function(e){return e>="A"&&e<="Z"};function pm(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Nr(i,s),this.staticRulesId=s}else{for(var a=Ii(this.baseHash,r.hash),u="",c=0;c>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),i=Nr(i,y)}}return i},e}(),oi=ee.createContext(void 0);oi.Consumer;function w3(){var e=k.useContext(oi);if(!e)throw Or(18);return e}function h7(e){var t=ee.useContext(oi),n=k.useMemo(function(){return function(r,i){if(!r)throw Or(14);if(ii(r)){var o=r(i);return o}if(Array.isArray(r)||typeof r!="object")throw Or(8);return i?qe(qe({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(oi.Provider,{value:n},e.children):null}var nf={};function m7(e,t,n){var r=Fh(e),i=e,o=!ef(e),s=t.attrs,l=s===void 0?Vu:s,a=t.componentId,u=a===void 0?function(v,w){var b=typeof v!="string"?"sc":am(v);nf[b]=(nf[b]||0)+1;var C="".concat(b,"-").concat(_h("6.0.7"+b+nf[b]));return w?"".concat(w,"-").concat(C):C}(t.displayName,t.parentComponentId):a,c=t.displayName;c===void 0&&function(v){return ef(v)?"styled.".concat(v):"Styled(".concat(zS(v),")")}(e);var f=t.displayName&&t.componentId?"".concat(am(t.displayName),"-").concat(t.componentId):t.componentId||u,d=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(v,w){return m(v,w)&&g(v,w)}}else y=m}var x=new p7(n,f,r?i.componentStyle:void 0);function h(v,w){return function(b,C,S){var P=b.attrs,$=b.componentStyle,R=b.defaultProps,D=b.foldedComponentIds,A=b.styledComponentId,I=b.target,B=ee.useContext(oi),W=Bd(),Z=b.shouldForwardProp||W.shouldForwardProp,G=function(le,ae,ye){for(var oe,de=qe(qe({},ae),{className:void 0,theme:ye}),Ae=0;Ae2&&Ul.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,i)},e}();function y7(e){for(var t=[],n=1;ne instanceof Bn?{...e}:e;function so(e,t){t=t||{};const n={};function r(u,c,f){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:f},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function i(u,c,f){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(nm(u),nm(c),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||i,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==l||(n[c]=d)}),n}const Q2="1.6.8",Ch={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ch[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rm={};Ch.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Q2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new ve(i(s," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!rm[s]&&(rm[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function lS(e,t,n){if(typeof e!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new ve("option "+o+" must be "+a,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Md={assertOptions:lS,validators:Ch},er=Md.validators;class Nl{constructor(t){this.defaults=t,this.interceptors={request:new Q0,response:new Q0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=so(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Md.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:Md.assertOptions(i,{encode:er.function,serialize:er.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&L.merge(o.common,o[n.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Bn.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!a){const m=[tm.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),d=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new Us(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Oh(function(i){t=i}),cancel:t}}}const uS=Oh;function cS(e){return function(n){return e.apply(null,n)}}function fS(e){return L.isObject(e)&&e.isAxiosError===!0}const Ld={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ld).forEach(([e,t])=>{Ld[t]=e});const dS=Ld;function J2(e){const t=new Ba(e),n=F2(Ba.prototype.request,t);return L.extend(n,Ba.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return J2(so(e,i))},n}const We=J2(Eh);We.Axios=Ba;We.CanceledError=Us;We.CancelToken=uS;We.isCancel=K2;We.VERSION=Q2;We.toFormData=Au;We.AxiosError=ve;We.Cancel=We.CanceledError;We.all=function(t){return Promise.all(t)};We.spread=cS;We.isAxiosError=fS;We.mergeConfig=so;We.AxiosHeaders=Bn;We.formToJSON=e=>Y2(L.isHTMLForm(e)?new FormData(e):e);We.getAdapter=G2.getAdapter;We.HttpStatusCode=dS;We.default=We;const pS=We,xt=pS.create({baseURL:"https://byte-water-back.onrender.com/api"});function Lu(e){xt.defaults.headers.authorization=`Bearer ${e}`}function hS(){xt.defaults.headers.authorization=""}const Gc=Ut("auth/signUp",async(e,t)=>{try{const{data:n}=await xt.post("users/register",e);return n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Qc=Ut("auth/signIn",async(e,t)=>{try{const{data:n}=await xt.post("users/login",e);return n&&Lu(n.token),n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Wr=Ut("/api/users/current",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt("users/current");return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Zr=Ut("/api/users/logout",async(e,t)=>{try{const{data:n}=await xt.post("users/logout");return hS(),n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Yr=Ut("user/updateAvatar",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt.patch("users/avatars",e,{headers:{"Content-type":"multipart/form-data"}});return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Kr=Ut("user/updateUser",async(e,t)=>{try{const n=t.getState().auth.token;n&&Lu(n);const{data:r}=await xt.patch("users/update-user",e);return r}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),Ki=Ut("user/forgotPassword",async(e,t)=>{try{const{data:n}=await xt.post("users/forgot-password",e);return n}catch(n){return t.rejectWithValue(n.response.data.message??n.message)}}),qi=Ut("user/updatePassword",async({tempCode:e,newPassword:t},n)=>{try{const{data:r}=await xt.post(`users/update-password/${e.tempCode}`,{newPassword:t});return r}catch(r){return n.rejectWithValue(r.response.data.message??r.message)}});var X2={exports:{}},e3={};/** + * @license React + * use-sync-external-store-with-selector.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 Hs=k;function mS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gS=typeof Object.is=="function"?Object.is:mS,yS=Hs.useSyncExternalStore,vS=Hs.useRef,wS=Hs.useEffect,xS=Hs.useMemo,bS=Hs.useDebugValue;e3.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=vS(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=xS(function(){function a(y){if(!u){if(u=!0,c=y,y=r(y),i!==void 0&&s.hasValue){var m=s.value;if(i(m,y))return f=m}return f=y}if(m=f,gS(c,y))return m;var g=r(y);return i!==void 0&&i(m,g)?m:(c=y,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return a(t())},d===null?void 0:function(){return a(d())}]},[t,n,r,i]);var l=yS(e,o[0],o[1]);return wS(function(){s.hasValue=!0,s.value=l},[l]),bS(l),l};X2.exports=e3;var SS=X2.exports,At="default"in as?ee:as,im=Symbol.for("react-redux-context"),om=typeof globalThis<"u"?globalThis:{};function ES(){if(!At.createContext)return{};const e=om[im]??(om[im]=new Map);let t=e.get(At.createContext);return t||(t=At.createContext(null),e.set(At.createContext,t)),t}var Or=ES(),CS=()=>{throw new Error("uSES not initialized!")};function kh(e=Or){return function(){return At.useContext(e)}}var t3=kh(),n3=CS,OS=e=>{n3=e},kS=(e,t)=>e===t;function PS(e=Or){const t=e===Or?t3:kh(e),n=(r,i={})=>{const{equalityFn:o=kS,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:a,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();At.useRef(!0);const d=At.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,s.stabilityCheck]),y=n3(a.addNestedSub,l.getState,u||l.getState,d,o);return At.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var kr=PS();function $S(e){e()}function TS(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$S(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var sm={notify(){},get:()=>[]};function _S(e,t){let n,r=sm,i=0,o=!1;function s(g){c();const x=r.subscribe(g);let h=!1;return()=>{h||(h=!0,x(),f())}}function l(){r.notify()}function a(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=TS())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=sm)}function d(){o||(o=!0,c())}function y(){o&&(o=!1,f())}const m={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:a,isSubscribed:u,trySubscribe:d,tryUnsubscribe:y,getListeners:()=>r};return m}var RS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FS=RS?At.useLayoutEffect:At.useEffect;function AS({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=At.useMemo(()=>{const u=_S(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),l=At.useMemo(()=>e.getState(),[e]);FS(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,l]);const a=t||Or;return At.createElement(a.Provider,{value:s},n)}var MS=AS;function r3(e=Or){const t=e===Or?t3:kh(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var LS=r3();function DS(e=Or){const t=e===Or?LS:r3(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=DS();OS(SS.useSyncExternalStoreWithSelector);const hi=e=>{var t;return(t=e.auth)==null?void 0:t.user},cj=e=>{var t,n;return(n=(t=e.auth)==null?void 0:t.user)==null?void 0:n.dailyNorma},IS=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:102,height:48,fill:"none",...e,children:[E.jsxs("g",{clipPath:"url(#a)",children:[E.jsx("path",{fill:"#9EBBFF",d:"M15.82 7.319c.673-.53 1.523.618 1.613 1.677.09 1.06-.852 3.443-3.496 4.061-2.645.618-2.959 2.251-2.87 3.223.09.97-.358 2.03-1.3 1.81-.94-.22-1.03-1.678-.178-3.047.851-1.37 3.002-2.604 3.361-3.355.36-.75.09-1.633.807-1.942.717-.309 1.659.486 1.57 1.237 0 0 .716-.707.627-1.766-.06-.695-.473-1.632-.135-1.898ZM33.212 13.764c.25-.708 2.017-.31 2.42.662.404.97.27 1.721.673 2.383.403.662-.717 1.766-1.547 1.633-.83-.132-.516-1.633-.516-2.295 0-.662-1.433-1.236-1.03-2.383ZM27.61 5.427c.613-.54 1.927.39 2.285 1.14.36.75.045 2.737-1.053 2.692-1.098-.044-.662-1.597-1.053-1.92-.695-.574-.672-1.478-.18-1.912ZM20.042.829c.435.673.111 1.589-.994 1.795-1.106.206-1.315-.707-1.913-.5-.598.206-1.256.352-1.524-.118-.268-.471.03-1.177 1.225-1.177s2.407-1.236 3.206 0ZM13.086 7.265c.52 0 .941-.447.941-.999 0-.551-.421-.998-.941-.998s-.941.447-.941.998c0 .552.42.999.94.999ZM9.003 10.57c-.334-.166-1.43 1.559-.683 1.765.747.207 1.218-1.5.683-1.765ZM6.078 15.69s1.464.794.926 2.427c-.538 1.633-1.703 1.427-2.062.927-.359-.5-.359-1.177.24-1.649.597-.471.896-1.705.896-1.705ZM37.157 24.488s.448.663.224 1.854-.582 3.53.672 4.194c1.255.663 1.749-1.678 1.256-2.384-.492-.706.269-3.135-2.152-3.664ZM38.749 35.127c.532 0 .964-.514.964-1.147 0-.634-.432-1.148-.964-1.148s-.964.514-.964 1.148c0 .634.432 1.147.964 1.147ZM.939 35.569c.83-.425 1.524.264 1.613 1.544.09 1.28 1.3 2.384.673 3.046-.628.662-1.357-2.074-1.928-2.328-.875-.39-1.569-1.645-.358-2.263Z"}),E.jsx("path",{fill:"#9EBBFF",d:"M36.236 36.848c-.783.795.259 1.618-1.589 3.708-.77.87.568 3.473-3.138 3.443 0 0-2.152 1.942-4.303 2.208-2.152.265-3.049-.089-5.11 1.06-2.063 1.147-6.635-.796-8.518-1.634-1.883-.839-2.6-.928-4.212-.928-1.614 0-.986-2.472-2.152-3.531-1.166-1.06-2.51-1.5-2.6-2.471-.09-.97-.987-1.413-.897-2.914.09-1.501-1.434-1.942-1.613-3.796-.179-1.855.806-2.207.447-3.266-.358-1.06-.447-1.942.09-3.002.064-.128.138-.251.222-.368.461-.646.903-.596 1.213-1.662.359-1.237-.628-1.766.448-2.295 1.076-.53 1.435 1.058.807 2.648-.629 1.59-1.435 3.09-.359 3.355 1.077.264.808-3.002 2.242-4.503 1.435-1.501.807-1.853 2.69-3.355 1.881-1.5 2.061-.882 2.689-2.472.627-1.59 2.399-3.266 4.204-4.06 1.805-.796 2.61-1.148 2.341-2.473-.27-1.325 1.235-1.324 1.29-2.737.056-1.412-1.2-2.383-2.276-2.03-1.075.353-2.152.353-1.793-.794.359-1.147 2.617-1.06 3.684-.53 1.067.529 1.964-.794 3.399.53 1.434 1.324 3.317 1.766 3.048 4.857-.269 3.09-.538 4.148.627 4.325 1.165.178.18-1.412.18-2.648 0-1.235 2.062-1.148 2.6-.177.537.97-.18 2.648.358 3.267.538.619 1.525.53 1.793 1.412.269.882-.179 4.502 1.076 5.297 1.255.795.986-1.942 2.062-1.103 1.076.838 1.345 2.339.717 3.84-.418 1.003-.461 3.508-.218 5.664.118 1.067.306 2.05.552 2.722.741 2.03.781 3.618-.002 4.413Z"}),E.jsx("path",{fill:"#C6D7FF",d:"M21.374 14.347c2.354-.732 4.33 3.318 3.51 5.059-.819 1.74-1.169 7.108 1.873 6.44 3.042-.667.82-5.83 2.457-5.726 1.638.104.936 4.828 1.99 6.326 1.053 1.498 4.686 11.754-1.168 15.326-5.854 3.572-14.138 3.457-17.31.807a13.854 13.854 0 0 1-2.88-3.264 6.84 6.84 0 0 1-.65-1.278c-.285-.768-.235-1.038-.523-1.809a7.295 7.295 0 0 0-.722-1.415c-.633-.958-.92-.846-1.511-1.68-.197-.278-.824-1.218-.882-2.485-.015-.331-.058-1.258.343-1.423.453-.187 1.04.78 1.642.58.315-.106.452-.471.539-.7.254-.677 0-1.096-.123-2.099-.094-.776-.207-1.709.255-2.496.076-.13.294-.55 1.018-.944 2.546-1.383 4.833-.115 6.498-2.65 1.665-2.535 1.698-2.702 3.261-3.368 1.564-.665.16-2.51 2.383-3.2Z"}),E.jsx("path",{fill:"#407BFF",d:"M20.44 48c-1.662 0-3.983-.67-7.019-2.022-1.85-.825-2.506-.894-4.055-.894-1.226 0-1.487-1.1-1.697-1.985-.148-.624-.301-1.27-.716-1.647-.385-.35-.789-.627-1.178-.896-.788-.542-1.469-1.01-1.544-1.82-.03-.32-.177-.584-.349-.891-.27-.484-.607-1.085-.548-2.078.036-.616-.26-1.016-.635-1.523-.412-.556-.878-1.186-.978-2.215-.102-1.054.142-1.666.338-2.16.16-.401.257-.644.129-1.023-.325-.957-.536-2.018.11-3.29.272-.535.559-.786.789-.988.262-.23.45-.395.619-.977.124-.43.054-.747-.014-1.055-.103-.462-.23-1.037.66-1.475.447-.22.884-.183 1.2.1.57.51.627 1.782.136 3.024-.086.218-.175.434-.262.645-.34.825-.727 1.756-.559 2.083.013.025.044.084.198.122.01.003.019.005.029.004.173-.06.382-.884.507-1.377.25-.985.562-2.214 1.333-3.021a5.627 5.627 0 0 0 1.015-1.408c.3-.556.584-1.082 1.712-1.982.719-.573 1.197-.846 1.547-1.047.536-.307.68-.389 1.027-1.268.655-1.66 2.467-3.415 4.405-4.269l.008-.003c1.878-.828 2.314-1.06 2.114-2.05-.18-.886.29-1.347.67-1.717.318-.31.592-.578.613-1.108.022-.579-.226-1.118-.664-1.442-.345-.254-.749-.333-1.108-.215-.689.227-1.612.398-2.097-.069-.196-.188-.386-.548-.184-1.195.13-.415.45-.74.925-.94.98-.412 2.475-.224 3.298.184.296.146.575.095 1.006-.001.66-.148 1.482-.331 2.483.592.304.28.64.527.963.766 1.196.878 2.432 1.787 2.205 4.398-.034.386-.067.741-.098 1.067-.232 2.444-.187 2.764.401 2.853.042.007.084.01.126.008.025-.159-.082-.586-.155-.878-.109-.438-.233-.934-.233-1.406 0-.613.382-1.075 1.02-1.235.766-.192 1.863.09 2.3.878.326.588.272 1.335.224 1.994-.035.478-.074 1.02.09 1.207.166.192.416.305.68.425.437.197.98.443 1.189 1.125.097.32.112.855.13 1.53.035 1.241.087 3.116.785 3.558.128.08.2.091.224.085.102-.03.248-.343.335-.53.167-.358.357-.766.762-.861.246-.059.506.018.772.224 1.201.937 1.529 2.616.834 4.28-.577 1.379-.377 6.157.34 8.115.822 2.25.793 3.912-.086 4.805-.204.207-.226.395-.256.797-.05.649-.117 1.537-1.319 2.896-.15.17-.186.536-.224.923-.103 1.047-.257 2.619-3.057 2.65-.486.414-2.416 1.96-4.401 2.204-.611.075-1.126.102-1.58.126-1.148.06-1.978.102-3.39.888-.485.27-1.099.406-1.845.406ZM4.915 21.675a.509.509 0 0 0-.219.064c-.355.175-.345.219-.253.638.076.342.18.81.002 1.423-.23.793-.543 1.068-.847 1.334-.21.183-.407.356-.613.762-.493.971-.392 1.758-.068 2.713.216.638.034 1.095-.143 1.538-.174.44-.372.937-.288 1.812.08.822.463 1.34.834 1.841.41.553.834 1.126.781 2.013-.046.774.197 1.209.455 1.669.195.349.397.71.441 1.188.043.459.562.816 1.219 1.268.392.269.835.575 1.26.96.586.534.775 1.329.942 2.03.236.996.388 1.401.949 1.401 1.608 0 2.402.083 4.371.96 5.11 2.277 7.264 2.154 8.17 1.65 1.569-.874 2.521-.923 3.727-.985.441-.023.941-.05 1.525-.12 2.006-.248 4.07-2.093 4.091-2.111.07-.064.163-.1.26-.1h.003c2.24.018 2.33-.902 2.436-1.967.05-.51.097-.994.409-1.346 1.034-1.17 1.088-1.883 1.131-2.456.032-.42.066-.854.471-1.267.642-.652.61-2.118-.085-4.023-.792-2.165-.979-7.102-.328-8.659.562-1.343.326-2.677-.6-3.4a.525.525 0 0 0-.118-.074c-.072.069-.177.295-.242.434-.177.381-.379.813-.818.94-.264.076-.55.018-.854-.174-1.039-.658-1.093-2.607-1.137-4.172-.015-.571-.03-1.111-.099-1.335-.103-.338-.348-.463-.773-.655-.312-.142-.667-.302-.944-.62-.368-.423-.321-1.07-.272-1.754.043-.582.086-1.184-.132-1.576-.241-.437-.957-.628-1.436-.508-.443.112-.443.406-.443.503 0 .38.113.829.212 1.225.165.66.308 1.231-.021 1.586-.181.194-.454.265-.812.211-1.378-.209-1.268-1.366-1.05-3.67.031-.323.065-.677.098-1.062.19-2.192-.731-2.87-1.898-3.727-.342-.251-.695-.51-1.03-.82-.703-.65-1.183-.543-1.788-.407-.452.1-.965.215-1.52-.06-.66-.328-1.912-.475-2.653-.164-.265.111-.43.268-.491.466-.066.211-.072.376-.014.432.101.098.536.15 1.318-.108.602-.197 1.262-.078 1.811.328.64.473 1.002 1.249.97 2.076-.032.827-.48 1.265-.839 1.616-.376.367-.553.564-.458 1.032.328 1.618-.756 2.097-2.553 2.887l-.008.004c-1.74.766-3.423 2.387-4.002 3.853-.427 1.082-.708 1.276-1.356 1.648-.328.188-.777.445-1.45.98-1.007.804-1.244 1.242-1.518 1.75a6.357 6.357 0 0 1-1.133 1.57c-.634.664-.919 1.786-1.147 2.687-.134.528-.25.984-.417 1.324-.329.666-.799.663-1.05.6-.408-.1-.604-.335-.696-.515-.326-.633.072-1.595.532-2.709.086-.208.174-.42.258-.634.422-1.069.305-1.974.063-2.192a.166.166 0 0 0-.123-.046Z"}),E.jsx("path",{fill:"#407BFF",d:"M10.014 18.401c-.105 0-.21-.013-.312-.037a1.207 1.207 0 0 1-.847-.735c-.302-.717-.115-1.765.489-2.735.491-.789 1.356-1.505 2.12-2.139.56-.466 1.091-.905 1.226-1.188.117-.245.16-.521.2-.788.075-.486.16-1.038.753-1.294.405-.174.897-.097 1.316.209.211.153.384.352.505.581.13-.265.239-.621.204-1.036a5.495 5.495 0 0 0-.13-.704c-.136-.591-.263-1.15.102-1.439a.86.86 0 0 1 .902-.12c.587.25 1.105 1.126 1.179 1.995.098 1.157-.92 3.707-3.717 4.36-2.486.581-2.726 2.08-2.649 2.922.071.768-.163 1.503-.595 1.872-.206.18-.472.278-.746.276Zm4.083-8.44a.563.563 0 0 0-.224.044c-.288.124-.34.38-.413.859-.045.292-.096.624-.248.944-.19.396-.714.831-1.378 1.382-.73.605-1.558 1.291-2 2-.493.794-.673 1.687-.447 2.223.091.217.242.352.448.4.217.05.396.013.547-.116.293-.25.454-.81.4-1.392-.076-.825.073-2.82 3.089-3.524 2.46-.575 3.36-2.77 3.276-3.762-.06-.714-.488-1.374-.833-1.52a.28.28 0 0 0-.314.04c-.079.094.037.6.099.872.06.261.12.53.142.782.1 1.177-.678 1.957-.71 1.99a.29.29 0 0 1-.33.054.28.28 0 0 1-.16-.288c.032-.269-.139-.59-.425-.799a.893.893 0 0 0-.519-.19ZM34.904 18.736c-.065 0-.129-.005-.192-.015-.928-.148-.84-1.341-.781-2.13a6.75 6.75 0 0 0 .024-.446c0-.152-.2-.374-.392-.589-.39-.436-.924-1.032-.623-1.887.118-.336.453-.537.918-.55.735-.017 1.723.433 2.04 1.198.204.49.279.925.344 1.308.068.394.126.735.31 1.036.205.338.158.77-.13 1.19-.319.464-.92.885-1.518.885Zm-.997-5.05h-.033c-.1.003-.34.025-.39.168-.178.505.087.853.511 1.326.276.308.535.598.535.965 0 .139-.012.307-.025.486-.043.583-.11 1.464.3 1.53.35.055.863-.226 1.14-.628.074-.107.234-.382.113-.58-.24-.395-.31-.802-.384-1.235-.063-.371-.129-.756-.309-1.188-.21-.504-.928-.844-1.458-.844ZM28.878 9.544l-.048-.001c-.947-.038-1.052-.932-1.116-1.465-.02-.174-.054-.466-.112-.522-.398-.329-.631-.792-.639-1.27-.007-.421.159-.81.454-1.07.236-.208.555-.279.923-.205.746.15 1.542.863 1.815 1.435.28.584.225 1.781-.265 2.51-.26.385-.61.588-1.012.588Zm-.81-3.995a.39.39 0 0 0-.268.09.823.823 0 0 0-.261.638c.005.319.16.619.434.846.23.19.27.53.313.89.077.643.157.948.567.964.217.009.4-.101.557-.335.364-.541.428-1.527.224-1.954-.21-.437-.855-1.01-1.409-1.121a.799.799 0 0 0-.157-.018ZM18.732 2.939c-.511 0-.834-.22-1.082-.39-.234-.16-.308-.196-.42-.157-.431.149-1.444.498-1.869-.246a.945.945 0 0 1 .005-.96c.14-.24.521-.64 1.47-.64.365 0 .754-.14 1.132-.274.744-.265 1.671-.595 2.317.405.262.405.305.878.12 1.3-.208.473-.683.81-1.303.926a2.013 2.013 0 0 1-.37.036ZM17.307 1.81c.273 0 .49.148.672.273.267.183.52.355 1.016.263.435-.081.748-.292.881-.594a.802.802 0 0 0-.077-.77c-.38-.59-.822-.466-1.635-.176-.424.152-.863.308-1.327.308-.484 0-.838.13-.974.358a.385.385 0 0 0 0 .396c.13.228.494.225 1.178-.01a.814.814 0 0 1 .266-.048ZM13.085 7.547c-.678 0-1.23-.576-1.23-1.282 0-.707.552-1.283 1.23-1.283.678 0 1.229.576 1.229 1.282 0 .707-.551 1.283-1.23 1.283Zm0-1.998c-.36 0-.654.321-.654.715 0 .395.294.716.654.716.36 0 .653-.321.653-.716 0-.394-.293-.715-.653-.715ZM8.449 12.636c-.07 0-.14-.01-.206-.028a.61.61 0 0 1-.452-.49c-.106-.553.419-1.42.812-1.71.236-.176.418-.147.53-.092.46.228.471.93.244 1.507-.203.518-.548.813-.928.813Zm.466-1.752c-.211.178-.58.758-.562 1.095.004.072.018.075.045.083.166.046.346-.198.443-.444.128-.328.118-.611.074-.734ZM5.695 19.688c-.391 0-.772-.18-.987-.48-.486-.678-.364-1.514.295-2.033.425-.335.719-1.234.796-1.551a.281.281 0 0 1 .163-.194.293.293 0 0 1 .255.011c.579.314 1.545 1.296 1.062 2.764-.38 1.153-1.04 1.415-1.4 1.47-.06.008-.122.013-.184.013Zm.544-3.53c-.149.435-.437 1.112-.877 1.46-.514.404-.42.933-.183 1.262a.655.655 0 0 0 .615.233c.394-.059.727-.443.937-1.084.313-.95-.153-1.568-.492-1.871ZM38.479 30.935a1.2 1.2 0 0 1-.561-.15c-1.358-.716-1.118-2.908-.819-4.494.198-1.05-.177-1.64-.18-1.645a.28.28 0 0 1 .133-.421.292.292 0 0 1 .168-.013c1.906.417 2.054 1.924 2.153 2.922.036.364.07.708.174.857.424.608.268 1.96-.299 2.582-.218.24-.484.362-.77.362Zm-.835-5.99c.086.349.136.837.02 1.45-.41 2.181-.233 3.49.526 3.891.255.135.45.107.629-.09.41-.453.503-1.524.253-1.882-.189-.27-.228-.666-.273-1.124-.083-.846-.176-1.79-1.155-2.244ZM38.748 35.411c-.69 0-1.252-.642-1.252-1.431 0-.79.561-1.431 1.252-1.431.69 0 1.251.642 1.251 1.431 0 .79-.562 1.431-1.251 1.431Zm0-2.295c-.373 0-.676.388-.676.864 0 .477.303.864.676.864.372 0 .676-.388.676-.864s-.304-.864-.676-.864ZM3.02 40.545a.538.538 0 0 1-.076-.005c-.455-.066-.779-.706-1.153-1.448-.176-.349-.471-.933-.614-1.003C.513 37.792.02 37.129 0 36.513c-.013-.5.273-.925.805-1.197.396-.202.805-.208 1.152-.016.5.276.82.93.881 1.794.035.491.255.96.468 1.415.306.65.621 1.323.128 1.843a.558.558 0 0 1-.414.193Zm-1.605-4.818a.763.763 0 0 0-.345.093c-.335.171-.501.399-.494.677.011.398.38.87.84 1.075.307.138.539.572.89 1.268.185.364.52 1.029.704 1.13l.004-.004c.218-.23.055-.613-.23-1.219-.223-.477-.477-1.019-.519-1.614-.046-.66-.266-1.16-.59-1.339a.529.529 0 0 0-.26-.067ZM22.77 32.5c.23 1.128-.505 2.314-1.568 2.76-1.489.667-3.356-.118-3.805-1.681a2.27 2.27 0 0 1-.055-1.079.166.166 0 0 1 .058-.095.17.17 0 0 1 .272.091c.244 1.147 1.212 2.005 2.368 1.993 1.148-.008 2.089-.855 2.336-1.989.041-.21.353-.208.393 0h.001Z"}),E.jsx("path",{fill:"#fff",d:"M9.888 34.225c1.038-.196 1.673-1.413 1.419-2.72-.254-1.307-1.3-2.209-2.338-2.013-1.038.195-1.673 1.413-1.42 2.72.255 1.307 1.301 2.208 2.339 2.013ZM9.946 28.198c1.073.329 2.15-3.13 4.05-3.912 1.901-.783 3.154-3.245 3.737-4.837.583-1.593 2.976-2.633 2.47-3.746-.505-1.113-2.694-.217-3.984 1.478-1.29 1.696-.714 3.465-2.66 4.213-1.945.749-5.833 6.124-3.613 6.804Z",opacity:.5}),E.jsx("path",{fill:"#407BFF",d:"M35.256 36.728c-.735.718.244 1.46-1.492 3.348-.723.785.533 3.136-2.948 3.108 0 0-2.023 1.754-4.045 1.993-2.023.24-2.865-.08-4.803.957-1.938 1.036-6.235-.717-8.005-1.475-1.77-.758-2.443-.837-3.96-.837-1.516 0-.926-2.232-2.022-3.188-1.095-.957-2.36-1.355-2.444-2.231-.084-.877-.926-1.276-.842-2.631.085-1.356-1.348-1.753-1.516-3.428-.168-1.674.757-1.992.42-2.948-.337-.957-.42-1.754.085-2.71.06-.116.13-.227.209-.332.021.542.052 1.084.24 1.42.195.348.452.669.571 1.046.306.967-.378 1.951-.477 2.957-.186 1.86 1.56 3.299 2.753 4.787 1.063 1.325 1.824 2.954 3.324 3.82 1.67.966 3.834.718 5.662.06 1.828-.657 3.497-1.684 5.36-2.25 2.155-.657 4.466-.668 6.727-.555 1.628.08 3.488.143 4.62-.966.652-.637.913-1.54 1.09-2.41a20.14 20.14 0 0 0 .383-5.082l.592 1.105c.11.963.288 1.85.519 2.457.697 1.833.734 3.268 0 3.985Z",opacity:.2}),E.jsx("path",{fill:"#407BFF",d:"M25.413 24.93c1.231-.124 2.368 1.203 2.539 2.963.17 1.76-.689 3.288-1.92 3.412-1.23.123-2.367-1.204-2.538-2.964-.17-1.76.689-3.287 1.92-3.411Z"}),E.jsx("path",{fill:"#fff",d:"M25.498 25.667c.392.161.561.76.378 1.338-.184.578-.651.916-1.044.755-.392-.162-.56-.76-.377-1.338.184-.578.651-.916 1.043-.755Z"}),E.jsx("path",{fill:"#8BAEFF",d:"M26.819 29.452c.185.135.208.466.05.738-.158.272-.437.383-.622.248-.185-.136-.208-.466-.05-.738.157-.272.436-.383.622-.248Z"}),E.jsx("path",{fill:"#407BFF",d:"M14.857 24.93c-1.23-.124-2.367 1.203-2.538 2.963-.171 1.76.688 3.288 1.918 3.412 1.231.123 2.368-1.204 2.539-2.964.171-1.76-.688-3.287-1.919-3.411Z"}),E.jsx("path",{fill:"#fff",d:"M14.772 25.667c-.392.161-.561.76-.377 1.338.183.578.65.916 1.043.755.392-.162.56-.76.377-1.338-.184-.578-.65-.916-1.043-.755Z"}),E.jsx("path",{fill:"#8BAEFF",d:"M13.45 29.452c-.185.135-.208.466-.05.738.158.272.437.383.622.248.185-.136.208-.466.05-.738-.158-.272-.436-.383-.622-.248Z"})]}),E.jsx("path",{fill:"#407BFF",d:"M48.576 12.469V21h-1.752v-8.531h1.752Zm2.625 0v1.377h-6.96v-1.377h6.96Zm1.002 0h3.182c.652 0 1.213.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.765l-.012-1.371h2.056c.31 0 .565-.055.768-.164.203-.11.355-.262.457-.457.106-.196.158-.422.158-.68 0-.274-.05-.51-.152-.71a1.029 1.029 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V21h-1.758v-8.531ZM56.973 21l-1.946-3.803 1.858-.011 1.968 3.732V21h-1.88Zm6.386-7.072L61.04 21h-1.87l3.17-8.531h1.19l-.17 1.459ZM65.287 21l-2.326-7.072-.188-1.46h1.202L67.162 21h-1.875Zm-.105-3.176v1.377h-4.506v-1.377h4.506Zm7.611.346h1.752a3.176 3.176 0 0 1-.475 1.53 2.829 2.829 0 0 1-1.166 1.042c-.496.25-1.093.375-1.793.375a3.671 3.671 0 0 1-1.47-.281 3.13 3.13 0 0 1-1.114-.82 3.654 3.654 0 0 1-.697-1.29 5.575 5.575 0 0 1-.24-1.693v-.592c0-.625.082-1.189.246-1.693a3.74 3.74 0 0 1 .715-1.295 3.186 3.186 0 0 1 1.119-.82 3.56 3.56 0 0 1 1.453-.287c.711 0 1.31.129 1.799.386.492.258.873.614 1.142 1.067.274.453.438.969.493 1.547h-1.758a2.262 2.262 0 0 0-.205-.873 1.164 1.164 0 0 0-.533-.545c-.235-.125-.547-.188-.938-.188-.293 0-.549.055-.767.164-.22.11-.403.276-.551.498-.149.223-.26.504-.334.844-.07.336-.106.73-.106 1.184v.603c0 .442.033.83.1 1.166.066.332.168.613.304.844.141.227.32.398.54.516.222.113.49.17.802.17.367 0 .67-.06.908-.176.239-.117.42-.291.545-.522.13-.23.206-.517.229-.861Zm4.664-5.701V21h-1.758v-8.531h1.758Zm5.11 0-3.381 4.213-1.952 2.097-.316-1.664 1.318-1.804 2.174-2.842h2.156ZM80.567 21l-2.513-3.943 1.3-1.09L82.649 21h-2.08Zm8.485-1.371V21h-4.541v-1.371h4.54Zm-3.967-7.16V21h-1.758v-8.531h1.758Zm3.375 3.474v1.336h-3.95v-1.336h3.95Zm.586-3.474v1.377h-4.535v-1.377h4.535Zm1.031 0h3.182c.652 0 1.213.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.765l-.012-1.371h2.056c.31 0 .565-.055.768-.164.203-.11.355-.262.457-.457.106-.196.158-.422.158-.68 0-.274-.05-.51-.152-.71a1.029 1.029 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V21h-1.758v-8.531ZM94.848 21l-1.946-3.803 1.858-.011 1.968 3.732V21h-1.88ZM51.77 30.535v.404c0 .649-.088 1.23-.264 1.746a3.84 3.84 0 0 1-.744 1.319c-.32.36-.703.635-1.149.826a3.66 3.66 0 0 1-1.47.287 3.686 3.686 0 0 1-1.471-.287 3.297 3.297 0 0 1-1.149-.826 3.861 3.861 0 0 1-.755-1.319c-.176-.515-.264-1.097-.264-1.746v-.404c0-.652.088-1.234.264-1.746a3.84 3.84 0 0 1 .744-1.318c.324-.364.707-.64 1.148-.832a3.686 3.686 0 0 1 1.47-.287c.54 0 1.03.095 1.472.287.445.191.828.468 1.148.832.324.363.574.802.75 1.318.18.512.27 1.094.27 1.746Zm-1.776.404v-.416c0-.453-.04-.851-.123-1.195a2.59 2.59 0 0 0-.363-.867 1.569 1.569 0 0 0-.586-.527 1.675 1.675 0 0 0-.791-.182c-.297 0-.56.06-.791.182-.227.117-.42.293-.58.527a2.672 2.672 0 0 0-.358.867 5.186 5.186 0 0 0-.123 1.195v.416c0 .45.041.848.123 1.196.082.343.203.635.364.873.16.234.355.412.586.533.23.121.494.182.79.182.297 0 .561-.06.792-.182.23-.121.423-.299.58-.533.156-.239.275-.53.357-.873.082-.348.123-.746.123-1.195Zm4.799-4.47V35h-1.758v-8.531h1.758Zm3.398 3.644v1.371h-3.879v-1.37h3.88Zm.41-3.644v1.377h-4.288v-1.377h4.289Zm6.065 7.178 1.7-7.178h.948l.217 1.195L65.721 35H64.7l-.035-1.353Zm-.873-7.178 1.406 7.178L65.082 35h-1.137l-1.892-8.531h1.74Zm5.232 7.148 1.39-7.148h1.74L70.267 35H69.13l-.106-1.383Zm-1.177-7.148 1.71 7.207L69.513 35h-1.02l-1.822-7.342.234-1.19h.944Zm8.472 1.459L74 35h-1.87l3.17-8.531h1.19l-.17 1.459ZM78.248 35l-2.326-7.072-.188-1.46h1.202L80.123 35h-1.875Zm-.105-3.176v1.377h-4.506v-1.377h4.506Zm5.859-5.355V35H82.25v-8.531h1.752Zm2.625 0v1.377h-6.961v-1.377h6.961Zm6.727 7.16V35h-4.541v-1.371h4.54Zm-3.967-7.16V35h-1.758v-8.531h1.758Zm3.375 3.474v1.336h-3.95v-1.336h3.95Zm.586-3.474v1.377h-4.535v-1.377h4.535Zm1.03 0h3.183c.652 0 1.212.097 1.681.293.473.195.836.484 1.09.867.254.383.381.853.381 1.412 0 .457-.078.85-.234 1.178-.153.324-.37.595-.65.814a3.375 3.375 0 0 1-.98.516l-.556.293h-2.766l-.011-1.371h2.056c.309 0 .565-.055.768-.164.203-.11.355-.262.457-.457a1.41 1.41 0 0 0 .158-.68c0-.274-.05-.51-.152-.71a1.028 1.028 0 0 0-.463-.456c-.207-.106-.467-.158-.78-.158h-1.423V35h-1.758v-8.531ZM99.149 35l-1.945-3.803 1.858-.011 1.968 3.732V35h-1.88Z"}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h40v48H0z"})})})]});var qe=function(){return qe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?Xe(Eo,--en):0,uo--,Be===10&&(uo=1,ju--),Be}function fn(){return Be=en2||Id(Be)>3?"":" "}function qS(e,t){for(;--t&&fn()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Vu(e,Ha()+(t<6&&qr()==32&&fn()==32))}function jd(e){for(;fn();)switch(Be){case e:return en;case 34:case 39:e!==34&&e!==39&&jd(Be);break;case 40:e===41&&jd(e);break;case 92:fn();break}return en}function GS(e,t){for(;fn()&&e+Be!==47+10;)if(e+Be===42+42&&qr()===47)break;return"/*"+Vu(t,en-1)+"*"+$h(e===47?e:fn())}function QS(e){for(;!Id(qr());)fn();return Vu(e,en)}function JS(e){return YS(Wa("",null,null,null,[""],e=ZS(e),0,[0],e))}function Wa(e,t,n,r,i,o,s,l,a){for(var u=0,c=0,f=s,d=0,y=0,m=0,g=1,x=1,h=1,p=0,v="",w=i,b=o,C=r,S=v;x;)switch(m=p,p=fn()){case 40:if(m!=108&&Xe(S,f-1)==58){Ua(S+=fe(Jc(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:S+=Jc(p);break;case 9:case 10:case 13:case 32:S+=KS(m);break;case 92:S+=qS(Ha()-1,7);continue;case 47:switch(qr()){case 42:case 47:Wo(XS(GS(fn(),Ha()),t,n,a),a);break;default:S+="/"}break;case 123*g:l[u++]=gn(S)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:h==-1&&(S=fe(S,/\f/g,"")),y>0&&gn(S)-f&&Wo(y>32?um(S+";",r,n,f-1,a):um(fe(S," ","")+";",r,n,f-2,a),a);break;case 59:S+=";";default:if(Wo(C=lm(S,t,n,u,c,i,l,v,w=[],b=[],f,o),o),p===123)if(c===0)Wa(S,t,C,C,w,o,f,l,b);else switch(d===99&&Xe(S,3)===110?100:d){case 100:case 108:case 109:case 115:Wa(e,C,C,r&&Wo(lm(e,C,C,0,0,i,l,v,i,w=[],f,b),b),i,b,f,l,r?w:b);break;default:Wa(S,C,C,C,[""],b,0,l,b)}}u=c=y=0,g=h=1,v=S="",f=s;break;case 58:f=1+gn(S),y=m;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&WS()==125)continue}switch(S+=$h(p),p*g){case 38:h=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(gn(S)-1)*h,h=1;break;case 64:qr()===45&&(S+=Jc(fn())),d=qr(),c=f=gn(v=S+=QS(Ha())),p++;break;case 45:m===45&&gn(S)==2&&(g=0)}}return o}function lm(e,t,n,r,i,o,s,l,a,u,c,f){for(var d=i-1,y=i===0?o:[""],m=l3(y),g=0,x=0,h=0;g0?y[p]+" "+v:fe(v,/&\f/g,y[p])))&&(a[h++]=w);return Nu(e,t,n,i===0?Iu:l,a,u,c,f)}function XS(e,t,n,r){return Nu(e,t,n,o3,$h(HS()),lo(e,2,-2),0,r)}function um(e,t,n,r,i){return Nu(e,t,n,Ph,lo(e,0,r),lo(e,r+1,-1),r,i)}function c3(e,t,n){switch(BS(e,t)){case 5103:return Ee+"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 Ee+e+e;case 4789:return ns+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+ns+e+_e+e+e;case 5936:switch(Xe(e,t+11)){case 114:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+_e+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ee+e+_e+e+e;case 6165:return Ee+e+_e+"flex-"+e+e;case 5187:return Ee+e+fe(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return Ee+e+_e+"flex-item-"+fe(e,/flex-|-self/g,"")+(Ln(e,/flex-|baseline/)?"":_e+"grid-row-"+fe(e,/flex-|-self/g,""))+e;case 4675:return Ee+e+_e+"flex-line-pack"+fe(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ee+e+_e+fe(e,"shrink","negative")+e;case 5292:return Ee+e+_e+fe(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+fe(e,"-grow","")+Ee+e+_e+fe(e,"grow","positive")+e;case 4554:return Ee+fe(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4200:if(!Ln(e,/flex-|baseline/))return _e+"grid-column-align"+lo(e,t)+e;break;case 2592:case 3360:return _e+fe(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ln(r.props,/grid-\w+-end/)})?~Ua(e+(n=n[t].value),"span")?e:_e+fe(e,"-start","")+e+_e+"grid-row-span:"+(~Ua(n,"span")?Ln(n,/\d+/):+Ln(n,/\d+/)-+Ln(e,/\d+/))+";":_e+fe(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ln(r.props,/grid-\w+-start/)})?e:_e+fe(fe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,Ee+"$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(gn(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ns+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ua(e,"stretch")?c3(fe(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return fe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,l,a,u){return _e+i+":"+o+u+(s?_e+i+"-span:"+(l?a:+a-+o)+u:"")+e});case 4949:if(Xe(e,t+6)===121)return fe(e,":",":"+Ee)+e;break;case 6444:switch(Xe(e,Xe(e,14)===45?18:11)){case 120:return fe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ee+(Xe(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+_e+"$2box$3")+e;case 100:return fe(e,":",":"+_e)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return fe(e,"scroll-","scroll-snap-")+e}return e}function Vl(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Ph:e.return=c3(e.value,e.length,n);return;case s3:return Vl([tr(e,{value:fe(e.value,"@","@"+Ee)})],r);case Iu:if(e.length)return US(n=e.props,function(i){switch(Ln(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wi(tr(e,{props:[fe(i,/:(read-\w+)/,":"+ns+"$1")]})),wi(tr(e,{props:[i]})),Dd(e,{props:am(n,r)});break;case"::placeholder":wi(tr(e,{props:[fe(i,/:(plac\w+)/,":"+Ee+"input-$1")]})),wi(tr(e,{props:[fe(i,/:(plac\w+)/,":"+ns+"$1")]})),wi(tr(e,{props:[fe(i,/:(plac\w+)/,_e+"input-$1")]})),wi(tr(e,{props:[i]})),Dd(e,{props:am(n,r)});break}return""})}}var f3={animationIterationCount:1,aspectRatio: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},co=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Th=typeof window<"u"&&"HTMLElement"in window,i7=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),o7={},zu=Object.freeze([]),fo=Object.freeze({});function _h(e,t,n){return n===void 0&&(n=fo),e.theme!==n.theme&&e.theme||t||n.theme}var d3=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),s7=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,a7=/(^-|-$)/g;function cm(e){return e.replace(s7,"-").replace(a7,"")}var l7=/(a)(d)/gi,fm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Nd(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=fm(t%52)+n;return(fm(t%52)+n).replace(l7,"$1-$2")}var Xc,Ni=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},p3=function(e){return Ni(5381,e)};function Rh(e){return Nd(p3(e)>>>0)}function u7(e){return e.displayName||e.name||"Component"}function ef(e){return typeof e=="string"&&!0}var h3=typeof Symbol=="function"&&Symbol.for,m3=h3?Symbol.for("react.memo"):60115,c7=h3?Symbol.for("react.forward_ref"):60112,f7={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},d7={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p7=((Xc={})[c7]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xc[m3]=g3,Xc);function dm(e){return("type"in(t=e)&&t.type.$$typeof)===m3?g3:"$$typeof"in e?p7[e.$$typeof]:f7;var t}var h7=Object.defineProperty,m7=Object.getOwnPropertyNames,pm=Object.getOwnPropertySymbols,g7=Object.getOwnPropertyDescriptor,y7=Object.getPrototypeOf,hm=Object.prototype;function Fh(e,t,n){if(typeof t!="string"){if(hm){var r=y7(t);r&&r!==hm&&Fh(e,r,n)}var i=m7(t);pm&&(i=i.concat(pm(t)));for(var o=dm(e),s=dm(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var v7=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Pr(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(h,","))}),a+="".concat(m).concat(g,'{content:"').concat(x,'"}').concat(`/*!sc*/ +`)},c=0;c0?".".concat(t):d},c=a.slice();c.push(function(d){d.type===Iu&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(T7,n).replace(r,u))}),s.prefix&&c.push(r7),c.push(e7);var f=function(d,y,m,g){y===void 0&&(y=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var x=d.replace(_7,""),h=JS(m||y?"".concat(m," ").concat(y," { ").concat(x," }"):x);s.namespace&&(h=v3(h,s.namespace));var p=[];return Vl(h,t7(c.concat(n7(function(v){return p.push(v)})))),p};return f.hash=a.length?a.reduce(function(d,y){return y.name||Pr(15),Ni(d,y.name)},5381).toString():"",f}var F7=new Ul,zd=R7(),w3=ee.createContext({shouldForwardProp:void 0,styleSheet:F7,stylis:zd});w3.Consumer;ee.createContext(void 0);function Bd(){return k.useContext(w3)}var x3=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=zd);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Mh(this,function(){throw Pr(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=zd),this.name+t.hash},e}(),A7=function(e){return e>="A"&&e<="Z"};function gm(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}i=Vr(i,s),this.staticRulesId=s}else{for(var a=Ni(this.baseHash,r.hash),u="",c=0;c>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),i=Vr(i,y)}}return i},e}(),si=ee.createContext(void 0);si.Consumer;function C3(){var e=k.useContext(si);if(!e)throw Pr(18);return e}function D7(e){var t=ee.useContext(si),n=k.useMemo(function(){return function(r,i){if(!r)throw Pr(14);if(oi(r)){var o=r(i);return o}if(Array.isArray(r)||typeof r!="object")throw Pr(8);return i?qe(qe({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(si.Provider,{value:n},e.children):null}var nf={};function I7(e,t,n){var r=Ah(e),i=e,o=!ef(e),s=t.attrs,l=s===void 0?zu:s,a=t.componentId,u=a===void 0?function(v,w){var b=typeof v!="string"?"sc":cm(v);nf[b]=(nf[b]||0)+1;var C="".concat(b,"-").concat(Rh("6.0.7"+b+nf[b]));return w?"".concat(w,"-").concat(C):C}(t.displayName,t.parentComponentId):a,c=t.displayName;c===void 0&&function(v){return ef(v)?"styled.".concat(v):"Styled(".concat(u7(v),")")}(e);var f=t.displayName&&t.componentId?"".concat(cm(t.displayName),"-").concat(t.componentId):t.componentId||u,d=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;y=function(v,w){return m(v,w)&&g(v,w)}}else y=m}var x=new L7(n,f,r?i.componentStyle:void 0);function h(v,w){return function(b,C,S){var P=b.attrs,$=b.componentStyle,R=b.defaultProps,D=b.foldedComponentIds,A=b.styledComponentId,I=b.target,B=ee.useContext(si),W=Bd(),Z=b.shouldForwardProp||W.shouldForwardProp,G=function(le,ae,ye){for(var oe,de=qe(qe({},ae),{className:void 0,theme:ye}),Ae=0;Ae2&&Ul.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,i)},e}();function N7(e){for(var t=[],n=1;n{const t=w3();return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none",...e,children:[E.jsxs("g",{stroke:t.iconHeader,clipPath:"url(#a)",children:[E.jsx("circle",{cx:14,cy:14,r:13.5}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.5 8.256c0 .952-.368 1.865-1.025 2.538A3.457 3.457 0 0 1 14 11.845a3.457 3.457 0 0 1-2.475-1.05 3.637 3.637 0 0 1-1.026-2.54c0-.951.37-1.864 1.026-2.538A3.457 3.457 0 0 1 14 4.666c.928 0 1.819.378 2.475 1.051A3.637 3.637 0 0 1 17.5 8.256ZM7 21.77c.03-1.883.78-3.68 2.09-5A6.912 6.912 0 0 1 14 14.708c1.837 0 3.6.74 4.91 2.062a7.269 7.269 0 0 1 2.09 5 16.39 16.39 0 0 1-7 1.563c-2.498 0-4.869-.56-7-1.563Z"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h28v28H0z"})})})]})},k7=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:7,fill:"none",...e,children:E.jsx("path",{fill:"#407BFF",fillRule:"evenodd",d:"M6.353 6.854a.5.5 0 0 1-.707 0l-5-5a.5.5 0 0 1 .707-.707l4.646 4.647 4.647-4.647a.5.5 0 1 1 .707.707l-5 5Z",clipRule:"evenodd"})}),P7=di` +`,Y7=e=>{const t=C3();return E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none",...e,children:[E.jsxs("g",{stroke:t.iconHeader,clipPath:"url(#a)",children:[E.jsx("circle",{cx:14,cy:14,r:13.5}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.5 8.256c0 .952-.368 1.865-1.025 2.538A3.457 3.457 0 0 1 14 11.845a3.457 3.457 0 0 1-2.475-1.05 3.637 3.637 0 0 1-1.026-2.54c0-.951.37-1.864 1.026-2.538A3.457 3.457 0 0 1 14 4.666c.928 0 1.819.378 2.475 1.051A3.637 3.637 0 0 1 17.5 8.256ZM7 21.77c.03-1.883.78-3.68 2.09-5A6.912 6.912 0 0 1 14 14.708c1.837 0 3.6.74 4.91 2.062a7.269 7.269 0 0 1 2.09 5 16.39 16.39 0 0 1-7 1.563c-2.498 0-4.869-.56-7-1.563Z"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h28v28H0z"})})})]})},K7=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:7,fill:"none",...e,children:E.jsx("path",{fill:"#407BFF",fillRule:"evenodd",d:"M6.353 6.854a.5.5 0 0 1-.707 0l-5-5a.5.5 0 0 1 .707-.707l4.646 4.647 4.647-4.647a.5.5 0 1 1 .707.707l-5 5Z",clipRule:"evenodd"})}),q7=mi` from { opacity: 0; top: -50%; @@ -128,7 +136,7 @@ Error generating stack: `+o.message+` opacity: 1; top: 50%; } -`,$7=di` +`,G7=mi` from { opacity: 1; top: 50%; @@ -137,7 +145,7 @@ Error generating stack: `+o.message+` opacity: 0; top: -50%; } -`,T7=Q.div` +`,Q7=Q.div` border-radius: 10px; padding: 16px; @@ -155,7 +163,7 @@ Error generating stack: `+o.message+` flex-direction: column; justify-content: center; gap: 16px; -`,_7=Q.div` +`,J7=Q.div` border-radius: 10px; padding: 32px 24px; width: 90%; @@ -171,7 +179,7 @@ Error generating stack: `+o.message+` transition: opacity 0.5s, visibility 0.5s; - animation: ${e=>e.$visible?P7:$7} 0.9s; + animation: ${e=>e.$visible?q7:G7} 0.9s; z-index: 999; display: flex; flex-direction: column; @@ -185,21 +193,21 @@ Error generating stack: `+o.message+` @media only screen and (min-width: 1440px) { } -`,R7=di` +`,X7=mi` from { opacity: 0; } to { opacity: 1; } -`,F7=di` +`,eE=mi` from { opacity: 1; } to { opacity: 0; } -`,gm=Q.div` +`,wm=Q.div` position: fixed; top: 0; left: 0; @@ -209,9 +217,9 @@ Error generating stack: `+o.message+` z-index: 10; opacity: ${e=>e.$visible?"1":"0"}; - animation: ${e=>e.$visible?F7:R7} + animation: ${e=>e.$visible?eE:X7} 1.5s ease forwards; -`,A7=Q.div` +`,tE=Q.div` position: relative; `;Q.button``;Q.button` background: #d7e3ff; @@ -245,7 +253,7 @@ Error generating stack: `+o.message+` box-shadow: 0 2px 4px 0 rgba(64, 123, 255, 0.34); color: #407bff; } -`;const M7=di` +`;const nE=mi` 0% { transform: scale(1); } @@ -255,7 +263,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`,L7=di` +`,rE=mi` 0% { transform: scale(1); } @@ -265,7 +273,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`,ym=Q.button` +`,xm=Q.button` background: #d7e3ff; border: none; border-radius: 10px; @@ -291,7 +299,7 @@ Error generating stack: `+o.message+` box-shadow: 0 4px 8px 0 rgba(64, 123, 255, 0.34); background: #ef5050; color: #fff; - animation: ${M7} 0.5s ease infinite; + animation: ${nE} 0.5s ease infinite; } &:focus { @@ -305,7 +313,7 @@ Error generating stack: `+o.message+` box-shadow: 0 2px 4px 0 rgba(64, 123, 255, 0.34); background: #ef5050; color: #fff; - animation: ${L7} 0.2s ease; + animation: ${rE} 0.2s ease; } @media only screen and (min-width: 768px) { @@ -313,7 +321,7 @@ Error generating stack: `+o.message+` height: 44px; font-size: 18px; } -`,D7=Q.div` +`,iE=Q.div` display: flex; gap: 24px; align-items: center; @@ -323,13 +331,13 @@ Error generating stack: `+o.message+` align-items: center; justify-content: flex-end; } -`,I7=Q.span` +`,oE=Q.span` font-size: 26px; font-weight: 500; -`,j7=Q.span` +`,sE=Q.span` font-size: 18px; font-weight: 500; -`,vm=Q.button` +`,bm=Q.button` display: flex; gap: 8px; border: none; @@ -340,40 +348,40 @@ Error generating stack: `+o.message+` align-items: center; padding: 0; height: 20px; -`,wm=Q.span` +`,Sm=Q.span` font-weight: 400; font-size: 16px; white-space: nowrap; color: #407bff; -`,N7=Q.img` +`,aE=Q.img` width: 28px; height: 28px; border-radius: 100%; -`,V7=Q.span` +`,lE=Q.span` font-weight: 400; font-size: 18px; text-align: right; padding-right: 8px; -`,z7=di` +`,uE=mi` from { opacity: 1; } to { opacity: 0; } -`,B7=Q.div` +`,cE=Q.div` opacity: ${e=>e.$visible?"1":"0"}; pointer-events: ${e=>e.$visible?"auto":"none"}; transition: opacity 2s ease; - animation: ${e=>e.$visible?"none":z7} 0.3s + animation: ${e=>e.$visible?"none":uE} 0.3s ease forwards; visibility: ${e=>e.$visible?"visible":"hidden"}; -`,U7=Q.div``;function pi(e){this._maxSize=e,this.clear()}pi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};pi.prototype.get=function(e){return this._values[e]};pi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var H7=/[^.^\]^[]+|(?=\[\]|\.\.)/g,b3=/^\d+$/,W7=/^\d/,Z7=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Y7=/^\s*(['"]?)(.*?)(\1)\s*$/,Lh=512,xm=new pi(Lh),bm=new pi(Lh),Sm=new pi(Lh),qr={Cache:pi,split:Hd,normalizePath:rf,setter:function(e){var t=rf(e);return bm.get(e)||bm.set(e,function(r,i){for(var o=0,s=t.length,l=r;oe.match(J7)||[],Bu=e=>e[0].toUpperCase()+e.slice(1),Ih=(e,t)=>zu(e).join(t).toLowerCase(),S3=e=>zu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),X7=e=>Bu(S3(e)),eE=e=>Ih(e,"_"),tE=e=>Ih(e,"-"),nE=e=>Bu(Ih(e," ")),rE=e=>zu(e).map(Bu).join(" ");var of={words:zu,upperFirst:Bu,camelCase:S3,pascalCase:X7,snakeCase:eE,kebabCase:tE,sentenceCase:nE,titleCase:rE},jh={exports:{}};jh.exports=function(e){return E3(iE(e),e)};jh.exports.array=E3;function E3(e,t){var n=e.length,r=new Array(n),i={},o=n,s=oE(t),l=sE(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||a(e[o],o,new Set);return r;function a(u,c,f){if(f.has(u)){var d;try{d=", node was:"+JSON.stringify(u)}catch{d=""}throw new Error("Cyclic dependency"+d)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[c]){i[c]=!0;var y=s.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var m=y[--c];a(m,l.get(m),f)}while(c);f.delete(u)}r[--n]=u}}}function iE(e){for(var t=new Set,n=0,r=e.length;n"",pE=/^Symbol\((.*)\)(.*)$/;function hE(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Em(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return hE(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return dE.call(e).replace(pE,"Symbol($1)");const r=uE.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+cE.call(e)+"]":r==="RegExp"?fE.call(e):null}function br(e,t){let n=Em(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=Em(this[r],t);return o!==null?o:i},2)}function C3(e){return e==null?[]:[].concat(e)}let O3,k3,P3,mE=/\$\{\s*(\w+)\s*\}/g;O3=Symbol.toStringTag;class Cm{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[O3]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],C3(t).forEach(o=>{if(Et.isError(o)){this.errors.push(...o.errors);const s=o.inner.length?o.inner:[o];this.inner.push(...s)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}k3=Symbol.hasInstance;P3=Symbol.toStringTag;class Et extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(mE,(i,o)=>br(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const s=new Cm(t,n,r,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[P3]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Et)}static[k3](t){return Cm[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let mn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${br(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${br(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${br(n,!0)}\``+i}},bt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},gE={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Wd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},yE={isValue:"${path} field must be ${value}"},Zd={noUnknown:"${path} field has unspecified keys: ${unknown}"},vE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},wE={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${br(n,!0)}\``}return Et.formatError(mn.notType,e)}};Object.assign(Object.create(null),{mixed:mn,string:bt,number:gE,date:Wd,object:Zd,array:vE,boolean:yE,tuple:wE});const Nh=e=>e&&e.__isYupSchema__;class Hl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,s=typeof r=="function"?r:(...l)=>l.every(a=>a===r);return new Hl(t,(l,a)=>{var u;let c=s(...l)?i:o;return(u=c==null?void 0:c(a))!=null?u:a})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Nh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const ya={context:"$",value:"."};function xE(e,t){return new Fr(e,t)}class Fr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ya.context,this.isValue=this.key[0]===ya.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ya.context:this.isValue?ya.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&qr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Fr.prototype.__isYupRef=!0;const Vr=e=>e==null;function vi(e){function t({value:n,path:r="",options:i,originalValue:o,schema:s},l,a){const{name:u,test:c,params:f,message:d,skipAbsent:y}=e;let{parent:m,context:g,abortEarly:x=s.spec.abortEarly,disableStackTrace:h=s.spec.disableStackTrace}=i;function p(D){return Fr.isRef(D)?D.getValue(n,m,g):D}function v(D={}){const A=Object.assign({value:n,originalValue:o,label:s.spec.label,path:D.path||r,spec:s.spec,disableStackTrace:D.disableStackTrace||h},f,D.params);for(const B of Object.keys(A))A[B]=p(A[B]);const I=new Et(Et.formatError(D.message||d,A),n,A.path,D.type||u,A.disableStackTrace);return I.params=A,I}const w=x?l:a;let b={path:r,parent:m,type:u,from:i.from,createError:v,resolve:p,options:i,originalValue:o,schema:s};const C=D=>{Et.isError(D)?w(D):D?a(null):w(v())},S=D=>{Et.isError(D)?w(D):l(D)};if(y&&Vr(n))return C(!0);let $;try{var R;if($=c.call(b,n,b),typeof((R=$)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(C,S)}}catch(D){S(D);return}C($)}return t.OPTIONS=e,t}function bE(e,t,n,r=n){let i,o,s;return t?(qr.forEach(t,(l,a,u)=>{let c=a?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:i,value:n});let f=e.type==="tuple",d=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&d>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[d],e=f?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,s=a?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class Wl extends Set{describe(){const t=[];for(const n of this.values())t.push(Fr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Wl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function ji(e,t=new Map){if(Nh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(mn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ji(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(s=>{o.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Vr(o))return o;let s=br(t),l=br(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +`,fE=Q.div``;function gi(e){this._maxSize=e,this.clear()}gi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};gi.prototype.get=function(e){return this._values[e]};gi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var dE=/[^.^\]^[]+|(?=\[\]|\.\.)/g,k3=/^\d+$/,pE=/^\d/,hE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,mE=/^\s*(['"]?)(.*?)(\1)\s*$/,Dh=512,Em=new gi(Dh),Cm=new gi(Dh),Om=new gi(Dh),Gr={Cache:gi,split:Hd,normalizePath:rf,setter:function(e){var t=rf(e);return Cm.get(e)||Cm.set(e,function(r,i){for(var o=0,s=t.length,l=r;oe.match(xE)||[],Uu=e=>e[0].toUpperCase()+e.slice(1),jh=(e,t)=>Bu(e).join(t).toLowerCase(),P3=e=>Bu(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),bE=e=>Uu(P3(e)),SE=e=>jh(e,"_"),EE=e=>jh(e,"-"),CE=e=>Uu(jh(e," ")),OE=e=>Bu(e).map(Uu).join(" ");var of={words:Bu,upperFirst:Uu,camelCase:P3,pascalCase:bE,snakeCase:SE,kebabCase:EE,sentenceCase:CE,titleCase:OE},Nh={exports:{}};Nh.exports=function(e){return $3(kE(e),e)};Nh.exports.array=$3;function $3(e,t){var n=e.length,r=new Array(n),i={},o=n,s=PE(t),l=$E(e);for(t.forEach(function(u){if(!l.has(u[0])||!l.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||a(e[o],o,new Set);return r;function a(u,c,f){if(f.has(u)){var d;try{d=", node was:"+JSON.stringify(u)}catch{d=""}throw new Error("Cyclic dependency"+d)}if(!l.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[c]){i[c]=!0;var y=s.get(u)||new Set;if(y=Array.from(y),c=y.length){f.add(u);do{var m=y[--c];a(m,l.get(m),f)}while(c);f.delete(u)}r[--n]=u}}}function kE(e){for(var t=new Set,n=0,r=e.length;n"",LE=/^Symbol\((.*)\)(.*)$/;function DE(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function km(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return DE(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ME.call(e).replace(LE,"Symbol($1)");const r=RE.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+FE.call(e)+"]":r==="RegExp"?AE.call(e):null}function br(e,t){let n=km(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=km(this[r],t);return o!==null?o:i},2)}function T3(e){return e==null?[]:[].concat(e)}let _3,R3,F3,IE=/\$\{\s*(\w+)\s*\}/g;_3=Symbol.toStringTag;class Pm{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_3]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],T3(t).forEach(o=>{if(Et.isError(o)){this.errors.push(...o.errors);const s=o.inner.length?o.inner:[o];this.inner.push(...s)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}R3=Symbol.hasInstance;F3=Symbol.toStringTag;class Et extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(IE,(i,o)=>br(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const s=new Pm(t,n,r,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[F3]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Et)}static[R3](t){return Pm[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let mn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${br(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${br(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${br(n,!0)}\``+i}},bt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},jE={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Wd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},NE={isValue:"${path} field must be ${value}"},Zd={noUnknown:"${path} field has unspecified keys: ${unknown}"},VE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},zE={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.lengthi)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${br(n,!0)}\``}return Et.formatError(mn.notType,e)}};Object.assign(Object.create(null),{mixed:mn,string:bt,number:jE,date:Wd,object:Zd,array:VE,boolean:NE,tuple:zE});const Vh=e=>e&&e.__isYupSchema__;class Hl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,s=typeof r=="function"?r:(...l)=>l.every(a=>a===r);return new Hl(t,(l,a)=>{var u;let c=s(...l)?i:o;return(u=c==null?void 0:c(a))!=null?u:a})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Vh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const ya={context:"$",value:"."};function BE(e,t){return new Ar(e,t)}class Ar{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ya.context,this.isValue=this.key[0]===ya.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ya.context:this.isValue?ya.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Gr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ar.prototype.__isYupRef=!0;const zr=e=>e==null;function xi(e){function t({value:n,path:r="",options:i,originalValue:o,schema:s},l,a){const{name:u,test:c,params:f,message:d,skipAbsent:y}=e;let{parent:m,context:g,abortEarly:x=s.spec.abortEarly,disableStackTrace:h=s.spec.disableStackTrace}=i;function p(D){return Ar.isRef(D)?D.getValue(n,m,g):D}function v(D={}){const A=Object.assign({value:n,originalValue:o,label:s.spec.label,path:D.path||r,spec:s.spec,disableStackTrace:D.disableStackTrace||h},f,D.params);for(const B of Object.keys(A))A[B]=p(A[B]);const I=new Et(Et.formatError(D.message||d,A),n,A.path,D.type||u,A.disableStackTrace);return I.params=A,I}const w=x?l:a;let b={path:r,parent:m,type:u,from:i.from,createError:v,resolve:p,options:i,originalValue:o,schema:s};const C=D=>{Et.isError(D)?w(D):D?a(null):w(v())},S=D=>{Et.isError(D)?w(D):l(D)};if(y&&zr(n))return C(!0);let $;try{var R;if($=c.call(b,n,b),typeof((R=$)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve($).then(C,S)}}catch(D){S(D);return}C($)}return t.OPTIONS=e,t}function UE(e,t,n,r=n){let i,o,s;return t?(Gr.forEach(t,(l,a,u)=>{let c=a?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:i,value:n});let f=e.type==="tuple",d=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&d>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[d],e=f?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,s=a?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class Wl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ar.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Wl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Vi(e,t=new Map){if(Vh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(mn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Vi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(s=>{o.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&zr(o))return o;let s=br(t),l=br(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${s} -`+(l!==s?`result of cast: ${l}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:s=t,strict:l=this.spec.strict}=n,a=t;l||(a=this._cast(a,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:o,value:a,originalValue:s,options:n,tests:u},r,c=>{if(c.length)return i(c,a);this.runTests({path:o,value:a,originalValue:s,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:s,originalValue:l,path:a,options:u}=t,c=g=>{i||(i=!0,n(g,s))},f=g=>{i||(i=!0,r(g,s))},d=o.length,y=[];if(!d)return f([]);let m={value:s,originalValue:l,path:a,options:u,schema:this};for(let g=0;gthis.resolve(c)._validate(u,c,d,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((s,l)=>i._validate(t,n,(a,u)=>{Et.isError(a)&&(a.value=u),l(a)},(a,u)=>{a.length?l(new Et(a,u,void 0,void 0,o)):s(u)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(l,a)=>{throw Et.isError(l)&&(l.value=a),l},(l,a)=>{if(l.length)throw new Et(l,t,void 0,void 0,s);o=a}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Et.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Et.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ji(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=vi({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=vi({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=mn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=mn.notNull){return this.nullability(!1,t)}required(t=mn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=mn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=vi(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(o||s.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=C3(t).map(o=>new Fr(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new Hl(i,n):Hl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=vi({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=mn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=vi({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,s=o.resolveAll(this.resolve);return s.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:s}})}}),r}notOneOf(t,n=mn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=vi({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,s=o.resolveAll(this.resolve);return s.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:s}=n.spec;return{meta:i,label:r,optional:o,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,u,c)=>c.findIndex(f=>f.name===a.name)===u)}}}kn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])kn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:s}=bE(this,t,n,r.context);return s[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])kn.prototype[e]=kn.prototype.oneOf;for(const e of["not","nope"])kn.prototype[e]=kn.prototype.notOneOf;const SE=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function EE(e){const t=Yd(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Yd(e){var t,n;const r=SE.exec(e);return r?{year:_n(r[1]),month:_n(r[2],1)-1,day:_n(r[3],1),hour:_n(r[4]),minute:_n(r[5]),second:_n(r[6]),millisecond:r[7]?_n(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:_n(r[10]),minuteOffset:_n(r[11])}:null}function _n(e,t=0){return Number(e)||t}let CE=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,OE=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,kE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,PE="^\\d{4}-\\d{2}-\\d{2}",$E="\\d{2}:\\d{2}:\\d{2}",TE="(([+-]\\d{2}(:?\\d{2})?)|Z)",_E=new RegExp(`${PE}T${$E}(\\.\\d+)?${TE}$`),RE=e=>Vr(e)||e===e.trim(),FE={}.toString();function Ci(){return new $3}class $3 extends kn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===FE?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||mn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=bt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=bt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=bt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||bt.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=bt.email){return this.matches(CE,{name:"email",message:t,excludeEmptyString:!0})}url(t=bt.url){return this.matches(OE,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=bt.uuid){return this.matches(kE,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(_E,{name:"datetime",message:n||bt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||bt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const s=Yd(o);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||bt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const s=Yd(o);return s?s.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=bt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:RE})}lowercase(t=bt.lowercase){return this.transform(n=>Vr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Vr(n)||n===n.toLowerCase()})}uppercase(t=bt.uppercase){return this.transform(n=>Vr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Vr(n)||n===n.toUpperCase()})}}Ci.prototype=$3.prototype;let AE=new Date(""),ME=e=>Object.prototype.toString.call(e)==="[object Date]";class Uu extends kn{constructor(){super({type:"date",check(t){return ME(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=EE(t),isNaN(t)?Uu.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Fr.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=Wd.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=Wd.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Uu.INVALID_DATE=AE;Uu.prototype;function LE(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([s,l])=>`${s}-${l}`));function o(s,l){let a=qr.split(s)[0];r.add(a),i.has(`${l}-${a}`)||n.push([l,a])}for(const s of Object.keys(e)){let l=e[s];r.add(s),Fr.isRef(l)&&l.isSibling?o(l.path,s):Nh(l)&&"deps"in l&&l.deps.forEach(a=>o(a,s))}return lE.array(Array.from(r),n).reverse()}function Om(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function T3(e){return(t,n)=>Om(e,t)-Om(e,n)}const DE=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Ya(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ya(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ya(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ya)}):"optional"in e?e.optional():e}const IE=(e,t)=>{const n=[...qr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=qr.getter(qr.join(n),!0)(e);return!!(i&&r in i)};let km=e=>Object.prototype.toString.call(e)==="[object Object]";function jE(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const NE=T3([]);function _3(e){return new R3(e)}class R3 extends kn{constructor(t){super({type:"object",check(n){return km(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=NE,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),a={},u=Object.assign({},n,{parent:a,__validating:n.__validating||!1}),c=!1;for(const f of l){let d=o[f],y=f in i;if(d){let m,g=i[f];u.path=(n.path?`${n.path}.`:"")+f,d=d.resolve({value:g,context:n.context,parent:a});let x=d instanceof kn?d.spec:void 0,h=x==null?void 0:x.strict;if(x!=null&&x.strip){c=c||f in i;continue}m=!n.__validating||!h?d.cast(i[f],u):i[f],m!==void 0&&(a[f]=m)}else y&&!s&&(a[f]=i[f]);(y!==f in a||a[f]!==i[f])&&(c=!0)}return c?a:i}_validate(t,n={},r,i){let{from:o=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...o],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(a,u)=>{if(!l||!km(u)){i(a,u);return}s=s||u;let c=[];for(let f of this._nodes){let d=this.fields[f];!d||Fr.isRef(d)||c.push(d.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:c,value:u,originalValue:s,options:n},r,f=>{i(f.sort(this._sortErrors).concat(a),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const s=r[i];r[i]=s===void 0?o:s}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=LE(t,n),r._sortErrors=T3(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ya(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=qr.getter(t,!0);return this.transform(o=>{if(!o)return o;let s=o;return IE(o,t)&&(s=Object.assign({},o),r||delete s[t],s[n]=i(o)),s})}json(){return this.transform(DE)}noUnknown(t=!0,n=Zd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=jE(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Zd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(of.camelCase)}snakeCase(){return this.transformKeys(of.snakeCase)}constantCase(){return this.transformKeys(t=>of.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,s]of Object.entries(n.fields)){var i;let l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[o]})),r.fields[o]=s.describe(l)}return r}}_3.prototype=R3.prototype;var Hs=e=>e.type==="checkbox",Ni=e=>e instanceof Date,mt=e=>e==null;const F3=e=>typeof e=="object";var Ze=e=>!mt(e)&&!Array.isArray(e)&&F3(e)&&!Ni(e),VE=e=>Ze(e)&&e.target?Hs(e.target)?e.target.checked:e.target.value:e,zE=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,BE=(e,t)=>e.has(zE(t)),UE=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},Vh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Vh&&(e instanceof Blob||e instanceof FileList))&&(n||Ze(e)))if(t=n?[]:{},!n&&!UE(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Wt(e[r]));else return e;return t}var Ws=e=>Array.isArray(e)?e.filter(Boolean):[],Ne=e=>e===void 0,q=(e,t,n)=>{if(!t||!Ze(e))return n;const r=Ws(t.split(/[,[\].]+?/)).reduce((i,o)=>mt(i)?i:i[o],e);return Ne(r)||r===e?Ne(e[t])?n:e[t]:r},In=e=>typeof e=="boolean";const Pm={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Rn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};ee.createContext(null);var HE=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==ln.all&&(t._proxyFormState[s]=!r||ln.all),n&&(n[s]=!0),e[s]}});return i},Zt=e=>Ze(e)&&!Object.keys(e).length,WE=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Zt(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||ln.all))},sf=e=>Array.isArray(e)?e:[e];function ZE(e){const t=ee.useRef(e);t.current=e,ee.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var bn=e=>typeof e=="string",YE=(e,t,n,r,i)=>bn(e)?(r&&t.watch.add(e),q(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),q(n,o))):(r&&(t.watchAll=!0),n),zh=e=>/^\w*$/.test(e),A3=e=>Ws(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,n)=>{let r=-1;const i=zh(t)?[t]:A3(t),o=i.length,s=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},$m=e=>({isOnSubmit:!e||e===ln.onSubmit,isOnBlur:e===ln.onBlur,isOnChange:e===ln.onChange,isOnAll:e===ln.all,isOnTouch:e===ln.onTouched}),Tm=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const rs=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=q(e,i);if(o){const{_f:s,...l}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;rs(l,t)}else Ze(l)&&rs(l,t)}}};var KE=(e,t,n)=>{const r=Ws(q(e,n));return Pe(r,"root",t[n]),Pe(e,n,r),e},Bh=e=>e.type==="file",ur=e=>typeof e=="function",Zl=e=>{if(!Vh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ka=e=>bn(e),Uh=e=>e.type==="radio",Yl=e=>e instanceof RegExp;const _m={value:!1,isValid:!1},Rm={value:!0,isValid:!0};var L3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ne(e[0].attributes.value)?Ne(e[0].value)||e[0].value===""?Rm:{value:e[0].value,isValid:!0}:Rm:_m}return _m};const Fm={isValid:!1,value:null};var D3=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Fm):Fm;function Am(e,t,n="validate"){if(Ka(e)||Array.isArray(e)&&e.every(Ka)||In(e)&&!e)return{type:n,message:Ka(e)?e:"",ref:t}}var wi=e=>Ze(e)&&!Yl(e)?e:{value:e,message:""},Mm=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:f,pattern:d,validate:y,name:m,valueAsNumber:g,mount:x,disabled:h}=e._f,p=q(t,m);if(!x||h)return{};const v=s?s[0]:o,w=A=>{r&&v.reportValidity&&(v.setCustomValidity(In(A)?"":A||""),v.reportValidity())},b={},C=Uh(o),S=Hs(o),P=C||S,$=(g||Bh(o))&&Ne(o.value)&&Ne(p)||Zl(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,R=M3.bind(null,m,n,b),D=(A,I,B,W=Rn.maxLength,Z=Rn.minLength)=>{const G=A?I:B;b[m]={type:A?W:Z,message:G,ref:o,...R(A?W:Z,G)}};if(i?!Array.isArray(p)||!p.length:l&&(!P&&($||mt(p))||In(p)&&!p||S&&!L3(s).isValid||C&&!D3(s).isValid)){const{value:A,message:I}=Ka(l)?{value:!!l,message:l}:wi(l);if(A&&(b[m]={type:Rn.required,message:I,ref:v,...R(Rn.required,I)},!n))return w(I),b}if(!$&&(!mt(c)||!mt(f))){let A,I;const B=wi(f),W=wi(c);if(!mt(p)&&!isNaN(p)){const Z=o.valueAsNumber||p&&+p;mt(B.value)||(A=Z>B.value),mt(W.value)||(I=Znew Date(new Date().toDateString()+" "+H),M=o.type=="time",U=o.type=="week";bn(B.value)&&p&&(A=M?G(p)>G(B.value):U?p>B.value:Z>new Date(B.value)),bn(W.value)&&p&&(I=M?G(p)+A.value,W=!mt(I.value)&&p.length<+I.value;if((B||W)&&(D(B,A.message,I.message),!n))return w(b[m].message),b}if(d&&!$&&bn(p)){const{value:A,message:I}=wi(d);if(Yl(A)&&!p.match(A)&&(b[m]={type:Rn.pattern,message:I,ref:o,...R(Rn.pattern,I)},!n))return w(I),b}if(y){if(ur(y)){const A=await y(p,t),I=Am(A,v);if(I&&(b[m]={...I,...R(Rn.validate,I.message)},!n))return w(I.message),b}else if(Ze(y)){let A={};for(const I in y){if(!Zt(A)&&!n)break;const B=Am(await y[I](p,t),v,I);B&&(A={...B,...R(I,B.message)},w(B.message),n&&(b[m]=A))}if(!Zt(A)&&(b[m]={ref:v,...A},!n))return b}}return w(!0),b};function qE(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Kl=e=>mt(e)||!F3(e);function zr(e,t){if(Kl(e)||Kl(t))return e===t;if(Ni(e)&&Ni(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Ni(o)&&Ni(s)||Ze(o)&&Ze(s)||Array.isArray(o)&&Array.isArray(s)?!zr(o,s):o!==s)return!1}}return!0}var I3=e=>e.type==="select-multiple",QE=e=>Uh(e)||Hs(e),lf=e=>Zl(e)&&e.isConnected,JE=e=>Ze(e)&&Object.values(e).some(t=>t),j3=e=>{for(const t in e)if(ur(e[t]))return!0;return!1};function ql(e,t={}){const n=Array.isArray(e);if(Ze(e)||n)for(const r in e)Array.isArray(e[r])||Ze(e[r])&&!j3(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ql(e[r],t[r])):mt(e[r])||(t[r]=!0);return t}function N3(e,t,n){const r=Array.isArray(e);if(Ze(e)||r)for(const i in e)Array.isArray(e[i])||Ze(e[i])&&!j3(e[i])?Ne(t)||Kl(n[i])?n[i]=Array.isArray(e[i])?ql(e[i],[]):{...ql(e[i])}:N3(e[i],mt(t)?{}:t[i],n[i]):n[i]=!zr(e[i],t[i]);return n}var va=(e,t)=>N3(e,t,ql(t)),V3=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ne(e)?e:t?e===""?NaN:e&&+e:n&&bn(e)?new Date(e):r?r(e):e;function uf(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Bh(t)?t.files:Uh(t)?D3(e.refs).value:I3(t)?[...t.selectedOptions].map(({value:n})=>n):Hs(t)?L3(e.refs).value:V3(Ne(t.value)?e.ref.value:t.value,e)}var XE=(e,t,n,r)=>{const i={};for(const o of e){const s=q(t,o);s&&Pe(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Mo=e=>Ne(e)?e:Yl(e)?e.source:Ze(e)?Yl(e.value)?e.value.source:e.value:e,e9=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Lm(e,t,n){const r=q(e,n);if(r||zh(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=q(t,o),l=q(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var t9=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,n9=(e,t)=>!Ws(q(e,t)).length&&Qe(e,t);const r9={mode:ln.onSubmit,reValidateMode:ln.onChange,shouldFocusError:!0};function i9(e={}){let t={...r9,...e},n={submitCount:0,isDirty:!1,isLoading:ur(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ze(t.defaultValues)||Ze(t.values)?Wt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Wt(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:af(),array:af(),state:af()},d=$m(t.mode),y=$m(t.reValidateMode),m=t.criteriaMode===ln.all,g=O=>T=>{clearTimeout(u),u=setTimeout(O,T)},x=async O=>{if(c.isValid||O){const T=t.resolver?Zt((await P()).errors):await R(r,!0);T!==n.isValid&&f.state.next({isValid:T})}},h=(O,T)=>{(c.isValidating||c.validatingFields)&&(T.forEach(_=>{Pe(n.validatingFields,_,O)}),n.isValidating=JE(n.validatingFields),f.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},p=(O,T=[],_,F,V=!0,N=!0)=>{if(F&&_){if(s.action=!0,N&&Array.isArray(q(r,O))){const X=_(q(r,O),F.argA,F.argB);V&&Pe(r,O,X)}if(N&&Array.isArray(q(n.errors,O))){const X=_(q(n.errors,O),F.argA,F.argB);V&&Pe(n.errors,O,X),n9(n.errors,O)}if(c.touchedFields&&N&&Array.isArray(q(n.touchedFields,O))){const X=_(q(n.touchedFields,O),F.argA,F.argB);V&&Pe(n.touchedFields,O,X)}c.dirtyFields&&(n.dirtyFields=va(i,o)),f.state.next({name:O,isDirty:A(O,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Pe(o,O,T)},v=(O,T)=>{Pe(n.errors,O,T),f.state.next({errors:n.errors})},w=O=>{n.errors=O,f.state.next({errors:n.errors,isValid:!1})},b=(O,T,_,F)=>{const V=q(r,O);if(V){const N=q(o,O,Ne(_)?q(i,O):_);Ne(N)||F&&F.defaultChecked||T?Pe(o,O,T?N:uf(V._f)):W(O,N),s.mount&&x()}},C=(O,T,_,F,V)=>{let N=!1,X=!1;const Ce={name:O},Ge=!!(q(r,O)&&q(r,O)._f.disabled);if(!_||F){c.isDirty&&(X=n.isDirty,n.isDirty=Ce.isDirty=A(),N=X!==Ce.isDirty);const _t=Ge||zr(q(i,O),T);X=!!(!Ge&&q(n.dirtyFields,O)),_t||Ge?Qe(n.dirtyFields,O):Pe(n.dirtyFields,O,!0),Ce.dirtyFields=n.dirtyFields,N=N||c.dirtyFields&&X!==!_t}if(_){const _t=q(n.touchedFields,O);_t||(Pe(n.touchedFields,O,_),Ce.touchedFields=n.touchedFields,N=N||c.touchedFields&&_t!==_)}return N&&V&&f.state.next(Ce),N?Ce:{}},S=(O,T,_,F)=>{const V=q(n.errors,O),N=c.isValid&&In(T)&&n.isValid!==T;if(e.delayError&&_?(a=g(()=>v(O,_)),a(e.delayError)):(clearTimeout(u),a=null,_?Pe(n.errors,O,_):Qe(n.errors,O)),(_?!zr(V,_):V)||!Zt(F)||N){const X={...F,...N&&In(T)?{isValid:T}:{},errors:n.errors,name:O};n={...n,...X},f.state.next(X)}h(!1,Object.keys(n.validatingFields).filter(X=>X===O))},P=async O=>t.resolver(o,t.context,XE(O||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation)),$=async O=>{const{errors:T}=await P(O);if(O)for(const _ of O){const F=q(T,_);F?Pe(n.errors,_,F):Qe(n.errors,_)}else n.errors=T;return T},R=async(O,T,_={valid:!0})=>{for(const F in O){const V=O[F];if(V){const{_f:N,...X}=V;if(N){const Ce=l.array.has(N.name),Ge=await Mm(V,o,m,t.shouldUseNativeValidation&&!T,Ce);if(Ge[N.name]&&(_.valid=!1,T))break;!T&&(q(Ge,N.name)?Ce?KE(n.errors,Ge,N.name):Pe(n.errors,N.name,Ge[N.name]):Qe(n.errors,N.name))}X&&await R(X,T,_)}}return _.valid},D=()=>{for(const O of l.unMount){const T=q(r,O);T&&(T._f.refs?T._f.refs.every(_=>!lf(_)):!lf(T._f.ref))&&oe(O)}l.unMount=new Set},A=(O,T)=>(O&&T&&Pe(o,O,T),!zr(ie(),i)),I=(O,T,_)=>YE(O,l,{...s.mount?o:Ne(T)?i:bn(O)?{[O]:T}:T},_,T),B=O=>Ws(q(s.mount?o:i,O,e.shouldUnregister?q(i,O,[]):[])),W=(O,T,_={})=>{const F=q(r,O);let V=T;if(F){const N=F._f;N&&(!N.disabled&&Pe(o,O,V3(T,N)),V=Zl(N.ref)&&mt(T)?"":T,I3(N.ref)?[...N.ref.options].forEach(X=>X.selected=V.includes(X.value)):N.refs?Hs(N.ref)?N.refs.length>1?N.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(V)?!!V.find(Ce=>Ce===X.value):V===X.value)):N.refs[0]&&(N.refs[0].checked=!!V):N.refs.forEach(X=>X.checked=X.value===V):Bh(N.ref)?N.ref.value="":(N.ref.value=V,N.ref.type||f.values.next({name:O,values:{...o}})))}(_.shouldDirty||_.shouldTouch)&&C(O,V,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&H(O)},Z=(O,T,_)=>{for(const F in T){const V=T[F],N=`${O}.${F}`,X=q(r,N);(l.array.has(O)||!Kl(V)||X&&!X._f)&&!Ni(V)?Z(N,V,_):W(N,V,_)}},G=(O,T,_={})=>{const F=q(r,O),V=l.array.has(O),N=Wt(T);Pe(o,O,N),V?(f.array.next({name:O,values:{...o}}),(c.isDirty||c.dirtyFields)&&_.shouldDirty&&f.state.next({name:O,dirtyFields:va(i,o),isDirty:A(O,N)})):F&&!F._f&&!mt(N)?Z(O,N,_):W(O,N,_),Tm(O,l)&&f.state.next({...n}),f.values.next({name:s.mount?O:void 0,values:{...o}})},M=async O=>{const T=O.target;let _=T.name,F=!0;const V=q(r,_),N=()=>T.type?uf(V._f):VE(O),X=Ce=>{F=Number.isNaN(Ce)||Ce===q(o,_,Ce)};if(V){let Ce,Ge;const _t=N(),mi=O.type===Pm.BLUR||O.type===Pm.FOCUS_OUT,f5=!e9(V._f)&&!t.resolver&&!q(n.errors,_)&&!V._f.deps||t9(mi,q(n.touchedFields,_),n.isSubmitted,y,d),dc=Tm(_,l,mi);Pe(o,_,_t),mi?(V._f.onBlur&&V._f.onBlur(O),a&&a(0)):V._f.onChange&&V._f.onChange(O);const pc=C(_,_t,mi,!1),d5=!Zt(pc)||dc;if(!mi&&f.values.next({name:_,type:O.type,values:{...o}}),f5)return c.isValid&&x(),d5&&f.state.next({name:_,...dc?{}:pc});if(!mi&&dc&&f.state.next({...n}),h(!0,[_]),t.resolver){const{errors:y1}=await P([_]);if(X(_t),F){const p5=Lm(n.errors,r,_),v1=Lm(y1,r,p5.name||_);Ce=v1.error,_=v1.name,Ge=Zt(y1)}}else Ce=(await Mm(V,o,m,t.shouldUseNativeValidation))[_],X(_t),F&&(Ce?Ge=!1:c.isValid&&(Ge=await R(r,!0)));F&&(V._f.deps&&H(V._f.deps),S(_,Ge,Ce,pc))}},U=(O,T)=>{if(q(n.errors,T)&&O.focus)return O.focus(),1},H=async(O,T={})=>{let _,F;const V=sf(O);if(h(!0,V),t.resolver){const N=await $(Ne(O)?O:V);_=Zt(N),F=O?!V.some(X=>q(N,X)):_}else O?(F=(await Promise.all(V.map(async N=>{const X=q(r,N);return await R(X&&X._f?{[N]:X}:X)}))).every(Boolean),!(!F&&!n.isValid)&&x()):F=_=await R(r);return f.state.next({...!bn(O)||c.isValid&&_!==n.isValid?{}:{name:O},...t.resolver||!O?{isValid:_}:{},errors:n.errors,isValidating:!1}),T.shouldFocus&&!F&&rs(r,U,O?V:l.mount),F},ie=O=>{const T={...i,...s.mount?o:{}};return Ne(O)?T:bn(O)?q(T,O):O.map(_=>q(T,_))},J=(O,T)=>({invalid:!!q((T||n).errors,O),isDirty:!!q((T||n).dirtyFields,O),isTouched:!!q((T||n).touchedFields,O),isValidating:!!q((T||n).validatingFields,O),error:q((T||n).errors,O)}),le=O=>{O&&sf(O).forEach(T=>Qe(n.errors,T)),f.state.next({errors:O?n.errors:{}})},ae=(O,T,_)=>{const F=(q(r,O,{_f:{}})._f||{}).ref;Pe(n.errors,O,{...T,ref:F}),f.state.next({name:O,errors:n.errors,isValid:!1}),_&&_.shouldFocus&&F&&F.focus&&F.focus()},ye=(O,T)=>ur(O)?f.values.subscribe({next:_=>O(I(void 0,T),_)}):I(O,T,!0),oe=(O,T={})=>{for(const _ of O?sf(O):l.mount)l.mount.delete(_),l.array.delete(_),T.keepValue||(Qe(r,_),Qe(o,_)),!T.keepError&&Qe(n.errors,_),!T.keepDirty&&Qe(n.dirtyFields,_),!T.keepTouched&&Qe(n.touchedFields,_),!T.keepIsValidating&&Qe(n.validatingFields,_),!t.shouldUnregister&&!T.keepDefaultValue&&Qe(i,_);f.values.next({values:{...o}}),f.state.next({...n,...T.keepDirty?{isDirty:A()}:{}}),!T.keepIsValid&&x()},de=({disabled:O,name:T,field:_,fields:F,value:V})=>{if(In(O)){const N=O?void 0:Ne(V)?uf(_?_._f:q(F,T)._f):V;Pe(o,T,N),C(T,N,!1,!1,!0)}},Ae=(O,T={})=>{let _=q(r,O);const F=In(T.disabled);return Pe(r,O,{..._||{},_f:{..._&&_._f?_._f:{ref:{name:O}},name:O,mount:!0,...T}}),l.mount.add(O),_?de({field:_,disabled:T.disabled,name:O,value:T.value}):b(O,!0,T.value),{...F?{disabled:T.disabled}:{},...t.progressive?{required:!!T.required,min:Mo(T.min),max:Mo(T.max),minLength:Mo(T.minLength),maxLength:Mo(T.maxLength),pattern:Mo(T.pattern)}:{},name:O,onChange:M,onBlur:M,ref:V=>{if(V){Ae(O,T),_=q(r,O);const N=Ne(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,X=QE(N),Ce=_._f.refs||[];if(X?Ce.find(Ge=>Ge===N):N===_._f.ref)return;Pe(r,O,{_f:{..._._f,...X?{refs:[...Ce.filter(lf),N,...Array.isArray(q(i,O))?[{}]:[]],ref:{type:N.type,name:O}}:{ref:N}}}),b(O,!1,void 0,N)}else _=q(r,O,{}),_._f&&(_._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(BE(l.array,O)&&s.action)&&l.unMount.add(O)}}},nt=()=>t.shouldFocusError&&rs(r,U,l.mount),j=O=>{In(O)&&(f.state.next({disabled:O}),rs(r,(T,_)=>{let F=O;const V=q(r,_);V&&In(V._f.disabled)&&(F||(F=V._f.disabled)),T.disabled=F},0,!1))},Y=(O,T)=>async _=>{let F;_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let V=Wt(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:X}=await P();n.errors=N,V=X}else await R(r);if(Qe(n.errors,"root"),Zt(n.errors)){f.state.next({errors:{}});try{await O(V,_)}catch(N){F=N}}else T&&await T({...n.errors},_),nt(),setTimeout(nt);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zt(n.errors)&&!F,submitCount:n.submitCount+1,errors:n.errors}),F)throw F},ce=(O,T={})=>{q(r,O)&&(Ne(T.defaultValue)?G(O,Wt(q(i,O))):(G(O,T.defaultValue),Pe(i,O,Wt(T.defaultValue))),T.keepTouched||Qe(n.touchedFields,O),T.keepDirty||(Qe(n.dirtyFields,O),n.isDirty=T.defaultValue?A(O,Wt(q(i,O))):A()),T.keepError||(Qe(n.errors,O),c.isValid&&x()),f.state.next({...n}))},ue=(O,T={})=>{const _=O?Wt(O):i,F=Wt(_),V=Zt(O),N=V?i:F;if(T.keepDefaultValues||(i=_),!T.keepValues){if(T.keepDirtyValues)for(const X of l.mount)q(n.dirtyFields,X)?Pe(N,X,q(o,X)):G(X,q(N,X));else{if(Vh&&Ne(O))for(const X of l.mount){const Ce=q(r,X);if(Ce&&Ce._f){const Ge=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(Zl(Ge)){const _t=Ge.closest("form");if(_t){_t.reset();break}}}}r={}}o=e.shouldUnregister?T.keepDefaultValues?Wt(i):{}:Wt(N),f.array.next({values:{...N}}),f.values.next({values:{...N}})}l={mount:T.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!c.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:V?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!zr(O,i)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?[]:T.keepDirtyValues?T.keepDefaultValues&&o?va(i,o):n.dirtyFields:T.keepDefaultValues&&O?va(i,O):{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},se=(O,T)=>ue(ur(O)?O(o):O,T);return{control:{register:Ae,unregister:oe,getFieldState:J,handleSubmit:Y,setError:ae,_executeSchema:P,_getWatch:I,_getDirty:A,_updateValid:x,_removeUnmounted:D,_updateFieldArray:p,_updateDisabledField:de,_getFieldArray:B,_reset:ue,_resetDefaultValues:()=>ur(t.defaultValues)&&t.defaultValues().then(O=>{se(O,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:O=>{n={...n,...O}},_disableForm:j,_subjects:f,_proxyFormState:c,_setErrors:w,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(O){s=O},get _defaultValues(){return i},get _names(){return l},set _names(O){l=O},get _formState(){return n},set _formState(O){n=O},get _options(){return t},set _options(O){t={...t,...O}}},trigger:H,register:Ae,handleSubmit:Y,watch:ye,setValue:G,getValues:ie,reset:se,resetField:ce,clearErrors:le,unregister:oe,setError:ae,setFocus:(O,T={})=>{const _=q(r,O),F=_&&_._f;if(F){const V=F.refs?F.refs[0]:F.ref;V.focus&&(V.focus(),T.shouldSelect&&V.select())}},getFieldState:J}}function o9(e={}){const t=ee.useRef(),n=ee.useRef(),[r,i]=ee.useState({isDirty:!1,isValidating:!1,isLoading:ur(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ur(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...i9(e),formState:r});const o=t.current.control;return o._options=e,ZE({subject:o._subjects.state,next:s=>{WE(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),ee.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ee.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),ee.useEffect(()=>{e.values&&!zr(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),ee.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ee.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ee.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=HE(r,o),t.current}var Dm=function(e,t,n){if(e&&"reportValidity"in e){var r=q(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},z3=function(e,t){var n=function(i){var o=t.fields[i];o&&o.ref&&"reportValidity"in o.ref?Dm(o.ref,i,e):o.refs&&o.refs.forEach(function(s){return Dm(s,i,e)})};for(var r in t.fields)n(r)},s9=function(e,t){t.shouldUseNativeValidation&&z3(e,t);var n={};for(var r in e){var i=q(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(a9(t.names||Object.keys(e),r)){var s=Object.assign({},q(n,r));Pe(s,"root",o),Pe(n,r,s)}else Pe(n,r,o)}return n},a9=function(e,t){return e.some(function(n){return n.startsWith(t+".")})};function l9(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,l){try{var a=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(u){return o.shouldUseNativeValidation&&z3({},o),{values:n.raw?r:u,errors:{}}}))}catch(u){return l(u)}return a&&a.then?a.then(void 0,l):a}(0,function(s){if(!s.inner)throw s;return{values:{},errors:s9((l=s,a=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(l.inner||[]).reduce(function(u,c){if(u[c.path]||(u[c.path]={message:c.message,type:c.type}),a){var f=u[c.path].types,d=f&&f[c.type];u[c.path]=M3(c.path,a,u,c.type,d?[].concat(d,c.message):c.message)}return u},{})),o)};var l,a}))}catch(s){return Promise.reject(s)}}}const u9=Q.div` +`+(l!==s?`result of cast: ${l}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:s=t,strict:l=this.spec.strict}=n,a=t;l||(a=this._cast(a,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:o,value:a,originalValue:s,options:n,tests:u},r,c=>{if(c.length)return i(c,a);this.runTests({path:o,value:a,originalValue:s,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:s,originalValue:l,path:a,options:u}=t,c=g=>{i||(i=!0,n(g,s))},f=g=>{i||(i=!0,r(g,s))},d=o.length,y=[];if(!d)return f([]);let m={value:s,originalValue:l,path:a,options:u,schema:this};for(let g=0;gthis.resolve(c)._validate(u,c,d,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((s,l)=>i._validate(t,n,(a,u)=>{Et.isError(a)&&(a.value=u),l(a)},(a,u)=>{a.length?l(new Et(a,u,void 0,void 0,o)):s(u)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(l,a)=>{throw Et.isError(l)&&(l.value=a),l},(l,a)=>{if(l.length)throw new Et(l,t,void 0,void 0,s);o=a}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Et.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Et.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Vi(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=xi({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xi({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=mn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=mn.notNull){return this.nullability(!1,t)}required(t=mn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=mn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=xi(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(o||s.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=T3(t).map(o=>new Ar(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new Hl(i,n):Hl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xi({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=mn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=xi({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,s=o.resolveAll(this.resolve);return s.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:s}})}}),r}notOneOf(t,n=mn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=xi({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,s=o.resolveAll(this.resolve);return s.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:s}=n.spec;return{meta:i,label:r,optional:o,nullable:s,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,u,c)=>c.findIndex(f=>f.name===a.name)===u)}}}kn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])kn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:s}=UE(this,t,n,r.context);return s[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])kn.prototype[e]=kn.prototype.oneOf;for(const e of["not","nope"])kn.prototype[e]=kn.prototype.notOneOf;const HE=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function WE(e){const t=Yd(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Yd(e){var t,n;const r=HE.exec(e);return r?{year:_n(r[1]),month:_n(r[2],1)-1,day:_n(r[3],1),hour:_n(r[4]),minute:_n(r[5]),second:_n(r[6]),millisecond:r[7]?_n(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:_n(r[10]),minuteOffset:_n(r[11])}:null}function _n(e,t=0){return Number(e)||t}let ZE=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,YE=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,KE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,qE="^\\d{4}-\\d{2}-\\d{2}",GE="\\d{2}:\\d{2}:\\d{2}",QE="(([+-]\\d{2}(:?\\d{2})?)|Z)",JE=new RegExp(`${qE}T${GE}(\\.\\d+)?${QE}$`),XE=e=>zr(e)||e===e.trim(),e9={}.toString();function ki(){return new A3}class A3 extends kn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===e9?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||mn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=bt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=bt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=bt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||bt.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=bt.email){return this.matches(ZE,{name:"email",message:t,excludeEmptyString:!0})}url(t=bt.url){return this.matches(YE,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=bt.uuid){return this.matches(KE,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(JE,{name:"datetime",message:n||bt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||bt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const s=Yd(o);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||bt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const s=Yd(o);return s?s.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=bt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:XE})}lowercase(t=bt.lowercase){return this.transform(n=>zr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>zr(n)||n===n.toLowerCase()})}uppercase(t=bt.uppercase){return this.transform(n=>zr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>zr(n)||n===n.toUpperCase()})}}ki.prototype=A3.prototype;let t9=new Date(""),n9=e=>Object.prototype.toString.call(e)==="[object Date]";class Hu extends kn{constructor(){super({type:"date",check(t){return n9(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=WE(t),isNaN(t)?Hu.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ar.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=Wd.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=Wd.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Hu.INVALID_DATE=t9;Hu.prototype;function r9(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([s,l])=>`${s}-${l}`));function o(s,l){let a=Gr.split(s)[0];r.add(a),i.has(`${l}-${a}`)||n.push([l,a])}for(const s of Object.keys(e)){let l=e[s];r.add(s),Ar.isRef(l)&&l.isSibling?o(l.path,s):Vh(l)&&"deps"in l&&l.deps.forEach(a=>o(a,s))}return _E.array(Array.from(r),n).reverse()}function $m(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function M3(e){return(t,n)=>$m(e,t)-$m(e,n)}const i9=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Ya(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ya(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ya(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ya)}):"optional"in e?e.optional():e}const o9=(e,t)=>{const n=[...Gr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Gr.getter(Gr.join(n),!0)(e);return!!(i&&r in i)};let Tm=e=>Object.prototype.toString.call(e)==="[object Object]";function s9(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const a9=M3([]);function L3(e){return new D3(e)}class D3 extends kn{constructor(t){super({type:"object",check(n){return Tm(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=a9,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),a={},u=Object.assign({},n,{parent:a,__validating:n.__validating||!1}),c=!1;for(const f of l){let d=o[f],y=f in i;if(d){let m,g=i[f];u.path=(n.path?`${n.path}.`:"")+f,d=d.resolve({value:g,context:n.context,parent:a});let x=d instanceof kn?d.spec:void 0,h=x==null?void 0:x.strict;if(x!=null&&x.strip){c=c||f in i;continue}m=!n.__validating||!h?d.cast(i[f],u):i[f],m!==void 0&&(a[f]=m)}else y&&!s&&(a[f]=i[f]);(y!==f in a||a[f]!==i[f])&&(c=!0)}return c?a:i}_validate(t,n={},r,i){let{from:o=[],originalValue:s=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:s},...o],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(a,u)=>{if(!l||!Tm(u)){i(a,u);return}s=s||u;let c=[];for(let f of this._nodes){let d=this.fields[f];!d||Ar.isRef(d)||c.push(d.asNestedTest({options:n,key:f,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:c,value:u,originalValue:s,options:n},r,f=>{i(f.sort(this._sortErrors).concat(a),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const s=r[i];r[i]=s===void 0?o:s}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(s):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=r9(t,n),r._sortErrors=M3(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ya(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=Gr.getter(t,!0);return this.transform(o=>{if(!o)return o;let s=o;return o9(o,t)&&(s=Object.assign({},o),r||delete s[t],s[n]=i(o)),s})}json(){return this.transform(i9)}noUnknown(t=!0,n=Zd.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=s9(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Zd.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(of.camelCase)}snakeCase(){return this.transformKeys(of.snakeCase)}constantCase(){return this.transformKeys(t=>of.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,s]of Object.entries(n.fields)){var i;let l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[o]})),r.fields[o]=s.describe(l)}return r}}L3.prototype=D3.prototype;var Ws=e=>e.type==="checkbox",zi=e=>e instanceof Date,mt=e=>e==null;const I3=e=>typeof e=="object";var Ze=e=>!mt(e)&&!Array.isArray(e)&&I3(e)&&!zi(e),l9=e=>Ze(e)&&e.target?Ws(e.target)?e.target.checked:e.target.value:e,u9=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c9=(e,t)=>e.has(u9(t)),f9=e=>{const t=e.constructor&&e.constructor.prototype;return Ze(t)&&t.hasOwnProperty("isPrototypeOf")},zh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zh&&(e instanceof Blob||e instanceof FileList))&&(n||Ze(e)))if(t=n?[]:{},!n&&!f9(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Wt(e[r]));else return e;return t}var Zs=e=>Array.isArray(e)?e.filter(Boolean):[],Ne=e=>e===void 0,q=(e,t,n)=>{if(!t||!Ze(e))return n;const r=Zs(t.split(/[,[\].]+?/)).reduce((i,o)=>mt(i)?i:i[o],e);return Ne(r)||r===e?Ne(e[t])?n:e[t]:r},In=e=>typeof e=="boolean";const _m={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Rn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};ee.createContext(null);var d9=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==ln.all&&(t._proxyFormState[s]=!r||ln.all),n&&(n[s]=!0),e[s]}});return i},Zt=e=>Ze(e)&&!Object.keys(e).length,p9=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Zt(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||ln.all))},sf=e=>Array.isArray(e)?e:[e];function h9(e){const t=ee.useRef(e);t.current=e,ee.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var bn=e=>typeof e=="string",m9=(e,t,n,r,i)=>bn(e)?(r&&t.watch.add(e),q(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),q(n,o))):(r&&(t.watchAll=!0),n),Bh=e=>/^\w*$/.test(e),j3=e=>Zs(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,n)=>{let r=-1;const i=Bh(t)?[t]:j3(t),o=i.length,s=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Rm=e=>({isOnSubmit:!e||e===ln.onSubmit,isOnBlur:e===ln.onBlur,isOnChange:e===ln.onChange,isOnAll:e===ln.all,isOnTouch:e===ln.onTouched}),Fm=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const rs=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=q(e,i);if(o){const{_f:s,...l}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;rs(l,t)}else Ze(l)&&rs(l,t)}}};var g9=(e,t,n)=>{const r=Zs(q(e,n));return Pe(r,"root",t[n]),Pe(e,n,r),e},Uh=e=>e.type==="file",ur=e=>typeof e=="function",Zl=e=>{if(!zh)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ka=e=>bn(e),Hh=e=>e.type==="radio",Yl=e=>e instanceof RegExp;const Am={value:!1,isValid:!1},Mm={value:!0,isValid:!0};var V3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ne(e[0].attributes.value)?Ne(e[0].value)||e[0].value===""?Mm:{value:e[0].value,isValid:!0}:Mm:Am}return Am};const Lm={isValid:!1,value:null};var z3=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Lm):Lm;function Dm(e,t,n="validate"){if(Ka(e)||Array.isArray(e)&&e.every(Ka)||In(e)&&!e)return{type:n,message:Ka(e)?e:"",ref:t}}var bi=e=>Ze(e)&&!Yl(e)?e:{value:e,message:""},Im=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:f,pattern:d,validate:y,name:m,valueAsNumber:g,mount:x,disabled:h}=e._f,p=q(t,m);if(!x||h)return{};const v=s?s[0]:o,w=A=>{r&&v.reportValidity&&(v.setCustomValidity(In(A)?"":A||""),v.reportValidity())},b={},C=Hh(o),S=Ws(o),P=C||S,$=(g||Uh(o))&&Ne(o.value)&&Ne(p)||Zl(o)&&o.value===""||p===""||Array.isArray(p)&&!p.length,R=N3.bind(null,m,n,b),D=(A,I,B,W=Rn.maxLength,Z=Rn.minLength)=>{const G=A?I:B;b[m]={type:A?W:Z,message:G,ref:o,...R(A?W:Z,G)}};if(i?!Array.isArray(p)||!p.length:l&&(!P&&($||mt(p))||In(p)&&!p||S&&!V3(s).isValid||C&&!z3(s).isValid)){const{value:A,message:I}=Ka(l)?{value:!!l,message:l}:bi(l);if(A&&(b[m]={type:Rn.required,message:I,ref:v,...R(Rn.required,I)},!n))return w(I),b}if(!$&&(!mt(c)||!mt(f))){let A,I;const B=bi(f),W=bi(c);if(!mt(p)&&!isNaN(p)){const Z=o.valueAsNumber||p&&+p;mt(B.value)||(A=Z>B.value),mt(W.value)||(I=Znew Date(new Date().toDateString()+" "+H),M=o.type=="time",U=o.type=="week";bn(B.value)&&p&&(A=M?G(p)>G(B.value):U?p>B.value:Z>new Date(B.value)),bn(W.value)&&p&&(I=M?G(p)+A.value,W=!mt(I.value)&&p.length<+I.value;if((B||W)&&(D(B,A.message,I.message),!n))return w(b[m].message),b}if(d&&!$&&bn(p)){const{value:A,message:I}=bi(d);if(Yl(A)&&!p.match(A)&&(b[m]={type:Rn.pattern,message:I,ref:o,...R(Rn.pattern,I)},!n))return w(I),b}if(y){if(ur(y)){const A=await y(p,t),I=Dm(A,v);if(I&&(b[m]={...I,...R(Rn.validate,I.message)},!n))return w(I.message),b}else if(Ze(y)){let A={};for(const I in y){if(!Zt(A)&&!n)break;const B=Dm(await y[I](p,t),v,I);B&&(A={...B,...R(I,B.message)},w(B.message),n&&(b[m]=A))}if(!Zt(A)&&(b[m]={ref:v,...A},!n))return b}}return w(!0),b};function y9(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Kl=e=>mt(e)||!I3(e);function Br(e,t){if(Kl(e)||Kl(t))return e===t;if(zi(e)&&zi(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(zi(o)&&zi(s)||Ze(o)&&Ze(s)||Array.isArray(o)&&Array.isArray(s)?!Br(o,s):o!==s)return!1}}return!0}var B3=e=>e.type==="select-multiple",w9=e=>Hh(e)||Ws(e),lf=e=>Zl(e)&&e.isConnected,x9=e=>Ze(e)&&Object.values(e).some(t=>t),U3=e=>{for(const t in e)if(ur(e[t]))return!0;return!1};function ql(e,t={}){const n=Array.isArray(e);if(Ze(e)||n)for(const r in e)Array.isArray(e[r])||Ze(e[r])&&!U3(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ql(e[r],t[r])):mt(e[r])||(t[r]=!0);return t}function H3(e,t,n){const r=Array.isArray(e);if(Ze(e)||r)for(const i in e)Array.isArray(e[i])||Ze(e[i])&&!U3(e[i])?Ne(t)||Kl(n[i])?n[i]=Array.isArray(e[i])?ql(e[i],[]):{...ql(e[i])}:H3(e[i],mt(t)?{}:t[i],n[i]):n[i]=!Br(e[i],t[i]);return n}var va=(e,t)=>H3(e,t,ql(t)),W3=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ne(e)?e:t?e===""?NaN:e&&+e:n&&bn(e)?new Date(e):r?r(e):e;function uf(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Uh(t)?t.files:Hh(t)?z3(e.refs).value:B3(t)?[...t.selectedOptions].map(({value:n})=>n):Ws(t)?V3(e.refs).value:W3(Ne(t.value)?e.ref.value:t.value,e)}var b9=(e,t,n,r)=>{const i={};for(const o of e){const s=q(t,o);s&&Pe(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Mo=e=>Ne(e)?e:Yl(e)?e.source:Ze(e)?Yl(e.value)?e.value.source:e.value:e,S9=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function jm(e,t,n){const r=q(e,n);if(r||Bh(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=q(t,o),l=q(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var E9=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,C9=(e,t)=>!Zs(q(e,t)).length&&Qe(e,t);const O9={mode:ln.onSubmit,reValidateMode:ln.onChange,shouldFocusError:!0};function k9(e={}){let t={...O9,...e},n={submitCount:0,isDirty:!1,isLoading:ur(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ze(t.defaultValues)||Ze(t.values)?Wt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Wt(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:af(),array:af(),state:af()},d=Rm(t.mode),y=Rm(t.reValidateMode),m=t.criteriaMode===ln.all,g=O=>T=>{clearTimeout(u),u=setTimeout(O,T)},x=async O=>{if(c.isValid||O){const T=t.resolver?Zt((await P()).errors):await R(r,!0);T!==n.isValid&&f.state.next({isValid:T})}},h=(O,T)=>{(c.isValidating||c.validatingFields)&&(T.forEach(_=>{Pe(n.validatingFields,_,O)}),n.isValidating=x9(n.validatingFields),f.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},p=(O,T=[],_,F,V=!0,N=!0)=>{if(F&&_){if(s.action=!0,N&&Array.isArray(q(r,O))){const X=_(q(r,O),F.argA,F.argB);V&&Pe(r,O,X)}if(N&&Array.isArray(q(n.errors,O))){const X=_(q(n.errors,O),F.argA,F.argB);V&&Pe(n.errors,O,X),C9(n.errors,O)}if(c.touchedFields&&N&&Array.isArray(q(n.touchedFields,O))){const X=_(q(n.touchedFields,O),F.argA,F.argB);V&&Pe(n.touchedFields,O,X)}c.dirtyFields&&(n.dirtyFields=va(i,o)),f.state.next({name:O,isDirty:A(O,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Pe(o,O,T)},v=(O,T)=>{Pe(n.errors,O,T),f.state.next({errors:n.errors})},w=O=>{n.errors=O,f.state.next({errors:n.errors,isValid:!1})},b=(O,T,_,F)=>{const V=q(r,O);if(V){const N=q(o,O,Ne(_)?q(i,O):_);Ne(N)||F&&F.defaultChecked||T?Pe(o,O,T?N:uf(V._f)):W(O,N),s.mount&&x()}},C=(O,T,_,F,V)=>{let N=!1,X=!1;const Ce={name:O},Ge=!!(q(r,O)&&q(r,O)._f.disabled);if(!_||F){c.isDirty&&(X=n.isDirty,n.isDirty=Ce.isDirty=A(),N=X!==Ce.isDirty);const _t=Ge||Br(q(i,O),T);X=!!(!Ge&&q(n.dirtyFields,O)),_t||Ge?Qe(n.dirtyFields,O):Pe(n.dirtyFields,O,!0),Ce.dirtyFields=n.dirtyFields,N=N||c.dirtyFields&&X!==!_t}if(_){const _t=q(n.touchedFields,O);_t||(Pe(n.touchedFields,O,_),Ce.touchedFields=n.touchedFields,N=N||c.touchedFields&&_t!==_)}return N&&V&&f.state.next(Ce),N?Ce:{}},S=(O,T,_,F)=>{const V=q(n.errors,O),N=c.isValid&&In(T)&&n.isValid!==T;if(e.delayError&&_?(a=g(()=>v(O,_)),a(e.delayError)):(clearTimeout(u),a=null,_?Pe(n.errors,O,_):Qe(n.errors,O)),(_?!Br(V,_):V)||!Zt(F)||N){const X={...F,...N&&In(T)?{isValid:T}:{},errors:n.errors,name:O};n={...n,...X},f.state.next(X)}h(!1,Object.keys(n.validatingFields).filter(X=>X===O))},P=async O=>t.resolver(o,t.context,b9(O||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation)),$=async O=>{const{errors:T}=await P(O);if(O)for(const _ of O){const F=q(T,_);F?Pe(n.errors,_,F):Qe(n.errors,_)}else n.errors=T;return T},R=async(O,T,_={valid:!0})=>{for(const F in O){const V=O[F];if(V){const{_f:N,...X}=V;if(N){const Ce=l.array.has(N.name),Ge=await Im(V,o,m,t.shouldUseNativeValidation&&!T,Ce);if(Ge[N.name]&&(_.valid=!1,T))break;!T&&(q(Ge,N.name)?Ce?g9(n.errors,Ge,N.name):Pe(n.errors,N.name,Ge[N.name]):Qe(n.errors,N.name))}X&&await R(X,T,_)}}return _.valid},D=()=>{for(const O of l.unMount){const T=q(r,O);T&&(T._f.refs?T._f.refs.every(_=>!lf(_)):!lf(T._f.ref))&&oe(O)}l.unMount=new Set},A=(O,T)=>(O&&T&&Pe(o,O,T),!Br(ie(),i)),I=(O,T,_)=>m9(O,l,{...s.mount?o:Ne(T)?i:bn(O)?{[O]:T}:T},_,T),B=O=>Zs(q(s.mount?o:i,O,e.shouldUnregister?q(i,O,[]):[])),W=(O,T,_={})=>{const F=q(r,O);let V=T;if(F){const N=F._f;N&&(!N.disabled&&Pe(o,O,W3(T,N)),V=Zl(N.ref)&&mt(T)?"":T,B3(N.ref)?[...N.ref.options].forEach(X=>X.selected=V.includes(X.value)):N.refs?Ws(N.ref)?N.refs.length>1?N.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(V)?!!V.find(Ce=>Ce===X.value):V===X.value)):N.refs[0]&&(N.refs[0].checked=!!V):N.refs.forEach(X=>X.checked=X.value===V):Uh(N.ref)?N.ref.value="":(N.ref.value=V,N.ref.type||f.values.next({name:O,values:{...o}})))}(_.shouldDirty||_.shouldTouch)&&C(O,V,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&H(O)},Z=(O,T,_)=>{for(const F in T){const V=T[F],N=`${O}.${F}`,X=q(r,N);(l.array.has(O)||!Kl(V)||X&&!X._f)&&!zi(V)?Z(N,V,_):W(N,V,_)}},G=(O,T,_={})=>{const F=q(r,O),V=l.array.has(O),N=Wt(T);Pe(o,O,N),V?(f.array.next({name:O,values:{...o}}),(c.isDirty||c.dirtyFields)&&_.shouldDirty&&f.state.next({name:O,dirtyFields:va(i,o),isDirty:A(O,N)})):F&&!F._f&&!mt(N)?Z(O,N,_):W(O,N,_),Fm(O,l)&&f.state.next({...n}),f.values.next({name:s.mount?O:void 0,values:{...o}})},M=async O=>{const T=O.target;let _=T.name,F=!0;const V=q(r,_),N=()=>T.type?uf(V._f):l9(O),X=Ce=>{F=Number.isNaN(Ce)||Ce===q(o,_,Ce)};if(V){let Ce,Ge;const _t=N(),yi=O.type===_m.BLUR||O.type===_m.FOCUS_OUT,f5=!S9(V._f)&&!t.resolver&&!q(n.errors,_)&&!V._f.deps||E9(yi,q(n.touchedFields,_),n.isSubmitted,y,d),dc=Fm(_,l,yi);Pe(o,_,_t),yi?(V._f.onBlur&&V._f.onBlur(O),a&&a(0)):V._f.onChange&&V._f.onChange(O);const pc=C(_,_t,yi,!1),d5=!Zt(pc)||dc;if(!yi&&f.values.next({name:_,type:O.type,values:{...o}}),f5)return c.isValid&&x(),d5&&f.state.next({name:_,...dc?{}:pc});if(!yi&&dc&&f.state.next({...n}),h(!0,[_]),t.resolver){const{errors:y1}=await P([_]);if(X(_t),F){const p5=jm(n.errors,r,_),v1=jm(y1,r,p5.name||_);Ce=v1.error,_=v1.name,Ge=Zt(y1)}}else Ce=(await Im(V,o,m,t.shouldUseNativeValidation))[_],X(_t),F&&(Ce?Ge=!1:c.isValid&&(Ge=await R(r,!0)));F&&(V._f.deps&&H(V._f.deps),S(_,Ge,Ce,pc))}},U=(O,T)=>{if(q(n.errors,T)&&O.focus)return O.focus(),1},H=async(O,T={})=>{let _,F;const V=sf(O);if(h(!0,V),t.resolver){const N=await $(Ne(O)?O:V);_=Zt(N),F=O?!V.some(X=>q(N,X)):_}else O?(F=(await Promise.all(V.map(async N=>{const X=q(r,N);return await R(X&&X._f?{[N]:X}:X)}))).every(Boolean),!(!F&&!n.isValid)&&x()):F=_=await R(r);return f.state.next({...!bn(O)||c.isValid&&_!==n.isValid?{}:{name:O},...t.resolver||!O?{isValid:_}:{},errors:n.errors,isValidating:!1}),T.shouldFocus&&!F&&rs(r,U,O?V:l.mount),F},ie=O=>{const T={...i,...s.mount?o:{}};return Ne(O)?T:bn(O)?q(T,O):O.map(_=>q(T,_))},J=(O,T)=>({invalid:!!q((T||n).errors,O),isDirty:!!q((T||n).dirtyFields,O),isTouched:!!q((T||n).touchedFields,O),isValidating:!!q((T||n).validatingFields,O),error:q((T||n).errors,O)}),le=O=>{O&&sf(O).forEach(T=>Qe(n.errors,T)),f.state.next({errors:O?n.errors:{}})},ae=(O,T,_)=>{const F=(q(r,O,{_f:{}})._f||{}).ref;Pe(n.errors,O,{...T,ref:F}),f.state.next({name:O,errors:n.errors,isValid:!1}),_&&_.shouldFocus&&F&&F.focus&&F.focus()},ye=(O,T)=>ur(O)?f.values.subscribe({next:_=>O(I(void 0,T),_)}):I(O,T,!0),oe=(O,T={})=>{for(const _ of O?sf(O):l.mount)l.mount.delete(_),l.array.delete(_),T.keepValue||(Qe(r,_),Qe(o,_)),!T.keepError&&Qe(n.errors,_),!T.keepDirty&&Qe(n.dirtyFields,_),!T.keepTouched&&Qe(n.touchedFields,_),!T.keepIsValidating&&Qe(n.validatingFields,_),!t.shouldUnregister&&!T.keepDefaultValue&&Qe(i,_);f.values.next({values:{...o}}),f.state.next({...n,...T.keepDirty?{isDirty:A()}:{}}),!T.keepIsValid&&x()},de=({disabled:O,name:T,field:_,fields:F,value:V})=>{if(In(O)){const N=O?void 0:Ne(V)?uf(_?_._f:q(F,T)._f):V;Pe(o,T,N),C(T,N,!1,!1,!0)}},Ae=(O,T={})=>{let _=q(r,O);const F=In(T.disabled);return Pe(r,O,{..._||{},_f:{..._&&_._f?_._f:{ref:{name:O}},name:O,mount:!0,...T}}),l.mount.add(O),_?de({field:_,disabled:T.disabled,name:O,value:T.value}):b(O,!0,T.value),{...F?{disabled:T.disabled}:{},...t.progressive?{required:!!T.required,min:Mo(T.min),max:Mo(T.max),minLength:Mo(T.minLength),maxLength:Mo(T.maxLength),pattern:Mo(T.pattern)}:{},name:O,onChange:M,onBlur:M,ref:V=>{if(V){Ae(O,T),_=q(r,O);const N=Ne(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,X=w9(N),Ce=_._f.refs||[];if(X?Ce.find(Ge=>Ge===N):N===_._f.ref)return;Pe(r,O,{_f:{..._._f,...X?{refs:[...Ce.filter(lf),N,...Array.isArray(q(i,O))?[{}]:[]],ref:{type:N.type,name:O}}:{ref:N}}}),b(O,!1,void 0,N)}else _=q(r,O,{}),_._f&&(_._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(c9(l.array,O)&&s.action)&&l.unMount.add(O)}}},nt=()=>t.shouldFocusError&&rs(r,U,l.mount),j=O=>{In(O)&&(f.state.next({disabled:O}),rs(r,(T,_)=>{let F=O;const V=q(r,_);V&&In(V._f.disabled)&&(F||(F=V._f.disabled)),T.disabled=F},0,!1))},Y=(O,T)=>async _=>{let F;_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let V=Wt(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:X}=await P();n.errors=N,V=X}else await R(r);if(Qe(n.errors,"root"),Zt(n.errors)){f.state.next({errors:{}});try{await O(V,_)}catch(N){F=N}}else T&&await T({...n.errors},_),nt(),setTimeout(nt);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zt(n.errors)&&!F,submitCount:n.submitCount+1,errors:n.errors}),F)throw F},ce=(O,T={})=>{q(r,O)&&(Ne(T.defaultValue)?G(O,Wt(q(i,O))):(G(O,T.defaultValue),Pe(i,O,Wt(T.defaultValue))),T.keepTouched||Qe(n.touchedFields,O),T.keepDirty||(Qe(n.dirtyFields,O),n.isDirty=T.defaultValue?A(O,Wt(q(i,O))):A()),T.keepError||(Qe(n.errors,O),c.isValid&&x()),f.state.next({...n}))},ue=(O,T={})=>{const _=O?Wt(O):i,F=Wt(_),V=Zt(O),N=V?i:F;if(T.keepDefaultValues||(i=_),!T.keepValues){if(T.keepDirtyValues)for(const X of l.mount)q(n.dirtyFields,X)?Pe(N,X,q(o,X)):G(X,q(N,X));else{if(zh&&Ne(O))for(const X of l.mount){const Ce=q(r,X);if(Ce&&Ce._f){const Ge=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(Zl(Ge)){const _t=Ge.closest("form");if(_t){_t.reset();break}}}}r={}}o=e.shouldUnregister?T.keepDefaultValues?Wt(i):{}:Wt(N),f.array.next({values:{...N}}),f.values.next({values:{...N}})}l={mount:T.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!c.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:V?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!Br(O,i)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?[]:T.keepDirtyValues?T.keepDefaultValues&&o?va(i,o):n.dirtyFields:T.keepDefaultValues&&O?va(i,O):{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},se=(O,T)=>ue(ur(O)?O(o):O,T);return{control:{register:Ae,unregister:oe,getFieldState:J,handleSubmit:Y,setError:ae,_executeSchema:P,_getWatch:I,_getDirty:A,_updateValid:x,_removeUnmounted:D,_updateFieldArray:p,_updateDisabledField:de,_getFieldArray:B,_reset:ue,_resetDefaultValues:()=>ur(t.defaultValues)&&t.defaultValues().then(O=>{se(O,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:O=>{n={...n,...O}},_disableForm:j,_subjects:f,_proxyFormState:c,_setErrors:w,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(O){s=O},get _defaultValues(){return i},get _names(){return l},set _names(O){l=O},get _formState(){return n},set _formState(O){n=O},get _options(){return t},set _options(O){t={...t,...O}}},trigger:H,register:Ae,handleSubmit:Y,watch:ye,setValue:G,getValues:ie,reset:se,resetField:ce,clearErrors:le,unregister:oe,setError:ae,setFocus:(O,T={})=>{const _=q(r,O),F=_&&_._f;if(F){const V=F.refs?F.refs[0]:F.ref;V.focus&&(V.focus(),T.shouldSelect&&V.select())}},getFieldState:J}}function P9(e={}){const t=ee.useRef(),n=ee.useRef(),[r,i]=ee.useState({isDirty:!1,isValidating:!1,isLoading:ur(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ur(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...k9(e),formState:r});const o=t.current.control;return o._options=e,h9({subject:o._subjects.state,next:s=>{p9(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),ee.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ee.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),ee.useEffect(()=>{e.values&&!Br(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),ee.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ee.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ee.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=d9(r,o),t.current}var Nm=function(e,t,n){if(e&&"reportValidity"in e){var r=q(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Z3=function(e,t){var n=function(i){var o=t.fields[i];o&&o.ref&&"reportValidity"in o.ref?Nm(o.ref,i,e):o.refs&&o.refs.forEach(function(s){return Nm(s,i,e)})};for(var r in t.fields)n(r)},$9=function(e,t){t.shouldUseNativeValidation&&Z3(e,t);var n={};for(var r in e){var i=q(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(T9(t.names||Object.keys(e),r)){var s=Object.assign({},q(n,r));Pe(s,"root",o),Pe(n,r,s)}else Pe(n,r,o)}return n},T9=function(e,t){return e.some(function(n){return n.startsWith(t+".")})};function _9(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,l){try{var a=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(u){return o.shouldUseNativeValidation&&Z3({},o),{values:n.raw?r:u,errors:{}}}))}catch(u){return l(u)}return a&&a.then?a.then(void 0,l):a}(0,function(s){if(!s.inner)throw s;return{values:{},errors:$9((l=s,a=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(l.inner||[]).reduce(function(u,c){if(u[c.path]||(u[c.path]={message:c.message,type:c.type}),a){var f=u[c.path].types,d=f&&f[c.type];u[c.path]=N3(c.path,a,u,c.type,d?[].concat(d,c.message):c.message)}return u},{})),o)};var l,a}))}catch(s){return Promise.reject(s)}}}const R9=Q.div` position: fixed; top: 0; left: 0; @@ -393,7 +401,7 @@ attempted value: ${s} @media only screen and (min-width: 1440px) { align-items: center; } -`,c9=Q.div` +`,F9=Q.div` padding: 32px 12px; position: relative; border-radius: 10px; @@ -410,14 +418,14 @@ attempted value: ${s} max-width: 1008px; min-height: 592px; } -`,f9=Q.h1` +`,A9=Q.h1` font-size: 26px; font-weight: 500; line-height: 1.23; font-family: 'Roboto', sans-serif; margin-bottom: 24px; -`,d9=Q.button` +`,M9=Q.button` position: absolute; top: 42px; right: 18px; @@ -428,7 +436,7 @@ attempted value: ${s} @media only screen and (min-width: 768px) { right: 30px; } -`,p9=Q.form` +`,L9=Q.form` display: flex; flex-direction: column; gap: 24px; @@ -481,19 +489,19 @@ attempted value: ${s} ); margin-bottom: ${e=>{var t;return(t=e.$errors)!=null&&t.confirmPassword?"4px":"0"}}; } -`,xi=Q.div` +`,Si=Q.div` display: flex; flex-direction: column; gap: 8px; -`,Im=Q.div` +`,Vm=Q.div` display: flex; flex-direction: column; gap: 12px; -`,h9=Q.div` +`,D9=Q.div` display: flex; flex-direction: column; gap: 24px; -`,m9=Q.div` +`,I9=Q.div` display: flex; flex-direction: column; gap: 24px; @@ -501,7 +509,7 @@ attempted value: ${s} @media only screen and (min-width: 1440px) { flex-direction: row; } -`,g9=Q.div` +`,j9=Q.div` display: flex; flex-direction: column; gap: 24px; @@ -509,19 +517,19 @@ attempted value: ${s} @media only screen and (min-width: 1440px) { gap: 52px; } -`,jm=Q.h2` +`,zm=Q.h2` font-size: 18px; font-weight: 500; line-height: 1.11; font-family: 'Roboto', sans-serif; -`,y9=Q.div` +`,N9=Q.div` display: flex; `,cf=Q.label` font-size: 18px; font-weight: 500; line-height: 1.11; font-family: 'Roboto', sans-serif; -`,Nm=Q.label` +`,Bm=Q.label` position: relative; margin-right: 24px; font-size: 16px; @@ -533,13 +541,13 @@ attempted value: ${s} font-weight: 400; line-height: 1.25; font-family: 'Roboto', sans-serif; -`,Vm=Q.input` +`,Um=Q.input` margin-right: 8px; -`,zm=Q.div` +`,Hm=Q.div` position: absolute; top: 0px; left: 0px; -`,Bm=Q.input` +`,Wm=Q.input` border: 1px solid var(--primary-mediumblue); border-radius: 6px; padding: 12px 10px; @@ -607,7 +615,7 @@ attempted value: ${s} justify-content: center; align-items: center; padding: 0; -`,v9=Q.button` +`,V9=Q.button` /* margin-top: 12px; */ border-radius: 10px; border: none; @@ -640,15 +648,7 @@ attempted value: ${s} font-weight: 400; line-height: 1.29; font-family: 'Roboto', sans-serif; -`,w9=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M1 13 13 1M1 1l12 12"})}),Um=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:[E.jsx("circle",{cx:7,cy:7,r:6.5,fill:"#fff",stroke:"#407BFF"}),E.jsx("circle",{cx:7,cy:7,r:3,fill:"#407BFF"})]}),Hm=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("circle",{cx:7,cy:7,r:6.5,fill:"#fff",stroke:"#407BFF"})}),x9=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80",fill:"none",viewBox:"0 0 24 24",...e,children:[E.jsxs("g",{stroke:"#2F2F2F",clipPath:"url(#a)",children:[E.jsx("circle",{cx:12,cy:12,r:11.5}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7.077c0 .816-.316 1.599-.878 2.176a2.963 2.963 0 0 1-2.122.9 2.963 2.963 0 0 1-2.122-.9A3.117 3.117 0 0 1 9 7.077c0-.816.316-1.599.878-2.176A2.963 2.963 0 0 1 12 4c.796 0 1.559.324 2.122.901.562.577.878 1.36.878 2.176ZM6 18.66a6.23 6.23 0 0 1 1.792-4.286A5.925 5.925 0 0 1 12 12.608c1.575 0 3.086.634 4.208 1.767A6.23 6.23 0 0 1 18 18.66 14.047 14.047 0 0 1 12 20c-2.141 0-4.173-.48-6-1.34Z"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),b9=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 10v1.5A1.5 1.5 0 0 0 2.5 13h9a1.5 1.5 0 0 0 1.5-1.5V10M4 4l3-3m0 0 3 3M7 1v9"})});var B3={exports:{}},U3={};/** - * @license React - * use-sync-external-store-with-selector.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 Zs=k;function S9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E9=typeof Object.is=="function"?Object.is:S9,C9=Zs.useSyncExternalStore,O9=Zs.useRef,k9=Zs.useEffect,P9=Zs.useMemo,$9=Zs.useDebugValue;U3.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=O9(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=P9(function(){function a(y){if(!u){if(u=!0,c=y,y=r(y),i!==void 0&&s.hasValue){var m=s.value;if(i(m,y))return f=m}return f=y}if(m=f,E9(c,y))return m;var g=r(y);return i!==void 0&&i(m,g)?m:(c=y,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return a(t())},d===null?void 0:function(){return a(d())}]},[t,n,r,i]);var l=C9(e,o[0],o[1]);return k9(function(){s.hasValue=!0,s.value=l},[l]),$9(l),l};B3.exports=U3;var T9=B3.exports,At="default"in as?ee:as,Wm=Symbol.for("react-redux-context"),Zm=typeof globalThis<"u"?globalThis:{};function _9(){if(!At.createContext)return{};const e=Zm[Wm]??(Zm[Wm]=new Map);let t=e.get(At.createContext);return t||(t=At.createContext(null),e.set(At.createContext,t)),t}var kr=_9(),R9=()=>{throw new Error("uSES not initialized!")};function Hh(e=kr){return function(){return At.useContext(e)}}var H3=Hh(),W3=R9,F9=e=>{W3=e},A9=(e,t)=>e===t;function M9(e=kr){const t=e===kr?H3:Hh(e),n=(r,i={})=>{const{equalityFn:o=A9,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:a,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();At.useRef(!0);const d=At.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,s.stabilityCheck]),y=W3(a.addNestedSub,l.getState,u||l.getState,d,o);return At.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var hi=M9();function L9(e){e()}function D9(){let e=null,t=null;return{clear(){e=null,t=null},notify(){L9(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ym={notify(){},get:()=>[]};function I9(e,t){let n,r=Ym,i=0,o=!1;function s(g){c();const x=r.subscribe(g);let h=!1;return()=>{h||(h=!0,x(),f())}}function l(){r.notify()}function a(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=D9())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ym)}function d(){o||(o=!0,c())}function y(){o&&(o=!1,f())}const m={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:a,isSubscribed:u,trySubscribe:d,tryUnsubscribe:y,getListeners:()=>r};return m}var j9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N9=j9?At.useLayoutEffect:At.useEffect;function V9({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=At.useMemo(()=>{const u=I9(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),l=At.useMemo(()=>e.getState(),[e]);N9(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,l]);const a=t||kr;return At.createElement(a.Provider,{value:s},n)}var z9=V9;function Z3(e=kr){const t=e===kr?H3:Hh(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var B9=Z3();function U9(e=kr){const t=e===kr?B9:Z3(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Hu=U9();F9(T9.useSyncExternalStoreWithSelector);const Eo=e=>{var t;return(t=e.auth)==null?void 0:t.user},fj=e=>{var t,n;return(n=(t=e.auth)==null?void 0:t.user)==null?void 0:n.dailyNorma};function Y3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Gr=e=>typeof e=="string",Mt=e=>typeof e=="function",qa=e=>Gr(e)||Mt(e)?e:null,Kd=e=>k.isValidElement(e)||Gr(e)||Mt(e)||_s(e);function H9(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Wu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:a,preventExitTransition:u,done:c,nodeRef:f,isIn:d,playToast:y}=s;const m=r?`${t}--${a}`:t,g=r?`${n}--${a}`:n,x=k.useRef(0);return k.useLayoutEffect(()=>{const h=f.current,p=m.split(" "),v=w=>{w.target===f.current&&(y(),h.removeEventListener("animationend",v),h.removeEventListener("animationcancel",v),x.current===0&&w.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",v),h.addEventListener("animationcancel",v)},[]),k.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),i?H9(h,c,o):c()};d||(u?p():(x.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[d]),ee.createElement(ee.Fragment,null,l)}}function Km(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const gt=new Map;let Rs=[];const qd=new Set,W9=e=>qd.forEach(t=>t(e)),K3=()=>gt.size>0;function q3(e,t){var n;if(t)return!((n=gt.get(t))==null||!n.isToastActive(e));let r=!1;return gt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function G3(e,t){Kd(e)&&(K3()||Rs.push({content:e,options:t}),gt.forEach(n=>{n.buildToast(e,t)}))}function qm(e,t){gt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Z9(e){const{subscribe:t,getSnapshot:n,setProps:r}=k.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const a=function(c,f,d){let y=1,m=0,g=[],x=[],h=[],p=f;const v=new Map,w=new Set,b=()=>{h=Array.from(v.values()),w.forEach(P=>P())},C=P=>{x=P==null?[]:x.filter($=>$!==P),b()},S=P=>{const{toastId:$,onOpen:R,updateId:D,children:A}=P.props,I=D==null;P.staleId&&v.delete(P.staleId),v.set($,P),x=[...x,P.props.toastId].filter(B=>B!==P.staleId),b(),d(Km(P,I?"added":"updated")),I&&Mt(R)&&R(k.isValidElement(A)&&A.props)};return{id:c,props:p,observe:P=>(w.add(P),()=>w.delete(P)),toggle:(P,$)=>{v.forEach(R=>{$!=null&&$!==R.props.toastId||Mt(R.toggle)&&R.toggle(P)})},removeToast:C,toasts:v,clearQueue:()=>{m-=g.length,g=[]},buildToast:(P,$)=>{if((J=>{let{containerId:le,toastId:ae,updateId:ye}=J;const oe=le?le!==c:c!==1,de=v.has(ae)&&ye==null;return oe||de})($))return;const{toastId:R,updateId:D,data:A,staleId:I,delay:B}=$,W=()=>{C(R)},Z=D==null;Z&&m++;const G={...p,style:p.toastStyle,key:y++,...Object.fromEntries(Object.entries($).filter(J=>{let[le,ae]=J;return ae!=null})),toastId:R,updateId:D,data:A,closeToast:W,isIn:!1,className:qa($.className||p.toastClassName),bodyClassName:qa($.bodyClassName||p.bodyClassName),progressClassName:qa($.progressClassName||p.progressClassName),autoClose:!$.isLoading&&(M=$.autoClose,U=p.autoClose,M===!1||_s(M)&&M>0?M:U),deleteToast(){const J=v.get(R),{onClose:le,children:ae}=J.props;Mt(le)&&le(k.isValidElement(ae)&&ae.props),d(Km(J,"removed")),v.delete(R),m--,m<0&&(m=0),g.length>0?S(g.shift()):b()}};var M,U;G.closeButton=p.closeButton,$.closeButton===!1||Kd($.closeButton)?G.closeButton=$.closeButton:$.closeButton===!0&&(G.closeButton=!Kd(p.closeButton)||p.closeButton);let H=P;k.isValidElement(P)&&!Gr(P.type)?H=k.cloneElement(P,{closeToast:W,toastProps:G,data:A}):Mt(P)&&(H=P({closeToast:W,toastProps:G,data:A}));const ie={content:H,props:G,staleId:I};p.limit&&p.limit>0&&m>p.limit&&Z?g.push(ie):_s(B)?setTimeout(()=>{S(ie)},B):S(ie)},setProps(P){p=P},setToggle:(P,$)=>{v.get(P).toggle=$},isToastActive:P=>x.some($=>$===P),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(s,o,W9);gt.set(s,a);const u=a.observe(l);return Rs.forEach(c=>G3(c.content,c.options)),Rs=[],()=>{u(),gt.delete(s)}},setProps(l){var a;(a=gt.get(s))==null||a.setProps(l)},getSnapshot(){var l;return(l=gt.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=k.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:a}=l.props;s.has(a)||s.set(a,[]),s.get(a).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:q3,count:i==null?void 0:i.length}}function Y9(e){const[t,n]=k.useState(!1),[r,i]=k.useState(!1),o=k.useRef(null),s=k.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:a,closeToast:u,onClick:c,closeOnClick:f}=e;var d,y;function m(){n(!0)}function g(){n(!1)}function x(v){const w=o.current;s.canDrag&&w&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?v.clientX-s.start:v.clientY-s.start,s.start!==v.clientX&&(s.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",h);const v=o.current;if(s.canDrag&&s.didMove&&v){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();v.style.transition="transform 0.2s, opacity 0.2s",v.style.removeProperty("transform"),v.style.removeProperty("opacity")}}(y=gt.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||y.setToggle(d.id,d.fn),k.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(v){if(e.draggable===!0||e.draggable===v.pointerType){s.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",h);const w=o.current;s.canCloseOnClick=!0,s.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(s.start=v.clientX,s.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(s.start=v.clientY,s.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(v){const{top:w,bottom:b,left:C,right:S}=o.current.getBoundingClientRect();v.nativeEvent.type!=="touchend"&&e.pauseOnHover&&v.clientX>=C&&v.clientX<=S&&v.clientY>=w&&v.clientY<=b?g():m()}};return l&&a&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=m)),f&&(p.onClick=v=>{c&&c(v),s.canCloseOnClick&&u()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:p}}function K9(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:a,progress:u,rtl:c,isIn:f,theme:d}=e;const y=o||a&&u===0,m={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};a&&(m.transform=`scaleX(${u})`);const g=cr("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),x=Mt(s)?s({rtl:c,type:i,defaultClassName:g}):cr(g,s),h={[a&&u>=1?"onTransitionEnd":"onAnimationEnd"]:a&&u<1?null:()=>{f&&r()}};return ee.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},ee.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${i}`}),ee.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:x,style:m,...h}))}let q9=1;const Q3=()=>""+q9++;function G9(e){return e&&(Gr(e.toastId)||_s(e.toastId))?e.toastId:Q3()}function is(e,t){return G3(e,t),t.toastId}function Gl(e,t){return{...t,type:t&&t.type||e,toastId:G9(t)}}function wa(e){return(t,n)=>is(t,Gl(e,n))}function be(e,t){return is(e,Gl("default",t))}be.loading=(e,t)=>is(e,Gl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),be.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Gr(i)?be.loading(i,n):be.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(c,f,d)=>{if(f==null)return void be.dismiss(r);const y={type:c,...l,...n,data:d},m=Gr(f)?{render:f}:f;return r?be.update(r,{...y,...m}):be(m.render,{...y,...m}),d},u=Mt(e)?e():e;return u.then(c=>a("success",s,c)).catch(c=>a("error",o,c)),u},be.success=wa("success"),be.info=wa("info"),be.error=wa("error"),be.warning=wa("warning"),be.warn=be.warning,be.dark=(e,t)=>is(e,Gl("default",{theme:"dark",...t})),be.dismiss=function(e){(function(t){var n;if(K3()){if(t==null||Gr(n=t)||_s(n))gt.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=gt.get(t.containerId))!=null&&r.removeToast(t.id)||gt.forEach(i=>{i.removeToast(t.id)})}}else Rs=Rs.filter(i=>t!=null&&i.options.toastId!==t)})(e)},be.clearWaitingQueue=function(e){e===void 0&&(e={}),gt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},be.isActive=q3,be.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=gt.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q3()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,is(s,o)}},be.done=e=>{be.update(e,{progress:1})},be.onChange=function(e){return qd.add(e),()=>{qd.delete(e)}},be.play=e=>qm(!0,e),be.pause=e=>qm(!1,e);const Q9=typeof window<"u"?k.useLayoutEffect:k.useEffect,xa=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return ee.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},mf={info:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ee.createElement("div",{className:"Toastify__spinner"})}},J9=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=Y9(e),{closeButton:s,children:l,autoClose:a,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:y,position:m,className:g,style:x,bodyClassName:h,bodyStyle:p,progressClassName:v,progressStyle:w,updateId:b,role:C,progress:S,rtl:P,toastId:$,deleteToast:R,isIn:D,isLoading:A,closeOnClick:I,theme:B}=e,W=cr("Toastify__toast",`Toastify__toast-theme--${B}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":I}),Z=Mt(g)?g({rtl:P,position:m,type:c,defaultClassName:W}):cr(W,g),G=function(ie){let{theme:J,type:le,isLoading:ae,icon:ye}=ie,oe=null;const de={theme:J,type:le};return ye===!1||(Mt(ye)?oe=ye({...de,isLoading:ae}):k.isValidElement(ye)?oe=k.cloneElement(ye,de):ae?oe=mf.spinner():(Ae=>Ae in mf)(le)&&(oe=mf[le](de))),oe}(e),M=!!S||!a,U={closeToast:d,type:c,theme:B};let H=null;return s===!1||(H=Mt(s)?s(U):k.isValidElement(s)?k.cloneElement(s,U):function(ie){let{closeToast:J,theme:le,ariaLabel:ae="close"}=ie;return ee.createElement("button",{className:`Toastify__close-button Toastify__close-button--${le}`,type:"button",onClick:ye=>{ye.stopPropagation(),J(ye)},"aria-label":ae},ee.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ee.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),ee.createElement(y,{isIn:D,done:R,position:m,preventExitTransition:n,nodeRef:r,playToast:o},ee.createElement("div",{id:$,onClick:u,"data-in":D,className:Z,...i,style:x,ref:r},ee.createElement("div",{...D&&{role:C},className:Mt(h)?h({type:c}):cr("Toastify__toast-body",h),style:p},G!=null&&ee.createElement("div",{className:cr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},G),ee.createElement("div",null,l)),H,ee.createElement(K9,{...b&&!M?{key:`pb-${b}`}:{},rtl:P,theme:B,delay:a,isRunning:t,isIn:D,closeToast:d,hide:f,type:c,style:w,className:v,controlledProgress:M,progress:S||0})))},Zu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},X9=Wu(Zu("bounce",!0));Wu(Zu("slide",!0));Wu(Zu("zoom"));Wu(Zu("flip"));const eC={position:"top-right",transition:X9,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function tC(e){let t={...eC,...e};const n=e.stacked,[r,i]=k.useState(!0),o=k.useRef(null),{getToastToRender:s,isToastActive:l,count:a}=Z9(t),{className:u,style:c,rtl:f,containerId:d}=t;function y(g){const x=cr("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return Mt(u)?u({position:g,rtl:f,defaultClassName:x}):cr(x,qa(u))}function m(){n&&(i(!0),be.play())}return Q9(()=>{if(n){var g;const x=o.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let v=0,w=0;Array.from(x).reverse().forEach((b,C)=>{const S=b;S.classList.add("Toastify__toast--stacked"),C>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=p?"top":"bot");const P=v*(r?.2:1)+(r?0:h*C);S.style.setProperty("--y",`${p?P:-1*P}px`),S.style.setProperty("--g",`${h}`),S.style.setProperty("--s",""+(1-(r?w:0))),v+=S.offsetHeight,w+=.025})}},[r,a,n]),ee.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(i(!1),be.pause())},onMouseLeave:m},s((g,x)=>{const h=x.length?{...c}:{...c,pointerEvents:"none"};return ee.createElement("div",{className:y(g),style:h,key:`container-${g}`},x.map(p=>{let{content:v,props:w}=p;return ee.createElement(J9,{...w,stacked:n,collapseAll:m,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},v)}))}))}function nC(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Qm(e,t,n){e.loadNamespaces(t,J3(e,n))}function Jm(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,J3(e,r))}function rC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function iC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Gd("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):rC(e,t,n)}const oC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,sC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},aC=e=>sC[e],lC=e=>e.replace(oC,aC);let Qd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:lC};function uC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qd={...Qd,...e}}function cC(){return Qd}let X3;function fC(e){X3=e}function dC(){return X3}const pC={type:"3rdParty",init(e){uC(e.options.react),fC(e)}},e4=k.createContext();class hC{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const mC=(e,t)=>{const n=k.useRef();return k.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function t4(e,t,n,r){return e.getFixedT(t,n,r)}function gC(e,t,n,r){return k.useCallback(t4(e,t,n,r),[e,t,n,r])}function Ys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=k.useContext(e4)||{},o=n||r||dC();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new hC),!o){Gd("You will need to pass in an i18next instance by using initReactI18next");const w=(C,S)=>typeof S=="string"?S:S&&typeof S=="object"&&typeof S.defaultValue=="string"?S.defaultValue:Array.isArray(C)?C[C.length-1]:C,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}o.options.react&&o.options.react.wait!==void 0&&Gd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...cC(),...o.options.react,...t},{useSuspense:l,keyPrefix:a}=s;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(w=>iC(w,o,s)),f=gC(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),d=()=>f,y=()=>t4(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),[m,g]=k.useState(d);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const h=mC(x),p=k.useRef(!0);k.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=s;p.current=!0,!c&&!l&&(t.lng?Jm(o,t.lng,u,()=>{p.current&&g(y)}):Qm(o,u,()=>{p.current&&g(y)})),c&&h&&h!==x&&p.current&&g(y);function C(){p.current&&g(y)}return w&&o&&o.on(w,C),b&&o&&o.store.on(b,C),()=>{p.current=!1,w&&o&&w.split(" ").forEach(S=>o.off(S,C)),b&&o&&b.split(" ").forEach(S=>o.store.off(S,C))}},[o,x]),k.useEffect(()=>{p.current&&c&&g(d)},[o,a,c]);const v=[m,o,c];if(v.t=m,v.i18n=o,v.ready=c,c||!c&&!l)return v;throw new Promise(w=>{t.lng?Jm(o,t.lng,u,()=>w()):Qm(o,u,()=>w())})}function yC(e){let{i18n:t,defaultNS:n,children:r}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return k.createElement(e4.Provider,{value:i},r)}const vC=Q.img` +`,z9=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M1 13 13 1M1 1l12 12"})}),Zm=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:[E.jsx("circle",{cx:7,cy:7,r:6.5,fill:"#fff",stroke:"#407BFF"}),E.jsx("circle",{cx:7,cy:7,r:3,fill:"#407BFF"})]}),Ym=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("circle",{cx:7,cy:7,r:6.5,fill:"#fff",stroke:"#407BFF"})}),B9=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80",fill:"none",viewBox:"0 0 24 24",...e,children:[E.jsxs("g",{stroke:"#2F2F2F",clipPath:"url(#a)",children:[E.jsx("circle",{cx:12,cy:12,r:11.5}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7.077c0 .816-.316 1.599-.878 2.176a2.963 2.963 0 0 1-2.122.9 2.963 2.963 0 0 1-2.122-.9A3.117 3.117 0 0 1 9 7.077c0-.816.316-1.599.878-2.176A2.963 2.963 0 0 1 12 4c.796 0 1.559.324 2.122.901.562.577.878 1.36.878 2.176ZM6 18.66a6.23 6.23 0 0 1 1.792-4.286A5.925 5.925 0 0 1 12 12.608c1.575 0 3.086.634 4.208 1.767A6.23 6.23 0 0 1 18 18.66 14.047 14.047 0 0 1 12 20c-2.141 0-4.173-.48-6-1.34Z"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"a",children:E.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),U9=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 10v1.5A1.5 1.5 0 0 0 2.5 13h9a1.5 1.5 0 0 0 1.5-1.5V10M4 4l3-3m0 0 3 3M7 1v9"})});function Y3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Qr=e=>typeof e=="string",Mt=e=>typeof e=="function",qa=e=>Qr(e)||Mt(e)?e:null,Kd=e=>k.isValidElement(e)||Qr(e)||Mt(e)||_s(e);function H9(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Wu(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:a,preventExitTransition:u,done:c,nodeRef:f,isIn:d,playToast:y}=s;const m=r?`${t}--${a}`:t,g=r?`${n}--${a}`:n,x=k.useRef(0);return k.useLayoutEffect(()=>{const h=f.current,p=m.split(" "),v=w=>{w.target===f.current&&(y(),h.removeEventListener("animationend",v),h.removeEventListener("animationcancel",v),x.current===0&&w.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",v),h.addEventListener("animationcancel",v)},[]),k.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),i?H9(h,c,o):c()};d||(u?p():(x.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[d]),ee.createElement(ee.Fragment,null,l)}}function Km(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const gt=new Map;let Rs=[];const qd=new Set,W9=e=>qd.forEach(t=>t(e)),K3=()=>gt.size>0;function q3(e,t){var n;if(t)return!((n=gt.get(t))==null||!n.isToastActive(e));let r=!1;return gt.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function G3(e,t){Kd(e)&&(K3()||Rs.push({content:e,options:t}),gt.forEach(n=>{n.buildToast(e,t)}))}function qm(e,t){gt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Z9(e){const{subscribe:t,getSnapshot:n,setProps:r}=k.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const a=function(c,f,d){let y=1,m=0,g=[],x=[],h=[],p=f;const v=new Map,w=new Set,b=()=>{h=Array.from(v.values()),w.forEach(P=>P())},C=P=>{x=P==null?[]:x.filter($=>$!==P),b()},S=P=>{const{toastId:$,onOpen:R,updateId:D,children:A}=P.props,I=D==null;P.staleId&&v.delete(P.staleId),v.set($,P),x=[...x,P.props.toastId].filter(B=>B!==P.staleId),b(),d(Km(P,I?"added":"updated")),I&&Mt(R)&&R(k.isValidElement(A)&&A.props)};return{id:c,props:p,observe:P=>(w.add(P),()=>w.delete(P)),toggle:(P,$)=>{v.forEach(R=>{$!=null&&$!==R.props.toastId||Mt(R.toggle)&&R.toggle(P)})},removeToast:C,toasts:v,clearQueue:()=>{m-=g.length,g=[]},buildToast:(P,$)=>{if((J=>{let{containerId:le,toastId:ae,updateId:ye}=J;const oe=le?le!==c:c!==1,de=v.has(ae)&&ye==null;return oe||de})($))return;const{toastId:R,updateId:D,data:A,staleId:I,delay:B}=$,W=()=>{C(R)},Z=D==null;Z&&m++;const G={...p,style:p.toastStyle,key:y++,...Object.fromEntries(Object.entries($).filter(J=>{let[le,ae]=J;return ae!=null})),toastId:R,updateId:D,data:A,closeToast:W,isIn:!1,className:qa($.className||p.toastClassName),bodyClassName:qa($.bodyClassName||p.bodyClassName),progressClassName:qa($.progressClassName||p.progressClassName),autoClose:!$.isLoading&&(M=$.autoClose,U=p.autoClose,M===!1||_s(M)&&M>0?M:U),deleteToast(){const J=v.get(R),{onClose:le,children:ae}=J.props;Mt(le)&&le(k.isValidElement(ae)&&ae.props),d(Km(J,"removed")),v.delete(R),m--,m<0&&(m=0),g.length>0?S(g.shift()):b()}};var M,U;G.closeButton=p.closeButton,$.closeButton===!1||Kd($.closeButton)?G.closeButton=$.closeButton:$.closeButton===!0&&(G.closeButton=!Kd(p.closeButton)||p.closeButton);let H=P;k.isValidElement(P)&&!Qr(P.type)?H=k.cloneElement(P,{closeToast:W,toastProps:G,data:A}):Mt(P)&&(H=P({closeToast:W,toastProps:G,data:A}));const ie={content:H,props:G,staleId:I};p.limit&&p.limit>0&&m>p.limit&&Z?g.push(ie):_s(B)?setTimeout(()=>{S(ie)},B):S(ie)},setProps(P){p=P},setToggle:(P,$)=>{v.get(P).toggle=$},isToastActive:P=>x.some($=>$===P),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(s,o,W9);gt.set(s,a);const u=a.observe(l);return Rs.forEach(c=>G3(c.content,c.options)),Rs=[],()=>{u(),gt.delete(s)}},setProps(l){var a;(a=gt.get(s))==null||a.setProps(l)},getSnapshot(){var l;return(l=gt.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=k.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:a}=l.props;s.has(a)||s.set(a,[]),s.get(a).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:q3,count:i==null?void 0:i.length}}function Y9(e){const[t,n]=k.useState(!1),[r,i]=k.useState(!1),o=k.useRef(null),s=k.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:a,closeToast:u,onClick:c,closeOnClick:f}=e;var d,y;function m(){n(!0)}function g(){n(!1)}function x(v){const w=o.current;s.canDrag&&w&&(s.didMove=!0,t&&g(),s.delta=e.draggableDirection==="x"?v.clientX-s.start:v.clientY-s.start,s.start!==v.clientX&&(s.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",h);const v=o.current;if(s.canDrag&&s.didMove&&v){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();v.style.transition="transform 0.2s, opacity 0.2s",v.style.removeProperty("transform"),v.style.removeProperty("opacity")}}(y=gt.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||y.setToggle(d.id,d.fn),k.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(v){if(e.draggable===!0||e.draggable===v.pointerType){s.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",h);const w=o.current;s.canCloseOnClick=!0,s.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(s.start=v.clientX,s.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(s.start=v.clientY,s.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(v){const{top:w,bottom:b,left:C,right:S}=o.current.getBoundingClientRect();v.nativeEvent.type!=="touchend"&&e.pauseOnHover&&v.clientX>=C&&v.clientX<=S&&v.clientY>=w&&v.clientY<=b?g():m()}};return l&&a&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=m)),f&&(p.onClick=v=>{c&&c(v),s.canCloseOnClick&&u()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:p}}function K9(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:a,progress:u,rtl:c,isIn:f,theme:d}=e;const y=o||a&&u===0,m={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};a&&(m.transform=`scaleX(${u})`);const g=cr("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),x=Mt(s)?s({rtl:c,type:i,defaultClassName:g}):cr(g,s),h={[a&&u>=1?"onTransitionEnd":"onAnimationEnd"]:a&&u<1?null:()=>{f&&r()}};return ee.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},ee.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${i}`}),ee.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:x,style:m,...h}))}let q9=1;const Q3=()=>""+q9++;function G9(e){return e&&(Qr(e.toastId)||_s(e.toastId))?e.toastId:Q3()}function is(e,t){return G3(e,t),t.toastId}function Gl(e,t){return{...t,type:t&&t.type||e,toastId:G9(t)}}function wa(e){return(t,n)=>is(t,Gl(e,n))}function be(e,t){return is(e,Gl("default",t))}be.loading=(e,t)=>is(e,Gl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),be.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Qr(i)?be.loading(i,n):be.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(c,f,d)=>{if(f==null)return void be.dismiss(r);const y={type:c,...l,...n,data:d},m=Qr(f)?{render:f}:f;return r?be.update(r,{...y,...m}):be(m.render,{...y,...m}),d},u=Mt(e)?e():e;return u.then(c=>a("success",s,c)).catch(c=>a("error",o,c)),u},be.success=wa("success"),be.info=wa("info"),be.error=wa("error"),be.warning=wa("warning"),be.warn=be.warning,be.dark=(e,t)=>is(e,Gl("default",{theme:"dark",...t})),be.dismiss=function(e){(function(t){var n;if(K3()){if(t==null||Qr(n=t)||_s(n))gt.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=gt.get(t.containerId))!=null&&r.removeToast(t.id)||gt.forEach(i=>{i.removeToast(t.id)})}}else Rs=Rs.filter(i=>t!=null&&i.options.toastId!==t)})(e)},be.clearWaitingQueue=function(e){e===void 0&&(e={}),gt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},be.isActive=q3,be.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=gt.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q3()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,is(s,o)}},be.done=e=>{be.update(e,{progress:1})},be.onChange=function(e){return qd.add(e),()=>{qd.delete(e)}},be.play=e=>qm(!0,e),be.pause=e=>qm(!1,e);const Q9=typeof window<"u"?k.useLayoutEffect:k.useEffect,xa=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return ee.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},mf={info:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ee.createElement(xa,{...e},ee.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ee.createElement("div",{className:"Toastify__spinner"})}},J9=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=Y9(e),{closeButton:s,children:l,autoClose:a,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:y,position:m,className:g,style:x,bodyClassName:h,bodyStyle:p,progressClassName:v,progressStyle:w,updateId:b,role:C,progress:S,rtl:P,toastId:$,deleteToast:R,isIn:D,isLoading:A,closeOnClick:I,theme:B}=e,W=cr("Toastify__toast",`Toastify__toast-theme--${B}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":I}),Z=Mt(g)?g({rtl:P,position:m,type:c,defaultClassName:W}):cr(W,g),G=function(ie){let{theme:J,type:le,isLoading:ae,icon:ye}=ie,oe=null;const de={theme:J,type:le};return ye===!1||(Mt(ye)?oe=ye({...de,isLoading:ae}):k.isValidElement(ye)?oe=k.cloneElement(ye,de):ae?oe=mf.spinner():(Ae=>Ae in mf)(le)&&(oe=mf[le](de))),oe}(e),M=!!S||!a,U={closeToast:d,type:c,theme:B};let H=null;return s===!1||(H=Mt(s)?s(U):k.isValidElement(s)?k.cloneElement(s,U):function(ie){let{closeToast:J,theme:le,ariaLabel:ae="close"}=ie;return ee.createElement("button",{className:`Toastify__close-button Toastify__close-button--${le}`,type:"button",onClick:ye=>{ye.stopPropagation(),J(ye)},"aria-label":ae},ee.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ee.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),ee.createElement(y,{isIn:D,done:R,position:m,preventExitTransition:n,nodeRef:r,playToast:o},ee.createElement("div",{id:$,onClick:u,"data-in":D,className:Z,...i,style:x,ref:r},ee.createElement("div",{...D&&{role:C},className:Mt(h)?h({type:c}):cr("Toastify__toast-body",h),style:p},G!=null&&ee.createElement("div",{className:cr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},G),ee.createElement("div",null,l)),H,ee.createElement(K9,{...b&&!M?{key:`pb-${b}`}:{},rtl:P,theme:B,delay:a,isRunning:t,isIn:D,closeToast:d,hide:f,type:c,style:w,className:v,controlledProgress:M,progress:S||0})))},Zu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},X9=Wu(Zu("bounce",!0));Wu(Zu("slide",!0));Wu(Zu("zoom"));Wu(Zu("flip"));const eC={position:"top-right",transition:X9,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function tC(e){let t={...eC,...e};const n=e.stacked,[r,i]=k.useState(!0),o=k.useRef(null),{getToastToRender:s,isToastActive:l,count:a}=Z9(t),{className:u,style:c,rtl:f,containerId:d}=t;function y(g){const x=cr("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return Mt(u)?u({position:g,rtl:f,defaultClassName:x}):cr(x,qa(u))}function m(){n&&(i(!0),be.play())}return Q9(()=>{if(n){var g;const x=o.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let v=0,w=0;Array.from(x).reverse().forEach((b,C)=>{const S=b;S.classList.add("Toastify__toast--stacked"),C>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=p?"top":"bot");const P=v*(r?.2:1)+(r?0:h*C);S.style.setProperty("--y",`${p?P:-1*P}px`),S.style.setProperty("--g",`${h}`),S.style.setProperty("--s",""+(1-(r?w:0))),v+=S.offsetHeight,w+=.025})}},[r,a,n]),ee.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(i(!1),be.pause())},onMouseLeave:m},s((g,x)=>{const h=x.length?{...c}:{...c,pointerEvents:"none"};return ee.createElement("div",{className:y(g),style:h,key:`container-${g}`},x.map(p=>{let{content:v,props:w}=p;return ee.createElement(J9,{...w,stacked:n,collapseAll:m,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},v)}))}))}function nC(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Qm(e,t,n){e.loadNamespaces(t,J3(e,n))}function Jm(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,J3(e,r))}function rC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function iC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Gd("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):rC(e,t,n)}const oC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,sC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},aC=e=>sC[e],lC=e=>e.replace(oC,aC);let Qd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:lC};function uC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qd={...Qd,...e}}function cC(){return Qd}let X3;function fC(e){X3=e}function dC(){return X3}const pC={type:"3rdParty",init(e){uC(e.options.react),fC(e)}},e4=k.createContext();class hC{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const mC=(e,t)=>{const n=k.useRef();return k.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function t4(e,t,n,r){return e.getFixedT(t,n,r)}function gC(e,t,n,r){return k.useCallback(t4(e,t,n,r),[e,t,n,r])}function Ys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=k.useContext(e4)||{},o=n||r||dC();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new hC),!o){Gd("You will need to pass in an i18next instance by using initReactI18next");const w=(C,S)=>typeof S=="string"?S:S&&typeof S=="object"&&typeof S.defaultValue=="string"?S.defaultValue:Array.isArray(C)?C[C.length-1]:C,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}o.options.react&&o.options.react.wait!==void 0&&Gd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...cC(),...o.options.react,...t},{useSuspense:l,keyPrefix:a}=s;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(w=>iC(w,o,s)),f=gC(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),d=()=>f,y=()=>t4(o,t.lng||null,s.nsMode==="fallback"?u:u[0],a),[m,g]=k.useState(d);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const h=mC(x),p=k.useRef(!0);k.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=s;p.current=!0,!c&&!l&&(t.lng?Jm(o,t.lng,u,()=>{p.current&&g(y)}):Qm(o,u,()=>{p.current&&g(y)})),c&&h&&h!==x&&p.current&&g(y);function C(){p.current&&g(y)}return w&&o&&o.on(w,C),b&&o&&o.store.on(b,C),()=>{p.current=!1,w&&o&&w.split(" ").forEach(S=>o.off(S,C)),b&&o&&b.split(" ").forEach(S=>o.store.off(S,C))}},[o,x]),k.useEffect(()=>{p.current&&c&&g(d)},[o,a,c]);const v=[m,o,c];if(v.t=m,v.i18n=o,v.ready=c,c||!c&&!l)return v;throw new Promise(w=>{t.lng?Jm(o,t.lng,u,()=>w()):Qm(o,u,()=>w())})}function yC(e){let{i18n:t,defaultNS:n,children:r}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return k.createElement(e4.Provider,{value:i},r)}const vC=Q.img` width: 80px; height: 80px; border-radius: 50%; @@ -672,19 +672,19 @@ attempted value: ${s} font-size: 14px; line-height: 129%; color: #407bff; -`,bC=()=>{const[e,t]=k.useState(""),n=hi(Eo),{t:r}=Ys(),i=Hu();k.useEffect(()=>{if(n&&n.avatarURL){let s=n.avatarURL;s.startsWith("avatars")&&(s=`https://byte-water-back.onrender.com/${s}`),t(s)}},[n]);const o=s=>{const l=s.target.files[0],a=new FileReader;a.onload=c=>{t(c.target.result)},l&&a.readAsDataURL(l);const u=new FormData;u.append("avatarURL",l),i(Zr(u)).unwrap().then(()=>{be.success("Your avatar has been saved successfully")}).catch(c=>be.error(c))};return E.jsxs(wC,{htmlFor:"fileInput",children:[E.jsx(xC,{name:"avatarURL",id:"fileInput",type:"file",accept:"image/*",onChange:o}),e!==""?E.jsxs(Xm,{children:[E.jsx(vC,{src:e,alt:"Uploaded image"}),E.jsx(eg,{children:r("photoUploaded")})]}):E.jsxs(Xm,{children:[E.jsx(x9,{}),E.jsx(b9,{}),E.jsx(eg,{children:"Upload a photo"})]})]})},gf=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:[E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.357 8.215a.675.675 0 0 1 0-.426 7.001 7.001 0 0 1 13.285-.004.665.665 0 0 1 0 .426 7.003 7.003 0 0 1-13.285.003Z"}),E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),yf=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M2.653 5.482A6.985 6.985 0 0 0 1.29 8a7.004 7.004 0 0 0 8.62 4.737M4.152 4.152A7.004 7.004 0 0 1 14.71 7.999a7.015 7.015 0 0 1-2.862 3.849M4.152 4.152 2 2m2.152 2.152 2.433 2.433m5.263 5.263L14 14m-2.152-2.152L9.415 9.415a2 2 0 0 0-2.829-2.829m2.828 2.828L6.587 6.587"})}),SC=_3({name:Ci().max(32,"Name must contain a maximum of 32 characters"),email:Ci().email("Please write valid email").matches(/^(?!.*@[^,]*,)/).required("Email is required"),oldPassword:Ci(),newPassword:Ci().when("oldPassword",(e,t)=>e[0].length>1?t.min(8).required():t.min(0)),confirmPassword:Ci().oneOf([xE("newPassword"),null],"Passwords don't match, please try again.")}),EC=({onClose:e})=>{var g,x,h,p,v;const{t}=Ys(),n=hi(Eo),[r,i]=k.useState(!1),o=Hu(),{register:s,handleSubmit:l,formState:{errors:a}}=o9({mode:"onChange",resolver:l9(SC)});function u({gender:w,email:b,username:C,oldPassword:S,newPassword:P}){const $={gender:w,email:b,username:C};S&&($.oldPassword=S,$.newPassword=P),o(Yr($)).unwrap().then(()=>{be.success("Your changes has been saved successfully"),e()}).catch(R=>be.error(R))}function c(){i(!r)}const f=w=>{w.target===w.currentTarget&&e()},[d,y]=k.useState(n==null?void 0:n.gender),m=w=>{y(w.target.value)};return E.jsx(u9,{onClick:f,children:E.jsxs(c9,{children:[E.jsx(d9,{onClick:e,children:E.jsx(w9,{})}),E.jsx(f9,{children:t("setting")}),E.jsxs(p9,{onSubmit:l(u),$errors:a,children:[E.jsxs(xi,{children:[E.jsx(cf,{htmlFor:"avatarURL",children:t("yourPhoto")}),E.jsx(bC,{id:"avatarURL"})]}),E.jsxs(m9,{children:[E.jsxs(g9,{children:[E.jsxs(Im,{children:[E.jsx(jm,{children:t("yourGenderIdentity")}),E.jsxs(y9,{children:[E.jsxs(Nm,{children:[E.jsx(zm,{children:d==="woman"?E.jsx(Um,{}):E.jsx(Hm,{})}),E.jsx(Vm,{...s("gender"),type:"radio",name:"gender",value:"woman",defaultChecked:d==="woman",onChange:m}),t("woman")]}),E.jsxs(Nm,{children:[E.jsx(zm,{children:d==="man"?E.jsx(Um,{}):E.jsx(Hm,{})}),E.jsx(Vm,{...s("gender"),type:"radio",name:"gender",value:"man",defaultChecked:d==="man",onChange:m}),t("man")]})]})]}),E.jsxs(h9,{children:[E.jsxs("div",{children:[E.jsxs(xi,{children:[E.jsx(cf,{htmlFor:"username",children:t("yourName")}),E.jsx(Bm,{...s("username"),name:"username",type:"text",id:"username",placeholder:"Your name",defaultValue:n==null?void 0:n.username})]}),E.jsx(Lo,{children:(g=a.name)==null?void 0:g.message})]}),E.jsxs("div",{children:[E.jsxs(xi,{children:[E.jsx(cf,{htmlFor:"email",children:t("email")}),E.jsx(Bm,{...s("email"),name:"email",type:"email",id:"email",placeholder:"E-mail",defaultValue:n==null?void 0:n.email})]}),E.jsx(Lo,{children:(x=a.email)==null?void 0:x.message})]})]})]}),E.jsxs(Im,{children:[E.jsx(jm,{children:t("passwords")}),E.jsxs(xi,{children:[E.jsx(ff,{htmlFor:"oldPassword",children:t("outdatedPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("oldPassword"),name:"oldPassword",type:r?"text":"password",id:"oldPassword",placeholder:t("passwords"),minLength:8}),E.jsx(Lo,{children:(h=a.oldPassword)==null?void 0:h.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]}),E.jsxs(xi,{children:[E.jsx(ff,{htmlFor:"newPassword",children:t("newPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("newPassword"),name:"newPassword",type:r?"text":"password",id:"newPassword",placeholder:t("passwords"),minLength:8}),E.jsx(Lo,{children:(p=a.newPassword)==null?void 0:p.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]}),E.jsxs(xi,{children:[E.jsx(ff,{htmlFor:"confirmPassword",children:t("repeatNewPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("confirmPassword"),name:"confirmPassword",type:r?"text":"password",id:"confirmPassword",placeholder:t("passwords")}),E.jsx(Lo,{children:(v=a.confirmPassword)==null?void 0:v.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]})]})]}),E.jsx(v9,{type:"submit",children:t("save")})]})]})})},CC=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:[E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.396 2.627A.75.75 0 0 1 7.136 2h1.73a.75.75 0 0 1 .74.627l.141.854c.042.249.209.457.43.58.05.026.098.055.147.084.216.131.48.172.716.083l.812-.304a.75.75 0 0 1 .913.327l.864 1.498a.75.75 0 0 1-.173.954l-.669.551a.828.828 0 0 0-.287.661 4.38 4.38 0 0 1 0 .17c-.005.252.092.5.287.66l.67.552a.75.75 0 0 1 .173.954l-.866 1.498a.75.75 0 0 1-.912.327l-.812-.304a.83.83 0 0 0-.717.083c-.048.03-.097.057-.146.085a.831.831 0 0 0-.43.58l-.142.853a.75.75 0 0 1-.74.627h-1.73a.75.75 0 0 1-.74-.627l-.141-.854a.83.83 0 0 0-.43-.58 4.353 4.353 0 0 1-.146-.084.83.83 0 0 0-.718-.083l-.81.304a.75.75 0 0 1-.914-.327l-.864-1.498a.75.75 0 0 1 .173-.954l.67-.551a.83.83 0 0 0 .286-.661 4.632 4.632 0 0 1 0-.17.827.827 0 0 0-.287-.66l-.669-.552a.75.75 0 0 1-.173-.954l.864-1.498a.75.75 0 0 1 .914-.327l.81.304a.83.83 0 0 0 .718-.083c.048-.029.097-.058.146-.085a.828.828 0 0 0 .43-.58l.142-.853Z"}),E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),OC=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6V3.5A1.5 1.5 0 0 0 9 2H5a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 5 14h4a1.5 1.5 0 0 0 1.5-1.5V10m2 0 2-2m0 0-2-2m2 2H6"})}),kC=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:7,fill:"none",...e,children:E.jsx("path",{fill:"#407BFF",fillRule:"evenodd",d:"M5.16.146a.5.5 0 0 1 .706 0l5 5a.5.5 0 0 1-.707.707L5.512 1.206.866 5.853a.5.5 0 1 1-.707-.707l5-5Z",clipRule:"evenodd"})});function si(e){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(e)}function PC(e,t){if(si(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n4(e){var t=PC(e,"string");return si(t)=="symbol"?t:String(t)}function Zo(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(n[i]=e[i]);return n}function Qn(e,t){if(e==null)return{};var n=RC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var FC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function AC(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,l=e.inputValue,a=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,y=e.value,m=Qn(e,FC),g=k.useState(l!==void 0?l:n),x=Un(g,2),h=x[0],p=x[1],v=k.useState(a!==void 0?a:i),w=Un(v,2),b=w[0],C=w[1],S=k.useState(y!==void 0?y:s),P=Un(S,2),$=P[0],R=P[1],D=k.useCallback(function(M,U){typeof u=="function"&&u(M,U),R(M)},[u]),A=k.useCallback(function(M,U){var H;typeof c=="function"&&(H=c(M,U)),p(H!==void 0?H:M)},[c]),I=k.useCallback(function(){typeof d=="function"&&d(),C(!0)},[d]),B=k.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),W=l!==void 0?l:h,Z=a!==void 0?a:b,G=y!==void 0?y:$;return ne(ne({},m),{},{inputValue:W,menuIsOpen:Z,onChange:D,onInputChange:A,onMenuClose:B,onMenuOpen:I,value:G})}function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ot(Co,--Tt):0,co--,Ue===10&&(co=1,Ku--),Ue}function Dt(){return Ue=Tt2||As(Ue)>3?"":" "}function nO(e,t){for(;--t&&Dt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return Ks(e,Ga()+(t<6&&On()==32&&Dt()==32))}function tp(e){for(;Dt();)switch(Ue){case e:return Tt;case 34:case 39:e!==34&&e!==39&&tp(Ue);break;case 40:e===41&&tp(e);break;case 92:Dt();break}return Tt}function rO(e,t){for(;Dt()&&e+Ue!==47+10;)if(e+Ue===42+42&&On()===47)break;return"/*"+Ks(t,Tt-1)+"*"+Yu(e===47?e:Dt())}function iO(e){for(;!As(On());)Dt();return Ks(e,Tt)}function oO(e){return c4(Ja("",null,null,null,[""],e=u4(e),0,[0],e))}function Ja(e,t,n,r,i,o,s,l,a){for(var u=0,c=0,f=s,d=0,y=0,m=0,g=1,x=1,h=1,p=0,v="",w=i,b=o,C=r,S=v;x;)switch(m=p,p=Dt()){case 40:if(m!=108&&ot(S,f-1)==58){ep(S+=Se(Qa(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:S+=Qa(p);break;case 9:case 10:case 13:case 32:S+=tO(m);break;case 92:S+=nO(Ga()-1,7);continue;case 47:switch(On()){case 42:case 47:ba(sO(rO(Dt(),Ga()),t,n),a);break;default:S+="/"}break;case 123*g:l[u++]=yn(S)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:h==-1&&(S=Se(S,/\f/g,"")),y>0&&yn(S)-f&&ba(y>32?ig(S+";",r,n,f-1):ig(Se(S," ","")+";",r,n,f-2),a);break;case 59:S+=";";default:if(ba(C=rg(S,t,n,u,c,i,l,v,w=[],b=[],f),o),p===123)if(c===0)Ja(S,t,C,C,w,o,f,l,b);else switch(d===99&&ot(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ja(e,C,C,r&&ba(rg(e,C,C,0,0,i,l,v,i,w=[],f),b),i,b,f,l,r?w:b);break;default:Ja(S,C,C,C,[""],b,0,l,b)}}u=c=y=0,g=h=1,v=S="",f=s;break;case 58:f=1+yn(S),y=m;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&eO()==125)continue}switch(S+=Yu(p),p*g){case 38:h=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(yn(S)-1)*h,h=1;break;case 64:On()===45&&(S+=Qa(Dt())),d=On(),c=f=yn(v=S+=iO(Ga())),p++;break;case 45:m===45&&yn(S)==2&&(g=0)}}return o}function rg(e,t,n,r,i,o,s,l,a,u,c){for(var f=i-1,d=i===0?o:[""],y=Kh(d),m=0,g=0,x=0;m0?d[h]+" "+p:Se(p,/&\f/g,d[h])))&&(a[x++]=v);return qu(e,t,n,i===0?Zh:l,a,u,c)}function sO(e,t,n){return qu(e,t,n,o4,Yu(XC()),Fs(e,2,-2),0)}function ig(e,t,n,r){return qu(e,t,n,Yh,Fs(e,0,r),Fs(e,r+1,-1),r)}function Ki(e,t){for(var n="",r=Kh(e),i=0;i6)switch(ot(e,t+1)){case 109:if(ot(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Jl+(ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ep(e,"stretch")?f4(Se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ot(e,t+1)!==115)break;case 6444:switch(ot(e,yn(e)-3-(~ep(e,"!important")&&10))){case 107:return Se(e,":",":"+xe)+e;case 101:return Se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(ot(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(ot(e,t+11)){case 114:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xe+e+ft+e+e}return e}var mO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Yh:t.return=f4(t.value,t.length);break;case s4:return Ki([Do(t,{value:Se(t.value,"@","@"+xe)})],i);case Zh:if(t.length)return JC(t.props,function(o){switch(QC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ki([Do(t,{props:[Se(o,/:(read-\w+)/,":"+Jl+"$1")]})],i);case"::placeholder":return Ki([Do(t,{props:[Se(o,/:(plac\w+)/,":"+xe+"input-$1")]}),Do(t,{props:[Se(o,/:(plac\w+)/,":"+Jl+"$1")]}),Do(t,{props:[Se(o,/:(plac\w+)/,ft+"input-$1")]})],i)}return""})}},gO=[mO],yO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||gO,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),h=1;h{const[e,t]=k.useState(""),n=kr(hi),{t:r}=Ys(),i=Du();k.useEffect(()=>{if(n&&n.avatarURL){let s=n.avatarURL;s.startsWith("avatars")&&(s=`https://byte-water-back.onrender.com/${s}`),t(s)}},[n]);const o=s=>{const l=s.target.files[0],a=new FileReader;a.onload=c=>{t(c.target.result)},l&&a.readAsDataURL(l);const u=new FormData;u.append("avatarURL",l),i(Yr(u)).unwrap().then(()=>{be.success("Your avatar has been saved successfully")}).catch(c=>be.error(c))};return E.jsxs(wC,{htmlFor:"fileInput",children:[E.jsx(xC,{name:"avatarURL",id:"fileInput",type:"file",accept:"image/*",onChange:o}),e!==""?E.jsxs(Xm,{children:[E.jsx(vC,{src:e,alt:"Uploaded image"}),E.jsx(eg,{children:r("photoUploaded")})]}):E.jsxs(Xm,{children:[E.jsx(B9,{}),E.jsx(U9,{}),E.jsx(eg,{children:"Upload a photo"})]})]})},gf=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:[E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.357 8.215a.675.675 0 0 1 0-.426 7.001 7.001 0 0 1 13.285-.004.665.665 0 0 1 0 .426 7.003 7.003 0 0 1-13.285.003Z"}),E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),yf=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M2.653 5.482A6.985 6.985 0 0 0 1.29 8a7.004 7.004 0 0 0 8.62 4.737M4.152 4.152A7.004 7.004 0 0 1 14.71 7.999a7.015 7.015 0 0 1-2.862 3.849M4.152 4.152 2 2m2.152 2.152 2.433 2.433m5.263 5.263L14 14m-2.152-2.152L9.415 9.415a2 2 0 0 0-2.829-2.829m2.828 2.828L6.587 6.587"})}),SC=L3({name:ki().max(32,"Name must contain a maximum of 32 characters"),email:ki().email("Please write valid email").matches(/^(?!.*@[^,]*,)/).required("Email is required"),oldPassword:ki(),newPassword:ki().when("oldPassword",(e,t)=>e[0].length>1?t.min(8).required():t.min(0)),confirmPassword:ki().oneOf([BE("newPassword"),null],"Passwords don't match, please try again.")}),EC=({onClose:e})=>{var g,x,h,p,v;const{t}=Ys(),n=kr(hi),[r,i]=k.useState(!1),o=Du(),{register:s,handleSubmit:l,formState:{errors:a}}=P9({mode:"onChange",resolver:_9(SC)});function u({gender:w,email:b,username:C,oldPassword:S,newPassword:P}){const $={gender:w,email:b,username:C};S&&($.oldPassword=S,$.newPassword=P),o(Kr($)).unwrap().then(()=>{be.success("Your changes has been saved successfully"),e()}).catch(R=>be.error(R))}function c(){i(!r)}const f=w=>{w.target===w.currentTarget&&e()},[d,y]=k.useState(n==null?void 0:n.gender),m=w=>{y(w.target.value)};return E.jsx(R9,{onClick:f,children:E.jsxs(F9,{children:[E.jsx(M9,{onClick:e,children:E.jsx(z9,{})}),E.jsx(A9,{children:t("setting")}),E.jsxs(L9,{onSubmit:l(u),$errors:a,children:[E.jsxs(Si,{children:[E.jsx(cf,{htmlFor:"avatarURL",children:t("yourPhoto")}),E.jsx(bC,{id:"avatarURL"})]}),E.jsxs(I9,{children:[E.jsxs(j9,{children:[E.jsxs(Vm,{children:[E.jsx(zm,{children:t("yourGenderIdentity")}),E.jsxs(N9,{children:[E.jsxs(Bm,{children:[E.jsx(Hm,{children:d==="woman"?E.jsx(Zm,{}):E.jsx(Ym,{})}),E.jsx(Um,{...s("gender"),type:"radio",name:"gender",value:"woman",defaultChecked:d==="woman",onChange:m}),t("woman")]}),E.jsxs(Bm,{children:[E.jsx(Hm,{children:d==="man"?E.jsx(Zm,{}):E.jsx(Ym,{})}),E.jsx(Um,{...s("gender"),type:"radio",name:"gender",value:"man",defaultChecked:d==="man",onChange:m}),t("man")]})]})]}),E.jsxs(D9,{children:[E.jsxs("div",{children:[E.jsxs(Si,{children:[E.jsx(cf,{htmlFor:"username",children:t("yourName")}),E.jsx(Wm,{...s("username"),name:"username",type:"text",id:"username",placeholder:"Your name",defaultValue:n==null?void 0:n.username})]}),E.jsx(Lo,{children:(g=a.name)==null?void 0:g.message})]}),E.jsxs("div",{children:[E.jsxs(Si,{children:[E.jsx(cf,{htmlFor:"email",children:t("email")}),E.jsx(Wm,{...s("email"),name:"email",type:"email",id:"email",placeholder:"E-mail",defaultValue:n==null?void 0:n.email})]}),E.jsx(Lo,{children:(x=a.email)==null?void 0:x.message})]})]})]}),E.jsxs(Vm,{children:[E.jsx(zm,{children:t("passwords")}),E.jsxs(Si,{children:[E.jsx(ff,{htmlFor:"oldPassword",children:t("outdatedPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("oldPassword"),name:"oldPassword",type:r?"text":"password",id:"oldPassword",placeholder:t("passwords"),minLength:8}),E.jsx(Lo,{children:(h=a.oldPassword)==null?void 0:h.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]}),E.jsxs(Si,{children:[E.jsx(ff,{htmlFor:"newPassword",children:t("newPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("newPassword"),name:"newPassword",type:r?"text":"password",id:"newPassword",placeholder:t("passwords"),minLength:8}),E.jsx(Lo,{children:(p=a.newPassword)==null?void 0:p.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]}),E.jsxs(Si,{children:[E.jsx(ff,{htmlFor:"confirmPassword",children:t("repeatNewPassword")}),E.jsxs(df,{children:[E.jsx(pf,{...s("confirmPassword"),name:"confirmPassword",type:r?"text":"password",id:"confirmPassword",placeholder:t("passwords")}),E.jsx(Lo,{children:(v=a.confirmPassword)==null?void 0:v.message}),E.jsx(hf,{type:"button",onClick:c,children:r?E.jsx(gf,{}):E.jsx(yf,{})})]})]})]})]}),E.jsx(V9,{type:"submit",children:t("save")})]})]})})},CC=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:[E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.396 2.627A.75.75 0 0 1 7.136 2h1.73a.75.75 0 0 1 .74.627l.141.854c.042.249.209.457.43.58.05.026.098.055.147.084.216.131.48.172.716.083l.812-.304a.75.75 0 0 1 .913.327l.864 1.498a.75.75 0 0 1-.173.954l-.669.551a.828.828 0 0 0-.287.661 4.38 4.38 0 0 1 0 .17c-.005.252.092.5.287.66l.67.552a.75.75 0 0 1 .173.954l-.866 1.498a.75.75 0 0 1-.912.327l-.812-.304a.83.83 0 0 0-.717.083c-.048.03-.097.057-.146.085a.831.831 0 0 0-.43.58l-.142.853a.75.75 0 0 1-.74.627h-1.73a.75.75 0 0 1-.74-.627l-.141-.854a.83.83 0 0 0-.43-.58 4.353 4.353 0 0 1-.146-.084.83.83 0 0 0-.718-.083l-.81.304a.75.75 0 0 1-.914-.327l-.864-1.498a.75.75 0 0 1 .173-.954l.67-.551a.83.83 0 0 0 .286-.661 4.632 4.632 0 0 1 0-.17.827.827 0 0 0-.287-.66l-.669-.552a.75.75 0 0 1-.173-.954l.864-1.498a.75.75 0 0 1 .914-.327l.81.304a.83.83 0 0 0 .718-.083c.048-.029.097-.058.146-.085a.828.828 0 0 0 .43-.58l.142-.853Z"}),E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]}),OC=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e,children:E.jsx("path",{stroke:"#407BFF",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6V3.5A1.5 1.5 0 0 0 9 2H5a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 5 14h4a1.5 1.5 0 0 0 1.5-1.5V10m2 0 2-2m0 0-2-2m2 2H6"})}),kC=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:7,fill:"none",...e,children:E.jsx("path",{fill:"#407BFF",fillRule:"evenodd",d:"M5.16.146a.5.5 0 0 1 .706 0l5 5a.5.5 0 0 1-.707.707L5.512 1.206.866 5.853a.5.5 0 1 1-.707-.707l5-5Z",clipRule:"evenodd"})});function ai(e){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ai(e)}function PC(e,t){if(ai(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ai(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n4(e){var t=PC(e,"string");return ai(t)=="symbol"?t:String(t)}function Zo(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(n[i]=e[i]);return n}function Qn(e,t){if(e==null)return{};var n=RC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var FC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function AC(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,l=e.inputValue,a=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,y=e.value,m=Qn(e,FC),g=k.useState(l!==void 0?l:n),x=Un(g,2),h=x[0],p=x[1],v=k.useState(a!==void 0?a:i),w=Un(v,2),b=w[0],C=w[1],S=k.useState(y!==void 0?y:s),P=Un(S,2),$=P[0],R=P[1],D=k.useCallback(function(M,U){typeof u=="function"&&u(M,U),R(M)},[u]),A=k.useCallback(function(M,U){var H;typeof c=="function"&&(H=c(M,U)),p(H!==void 0?H:M)},[c]),I=k.useCallback(function(){typeof d=="function"&&d(),C(!0)},[d]),B=k.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),W=l!==void 0?l:h,Z=a!==void 0?a:b,G=y!==void 0?y:$;return ne(ne({},m),{},{inputValue:W,menuIsOpen:Z,onChange:D,onInputChange:A,onMenuClose:B,onMenuOpen:I,value:G})}function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ot(Co,--Tt):0,po--,Ue===10&&(po=1,Ku--),Ue}function Dt(){return Ue=Tt2||As(Ue)>3?"":" "}function nO(e,t){for(;--t&&Dt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return Ks(e,Ga()+(t<6&&On()==32&&Dt()==32))}function tp(e){for(;Dt();)switch(Ue){case e:return Tt;case 34:case 39:e!==34&&e!==39&&tp(Ue);break;case 40:e===41&&tp(e);break;case 92:Dt();break}return Tt}function rO(e,t){for(;Dt()&&e+Ue!==47+10;)if(e+Ue===42+42&&On()===47)break;return"/*"+Ks(t,Tt-1)+"*"+Yu(e===47?e:Dt())}function iO(e){for(;!As(On());)Dt();return Ks(e,Tt)}function oO(e){return c4(Ja("",null,null,null,[""],e=u4(e),0,[0],e))}function Ja(e,t,n,r,i,o,s,l,a){for(var u=0,c=0,f=s,d=0,y=0,m=0,g=1,x=1,h=1,p=0,v="",w=i,b=o,C=r,S=v;x;)switch(m=p,p=Dt()){case 40:if(m!=108&&ot(S,f-1)==58){ep(S+=Se(Qa(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:S+=Qa(p);break;case 9:case 10:case 13:case 32:S+=tO(m);break;case 92:S+=nO(Ga()-1,7);continue;case 47:switch(On()){case 42:case 47:ba(sO(rO(Dt(),Ga()),t,n),a);break;default:S+="/"}break;case 123*g:l[u++]=yn(S)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:h==-1&&(S=Se(S,/\f/g,"")),y>0&&yn(S)-f&&ba(y>32?ig(S+";",r,n,f-1):ig(Se(S," ","")+";",r,n,f-2),a);break;case 59:S+=";";default:if(ba(C=rg(S,t,n,u,c,i,l,v,w=[],b=[],f),o),p===123)if(c===0)Ja(S,t,C,C,w,o,f,l,b);else switch(d===99&&ot(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ja(e,C,C,r&&ba(rg(e,C,C,0,0,i,l,v,i,w=[],f),b),i,b,f,l,r?w:b);break;default:Ja(S,C,C,C,[""],b,0,l,b)}}u=c=y=0,g=h=1,v=S="",f=s;break;case 58:f=1+yn(S),y=m;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&eO()==125)continue}switch(S+=Yu(p),p*g){case 38:h=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(yn(S)-1)*h,h=1;break;case 64:On()===45&&(S+=Qa(Dt())),d=On(),c=f=yn(v=S+=iO(Ga())),p++;break;case 45:m===45&&yn(S)==2&&(g=0)}}return o}function rg(e,t,n,r,i,o,s,l,a,u,c){for(var f=i-1,d=i===0?o:[""],y=Kh(d),m=0,g=0,x=0;m0?d[h]+" "+p:Se(p,/&\f/g,d[h])))&&(a[x++]=v);return qu(e,t,n,i===0?Zh:l,a,u,c)}function sO(e,t,n){return qu(e,t,n,o4,Yu(XC()),Fs(e,2,-2),0)}function ig(e,t,n,r){return qu(e,t,n,Yh,Fs(e,0,r),Fs(e,r+1,-1),r)}function Gi(e,t){for(var n="",r=Kh(e),i=0;i6)switch(ot(e,t+1)){case 109:if(ot(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Jl+(ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ep(e,"stretch")?f4(Se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ot(e,t+1)!==115)break;case 6444:switch(ot(e,yn(e)-3-(~ep(e,"!important")&&10))){case 107:return Se(e,":",":"+xe)+e;case 101:return Se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(ot(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+ft+"$2box$3")+e}break;case 5936:switch(ot(e,t+11)){case 114:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+ft+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xe+e+ft+e+e}return e}var mO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Yh:t.return=f4(t.value,t.length);break;case s4:return Gi([Do(t,{value:Se(t.value,"@","@"+xe)})],i);case Zh:if(t.length)return JC(t.props,function(o){switch(QC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gi([Do(t,{props:[Se(o,/:(read-\w+)/,":"+Jl+"$1")]})],i);case"::placeholder":return Gi([Do(t,{props:[Se(o,/:(plac\w+)/,":"+xe+"input-$1")]}),Do(t,{props:[Se(o,/:(plac\w+)/,":"+Jl+"$1")]}),Do(t,{props:[Se(o,/:(plac\w+)/,ft+"input-$1")]})],i)}return""})}},gO=[mO],yO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||gO,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),h=1;h=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 TO=/[A-Z]|^ms/g,_O=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v4=function(t){return t.charCodeAt(1)===45},sg=function(t){return t!=null&&typeof t!="boolean"},vf=X2(function(e){return v4(e)?e:e.replace(TO,"-$&").toLowerCase()}),ag=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_O,function(r,i,o){return vn={name:i,styles:o,next:vn},i})}return s3[t]!==1&&!v4(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return vn={name:n.name,styles:n.styles,next:vn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)vn={name:r.name,styles:r.styles,next:vn},r=r.next;var i=n.styles+";";return i}return RO(e,t,n)}case"function":{if(e!==void 0){var o=vn,s=n(e);return vn=o,Ms(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function RO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e}),VO={left:"right",right:"left",bottom:"top",top:"bottom"},zO={start:"end",end:"start"};function BO(e,t,n){return Qr(e,fo(t,n))}function sc(e,t){return typeof e=="function"?e(t):e}function po(e){return e.split("-")[0]}function qs(e){return e.split("-")[1]}function UO(e){return e==="x"?"y":"x"}function t1(e){return e==="y"?"height":"width"}function n1(e){return["top","bottom"].includes(po(e))?"y":"x"}function r1(e){return UO(n1(e))}function HO(e,t,n){n===void 0&&(n=!1);const r=qs(e),i=r1(e),o=t1(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=eu(s)),[s,eu(s)]}function WO(e){const t=eu(e);return[rp(e),t,rp(t)]}function rp(e){return e.replace(/start|end/g,t=>zO[t])}function ZO(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function YO(e,t,n,r){const i=qs(e);let o=ZO(po(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(rp)))),o}function eu(e){return e.replace(/left|right|bottom|top/g,t=>VO[t])}function KO(e){return{top:0,right:0,bottom:0,left:0,...e}}function E4(e){return typeof e!="number"?KO(e):{top:e,right:e,bottom:e,left:e}}function tu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cg(e,t,n){let{reference:r,floating:i}=e;const o=n1(t),s=r1(t),l=t1(s),a=po(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let y;switch(a){case"top":y={x:c,y:r.y-i.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-i.width,y:f};break;default:y={x:r.x,y:r.y}}switch(qs(t)){case"start":y[s]-=d*(n&&u?-1:1);break;case"end":y[s]+=d*(n&&u?-1:1);break}return y}const qO=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=cg(u,r,a),d=r,y={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=sc(e,t)||{};if(u==null)return{};const f=E4(c),d={x:n,y:r},y=r1(i),m=t1(y),g=await s.getDimensions(u),x=y==="y",h=x?"top":"left",p=x?"bottom":"right",v=x?"clientHeight":"clientWidth",w=o.reference[m]+o.reference[y]-d[y]-o.floating[m],b=d[y]-o.reference[y],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=C?C[v]:0;(!S||!await(s.isElement==null?void 0:s.isElement(C)))&&(S=l.floating[v]||o.floating[m]);const P=w/2-b/2,$=S/2-g[m]/2-1,R=fo(f[h],$),D=fo(f[p],$),A=R,I=S-g[m]-D,B=S/2-g[m]/2+P,W=BO(A,B,I),Z=!a.arrow&&qs(i)!=null&&B!==W&&o.reference[m]/2-(BA<=0)){var $,R;const A=((($=o.flip)==null?void 0:$.index)||0)+1,I=b[A];if(I)return{data:{index:A,overflows:P},reset:{placement:I}};let B=(R=P.filter(W=>W.overflows[0]<=0).sort((W,Z)=>W.overflows[1]-Z.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(y){case"bestFit":{var D;const W=(D=P.map(Z=>[Z.placement,Z.overflows.filter(G=>G>0).reduce((G,M)=>G+M,0)]).sort((Z,G)=>Z[1]-G[1])[0])==null?void 0:D[0];W&&(B=W);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};async function XO(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=po(n),l=qs(n),a=n1(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&a?-1:1,f=sc(t,e);let{mainAxis:d,crossAxis:y,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(y=l==="end"?m*-1:m),a?{x:y*c,y:d*u}:{x:d*u,y:y*c}}const mj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await XO(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}};function $r(e){return C4(e)?(e.nodeName||"").toLowerCase():"#document"}function It(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(e){var t;return(t=(C4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C4(e){return e instanceof Node||e instanceof It(e).Node}function qn(e){return e instanceof Element||e instanceof It(e).Element}function Pn(e){return e instanceof HTMLElement||e instanceof It(e).HTMLElement}function fg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof It(e).ShadowRoot}function Gs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ek(e){return["table","td","th"].includes($r(e))}function i1(e){const t=o1(),n=tn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function tk(e){let t=ho(e);for(;Pn(t)&&!ac(t);){if(i1(t))return t;t=ho(t)}return null}function o1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ac(e){return["html","body","#document"].includes($r(e))}function tn(e){return It(e).getComputedStyle(e)}function lc(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ho(e){if($r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Jn(e);return fg(t)?t.host:t}function O4(e){const t=ho(e);return ac(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&Gs(t)?t:O4(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=O4(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=It(i);return o?t.concat(s,s.visualViewport||[],Gs(i)?i:[],s.frameElement&&n?Ls(s.frameElement):[]):t.concat(i,Ls(i,[],n))}function k4(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Pn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Xl(n)!==o||Xl(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function s1(e){return qn(e)?e:e.contextElement}function qi(e){const t=s1(e);if(!Pn(t))return Pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=k4(t);let s=(o?Xl(n.width):n.width)/r,l=(o?Xl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const nk=Pr(0);function P4(e){const t=It(e);return!o1()||!t.visualViewport?nk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==It(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=s1(e);let s=Pr(1);t&&(r?qn(r)&&(s=qi(r)):s=qi(e));const l=rk(o,n,r)?P4(o):Pr(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=It(o),y=r&&qn(r)?It(r):r;let m=d,g=m.frameElement;for(;g&&r&&y!==m;){const x=qi(g),h=g.getBoundingClientRect(),p=tn(g),v=h.left+(g.clientLeft+parseFloat(p.paddingLeft))*x.x,w=h.top+(g.clientTop+parseFloat(p.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,f*=x.y,a+=v,u+=w,m=It(g),g=m.frameElement}}return tu({width:c,height:f,x:a,y:u})}const ik=[":popover-open",":modal"];function $4(e){return ik.some(t=>{try{return e.matches(t)}catch{return!1}})}function ok(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Jn(r),l=t?$4(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},u=Pr(1);const c=Pr(0),f=Pn(r);if((f||!f&&!o)&&(($r(r)!=="body"||Gs(s))&&(a=lc(r)),Pn(r))){const d=ai(r);u=qi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function sk(e){return Array.from(e.getClientRects())}function T4(e){return ai(Jn(e)).left+lc(e).scrollLeft}function ak(e){const t=Jn(e),n=lc(e),r=e.ownerDocument.body,i=Qr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+T4(e);const l=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=Qr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function lk(e,t){const n=It(e),r=Jn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=o1();(!u||u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function uk(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Pn(e)?qi(e):Pr(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:l,x:a,y:u}}function dg(e,t,n){let r;if(t==="viewport")r=lk(e,n);else if(t==="document")r=ak(Jn(e));else if(qn(t))r=uk(t,n);else{const i=P4(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return tu(r)}function _4(e,t){const n=ho(e);return n===t||!qn(n)||ac(n)?!1:tn(n).position==="fixed"||_4(n,t)}function ck(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(l=>qn(l)&&$r(l)!=="body"),i=null;const o=tn(e).position==="fixed";let s=o?ho(e):e;for(;qn(s)&&!ac(s);){const l=tn(s),a=i1(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Gs(s)&&!a&&_4(e,s))?r=r.filter(c=>c!==s):i=l,s=ho(s)}return t.set(e,r),r}function fk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ck(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=dg(t,c,i);return u.top=Qr(f.top,u.top),u.right=fo(f.right,u.right),u.bottom=fo(f.bottom,u.bottom),u.left=Qr(f.left,u.left),u},dg(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function dk(e){const{width:t,height:n}=k4(e);return{width:t,height:n}}function pk(e,t,n){const r=Pn(t),i=Jn(t),o=n==="fixed",s=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Pr(0);if(r||!r&&!o)if(($r(t)!=="body"||Gs(i))&&(l=lc(t)),r){const f=ai(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else i&&(a.x=T4(i));const u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return{x:u,y:c,width:s.width,height:s.height}}function pg(e,t){return!Pn(e)||tn(e).position==="fixed"?null:t?t(e):e.offsetParent}function R4(e,t){const n=It(e);if(!Pn(e)||$4(e))return n;let r=pg(e,t);for(;r&&ek(r)&&tn(r).position==="static";)r=pg(r,t);return r&&($r(r)==="html"||$r(r)==="body"&&tn(r).position==="static"&&!i1(r))?n:r||tk(e)||n}const hk=async function(e){const t=this.getOffsetParent||R4,n=this.getDimensions;return{reference:pk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function mk(e){return tn(e).direction==="rtl"}const gk={convertOffsetParentRelativeRectToViewportRelativeRect:ok,getDocumentElement:Jn,getClippingRect:fk,getOffsetParent:R4,getElementRects:hk,getClientRects:sk,getDimensions:dk,getScale:qi,isElement:qn,isRTL:mk};function yk(e,t){let n=null,r;const i=Jn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const y=Sa(c),m=Sa(i.clientWidth-(u+f)),g=Sa(i.clientHeight-(c+d)),x=Sa(u),p={rootMargin:-y+"px "+-m+"px "+-g+"px "+-x+"px",threshold:Qr(0,fo(1,a))||1};let v=!0;function w(b){const C=b[0].intersectionRatio;if(C!==a){if(!v)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...p,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,p)}n.observe(e)}return s(!0),o}function vk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=s1(e),c=i||o?[...u?Ls(u):[],...Ls(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&l?yk(u,n):null;let d=-1,y=null;s&&(y=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let m,g=a?ai(e):null;a&&x();function x(){const h=ai(e);g&&(h.x!==g.x||h.y!==g.y||h.width!==g.width||h.height!==g.height)&&n(),g=h,m=requestAnimationFrame(x)}return n(),()=>{var h;c.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),f==null||f(),(h=y)==null||h.disconnect(),y=null,a&&cancelAnimationFrame(m)}}const gj=JO,yj=QO,vj=(e,t,n)=>{const r=new Map,i={platform:gk,...n},o={...i.platform,_c:r};return qO(e,t,{...i,platform:o})};var ip=k.useLayoutEffect,wk=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],nu=function(){};function xk(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function bk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Sk(e){return uc(e)?window.innerHeight:e.clientHeight}function A4(e){return uc(e)?window.pageYOffset:e.scrollTop}function ru(e,t){if(uc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Ek(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Ck(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ea(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:nu,i=A4(e),o=t-i,s=10,l=0;function a(){l+=s;var u=Ck(l,i,o,n);ru(e,u),ln.bottom?ru(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=m)return{placement:"bottom",maxHeight:t};if($>=m&&!s)return o&&Ea(a,R,A),{placement:"bottom",maxHeight:t};if(!s&&$>=r||s&&S>=r){o&&Ea(a,R,A);var I=s?S-w:$-w;return{placement:"bottom",maxHeight:I}}if(i==="auto"||s){var B=t,W=s?C:P;return W>=r&&(B=Math.min(W-w-l,t)),{placement:"top",maxHeight:B}}if(i==="bottom")return o&&ru(a,R),{placement:"bottom",maxHeight:t};break;case"top":if(C>=m)return{placement:"top",maxHeight:t};if(P>=m&&!s)return o&&Ea(a,D,A),{placement:"top",maxHeight:t};if(!s&&P>=r||s&&C>=r){var Z=t;return(!s&&P>=r||s&&C>=r)&&(Z=s?C-b:P-b),o&&Ea(a,D,A),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function Lk(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var L4=function(t){return t==="auto"?"bottom":t},Dk=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,l=o.spacing,a=o.colors;return ne((r={label:"menu"},Zo(r,Lk(i),"100%"),Zo(r,"position","absolute"),Zo(r,"width","100%"),Zo(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},D4=k.createContext(null),Ik=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,l=t.menuShouldScrollIntoView,a=t.theme,u=k.useContext(D4)||{},c=u.setPortalPlacement,f=k.useRef(null),d=k.useState(i),y=Un(d,2),m=y[0],g=y[1],x=k.useState(null),h=Un(x,2),p=h[0],v=h[1],w=a.spacing.controlHeight;return ip(function(){var b=f.current;if(b){var C=s==="fixed",S=l&&!C,P=Mk({maxHeight:i,menuEl:b,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:C,controlHeight:w});g(P.maxHeight),v(P.placement),c==null||c(P.placement)}},[i,o,s,l,r,c,w]),n({ref:f,placerProps:ne(ne({},t),{},{placement:p||L4(o),maxHeight:m})})},jk=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return te("div",re({},je(t,"menu",{menu:!0}),{ref:r},i),n)},Nk=jk,Vk=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ne({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},zk=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return te("div",re({},je(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},I4=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ne({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Bk=I4,Uk=I4,Hk=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Qn(t,Fk);return te("div",re({},je(ne(ne({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Wk=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Qn(t,Ak);return te("div",re({},je(ne(ne({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Zk=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Yk=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,l=t.menuPosition,a=k.useRef(null),u=k.useRef(null),c=k.useState(L4(s)),f=Un(c,2),d=f[0],y=f[1],m=k.useMemo(function(){return{setPortalPlacement:y}},[]),g=k.useState(null),x=Un(g,2),h=x[0],p=x[1],v=k.useCallback(function(){if(i){var S=Ok(i),P=l==="fixed"?0:window.pageYOffset,$=S[d]+P;($!==(h==null?void 0:h.offset)||S.left!==(h==null?void 0:h.rect.left)||S.width!==(h==null?void 0:h.rect.width))&&p({offset:$,rect:S})}},[i,l,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);ip(function(){v()},[v]);var w=k.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&a.current&&(u.current=vk(i,a.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);ip(function(){w()},[w]);var b=k.useCallback(function(S){a.current=S,w()},[w]);if(!n&&l!=="fixed"||!h)return null;var C=te("div",re({ref:b},je(ne(ne({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return te(D4.Provider,{value:m},n?oh.createPortal(C,n):C)},Kk=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},qk=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return te("div",re({},je(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Gk=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return ne({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Qk=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return te("div",re({},je(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Jk=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Xk=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"indicatorsContainer",{indicators:!0}),r),n)},yg,eP=["size"],tP=["innerProps","isRtl","size"],nP={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},j4=function(t){var n=t.size,r=Qn(t,eP);return te("svg",re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:nP},r))},a1=function(t){return te(j4,re({size:20},t),te("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},N4=function(t){return te(j4,re({size:20},t),te("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},V4=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return ne({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},rP=V4,iP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||te(N4,null))},oP=V4,sP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||te(a1,null))},aP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return ne({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},lP=function(t){var n=t.innerProps;return te("span",re({},n,je(t,"indicatorSeparator",{"indicator-separator":!0})))},uP=jO(yg||(yg=NO([` + */var tt=typeof Symbol=="function"&&Symbol.for,qh=tt?Symbol.for("react.element"):60103,Gh=tt?Symbol.for("react.portal"):60106,Gu=tt?Symbol.for("react.fragment"):60107,Qu=tt?Symbol.for("react.strict_mode"):60108,Ju=tt?Symbol.for("react.profiler"):60114,Xu=tt?Symbol.for("react.provider"):60109,ec=tt?Symbol.for("react.context"):60110,Qh=tt?Symbol.for("react.async_mode"):60111,tc=tt?Symbol.for("react.concurrent_mode"):60111,nc=tt?Symbol.for("react.forward_ref"):60112,rc=tt?Symbol.for("react.suspense"):60113,vO=tt?Symbol.for("react.suspense_list"):60120,ic=tt?Symbol.for("react.memo"):60115,oc=tt?Symbol.for("react.lazy"):60116,wO=tt?Symbol.for("react.block"):60121,xO=tt?Symbol.for("react.fundamental"):60117,bO=tt?Symbol.for("react.responder"):60118,SO=tt?Symbol.for("react.scope"):60119;function Ht(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Qh:case tc:case Gu:case Ju:case Qu:case rc:return e;default:switch(e=e&&e.$$typeof,e){case ec:case nc:case oc:case ic:case Xu:return e;default:return t}}case Gh:return t}}}function p4(e){return Ht(e)===tc}ke.AsyncMode=Qh;ke.ConcurrentMode=tc;ke.ContextConsumer=ec;ke.ContextProvider=Xu;ke.Element=qh;ke.ForwardRef=nc;ke.Fragment=Gu;ke.Lazy=oc;ke.Memo=ic;ke.Portal=Gh;ke.Profiler=Ju;ke.StrictMode=Qu;ke.Suspense=rc;ke.isAsyncMode=function(e){return p4(e)||Ht(e)===Qh};ke.isConcurrentMode=p4;ke.isContextConsumer=function(e){return Ht(e)===ec};ke.isContextProvider=function(e){return Ht(e)===Xu};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};ke.isForwardRef=function(e){return Ht(e)===nc};ke.isFragment=function(e){return Ht(e)===Gu};ke.isLazy=function(e){return Ht(e)===oc};ke.isMemo=function(e){return Ht(e)===ic};ke.isPortal=function(e){return Ht(e)===Gh};ke.isProfiler=function(e){return Ht(e)===Ju};ke.isStrictMode=function(e){return Ht(e)===Qu};ke.isSuspense=function(e){return Ht(e)===rc};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gu||e===tc||e===Ju||e===Qu||e===rc||e===vO||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===ic||e.$$typeof===Xu||e.$$typeof===ec||e.$$typeof===nc||e.$$typeof===xO||e.$$typeof===bO||e.$$typeof===SO||e.$$typeof===wO)};ke.typeOf=Ht;d4.exports=ke;var EO=d4.exports,h4=EO,CO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},OO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m4={};m4[h4.ForwardRef]=CO;m4[h4.Memo]=OO;var kO=!0;function PO(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var g4=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||kO===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},y4=function(t,n,r){g4(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function $O(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 TO=/[A-Z]|^ms/g,_O=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v4=function(t){return t.charCodeAt(1)===45},sg=function(t){return t!=null&&typeof t!="boolean"},vf=i3(function(e){return v4(e)?e:e.replace(TO,"-$&").toLowerCase()}),ag=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_O,function(r,i,o){return vn={name:i,styles:o,next:vn},i})}return f3[t]!==1&&!v4(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return vn={name:n.name,styles:n.styles,next:vn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)vn={name:r.name,styles:r.styles,next:vn},r=r.next;var i=n.styles+";";return i}return RO(e,t,n)}case"function":{if(e!==void 0){var o=vn,s=n(e);return vn=o,Ms(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function RO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e}),VO={left:"right",right:"left",bottom:"top",top:"bottom"},zO={start:"end",end:"start"};function BO(e,t,n){return Jr(e,ho(t,n))}function sc(e,t){return typeof e=="function"?e(t):e}function mo(e){return e.split("-")[0]}function qs(e){return e.split("-")[1]}function UO(e){return e==="x"?"y":"x"}function t1(e){return e==="y"?"height":"width"}function n1(e){return["top","bottom"].includes(mo(e))?"y":"x"}function r1(e){return UO(n1(e))}function HO(e,t,n){n===void 0&&(n=!1);const r=qs(e),i=r1(e),o=t1(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=eu(s)),[s,eu(s)]}function WO(e){const t=eu(e);return[rp(e),t,rp(t)]}function rp(e){return e.replace(/start|end/g,t=>zO[t])}function ZO(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function YO(e,t,n,r){const i=qs(e);let o=ZO(mo(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(rp)))),o}function eu(e){return e.replace(/left|right|bottom|top/g,t=>VO[t])}function KO(e){return{top:0,right:0,bottom:0,left:0,...e}}function E4(e){return typeof e!="number"?KO(e):{top:e,right:e,bottom:e,left:e}}function tu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cg(e,t,n){let{reference:r,floating:i}=e;const o=n1(t),s=r1(t),l=t1(s),a=mo(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let y;switch(a){case"top":y={x:c,y:r.y-i.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-i.width,y:f};break;default:y={x:r.x,y:r.y}}switch(qs(t)){case"start":y[s]-=d*(n&&u?-1:1);break;case"end":y[s]+=d*(n&&u?-1:1);break}return y}const qO=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=cg(u,r,a),d=r,y={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=sc(e,t)||{};if(u==null)return{};const f=E4(c),d={x:n,y:r},y=r1(i),m=t1(y),g=await s.getDimensions(u),x=y==="y",h=x?"top":"left",p=x?"bottom":"right",v=x?"clientHeight":"clientWidth",w=o.reference[m]+o.reference[y]-d[y]-o.floating[m],b=d[y]-o.reference[y],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=C?C[v]:0;(!S||!await(s.isElement==null?void 0:s.isElement(C)))&&(S=l.floating[v]||o.floating[m]);const P=w/2-b/2,$=S/2-g[m]/2-1,R=ho(f[h],$),D=ho(f[p],$),A=R,I=S-g[m]-D,B=S/2-g[m]/2+P,W=BO(A,B,I),Z=!a.arrow&&qs(i)!=null&&B!==W&&o.reference[m]/2-(BA<=0)){var $,R;const A=((($=o.flip)==null?void 0:$.index)||0)+1,I=b[A];if(I)return{data:{index:A,overflows:P},reset:{placement:I}};let B=(R=P.filter(W=>W.overflows[0]<=0).sort((W,Z)=>W.overflows[1]-Z.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(y){case"bestFit":{var D;const W=(D=P.map(Z=>[Z.placement,Z.overflows.filter(G=>G>0).reduce((G,M)=>G+M,0)]).sort((Z,G)=>Z[1]-G[1])[0])==null?void 0:D[0];W&&(B=W);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};async function XO(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=mo(n),l=qs(n),a=n1(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&a?-1:1,f=sc(t,e);let{mainAxis:d,crossAxis:y,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof m=="number"&&(y=l==="end"?m*-1:m),a?{x:y*c,y:d*u}:{x:d*u,y:y*c}}const mj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await XO(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}};function Tr(e){return C4(e)?(e.nodeName||"").toLowerCase():"#document"}function It(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(e){var t;return(t=(C4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C4(e){return e instanceof Node||e instanceof It(e).Node}function qn(e){return e instanceof Element||e instanceof It(e).Element}function Pn(e){return e instanceof HTMLElement||e instanceof It(e).HTMLElement}function fg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof It(e).ShadowRoot}function Gs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ek(e){return["table","td","th"].includes(Tr(e))}function i1(e){const t=o1(),n=tn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function tk(e){let t=go(e);for(;Pn(t)&&!ac(t);){if(i1(t))return t;t=go(t)}return null}function o1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ac(e){return["html","body","#document"].includes(Tr(e))}function tn(e){return It(e).getComputedStyle(e)}function lc(e){return qn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function go(e){if(Tr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Jn(e);return fg(t)?t.host:t}function O4(e){const t=go(e);return ac(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&Gs(t)?t:O4(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=O4(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=It(i);return o?t.concat(s,s.visualViewport||[],Gs(i)?i:[],s.frameElement&&n?Ls(s.frameElement):[]):t.concat(i,Ls(i,[],n))}function k4(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Pn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Xl(n)!==o||Xl(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function s1(e){return qn(e)?e:e.contextElement}function Qi(e){const t=s1(e);if(!Pn(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=k4(t);let s=(o?Xl(n.width):n.width)/r,l=(o?Xl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const nk=$r(0);function P4(e){const t=It(e);return!o1()||!t.visualViewport?nk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==It(e)?!1:t}function li(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=s1(e);let s=$r(1);t&&(r?qn(r)&&(s=Qi(r)):s=Qi(e));const l=rk(o,n,r)?P4(o):$r(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=It(o),y=r&&qn(r)?It(r):r;let m=d,g=m.frameElement;for(;g&&r&&y!==m;){const x=Qi(g),h=g.getBoundingClientRect(),p=tn(g),v=h.left+(g.clientLeft+parseFloat(p.paddingLeft))*x.x,w=h.top+(g.clientTop+parseFloat(p.paddingTop))*x.y;a*=x.x,u*=x.y,c*=x.x,f*=x.y,a+=v,u+=w,m=It(g),g=m.frameElement}}return tu({width:c,height:f,x:a,y:u})}const ik=[":popover-open",":modal"];function $4(e){return ik.some(t=>{try{return e.matches(t)}catch{return!1}})}function ok(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Jn(r),l=t?$4(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},u=$r(1);const c=$r(0),f=Pn(r);if((f||!f&&!o)&&((Tr(r)!=="body"||Gs(s))&&(a=lc(r)),Pn(r))){const d=li(r);u=Qi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function sk(e){return Array.from(e.getClientRects())}function T4(e){return li(Jn(e)).left+lc(e).scrollLeft}function ak(e){const t=Jn(e),n=lc(e),r=e.ownerDocument.body,i=Jr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Jr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+T4(e);const l=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=Jr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function lk(e,t){const n=It(e),r=Jn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=o1();(!u||u&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function uk(e,t){const n=li(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Pn(e)?Qi(e):$r(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,u=r*o.y;return{width:s,height:l,x:a,y:u}}function dg(e,t,n){let r;if(t==="viewport")r=lk(e,n);else if(t==="document")r=ak(Jn(e));else if(qn(t))r=uk(t,n);else{const i=P4(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return tu(r)}function _4(e,t){const n=go(e);return n===t||!qn(n)||ac(n)?!1:tn(n).position==="fixed"||_4(n,t)}function ck(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(l=>qn(l)&&Tr(l)!=="body"),i=null;const o=tn(e).position==="fixed";let s=o?go(e):e;for(;qn(s)&&!ac(s);){const l=tn(s),a=i1(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Gs(s)&&!a&&_4(e,s))?r=r.filter(c=>c!==s):i=l,s=go(s)}return t.set(e,r),r}function fk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ck(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const f=dg(t,c,i);return u.top=Jr(f.top,u.top),u.right=ho(f.right,u.right),u.bottom=ho(f.bottom,u.bottom),u.left=Jr(f.left,u.left),u},dg(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function dk(e){const{width:t,height:n}=k4(e);return{width:t,height:n}}function pk(e,t,n){const r=Pn(t),i=Jn(t),o=n==="fixed",s=li(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=$r(0);if(r||!r&&!o)if((Tr(t)!=="body"||Gs(i))&&(l=lc(t)),r){const f=li(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else i&&(a.x=T4(i));const u=s.left+l.scrollLeft-a.x,c=s.top+l.scrollTop-a.y;return{x:u,y:c,width:s.width,height:s.height}}function pg(e,t){return!Pn(e)||tn(e).position==="fixed"?null:t?t(e):e.offsetParent}function R4(e,t){const n=It(e);if(!Pn(e)||$4(e))return n;let r=pg(e,t);for(;r&&ek(r)&&tn(r).position==="static";)r=pg(r,t);return r&&(Tr(r)==="html"||Tr(r)==="body"&&tn(r).position==="static"&&!i1(r))?n:r||tk(e)||n}const hk=async function(e){const t=this.getOffsetParent||R4,n=this.getDimensions;return{reference:pk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function mk(e){return tn(e).direction==="rtl"}const gk={convertOffsetParentRelativeRectToViewportRelativeRect:ok,getDocumentElement:Jn,getClippingRect:fk,getOffsetParent:R4,getElementRects:hk,getClientRects:sk,getDimensions:dk,getScale:Qi,isElement:qn,isRTL:mk};function yk(e,t){let n=null,r;const i=Jn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const y=Sa(c),m=Sa(i.clientWidth-(u+f)),g=Sa(i.clientHeight-(c+d)),x=Sa(u),p={rootMargin:-y+"px "+-m+"px "+-g+"px "+-x+"px",threshold:Jr(0,ho(1,a))||1};let v=!0;function w(b){const C=b[0].intersectionRatio;if(C!==a){if(!v)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(w,{...p,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,p)}n.observe(e)}return s(!0),o}function vk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=s1(e),c=i||o?[...u?Ls(u):[],...Ls(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&l?yk(u,n):null;let d=-1,y=null;s&&(y=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=y)==null||v.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let m,g=a?li(e):null;a&&x();function x(){const h=li(e);g&&(h.x!==g.x||h.y!==g.y||h.width!==g.width||h.height!==g.height)&&n(),g=h,m=requestAnimationFrame(x)}return n(),()=>{var h;c.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),f==null||f(),(h=y)==null||h.disconnect(),y=null,a&&cancelAnimationFrame(m)}}const gj=JO,yj=QO,vj=(e,t,n)=>{const r=new Map,i={platform:gk,...n},o={...i.platform,_c:r};return qO(e,t,{...i,platform:o})};var ip=k.useLayoutEffect,wk=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],nu=function(){};function xk(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function bk(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Sk(e){return uc(e)?window.innerHeight:e.clientHeight}function A4(e){return uc(e)?window.pageYOffset:e.scrollTop}function ru(e,t){if(uc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Ek(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Ck(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ea(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:nu,i=A4(e),o=t-i,s=10,l=0;function a(){l+=s;var u=Ck(l,i,o,n);ru(e,u),ln.bottom?ru(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=m)return{placement:"bottom",maxHeight:t};if($>=m&&!s)return o&&Ea(a,R,A),{placement:"bottom",maxHeight:t};if(!s&&$>=r||s&&S>=r){o&&Ea(a,R,A);var I=s?S-w:$-w;return{placement:"bottom",maxHeight:I}}if(i==="auto"||s){var B=t,W=s?C:P;return W>=r&&(B=Math.min(W-w-l,t)),{placement:"top",maxHeight:B}}if(i==="bottom")return o&&ru(a,R),{placement:"bottom",maxHeight:t};break;case"top":if(C>=m)return{placement:"top",maxHeight:t};if(P>=m&&!s)return o&&Ea(a,D,A),{placement:"top",maxHeight:t};if(!s&&P>=r||s&&C>=r){var Z=t;return(!s&&P>=r||s&&C>=r)&&(Z=s?C-b:P-b),o&&Ea(a,D,A),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function Lk(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var L4=function(t){return t==="auto"?"bottom":t},Dk=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,l=o.spacing,a=o.colors;return ne((r={label:"menu"},Zo(r,Lk(i),"100%"),Zo(r,"position","absolute"),Zo(r,"width","100%"),Zo(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},D4=k.createContext(null),Ik=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,l=t.menuShouldScrollIntoView,a=t.theme,u=k.useContext(D4)||{},c=u.setPortalPlacement,f=k.useRef(null),d=k.useState(i),y=Un(d,2),m=y[0],g=y[1],x=k.useState(null),h=Un(x,2),p=h[0],v=h[1],w=a.spacing.controlHeight;return ip(function(){var b=f.current;if(b){var C=s==="fixed",S=l&&!C,P=Mk({maxHeight:i,menuEl:b,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:C,controlHeight:w});g(P.maxHeight),v(P.placement),c==null||c(P.placement)}},[i,o,s,l,r,c,w]),n({ref:f,placerProps:ne(ne({},t),{},{placement:p||L4(o),maxHeight:m})})},jk=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return te("div",re({},je(t,"menu",{menu:!0}),{ref:r},i),n)},Nk=jk,Vk=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return ne({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},zk=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return te("div",re({},je(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},I4=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return ne({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Bk=I4,Uk=I4,Hk=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=Qn(t,Fk);return te("div",re({},je(ne(ne({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Wk=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=Qn(t,Ak);return te("div",re({},je(ne(ne({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Zk=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Yk=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,l=t.menuPosition,a=k.useRef(null),u=k.useRef(null),c=k.useState(L4(s)),f=Un(c,2),d=f[0],y=f[1],m=k.useMemo(function(){return{setPortalPlacement:y}},[]),g=k.useState(null),x=Un(g,2),h=x[0],p=x[1],v=k.useCallback(function(){if(i){var S=Ok(i),P=l==="fixed"?0:window.pageYOffset,$=S[d]+P;($!==(h==null?void 0:h.offset)||S.left!==(h==null?void 0:h.rect.left)||S.width!==(h==null?void 0:h.rect.width))&&p({offset:$,rect:S})}},[i,l,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);ip(function(){v()},[v]);var w=k.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&a.current&&(u.current=vk(i,a.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);ip(function(){w()},[w]);var b=k.useCallback(function(S){a.current=S,w()},[w]);if(!n&&l!=="fixed"||!h)return null;var C=te("div",re({ref:b},je(ne(ne({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return te(D4.Provider,{value:m},n?oh.createPortal(C,n):C)},Kk=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},qk=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return te("div",re({},je(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Gk=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return ne({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Qk=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return te("div",re({},je(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Jk=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Xk=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"indicatorsContainer",{indicators:!0}),r),n)},yg,eP=["size"],tP=["innerProps","isRtl","size"],nP={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},j4=function(t){var n=t.size,r=Qn(t,eP);return te("svg",re({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:nP},r))},a1=function(t){return te(j4,re({size:20},t),te("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},N4=function(t){return te(j4,re({size:20},t),te("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},V4=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return ne({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},rP=V4,iP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||te(N4,null))},oP=V4,sP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||te(a1,null))},aP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return ne({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},lP=function(t){var n=t.innerProps;return te("span",re({},n,je(t,"indicatorSeparator",{"indicator-separator":!0})))},uP=jO(yg||(yg=NO([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),cP=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,l=o.spacing.baseUnit;return ne({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:l*2})},wf=function(t){var n=t.delay,r=t.offset;return te("span",{css:e1({animation:"".concat(uP," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fP=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=Qn(t,tP);return te("div",re({},je(ne(ne({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),te(wf,{delay:0,offset:r}),te(wf,{delay:160,offset:!0}),te(wf,{delay:320,offset:!r}))},dP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,l=o.borderRadius,a=o.spacing;return ne({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},pP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,l=t.menuIsOpen;return te("div",re({ref:o},je(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),s,{"aria-disabled":r||void 0}),n)},hP=pP,mP=["data"],gP=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},yP=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,l=t.headingProps,a=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return te("div",re({},je(t,"group",{group:!0}),a),te(s,re({},l,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),te("div",null,n))},vP=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ne({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},wP=function(t){var n=F4(t);n.data;var r=Qn(n,mP);return te("div",re({},je(t,"groupHeading",{"group-heading":!0}),r))},xP=yP,bP=["innerRef","isDisabled","isHidden","inputClassName"],SP=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,l=o.colors;return ne(ne({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},EP),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:l.neutral80})},z4={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},EP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ne({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},z4)},CP=function(t){return ne({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},z4)},OP=function(t){var n=t.cx,r=t.value,i=F4(t),o=i.innerRef,s=i.isDisabled,l=i.isHidden,a=i.inputClassName,u=Qn(i,bP);return te("div",re({},je(t,"input",{"input-container":!0}),{"data-value":r||""}),te("input",re({className:n({input:!0},a),ref:o,style:CP(l),disabled:s},u)))},kP=OP,PP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return ne({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},$P=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return ne({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},TP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,l=t.isFocused;return ne({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},B4=function(t){var n=t.children,r=t.innerProps;return te("div",r,n)},_P=B4,RP=B4;function FP(e){var t=e.children,n=e.innerProps;return te("div",re({role:"button"},n),t||te(a1,{size:14}))}var AP=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,l=t.removeProps,a=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return te(u,{data:i,innerProps:ne(ne({},je(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},te(c,{data:i,innerProps:ne({},je(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),te(f,{data:i,innerProps:ne(ne({},je(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:a}))},MP=AP,LP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,l=s.spacing,a=s.colors;return ne({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?a.primary:a.primary50}})},DP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,l=t.innerProps;return te("div",re({},je(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},l),n)},IP=DP,jP=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ne({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},NP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"placeholder",{placeholder:!0}),r),n)},VP=NP,zP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return ne({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},BP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return te("div",re({},je(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},UP=BP,HP={ClearIndicator:sP,Control:hP,DropdownIndicator:iP,DownChevron:N4,CrossIcon:a1,Group:xP,GroupHeading:wP,IndicatorsContainer:Xk,IndicatorSeparator:lP,Input:kP,LoadingIndicator:fP,Menu:Nk,MenuList:zk,MenuPortal:Yk,LoadingMessage:Wk,NoOptionsMessage:Hk,MultiValue:MP,MultiValueContainer:_P,MultiValueLabel:RP,MultiValueRemove:FP,Option:IP,Placeholder:VP,SelectContainer:qk,SingleValue:UP,ValueContainer:Qk},WP=function(t){return ne(ne({},HP),t.components)},vg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ZP(e,t){return!!(e===t||vg(e)&&vg(t))}function YP(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,l=t.selectValue,a=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(g,x){return g&&g.length?"".concat(g.indexOf(x)+1," of ").concat(g.length):""};if(n==="value"&&l)return"value ".concat(s," focused, ").concat(f(l,r),".");if(n==="menu"&&c){var d=a?" disabled":"",y="".concat(u?" selected":"").concat(d);return"".concat(s).concat(y,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},JP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,l=t.selectValue,a=t.selectProps,u=t.id,c=t.isAppleDevice,f=a.ariaLiveMessages,d=a.getOptionLabel,y=a.inputValue,m=a.isMulti,g=a.isOptionDisabled,x=a.isSearchable,h=a.menuIsOpen,p=a.options,v=a.screenReaderStatus,w=a.tabSelectsValue,b=a.isLoading,C=a["aria-label"],S=a["aria-live"],P=k.useMemo(function(){return ne(ne({},QP),f||{})},[f]),$=k.useMemo(function(){var W="";if(n&&P.onChange){var Z=n.option,G=n.options,M=n.removedValue,U=n.removedValues,H=n.value,ie=function(Ae){return Array.isArray(Ae)?null:Ae},J=M||Z||ie(H),le=J?d(J):"",ae=G||U||void 0,ye=ae?ae.map(d):[],oe=ne({isDisabled:J&&g(J,l),label:le,labels:ye},n);W=P.onChange(oe)}return W},[n,P,g,l,d]),R=k.useMemo(function(){var W="",Z=r||i,G=!!(r&&l&&l.includes(r));if(Z&&P.onFocus){var M={focused:Z,label:d(Z),isDisabled:g(Z,l),isSelected:G,options:o,context:Z===r?"menu":"value",selectValue:l,isAppleDevice:c};W=P.onFocus(M)}return W},[r,i,d,g,P,o,l,c]),D=k.useMemo(function(){var W="";if(h&&p.length&&!b&&P.onFilter){var Z=v({count:o.length});W=P.onFilter({inputValue:y,resultsMessage:Z})}return W},[o,y,h,P,p,v,b]),A=(n==null?void 0:n.action)==="initial-input-focus",I=k.useMemo(function(){var W="";if(P.guidance){var Z=i?"value":h?"menu":"input";W=P.guidance({"aria-label":C,context:Z,isDisabled:r&&g(r,l),isMulti:m,isSearchable:x,tabSelectsValue:w,isInitialFocus:A})}return W},[C,r,i,m,g,x,h,P,l,w,A]),B=te(k.Fragment,null,te("span",{id:"aria-selection"},$),te("span",{id:"aria-focused"},R),te("span",{id:"aria-results"},D),te("span",{id:"aria-guidance"},I));return te(k.Fragment,null,te(wg,{id:u},A&&B),te(wg,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!A&&B))},XP=JP,op=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],e$=new RegExp("["+op.map(function(e){return e.letters}).join("")+"]","g"),U4={};for(var xf=0;xf-1}},i$=["innerRef"];function o$(e){var t=e.innerRef,n=Qn(e,i$),r=Rk(n,"onExited","in","enter","exit","appear");return te("input",re({ref:t},r,{css:e1({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var s$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function a$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=k.useRef(!1),l=k.useRef(!1),a=k.useRef(0),u=k.useRef(null),c=k.useCallback(function(x,h){if(u.current!==null){var p=u.current,v=p.scrollTop,w=p.scrollHeight,b=p.clientHeight,C=u.current,S=h>0,P=w-b-v,$=!1;P>h&&s.current&&(r&&r(x),s.current=!1),S&&l.current&&(o&&o(x),l.current=!1),S&&h>P?(n&&!s.current&&n(x),C.scrollTop=w,$=!0,s.current=!0):!S&&-h>v&&(i&&!l.current&&i(x),C.scrollTop=0,$=!0,l.current=!0),$&&s$(x)}},[n,r,i,o]),f=k.useCallback(function(x){c(x,x.deltaY)},[c]),d=k.useCallback(function(x){a.current=x.changedTouches[0].clientY},[]),y=k.useCallback(function(x){var h=a.current-x.changedTouches[0].clientY;c(x,h)},[c]),m=k.useCallback(function(x){if(x){var h=$k?{passive:!1}:!1;x.addEventListener("wheel",f,h),x.addEventListener("touchstart",d,h),x.addEventListener("touchmove",y,h)}},[y,d,f]),g=k.useCallback(function(x){x&&(x.removeEventListener("wheel",f,!1),x.removeEventListener("touchstart",d,!1),x.removeEventListener("touchmove",y,!1))},[y,d,f]);return k.useEffect(function(){if(t){var x=u.current;return m(x),function(){g(x)}}},[t,m,g]),function(x){u.current=x}}var bg=["boxSizing","height","overflow","paddingRight","position"],Sg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Eg(e){e.preventDefault()}function Cg(e){e.stopPropagation()}function Og(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kg(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pg=!!(typeof window<"u"&&window.document&&window.document.createElement),Io=0,bi={capture:!1,passive:!1};function l$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=k.useRef({}),o=k.useRef(null),s=k.useCallback(function(a){if(Pg){var u=document.body,c=u&&u.style;if(r&&bg.forEach(function(m){var g=c&&c[m];i.current[m]=g}),r&&Io<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,y=window.innerWidth-d+f||0;Object.keys(Sg).forEach(function(m){var g=Sg[m];c&&(c[m]=g)}),c&&(c.paddingRight="".concat(y,"px"))}u&&kg()&&(u.addEventListener("touchmove",Eg,bi),a&&(a.addEventListener("touchstart",Og,bi),a.addEventListener("touchmove",Cg,bi))),Io+=1}},[r]),l=k.useCallback(function(a){if(Pg){var u=document.body,c=u&&u.style;Io=Math.max(Io-1,0),r&&Io<1&&bg.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&kg()&&(u.removeEventListener("touchmove",Eg,bi),a&&(a.removeEventListener("touchstart",Og,bi),a.removeEventListener("touchmove",Cg,bi)))}},[r]);return k.useEffect(function(){if(t){var a=o.current;return s(a),function(){l(a)}}},[t,s,l]),function(a){o.current=a}}var u$=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},c$={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function f$(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,l=e.onTopArrive,a=e.onTopLeave,u=a$({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:l,onTopLeave:a}),c=l$({isEnabled:n}),f=function(y){u(y),c(y)};return te(k.Fragment,null,n&&te("div",{onClick:u$,css:c$}),t(f))}var d$={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},p$=function(t){var n=t.name,r=t.onFocus;return te("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:d$,value:"",onChange:function(){}})},h$=p$;function l1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function m$(){return l1(/^iPhone/i)}function W4(){return l1(/^Mac/i)}function g$(){return l1(/^iPad/i)||W4()&&navigator.maxTouchPoints>1}function y$(){return m$()||g$()}function v$(){return W4()||y$()}var w$=function(t){return t.label},x$=function(t){return t.label},b$=function(t){return t.value},S$=function(t){return!!t.isDisabled},E$={clearIndicator:oP,container:Kk,control:dP,dropdownIndicator:rP,group:gP,groupHeading:vP,indicatorsContainer:Jk,indicatorSeparator:aP,input:SP,loadingIndicator:cP,loadingMessage:Uk,menu:Dk,menuList:Vk,menuPortal:Zk,multiValue:PP,multiValueLabel:$P,multiValueRemove:TP,noOptionsMessage:Bk,option:LP,placeholder:jP,singleValue:zP,valueContainer:Gk},C$={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},O$=4,Z4=4,k$=38,P$=Z4*2,$$={baseUnit:Z4,controlHeight:k$,menuGutter:P$},Ef={borderRadius:O$,colors:C$,spacing:$$},T$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gg(),captureMenuScroll:!gg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:r$(),formatGroupLabel:w$,getOptionLabel:x$,getOptionValue:b$,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:S$,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!kk(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function $g(e,t,n,r){var i=q4(e,t,n),o=G4(e,t,n),s=K4(e,t),l=iu(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:l,index:r}}function Xa(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,l){return $g(e,s,t,l)}).filter(function(s){return _g(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=$g(e,n,t,r);return _g(e,o)?o:void 0}).filter(Tk)}function Y4(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Wh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Tg(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Wh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function _$(e,t){return Y4(Xa(e,t))}function _g(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,l=t.value;return(!J4(e)||!o)&&Q4(e,{label:s,value:l,data:i},r)}function R$(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Cf=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},K4=function(t,n){return t.getOptionLabel(n)},iu=function(t,n){return t.getOptionValue(n)};function q4(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function G4(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=iu(e,t);return n.some(function(i){return iu(e,i)===r})}function Q4(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var J4=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},A$=1,X4=function(e){DC(n,e);var t=NC(n);function n(r){var i;if(MC(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=v$(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(a,u),f(a,u)},i.setValue=function(a,u,c){var f=i.props,d=f.closeMenuOnSelect,y=f.isMulti,m=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:m}),d&&(i.setState({inputIsHiddenAfterUpdate:!y}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:u,option:c})},i.selectOption=function(a){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,y=i.state.selectValue,m=f&&i.isOptionSelected(a,y),g=i.isOptionDisabled(a,y);if(m){var x=i.getOptionValue(a);i.setValue(y.filter(function(h){return i.getOptionValue(h)!==x}),"deselect-option",a)}else if(!g)f?i.setValue([].concat(Wh(y),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:d});return}c&&i.blurInput()},i.removeValue=function(a){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(a),d=c.filter(function(m){return i.getOptionValue(m)!==f}),y=Oa(u,d,d[0]||null);i.onChange(y,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(Oa(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Oa(a,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return Cf(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Tg(Xa(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,u=new Array(a),c=0;cy||d>y}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var u=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var u=i.getFocusableOptions(),c=u.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return J4(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,y=u.inputValue,m=u.isClearable,g=u.isDisabled,x=u.menuIsOpen,h=u.onKeyDown,p=u.tabSelectsValue,v=u.openMenuOnFocus,w=i.state,b=w.focusedOption,C=w.focusedValue,S=w.selectValue;if(!g&&!(typeof h=="function"&&(h(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||y)return;i.focusValue("previous");break;case"ArrowRight":if(!c||y)return;i.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(C)i.removeValue(C);else{if(!f)return;c?i.popValue():m&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!x||!p||!b||v&&i.isOptionSelected(b,S))return;i.selectOption(b);break;case"Enter":if(a.keyCode===229)break;if(x){if(!b||i.isComposing)return;i.selectOption(b);break}return;case"Escape":x?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:y}),i.onMenuClose()):m&&d&&i.clearValue();break;case" ":if(y)return;if(!x){i.openMenu("first");break}if(!b)return;i.selectOption(b);break;case"ArrowUp":x?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":x?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!x)return;i.focusOption("pageup");break;case"PageDown":if(!x)return;i.focusOption("pagedown");break;case"Home":if(!x)return;i.focusOption("first");break;case"End":if(!x)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++A$),i.state.selectValue=hg(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),l=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[l],i.state.focusedOptionId=Cf(o,s[l])}return i}return LC(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&mg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,l=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&i.isDisabled||a&&l&&!i.menuIsOpen)&&this.focusInput(),a&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(mg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,l=s.selectValue,a=s.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(l);l||(a=-1);var u=s.length-1,c=-1;if(s.length){switch(i){case"previous":a===0?c=0:a===-1?c=u:c=a-1;break;case"next":a>-1&&a0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var a=0,u=l.indexOf(s);s||(u=-1),i==="up"?a=u>0?u-1:l.length-1:i==="down"?a=(u+1)%l.length:i==="pageup"?(a=u-o,a<0&&(a=0)):i==="pagedown"?(a=u+o,a>l.length-1&&(a=l.length-1)):i==="last"&&(a=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ef):ne(ne({},Ef),this.props.theme):Ef}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,l=this.getClassNames,a=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,y=f.isRtl,m=f.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:l,getValue:a,hasValue:g,isMulti:d,isRtl:y,options:m,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return q4(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return G4(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Q4(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,l=i.inputId,a=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,y=this.getComponents(),m=y.Input,g=this.state,x=g.inputIsHidden,h=g.ariaSelection,p=this.commonProps,v=l||this.getElementId("input"),w=ne(ne(ne({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(m,re({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:a},w)):k.createElement(o$,re({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:nu,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,l=o.MultiValueContainer,a=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,y=this.props,m=y.controlShouldRenderValue,g=y.isDisabled,x=y.isMulti,h=y.inputValue,p=y.placeholder,v=this.state,w=v.selectValue,b=v.focusedValue,C=v.isFocused;if(!this.hasValue()||!m)return h?null:k.createElement(f,re({},d,{key:"placeholder",isDisabled:g,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),p);if(x)return w.map(function(P,$){var R=P===b,D="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return k.createElement(s,re({},d,{components:{Container:l,Label:a,Remove:u},isFocused:R,isDisabled:g,key:D,index:$,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(I){I.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(h)return null;var S=w[0];return k.createElement(c,re({},d,{data:S,isDisabled:g}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:f,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused;return k.createElement(s,re({},l,{isDisabled:a,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:u,isDisabled:l,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,l=o.GroupHeading,a=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,y=o.Option,m=this.commonProps,g=this.state.focusedOption,x=this.props,h=x.captureMenuScroll,p=x.inputValue,v=x.isLoading,w=x.loadingMessage,b=x.minMenuHeight,C=x.maxMenuHeight,S=x.menuIsOpen,P=x.menuPlacement,$=x.menuPosition,R=x.menuPortalTarget,D=x.menuShouldBlockScroll,A=x.menuShouldScrollIntoView,I=x.noOptionsMessage,B=x.onMenuScrollToTop,W=x.onMenuScrollToBottom;if(!S)return null;var Z=function(le,ae){var ye=le.type,oe=le.data,de=le.isDisabled,Ae=le.isSelected,nt=le.label,j=le.value,Y=g===oe,ce=de?void 0:function(){return i.onOptionHover(oe)},ue=de?void 0:function(){return i.selectOption(oe)},se="".concat(i.getElementId("option"),"-").concat(ae),ge={id:se,onClick:ue,onMouseMove:ce,onMouseOver:ce,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ae};return k.createElement(y,re({},m,{innerProps:ge,data:oe,isDisabled:de,isSelected:Ae,key:se,label:nt,type:ye,value:j,isFocused:Y,innerRef:Y?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(le.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var le=J.data,ae=J.options,ye=J.index,oe="".concat(i.getElementId("group"),"-").concat(ye),de="".concat(oe,"-heading");return k.createElement(s,re({},m,{key:oe,data:le,options:ae,Heading:l,headingProps:{id:de,data:J.data},label:i.formatGroupLabel(J.data)}),J.options.map(function(Ae){return Z(Ae,"".concat(ye,"-").concat(Ae.index))}))}else if(J.type==="option")return Z(J,"".concat(J.index))});else if(v){var M=w({inputValue:p});if(M===null)return null;G=k.createElement(f,m,M)}else{var U=I({inputValue:p});if(U===null)return null;G=k.createElement(d,m,U)}var H={minMenuHeight:b,maxMenuHeight:C,menuPlacement:P,menuPosition:$,menuShouldScrollIntoView:A},ie=k.createElement(Ik,re({},m,H),function(J){var le=J.ref,ae=J.placerProps,ye=ae.placement,oe=ae.maxHeight;return k.createElement(a,re({},m,H,{innerRef:le,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:ye}),k.createElement(f$,{captureEnabled:h,onTopArrive:B,onBottomArrive:W,lockEnabled:D},function(de){return k.createElement(u,re({},m,{innerRef:function(nt){i.getMenuListRef(nt),de(nt)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:oe,focusedOption:g}),G)}))});return R||$==="fixed"?k.createElement(c,re({},m,{appendTo:R,controlElement:this.controlRef,menuPlacement:P,menuPosition:$}),ie):ie}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,l=o.isDisabled,a=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!l)return k.createElement(h$,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(a)if(s){var d=f.map(function(g){return i.getOptionValue(g)}).join(s);return k.createElement("input",{name:u,type:"hidden",value:d})}else{var y=f.length>0?f.map(function(g,x){return k.createElement("input",{key:"i-".concat(x),name:u,type:"hidden",value:i.getOptionValue(g)})}):k.createElement("input",{name:u,type:"hidden",value:""});return k.createElement("div",null,y)}else{var m=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,l=o.focusedOption,a=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return k.createElement(XP,re({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:l,focusedValue:a,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,l=i.SelectContainer,a=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,y=u.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return k.createElement(l,re({},g,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:m}),this.renderLiveRegion(),k.createElement(o,re({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:m,menuIsOpen:y}),k.createElement(a,re({},g,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,re({},g,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,l=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,y=i.options,m=i.value,g=i.menuIsOpen,x=i.inputValue,h=i.isMulti,p=hg(m),v={};if(s&&(m!==s.value||y!==s.options||g!==s.menuIsOpen||x!==s.inputValue)){var w=g?_$(i,p):[],b=g?Tg(Xa(i,p),"".concat(d,"-option")):[],C=l?R$(o,p):null,S=F$(o,w),P=Cf(b,S);v={selectValue:p,focusedOption:S,focusedOptionId:P,focusableOptionsWithIds:b,focusedValue:C,clearFocusValueOnUpdate:!1}}var $=a!=null&&i!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},R=u,D=c&&f;return c&&!D&&(R={value:Oa(h,p,p[0]||null),options:p,action:"initial-input-focus"},D=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),ne(ne(ne({},v),$),{},{prevProps:i,ariaSelection:R,prevWasFocused:D})}}]),n}(k.Component);X4.defaultProps=T$;var M$=k.forwardRef(function(e,t){var n=AC(e);return k.createElement(X4,re({ref:t},n))}),L$=M$;const D$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("rect",{width:30,height:24,x:1,y:4,fill:"#fff",rx:4,ry:4}),E.jsx("path",{fill:"#a62842",d:"M1.638 5.846h28.724A3.988 3.988 0 0 0 27 4H5a3.99 3.99 0 0 0-3.362 1.846ZM2.03 7.692C2.022 7.795 2 7.894 2 8v1.539h29V8c0-.105-.022-.204-.03-.308H2.03ZM2 11.385h29v1.846H2zM2 15.077h29v1.846H2zM1 18.769h30v1.846H1zM1 24c0 .105.023.204.031.308h29.938c.008-.103.031-.202.031-.308v-1.539H1V24ZM30.362 26.154H1.638A3.988 3.988 0 0 0 5 28h22a3.99 3.99 0 0 0 3.362-1.846Z"}),E.jsx("path",{fill:"#102d5e",d:"M5 4h11v12.923H1V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2}),E.jsx("path",{fill:"#fff",d:"m4.601 7.463.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM7.58 7.463l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM10.56 7.463l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.429.591.429-.225-.695zM6.066 9.283l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM9.046 9.283l.591-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.225.696.591-.43.591.43-.225-.696zM12.025 9.283l.591-.429h-.731l-.226-.696-.226.696h-.731l.592.429-.226.696.591-.43.592.43-.226-.696zM6.066 12.924l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM9.046 12.924l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.429.591.429-.225-.695zM12.025 12.924l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.429.592.429-.226-.695zM13.539 7.463l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.429.592.429-.226-.695zM4.601 11.104l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.43.591.43-.226-.695zM7.58 11.104l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.43.591.43-.226-.695zM10.56 11.104l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.43.591.43-.225-.695zM13.539 11.104l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.43.592.43-.226-.695zM4.601 14.744l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM7.58 14.744l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM10.56 14.744l.591-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.225.696.591-.43.591.43-.225-.696zM13.539 14.744l.591-.429h-.731l-.226-.696-.226.696h-.731l.592.429-.226.696.591-.43.592.43-.226-.696z"})]}),I$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#2455b2",d:"M31 8a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v9h30V8Z"}),E.jsx("path",{fill:"#f9da49",d:"M5 28h22a4 4 0 0 0 4-4v-8H1v8a4 4 0 0 0 4 4Z"}),E.jsx("path",{d:"M5 28h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4ZM2 8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),j$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#fff",d:"M10 4h12v24H10z"}),E.jsx("path",{fill:"#41914d",d:"M5 4h6v24H5c-2.208 0-4-1.792-4-4V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{fill:"#bf393b",d:"M27 28h-6V4h6c2.208 0 4 1.792 4 4v16c0 2.208-1.792 4-4 4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),N$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("rect",{width:30,height:24,x:1,y:4,fill:"#4daac1",rx:4,ry:4}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("circle",{cx:16.008,cy:13.938,r:3.515,fill:"#fbec5a"}),E.jsx("path",{fill:"#fbec5a",d:"M16.008 9.943c.209-.003.287-.133.287-.29 0-.209-.287-1.204-.287-1.204s-.287.995-.287 1.204c0 .157.078.29.287.29ZM20.003 13.938c.003.209.133.287.29.287.209 0 1.204-.287 1.204-.287s-.995-.287-1.204-.287c-.157 0-.29.078-.29.287ZM16.008 17.933c-.209.003-.287.133-.287.29 0 .209.287 1.204.287 1.204s.287-.995.287-1.204c0-.157-.078-.29-.287-.29ZM12.014 13.938c-.003-.209-.133-.287-.29-.287-.209 0-1.204.287-1.204.287s.995.287 1.204.287c.157 0 .29-.078.29-.287ZM17.537 10.247c.194.078.317-.013.377-.158.08-.193.195-1.223.195-1.223s-.646.81-.726 1.003c-.06.145-.039.298.155.378ZM19.699 15.467c-.078.194.013.317.158.377.193.08 1.223.195 1.223.195s-.81-.646-1.003-.726c-.145-.06-.298-.039-.378.155ZM14.48 17.629c-.194-.078-.317.013-.377.158-.08.193-.195 1.223-.195 1.223s.646-.81.726-1.003c.06-.145.039-.298-.155-.378ZM12.318 12.409c.078-.194-.013-.317-.158-.377-.193-.08-1.223-.195-1.223-.195s.81.646 1.003.726c.145.06.298.039.378-.155ZM18.833 11.113c.15.146.297.109.408-.002.148-.148.648-1.055.648-1.055s-.907.501-1.055.648c-.111.111-.15.26-.002.408ZM18.833 16.763c-.146.15-.109.297.002.408.148.148 1.055.648 1.055.648s-.501-.907-.648-1.055c-.111-.111-.26-.15-.408-.002ZM13.184 16.763c-.15-.146-.297-.109-.408.002-.148.148-.648 1.055-.648 1.055s.907-.501 1.055-.648c.111-.111.15-.26.002-.408ZM13.184 11.113c.146-.15.109-.297-.002-.408-.148-.148-1.055-.648-1.055-.648s.501.907.648 1.055c.111.111.26.15.408.002ZM19.699 12.409c.082.192.233.215.378.155.193-.08 1.003-.726 1.003-.726s-1.03.115-1.223.195c-.145.06-.238.183-.158.377ZM17.537 17.629c-.192.082-.215.233-.155.378.08.193.726 1.003.726 1.003s-.115-1.03-.195-1.223c-.06-.145-.183-.238-.377-.158ZM12.318 15.467c-.082-.192-.233-.215-.378-.155-.193.08-1.003.726-1.003.726s1.03-.115 1.223-.195c.145-.06.238-.183.158-.377ZM14.48 10.247c.192-.082.215-.233.155-.378-.08-.193-.726-1.003-.726-1.003s.115 1.03.195 1.223c.06.145.183.238.377.158ZM16.788 10.02c.206.038.308-.075.338-.228.041-.205-.047-1.237-.047-1.237s-.476.92-.517 1.125c-.031.154.02.3.225.341ZM19.927 14.717c-.038.206.075.308.228.338.205.041 1.237-.047 1.237-.047s-.92-.476-1.125-.517c-.154-.031-.3.02-.341.225ZM15.229 17.856c-.206-.038-.308.075-.338.228-.041.205.047 1.237.047 1.237s.476-.92.517-1.125c.031-.154-.02-.3-.225-.341ZM12.09 13.159c.038-.206-.075-.308-.228-.338-.205-.041-1.237.047-1.237.047s.92.476 1.125.517c.154.031.3-.02.341-.225ZM18.228 10.616c.175.114.313.049.4-.081.116-.174.43-1.161.43-1.161s-.792.668-.908.842c-.087.13-.096.285.078.401ZM19.33 16.157c-.114.175-.049.313.081.4.174.116 1.161.43 1.161.43s-.668-.792-.842-.908c-.13-.087-.285-.096-.401.078ZM13.789 17.259c-.175-.114-.313-.049-.4.081-.116.174-.43 1.161-.43 1.161s.792-.668.908-.842c.087-.13.096-.285-.078-.401ZM12.687 11.718c.114-.175.049-.313-.081-.4-.174-.116-1.161-.43-1.161-.43s.668.792.842.908c.13.087.285.096.401-.078ZM19.33 11.718c.118.172.27.165.401.078.174-.116.842-.908.842-.908s-.987.314-1.161.43c-.13.087-.198.226-.081.4ZM18.228 17.259c-.172.118-.165.27-.078.401.116.174.908.842.908.842s-.314-.987-.43-1.161c-.087-.13-.226-.198-.4-.081ZM12.687 16.157c-.118-.172-.27-.165-.401-.078-.174.116-.842.908-.842.908s.987-.314 1.161-.43c.13-.087.198-.226.081-.4ZM13.789 10.616c.172-.118.165-.27.078-.401-.116-.174-.908-.842-.908-.842s.314.987.43 1.161c.087.13.226.198.4.081ZM19.927 13.159c.043.204.187.256.341.225.205-.041 1.125-.517 1.125-.517s-1.032-.088-1.237-.047c-.154.031-.269.133-.228.338ZM16.788 17.856c-.204.043-.256.187-.225.341.041.205.517 1.125.517 1.125s.088-1.032.047-1.237c-.031-.154-.133-.269-.338-.228ZM12.09 14.717c-.043-.204-.187-.256-.341-.225-.205.041-1.125.517-1.125.517s1.032.088 1.237.047c.154-.031.269-.133.228-.338ZM15.229 10.02c.204-.043.256-.187.225-.341-.041-.205-.517-1.125-.517-1.125s-.088 1.032-.047 1.237c.031.154.133.269.338.228ZM15.381 21.553c-.262.013-.507.122-.768.141.066.178-.157.336-.296.202a.325.325 0 0 1-.283-.047c-.326.126-.438.672-.027.357.107-.068-.045.155.03.106.824-.278 1.811-.053 2.646-.147-.529-.098-1.111-.035-1.617-.133.061-.084.134-.159.201-.237a2.272 2.272 0 0 1-.16-.033c.095-.065.183-.139.275-.209Z"}),E.jsx("path",{fill:"#fbec5a",d:"M19.45 22.456c-.189.114-.334-.088-.492-.148-.118.163-.393.721-.499.182-.151.127-.227.416-.472.377-.259-.468-.364.332-.654.034-.031-.147-.104-.32-.184-.086-.055.165-.231.287-.402.214-.093-.076.075-.359-.044-.339-.178.117-.281.409-.529.386-.096-.108.058-.291-.047-.411-.125.16-.263.394-.479.411-.104-.084.004-.327-.062-.362-.221.133-.455.369-.733.295.506-1.083 2.024-.344 2.918-.762.102-.062.349-.15.261-.294-.078-.114.203-.069.23-.202.454-.447 1.524.043 2.172-.03.048.309-.295.527-.572.431-.132.021-.33-.303-.291-.067-.027.124-.008.288-.121.371m-5.419-.634c.903.018 1.617-1.001 2.425-1.321.631-.191 1.302-.168 1.936-.344.482-.66 1.302-.896 1.988-1.276.543-.535 1.009-1.606 1.968-1.467-.016.269-.171.508-.357.694.153-.003.284-.1.438-.094.053.276-.246.421-.404.593.712.068-.308.378-.479.6.484.095-.338.196-.323.398.256.242-.684.209-.273.448-.082.124-.258.15-.401.138.141.615-.997.841-1.476.944.511.124 2.837-.423 1.76-.831.297-.183.671-.118.99-.227.008-.103-.243-.075-.336-.098-.494-.098.712-.163.815-.36-.186-.086-.421-.01-.62-.081.246-.068 1.587-.465.77-.486-.187.033-.273-.057-.061-.134.722-.438 2.066-1.473.262-.802 1.482-1.119 2.217-2.57.007-.62 1.379-1.223 1.922-3.365-.02-.741 1.057-1.83.701-3.668-.249-.492.117-.273.256-1.744-.197-1.117-.529 2.79-3.132 4.783-5.896 4.945-.563.859-1.624 1.121-2.265 1.732"}),E.jsx("path",{fill:"#fbec5a",d:"M15.886 20.076c-.091.166-.145.357-.263.505-.662-.588-1.712-.067-2.375-.651-1.256-.909-2.379-1.756-3.421-2.935-.105.026-.057.252-.186.136-.07-.05-.244-.054-.26.015.158.208.316.445.338.711-.108.011-.299-.023-.352.017.143.214.326.404.534.556-.1.016-.297.007-.335.048.207.168.428.341.699.384.055.073-.081.214.034.276.066.027.286.073.135.148-.252.26.305.231.354.357-.475.25.258.394.495.412-.105.089-.235.139-.344.222a8.745 8.745 0 0 0 2.197.829c-.98-.036-1.846-.517-2.743-.856.135-.07.291-.087.431-.148-.291-.058-.608-.077-.864-.237.039-.07.188-.073.27-.109.474-.133-.527-.11-.633-.261.11-.124.458-.045.6-.189-.79-.158-1.694-.405-.236-.398-.761-.21-2.478-1.49-.648-.776-1.235-.994-2.378-2.729-.04-.667-1.008-.899-2.122-3.554.088-.708-1.053-1.834-.715-3.71.249-.492-.471-3.981.959 4.279 6.275 3.808"}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),V$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#cc2b1d",d:"M1 11h30v10H1z"}),E.jsx("path",{d:"M5 4h22c2.208 0 4 1.792 4 4v4H1V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{fill:"#f8d147",d:"M27 28H5c-2.208 0-4-1.792-4-4v-4h30v4c0 2.208-1.792 4-4 4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),Rg=[{value:"en",label:E.jsx(D$,{})},{value:"uk",label:E.jsx(I$,{})},{value:"it",label:E.jsx(j$,{})},{value:"kz",label:E.jsx(N$,{})},{value:"gm",label:E.jsx(V$,{})}],z$={padding:"0",dropdownIndicator:()=>({display:"none"}),indicatorSeparator:()=>({display:"none"}),control:()=>({border:"none",width:"45px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",caretColor:"transparent",borderRadius:"none",cursor:"pointer",boxShadow:"none",backgroundColor:"transparent",padding:"0"}),menu:e=>({...e,borderRadius:" 15px",border:"none",width:"45px",boxShadow:" rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;",backgroundColor:"transparent",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}),option:(e,{isFocused:t})=>({...e,backgroundColor:t?"#9EBBFF":"transparent",borderRadius:" 15px",display:"flex",padding:"0",justifyContent:"center",alignItems:"center",width:"45px",cursor:"pointer"})},e5=()=>{const{i18n:e}=Ys(),[t,n]=k.useState(e.language);k.useEffect(()=>{const i=localStorage.getItem("language");i&&i!==t&&(e.changeLanguage(i),n(i))},[e,t]);const r=i=>{const o=i.value;e.changeLanguage(o),n(o),localStorage.setItem("language",o)};return E.jsx("div",{children:E.jsx(L$,{options:Rg,value:Rg.find(i=>i.value===t),onChange:r,styles:z$})})};var t5={exports:{}};(function(e,t){(function(r,i){e.exports=i(k)})(y5,n=>(()=>{var r={"./node_modules/css-mediaquery/index.js":(l,a)=>{a.match=m,a.parse=g;var u=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,f=/^(?:(min|max)-)?(.+)/,d=/(em|rem|px|cm|mm|in|pt|pc)?$/,y=/(dpi|dpcm|dppx)?$/;function m(v,w){return g(v).some(function(b){var C=b.inverse,S=b.type==="all"||w.type===b.type;if(S&&C||!(S||C))return!1;var P=b.expressions.every(function($){var R=$.feature,D=$.modifier,A=$.value,I=w[R];if(!I)return!1;switch(R){case"orientation":case"scan":return I.toLowerCase()===A.toLowerCase();case"width":case"height":case"device-width":case"device-height":A=p(A),I=p(I);break;case"resolution":A=h(A),I=h(I);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":A=x(A),I=x(I);break;case"grid":case"color":case"color-index":case"monochrome":A=parseInt(A,10)||1,I=parseInt(I,10)||0;break}switch(D){case"min":return I>=A;case"max":return I<=A;default:return I===A}});return P&&!C||!P&&C})}function g(v){return v.split(",").map(function(w){w=w.trim();var b=w.match(u),C=b[1],S=b[2],P=b[3]||"",$={};return $.inverse=!!C&&C.toLowerCase()==="not",$.type=S?S.toLowerCase():"all",P=P.match(/\([^\)]+\)/g)||[],$.expressions=P.map(function(R){var D=R.match(c),A=D[1].toLowerCase().match(f);return{modifier:A[1],feature:A[2],value:D[2]}}),$})}function x(v){var w=Number(v),b;return w||(b=v.match(/^(\d+)\s*\/\s*(\d+)$/),w=b[1]/b[2]),w}function h(v){var w=parseFloat(v),b=String(v).match(y)[1];switch(b){case"dpcm":return w/2.54;case"dppx":return w*96;default:return w}}function p(v){var w=parseFloat(v),b=String(v).match(d)[1];switch(b){case"em":return w*16;case"rem":return w*16;case"cm":return w*96/2.54;case"mm":return w*96/2.54/10;case"in":return w*96;case"pt":return w*72;case"pc":return w*72/12;default:return w}}},"./node_modules/hyphenate-style-name/index.js":(l,a,u)=>{u.r(a),u.d(a,{default:()=>g});var c=/[A-Z]/g,f=/^ms-/,d={};function y(x){return"-"+x.toLowerCase()}function m(x){if(d.hasOwnProperty(x))return d[x];var h=x.replace(c,y);return d[x]=f.test(h)?"-"+h:h}const g=m},"./node_modules/matchmediaquery/index.js":(l,a,u)=>{var c=u("./node_modules/css-mediaquery/index.js").match,f=typeof window<"u"?window.matchMedia:null;function d(m,g,x){var h=this;if(f&&!x){var p=f.call(window,m);this.matches=p.matches,this.media=p.media,p.addListener(b)}else this.matches=c(m,g),this.media=m;this.addListener=v,this.removeListener=w,this.dispose=C;function v(S){p&&p.addListener(S)}function w(S){p&&p.removeListener(S)}function b(S){h.matches=S.matches,h.media=S.media}function C(){p&&p.removeListener(b)}}function y(m,g,x){return new d(m,g,x)}l.exports=y},"./node_modules/object-assign/index.js":l=>{/* +`]))),cP=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,l=o.spacing.baseUnit;return ne({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:l*2})},wf=function(t){var n=t.delay,r=t.offset;return te("span",{css:e1({animation:"".concat(uP," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fP=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=Qn(t,tP);return te("div",re({},je(ne(ne({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),te(wf,{delay:0,offset:r}),te(wf,{delay:160,offset:!0}),te(wf,{delay:320,offset:!r}))},dP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,l=o.borderRadius,a=o.spacing;return ne({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},pP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,l=t.menuIsOpen;return te("div",re({ref:o},je(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),s,{"aria-disabled":r||void 0}),n)},hP=pP,mP=["data"],gP=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},yP=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,l=t.headingProps,a=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return te("div",re({},je(t,"group",{group:!0}),a),te(s,re({},l,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),te("div",null,n))},vP=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return ne({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},wP=function(t){var n=F4(t);n.data;var r=Qn(n,mP);return te("div",re({},je(t,"groupHeading",{"group-heading":!0}),r))},xP=yP,bP=["innerRef","isDisabled","isHidden","inputClassName"],SP=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,l=o.colors;return ne(ne({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},EP),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:l.neutral80})},z4={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},EP={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ne({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},z4)},CP=function(t){return ne({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},z4)},OP=function(t){var n=t.cx,r=t.value,i=F4(t),o=i.innerRef,s=i.isDisabled,l=i.isHidden,a=i.inputClassName,u=Qn(i,bP);return te("div",re({},je(t,"input",{"input-container":!0}),{"data-value":r||""}),te("input",re({className:n({input:!0},a),ref:o,style:CP(l),disabled:s},u)))},kP=OP,PP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return ne({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},$P=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return ne({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},TP=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,l=t.isFocused;return ne({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},B4=function(t){var n=t.children,r=t.innerProps;return te("div",r,n)},_P=B4,RP=B4;function FP(e){var t=e.children,n=e.innerProps;return te("div",re({role:"button"},n),t||te(a1,{size:14}))}var AP=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,l=t.removeProps,a=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return te(u,{data:i,innerProps:ne(ne({},je(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},te(c,{data:i,innerProps:ne({},je(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),te(f,{data:i,innerProps:ne(ne({},je(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:a}))},MP=AP,LP=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,l=s.spacing,a=s.colors;return ne({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?a.primary:a.primary50}})},DP=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,l=t.innerProps;return te("div",re({},je(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},l),n)},IP=DP,jP=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return ne({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},NP=function(t){var n=t.children,r=t.innerProps;return te("div",re({},je(t,"placeholder",{placeholder:!0}),r),n)},VP=NP,zP=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return ne({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},BP=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return te("div",re({},je(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},UP=BP,HP={ClearIndicator:sP,Control:hP,DropdownIndicator:iP,DownChevron:N4,CrossIcon:a1,Group:xP,GroupHeading:wP,IndicatorsContainer:Xk,IndicatorSeparator:lP,Input:kP,LoadingIndicator:fP,Menu:Nk,MenuList:zk,MenuPortal:Yk,LoadingMessage:Wk,NoOptionsMessage:Hk,MultiValue:MP,MultiValueContainer:_P,MultiValueLabel:RP,MultiValueRemove:FP,Option:IP,Placeholder:VP,SelectContainer:qk,SingleValue:UP,ValueContainer:Qk},WP=function(t){return ne(ne({},HP),t.components)},vg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ZP(e,t){return!!(e===t||vg(e)&&vg(t))}function YP(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,l=t.selectValue,a=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(g,x){return g&&g.length?"".concat(g.indexOf(x)+1," of ").concat(g.length):""};if(n==="value"&&l)return"value ".concat(s," focused, ").concat(f(l,r),".");if(n==="menu"&&c){var d=a?" disabled":"",y="".concat(u?" selected":"").concat(d);return"".concat(s).concat(y,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},JP=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,l=t.selectValue,a=t.selectProps,u=t.id,c=t.isAppleDevice,f=a.ariaLiveMessages,d=a.getOptionLabel,y=a.inputValue,m=a.isMulti,g=a.isOptionDisabled,x=a.isSearchable,h=a.menuIsOpen,p=a.options,v=a.screenReaderStatus,w=a.tabSelectsValue,b=a.isLoading,C=a["aria-label"],S=a["aria-live"],P=k.useMemo(function(){return ne(ne({},QP),f||{})},[f]),$=k.useMemo(function(){var W="";if(n&&P.onChange){var Z=n.option,G=n.options,M=n.removedValue,U=n.removedValues,H=n.value,ie=function(Ae){return Array.isArray(Ae)?null:Ae},J=M||Z||ie(H),le=J?d(J):"",ae=G||U||void 0,ye=ae?ae.map(d):[],oe=ne({isDisabled:J&&g(J,l),label:le,labels:ye},n);W=P.onChange(oe)}return W},[n,P,g,l,d]),R=k.useMemo(function(){var W="",Z=r||i,G=!!(r&&l&&l.includes(r));if(Z&&P.onFocus){var M={focused:Z,label:d(Z),isDisabled:g(Z,l),isSelected:G,options:o,context:Z===r?"menu":"value",selectValue:l,isAppleDevice:c};W=P.onFocus(M)}return W},[r,i,d,g,P,o,l,c]),D=k.useMemo(function(){var W="";if(h&&p.length&&!b&&P.onFilter){var Z=v({count:o.length});W=P.onFilter({inputValue:y,resultsMessage:Z})}return W},[o,y,h,P,p,v,b]),A=(n==null?void 0:n.action)==="initial-input-focus",I=k.useMemo(function(){var W="";if(P.guidance){var Z=i?"value":h?"menu":"input";W=P.guidance({"aria-label":C,context:Z,isDisabled:r&&g(r,l),isMulti:m,isSearchable:x,tabSelectsValue:w,isInitialFocus:A})}return W},[C,r,i,m,g,x,h,P,l,w,A]),B=te(k.Fragment,null,te("span",{id:"aria-selection"},$),te("span",{id:"aria-focused"},R),te("span",{id:"aria-results"},D),te("span",{id:"aria-guidance"},I));return te(k.Fragment,null,te(wg,{id:u},A&&B),te(wg,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!A&&B))},XP=JP,op=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],e$=new RegExp("["+op.map(function(e){return e.letters}).join("")+"]","g"),U4={};for(var xf=0;xf-1}},i$=["innerRef"];function o$(e){var t=e.innerRef,n=Qn(e,i$),r=Rk(n,"onExited","in","enter","exit","appear");return te("input",re({ref:t},r,{css:e1({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var s$=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function a$(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=k.useRef(!1),l=k.useRef(!1),a=k.useRef(0),u=k.useRef(null),c=k.useCallback(function(x,h){if(u.current!==null){var p=u.current,v=p.scrollTop,w=p.scrollHeight,b=p.clientHeight,C=u.current,S=h>0,P=w-b-v,$=!1;P>h&&s.current&&(r&&r(x),s.current=!1),S&&l.current&&(o&&o(x),l.current=!1),S&&h>P?(n&&!s.current&&n(x),C.scrollTop=w,$=!0,s.current=!0):!S&&-h>v&&(i&&!l.current&&i(x),C.scrollTop=0,$=!0,l.current=!0),$&&s$(x)}},[n,r,i,o]),f=k.useCallback(function(x){c(x,x.deltaY)},[c]),d=k.useCallback(function(x){a.current=x.changedTouches[0].clientY},[]),y=k.useCallback(function(x){var h=a.current-x.changedTouches[0].clientY;c(x,h)},[c]),m=k.useCallback(function(x){if(x){var h=$k?{passive:!1}:!1;x.addEventListener("wheel",f,h),x.addEventListener("touchstart",d,h),x.addEventListener("touchmove",y,h)}},[y,d,f]),g=k.useCallback(function(x){x&&(x.removeEventListener("wheel",f,!1),x.removeEventListener("touchstart",d,!1),x.removeEventListener("touchmove",y,!1))},[y,d,f]);return k.useEffect(function(){if(t){var x=u.current;return m(x),function(){g(x)}}},[t,m,g]),function(x){u.current=x}}var bg=["boxSizing","height","overflow","paddingRight","position"],Sg={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Eg(e){e.preventDefault()}function Cg(e){e.stopPropagation()}function Og(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kg(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pg=!!(typeof window<"u"&&window.document&&window.document.createElement),Io=0,Ei={capture:!1,passive:!1};function l$(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=k.useRef({}),o=k.useRef(null),s=k.useCallback(function(a){if(Pg){var u=document.body,c=u&&u.style;if(r&&bg.forEach(function(m){var g=c&&c[m];i.current[m]=g}),r&&Io<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,y=window.innerWidth-d+f||0;Object.keys(Sg).forEach(function(m){var g=Sg[m];c&&(c[m]=g)}),c&&(c.paddingRight="".concat(y,"px"))}u&&kg()&&(u.addEventListener("touchmove",Eg,Ei),a&&(a.addEventListener("touchstart",Og,Ei),a.addEventListener("touchmove",Cg,Ei))),Io+=1}},[r]),l=k.useCallback(function(a){if(Pg){var u=document.body,c=u&&u.style;Io=Math.max(Io-1,0),r&&Io<1&&bg.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&kg()&&(u.removeEventListener("touchmove",Eg,Ei),a&&(a.removeEventListener("touchstart",Og,Ei),a.removeEventListener("touchmove",Cg,Ei)))}},[r]);return k.useEffect(function(){if(t){var a=o.current;return s(a),function(){l(a)}}},[t,s,l]),function(a){o.current=a}}var u$=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},c$={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function f$(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,l=e.onTopArrive,a=e.onTopLeave,u=a$({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:l,onTopLeave:a}),c=l$({isEnabled:n}),f=function(y){u(y),c(y)};return te(k.Fragment,null,n&&te("div",{onClick:u$,css:c$}),t(f))}var d$={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},p$=function(t){var n=t.name,r=t.onFocus;return te("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:d$,value:"",onChange:function(){}})},h$=p$;function l1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function m$(){return l1(/^iPhone/i)}function W4(){return l1(/^Mac/i)}function g$(){return l1(/^iPad/i)||W4()&&navigator.maxTouchPoints>1}function y$(){return m$()||g$()}function v$(){return W4()||y$()}var w$=function(t){return t.label},x$=function(t){return t.label},b$=function(t){return t.value},S$=function(t){return!!t.isDisabled},E$={clearIndicator:oP,container:Kk,control:dP,dropdownIndicator:rP,group:gP,groupHeading:vP,indicatorsContainer:Jk,indicatorSeparator:aP,input:SP,loadingIndicator:cP,loadingMessage:Uk,menu:Dk,menuList:Vk,menuPortal:Zk,multiValue:PP,multiValueLabel:$P,multiValueRemove:TP,noOptionsMessage:Bk,option:LP,placeholder:jP,singleValue:zP,valueContainer:Gk},C$={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},O$=4,Z4=4,k$=38,P$=Z4*2,$$={baseUnit:Z4,controlHeight:k$,menuGutter:P$},Ef={borderRadius:O$,colors:C$,spacing:$$},T$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:gg(),captureMenuScroll:!gg(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:r$(),formatGroupLabel:w$,getOptionLabel:x$,getOptionValue:b$,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:S$,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!kk(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function $g(e,t,n,r){var i=q4(e,t,n),o=G4(e,t,n),s=K4(e,t),l=iu(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:l,index:r}}function Xa(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,l){return $g(e,s,t,l)}).filter(function(s){return _g(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=$g(e,n,t,r);return _g(e,o)?o:void 0}).filter(Tk)}function Y4(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Wh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Tg(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Wh(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function _$(e,t){return Y4(Xa(e,t))}function _g(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,l=t.value;return(!J4(e)||!o)&&Q4(e,{label:s,value:l,data:i},r)}function R$(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Cf=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},K4=function(t,n){return t.getOptionLabel(n)},iu=function(t,n){return t.getOptionValue(n)};function q4(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function G4(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=iu(e,t);return n.some(function(i){return iu(e,i)===r})}function Q4(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var J4=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},A$=1,X4=function(e){DC(n,e);var t=NC(n);function n(r){var i;if(MC(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=v$(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(a,u),f(a,u)},i.setValue=function(a,u,c){var f=i.props,d=f.closeMenuOnSelect,y=f.isMulti,m=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:m}),d&&(i.setState({inputIsHiddenAfterUpdate:!y}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:u,option:c})},i.selectOption=function(a){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,y=i.state.selectValue,m=f&&i.isOptionSelected(a,y),g=i.isOptionDisabled(a,y);if(m){var x=i.getOptionValue(a);i.setValue(y.filter(function(h){return i.getOptionValue(h)!==x}),"deselect-option",a)}else if(!g)f?i.setValue([].concat(Wh(y),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:d});return}c&&i.blurInput()},i.removeValue=function(a){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(a),d=c.filter(function(m){return i.getOptionValue(m)!==f}),y=Oa(u,d,d[0]||null);i.onChange(y,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(Oa(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Oa(a,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return Cf(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Tg(Xa(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,u=new Array(a),c=0;cy||d>y}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var u=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var u=i.getFocusableOptions(),c=u.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return J4(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,y=u.inputValue,m=u.isClearable,g=u.isDisabled,x=u.menuIsOpen,h=u.onKeyDown,p=u.tabSelectsValue,v=u.openMenuOnFocus,w=i.state,b=w.focusedOption,C=w.focusedValue,S=w.selectValue;if(!g&&!(typeof h=="function"&&(h(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||y)return;i.focusValue("previous");break;case"ArrowRight":if(!c||y)return;i.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(C)i.removeValue(C);else{if(!f)return;c?i.popValue():m&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!x||!p||!b||v&&i.isOptionSelected(b,S))return;i.selectOption(b);break;case"Enter":if(a.keyCode===229)break;if(x){if(!b||i.isComposing)return;i.selectOption(b);break}return;case"Escape":x?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:y}),i.onMenuClose()):m&&d&&i.clearValue();break;case" ":if(y)return;if(!x){i.openMenu("first");break}if(!b)return;i.selectOption(b);break;case"ArrowUp":x?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":x?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!x)return;i.focusOption("pageup");break;case"PageDown":if(!x)return;i.focusOption("pagedown");break;case"Home":if(!x)return;i.focusOption("first");break;case"End":if(!x)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++A$),i.state.selectValue=hg(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),l=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[l],i.state.focusedOptionId=Cf(o,s[l])}return i}return LC(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&mg(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,l=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&i.isDisabled||a&&l&&!i.menuIsOpen)&&this.focusInput(),a&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(mg(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,l=s.selectValue,a=s.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(l[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(l);l||(a=-1);var u=s.length-1,c=-1;if(s.length){switch(i){case"previous":a===0?c=0:a===-1?c=u:c=a-1;break;case"next":a>-1&&a0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var a=0,u=l.indexOf(s);s||(u=-1),i==="up"?a=u>0?u-1:l.length-1:i==="down"?a=(u+1)%l.length:i==="pageup"?(a=u-o,a<0&&(a=0)):i==="pagedown"?(a=u+o,a>l.length-1&&(a=l.length-1)):i==="last"&&(a=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ef):ne(ne({},Ef),this.props.theme):Ef}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,l=this.getClassNames,a=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,y=f.isRtl,m=f.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:l,getValue:a,hasValue:g,isMulti:d,isRtl:y,options:m,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return q4(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return G4(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Q4(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,l=i.inputId,a=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,y=this.getComponents(),m=y.Input,g=this.state,x=g.inputIsHidden,h=g.ariaSelection,p=this.commonProps,v=l||this.getElementId("input"),w=ne(ne(ne({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(m,re({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:a},w)):k.createElement(o$,re({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:nu,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,l=o.MultiValueContainer,a=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,y=this.props,m=y.controlShouldRenderValue,g=y.isDisabled,x=y.isMulti,h=y.inputValue,p=y.placeholder,v=this.state,w=v.selectValue,b=v.focusedValue,C=v.isFocused;if(!this.hasValue()||!m)return h?null:k.createElement(f,re({},d,{key:"placeholder",isDisabled:g,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),p);if(x)return w.map(function(P,$){var R=P===b,D="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return k.createElement(s,re({},d,{components:{Container:l,Label:a,Remove:u},isFocused:R,isDisabled:g,key:D,index:$,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(I){I.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(h)return null;var S=w[0];return k.createElement(c,re({},d,{data:S,isDisabled:g}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,l=this.props,a=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:f,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var l=this.commonProps,a=this.props.isDisabled,u=this.state.isFocused;return k.createElement(s,re({},l,{isDisabled:a,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,l=this.props.isDisabled,a=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(o,re({},s,{innerProps:u,isDisabled:l,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,l=o.GroupHeading,a=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,y=o.Option,m=this.commonProps,g=this.state.focusedOption,x=this.props,h=x.captureMenuScroll,p=x.inputValue,v=x.isLoading,w=x.loadingMessage,b=x.minMenuHeight,C=x.maxMenuHeight,S=x.menuIsOpen,P=x.menuPlacement,$=x.menuPosition,R=x.menuPortalTarget,D=x.menuShouldBlockScroll,A=x.menuShouldScrollIntoView,I=x.noOptionsMessage,B=x.onMenuScrollToTop,W=x.onMenuScrollToBottom;if(!S)return null;var Z=function(le,ae){var ye=le.type,oe=le.data,de=le.isDisabled,Ae=le.isSelected,nt=le.label,j=le.value,Y=g===oe,ce=de?void 0:function(){return i.onOptionHover(oe)},ue=de?void 0:function(){return i.selectOption(oe)},se="".concat(i.getElementId("option"),"-").concat(ae),ge={id:se,onClick:ue,onMouseMove:ce,onMouseOver:ce,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ae};return k.createElement(y,re({},m,{innerProps:ge,data:oe,isDisabled:de,isSelected:Ae,key:se,label:nt,type:ye,value:j,isFocused:Y,innerRef:Y?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(le.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var le=J.data,ae=J.options,ye=J.index,oe="".concat(i.getElementId("group"),"-").concat(ye),de="".concat(oe,"-heading");return k.createElement(s,re({},m,{key:oe,data:le,options:ae,Heading:l,headingProps:{id:de,data:J.data},label:i.formatGroupLabel(J.data)}),J.options.map(function(Ae){return Z(Ae,"".concat(ye,"-").concat(Ae.index))}))}else if(J.type==="option")return Z(J,"".concat(J.index))});else if(v){var M=w({inputValue:p});if(M===null)return null;G=k.createElement(f,m,M)}else{var U=I({inputValue:p});if(U===null)return null;G=k.createElement(d,m,U)}var H={minMenuHeight:b,maxMenuHeight:C,menuPlacement:P,menuPosition:$,menuShouldScrollIntoView:A},ie=k.createElement(Ik,re({},m,H),function(J){var le=J.ref,ae=J.placerProps,ye=ae.placement,oe=ae.maxHeight;return k.createElement(a,re({},m,H,{innerRef:le,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:ye}),k.createElement(f$,{captureEnabled:h,onTopArrive:B,onBottomArrive:W,lockEnabled:D},function(de){return k.createElement(u,re({},m,{innerRef:function(nt){i.getMenuListRef(nt),de(nt)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:oe,focusedOption:g}),G)}))});return R||$==="fixed"?k.createElement(c,re({},m,{appendTo:R,controlElement:this.controlRef,menuPlacement:P,menuPosition:$}),ie):ie}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,l=o.isDisabled,a=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!l)return k.createElement(h$,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(a)if(s){var d=f.map(function(g){return i.getOptionValue(g)}).join(s);return k.createElement("input",{name:u,type:"hidden",value:d})}else{var y=f.length>0?f.map(function(g,x){return k.createElement("input",{key:"i-".concat(x),name:u,type:"hidden",value:i.getOptionValue(g)})}):k.createElement("input",{name:u,type:"hidden",value:""});return k.createElement("div",null,y)}else{var m=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,l=o.focusedOption,a=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return k.createElement(XP,re({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:l,focusedValue:a,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,l=i.SelectContainer,a=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,y=u.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return k.createElement(l,re({},g,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:m}),this.renderLiveRegion(),k.createElement(o,re({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:m,menuIsOpen:y}),k.createElement(a,re({},g,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,re({},g,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,l=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,y=i.options,m=i.value,g=i.menuIsOpen,x=i.inputValue,h=i.isMulti,p=hg(m),v={};if(s&&(m!==s.value||y!==s.options||g!==s.menuIsOpen||x!==s.inputValue)){var w=g?_$(i,p):[],b=g?Tg(Xa(i,p),"".concat(d,"-option")):[],C=l?R$(o,p):null,S=F$(o,w),P=Cf(b,S);v={selectValue:p,focusedOption:S,focusedOptionId:P,focusableOptionsWithIds:b,focusedValue:C,clearFocusValueOnUpdate:!1}}var $=a!=null&&i!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},R=u,D=c&&f;return c&&!D&&(R={value:Oa(h,p,p[0]||null),options:p,action:"initial-input-focus"},D=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(R=null),ne(ne(ne({},v),$),{},{prevProps:i,ariaSelection:R,prevWasFocused:D})}}]),n}(k.Component);X4.defaultProps=T$;var M$=k.forwardRef(function(e,t){var n=AC(e);return k.createElement(X4,re({ref:t},n))}),L$=M$;const D$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("rect",{width:30,height:24,x:1,y:4,fill:"#fff",rx:4,ry:4}),E.jsx("path",{fill:"#a62842",d:"M1.638 5.846h28.724A3.988 3.988 0 0 0 27 4H5a3.99 3.99 0 0 0-3.362 1.846ZM2.03 7.692C2.022 7.795 2 7.894 2 8v1.539h29V8c0-.105-.022-.204-.03-.308H2.03ZM2 11.385h29v1.846H2zM2 15.077h29v1.846H2zM1 18.769h30v1.846H1zM1 24c0 .105.023.204.031.308h29.938c.008-.103.031-.202.031-.308v-1.539H1V24ZM30.362 26.154H1.638A3.988 3.988 0 0 0 5 28h22a3.99 3.99 0 0 0 3.362-1.846Z"}),E.jsx("path",{fill:"#102d5e",d:"M5 4h11v12.923H1V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2}),E.jsx("path",{fill:"#fff",d:"m4.601 7.463.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM7.58 7.463l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM10.56 7.463l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.429.591.429-.225-.695zM6.066 9.283l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM9.046 9.283l.591-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.225.696.591-.43.591.43-.225-.696zM12.025 9.283l.591-.429h-.731l-.226-.696-.226.696h-.731l.592.429-.226.696.591-.43.592.43-.226-.696zM6.066 12.924l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.429.591.429-.226-.695zM9.046 12.924l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.429.591.429-.225-.695zM12.025 12.924l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.429.592.429-.226-.695zM13.539 7.463l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.429.592.429-.226-.695zM4.601 11.104l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.43.591.43-.226-.695zM7.58 11.104l.592-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.226.695.592-.43.591.43-.226-.695zM10.56 11.104l.591-.43h-.731l-.226-.695-.226.695h-.731l.591.43-.225.695.591-.43.591.43-.225-.695zM13.539 11.104l.591-.43h-.731l-.226-.695-.226.695h-.731l.592.43-.226.695.591-.43.592.43-.226-.695zM4.601 14.744l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM7.58 14.744l.592-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.226.696.592-.43.591.43-.226-.696zM10.56 14.744l.591-.429h-.731l-.226-.696-.226.696h-.731l.591.429-.225.696.591-.43.591.43-.225-.696zM13.539 14.744l.591-.429h-.731l-.226-.696-.226.696h-.731l.592.429-.226.696.591-.43.592.43-.226-.696z"})]}),I$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#2455b2",d:"M31 8a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v9h30V8Z"}),E.jsx("path",{fill:"#f9da49",d:"M5 28h22a4 4 0 0 0 4-4v-8H1v8a4 4 0 0 0 4 4Z"}),E.jsx("path",{d:"M5 28h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4ZM2 8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),j$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#fff",d:"M10 4h12v24H10z"}),E.jsx("path",{fill:"#41914d",d:"M5 4h6v24H5c-2.208 0-4-1.792-4-4V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{fill:"#bf393b",d:"M27 28h-6V4h6c2.208 0 4 1.792 4 4v16c0 2.208-1.792 4-4 4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),N$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("rect",{width:30,height:24,x:1,y:4,fill:"#4daac1",rx:4,ry:4}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("circle",{cx:16.008,cy:13.938,r:3.515,fill:"#fbec5a"}),E.jsx("path",{fill:"#fbec5a",d:"M16.008 9.943c.209-.003.287-.133.287-.29 0-.209-.287-1.204-.287-1.204s-.287.995-.287 1.204c0 .157.078.29.287.29ZM20.003 13.938c.003.209.133.287.29.287.209 0 1.204-.287 1.204-.287s-.995-.287-1.204-.287c-.157 0-.29.078-.29.287ZM16.008 17.933c-.209.003-.287.133-.287.29 0 .209.287 1.204.287 1.204s.287-.995.287-1.204c0-.157-.078-.29-.287-.29ZM12.014 13.938c-.003-.209-.133-.287-.29-.287-.209 0-1.204.287-1.204.287s.995.287 1.204.287c.157 0 .29-.078.29-.287ZM17.537 10.247c.194.078.317-.013.377-.158.08-.193.195-1.223.195-1.223s-.646.81-.726 1.003c-.06.145-.039.298.155.378ZM19.699 15.467c-.078.194.013.317.158.377.193.08 1.223.195 1.223.195s-.81-.646-1.003-.726c-.145-.06-.298-.039-.378.155ZM14.48 17.629c-.194-.078-.317.013-.377.158-.08.193-.195 1.223-.195 1.223s.646-.81.726-1.003c.06-.145.039-.298-.155-.378ZM12.318 12.409c.078-.194-.013-.317-.158-.377-.193-.08-1.223-.195-1.223-.195s.81.646 1.003.726c.145.06.298.039.378-.155ZM18.833 11.113c.15.146.297.109.408-.002.148-.148.648-1.055.648-1.055s-.907.501-1.055.648c-.111.111-.15.26-.002.408ZM18.833 16.763c-.146.15-.109.297.002.408.148.148 1.055.648 1.055.648s-.501-.907-.648-1.055c-.111-.111-.26-.15-.408-.002ZM13.184 16.763c-.15-.146-.297-.109-.408.002-.148.148-.648 1.055-.648 1.055s.907-.501 1.055-.648c.111-.111.15-.26.002-.408ZM13.184 11.113c.146-.15.109-.297-.002-.408-.148-.148-1.055-.648-1.055-.648s.501.907.648 1.055c.111.111.26.15.408.002ZM19.699 12.409c.082.192.233.215.378.155.193-.08 1.003-.726 1.003-.726s-1.03.115-1.223.195c-.145.06-.238.183-.158.377ZM17.537 17.629c-.192.082-.215.233-.155.378.08.193.726 1.003.726 1.003s-.115-1.03-.195-1.223c-.06-.145-.183-.238-.377-.158ZM12.318 15.467c-.082-.192-.233-.215-.378-.155-.193.08-1.003.726-1.003.726s1.03-.115 1.223-.195c.145-.06.238-.183.158-.377ZM14.48 10.247c.192-.082.215-.233.155-.378-.08-.193-.726-1.003-.726-1.003s.115 1.03.195 1.223c.06.145.183.238.377.158ZM16.788 10.02c.206.038.308-.075.338-.228.041-.205-.047-1.237-.047-1.237s-.476.92-.517 1.125c-.031.154.02.3.225.341ZM19.927 14.717c-.038.206.075.308.228.338.205.041 1.237-.047 1.237-.047s-.92-.476-1.125-.517c-.154-.031-.3.02-.341.225ZM15.229 17.856c-.206-.038-.308.075-.338.228-.041.205.047 1.237.047 1.237s.476-.92.517-1.125c.031-.154-.02-.3-.225-.341ZM12.09 13.159c.038-.206-.075-.308-.228-.338-.205-.041-1.237.047-1.237.047s.92.476 1.125.517c.154.031.3-.02.341-.225ZM18.228 10.616c.175.114.313.049.4-.081.116-.174.43-1.161.43-1.161s-.792.668-.908.842c-.087.13-.096.285.078.401ZM19.33 16.157c-.114.175-.049.313.081.4.174.116 1.161.43 1.161.43s-.668-.792-.842-.908c-.13-.087-.285-.096-.401.078ZM13.789 17.259c-.175-.114-.313-.049-.4.081-.116.174-.43 1.161-.43 1.161s.792-.668.908-.842c.087-.13.096-.285-.078-.401ZM12.687 11.718c.114-.175.049-.313-.081-.4-.174-.116-1.161-.43-1.161-.43s.668.792.842.908c.13.087.285.096.401-.078ZM19.33 11.718c.118.172.27.165.401.078.174-.116.842-.908.842-.908s-.987.314-1.161.43c-.13.087-.198.226-.081.4ZM18.228 17.259c-.172.118-.165.27-.078.401.116.174.908.842.908.842s-.314-.987-.43-1.161c-.087-.13-.226-.198-.4-.081ZM12.687 16.157c-.118-.172-.27-.165-.401-.078-.174.116-.842.908-.842.908s.987-.314 1.161-.43c.13-.087.198-.226.081-.4ZM13.789 10.616c.172-.118.165-.27.078-.401-.116-.174-.908-.842-.908-.842s.314.987.43 1.161c.087.13.226.198.4.081ZM19.927 13.159c.043.204.187.256.341.225.205-.041 1.125-.517 1.125-.517s-1.032-.088-1.237-.047c-.154.031-.269.133-.228.338ZM16.788 17.856c-.204.043-.256.187-.225.341.041.205.517 1.125.517 1.125s.088-1.032.047-1.237c-.031-.154-.133-.269-.338-.228ZM12.09 14.717c-.043-.204-.187-.256-.341-.225-.205.041-1.125.517-1.125.517s1.032.088 1.237.047c.154-.031.269-.133.228-.338ZM15.229 10.02c.204-.043.256-.187.225-.341-.041-.205-.517-1.125-.517-1.125s-.088 1.032-.047 1.237c.031.154.133.269.338.228ZM15.381 21.553c-.262.013-.507.122-.768.141.066.178-.157.336-.296.202a.325.325 0 0 1-.283-.047c-.326.126-.438.672-.027.357.107-.068-.045.155.03.106.824-.278 1.811-.053 2.646-.147-.529-.098-1.111-.035-1.617-.133.061-.084.134-.159.201-.237a2.272 2.272 0 0 1-.16-.033c.095-.065.183-.139.275-.209Z"}),E.jsx("path",{fill:"#fbec5a",d:"M19.45 22.456c-.189.114-.334-.088-.492-.148-.118.163-.393.721-.499.182-.151.127-.227.416-.472.377-.259-.468-.364.332-.654.034-.031-.147-.104-.32-.184-.086-.055.165-.231.287-.402.214-.093-.076.075-.359-.044-.339-.178.117-.281.409-.529.386-.096-.108.058-.291-.047-.411-.125.16-.263.394-.479.411-.104-.084.004-.327-.062-.362-.221.133-.455.369-.733.295.506-1.083 2.024-.344 2.918-.762.102-.062.349-.15.261-.294-.078-.114.203-.069.23-.202.454-.447 1.524.043 2.172-.03.048.309-.295.527-.572.431-.132.021-.33-.303-.291-.067-.027.124-.008.288-.121.371m-5.419-.634c.903.018 1.617-1.001 2.425-1.321.631-.191 1.302-.168 1.936-.344.482-.66 1.302-.896 1.988-1.276.543-.535 1.009-1.606 1.968-1.467-.016.269-.171.508-.357.694.153-.003.284-.1.438-.094.053.276-.246.421-.404.593.712.068-.308.378-.479.6.484.095-.338.196-.323.398.256.242-.684.209-.273.448-.082.124-.258.15-.401.138.141.615-.997.841-1.476.944.511.124 2.837-.423 1.76-.831.297-.183.671-.118.99-.227.008-.103-.243-.075-.336-.098-.494-.098.712-.163.815-.36-.186-.086-.421-.01-.62-.081.246-.068 1.587-.465.77-.486-.187.033-.273-.057-.061-.134.722-.438 2.066-1.473.262-.802 1.482-1.119 2.217-2.57.007-.62 1.379-1.223 1.922-3.365-.02-.741 1.057-1.83.701-3.668-.249-.492.117-.273.256-1.744-.197-1.117-.529 2.79-3.132 4.783-5.896 4.945-.563.859-1.624 1.121-2.265 1.732"}),E.jsx("path",{fill:"#fbec5a",d:"M15.886 20.076c-.091.166-.145.357-.263.505-.662-.588-1.712-.067-2.375-.651-1.256-.909-2.379-1.756-3.421-2.935-.105.026-.057.252-.186.136-.07-.05-.244-.054-.26.015.158.208.316.445.338.711-.108.011-.299-.023-.352.017.143.214.326.404.534.556-.1.016-.297.007-.335.048.207.168.428.341.699.384.055.073-.081.214.034.276.066.027.286.073.135.148-.252.26.305.231.354.357-.475.25.258.394.495.412-.105.089-.235.139-.344.222a8.745 8.745 0 0 0 2.197.829c-.98-.036-1.846-.517-2.743-.856.135-.07.291-.087.431-.148-.291-.058-.608-.077-.864-.237.039-.07.188-.073.27-.109.474-.133-.527-.11-.633-.261.11-.124.458-.045.6-.189-.79-.158-1.694-.405-.236-.398-.761-.21-2.478-1.49-.648-.776-1.235-.994-2.378-2.729-.04-.667-1.008-.899-2.122-3.554.088-.708-1.053-1.834-.715-3.71.249-.492-.471-3.981.959 4.279 6.275 3.808"}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),V$=e=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,...e,children:[E.jsx("path",{fill:"#cc2b1d",d:"M1 11h30v10H1z"}),E.jsx("path",{d:"M5 4h22c2.208 0 4 1.792 4 4v4H1V8c0-2.208 1.792-4 4-4Z"}),E.jsx("path",{fill:"#f8d147",d:"M27 28H5c-2.208 0-4-1.792-4-4v-4h30v4c0 2.208-1.792 4-4 4Z"}),E.jsx("path",{d:"M27 4H5a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h22a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4Zm3 20c0 1.654-1.346 3-3 3H5c-1.654 0-3-1.346-3-3V8c0-1.654 1.346-3 3-3h22c1.654 0 3 1.346 3 3v16Z",opacity:.15}),E.jsx("path",{fill:"#fff",d:"M27 5H5a3 3 0 0 0-3 3v1a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3V8a3 3 0 0 0-3-3Z",opacity:.2})]}),Rg=[{value:"en",label:E.jsx(D$,{})},{value:"uk",label:E.jsx(I$,{})},{value:"it",label:E.jsx(j$,{})},{value:"kz",label:E.jsx(N$,{})},{value:"gm",label:E.jsx(V$,{})}],z$={padding:"0",dropdownIndicator:()=>({display:"none"}),indicatorSeparator:()=>({display:"none"}),control:()=>({border:"none",width:"45px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",caretColor:"transparent",borderRadius:"none",cursor:"pointer",boxShadow:"none",backgroundColor:"transparent",padding:"0"}),menu:e=>({...e,borderRadius:" 15px",border:"none",width:"45px",boxShadow:" rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;",backgroundColor:"transparent",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}),option:(e,{isFocused:t})=>({...e,backgroundColor:t?"#9EBBFF":"transparent",borderRadius:" 15px",display:"flex",padding:"0",justifyContent:"center",alignItems:"center",width:"45px",cursor:"pointer"})},e5=()=>{const{i18n:e}=Ys(),[t,n]=k.useState(e.language);k.useEffect(()=>{const i=localStorage.getItem("language");i&&i!==t&&(e.changeLanguage(i),n(i))},[e,t]);const r=i=>{const o=i.value;e.changeLanguage(o),n(o),localStorage.setItem("language",o)};return E.jsx("div",{children:E.jsx(L$,{options:Rg,value:Rg.find(i=>i.value===t),onChange:r,styles:z$})})};var t5={exports:{}};(function(e,t){(function(r,i){e.exports=i(k)})(y5,n=>(()=>{var r={"./node_modules/css-mediaquery/index.js":(l,a)=>{a.match=m,a.parse=g;var u=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,f=/^(?:(min|max)-)?(.+)/,d=/(em|rem|px|cm|mm|in|pt|pc)?$/,y=/(dpi|dpcm|dppx)?$/;function m(v,w){return g(v).some(function(b){var C=b.inverse,S=b.type==="all"||w.type===b.type;if(S&&C||!(S||C))return!1;var P=b.expressions.every(function($){var R=$.feature,D=$.modifier,A=$.value,I=w[R];if(!I)return!1;switch(R){case"orientation":case"scan":return I.toLowerCase()===A.toLowerCase();case"width":case"height":case"device-width":case"device-height":A=p(A),I=p(I);break;case"resolution":A=h(A),I=h(I);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":A=x(A),I=x(I);break;case"grid":case"color":case"color-index":case"monochrome":A=parseInt(A,10)||1,I=parseInt(I,10)||0;break}switch(D){case"min":return I>=A;case"max":return I<=A;default:return I===A}});return P&&!C||!P&&C})}function g(v){return v.split(",").map(function(w){w=w.trim();var b=w.match(u),C=b[1],S=b[2],P=b[3]||"",$={};return $.inverse=!!C&&C.toLowerCase()==="not",$.type=S?S.toLowerCase():"all",P=P.match(/\([^\)]+\)/g)||[],$.expressions=P.map(function(R){var D=R.match(c),A=D[1].toLowerCase().match(f);return{modifier:A[1],feature:A[2],value:D[2]}}),$})}function x(v){var w=Number(v),b;return w||(b=v.match(/^(\d+)\s*\/\s*(\d+)$/),w=b[1]/b[2]),w}function h(v){var w=parseFloat(v),b=String(v).match(y)[1];switch(b){case"dpcm":return w/2.54;case"dppx":return w*96;default:return w}}function p(v){var w=parseFloat(v),b=String(v).match(d)[1];switch(b){case"em":return w*16;case"rem":return w*16;case"cm":return w*96/2.54;case"mm":return w*96/2.54/10;case"in":return w*96;case"pt":return w*72;case"pc":return w*72/12;default:return w}}},"./node_modules/hyphenate-style-name/index.js":(l,a,u)=>{u.r(a),u.d(a,{default:()=>g});var c=/[A-Z]/g,f=/^ms-/,d={};function y(x){return"-"+x.toLowerCase()}function m(x){if(d.hasOwnProperty(x))return d[x];var h=x.replace(c,y);return d[x]=f.test(h)?"-"+h:h}const g=m},"./node_modules/matchmediaquery/index.js":(l,a,u)=>{var c=u("./node_modules/css-mediaquery/index.js").match,f=typeof window<"u"?window.matchMedia:null;function d(m,g,x){var h=this;if(f&&!x){var p=f.call(window,m);this.matches=p.matches,this.media=p.media,p.addListener(b)}else this.matches=c(m,g),this.media=m;this.addListener=v,this.removeListener=w,this.dispose=C;function v(S){p&&p.addListener(S)}function w(S){p&&p.removeListener(S)}function b(S){h.matches=S.matches,h.media=S.media}function C(){p&&p.removeListener(b)}}function y(m,g,x){return new d(m,g,x)}l.exports=y},"./node_modules/object-assign/index.js":l=>{/* object-assign (c) Sindre Sorhus @license MIT @@ -696,13 +696,13 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var V=F(he,_,se,ge,pe+". * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(){var u=typeof Symbol=="function"&&Symbol.for,c=u?Symbol.for("react.element"):60103,f=u?Symbol.for("react.portal"):60106,d=u?Symbol.for("react.fragment"):60107,y=u?Symbol.for("react.strict_mode"):60108,m=u?Symbol.for("react.profiler"):60114,g=u?Symbol.for("react.provider"):60109,x=u?Symbol.for("react.context"):60110,h=u?Symbol.for("react.async_mode"):60111,p=u?Symbol.for("react.concurrent_mode"):60111,v=u?Symbol.for("react.forward_ref"):60112,w=u?Symbol.for("react.suspense"):60113,b=u?Symbol.for("react.suspense_list"):60120,C=u?Symbol.for("react.memo"):60115,S=u?Symbol.for("react.lazy"):60116,P=u?Symbol.for("react.block"):60121,$=u?Symbol.for("react.fundamental"):60117,R=u?Symbol.for("react.responder"):60118,D=u?Symbol.for("react.scope"):60119;function A(F){return typeof F=="string"||typeof F=="function"||F===d||F===p||F===m||F===y||F===w||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===S||F.$$typeof===C||F.$$typeof===g||F.$$typeof===x||F.$$typeof===v||F.$$typeof===$||F.$$typeof===R||F.$$typeof===D||F.$$typeof===P)}function I(F){if(typeof F=="object"&&F!==null){var V=F.$$typeof;switch(V){case c:var N=F.type;switch(N){case h:case p:case d:case m:case y:case w:return N;default:var X=N&&N.$$typeof;switch(X){case x:case v:case S:case C:case g:return X;default:return V}}case f:return V}}}var B=h,W=p,Z=x,G=g,M=c,U=v,H=d,ie=S,J=C,le=f,ae=m,ye=y,oe=w,de=!1;function Ae(F){return de||(de=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),nt(F)||I(F)===h}function nt(F){return I(F)===p}function j(F){return I(F)===x}function Y(F){return I(F)===g}function ce(F){return typeof F=="object"&&F!==null&&F.$$typeof===c}function ue(F){return I(F)===v}function se(F){return I(F)===d}function ge(F){return I(F)===S}function pe(F){return I(F)===C}function he(F){return I(F)===f}function O(F){return I(F)===m}function T(F){return I(F)===y}function _(F){return I(F)===w}a.AsyncMode=B,a.ConcurrentMode=W,a.ContextConsumer=Z,a.ContextProvider=G,a.Element=M,a.ForwardRef=U,a.Fragment=H,a.Lazy=ie,a.Memo=J,a.Portal=le,a.Profiler=ae,a.StrictMode=ye,a.Suspense=oe,a.isAsyncMode=Ae,a.isConcurrentMode=nt,a.isContextConsumer=j,a.isContextProvider=Y,a.isElement=ce,a.isForwardRef=ue,a.isFragment=se,a.isLazy=ge,a.isMemo=pe,a.isPortal=he,a.isProfiler=O,a.isStrictMode=T,a.isSuspense=_,a.isValidElementType=A,a.typeOf=I})()},"./node_modules/react-is/index.js":(l,a,u)=>{l.exports=u("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(l,a,u)=>{u.r(a),u.d(a,{shallowEqualArrays:()=>f,shallowEqualObjects:()=>c});function c(d,y){if(d===y)return!0;if(!d||!y)return!1;var m=Object.keys(d),g=Object.keys(y),x=m.length;if(g.length!==x)return!1;for(var h=0;h{Object.defineProperty(a,"__esModule",{value:!0});var c=u("react"),f=(0,c.createContext)(void 0);a.default=f},"./src/index.ts":function(l,a,u){var c=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(a,"__esModule",{value:!0}),a.Context=a.toQuery=a.useMediaQuery=a.default=void 0;var f=c(u("./src/useMediaQuery.ts"));a.useMediaQuery=f.default;var d=c(u("./src/Component.ts"));a.default=d.default;var y=c(u("./src/toQuery.ts"));a.toQuery=y.default;var m=c(u("./src/Context.ts"));a.Context=m.default},"./src/mediaQuery.ts":function(l,a,u){var c=this&&this.__assign||function(){return c=Object.assign||function(w){for(var b,C=1,S=arguments.length;C{l.exports=n}},i={};function o(l){var a=i[l];if(a!==void 0)return a.exports;var u=i[l]={exports:{}};return r[l].call(u.exports,u,u.exports,o),u.exports}o.d=(l,a)=>{for(var u in a)o.o(a,u)&&!o.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:a[u]})},o.o=(l,a)=>Object.prototype.hasOwnProperty.call(l,a),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s=o("./src/index.ts");return s})())})(t5);var n5=t5.exports;const B$=()=>{const{t:e}=Ys(),[t,n]=k.useState(!1),[r,i]=k.useState(!1),[o,s]=k.useState(!1),[l,a]=k.useState(!1),[u,c]=k.useState(""),f=hi(Eo),d=Hu(),y=fh(),m=n5.useMediaQuery({query:"(min-width: 768px)"});k.useEffect(()=>{const w=b=>{b.key==="Escape"&&(t?x():r?h():o&&p())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[t,r,o]),k.useEffect(()=>{t||o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t,r,o]),k.useEffect(()=>{if(f&&f.avatarURL){let w=f.avatarURL;w.startsWith("avatars")&&(w=`https://byte-water-back.onrender.com/${w}`),c(w)}},[f]);const g=()=>{n(!0)},x=()=>{n(!1)},h=()=>{i(w=>!w),a(w=>!w)},p=()=>{s(w=>!w),i(!1),a(!1)};function v(){d(Wr()).unwrap().then(()=>{y("/signin"),be.info("Exit successful!"),p()}).catch(()=>be.error("Ooops... Something went wrong!"))}return E.jsxs(E.Fragment,{children:[t&&E.jsxs("div",{children:[E.jsx(gm,{$visible:l}),E.jsx(EC,{onClose:x})]}),f?E.jsx(E.Fragment,{children:E.jsxs(E7,{onClick:h,children:[E.jsx(N7,{src:u,alt:"User Avatar"}),r?E.jsx(kC,{}):E.jsx(k7,{})]})}):E.jsx(O7,{}),E.jsx(A7,{children:E.jsxs(T7,{$visible:r,children:[E.jsxs(vm,{onClick:g,children:[E.jsx(CC,{}),E.jsx(wm,{children:e("setting")})]}),E.jsxs(vm,{onClick:p,children:[E.jsx(OC,{}),E.jsx(wm,{children:e("logOut")})]}),!m&&E.jsx(e5,{})]})}),E.jsx(E.Fragment,{children:E.jsxs(B7,{$visible:o,children:[E.jsx(gm,{onClick:p,$visible:l}),E.jsx(U7,{children:E.jsxs(_7,{$visible:o,children:[E.jsx(I7,{children:e("logOut")}),E.jsx(j7,{children:e("doYouReallyWantToLeave")}),E.jsxs(D7,{children:[E.jsx(ym,{onClick:p,children:e("cancel")}),E.jsx(ym,{onClick:v,children:e("logOut")})]})]})})]})})]})};function U$(e){return E.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:E.jsx("path",{fill:e.theme.icon,d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const H$=v7(U$);function W$(){const e=w3();return E.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:E.jsx("path",{fill:e.icon,d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}const Z$=Q.button` + */(function(){var u=typeof Symbol=="function"&&Symbol.for,c=u?Symbol.for("react.element"):60103,f=u?Symbol.for("react.portal"):60106,d=u?Symbol.for("react.fragment"):60107,y=u?Symbol.for("react.strict_mode"):60108,m=u?Symbol.for("react.profiler"):60114,g=u?Symbol.for("react.provider"):60109,x=u?Symbol.for("react.context"):60110,h=u?Symbol.for("react.async_mode"):60111,p=u?Symbol.for("react.concurrent_mode"):60111,v=u?Symbol.for("react.forward_ref"):60112,w=u?Symbol.for("react.suspense"):60113,b=u?Symbol.for("react.suspense_list"):60120,C=u?Symbol.for("react.memo"):60115,S=u?Symbol.for("react.lazy"):60116,P=u?Symbol.for("react.block"):60121,$=u?Symbol.for("react.fundamental"):60117,R=u?Symbol.for("react.responder"):60118,D=u?Symbol.for("react.scope"):60119;function A(F){return typeof F=="string"||typeof F=="function"||F===d||F===p||F===m||F===y||F===w||F===b||typeof F=="object"&&F!==null&&(F.$$typeof===S||F.$$typeof===C||F.$$typeof===g||F.$$typeof===x||F.$$typeof===v||F.$$typeof===$||F.$$typeof===R||F.$$typeof===D||F.$$typeof===P)}function I(F){if(typeof F=="object"&&F!==null){var V=F.$$typeof;switch(V){case c:var N=F.type;switch(N){case h:case p:case d:case m:case y:case w:return N;default:var X=N&&N.$$typeof;switch(X){case x:case v:case S:case C:case g:return X;default:return V}}case f:return V}}}var B=h,W=p,Z=x,G=g,M=c,U=v,H=d,ie=S,J=C,le=f,ae=m,ye=y,oe=w,de=!1;function Ae(F){return de||(de=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),nt(F)||I(F)===h}function nt(F){return I(F)===p}function j(F){return I(F)===x}function Y(F){return I(F)===g}function ce(F){return typeof F=="object"&&F!==null&&F.$$typeof===c}function ue(F){return I(F)===v}function se(F){return I(F)===d}function ge(F){return I(F)===S}function pe(F){return I(F)===C}function he(F){return I(F)===f}function O(F){return I(F)===m}function T(F){return I(F)===y}function _(F){return I(F)===w}a.AsyncMode=B,a.ConcurrentMode=W,a.ContextConsumer=Z,a.ContextProvider=G,a.Element=M,a.ForwardRef=U,a.Fragment=H,a.Lazy=ie,a.Memo=J,a.Portal=le,a.Profiler=ae,a.StrictMode=ye,a.Suspense=oe,a.isAsyncMode=Ae,a.isConcurrentMode=nt,a.isContextConsumer=j,a.isContextProvider=Y,a.isElement=ce,a.isForwardRef=ue,a.isFragment=se,a.isLazy=ge,a.isMemo=pe,a.isPortal=he,a.isProfiler=O,a.isStrictMode=T,a.isSuspense=_,a.isValidElementType=A,a.typeOf=I})()},"./node_modules/react-is/index.js":(l,a,u)=>{l.exports=u("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(l,a,u)=>{u.r(a),u.d(a,{shallowEqualArrays:()=>f,shallowEqualObjects:()=>c});function c(d,y){if(d===y)return!0;if(!d||!y)return!1;var m=Object.keys(d),g=Object.keys(y),x=m.length;if(g.length!==x)return!1;for(var h=0;h{Object.defineProperty(a,"__esModule",{value:!0});var c=u("react"),f=(0,c.createContext)(void 0);a.default=f},"./src/index.ts":function(l,a,u){var c=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(a,"__esModule",{value:!0}),a.Context=a.toQuery=a.useMediaQuery=a.default=void 0;var f=c(u("./src/useMediaQuery.ts"));a.useMediaQuery=f.default;var d=c(u("./src/Component.ts"));a.default=d.default;var y=c(u("./src/toQuery.ts"));a.toQuery=y.default;var m=c(u("./src/Context.ts"));a.Context=m.default},"./src/mediaQuery.ts":function(l,a,u){var c=this&&this.__assign||function(){return c=Object.assign||function(w){for(var b,C=1,S=arguments.length;C{l.exports=n}},i={};function o(l){var a=i[l];if(a!==void 0)return a.exports;var u=i[l]={exports:{}};return r[l].call(u.exports,u,u.exports,o),u.exports}o.d=(l,a)=>{for(var u in a)o.o(a,u)&&!o.o(l,u)&&Object.defineProperty(l,u,{enumerable:!0,get:a[u]})},o.o=(l,a)=>Object.prototype.hasOwnProperty.call(l,a),o.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s=o("./src/index.ts");return s})())})(t5);var n5=t5.exports;const B$=()=>{const{t:e}=Ys(),[t,n]=k.useState(!1),[r,i]=k.useState(!1),[o,s]=k.useState(!1),[l,a]=k.useState(!1),[u,c]=k.useState(""),f=kr(hi),d=Du(),y=fh(),m=n5.useMediaQuery({query:"(min-width: 768px)"});k.useEffect(()=>{const w=b=>{b.key==="Escape"&&(t?x():r?h():o&&p())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[t,r,o]),k.useEffect(()=>{t||o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t,r,o]),k.useEffect(()=>{if(f&&f.avatarURL){let w=f.avatarURL;w.startsWith("avatars")&&(w=`https://byte-water-back.onrender.com/${w}`),c(w)}},[f]);const g=()=>{n(!0)},x=()=>{n(!1)},h=()=>{i(w=>!w),a(w=>!w)},p=()=>{s(w=>!w),i(!1),a(!1)};function v(){d(Zr()).unwrap().then(()=>{y("/signin"),be.info("Exit successful!"),p()}).catch(()=>be.error("Ooops... Something went wrong!"))}return E.jsxs(E.Fragment,{children:[t&&E.jsxs("div",{children:[E.jsx(wm,{$visible:l}),E.jsx(EC,{onClose:x})]}),f?E.jsx(E.Fragment,{children:E.jsxs(W7,{onClick:h,children:[E.jsx(aE,{src:u,alt:"User Avatar"}),r?E.jsx(kC,{}):E.jsx(K7,{})]})}):E.jsx(Y7,{}),E.jsx(tE,{children:E.jsxs(Q7,{$visible:r,children:[E.jsxs(bm,{onClick:g,children:[E.jsx(CC,{}),E.jsx(Sm,{children:e("setting")})]}),E.jsxs(bm,{onClick:p,children:[E.jsx(OC,{}),E.jsx(Sm,{children:e("logOut")})]}),!m&&E.jsx(e5,{})]})}),E.jsx(E.Fragment,{children:E.jsxs(cE,{$visible:o,children:[E.jsx(wm,{onClick:p,$visible:l}),E.jsx(fE,{children:E.jsxs(J7,{$visible:o,children:[E.jsx(oE,{children:e("logOut")}),E.jsx(sE,{children:e("doYouReallyWantToLeave")}),E.jsxs(iE,{children:[E.jsx(xm,{onClick:p,children:e("cancel")}),E.jsx(xm,{onClick:v,children:e("logOut")})]})]})})]})})]})};function U$(e){return E.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:E.jsx("path",{fill:e.theme.icon,d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const H$=V7(U$);function W$(){const e=C3();return E.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:E.jsx("path",{fill:e.icon,d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}const Z$=Q.button` appearance: none; border: none; background: none; padding: 0; cursor: pointer; -`;function Y$({toggleTheme:e,isDarkTheme:t}){const[n,r]=k.useState(t),i=()=>{r(!n),e()};return E.jsx(E.Fragment,{children:E.jsx(Z$,{className:"toggle-button",onClick:i,children:n?E.jsx(H$,{}):E.jsx(W$,{})})})}const K$=({toggleTheme:e,isDarkTheme:t})=>{const n=hi(Eo),{t:r}=Ys(),[i,o]=k.useState(""),s=n5.useMediaQuery({query:"(min-width: 768px)"});k.useEffect(()=>{n&&o(l(n.username))},[n,n==null?void 0:n.username]);function l(a){return a.startsWith("User")?a.slice(0,4):a}return E.jsx(E.Fragment,{children:E.jsxs(w7,{children:[E.jsxs(x7,{children:[E.jsx(y2,{to:"/",style:{textDecoration:"none"},children:E.jsx(mS,{})}),E.jsx(Y$,{toggleTheme:e,isDarkTheme:t})]}),E.jsxs(b7,{children:[s&&E.jsx(e5,{}),E.jsxs(S7,{children:[n?E.jsx(E.Fragment,{children:E.jsx(V7,{children:i})}):E.jsx(C7,{to:"/signin",style:{textDecoration:"none"},children:r("signIn")}),E.jsx(B$,{})]})]})]})})},Fg=Q.div` +`;function Y$({toggleTheme:e,isDarkTheme:t}){const[n,r]=k.useState(t),i=()=>{r(!n),e()};return E.jsx(E.Fragment,{children:E.jsx(Z$,{className:"toggle-button",onClick:i,children:n?E.jsx(H$,{}):E.jsx(W$,{})})})}const K$=({toggleTheme:e,isDarkTheme:t})=>{const n=kr(hi),{t:r}=Ys(),[i,o]=k.useState(""),s=n5.useMediaQuery({query:"(min-width: 768px)"});k.useEffect(()=>{n&&o(l(n.username))},[n,n==null?void 0:n.username]);function l(a){return a.startsWith("User")?a.slice(0,4):a}return E.jsx(E.Fragment,{children:E.jsxs(z7,{children:[E.jsxs(B7,{children:[E.jsx(y2,{to:"/",style:{textDecoration:"none"},children:E.jsx(IS,{})}),E.jsx(Y$,{toggleTheme:e,isDarkTheme:t})]}),E.jsxs(U7,{children:[s&&E.jsx(e5,{}),E.jsxs(H7,{children:[n?E.jsx(E.Fragment,{children:E.jsx(lE,{children:i})}):E.jsx(Z7,{to:"/signin",style:{textDecoration:"none"},children:r("signIn")}),E.jsx(B$,{})]})]})]})})},Fg=Q.div` max-width: 100%; padding: 0 20px; margin: 0 auto; @@ -762,7 +762,7 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var V=F(he,_,se,ge,pe+". background-color: ${e=>e.theme.body}; color: ${e=>e.theme.colorBody}; } -`,iT=y7` +`,iT=N7` body { background-color: ${e=>e.theme.body}; color: ${e=>e.theme.colorBody}; @@ -774,7 +774,7 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var V=F(he,_,se,ge,pe+". background: ${e=>e.theme.modalCantainerBackground}; background: ${e=>e.theme.dayStylesDayBackground}; box-shadow: ${e=>e.theme.modalCantainerBoxShadow}; -`;const oT={svgAddSvg:"#1C1D26",backgroundLinearGradientTo:"#2F3875",backgroundLinearGradientRight:"#2A3052",body:"#1c1c1c",backgroundImage:`url(${J$})`,backgroundImageMobale:`url(${nT})`,backgroundImageTablet:`url(${tT})`,rangeInputBackground:"#1c1d26;",colorBody:"#d5dff5;",test:"#ee1010",icon:"#d5dff5",iconHeader:"#D5DFF5",buttonBackground:"#5082f2;",buttonColor:"#1c1d26;",welcomeWhyDrinkDivCantainerBackground:"#1f2438;",BottleSVG:"#1B1B21;",formInputBackground:"#1c1d26;",formInputColor:"#5082f2;",formInputColorPlaceholder:"#2f3875;",dailyWrapperBorder:"1px solid #1f2438;",dailyWrapperBackground:"#1c1d26;",dailyWrapperBoxShadow:"0 4px 14px 0 rgba(0, 0, 0, 0.2);",divCantainerBackground:"#1f2438;",modalCantainerBackground:"#1f2438;",modalCantainerBoxShadow:"0 4px 14px 0 rgba(0, 0, 0, 0.2);",dayStylesDayBackground:"#1c1d26;",dayStylesDayPercentage:"#2f3875;;"},sT={svgAddSvg:"#fff",body:"#fff;",backgroundImage:`url(${Q$})`,backgroundImageMobale:`url(${eT})`,backgroundImageTablet:`url(${X$})`,rangeInputBackground:"#d5dff5;",backgroundLinearGradientTo:"#9ebbff",backgroundLinearGradientRight:"#d7e3ff",colorBody:"#2f2f2f",test:"#ee1010",icon:"#5d8ffa",iconHeader:"#2F2F2F",buttonBackground:"#407bff",buttonColor:"#fff",welcomeWhyDrinkDivCantainerBackground:"#ecf2ff;",BottleSVG:"#F5F5F5;",formInputBackground:"#fff;",formInputColor:"#407bff;",formInputColorPlaceholder:"#9ebbff;",dailyWrapperBorder:"1px solid #ecf2ff",dailyWrapperBackground:"#fff;",dailyWrapperBoxShadow:"0 4px 8px 0 rgba(158, 187, 255, 0.12);",divCantainerBackground:"#ECF2FF;",modalCantainerBackground:"#fff;",modalCantainerBoxShadow:"0px 4px 4px 0px rgba(64, 123, 255, 0.3);",dayStylesDayBackground:"#fff;",dayStylesDayPercentage:"#9ebbff;"},aT=()=>{const e=localStorage.getItem("theme"),[t,n]=k.useState(e||"light"),r=t==="dark",i=()=>{const o=r?"light":"dark";n(o),localStorage.setItem("theme",o)};return k.useEffect(()=>{const o=()=>{const s=localStorage.getItem("theme");s&&s!==t&&n(s)};return window.addEventListener("storage",o),()=>{window.removeEventListener("storage",o)}},[t]),E.jsx(E.Fragment,{children:E.jsxs(h7,{theme:r?oT:sT,children:[E.jsx(iT,{}),E.jsx(G$,{}),E.jsxs(rT,{children:[E.jsx("header",{children:E.jsx(Fg,{children:E.jsx(K$,{toggleTheme:i,isDarkTheme:r})})}),E.jsx(q$,{children:E.jsx(Fg,{children:E.jsx(T6,{})})})]})]})})},lT=({children:e})=>hi(Eo)?e:E.jsx(m2,{to:"/signin"}),jo=({children:e})=>hi(Eo)?E.jsx(m2,{to:"/home"}):e,uT=Q.div` +`;const oT={svgAddSvg:"#1C1D26",backgroundLinearGradientTo:"#2F3875",backgroundLinearGradientRight:"#2A3052",body:"#1c1c1c",backgroundImage:`url(${J$})`,backgroundImageMobale:`url(${nT})`,backgroundImageTablet:`url(${tT})`,rangeInputBackground:"#1c1d26;",colorBody:"#d5dff5;",test:"#ee1010",icon:"#d5dff5",iconHeader:"#D5DFF5",buttonBackground:"#5082f2;",buttonColor:"#1c1d26;",welcomeWhyDrinkDivCantainerBackground:"#1f2438;",BottleSVG:"#1B1B21;",formInputBackground:"#1c1d26;",formInputColor:"#5082f2;",formInputColorPlaceholder:"#2f3875;",dailyWrapperBorder:"1px solid #1f2438;",dailyWrapperBackground:"#1c1d26;",dailyWrapperBoxShadow:"0 4px 14px 0 rgba(0, 0, 0, 0.2);",divCantainerBackground:"#1f2438;",modalCantainerBackground:"#1f2438;",modalCantainerBoxShadow:"0 4px 14px 0 rgba(0, 0, 0, 0.2);",dayStylesDayBackground:"#1c1d26;",dayStylesDayPercentage:"#2f3875;;"},sT={svgAddSvg:"#fff",body:"#fff;",backgroundImage:`url(${Q$})`,backgroundImageMobale:`url(${eT})`,backgroundImageTablet:`url(${X$})`,rangeInputBackground:"#d5dff5;",backgroundLinearGradientTo:"#9ebbff",backgroundLinearGradientRight:"#d7e3ff",colorBody:"#2f2f2f",test:"#ee1010",icon:"#5d8ffa",iconHeader:"#2F2F2F",buttonBackground:"#407bff",buttonColor:"#fff",welcomeWhyDrinkDivCantainerBackground:"#ecf2ff;",BottleSVG:"#F5F5F5;",formInputBackground:"#fff;",formInputColor:"#407bff;",formInputColorPlaceholder:"#9ebbff;",dailyWrapperBorder:"1px solid #ecf2ff",dailyWrapperBackground:"#fff;",dailyWrapperBoxShadow:"0 4px 8px 0 rgba(158, 187, 255, 0.12);",divCantainerBackground:"#ECF2FF;",modalCantainerBackground:"#fff;",modalCantainerBoxShadow:"0px 4px 4px 0px rgba(64, 123, 255, 0.3);",dayStylesDayBackground:"#fff;",dayStylesDayPercentage:"#9ebbff;"},aT=()=>{const e=localStorage.getItem("theme"),[t,n]=k.useState(e||"light"),r=t==="dark",i=()=>{const o=r?"light":"dark";n(o),localStorage.setItem("theme",o)};return k.useEffect(()=>{const o=()=>{const s=localStorage.getItem("theme");s&&s!==t&&n(s)};return window.addEventListener("storage",o),()=>{window.removeEventListener("storage",o)}},[t]),E.jsx(E.Fragment,{children:E.jsxs(D7,{theme:r?oT:sT,children:[E.jsx(iT,{}),E.jsx(G$,{}),E.jsxs(rT,{children:[E.jsx("header",{children:E.jsx(Fg,{children:E.jsx(K$,{toggleTheme:i,isDarkTheme:r})})}),E.jsx(q$,{children:E.jsx(Fg,{children:E.jsx(T6,{})})})]})]})})},lT=({children:e})=>kr(hi)?e:E.jsx(m2,{to:"/signin"}),jo=({children:e})=>kr(hi)?E.jsx(m2,{to:"/home"}):e,uT=Q.div` margin: 0; padding: 0; background: #262626; @@ -830,4 +830,4 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var V=F(he,_,se,ge,pe+". display: flex; justify-content: center; align-items: center; -`,Ag=()=>E.jsx(fT,{children:E.jsx(cT,{})}),dT=e=>e.loader.loading,pT=k.lazy(()=>fi(()=>import("./ErrorPage-50b30871.js"),[])),hT=k.lazy(()=>fi(()=>import("./WelcomePage-21824cc1.js"),[])),mT=k.lazy(()=>fi(()=>import("./LoginPage-dfd7deb6.js"),["assets/LoginPage-dfd7deb6.js","assets/BottleSVGDesktop-79f1fc23.js","assets/LoginForm.styled-7fc8d3bf.js"])),gT=k.lazy(()=>fi(()=>import("./RegistrationPage-ee6affea.js"),["assets/RegistrationPage-ee6affea.js","assets/BottleSVGDesktop-79f1fc23.js","assets/LoginForm.styled-7fc8d3bf.js"])),yT=k.lazy(()=>fi(()=>import("./HomePage-fa163926.js"),["assets/HomePage-fa163926.js","assets/HomePage-d9c9b3d0.css"])),vT=k.lazy(()=>fi(()=>import("./ForgotPassword-adff9757.js"),["assets/ForgotPassword-adff9757.js","assets/LoginForm.styled-7fc8d3bf.js","assets/ForgotPassword.styled-7ef57b50.js"])),wT=k.lazy(()=>fi(()=>import("./UpdatePassword-4ee14844.js"),["assets/UpdatePassword-4ee14844.js","assets/ForgotPassword.styled-7ef57b50.js"]));function xT(){const e=Hu();k.useEffect(()=>{e(Hr())},[e]);const t=hi(dT);return E.jsxs(E.Fragment,{children:[t&&E.jsx(Ag,{}),E.jsx(k.Suspense,{fallback:E.jsx(Ag,{}),children:E.jsxs(R6,{children:[E.jsxs(An,{element:E.jsx(aT,{}),children:[E.jsx(An,{path:"/",element:E.jsx(jo,{children:E.jsx(hT,{})})}),E.jsx(An,{path:"/home",element:E.jsx(lT,{children:E.jsx(yT,{})})}),E.jsx(An,{path:"/signin",element:E.jsx(jo,{children:E.jsx(mT,{})})}),E.jsx(An,{path:"/signup",element:E.jsx(jo,{children:E.jsx(gT,{})})}),E.jsx(An,{path:"/forgot-password",element:E.jsx(jo,{children:E.jsx(vT,{})})}),E.jsx(An,{path:"/update-password/:tempCode",element:E.jsx(jo,{children:E.jsx(wT,{})})})]}),E.jsx(An,{path:"*",element:E.jsx(pT,{})})]})})]})}const r5=vh({name:"Auth",initialState:{user:null,isLoading:!1,error:null,token:""},reducers:{changeDayNorma:(e,{payload:t})=>{e.user.dailyNorma=t}},extraReducers:e=>{e.addCase(Gc.pending,t=>{t.isLoading=!0}).addCase(Gc.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Gc.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Qc.pending,t=>{t.isLoading=!0}).addCase(Qc.fulfilled,(t,{payload:n})=>{t.user=n.user,t.token=n.token,t.isLoading=!1}).addCase(Qc.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Hr.pending,t=>{t.isLoading=!0}).addCase(Hr.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Hr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Wr.pending,t=>{t.isLoading=!0}).addCase(Wr.fulfilled,t=>{t.user=null,t.token="",t.isLoading=!1}).addCase(Wr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Zr.pending,t=>{t.isLoading=!0}).addCase(Zr.fulfilled,(t,{payload:n})=>{t.user.avatarURL=n.avatarURL,t.isLoading=!1}).addCase(Zr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Yr.pending,t=>{t.isLoading=!0}).addCase(Yr.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Yr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Zi.pending,t=>{t.isLoading=!0}).addCase(Zi.fulfilled,t=>{t.isLoading=!1}).addCase(Zi.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Yi.pending,t=>{t.isLoading=!0}).addCase(Yi.fulfilled,t=>{t.isLoading=!1}).addCase(Yi.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1})}}),bT=r5.reducer,{changeDayNorma:wj}=r5.actions;var u1="persist:",c1="persist/FLUSH",cc="persist/REHYDRATE",f1="persist/PAUSE",d1="persist/PERSIST",p1="persist/PURGE",h1="persist/REGISTER",ST=-1;function el(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?el=function(n){return typeof n}:el=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},el(e)}function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var LT=5e3;function DT(e,t){var n=e.version!==void 0?e.version:ST;e.debug;var r=e.stateReconciler===void 0?OT:e.stateReconciler,i=e.getStoredState||$T,o=e.timeout!==void 0?e.timeout:LT,s=null,l=!1,a=!0,u=function(f){return f._persist.rehydrated&&s&&!a&&s.update(f),f};return function(c,f){var d=c||{},y=d._persist,m=AT(d,["_persist"]),g=m;if(f.type===d1){var x=!1,h=function(P,$){x||(f.rehydrate(e.key,P,$),x=!0)};if(o&&setTimeout(function(){!x&&h(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),a=!1,s||(s=kT(e)),y)return Fn({},t(g,f),{_persist:y});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(S){var P=e.migrate||function($,R){return Promise.resolve($)};P(S,n).then(function($){h($)},function($){h(void 0,$)})},function(S){h(void 0,S)}),Fn({},t(g,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===p1)return l=!0,f.result(_T(e)),Fn({},t(g,f),{_persist:y});if(f.type===c1)return f.result(s&&s.flush()),Fn({},t(g,f),{_persist:y});if(f.type===f1)a=!0;else if(f.type===cc){if(l)return Fn({},g,{_persist:Fn({},y,{rehydrated:!0})});if(f.key===e.key){var p=t(g,f),v=f.payload,w=r!==!1&&v!==void 0?r(v,c,p,e):p,b=Fn({},w,{_persist:Fn({},y,{rehydrated:!0})});return u(b)}}}if(!y)return t(c,f);var C=t(g,f);return C===g?c:u(Fn({},C,{_persist:y}))}}function Dg(e){return NT(e)||jT(e)||IT()}function IT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function jT(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function NT(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:i5,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h1:return sp({},t,{registry:[].concat(Dg(t.registry),[n.key])});case cc:var r=t.registry.indexOf(n.key),i=Dg(t.registry);return i.splice(r,1),sp({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function BT(e,t,n){var r=n||!1,i=hh(zT,i5,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:h1,key:u})},s=function(u,c,f){var d={type:cc,payload:c,err:f,key:u};e.dispatch(d),i.dispatch(d),r&&l.getState().bootstrapped&&(r(),r=!1)},l=sp({},i,{purge:function(){var u=[];return e.dispatch({type:p1,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:c1,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:f1})},persist:function(){e.dispatch({type:d1,register:o,rehydrate:s})}});return t&&t.manualPersist||l.persist(),l}var m1={},g1={};g1.__esModule=!0;g1.default=WT;function tl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tl=function(n){return typeof n}:tl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tl(e)}function Of(){}var UT={getItem:Of,setItem:Of,removeItem:Of};function HT(e){if((typeof self>"u"?"undefined":tl(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function WT(e){var t="".concat(e,"Storage");return HT(t)?self[t]:UT}m1.__esModule=!0;m1.default=KT;var ZT=YT(g1);function YT(e){return e&&e.__esModule?e:{default:e}}function KT(e){var t=(0,ZT.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,s){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var o5=void 0,qT=GT(m1);function GT(e){return e&&e.__esModule?e:{default:e}}var QT=(0,qT.default)("local");o5=QT;const kf=Ut("water/addWater",async(e,t)=>{try{const{data:n}=await xt.post("water/addWater",e);return n}catch(n){return t.rejectWithValue(n.message)}}),os=Ut("water/getAllWater",async(e,t)=>{try{const{data:n}=await xt.get("water/");return n}catch(n){return t.rejectWithValue(n.message)}}),Pf=Ut("water/editWater",async({id:e,milliliters:t,time:n},r)=>{try{const{data:i}=await xt.put(`water/${e}`,{milliliters:t,time:n});return i}catch(i){return r.rejectWithValue(i.message)}}),$f=Ut("water/deleteWater",async(e,t)=>{try{return await xt.delete(`water/${e}`),e}catch(n){return t.rejectWithValue(n.message)}}),nl=Ut("water/editDailyNorma",async(e,t)=>{try{const{data:n}=await xt.patch("/users/",e);return n}catch(n){return t.rejectWithValue(n)}}),s5=vh({name:"waterSlice",initialState:{modal:{modalIsOpen:!1,modalDeleteOpen:!1,modalAddForm:!1,modalEditForm:!1,isModalDayNorm:!1,modalDayNorma:!1,modalId:""},daysGenStats:!1,isLoading:!1,waterTodayList:[],waterPercentageToday:0},reducers:{changeModalClose:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalAddForm=t,e.modal.modalEditForm=t,e.modal.isModalDayNorm=t,e.modal.modalDayNorma=t,e.modal.modalDeleteOpen=t},changeModalAddForm:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalAddForm=t},changeModalEditForm:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalEditForm=t},changeModalDeleteForm:(e,{payload:t})=>{e.modal.modalDeleteOpen=t},changeModalDailyNorma:(e,{payload:t})=>{e.modal.isModalDayNorm=t,e.modal.modalDayNorma=t},changeShowDaysStats:(e,{payload:t})=>{e.daysGenStats=t},changeTodayList:(e,{payload:t})=>{e.waterTodayList.push(t)},changeModalId:(e,{payload:t})=>{e.modal.modalId=t},updateWaterPercentage:(e,{payload:t})=>{e.waterPercentageToday=t},deleteWater:(e,t)=>{e.waterTodayList=e.waterTodayList.filter(n=>n._id!==t.payload)},editWater:(e,t)=>{const n=e.waterTodayList.findIndex(r=>r._id===t.payload.id);n!==-1&&(e.waterTodayList[n]=t.payload)}},extraReducers:e=>{e.addCase(os.fulfilled,(t,{payload:n})=>{t.waterTodayList=n}).addCase(os.rejected,(t,{payload:n})=>{t.error=n}).addCase(nl.rejected,(t,{payload:n})=>{t.error=n})}}),JT=s5.reducer,{changeModalAddForm:xj,changeModalClose:bj,changeModalEditForm:Sj,changeModalDailyNorma:Ej,changeModalDeleteForm:Cj,changeShowDaysStats:Oj,changeTodayList:kj,changeModalId:Pj,updateWaterPercentage:$j,deleteWater:Tj,editWater:_j}=s5.actions,XT=vh({name:"loader",initialState:{loading:!1},extraReducers:e=>{e.addMatcher(Na(Hr.pending,Wr.pending,Zr.pending,Yr.pending,Zi.pending,Yi.pending,kf.pending,Pf.pending,$f.pending,os.pending,nl.pending),t=>{t.loading=!0}).addMatcher(Na(Hr.rejected,Wr.rejected,Zr.rejected,Yr.rejected,Zi.rejected,Yi.rejected,kf.rejected,Pf.rejected,$f.rejected,os.rejected,nl.rejected),t=>{t.loading=!1}).addMatcher(Na(Hr.fulfilled,Wr.fulfilled,Zr.fulfilled,Yr.fulfilled,Zi.fulfilled,Yi.fulfilled,kf.fulfilled,Pf.fulfilled,$f.fulfilled,os.fulfilled,nl.fulfilled),t=>{t.loading=!1})}}),e_=XT.reducer,t_={key:"root",storage:o5,whitelist:["token"]},n_=DT(t_,bT),a5=P8({reducer:{auth:n_,waterSlice:JT,loader:e_},middleware:e=>e({serializableCheck:{ignoredActions:[c1,cc,f1,d1,p1,h1,"waterSlice/changeTodayList"],ignoredActionPaths:["meta.arg","payload.time"],ignoredPaths:["waterSlice.waterTodayList"]}})}),r_=BT(a5);function rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rl=function(n){return typeof n}:rl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rl(e)}function i_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l_,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,a]=s;for(let u=0;u{let[l,a]=s;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ng(e){return e==null?"":""+e}function u_(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const c_=/###/g;function ss(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(c_,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function h_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>p_[t]):e}class m_{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const g_=[" ",",","?","!",";"],y_=new m_(20);function v_(e,t,n){t=t||"",n=n||"";const r=g_.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=y_.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function up(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&a0?e.replace("_","-"):e}class zg extends fc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const a=su(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!s||typeof r!="string"?a:up(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Vg(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let a=su(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?u5(a,r,o):a={...a,...r},Vg(this.data,l,a),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var c5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Bg={};class lu extends fc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),u_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Sn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!v_(t,r,i);if(s&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${w}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(t,n);let d=f&&f.res;const y=f&&f.usedKey||s,m=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(d),x=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&x.indexOf(g)<0&&!(typeof h=="string"&&g==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,d,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=g==="[object Array]",b=w?[]:{},C=w?m:y;for(const S in d)if(Object.prototype.hasOwnProperty.call(d,S)){const P=`${C}${o}${S}`;b[S]=this.translate(P,{...n,joinArrays:!1,ns:l}),b[S]===P&&(b[S]=d[S])}d=b}}else if(p&&typeof h=="string"&&g==="[object Array]")d=d.join(h),d&&(d=this.extendTranslation(d,t,n,r));else{let w=!1,b=!1;const C=n.count!==void 0&&typeof n.count!="string",S=lu.hasDefaultValue(n),P=C?this.pluralResolver.getSuffix(u,n.count,n):"",$=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",R=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=R&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(d)&&S&&(w=!0,d=D),this.isValidLookup(d)||(b=!0,d=s);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&b?void 0:d,B=S&&D!==d&&this.options.updateMissing;if(b||w||B){if(this.logger.log(B?"updateKey":"missingKey",u,a,s,B?D:d),o){const M=this.resolve(s,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let M=0;M{const ie=S&&H!==d?H:I;this.options.missingKeyHandler?this.options.missingKeyHandler(M,a,U,ie,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,a,U,ie,B,n),this.emit("missingKey",M,a,U,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?W.forEach(M=>{const U=this.pluralResolver.getSuffixes(M,n);R&&n[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(H=>{G([M],s+H,n[`defaultValue${H}`]||D)})}):G(W,s,D))}d=this.extendTranslation(d,t,n,f,r),b&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${s}`),(b||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,w?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const d=t.match(this.interpolator.nestingRegexp),y=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,s,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;i=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",y=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!Bg[`${g[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Bg[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(h=>{if(this.isValidLookup(r))return;s=h;const p=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,h,x,n);else{let w;d&&(w=this.pluralResolver.getSuffix(h,n.count,n));const b=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(p.push(c+w),n.ordinal&&w.indexOf(C)===0&&p.push(c+w.replace(C,this.options.pluralSeparator)),y&&p.push(c+b)),m){const S=`${c}${this.options.contextSeparator}${n.context}`;p.push(S),d&&(p.push(S+w),n.ordinal&&w.indexOf(C)===0&&p.push(S+w.replace(C,this.options.pluralSeparator)),y&&p.push(S+b))}}let v;for(;v=p.pop();)this.isValidLookup(r)||(o=v,r=this.getResource(h,x,v,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Tf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ug{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Sn.create("languageUtils")}getScriptPartFromCode(t){if(t=au(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=au(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}let w_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x_={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const b_=["v1","v2","v3"],S_=["v4"],Hg={zero:0,one:1,two:2,few:3,many:4,other:5};function E_(){const e={};return w_.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x_[t.fc]}})}),e}class C_{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Sn.create("pluralResolver"),(!this.options.compatibilityJSON||S_.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=E_()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(au(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>Hg[i]-Hg[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!b_.includes(this.options.compatibilityJSON)}}function Wg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=d_(e,t,n);return!o&&i&&typeof n=="string"&&(o=up(e,n,r),o===void 0&&(o=up(t,n,r))),o}class O_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Sn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:h_,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Si(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Si(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Si(n.nestingPrefix):n.nestingPrefixEscaped||Si("$t("),this.nestingSuffix=n.nestingSuffix?Si(n.nestingSuffix):n.nestingSuffixEscaped||Si(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const c=m=>{if(m.indexOf(this.formatSeparator)<0){const p=Wg(n,a,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:m}):p}const g=m.split(this.formatSeparator),x=g.shift().trim(),h=g.join(this.formatSeparator).trim();return this.format(Wg(n,a,x,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const g=o[1].trim();if(s=c(g),s===void 0)if(typeof f=="function"){const h=f(t,o,i);s=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Ng(s));const x=m.safeValue(s);if(t=t.replace(o[0],x),d?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,s;function l(a,u){const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const f=a.split(new RegExp(`${c}[ ]*{`));let d=`{${f[1]}`;a=f[0],d=this.interpolate(d,s);const y=d.match(/'/g),m=d.match(/"/g);(y&&y.length%2===0&&!m||m.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,g),`${a}${c}${d}`}return delete s.defaultValue,a}for(;i=this.nestingRegexp.exec(t);){let a=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=c.shift(),a=c,u=!0}if(o=n(l.call(this,i[1].trim(),s),s),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ng(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function k_(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(!s)return;const[l,...a]=s.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Ei(e){const t={};return function(r,i,o){const s=i+JSON.stringify(o);let l=t[s];return l||(l=e(au(i),o),t[s]=l),l(r)}}class P_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Sn.create("formatter"),this.options=t,this.formats={number:Ei((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Ei((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Ei((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Ei((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Ei((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Ei(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:c}=k_(a);if(this.formats[u]){let f=l;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=d.locale||d.lng||i.locale||i.lng||r;f=this.formats[u](l,y,{...c,...i,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function $_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class T_ extends fc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Sn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),o[d]===void 0&&(o[d]=!0),a[f]===void 0&&(a[f]=!0)))}),c||(l[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{f_(a.loaded,[o],s),$_(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...s,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,a):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,i,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function Zg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Yg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ka(){}function __(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ds extends fc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Yg(t),this.services={},this.logger=Sn,this.modules={external:[]},__(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Zg();this.options={...i,...this.options,...Yg(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Sn.init(o(this.modules.logger),this.options):Sn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=P_);const f=new Ug(this.options);this.store=new zg(this.options.resources,this.options);const d=this.services;d.logger=Sn,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new C_(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=o(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new O_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new T_(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(y){for(var m=arguments.length,g=new Array(m>1?m-1:0),x=1;x1?m-1:0),x=1;x{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ka),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=No(),u=()=>{const c=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ka;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>s(a)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=No();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ka),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&c5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=No();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(s,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f`${a.keyPrefix}${d}${m}`):y=a.keyPrefix?`${a.keyPrefix}${d}${s}`:s,i.t(y,a)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=No();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=No();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ug(Zg());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ds(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ka;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ds(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new zg(this.store.data,i),o.services.resourceStore=o.store),o.translator=new lu(o.services,i),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;cE.jsx(fT,{children:E.jsx(cT,{})}),dT=e=>e.loader.loading,pT=k.lazy(()=>pi(()=>import("./ErrorPage-7dfdb422.js"),[])),hT=k.lazy(()=>pi(()=>import("./WelcomePage-1b04377f.js"),[])),mT=k.lazy(()=>pi(()=>import("./LoginPage-04049d83.js"),["assets/LoginPage-04049d83.js","assets/BottleSVGDesktop-3f60ea07.js","assets/LoginForm.styled-5680e7a9.js"])),gT=k.lazy(()=>pi(()=>import("./RegistrationPage-73a95ce4.js"),["assets/RegistrationPage-73a95ce4.js","assets/BottleSVGDesktop-3f60ea07.js","assets/LoginForm.styled-5680e7a9.js"])),yT=k.lazy(()=>pi(()=>import("./HomePage-65adb93a.js"),["assets/HomePage-65adb93a.js","assets/HomePage-d9c9b3d0.css"])),vT=k.lazy(()=>pi(()=>import("./ForgotPassword-7423a349.js"),["assets/ForgotPassword-7423a349.js","assets/LoginForm.styled-5680e7a9.js","assets/ForgotPassword.styled-82aba51a.js"])),wT=k.lazy(()=>pi(()=>import("./UpdatePassword-45e2c80b.js"),["assets/UpdatePassword-45e2c80b.js","assets/ForgotPassword.styled-82aba51a.js"]));function xT(){const e=Du(),t=kr(hi),n=di();k.useEffect(()=>{!t&&n.pathname==="/home"&&e(Wr())},[e,n.pathname]);const r=kr(dT);return E.jsxs(E.Fragment,{children:[r&&E.jsx(Ag,{}),E.jsx(k.Suspense,{fallback:E.jsx(Ag,{}),children:E.jsxs(R6,{children:[E.jsxs(An,{element:E.jsx(aT,{}),children:[E.jsx(An,{path:"/",element:E.jsx(jo,{children:E.jsx(hT,{})})}),E.jsx(An,{path:"/home",element:E.jsx(lT,{children:E.jsx(yT,{})})}),E.jsx(An,{path:"/signin",element:E.jsx(jo,{children:E.jsx(mT,{})})}),E.jsx(An,{path:"/signup",element:E.jsx(jo,{children:E.jsx(gT,{})})}),E.jsx(An,{path:"/forgot-password",element:E.jsx(jo,{children:E.jsx(vT,{})})}),E.jsx(An,{path:"/update-password/:tempCode",element:E.jsx(jo,{children:E.jsx(wT,{})})})]}),E.jsx(An,{path:"*",element:E.jsx(pT,{})})]})})]})}const r5=vh({name:"Auth",initialState:{user:null,isLoading:!1,error:null,token:""},reducers:{changeDayNorma:(e,{payload:t})=>{e.user.dailyNorma=t}},extraReducers:e=>{e.addCase(Gc.pending,t=>{t.isLoading=!0}).addCase(Gc.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Gc.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Qc.pending,t=>{t.isLoading=!0}).addCase(Qc.fulfilled,(t,{payload:n})=>{t.user=n.user,t.token=n.token,t.isLoading=!1}).addCase(Qc.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Wr.pending,t=>{t.isLoading=!0}).addCase(Wr.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Wr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Zr.pending,t=>{t.isLoading=!0}).addCase(Zr.fulfilled,t=>{t.user=null,t.token="",t.isLoading=!1}).addCase(Zr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Yr.pending,t=>{t.isLoading=!0}).addCase(Yr.fulfilled,(t,{payload:n})=>{t.user.avatarURL=n.avatarURL,t.isLoading=!1}).addCase(Yr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Kr.pending,t=>{t.isLoading=!0}).addCase(Kr.fulfilled,(t,{payload:n})=>{t.user=n,t.isLoading=!1}).addCase(Kr.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(Ki.pending,t=>{t.isLoading=!0}).addCase(Ki.fulfilled,t=>{t.isLoading=!1}).addCase(Ki.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1}).addCase(qi.pending,t=>{t.isLoading=!0}).addCase(qi.fulfilled,t=>{t.isLoading=!1}).addCase(qi.rejected,(t,{payload:n})=>{t.error=n,t.isLoading=!1})}}),bT=r5.reducer,{changeDayNorma:wj}=r5.actions;var u1="persist:",c1="persist/FLUSH",cc="persist/REHYDRATE",f1="persist/PAUSE",d1="persist/PERSIST",p1="persist/PURGE",h1="persist/REGISTER",ST=-1;function el(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?el=function(n){return typeof n}:el=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},el(e)}function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var LT=5e3;function DT(e,t){var n=e.version!==void 0?e.version:ST;e.debug;var r=e.stateReconciler===void 0?OT:e.stateReconciler,i=e.getStoredState||$T,o=e.timeout!==void 0?e.timeout:LT,s=null,l=!1,a=!0,u=function(f){return f._persist.rehydrated&&s&&!a&&s.update(f),f};return function(c,f){var d=c||{},y=d._persist,m=AT(d,["_persist"]),g=m;if(f.type===d1){var x=!1,h=function(P,$){x||(f.rehydrate(e.key,P,$),x=!0)};if(o&&setTimeout(function(){!x&&h(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),a=!1,s||(s=kT(e)),y)return Fn({},t(g,f),{_persist:y});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(S){var P=e.migrate||function($,R){return Promise.resolve($)};P(S,n).then(function($){h($)},function($){h(void 0,$)})},function(S){h(void 0,S)}),Fn({},t(g,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===p1)return l=!0,f.result(_T(e)),Fn({},t(g,f),{_persist:y});if(f.type===c1)return f.result(s&&s.flush()),Fn({},t(g,f),{_persist:y});if(f.type===f1)a=!0;else if(f.type===cc){if(l)return Fn({},g,{_persist:Fn({},y,{rehydrated:!0})});if(f.key===e.key){var p=t(g,f),v=f.payload,w=r!==!1&&v!==void 0?r(v,c,p,e):p,b=Fn({},w,{_persist:Fn({},y,{rehydrated:!0})});return u(b)}}}if(!y)return t(c,f);var C=t(g,f);return C===g?c:u(Fn({},C,{_persist:y}))}}function Dg(e){return NT(e)||jT(e)||IT()}function IT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function jT(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function NT(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:i5,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case h1:return sp({},t,{registry:[].concat(Dg(t.registry),[n.key])});case cc:var r=t.registry.indexOf(n.key),i=Dg(t.registry);return i.splice(r,1),sp({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function BT(e,t,n){var r=n||!1,i=hh(zT,i5,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:h1,key:u})},s=function(u,c,f){var d={type:cc,payload:c,err:f,key:u};e.dispatch(d),i.dispatch(d),r&&l.getState().bootstrapped&&(r(),r=!1)},l=sp({},i,{purge:function(){var u=[];return e.dispatch({type:p1,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:c1,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:f1})},persist:function(){e.dispatch({type:d1,register:o,rehydrate:s})}});return t&&t.manualPersist||l.persist(),l}var m1={},g1={};g1.__esModule=!0;g1.default=WT;function tl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tl=function(n){return typeof n}:tl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tl(e)}function Of(){}var UT={getItem:Of,setItem:Of,removeItem:Of};function HT(e){if((typeof self>"u"?"undefined":tl(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function WT(e){var t="".concat(e,"Storage");return HT(t)?self[t]:UT}m1.__esModule=!0;m1.default=KT;var ZT=YT(g1);function YT(e){return e&&e.__esModule?e:{default:e}}function KT(e){var t=(0,ZT.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,s){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var o5=void 0,qT=GT(m1);function GT(e){return e&&e.__esModule?e:{default:e}}var QT=(0,qT.default)("local");o5=QT;const kf=Ut("water/addWater",async(e,t)=>{try{const{data:n}=await xt.post("water/addWater",e);return n}catch(n){return t.rejectWithValue(n.message)}}),os=Ut("water/getAllWater",async(e,t)=>{try{const{data:n}=await xt.get("water/");return n}catch(n){return t.rejectWithValue(n.message)}}),Pf=Ut("water/editWater",async({id:e,milliliters:t,time:n},r)=>{try{const{data:i}=await xt.put(`water/${e}`,{milliliters:t,time:n});return i}catch(i){return r.rejectWithValue(i.message)}}),$f=Ut("water/deleteWater",async(e,t)=>{try{return await xt.delete(`water/${e}`),e}catch(n){return t.rejectWithValue(n.message)}}),nl=Ut("water/editDailyNorma",async(e,t)=>{try{const{data:n}=await xt.patch("/users/",e);return n}catch(n){return t.rejectWithValue(n)}}),s5=vh({name:"waterSlice",initialState:{modal:{modalIsOpen:!1,modalDeleteOpen:!1,modalAddForm:!1,modalEditForm:!1,isModalDayNorm:!1,modalDayNorma:!1,modalId:""},daysGenStats:!1,isLoading:!1,waterTodayList:[],waterPercentageToday:0},reducers:{changeModalClose:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalAddForm=t,e.modal.modalEditForm=t,e.modal.isModalDayNorm=t,e.modal.modalDayNorma=t,e.modal.modalDeleteOpen=t},changeModalAddForm:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalAddForm=t},changeModalEditForm:(e,{payload:t})=>{e.modal.modalIsOpen=t,e.modal.modalEditForm=t},changeModalDeleteForm:(e,{payload:t})=>{e.modal.modalDeleteOpen=t},changeModalDailyNorma:(e,{payload:t})=>{e.modal.isModalDayNorm=t,e.modal.modalDayNorma=t},changeShowDaysStats:(e,{payload:t})=>{e.daysGenStats=t},changeTodayList:(e,{payload:t})=>{e.waterTodayList.push(t)},changeModalId:(e,{payload:t})=>{e.modal.modalId=t},updateWaterPercentage:(e,{payload:t})=>{e.waterPercentageToday=t},deleteWater:(e,t)=>{e.waterTodayList=e.waterTodayList.filter(n=>n._id!==t.payload)},editWater:(e,t)=>{const n=e.waterTodayList.findIndex(r=>r._id===t.payload.id);n!==-1&&(e.waterTodayList[n]=t.payload)}},extraReducers:e=>{e.addCase(os.fulfilled,(t,{payload:n})=>{t.waterTodayList=n}).addCase(os.rejected,(t,{payload:n})=>{t.error=n}).addCase(nl.rejected,(t,{payload:n})=>{t.error=n})}}),JT=s5.reducer,{changeModalAddForm:xj,changeModalClose:bj,changeModalEditForm:Sj,changeModalDailyNorma:Ej,changeModalDeleteForm:Cj,changeShowDaysStats:Oj,changeTodayList:kj,changeModalId:Pj,updateWaterPercentage:$j,deleteWater:Tj,editWater:_j}=s5.actions,XT=vh({name:"loader",initialState:{loading:!1},extraReducers:e=>{e.addMatcher(Na(Wr.pending,Zr.pending,Yr.pending,Kr.pending,Ki.pending,qi.pending,kf.pending,Pf.pending,$f.pending,os.pending,nl.pending),t=>{t.loading=!0}).addMatcher(Na(Wr.rejected,Zr.rejected,Yr.rejected,Kr.rejected,Ki.rejected,qi.rejected,kf.rejected,Pf.rejected,$f.rejected,os.rejected,nl.rejected),t=>{t.loading=!1}).addMatcher(Na(Wr.fulfilled,Zr.fulfilled,Yr.fulfilled,Kr.fulfilled,Ki.fulfilled,qi.fulfilled,kf.fulfilled,Pf.fulfilled,$f.fulfilled,os.fulfilled,nl.fulfilled),t=>{t.loading=!1})}}),e_=XT.reducer,t_={key:"root",storage:o5,whitelist:["token"]},n_=DT(t_,bT),a5=P8({reducer:{auth:n_,waterSlice:JT,loader:e_},middleware:e=>e({serializableCheck:{ignoredActions:[c1,cc,f1,d1,p1,h1,"waterSlice/changeTodayList"],ignoredActionPaths:["meta.arg","payload.time"],ignoredPaths:["waterSlice.waterTodayList"]}})}),r_=BT(a5);function rl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rl=function(n){return typeof n}:rl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rl(e)}function i_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||l_,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,a]=s;for(let u=0;u{let[l,a]=s;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ng(e){return e==null?"":""+e}function u_(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const c_=/###/g;function ss(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(c_,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function h_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>p_[t]):e}class m_{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const g_=[" ",",","?","!",";"],y_=new m_(20);function v_(e,t,n){t=t||"",n=n||"";const r=g_.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const i=y_.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!i.test(e);if(!o){const s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function up(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&a0?e.replace("_","-"):e}class zg extends fc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const a=su(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!s||typeof r!="string"?a:up(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Vg(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let a=su(this.data,l)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?u5(a,r,o):a={...a,...r},Vg(this.data,l,a),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var c5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Bg={};class lu extends fc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),u_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Sn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!v_(t,r,i);if(s&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${w}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(t,n);let d=f&&f.res;const y=f&&f.usedKey||s,m=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(d),x=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&x.indexOf(g)<0&&!(typeof h=="string"&&g==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,d,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=g==="[object Array]",b=w?[]:{},C=w?m:y;for(const S in d)if(Object.prototype.hasOwnProperty.call(d,S)){const P=`${C}${o}${S}`;b[S]=this.translate(P,{...n,joinArrays:!1,ns:l}),b[S]===P&&(b[S]=d[S])}d=b}}else if(p&&typeof h=="string"&&g==="[object Array]")d=d.join(h),d&&(d=this.extendTranslation(d,t,n,r));else{let w=!1,b=!1;const C=n.count!==void 0&&typeof n.count!="string",S=lu.hasDefaultValue(n),P=C?this.pluralResolver.getSuffix(u,n.count,n):"",$=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",R=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=R&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(d)&&S&&(w=!0,d=D),this.isValidLookup(d)||(b=!0,d=s);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&b?void 0:d,B=S&&D!==d&&this.options.updateMissing;if(b||w||B){if(this.logger.log(B?"updateKey":"missingKey",u,a,s,B?D:d),o){const M=this.resolve(s,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let M=0;M{const ie=S&&H!==d?H:I;this.options.missingKeyHandler?this.options.missingKeyHandler(M,a,U,ie,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,a,U,ie,B,n),this.emit("missingKey",M,a,U,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?W.forEach(M=>{const U=this.pluralResolver.getSuffixes(M,n);R&&n[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(H=>{G([M],s+H,n[`defaultValue${H}`]||D)})}):G(W,s,D))}d=this.extendTranslation(d,t,n,f,r),b&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${s}`),(b||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,w?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const d=t.match(this.interpolator.nestingRegexp),y=d&&d.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,s,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;i=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",y=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!Bg[`${g[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Bg[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(h=>{if(this.isValidLookup(r))return;s=h;const p=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,h,x,n);else{let w;d&&(w=this.pluralResolver.getSuffix(h,n.count,n));const b=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(p.push(c+w),n.ordinal&&w.indexOf(C)===0&&p.push(c+w.replace(C,this.options.pluralSeparator)),y&&p.push(c+b)),m){const S=`${c}${this.options.contextSeparator}${n.context}`;p.push(S),d&&(p.push(S+w),n.ordinal&&w.indexOf(C)===0&&p.push(S+w.replace(C,this.options.pluralSeparator)),y&&p.push(S+b))}}let v;for(;v=p.pop();)this.isValidLookup(r)||(o=v,r=this.getResource(h,x,v,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Tf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ug{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Sn.create("languageUtils")}getScriptPartFromCode(t){if(t=au(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=au(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}}let w_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x_={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const b_=["v1","v2","v3"],S_=["v4"],Hg={zero:0,one:1,two:2,few:3,many:4,other:5};function E_(){const e={};return w_.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x_[t.fc]}})}),e}class C_{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Sn.create("pluralResolver"),(!this.options.compatibilityJSON||S_.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=E_()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(au(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>Hg[i]-Hg[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!b_.includes(this.options.compatibilityJSON)}}function Wg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=d_(e,t,n);return!o&&i&&typeof n=="string"&&(o=up(e,n,r),o===void 0&&(o=up(t,n,r))),o}class O_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Sn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:h_,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ci(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ci(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ci(n.nestingPrefix):n.nestingPrefixEscaped||Ci("$t("),this.nestingSuffix=n.nestingSuffix?Ci(n.nestingSuffix):n.nestingSuffixEscaped||Ci(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,s,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const c=m=>{if(m.indexOf(this.formatSeparator)<0){const p=Wg(n,a,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:m}):p}const g=m.split(this.formatSeparator),x=g.shift().trim(),h=g.join(this.formatSeparator).trim();return this.format(Wg(n,a,x,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const g=o[1].trim();if(s=c(g),s===void 0)if(typeof f=="function"){const h=f(t,o,i);s=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Ng(s));const x=m.safeValue(s);if(t=t.replace(o[0],x),d?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,s;function l(a,u){const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const f=a.split(new RegExp(`${c}[ ]*{`));let d=`{${f[1]}`;a=f[0],d=this.interpolate(d,s);const y=d.match(/'/g),m=d.match(/"/g);(y&&y.length%2===0&&!m||m.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,g),`${a}${c}${d}`}return delete s.defaultValue,a}for(;i=this.nestingRegexp.exec(t);){let a=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=c.shift(),a=c,u=!0}if(o=n(l.call(this,i[1].trim(),s),s),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Ng(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function k_(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(s=>{if(!s)return;const[l,...a]=s.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Oi(e){const t={};return function(r,i,o){const s=i+JSON.stringify(o);let l=t[s];return l||(l=e(au(i),o),t[s]=l),l(r)}}class P_{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Sn.create("formatter"),this.options=t,this.formats={number:Oi((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Oi((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Oi((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Oi((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Oi((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Oi(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:c}=k_(a);if(this.formats[u]){let f=l;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=d.locale||d.lng||i.locale||i.lng||r;f=this.formats[u](l,y,{...c,...i,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function $_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class T_ extends fc{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Sn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},s={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),o[d]===void 0&&(o[d]=!0),a[f]===void 0&&(a[f]=!0)))}),c||(l[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),r&&this.store.addResourceBundle(o,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{f_(a.loaded,[o],s),$_(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:s});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,s)},o);return}s(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,s,l)})}saveMissing(t,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...s,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,a):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,i,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function Zg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Yg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ka(){}function __(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ds extends fc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Yg(t),this.services={},this.logger=Sn,this.modules={external:[]},__(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Zg();this.options={...i,...this.options,...Yg(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Sn.init(o(this.modules.logger),this.options):Sn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=P_);const f=new Ug(this.options);this.store=new zg(this.options.resources,this.options);const d=this.services;d.logger=Sn,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new C_(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=o(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new O_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new T_(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(y){for(var m=arguments.length,g=new Array(m>1?m-1:0),x=1;x1?m-1:0),x=1;x{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ka),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=No(),u=()=>{const c=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ka;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],s=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>s(a)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=No();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ka),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&c5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=No();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(s,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f`${a.keyPrefix}${d}${m}`):y=a.keyPrefix?`${a.keyPrefix}${d}${s}`:s,i.t(y,a)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(o,t)))}loadNamespaces(t,n){const r=No();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=No();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(s=>i.indexOf(s)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ug(Zg());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ds(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ka;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ds(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new zg(this.store.data,i),o.services.resourceStore=o.store),o.translator=new lu(o.services,i),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c