diff --git a/dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-g7IrHO4r.js b/dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-CalioFno.js similarity index 98% rename from dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-g7IrHO4r.js rename to dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-CalioFno.js index b89887f8..4d0c4b94 100644 --- a/dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-g7IrHO4r.js +++ b/dependabot/npm_and_yarn/vite-7ea3deb48f/assets/index-CalioFno.js @@ -59,7 +59,7 @@ The error may be correlated with this previous error: ${ce.current.stack} `),q}wg(()=>{ce.current=void 0,H.current=void 0,D.current=F});const G=T.useMemo(()=>T.createElement(A,{...F,ref:oe}),[oe,A,F]);return T.useMemo(()=>w?T.createElement(J.Provider,{value:M},G):G,[J,G,M])}const V=T.memo(N);if(V.WrappedComponent=A,V.displayName=N.displayName=j,d){const X=T.forwardRef(function(ee,J){return T.createElement(V,{...ee,reactReduxForwardedRef:J})});return X.displayName=j,X.WrappedComponent=A,ux(X,A)}return ux(V,A)}}var y5=Ez;function Az(e){const{children:t,context:n,serverState:r,store:i}=e,a=T.useMemo(()=>{const d=p5(i);return{store:i,subscription:d,getServerState:r?()=>r:void 0}},[i,r]),s=T.useMemo(()=>i.getState(),[i]);wg(()=>{const{subscription:d}=a;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),s!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[a,s]);const u=n||v5;return T.createElement(u.Provider,{value:a},t)}var q2=Az;/** - * react-router v7.7.1 + * react-router v7.8.0 * * Copyright (c) Remix Software Inc. * @@ -69,7 +69,7 @@ ${ce.current.stack} * @license MIT */var AA="popstate";function Tz(e={}){function t(r,i){let{pathname:a,search:s,hash:u}=r.location;return cx("",{pathname:a,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:hh(i)}return jz(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function va(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Oz(){return Math.random().toString(36).substring(2,10)}function TA(e,t){return{usr:e.state,key:e.key,idx:t}}function cx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pf(t):t,state:n,key:t&&t.key||r||Oz()}}function hh({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function pf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function jz(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u="POP",d=null,f=m();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function m(){return(s.state||{idx:null}).idx}function p(){u="POP";let A=m(),C=A==null?null:A-f;f=A,d&&d({action:u,location:x.location,delta:C})}function b(A,C){u="PUSH";let j=cx(x.location,A,C);f=m()+1;let O=TA(j,f),N=x.createHref(j);try{s.pushState(O,"",N)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;i.location.assign(N)}a&&d&&d({action:u,location:x.location,delta:1})}function _(A,C){u="REPLACE";let j=cx(x.location,A,C);f=m();let O=TA(j,f),N=x.createHref(j);s.replaceState(O,"",N),a&&d&&d({action:u,location:x.location,delta:0})}function w(A){return Pz(A)}let x={get action(){return u},get location(){return e(i,s)},listen(A){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(AA,p),d=A,()=>{i.removeEventListener(AA,p),d=null}},createHref(A){return t(i,A)},createURL:w,encodeLocation(A){let C=w(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:b,replace:_,go(A){return s.go(A)}};return x}function Pz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),yn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:hh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b5(e,t,n="/"){return Mz(e,t,n,!1)}function Mz(e,t,n,r){let i=typeof t=="string"?pf(t):t,a=zo(i.pathname||"/",n);if(a==null)return null;let s=_5(e);Rz(s);let u=null;for(let d=0;u==null&&d{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};d.relativePath.startsWith("/")&&(yn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=Io([r,d.relativePath]),m=n.concat(d);a.children&&a.children.length>0&&(yn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),_5(a.children,t,m,f)),!(a.path==null&&!a.index)&&t.push({path:f,score:Bz(f,a.index),routesMeta:m})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))i(a,s);else for(let u of x5(a.path))i(a,s,u)}),t}function x5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=x5(r.join("/")),u=[];return u.push(...s.map(d=>d===""?a:[a,d].join("/"))),i&&u.push(...s),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function Rz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Nz=/^:[\w-]+$/,Lz=3,Dz=2,kz=1,Iz=10,Uz=-2,OA=e=>e==="*";function Bz(e,t){let n=e.split("/"),r=n.length;return n.some(OA)&&(r+=Uz),t&&(r+=Dz),n.filter(i=>!OA(i)).reduce((i,a)=>i+(Nz.test(a)?Lz:a===""?kz:Iz),r)}function zz(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 Fz(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",s=[];for(let u=0;u{if(m==="*"){let w=u[b]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const _=u[b];return p&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function $z(e,t=!1,n=!0){va(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,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Vz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return va(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zo(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 qz(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pf(e):e;return{pathname:n?n.startsWith("/")?n:Hz(n,t):t,search:Yz(r),hash:Kz(i)}}function Hz(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 q1(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 Gz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H2(e){let t=Gz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function G2(e,t,n,r=!1){let i;typeof e=="string"?i=pf(e):(i={...e},yn(!i.pathname||!i.pathname.includes("?"),q1("?","pathname","search",i)),yn(!i.pathname||!i.pathname.includes("#"),q1("#","pathname","hash",i)),yn(!i.search||!i.search.includes("#"),q1("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;i.pathname=b.join("/")}u=p>=0?t[p]:"/"}let d=qz(i,u),f=s&&s!=="/"&&s.endsWith("/"),m=(a||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Io=e=>e.join("/").replace(/\/\/+/g,"/"),Wz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Zz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var w5=["POST","PUT","PATCH","DELETE"];new Set(w5);var Xz=["GET",...w5];new Set(Xz);var gf=T.createContext(null);gf.displayName="DataRouter";var Nv=T.createContext(null);Nv.displayName="DataRouterState";T.createContext(!1);var S5=T.createContext({isTransitioning:!1});S5.displayName="ViewTransition";var Qz=T.createContext(new Map);Qz.displayName="Fetchers";var Jz=T.createContext(null);Jz.displayName="Await";var xa=T.createContext(null);xa.displayName="Navigation";var Nh=T.createContext(null);Nh.displayName="Location";var wa=T.createContext({outlet:null,matches:[],isDataRoute:!1});wa.displayName="Route";var W2=T.createContext(null);W2.displayName="RouteError";function eF(e,{relative:t}={}){yn(Bu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=T.useContext(xa),{hash:i,pathname:a,search:s}=Lh(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:Io([n,a])),r.createHref({pathname:u,search:s,hash:i})}function Bu(){return T.useContext(Nh)!=null}function xr(){return yn(Bu(),"useLocation() may be used only in the context of a component."),T.useContext(Nh).location}var C5="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function E5(e){T.useContext(xa).static||T.useLayoutEffect(e)}function eo(){let{isDataRoute:e}=T.useContext(wa);return e?hF():tF()}function tF(){yn(Bu(),"useNavigate() may be used only in the context of a component.");let e=T.useContext(gf),{basename:t,navigator:n}=T.useContext(xa),{matches:r}=T.useContext(wa),{pathname:i}=xr(),a=JSON.stringify(H2(r)),s=T.useRef(!1);return E5(()=>{s.current=!0}),T.useCallback((d,f={})=>{if(va(s.current,C5),!s.current)return;if(typeof d=="number"){n.go(d);return}let m=G2(d,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Io([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,a,i,e])}T.createContext(null);function vf(){let{matches:e}=T.useContext(wa),t=e[e.length-1];return t?t.params:{}}function Lh(e,{relative:t}={}){let{matches:n}=T.useContext(wa),{pathname:r}=xr(),i=JSON.stringify(H2(n));return T.useMemo(()=>G2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function nF(e,t){return A5(e,t)}function A5(e,t,n,r){yn(Bu(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=T.useContext(xa),{matches:a}=T.useContext(wa),s=a[a.length-1],u=s?s.params:{},d=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let C=m&&m.path||"";T5(d,!m||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let p=xr(),b;if(t){let C=typeof t=="string"?pf(t):t;yn(f==="/"||C.pathname?.startsWith(f),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${C.pathname}" was given in the \`location\` prop.`),b=C}else b=p;let _=b.pathname||"/",w=_;if(f!=="/"){let C=f.replace(/^\//,"").split("/");w="/"+_.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=b5(e,{pathname:w});va(m||x!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),va(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let A=sF(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:Io([f,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:Io([f,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,n,r);return t&&A?T.createElement(Nh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function rF(){let e=dF(),t=Zz(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:a},"ErrorBoundary")," or"," ",T.createElement("code",{style:a},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,s)}var iF=T.createElement(rF,null),aF=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?T.createElement(wa.Provider,{value:this.props.routeContext},T.createElement(W2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function oF({routeContext:e,match:t,children:n}){let r=T.useContext(gf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(wa.Provider,{value:e},n)}function sF(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n?.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);yn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,u=-1;if(n)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let p,b=!1,_=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,_=f.route.errorElement||iF,s&&(u<0&&m===0?(T5("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,w=null):u===m&&(b=!0,w=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,m+1)),A=()=>{let C;return p?C=_:b?C=w:f.route.Component?C=T.createElement(f.route.Component,null):f.route.element?C=f.route.element:C=d,T.createElement(oF,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:C})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?T.createElement(aF,{location:n.location,revalidation:n.revalidation,component:_,error:p,children:A(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):A()},null)}function Y2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lF(e){let t=T.useContext(gf);return yn(t,Y2(e)),t}function uF(e){let t=T.useContext(Nv);return yn(t,Y2(e)),t}function cF(e){let t=T.useContext(wa);return yn(t,Y2(e)),t}function K2(e){let t=cF(e),n=t.matches[t.matches.length-1];return yn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function fF(){return K2("useRouteId")}function dF(){let e=T.useContext(W2),t=uF("useRouteError"),n=K2("useRouteError");return e!==void 0?e:t.errors?.[n]}function hF(){let{router:e}=lF("useNavigate"),t=K2("useNavigate"),n=T.useRef(!1);return E5(()=>{n.current=!0}),T.useCallback(async(i,a={})=>{va(n.current,C5),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var jA={};function T5(e,t,n){!t&&!jA[e]&&(jA[e]=!0,va(!1,n))}T.memo(mF);function mF({routes:e,future:t,state:n}){return A5(e,void 0,n,t)}function Z2({to:e,replace:t,state:n,relative:r}){yn(Bu()," may be used only in the context of a component.");let{static:i}=T.useContext(xa);va(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=T.useContext(wa),{pathname:s}=xr(),u=eo(),d=G2(e,H2(a),s,r==="path"),f=JSON.stringify(d);return T.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function gt(e){yn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function pF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){yn(!Bu(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=T.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof n=="string"&&(n=pf(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:b="default"}=n,_=T.useMemo(()=>{let w=zo(d,s);return w==null?null:{location:{pathname:w,search:f,hash:m,state:p,key:b},navigationType:r}},[s,d,f,m,p,b,r]);return va(_!=null,` is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the won't render anything.`),_==null?null:T.createElement(xa.Provider,{value:u},T.createElement(Nh.Provider,{children:t,value:_}))}function Lv({children:e,location:t}){return nF(fx(e),t)}function fx(e,t=[]){let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let a=[...t,i];if(r.type===T.Fragment){n.push.apply(n,fx(r.props.children,a));return}yn(r.type===gt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),yn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||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=fx(r.props.children,a)),n.push(s)}),n}var cg="get",fg="application/x-www-form-urlencoded";function Dv(e){return e!=null&&typeof e.tagName=="string"}function gF(e){return Dv(e)&&e.tagName.toLowerCase()==="button"}function vF(e){return Dv(e)&&e.tagName.toLowerCase()==="form"}function yF(e){return Dv(e)&&e.tagName.toLowerCase()==="input"}function bF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _F(e,t){return e.button===0&&(!t||t==="_self")&&!bF(e)}var Np=null;function xF(){if(Np===null)try{new FormData(document.createElement("form"),0),Np=!1}catch{Np=!0}return Np}var wF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function H1(e){return e!=null&&!wF.has(e)?(va(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${fg}"`),null):e}function SF(e,t){let n,r,i,a,s;if(vF(e)){let u=e.getAttribute("action");r=u?zo(u,t):null,n=e.getAttribute("method")||cg,i=H1(e.getAttribute("enctype"))||fg,a=new FormData(e)}else if(gF(e)||yF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a