diff --git a/dependabot/npm_and_yarn/vite-7.1.5/assets/index-BOZtUEOp.js b/dependabot/npm_and_yarn/vite-7.1.5/assets/index-CwCVmTx0.js similarity index 99% rename from dependabot/npm_and_yarn/vite-7.1.5/assets/index-BOZtUEOp.js rename to dependabot/npm_and_yarn/vite-7.1.5/assets/index-CwCVmTx0.js index 78d71356..6288e90a 100644 --- a/dependabot/npm_and_yarn/vite-7.1.5/assets/index-BOZtUEOp.js +++ b/dependabot/npm_and_yarn/vite-7.1.5/assets/index-CwCVmTx0.js @@ -59,7 +59,7 @@ The error may be correlated with this previous error: ${ce.current.stack} `),H}wg(()=>{ce.current=void 0,q.current=void 0,D.current=F});const G=T.useMemo(()=>T.createElement(E,{...F,ref:oe}),[oe,E,F]);return T.useMemo(()=>w?T.createElement(J.Provider,{value:M},G):G,[J,G,M])}const V=T.memo(N);if(V.WrappedComponent=E,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=E,ax(X,E)}return ax(V,E)}}var lR=hz;function mz(e){const{children:t,context:n,serverState:r,store:i}=e,a=T.useMemo(()=>{const d=aR(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||sR;return T.createElement(u.Provider,{value:a},t)}var I2=mz;/** - * react-router v7.8.2 + * react-router v7.9.1 * * Copyright (c) Remix Software Inc. * @@ -69,7 +69,7 @@ ${ce.current.stack} * @license MIT */var bA="popstate";function pz(e={}){function t(r,i){let{pathname:a,search:s,hash:u}=r.location;return ox("",{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 vz(t,n,null,e)}function vn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ga(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gz(){return Math.random().toString(36).substring(2,10)}function _A(e,t){return{usr:e.state,key:e.key,idx:t}}function ox(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||gz()}}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 vz(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 E=m(),A=E==null?null:E-f;f=E,d&&d({action:u,location:x.location,delta:A})}function b(E,A){u="PUSH";let j=ox(x.location,E,A);f=m()+1;let O=_A(j,f),N=x.createHref(j);try{s.pushState(O,"",N)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;i.location.assign(N)}a&&d&&d({action:u,location:x.location,delta:1})}function _(E,A){u="REPLACE";let j=ox(x.location,E,A);f=m();let O=_A(j,f),N=x.createHref(j);s.replaceState(O,"",N),a&&d&&d({action:u,location:x.location,delta:0})}function w(E){return yz(E)}let x={get action(){return u},get location(){return e(i,s)},listen(E){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(bA,p),d=E,()=>{i.removeEventListener(bA,p),d=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let A=w(E);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:_,go(E){return s.go(E)}};return x}function yz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),vn(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 uR(e,t,n="/"){return bz(e,t,n,!1)}function bz(e,t,n,r){let i=typeof t=="string"?pf(t):t,a=zo(i.pathname||"/",n);if(a==null)return null;let s=cR(e);_z(s);let u=null;for(let d=0;u==null&&d{let m={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;vn(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Io([r,m.relativePath]),b=n.concat(m);s.children&&s.children.length>0&&(vn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),cR(s.children,t,b,p,d)),!(s.path==null&&!s.index)&&t.push({path:p,score:Tz(p,s.index),routesMeta:b})};return e.forEach((s,u)=>{if(s.path===""||!s.path?.includes("?"))a(s,u);else for(let d of fR(s.path))a(s,u,!0,d)}),t}function fR(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=fR(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 _z(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Oz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var xz=/^:[\w-]+$/,wz=3,Sz=2,Cz=1,Ez=10,Az=-2,xA=e=>e==="*";function Tz(e,t){let n=e.split("/"),r=n.length;return n.some(xA)&&(r+=Az),t&&(r+=Sz),n.filter(i=>!xA(i)).reduce((i,a)=>i+(xz.test(a)?wz:a===""?Cz:Ez),r)}function Oz(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 jz(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 Pz(e,t=!1,n=!0){ga(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?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Mz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ga(!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 Rz(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pf(e):e;return{pathname:n?n.startsWith("/")?n:Nz(n,t):t,search:kz(r),hash:Iz(i)}}function Nz(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 H1(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 Lz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function U2(e){let t=Lz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function B2(e,t,n,r=!1){let i;typeof e=="string"?i=pf(e):(i={...e},vn(!i.pathname||!i.pathname.includes("?"),H1("?","pathname","search",i)),vn(!i.pathname||!i.pathname.includes("#"),H1("#","pathname","hash",i)),vn(!i.search||!i.search.includes("#"),H1("#","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=Rz(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,"/"),Dz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Iz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Uz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var dR=["POST","PUT","PATCH","DELETE"];new Set(dR);var Bz=["GET",...dR];new Set(Bz);var gf=T.createContext(null);gf.displayName="DataRouter";var Rv=T.createContext(null);Rv.displayName="DataRouterState";T.createContext(!1);var hR=T.createContext({isTransitioning:!1});hR.displayName="ViewTransition";var zz=T.createContext(new Map);zz.displayName="Fetchers";var Fz=T.createContext(null);Fz.displayName="Await";var _a=T.createContext(null);_a.displayName="Navigation";var Nh=T.createContext(null);Nh.displayName="Location";var xa=T.createContext({outlet:null,matches:[],isDataRoute:!1});xa.displayName="Route";var z2=T.createContext(null);z2.displayName="RouteError";function $z(e,{relative:t}={}){vn(Uu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=T.useContext(_a),{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 Uu(){return T.useContext(Nh)!=null}function xr(){return vn(Uu(),"useLocation() may be used only in the context of a component."),T.useContext(Nh).location}var mR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pR(e){T.useContext(_a).static||T.useLayoutEffect(e)}function Qa(){let{isDataRoute:e}=T.useContext(xa);return e?tF():Vz()}function Vz(){vn(Uu(),"useNavigate() may be used only in the context of a component.");let e=T.useContext(gf),{basename:t,navigator:n}=T.useContext(_a),{matches:r}=T.useContext(xa),{pathname:i}=xr(),a=JSON.stringify(U2(r)),s=T.useRef(!1);return pR(()=>{s.current=!0}),T.useCallback((d,f={})=>{if(ga(s.current,mR),!s.current)return;if(typeof d=="number"){n.go(d);return}let m=B2(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(xa),t=e[e.length-1];return t?t.params:{}}function Lh(e,{relative:t}={}){let{matches:n}=T.useContext(xa),{pathname:r}=xr(),i=JSON.stringify(U2(n));return T.useMemo(()=>B2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Hz(e,t){return gR(e,t)}function gR(e,t,n,r,i){vn(Uu(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=T.useContext(_a),{matches:s}=T.useContext(xa),u=s[s.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let j=p&&p.path||"";vR(f,!p||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (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 b=xr(),_;if(t){let j=typeof t=="string"?pf(t):t;vn(m==="/"||j.pathname?.startsWith(m),`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 "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),_=j}else _=b;let w=_.pathname||"/",x=w;if(m!=="/"){let j=m.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let E=uR(e,{pathname:x});ga(p||E!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),ga(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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=Kz(E&&E.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Io([m,a.encodeLocation?a.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:Io([m,a.encodeLocation?a.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),s,n,r,i);return t&&A?T.createElement(Nh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},A):A}function qz(){let e=eF(),t=Uz(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 Gz=T.createElement(qz,null),Yz=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){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?T.createElement(xa.Provider,{value:this.props.routeContext},T.createElement(z2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Wz({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(xa.Provider,{value:e},n)}function Kz(e,t=[],n=null,r=null,i=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 a=e,s=n?.errors;if(s!=null){let f=a.findIndex(m=>m.route.id&&s?.[m.route.id]!==void 0);vn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,m,p)=>{let b,_=!1,w=null,x=null;n&&(b=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||Gz,u&&(d<0&&p===0?(vR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,x=null):d===p&&(_=!0,x=m.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,p+1)),A=()=>{let j;return b?j=w:_?j=x:m.route.Component?j=T.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=f,T.createElement(Wz,{match:m,routeContext:{outlet:f,matches:E,isDataRoute:n!=null},children:j})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?T.createElement(Yz,{location:n.location,revalidation:n.revalidation,component:w,error:b,children:A(),routeContext:{outlet:null,matches:E,isDataRoute:!0},unstable_onError:r}):A()},null)}function F2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zz(e){let t=T.useContext(gf);return vn(t,F2(e)),t}function Xz(e){let t=T.useContext(Rv);return vn(t,F2(e)),t}function Qz(e){let t=T.useContext(xa);return vn(t,F2(e)),t}function $2(e){let t=Qz(e),n=t.matches[t.matches.length-1];return vn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Jz(){return $2("useRouteId")}function eF(){let e=T.useContext(z2),t=Xz("useRouteError"),n=$2("useRouteError");return e!==void 0?e:t.errors?.[n]}function tF(){let{router:e}=Zz("useNavigate"),t=$2("useNavigate"),n=T.useRef(!1);return pR(()=>{n.current=!0}),T.useCallback(async(i,a={})=>{ga(n.current,mR),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var wA={};function vR(e,t,n){!t&&!wA[e]&&(wA[e]=!0,ga(!1,n))}T.memo(nF);function nF({routes:e,future:t,state:n,unstable_onError:r}){return gR(e,void 0,n,r,t)}function V2({to:e,replace:t,state:n,relative:r}){vn(Uu()," may be used only in the context of a component.");let{static:i}=T.useContext(_a);ga(!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(xa),{pathname:s}=xr(),u=Qa(),d=B2(e,U2(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){vn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function rF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){vn(!Uu(),"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 ga(_!=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(_a.Provider,{value:u},T.createElement(Nh.Provider,{children:t,value:_}))}function Nv({children:e,location:t}){return Hz(sx(e),t)}function sx(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,sx(r.props.children,a));return}vn(r.type===gt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),vn(!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=sx(r.props.children,a)),n.push(s)}),n}var cg="get",fg="application/x-www-form-urlencoded";function Lv(e){return e!=null&&typeof e.tagName=="string"}function iF(e){return Lv(e)&&e.tagName.toLowerCase()==="button"}function aF(e){return Lv(e)&&e.tagName.toLowerCase()==="form"}function oF(e){return Lv(e)&&e.tagName.toLowerCase()==="input"}function sF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lF(e,t){return e.button===0&&(!t||t==="_self")&&!sF(e)}var Np=null;function uF(){if(Np===null)try{new FormData(document.createElement("form"),0),Np=!1}catch{Np=!0}return Np}var cF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function q1(e){return e!=null&&!cF.has(e)?(ga(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${fg}"`),null):e}function fF(e,t){let n,r,i,a,s;if(aF(e)){let u=e.getAttribute("action");r=u?zo(u,t):null,n=e.getAttribute("method")||cg,i=q1(e.getAttribute("enctype"))||fg,a=new FormData(e)}else if(iF(e)||oF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a