From 6bd8158c61a440af777e2cdf2a40b83771cb9c88 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Sat, 11 Jan 2025 08:41:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20preview-env=20from=20@=20shlin?= =?UTF-8?q?kio/shlink-web-client@fa9de43123b996d02b4a4cb85ac5967a823583a7?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/{index-DSlYHiTT.js => index-DdeKDfsK.js} | 2 +- dependabot/npm_and_yarn/eslint-e98c3825a8/index.html | 2 +- dependabot/npm_and_yarn/eslint-e98c3825a8/service-worker.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename dependabot/npm_and_yarn/eslint-e98c3825a8/assets/{index-DSlYHiTT.js => index-DdeKDfsK.js} (99%) diff --git a/dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DSlYHiTT.js b/dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DdeKDfsK.js similarity index 99% rename from dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DSlYHiTT.js rename to dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DdeKDfsK.js index 9585cc84..a5f5a7ca 100644 --- a/dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DSlYHiTT.js +++ b/dependabot/npm_and_yarn/eslint-e98c3825a8/assets/index-DdeKDfsK.js @@ -60,7 +60,7 @@ ${de.current.stack} * @license MIT */var y3="popstate";function yH(e={}){function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return eS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Yh(i)}return _H(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bH(){return Math.random().toString(36).substring(2,10)}function b3(e,t){return{usr:e.state,key:e.key,idx:t}}function eS(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qf(t):t,state:r,key:t&&t.key||n||bH()}}function Yh({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function qf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function _H(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",c=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function p(){s="POP";let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:_.location,delta:O})}function v(w,O){s="PUSH";let S=eS(_.location,w,O);u=h()+1;let E=b3(S,u),T=_.createHref(S);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s="REPLACE";let S=eS(_.location,w,O);u=h();let E=b3(S,u),T=_.createHref(S);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof w=="string"?w:Yh(w);return S=S.replace(/ $/,"%20"),lr(O,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(y3,p),c=w,()=>{i.removeEventListener(y3,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}function A8(e,t,r="/"){return xH(e,t,r,!1)}function xH(e,t,r,n){let i=typeof t=="string"?qf(t):t,o=rl(i.pathname||"/",r);if(o==null)return null;let a=k8(e);wH(a);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(lr(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let u=Da([n,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(lr(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:jH(u,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of R8(o.path))i(o,a,c)}),t}function R8(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=R8(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function wH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:AH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var OH=/^:[\w-]+$/,SH=3,PH=2,CH=1,EH=10,TH=-2,_3=e=>e==="*";function jH(e,t){let r=e.split("/"),n=r.length;return r.some(_3)&&(n+=TH),t&&(n+=PH),r.filter(i=>!_3(i)).reduce((i,o)=>i+(OH.test(o)?SH:o===""?CH:EH),n)}function AH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function kH(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s{if(h==="*"){let x=s[v]||"";a=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=s[v];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function RH(e,t=!1,r=!0){wo(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function NH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wo(!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 rl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function MH(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?qf(e):e;return{pathname:r?r.startsWith("/")?r:LH(r,t):t,search:$H(n),hash:FH(i)}}function LH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function v1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function IH(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function NE(e){let t=IH(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ME(e,t,r,n=!1){let i;typeof e=="string"?i=qf(e):(i={...e},lr(!i.pathname||!i.pathname.includes("?"),v1("?","pathname","search",i)),lr(!i.pathname||!i.pathname.includes("#"),v1("#","pathname","hash",i)),lr(!i.search||!i.search.includes("#"),v1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=MH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}var Da=e=>e.join("/").replace(/\/\/+/g,"/"),DH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$H=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function BH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var N8=["POST","PUT","PATCH","DELETE"];new Set(N8);var UH=["GET",...N8];new Set(UH);var Hf=I.createContext(null);Hf.displayName="DataRouter";var P0=I.createContext(null);P0.displayName="DataRouterState";var M8=I.createContext({isTransitioning:!1});M8.displayName="ViewTransition";var zH=I.createContext(new Map);zH.displayName="Fetchers";var VH=I.createContext(null);VH.displayName="Await";var So=I.createContext(null);So.displayName="Navigation";var Gp=I.createContext(null);Gp.displayName="Location";var Po=I.createContext({outlet:null,matches:[],isDataRoute:!1});Po.displayName="Route";var LE=I.createContext(null);LE.displayName="RouteError";function WH(e,{relative:t}={}){lr(Nu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=I.useContext(So),{hash:i,pathname:o,search:a}=Kp(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:Da([r,o])),n.createHref({pathname:s,search:a,hash:i})}function Nu(){return I.useContext(Gp)!=null}function gn(){return lr(Nu(),"useLocation() may be used only in the context of a component."),I.useContext(Gp).location}var L8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function I8(e){I.useContext(So).static||I.useLayoutEffect(e)}function sa(){let{isDataRoute:e}=I.useContext(Po);return e?nG():qH()}function qH(){lr(Nu(),"useNavigate() may be used only in the context of a component.");let e=I.useContext(Hf),{basename:t,navigator:r}=I.useContext(So),{matches:n}=I.useContext(Po),{pathname:i}=gn(),o=JSON.stringify(NE(n)),a=I.useRef(!1);return I8(()=>{a.current=!0}),I.useCallback((c,u={})=>{if(wo(a.current,L8),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=ME(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Da([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}I.createContext(null);function Gf(){let{matches:e}=I.useContext(Po),t=e[e.length-1];return t?t.params:{}}function Kp(e,{relative:t}={}){let{matches:r}=I.useContext(Po),{pathname:n}=gn(),i=JSON.stringify(NE(r));return I.useMemo(()=>ME(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function HH(e,t){return D8(e,t)}function D8(e,t,r,n){var O;lr(Nu(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=I.useContext(So),{matches:o}=I.useContext(Po),a=o[o.length-1],s=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",h=a&&a.route;{let S=h&&h.path||"";$8(c,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (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=gn(),v;if(t){let S=typeof t=="string"?qf(t):t;lr(u==="/"||((O=S.pathname)==null?void 0:O.startsWith(u)),`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 "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),v=S}else v=p;let b=v.pathname||"/",x=b;if(u!=="/"){let S=u.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let _=A8(e,{pathname:x});wo(h||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),wo(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 w=XH(_&&_.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Da([u,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Da([u,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&w?I.createElement(Gp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},w):w}function GH(){let e=rG(),t=BH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:o},"ErrorBoundary")," or"," ",I.createElement("code",{style:o},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),r?I.createElement("pre",{style:i},r):null,a)}var KH=I.createElement(GH,null),YH=class extends I.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?I.createElement(Po.Provider,{value:this.props.routeContext},I.createElement(LE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZH({routeContext:e,match:t,children:r}){let n=I.useContext(Hf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Po.Provider,{value:e},r)}function XH(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=r==null?void 0:r.errors;if(o!=null){let c=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);lr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let a=!1,s=-1;if(r)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,u,h)=>{let p,v=!1,b=null,x=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||KH,a&&(s<0&&h===0?($8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):s===h&&(v=!0,x=u.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let O;return p?O=b:v?O=x:u.route.Component?O=I.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=c,I.createElement(ZH,{match:u,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:O})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?I.createElement(YH,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function IE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function QH(e){let t=I.useContext(Hf);return lr(t,IE(e)),t}function JH(e){let t=I.useContext(P0);return lr(t,IE(e)),t}function eG(e){let t=I.useContext(Po);return lr(t,IE(e)),t}function DE(e){let t=eG(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function tG(){return DE("useRouteId")}function rG(){var n;let e=I.useContext(LE),t=JH("useRouteError"),r=DE("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function nG(){let{router:e}=QH("useNavigate"),t=DE("useNavigate"),r=I.useRef(!1);return I8(()=>{r.current=!0}),I.useCallback(async(i,o={})=>{wo(r.current,L8),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var x3={};function $8(e,t,r){!t&&!x3[e]&&(x3[e]=!0,wo(!1,r))}I.memo(iG);function iG({routes:e,future:t,state:r}){return D8(e,void 0,r,t)}function $E({to:e,replace:t,state:r,relative:n}){lr(Nu()," may be used only in the context of a component.");let{static:i}=I.useContext(So);wo(!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:o}=I.useContext(Po),{pathname:a}=gn(),s=sa(),c=ME(e,NE(o),a,n==="path"),u=JSON.stringify(c);return I.useEffect(()=>{s(JSON.parse(u),{replace:t,state:r,relative:n})},[s,u,n,t,r]),null}function Pt(e){lr(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function oG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1}){lr(!Nu(),"You cannot render a inside another . You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=I.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof r=="string"&&(r=qf(r));let{pathname:c="/",search:u="",hash:h="",state:p=null,key:v="default"}=r,b=I.useMemo(()=>{let x=rl(c,a);return x==null?null:{location:{pathname:x,search:u,hash:h,state:p,key:v},navigationType:n}},[a,c,u,h,p,v,n]);return wo(b!=null,` is not able to match the URL "${c}${u}${h}" because it does not start with the basename, so the won't render anything.`),b==null?null:I.createElement(So.Provider,{value:s},I.createElement(Gp.Provider,{children:t,value:b}))}function C0({children:e,location:t}){return HH(tS(e),t)}function tS(e,t=[]){let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let o=[...t,i];if(n.type===I.Fragment){r.push.apply(r,tS(n.props.children,o));return}lr(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=tS(n.props.children,o)),r.push(a)}),r}var vg="get",gg="application/x-www-form-urlencoded";function E0(e){return e!=null&&typeof e.tagName=="string"}function aG(e){return E0(e)&&e.tagName.toLowerCase()==="button"}function sG(e){return E0(e)&&e.tagName.toLowerCase()==="form"}function lG(e){return E0(e)&&e.tagName.toLowerCase()==="input"}function uG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cG(e,t){return e.button===0&&(!t||t==="_self")&&!uG(e)}var Bv=null;function fG(){if(Bv===null)try{new FormData(document.createElement("form"),0),Bv=!1}catch{Bv=!0}return Bv}var dG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g1(e){return e!=null&&!dG.has(e)?(wo(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${gg}"`),null):e}function hG(e,t){let r,n,i,o,a;if(sG(e)){let s=e.getAttribute("action");n=s?rl(s,t):null,r=e.getAttribute("method")||vg,i=g1(e.getAttribute("enctype"))||gg,o=new FormData(e)}else if(aG(e)||lG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a