tocco-widget-bundle 3.16.5 → 3.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,4 +59,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescr
59
59
  * LICENSE.md file in the root directory of this source tree.
60
60
  *
61
61
  * @license MIT
62
- */function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function d(e,n=null,r,o){let a=m(t?u().pathname:"/",e,n,r,o);return p("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function f(e){return"string"==typeof e?e:v(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=l(e)?e:d(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=l(e)?e:d(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function d(e={}){return y((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:v(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function v({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 g(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 y(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",u=null,d=f();function f(){return(i.state||{idx:null}).idx}function p(){c="POP";let e=f(),t=null==e?null:e-d;d=e,u&&u({action:c,location:g.location,delta:t})}function v(e){return b(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let g={get action(){return c},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,p),u=e,()=>{o.removeEventListener(s,p),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:m(g.location,e,t);n&&n(r,e),d=f()+1;let s=h(r,d),p=g.createHref(r.unstable_mask||r);try{i.pushState(s,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&u&&u({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:m(g.location,e,t);n&&n(r,e),d=f();let o=h(r,d),s=g.createHref(r.unstable_mask||r);i.replaceState(o,"",s),a&&u&&u({action:c,location:g.location,delta:0})},go:e=>i.go(e)};return g}function b(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),f(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:v(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function w(e){return{defaultValue:e}}var x=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var A=new Set(["lazy","caseSensitive","path","id","index","children"]);var k=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function O(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=S(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=S(n,t(n)),e.children&&(n.children=O(e.children,t,i,r,o)),n}}))}function S(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function E(e,t,n="/"){return j(e,t,n,!1)}function j(e,t,n,r){let o=F(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let a=T(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=M(o);i=D(a[e],t,r)}return i}function P(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function T(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;f(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=G([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(f(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),T(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:R(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of C(e.path))a(e,t,!0,n);else a(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=C(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var _=/^:[\w-]+$/,N=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(N)&&(r+=-2),t&&(r+=2),n.filter((e=>!N(e))).reduce(((e,t)=>e+(_.test(t)?3:""===t?1:10)),r)}function D(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=L({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=L({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:G([a,u.pathname]),pathnameBase:K(G([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=G([a,u.pathnameBase]))}return i}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){p("*"===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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n,o,a)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function M(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 F(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)||"/"}var z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>z.test(e);function B(e,t){let n=Y(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function U(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 <Link to="..."> and the router will parse it for you.`}function W(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function $(e){let t=W(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function q(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},f(!o.pathname||!o.pathname.includes("?"),U("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),U("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),U("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?g(e):e;return r?(r=V(r),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:J(o),hash:X(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var V=e=>e.replace(/\/\/+/g,"/"),G=e=>V(e.join("/")),Y=e=>e.replace(/\/+$/,""),K=e=>Y(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Q=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ee(e){let t=e.map((e=>e.route.path)).filter(Boolean);return G(t)||"/"}var te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let n=e;if("string"!=typeof n||!z.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(te)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=F(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){p(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var re=Symbol("Uninstrumented");function oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=ae(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ae(a,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[re]??o,a=ae(n[e],t,((...e)=>ce(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[re]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[re]??e,r=ae(n.middleware,t,((...e)=>ce(e[0])));return r?(r[re]=t,r):e}))),r}function ae(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=ie(e,t,n,r-1),o=await i,f(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ce(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:le(t),params:{...r},unstable_pattern:o,context:ue(n)}}function se(e,t){return{currentUrl:v(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function le(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ue(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===de}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var de=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fe=["POST","PUT","PATCH","DELETE"],pe=new Set(fe),he=["GET",...fe],me=new Set(he),ve=new Set([301,302,303,307,308]),ge=new Set([307,308]),ye={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ae="remix-router-transitions",ke=Symbol("ResetLoaderData");function Oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;f(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||xe,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...oe(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=O(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,d,h,y=e.dataStrategy||Me,w={unstable_passThroughRequests:!1,...e.future},A=null,k=new Set,S=null,T=null,C=null,_=null!=e.hydrationData,N=E(s,e.history.location,l),R=!1,D=null;if(null!=N||e.patchRoutesOnNavigation){if(N&&!e.hydrationData){Xe(N,s,e.history.location.pathname).active&&(N=null)}if(N)if(N.some((e=>e.route.lazy)))u=!1,d=!u;else if(N.some((e=>Pe(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=N;if(n){let e=N.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}d=!1,u=!0,r.forEach((e=>{let r=Te(e.route,t,n);d=d||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,d=!u;else{u=!1,d=!u,N=[];let t=Xe(null,s,e.history.location.pathname);t.active&&t.matches&&(R=!0,N=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=at(s);u=!0,d=!u,N=n,D={[r.id]:t}}let L,I,M={historyAction:e.history.action,location:e.history.location,matches:N,initialized:u,renderFallback:d,navigation:ye,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},z="POP",B=null,U=!1,W=!1,$=new Map,q=null,V=!1,G=!1,Y=new Set,K=new Map,J=0,X=-1,Q=new Map,ee=new Set,te=new Map,ne=new Map,ie=new Set,ce=new Map,le=null;function ue(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),M={...M,...e};let n=[],r=[];M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{M.fetchers.has(e)||K.has(e)||n.push(e)})),[...k].forEach((r=>r(M,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Re(e))),r.forEach((e=>M.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,a=null!=M.actionData&&null!=M.navigation.formMethod&&bt(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?M.actionData:null;let c=n.loaderData?nt(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,l=M.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,we))));let u,d=!V&&Ye(t,n.matches||M.matches),f=!0===U||null!=M.navigation.formMethod&&bt(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),V||"POP"===z||("PUSH"===z?e.history.push(t,t.state):"REPLACE"===z&&e.history.replace(t,t.state)),"POP"===z){let e=$.get(M.location.pathname);e&&e.has(t.pathname)?u={currentLocation:M.location,nextLocation:t}:$.has(t.pathname)&&(u={currentLocation:t,nextLocation:M.location})}else if(W){let e=$.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),$.set(M.location.pathname,e)),u={currentLocation:M.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:z,location:t,initialized:!0,renderFallback:!1,navigation:ye,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),z="POP",U=!1,W=!1,V=!1,G=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function fe(t,n,o){L&&L.abort(),L=null,z=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&C){let n=qe(e,t);S[n]=C()}}(M.location,M.matches),U=!0===(o&&o.preventScrollReset),W=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,f=o?.initialHydration&&M.matches&&M.matches.length>0&&!R?M.matches:E(u,n,l),p=!0===(o&&o.flushSync);if(f&&M.initialized&&!G&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(o&&o.submission&&bt(o.submission.formMethod)))return void de(n,{matches:f},{flushSync:p});let h=Xe(f,u,n.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}L=new AbortController;let m,v=Je(e.history,n,L.signal,o&&o.submission),g=e.getContext?await e.getContext():new x;if(o&&o.pendingError)m=[ot(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&bt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,f,p={}){ke();let h,m=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(ue({navigation:m},{flushSync:!0===p.flushSync}),d){let e=await Qe(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let v=xt(i,n);if(v.route.action||v.route.lazy){let e=We(a,c,t,n,i,v,f?[]:r,u),o=await me(t,n,e,u,null);if(h=o[v.route.id],!h)for(let e of i)if(o[e.route.id]){h=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else h={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:v.route.id})};if(ht(h)){let n;if(p&&null!=p.replace)n=p.replace;else{n=Ke(h.response.headers.get("Location"),new URL(t.url),l,e.history)===M.location.pathname+M.location.search}return await he(t,h,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(pt(h)){let e=ot(i,v.route.id);return!0!==(p&&p.replace)&&(z="PUSH"),{matches:i,pendingActionResult:[e.route.id,h,v.route.id]}}return{matches:i,pendingActionResult:[v.route.id,h]}}(v,n,o.submission,f,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(pt(r)&&Z(r.error)&&404===r.error.status)return L=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}f=t.matches||f,m=t.pendingActionResult,d=kt(n,o.submission),p=!1,h.active=!1,v=Je(e.history,v.url,v.signal)}let{shortCircuited:y,matches:b,loaderData:w,errors:A}=await async function(t,n,o,u,d,f,p,h,m,v,g,y,b){let w=f||kt(n,p),x=p||h||At(w),A=!V&&!v;if(d){if(A){let e=pe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await Qe(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=i||s,{dsMatches:O,revalidatingFetchers:S}=je(t,u,a,c,e.history,M,o,x,n,v?[]:r,!0===v,G,Y,ie,te,ee,k,l,null!=e.patchRoutesOnNavigation,y,b);if(X=++J,!e.dataStrategy&&!O.some((e=>e.shouldLoad))&&!O.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Ie();return de(n,{matches:o,loaderData:{},errors:y&&pt(y[1])?{[y[0]]:y[1].error}:null,...rt(y),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=pe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),n=Ot(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)})),new Map(M.fetchers)}(S)),ue(e,{flushSync:g})}S.forEach((e=>{De(e.key),e.controller&&K.set(e.key,e.controller)}));let E=()=>S.forEach((e=>De(e.key)));L&&L.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await ve(O,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",E);S.forEach((e=>K.delete(e.key)));let T=ct(j);if(T)return await he(t,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=ct(P),T)return ee.add(T.key),await he(t,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:C,errors:_}=tt(M,o,j,y,S,P);v&&M.errors&&(_={...M.errors,..._});let N=Ie(),R=Fe(X),D=N||R||S.length>0;return{matches:o,loaderData:C,errors:_,...D?{fetchers:new Map(M.fetchers)}:{}}}(v,n,f,g,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m,o&&o.callSiteDefaultShouldRevalidate);y||(L=null,de(n,{matches:b||f,...rt(m),loaderData:w,errors:A}))}function pe(e){return e&&!pt(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function he(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&(G=!0);let d=o.response.headers.get("Location");f(d,"Expected a Location header on the redirect Response"),d=Ke(d,new URL(r.url),l,e.history);let p=m(M.location,d,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(d)){const n=b(d,!0);e=n.origin!==t.location.origin||null==F(n.pathname,l)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}L=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:v,formAction:g,formEncType:y}=M.navigation;!i&&!c&&v&&g&&y&&(i=At(M.navigation));let w=i||c;if(ge.has(o.response.status)&&w&&bt(w.formMethod))await fe(h,p,{submission:{...w,formAction:d},preventScrollReset:s||U,enableViewTransition:a?W:void 0});else{let e=kt(p,i);await fe(h,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||U,enableViewTransition:a?W:void 0})}}async function me(e,t,n,r,o){let a,i={};try{a=await $e(y,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!bt(e.method))for(let e of n){if("error"===a[e.route.id]?.type)break;a.hasOwnProperty(e.route.id)||M.loaderData.hasOwnProperty(e.route.id)||M.errors&&M.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(ft(r)){let o=r.result;i[t]={type:"redirect",response:Ge(o,e,t,n,l)}}else i[t]=await Ve(r);return i}async function ve(e,t,n,r,o){let a=me(n,r,e,o,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await me(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await a,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function ke(){G=!0,te.forEach(((e,t)=>{K.has(t)&&Y.add(t),De(t)}))}function Oe(e,t,n={}){M.fetchers.set(e,t),ue({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ce(e,t,n,r={}){let o=ot(M.matches,t);Re(e),ue({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ne(e){return ne.set(e,(ne.get(e)||0)+1),ie.has(e)&&ie.delete(e),M.fetchers.get(e)||be}function Re(e){let t=M.fetchers.get(e);!K.has(e)||t&&"loading"===t.state&&Q.has(e)||De(e),te.delete(e),Q.delete(e),ee.delete(e),ie.delete(e),Y.delete(e),M.fetchers.delete(e)}function De(e,t){let n=K.get(e);n&&(n.abort(t),K.delete(e))}function Le(e){for(let t of e){let e=St(Ne(t).data);M.fetchers.set(t,e)}}function Ie(){let e=[],t=!1;for(let n of ee){let r=M.fetchers.get(n);f(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Le(e),t}function Fe(e){let t=[];for(let[n,r]of Q)if(r<e){let e=M.fetchers.get(n);f(e,`Expected fetcher: ${n}`),"loading"===e.state&&(De(n),Q.delete(n),t.push(n))}return Le(t),t.length>0}function ze(e){M.blockers.delete(e),ce.delete(e)}function He(e,t){let n=M.blockers.get(e)||we;f("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ce.size)return;ce.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(ce.entries()),[o,a]=r[r.length-1],i=M.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=it(404,{pathname:e}),n=i||s,{matches:r,route:o}=at(n);return{notFoundMatches:r,route:o,error:t}}function qe(e,t){if(T){return T(e,t.map((e=>P(e,M.loaderData))))||e.key}return e.key}function Ye(e,t){if(S){let n=qe(e,t),r=S[n];if("number"==typeof r)return r}return null}function Xe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Qe(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,f=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||_e(e,t,d,f,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let p=E(d,n,l),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=j(d,n,l,!0),!(h&&u.length<h.length&&Ze(u,h.slice(0,u.length))))return{type:"success",matches:p}}if(h||(h=j(d,n,l,!0)),!h||Ze(u,h))return{type:"success",matches:null};u=h}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return h={get basename(){return l},get future(){return w},get state(){return M},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(I)return I(),void(I=void 0);p(0===ce.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Be({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{I=e}));return e.history.go(-1*r),He(o,{state:"blocked",location:n,proceed(){He(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(M.blockers);e.set(o,we),ue({blockers:e})}}),B?.resolve(),void(B=null)}return fe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,$);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ae,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,$);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return M.initialized||fe("POP",M.location,{initialHydration:!0}),h},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,C=t,T=n||null,!_&&M.navigation===ye){_=!0;let e=Ye(M.location,M.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{S=null,C=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=Et());let t=B.promise;return e.history.go(n),t}let o,a=Se(M.location,M.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:c,error:s}=Ee(!1,a,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?g(r.unstable_mask):{...M.location.unstable_mask,...r.unstable_mask}}}let u=M.location,d=m(u,i,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let f=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===f?p="REPLACE":!1===f||null!=c&&bt(c.formMethod)&&c.formAction===M.location.pathname+M.location.search&&(p="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:p});y?He(y,{state:"blocked",location:d,proceed(){He(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(y,we),ue({blockers:e})}}):await fe(p,d,{submission:c,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){De(t);let d=!0===(u&&u.flushSync),p=i||s,h=Se(M.location,M.matches,l,o,n,u?.relative),m=E(p,h,l),v=Xe(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void Ce(t,n,it(404,{pathname:h}),{flushSync:d});let{path:g,submission:y,error:b}=Ee(!0,h,u);if(b)return void Ce(t,n,b,{flushSync:d});let w=e.getContext?await e.getContext():new x,A=!0===(u&&u.preventScrollReset);y&&bt(y.formMethod)?await async function(t,n,o,u,d,p,h,m,v,g){ke(),te.delete(t);let y=M.fetchers.get(t);Oe(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(v,y),{flushSync:h});let b=new AbortController,w=Je(e.history,o,b.signal,v);if(p){let e=await Qe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ce(t,n,e.error,{flushSync:h});if(!e.matches)return void Ce(t,n,it(404,{pathname:o}),{flushSync:h});u=e.matches}let x=xt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:v.formMethod,pathname:o,routeId:n});return void Ce(t,n,e,{flushSync:h})}K.set(t,b);let A=J,k=We(a,c,w,o,u,x,r,d),O=await me(w,o,k,d,t),S=O[x.route.id];if(!S)for(let e of k)if(O[e.route.id]){S=O[e.route.id];break}if(w.signal.aborted)return void(K.get(t)===b&&K.delete(t));if(ie.has(t)){if(ht(S)||pt(S))return void Oe(t,St(void 0))}else{if(ht(S))return K.delete(t),X>A?void Oe(t,St(void 0)):(ee.add(t),Oe(t,Ot(v)),he(w,S,!1,{fetcherSubmission:v,preventScrollReset:m}));if(pt(S))return void Ce(t,n,S.error)}let j=M.navigation.location||M.location,P=Je(e.history,j,b.signal),T=i||s,C="idle"!==M.navigation.state?E(T,M.navigation.location,l):M.matches;f(C,"Didn't find any matches after fetcher action");let _=++J;Q.set(t,_);let N=Ot(v,S.data);M.fetchers.set(t,N);let{dsMatches:R,revalidatingFetchers:D}=je(P,d,a,c,e.history,M,C,v,j,r,!1,G,Y,ie,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,S],g);D.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=M.fetchers.get(t),r=Ot(void 0,n?n.data:void 0);M.fetchers.set(t,r),De(t),e.controller&&K.set(t,e.controller)})),ue({fetchers:new Map(M.fetchers)});let I=()=>D.forEach((e=>De(e.key)));b.signal.addEventListener("abort",I);let{loaderResults:F,fetcherResults:H}=await ve(R,D,P,j,d);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",I),Q.delete(t),K.delete(t),D.forEach((e=>K.delete(e.key))),M.fetchers.has(t)){let e=St(S.data);M.fetchers.set(t,e)}let B=ct(F);if(B)return he(P,B.result,!1,{preventScrollReset:m});if(B=ct(H),B)return ee.add(B.key),he(P,B.result,!1,{preventScrollReset:m});let{loaderData:U,errors:W}=tt(M,C,F,void 0,D,H);Fe(_),"loading"===M.navigation.state&&_>X?(f(z,"Expected pending action"),L&&L.abort(),de(M.navigation.location,{matches:C,loaderData:U,errors:W,fetchers:new Map(M.fetchers)})):(ue({errors:W,loaderData:nt(M.loaderData,U,C,W),fetchers:new Map(M.fetchers)}),G=!1)}(t,n,g,m,w,v.active,d,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:g}),await async function(t,n,o,i,s,l,u,d,f){let p=M.fetchers.get(t);Oe(t,Ot(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Je(e.history,o,h.signal);if(l){let e=await Qe(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ce(t,n,e.error,{flushSync:u});if(!e.matches)return void Ce(t,n,it(404,{pathname:o}),{flushSync:u});i=e.matches}let v=xt(i,o);K.set(t,h);let g=J,y=We(a,c,m,o,i,v,r,s),b=await me(m,o,y,s,t),w=b[v.route.id];K.get(t)===h&&K.delete(t);if(m.signal.aborted)return;if(ie.has(t))return void Oe(t,St(void 0));if(ht(w))return X>g?void Oe(t,St(void 0)):(ee.add(t),void await he(m,w,!1,{preventScrollReset:d}));if(pt(w))return void Ce(t,n,w.error);Oe(t,St(w.data))}(t,n,g,m,w,v.active,d,A,y))},revalidate:function(){le||(le=Et()),ke(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(fe(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(fe(z||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===W}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ne,resetFetcher:function(e,t){De(e,t?.reason),Oe(e,St(null))},deleteFetcher:function(e){let t=(ne.get(e)||0)-1;t<=0?(ne.delete(e),ie.add(e)):ne.set(e,t),ue({fetchers:new Map(M.fetchers)})},dispose:function(){A&&A(),q&&q(),k.clear(),L&&L.abort(),M.fetchers.forEach(((e,t)=>Re(t))),M.blockers.forEach(((e,t)=>ze(t)))},getBlocker:function(e,t){let n=M.blockers.get(e)||we;return ce.get(e)!==t&&ce.set(e,t),n},deleteBlocker:ze,patchRoutes:function(e,t,n=!1){let r=null==i;_e(e,t,i||s,c,a,n),r&&(s=[...s],ue({}))},_internalFetchControllers:K,_internalSetRoutes:function(e){c={},i=O(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(h=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[re]??e.navigate,r=ae(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?v(n):".",...se(e,r??{})}}));r&&(r[re]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[re]??e.fetch,r=ae(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...se(e,o??{})}}));r&&(r[re]=t,e.fetch=r)}return e}(h,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),h}function Se(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=q(r||".",$(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=wt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:G([e,t])}({basename:n,pathname:s.pathname})),v(s)}function Ee(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!yt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:it(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=st(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!bt(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!bt(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Qe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Qe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ze(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ze(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(bt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&wt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:v(l),submission:s}}function je(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b,w){let x,A=b?pt(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&pt(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let S=b?b[1].statusCode:void 0,j=S&&S>=400,P={currentUrl:k,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:A,actionStatus:S},T=ee(i),C=i.map(((o,i)=>{let{route:c}=o,f=null;if(null!=x&&i>x)f=!1;else if(c.lazy)f=!0;else if(Pe(c))if(u){let{shouldLoad:e}=Te(c,a.loaderData,a.errors);f=e}else(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o})(a.loaderData,a.matches[i],o)&&(f=!0);else f=!1;if(null!==f)return Ue(n,r,e,s,T,o,l,t,f);let p=!1;"boolean"==typeof w?p=w:j?p=!1:(d||k.pathname+k.search===O.pathname+O.search||k.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(p=!0);let h={...P,defaultShouldRevalidate:p},m=Ce(o,h);return Ue(n,r,e,s,T,o,l,t,m,h,w)})),_=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=E(v,e.path,g);if(!b){if(y&&h)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let x=xt(b,e.path),A=new AbortController,k=Je(o,e.path,A.signal),O=null;if(f.has(c))f.delete(c),O=We(n,r,k,e.path,b,x,l,t);else if(h)d&&(O=We(n,r,k,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!j&&d;let a={...P,defaultShouldRevalidate:o};Ce(x,a)&&(O=We(n,r,k,e.path,b,x,l,t,a))}O&&_.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:x,request:k,controller:A})})),{dsMatches:C,revalidatingFetchers:_}}function Pe(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Te(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pe(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function Ce(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function _e(e,t,n,r,o,a){let i;if(e){let t=r[e];f(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Ne(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=O(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=O([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Ne(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every(((e,n)=>t.children?.some((t=>Ne(e,t)))))??!1))}var Re=new WeakMap,De=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(f(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=Re.get(o);i||(i={},Re.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return A.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)p(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},Le=new WeakMap;async function Ie(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Me(e){return e.matches.some((e=>e.route.middleware))?Fe(e,(()=>Ie(e))):Ie(e)}function Fe(e,t){return ze(e,t,(e=>{if(gt(e))throw e;return e}),ut,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),a=ot(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function ze(e,t,n,r,o){let{matches:a,...i}=e,c=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await He(i,c,t,n,r,o)}async function He(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,f=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await He(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await f()},l.value)}catch(e){return await a(e,u,l)}}function Be(e,t,n,r,o){let a=De({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(f(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Le.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{f("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,k.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?p(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Le.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=De({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,bt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Ue(e,t,n,r,o,a,i,c,s,l=null,u){let d=!1,f=Be(e,t,n,a,i);return{...a,_lazyPromises:f,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?Ce(a,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=a.route,u=d||s||e&&!bt(n.method)&&(t||i),p=l&&l.length>0&&!i&&!t;return!u||!bt(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:i,scopedContext:c}){let s,l,u=bt(e.method),d=u?"action":"loader",f=o=>{let a,s=new Promise(((e,t)=>a=t));l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Xe(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==a?[a]:[]),f=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([f,s])};try{let t=u?r.route.action:r.route.loader;if(o||a)if(t){let e,[n]=await Promise.all([f(t).catch((t=>{e=t})),o,a]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([f(t),a])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await f(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:c})}}}function We(e,t,n,r,o,a,i,c,s=null){return o.map((l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:Be(e,t,n,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ue(e,t,n,r,ee(o),l,i,c,!0,s)))}async function $e(e,t,n,r,o,a,i){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Xe(t,n),unstable_pattern:ee(r),params:r[0].params,context:a,matches:r},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=c;return Fe(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function qe(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function Ve(e){let{result:t,type:n}=e;if(vt(t)){let e;try{e=await qe(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?mt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:lt(t),statusCode:Z(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Z(t)?t.status:void 0}:mt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ge(e,t,n,r,o){let a=e.headers.get("Location");if(f(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!H(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=Se(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}var Ye=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ke(e,t,n,r){if(H(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(Ye.includes(o.protocol))throw new Error("Invalid redirect location");let a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return V(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if(Ye.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(st(t)).toString(),a={signal:n};if(r&&bt(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Qe(r.formData):a.body=r.formData}return new Request(o,a)}function Xe(e,t){let n=new URL(e.url),r="string"==typeof t?g(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Qe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function et(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&pt(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,p=t[d];if(f(!ht(p),"Cannot handle redirect results in processLoaderData"),pt(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[d]=t;else{let n=ot(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=ke),s||(s=!0,a=Z(p.error)?p.error.status:500),p.headers&&(l[d]=p.headers)}else i[d]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[d]=p.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function tt(e,t,n,r,o,a){let{loaderData:i,errors:c}=et(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(f(i,"Did not find corresponding fetcher result"),pt(i)){let t=ot(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(ht(i))f(!1,"Unhandled fetcher revalidation redirect");else{let t=St(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function nt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ke)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function rt(e){return e?pt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ot(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function at(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function it(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Q(e||500,i,new Error(c),!0)}function ct(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ht(r))return{key:n,result:r}}}function st(e){return v({..."string"==typeof e?g(e):e,hash:""})}function lt(e){return new Q(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ut(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&dt(t)))}function dt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ft(e){return vt(e.result)&&ve.has(e.result.status)}function pt(e){return"error"===e.type}function ht(e){return"redirect"===(e&&e.type)}function mt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function vt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function gt(e){return vt(e)&&(t=e.status,ve.has(t))&&e.headers.has("Location");var t}function yt(e){return me.has(e.toUpperCase())}function bt(e){return pe.has(e.toUpperCase())}function wt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function xt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&wt(n||""))return e[e.length-1];let r=W(e);return r[r.length-1]}function At(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function kt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ot(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function St(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Et(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var jt=a.createContext(null);jt.displayName="DataRouter";var Pt=a.createContext(null);Pt.displayName="DataRouterState";var Tt=a.createContext(!1);function Ct(){return a.useContext(Tt)}var _t=a.createContext({isTransitioning:!1});_t.displayName="ViewTransition";var Nt=a.createContext(new Map);Nt.displayName="Fetchers";var Rt=a.createContext(null);Rt.displayName="Await";var Dt=a.createContext(null);Dt.displayName="Navigation";var Lt=a.createContext(null);Lt.displayName="Location";var It=a.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Mt=a.createContext(null);Mt.displayName="RouteError";var Ft="REACT_ROUTER_ERROR";function zt(){return null!=a.useContext(Lt)}function Ht(){return f(zt(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Lt).location}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ut(e){a.useContext(Dt).static||a.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=a.useContext(It);return e?function(){let{router:e}=tn("useNavigate"),t=rn("useNavigate"),n=a.useRef(!1);return Ut((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{p(n.current,Bt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){f(zt(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(jt),{basename:t,navigator:n}=a.useContext(Dt),{matches:r}=a.useContext(It),{pathname:o}=Ht(),i=JSON.stringify($(r)),c=a.useRef(!1);return Ut((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(p(c.current,Bt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=q(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:G([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function $t(){let{matches:e}=a.useContext(It),t=e[e.length-1];return t?t.params:{}}function qt(e,{relative:t}={}){let{matches:n}=a.useContext(It),{pathname:r}=Ht(),o=JSON.stringify($(n));return a.useMemo((()=>q(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Vt(e,t,n){f(zt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(Dt),{matches:o}=a.useContext(It),i=o[o.length-1],c=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";un(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,h=Ht();if(t){let e="string"==typeof t?g(t):t;f("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` 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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=E(e,{pathname:v});p(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),p(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Zt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:G([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:G([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?a.createElement(Lt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},b):b}function Gt(){let e=an(),t=Z(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)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Yt=a.createElement(Gt,null),Kt=class extends a.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Ft}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new Q(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(It.Provider,{value:this.props.routeContext},a.createElement(Mt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Xt,{error:e},t):t}};Kt.contextType=Tt;var Jt=new WeakMap;function Xt({children:e,error:t}){let{basename:n}=a.useContext(Dt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Ft}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Jt.get(t);if(r)throw r;let o=ne(e.location,n);if(te&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Qt({routeContext:e,match:t,children:n}){let r=a.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(It.Provider,{value:e},n)}function Zt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ee(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,f=!1,p=null,h=null;r&&(d=i&&n.route.id?i[n.route.id]:void 0,p=n.route.errorElement||Yt,c&&(s<0&&0===l?(un("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):s===l&&(f=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,l+1)),v=()=>{let t;return t=d?p:f?h:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Qt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(Kt,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):v()}),null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tn(e){let t=a.useContext(jt);return f(t,en(e)),t}function nn(e){let t=a.useContext(Pt);return f(t,en(e)),t}function rn(e){let t=function(e){let t=a.useContext(It);return f(t,en(e)),t}(e),n=t.matches[t.matches.length-1];return f(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function on(){let{matches:e,loaderData:t}=nn("useMatches");return a.useMemo((()=>e.map((e=>P(e,t)))),[e,t])}function an(){let e=a.useContext(Mt),t=nn("useRouteError"),n=rn("useRouteError");return void 0!==e?e:t.errors?.[n]}var cn=0;function sn(e){let{router:t,basename:n}=tn("useBlocker"),r=nn("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++cn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):we}var ln={};function un(e,t,n){t||ln[e]||(ln[e]=!0,p(!1,n))}var dn={};function fn(e,t){e||dn[t]||(dn[t]=!0,console.warn(t))}var pn=(r||(r=n.t(a,2))).useOptimistic,hn=()=>{};function mn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var vn=["HydrateFallback","hydrateFallbackElement"];function gn(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:vn,mapRouteProperties:mn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var yn=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function bn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Ct();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,pn?pn(u):[u,hn]);var u;let[d,f]=a.useState(),[p,h]=a.useState({isTransitioning:!1}),[m,v]=a.useState(),[g,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),A=a.useCallback(((o,{deletedFetchers:i,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:ee(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),fn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(fn(null==d||p,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&p){if(t&&u){t((()=>{g&&(m?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})}))})),void t((()=>y(n)))}g?(m?.resolve(),g.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>wn(e,o))),c(o)}))}),[e.window,t,g,m,r,l,n]);a.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let k=s.initialized;a.useLayoutEffect((()=>{!k&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[k,A,e.state]),a.useEffect((()=>{p.isTransitioning&&!p.flushSync&&v(new yn)}),[p]),a.useEffect((()=>{if(m&&d&&e.window){let t=d,n=m.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>wn(e,t))),c(t)})),await n}));o.finished.finally((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})})),y(o)}}),[d,m,e.window,r,l]),a.useEffect((()=>{m&&d&&s.location.key===d.location.key&&m.resolve()}),[m,g,s.location,d]),a.useEffect((()=>{!p.isTransitioning&&b&&(f(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[p.isTransitioning,b]);let O=a.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",E=a.useMemo((()=>({router:e,navigator:O,static:!1,basename:S,onError:n})),[e,O,S,n]);return a.createElement(a.Fragment,null,a.createElement(jt.Provider,{value:E},a.createElement(Pt.Provider,{value:s},a.createElement(Nt.Provider,{value:x.current},a.createElement(_t.Provider,{value:p},a.createElement(Sn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:O,unstable_useTransitions:r},a.createElement(xn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function wn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var xn=a.memo(An);function An({routes:e,future:t,state:n,isStatic:r,onError:o}){return Vt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function kn({to:e,replace:t,state:n,relative:r}){f(zt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Dt);p(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=a.useContext(It),{pathname:c}=Ht(),s=Wt(),l=q(e,$(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function On(e){f(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Sn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){f(!zt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:v="default",unstable_mask:y}=n,b=a.useMemo((()=>{let e=F(u,s);return null==e?null:{location:{pathname:e,search:d,hash:h,state:m,key:v,unstable_mask:y},navigationType:r}}),[s,u,d,h,m,v,r,y]);return p(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(Dt.Provider,{value:l},a.createElement(Lt.Provider,{children:t,value:b}))}function En({children:e,location:t}){return Vt(jn(e),t)}a.Component;function jn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,jn(e.props.children,o));f(e.type===On,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),f(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=jn(e.props.children,o)),n.push(i)})),n}var Pn="get",Tn="application/x-www-form-urlencoded";function Cn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function _n(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Nn=null;var Rn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dn(e){return null==e||Rn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tn}"`),null)}function Ln(e,t){let n,r,o,a,i;if(Cn(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Pn,o=Dn(e.getAttribute("enctype"))||Tn,a=new FormData(e)}else if(function(e){return Cn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Cn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Pn,o=Dn(e.getAttribute("formenctype"))||Dn(i.getAttribute("enctype"))||Tn,a=new FormData(i,e),!function(){if(null===Nn)try{new FormData(document.createElement("form"),0),Nn=!1}catch(e){Nn=!0}return Nn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Cn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pn,r=null,o=Tn,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var In={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Mn=/[&><\u2028\u2029]/g;function Fn(e){return e.replace(Mn,(e=>In[e]))}function zn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Hn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===F(o.pathname,t)?o.pathname=`${Y(t)}/_root.${r}`:o.pathname=`${Y(o.pathname)}.${r}`,o}async function Bn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Un(e){return null!=e&&"string"==typeof e.page}function Wn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function $n(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function qn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Vn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Gn(e,t){return"lazy"===e.mode&&!0===t}function Yn(){let e=a.useContext(jt);return zn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Kn(){let e=a.useContext(Pt);return zn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jn=a.createContext(void 0);function Xn(){let e=a.useContext(Jn);return zn(e,"You must render this element inside a <HydratedRouter> element"),e}function Qn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zn(e,t,n){if(n&&!or)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Jn.displayName="FrameworkContext";function er({page:e,...t}){let n=Ct(),{router:r}=Yn(),o=a.useMemo((()=>E(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?a.createElement(nr,{page:e,matches:o,...t}):a.createElement(rr,{page:e,matches:o,...t}):null}function tr(e){let{manifest:t,routeModules:n}=Xn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return Vn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Bn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Wn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function nr({page:e,matches:t,...n}){let r=Ht(),{future:o}=Xn(),{basename:i}=Yn(),c=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Hn(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:c.push(e.route.id);return a&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,c.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function rr({page:e,matches:t,...n}){let r=Ht(),{future:o,manifest:i,routeModules:c}=Xn(),{basename:s}=Yn(),{loaderData:l,matches:u}=Kn(),d=a.useMemo((()=>$n(e,t,u,i,r,"data")),[e,t,u,i,r]),f=a.useMemo((()=>$n(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=Hn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,c]),h=a.useMemo((()=>qn(f,i)),[f,i]),m=tr(f);return a.createElement(a.Fragment,null,p.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),h.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var or=!1;function ar(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Xn(),{router:s,static:l,staticContext:u}=Yn(),{matches:d}=Kn(),f=Ct(),p=Gn(i,c);o&&(o.didRenderScripts=!0);let h=Zn(d,null,r);a.useEffect((()=>{0}),[]);let m=a.useMemo((()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];zn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=E(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),v=or||f?[]:(t.entry.imports.concat(qn(h,t,{includeHydrateFallback:!0})),[...new Set(g)]);var g;let y="object"==typeof t.sri?t.sri:{};return fn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),or||f?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),m)}function ir(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function cr({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(Z(e))return a.createElement(sr,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return a.createElement(sr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function sr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Xn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(ar,null):null)))}var lr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{lr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function ur(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||dr(),routes:e,mapRouteProperties:mn,hydrationRouteProperties:vn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function dr(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:fr(e.errors)}),e}function fr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var pr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h,...m},g){let{basename:y,navigator:b,unstable_useTransitions:w}=a.useContext(Dt),x="string"==typeof u&&pr.test(u),A=ne(u,y),k=function(e,{relative:t}={}){f(zt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Dt),{hash:o,pathname:i,search:c}=qt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:G([n,i])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),O=Ht(),S=null;if(c){let e=q(c,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:G([y,e.pathname])),S=b.createHref(e)}let[E,j,P]=function(e,t){let n=a.useContext(Jn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Qn(s,h),onBlur:Qn(l,m),onMouseEnter:Qn(u,h),onMouseLeave:Qn(d,m),onTouchStart:Qn(f,h)}]:[!1,p,{}]}(n,m),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Wt(),f=Ht(),p=qt(e,{relative:c});return a.useCallback((h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:v(f)===v(p),m=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?a.startTransition((()=>m())):m()}}),[f,d,p,n,r,o,t,e,i,c,s,l,u])}(u,{replace:i,unstable_mask:c,state:s,target:l,preventScrollReset:d,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:w});let C=!(A.isExternal||o),_=a.createElement("a",{...m,...P,href:(C?S:void 0)||A.absoluteURL||k,onClick:C?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:ir(g,j),target:l,"data-discover":x||"render"!==t?void 0:"true"});return E&&!x?a.createElement(a.Fragment,null,_,a.createElement(er,{page:k})):_}));hr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let d=qt(i,{relative:l.relative}),p=Ht(),h=a.useContext(Pt),{navigator:m,basename:v}=a.useContext(Dt),g=null!=h&&function(e,{relative:t}={}){let n=a.useContext(_t);f(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yr("useViewTransitionState"),o=qt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=L(o.pathname,c)||null!=L(o.pathname,i)}(d)&&!0===c,y=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=F(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:k,isPending:O,isTransitioning:g},E=k?e:void 0;A="function"==typeof n?n(S):[n,k?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(hr,{...l,"aria-current":E,className:A,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var mr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=Pn,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h,...m},g)=>{let{unstable_useTransitions:y}=a.useContext(Dt),b=Ar(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Dt),r=a.useContext(It);f(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...qt(e||".",{relative:t})},c=Ht();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:G([n,i.pathname]));return v(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&pr.test(s);return a.createElement("form",{ref:g,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,f=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h});y&&!1!==n?a.startTransition((()=>f())):f()},...m,"data-discover":A||"render"!==e?void 0:"true"})}));function vr({getKey:e,storageKey:t,...n}){let r=a.useContext(Jn),{basename:o}=a.useContext(Dt),i=Ht(),c=on();!function({getKey:e,storageKey:t}={}){let{router:n}=yr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=br("useScrollRestoration"),{basename:i}=a.useContext(Dt),c=Ht(),s=on(),l=nn("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=Sr(c,s,i,e);Or[t]=window.scrollY}try{sessionStorage.setItem(t||kr,JSON.stringify(Or))}catch(e){p(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||kr);e&&(Or=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(Or,(()=>window.scrollY),e?(t,n)=>Sr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{p(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=Sr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Fn(JSON.stringify(t||kr))}, ${Fn(JSON.stringify(s))})`}})}function gr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yr(e){let t=a.useContext(jt);return f(t,gr(e)),t}function br(e){let t=a.useContext(Pt);return f(t,gr(e)),t}function wr(e){p("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(_n(e)),n=a.useRef(!1),r=Ht(),o=a.useMemo((()=>function(e,t){let n=_n(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Wt(),c=a.useCallback(((e,t)=>{const r=_n("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}mr.displayName="Form",vr.displayName="ScrollRestoration";var xr=0;function Ar(){let{router:e}=yr("useSubmit"),{basename:t}=a.useContext(Dt),n=rn("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Ln(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++xr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var kr="react-router-scroll-positions",Or={};function Sr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:F(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(50766),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return o(e).getComputedStyle(e)}function i(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function p(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const h=Math.round;function m(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,p=1;t&&s(e)&&(d=e.offsetWidth>0&&h(u.width)/e.offsetWidth||1,p=e.offsetHeight>0&&h(u.height)/e.offsetHeight||1);const m=l(e)?o(e):window,v=!f()&&n,g=(u.left+(v&&null!=(r=null==(a=m.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(v&&null!=(i=null==(c=m.visualViewport)?void 0:c.offsetTop)?i:0))/p,b=u.width/d,w=u.height/p;return{width:b,height:w,top:y,right:g+b,bottom:y+w,left:g,x:g,y}}function v(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function g(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||v(e);return u(t)?t.host:t}function y(e){const t=g(e);return p(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,f=null;if(i){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&f.observe(e),l(e)||!e.contextElement||c||f.observe(e.contextElement),f.observe(t)}let p=c?m(e):null;return c&&function t(){const r=m(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(d)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>i,j:()=>a,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",a="-webkit-",i="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>i});var r=n(21396),o=n(18061),a=n(19552);function i(e){return(0,a.VF)(c("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function c(e,t,n,r,i,d,f,p,h){for(var m=0,v=0,g=f,y=0,b=0,w=0,x=1,A=1,k=1,O=0,S="",E=i,j=d,P=r,T=S;A;)switch(w=O,O=(0,a.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,g-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,a.Tb)(O),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:T+=(0,a.Tb)(O);break;case 9:case 10:case 13:case 32:T+=(0,a.mw)(w);break;case 92:T+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,o.BC)(l((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,n),h);break;default:T+="/"}break;case 123*x:p[m++]=(0,o.b2)(T)*k;case 125*x:case 59:case 0:switch(O){case 0:case 125:A=0;case 59+v:b>0&&(0,o.b2)(T)-g&&(0,o.BC)(b>32?u(T+";",r,n,g-1):u((0,o.HC)(T," ","")+";",r,n,g-2),h);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,m,v,i,p,S,E=[],j=[],g),d),123===O)if(0===v)c(T,t,P,P,E,d,g,p,j);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,i,p,S,i,E=[],g),j),i,j,g,p,r?E:j);break;default:c(T,P,P,P,[""],j,0,p,j)}}m=v=b=0,x=k=1,S=T="",g=f;break;case 58:g=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==O)--x;else if(125==O&&0==x++&&125==(0,a.YL)())continue;switch(T+=(0,o.HT)(O),O*x){case 38:k=v>0?1:(T+="\f",-1);break;case 44:p[m++]=((0,o.b2)(T)-1)*k,k=1;break;case 64:45===(0,a.se)()&&(T+=(0,a.Tb)((0,a.K2)())),y=(0,a.se)(),v=g=(0,o.b2)(S=T+=(0,a.Cv)((0,a.OW)())),O++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,i,c,s,l,u,d,f,p){for(var h=c-1,m=0===c?s:[""],v=(0,o.FK)(m),g=0,y=0,b=0;g<i;++g)for(var w=0,x=(0,o.c1)(e,h+1,h=(0,o.tn)(y=l[g])),A=e;w<v;++w)(A=(0,o.Bq)(y>0?m[w]+" "+x:(0,o.HC)(x,/&\f/g,m[w])))&&(d[b++]=A);return(0,a.rH)(e,t,n,0===c?r.XZ:u,d,f,p)}function l(e,t,n){return(0,a.rH)(e,t,n,r.YK,(0,o.HT)((0,a.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,i){return(0,a.rH)(e,t,n,r.LU,(0,o.c1)(e,0,i),(0,o.c1)(e,i+1,-1),i)}},3485(e,t,n){"use strict";n.d(t,{A:()=>i,l:()=>a});var r=n(21396),o=n(18061);function a(e,t){for(var n="",r=(0,o.FK)(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+a(e.children,i)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=a(e.children,i))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>E,G1:()=>c,K2:()=>h,Nc:()=>k,OW:()=>v,Sh:()=>y,Tb:()=>x,Tp:()=>f,VF:()=>w,YL:()=>p,c4:()=>b,di:()=>g,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>m});var r=n(18061),o=1,a=1,i=0,c=0,s=0,l="";function u(e,t,n,r,i,c,s){return{value:e,root:t,parent:n,type:r,props:i,children:c,line:o,column:a,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function f(){return s}function p(){return s=c>0?(0,r.wN)(l,--c):0,a--,10===s&&(a=1,o--),s}function h(){return s=c<i?(0,r.wN)(l,c++):0,a++,10===s&&(a=1,o++),s}function m(){return(0,r.wN)(l,c)}function v(){return c}function g(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=a=1,i=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(g(c-1,O(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=m())&&s<33;)h();return y(e)>2||y(s)>3?"":" "}function k(e,t){for(;--t&&h()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return g(e,v()+(t<6&&32==m()&&32==h()))}function O(e){for(;h();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&O(s);break;case 40:41===e&&O(e);break;case 92:h()}return c}function S(e,t){for(;h()&&e+s!==57&&(e+s!==84||47!==m()););return"/*"+g(t,c-1)+"*"+(0,r.HT)(47===e?e:h())}function E(e){for(;!y(m());)h();return g(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>m,Bq:()=>c,FK:()=>h,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>p,c1:()=>f,kg:()=>v,kp:()=>a,tW:()=>i,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function m(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>a});var o=r(),a=r},14644(e,t,n){"use strict";function r(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. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let a=e,l=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return l}function v(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function g(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}g({type:i.INIT});return{dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,g({type:i.REPLACE})},[o]:function(){const e=v;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=f(...s)(a.dispatch),{...a,dispatch:i}}}function h(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"de0a4d13f9c57aa4363d",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"2aeb59e8e88d31fdd075",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"e00735b41ae6ff2c87fc",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"fb27365591cf9a2129d6",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26335:"4eef2a31a3376dc2a85f",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"054e70b96c2e5c470388",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"a78547f45df3238e9a68",54310:"277a8ac23d29765828d5",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"cbc7b910295375acd69e",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",61866:"4ed73f64b7afcb2ad7e6",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"b0a81bcaab8e0ab2fdf1",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"b14e478ffa420ad2f0c2",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"8a2a308c99be2a53b181",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"bd499550aa7dc300d9c5",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"d6c5bc5e16e0f23cc4f3",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"f99873b3b51630f3a08f",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=27101,s.p="/",(()=>{var e={27101:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>Ue});var e=s(61402),t=s(64467),n=s(62193),r=s.n(n),o=s(2404),a=s.n(o),i=s(71086),c=s.n(i),u=s(5556),d=s.n(u),f=s(4883),p=s.n(f),h=s(50766),m=s(52600),v=s(88951),g=s(13128),y=s(59042),b=s(28391),w=s(96450),x=s(72942),A=s(78144),k=s(68500),O=s(80621),S=s(32619),E=s(7311),j=s(66498),P=s(35301),T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return j.A.getDispatchActions(e,C,t)},C=[{name:"entityName",action:P.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:P.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:P.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:P.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:P.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],_=s(44467),N=s(54756),R=s.n(N),D=s(15003),L=s(29056),I=s(71635),M=(0,t.A)((0,t.A)({},I.Bt,L.A.singleTransferReducer("formTouched")),I.wr,L.A.singleTransferReducer("detailParams")),F={detailParams:void 0,formTouched:!1};var z=s(10076),H=s(3453),B=s(28261),U=s(57327),W=s(27399);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var V=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=q({},e)})),e.relations.forEach((function(e){t[e.relationName]=q({type:"relation"},e)})),t};function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;return R().mark((function n(){var r;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,D.T1)(U.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,D.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var Y={CREATE:"create",UPDATE:"update"};const K=function(e){return void 0===e?Y.CREATE:Y.UPDATE};var J=s(89394);const X=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat((0,J.A)(e),(0,J.A)(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const Q=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Z=s(74848);function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var te=R().mark(ie),ne=R().mark(ce),re=R().mark(ue),oe=function(e){return e.entityBrowser},ae=function(e){return e.input};function ie(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.p8)(I.M4,se),(0,D.p8)(I.z3,ce),(0,D.p8)(I.o7,de)]);case 1:case"end":return e.stop()}}),te)}function ce(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.yJ)(I.EJ(void 0));case 1:case"end":return e.stop()}}),ne)}function se(e){var t=e.payload;return R().mark((function e(){var n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.T1)(X,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,D.Lt)(oe);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,D.T1)(K,o);case 3:return l=e.sent,e.next=4,(0,D.T1)(le,c,r,s);case 4:return u=e.sent,d=(0,H.A)(u,2),f=d[0],p=d[1],e.next=5,(0,D.Lt)(ae);case 5:return h=e.sent,m=h.initialKey,e.next=6,(0,D.T1)(Q,m,r);case 6:return v=e.sent,g={mode:l,entityId:o,entityName:f,formName:p,parentUrl:a,showBackButton:v},e.next=7,(0,D.yJ)(I.EJ(g));case 7:case"end":return e.stop()}}),e)}))()}function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return R().mark((function o(){var a,i,c,s,l,u,d;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=(0,z.A)(t),i=a[0],c=ee(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,D.T1)(G,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,D.T1)(U.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,D.T1)(le,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,D.T1)(le,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function ue(e){var t;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,D.T1)(B.Ix);case 1:return t=n.sent,n.next=2,(0,D.yJ)(x.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,Z.jsx)(W.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,D.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),re)}function de(e){var t=e.payload;return R().mark((function e(){var n,r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,D.T1)(ue,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,D.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,D.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var fe=R().mark(pe);function pe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.Zy)(ie)]);case 1:case"end":return e.stop()}}),fe)}const he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0,n=M[t.type];return n?n(e,t):e};function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?me(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=(0,t.A)((0,t.A)((0,t.A)((0,t.A)({},P.Rf,L.A.singleTransferReducer("entityName")),P.g0,(function(e,t){var n=t.payload.formBase;return n?ve(ve({},e),{},{formBase:n}):ve({},e)})),P.J6,L.A.singleTransferReducer("scrollBehaviour")),P.PH,L.A.singleTransferReducer("appId")),ye={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var be=R().mark(Ae),we=R().mark(ke),xe=R().mark(Oe);function Ae(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.T1)(ke),(0,D.p8)(P.XA,Oe)]);case 1:case"end":return e.stop()}}),be)}function ke(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,D.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,D.yJ)(w.A.doSessionCheck());case 2:case"end":return t.stop()}}),we)}function Oe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.yJ)(b.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),xe)}var Se=R().mark(Ee);function Ee(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.Zy)(Ae)]);case 1:case"end":return e.stop()}}),Se)}const je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e},Pe={detail:he,form:_.A,entityBrowser:je};var Te,Ce,_e=[Ee,pe];function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var De="entity-browser",Le=["onVisibilityStatusChange","onRouteChange"],Ie=p().lazy((function(){return Promise.all([s.e(61866),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Me=function(){return Te||(Te=(0,Z.jsx)(f.Suspense,{fallback:"",children:(0,Z.jsx)(Ie,{})}))},Fe=function(e){var t=e.initialKey,n=e.initialAction,r=(0,h.Zp)(),o=(0,h.zy)().pathname;(0,f.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(S.A.toQueryString(n.properties));r(a)}}),[])},ze=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?h.bg:h.Ge)([{path:"*",element:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Fe,{initialKey:n,initialAction:r}),Ce||(Ce=(0,Z.jsx)(Me,{}))]})}]);return(0,Z.jsx)(m.pg,{router:o})},He=function(t,n,r,o){n=Re(Re({},n),{},{id:t}),O.A.setInputEnvs(n);var a=e.A.createStore(Pe,_e,n,De);b.A.addToStore(a,(function(t){return e.A.getEvents(Le,t.input)})),v.A.addToStore(a),g.A.dynamicActionsAddToStore(a),y.A.addToStore(a,!0,["console","remote","notification"]),x.A.addToStore(a,!0),w.A.addToStore(a);var i=(0,Z.jsx)(ze,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(De,i,a,{input:n,actions:T(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},Be=function(t){var n=e.A.useApp({initApp:He,props:t,packageName:De}),o=n.component,i=n.store,s=E.A.usePrevious(t);return E.A.useDidUpdate((function(){var e=c()(t,(function(e,t){return!a()(e,s[t])}));r()(e)||T(e,!1).forEach((function(e){i.dispatch(e)}))}),[t]),(0,Z.jsx)(Z.Fragment,{children:o})};Be.propTypes=Re({entityName:d().string.isRequired,searchFormType:A.X,formBase:d().string,limit:d().oneOfType([d().number,d().string]),preselectedSearchFields:d().array,searchFilters:d().arrayOf(d().string),simpleSearchFields:d().string,initialKey:d().string,initialAction:d().shape({name:d().string,properties:d().objectOf(d().object)}),businessUnit:d().string,memoryHistory:d().bool,backendUrl:d().string,scrollBehaviour:d().oneOf(["none","inline"]),appContext:k.A.propTypes,modifyFormDefinition:d().func,modifyEntityPaths:d().func,disableDetailView:d().bool,reportIds:d().arrayOf(d().string),customActionEventHandlers:d().objectOf(d().objectOf(d().func)),isHidden:d().bool},b.A.createPropTypes(Le));var Ue=e.A.createBundleableApp(De,He,Be);e.A.registerAppInRegistry(Ue.name,Ue.init)})(),l})()));
62
+ */function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask)));let a=s(null==r?t.length-1:r),i="POP",c=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[a]}function d(e,n=null,r,o){let a=m(t?u().pathname:"/",e,n,r,o);return p("/"===a.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function f(e){return"string"==typeof e?e:v(e)}return{get index(){return a},get action(){return i},get location(){return u()},createHref:f,createURL:e=>new URL(f(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=l(e)?e:d(e,n);a+=1,t.splice(a,t.length,r),o&&c&&c({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=l(e)?e:d(e,n);t[a]=r,o&&c&&c({action:i,location:r,delta:0})},go(e){i="POP";let n=s(a+e),r=t[n];a=n,c&&c({action:i,location:r,delta:e})},listen:e=>(c=e,()=>{c=null})}}function d(e={}){return y((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:v(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function v({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 g(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 y(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",u=null,d=f();function f(){return(i.state||{idx:null}).idx}function p(){c="POP";let e=f(),t=null==e?null:e-d;d=e,u&&u({action:c,location:g.location,delta:t})}function v(e){return b(e)}null==d&&(d=0,i.replaceState({...i.state,idx:d},""));let g={get action(){return c},get location(){return e(o,i)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(s,p),u=e,()=>{o.removeEventListener(s,p),u=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=l(e)?e:m(g.location,e,t);n&&n(r,e),d=f()+1;let s=h(r,d),p=g.createHref(r.unstable_mask||r);try{i.pushState(s,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&u&&u({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=l(e)?e:m(g.location,e,t);n&&n(r,e),d=f();let o=h(r,d),s=g.createHref(r.unstable_mask||r);i.replaceState(o,"",s),a&&u&&u({action:c,location:g.location,delta:0})},go:e=>i.go(e)};return g}function b(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),f(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:v(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function w(e){return{defaultValue:e}}var x=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?i("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,o).has(e))return c(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){c(this,o).set(e,t)}};o=new WeakMap;var A=new Set(["lazy","caseSensitive","path","id","index","children"]);var k=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function O(e,t,n=[],r={},o=!1){return e.map(((e,a)=>{let i=[...n,String(a)],c="string"==typeof e.id?e.id:i.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(o||!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:c};return r[c]=S(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=S(n,t(n)),e.children&&(n.children=O(e.children,t,i,r,o)),n}}))}function S(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function E(e,t,n="/"){return j(e,t,n,!1)}function j(e,t,n,r){let o=F(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let a=T(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=M(o);i=D(a[e],t,r)}return i}function P(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function T(e,t=[],n=[],r="",o=!1){let a=(e,a,i=o,c)=>{let s={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;f(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let l=G([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(f(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),T(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:R(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of C(e.path))a(e,t,!0,n);else a(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=C(r.join("/")),c=[];return c.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&c.push(...i),c.map((t=>e.startsWith("/")&&""===t?"/":t))}var _=/^:[\w-]+$/,N=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(N)&&(r+=-2),t&&(r+=2),n.filter((e=>!N(e))).reduce(((e,t)=>e+(_.test(t)?3:""===t?1:10)),r)}function D(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e<r.length;++e){let c=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=L({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=L({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:G([a,u.pathname]),pathnameBase:K(G([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=G([a,u.pathnameBase]))}return i}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=I(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=c[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const o=c[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function I(e,t=!1,n=!0){p("*"===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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n,o,a)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=a.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"})).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function M(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!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 F(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)||"/"}var z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>z.test(e);function B(e,t){let n=Y(t).split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function U(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 <Link to="..."> and the router will parse it for you.`}function W(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function $(e){let t=W(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function q(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},f(!o.pathname||!o.pathname.includes("?"),U("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),U("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),U("#","search","hash",o)));let a,i=""===e||""===o.pathname,c=i?"/":o.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:o="",hash:a=""}="string"==typeof e?g(e):e;return r?(r=V(r),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:J(o),hash:X(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var V=e=>e.replace(/\/\/+/g,"/"),G=e=>V(e.join("/")),Y=e=>e.replace(/\/+$/,""),K=e=>Y(e).replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Q=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ee(e){let t=e.map((e=>e.route.path)).filter(Boolean);return G(t)||"/"}var te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ne(e,t){let n=e;if("string"!=typeof n||!z.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(te)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=F(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:o=!0}catch(e){p(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var re=Symbol("Uninstrumented");function oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach((e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}})));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=ae(n.lazy,t.lazy,(()=>{}));e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach((t=>{let o=e[t],a=n[`lazy.${t}`];if("function"==typeof o&&a.length>0){let e=ae(a,o,(()=>{}));e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}}))}return["loader","action"].forEach((e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[re]??o,a=ae(n[e],t,((...e)=>ce(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[re]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[re]??e,r=ae(n.middleware,t,((...e)=>ce(e[0])));return r?(r[re]=t,r):e}))),r}function ae(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(e,t,n,r){let o,a=e[r];if(a){let i,c=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=ie(e,t,n,r-1),o=await i,f(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await a(c,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await c(),await i}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ce(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:le(t),params:{...r},unstable_pattern:o,context:ue(n)}}function se(e,t){return{currentUrl:v(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function le(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ue(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===de}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var de=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fe=["POST","PUT","PATCH","DELETE"],pe=new Set(fe),he=["GET",...fe],me=new Set(he),ve=new Set([301,302,303,307,308]),ge=new Set([307,308]),ye={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ae="remix-router-transitions",ke=Symbol("ResetLoaderData");function Oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;f(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||xe,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...oe(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=O(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,d,h,y=e.dataStrategy||Me,w={unstable_passThroughRequests:!1,...e.future},A=null,k=new Set,S=null,T=null,C=null,_=null!=e.hydrationData,N=E(s,e.history.location,l),R=!1,D=null;if(null!=N||e.patchRoutesOnNavigation){if(N&&!e.hydrationData){Xe(N,s,e.history.location.pathname).active&&(N=null)}if(N)if(N.some((e=>e.route.lazy)))u=!1,d=!u;else if(N.some((e=>Pe(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=N;if(n){let e=N.findIndex((e=>void 0!==n[e.route.id]));r=r.slice(0,e+1)}d=!1,u=!0,r.forEach((e=>{let r=Te(e.route,t,n);d=d||r.renderFallback,u=u&&!r.shouldLoad}))}else u=!0,d=!u;else{u=!1,d=!u,N=[];let t=Xe(null,s,e.history.location.pathname);t.active&&t.matches&&(R=!0,N=t.matches)}}else{let t=it(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=at(s);u=!0,d=!u,N=n,D={[r.id]:t}}let L,I,M={historyAction:e.history.action,location:e.history.location,matches:N,initialized:u,renderFallback:d,navigation:ye,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},z="POP",B=null,U=!1,W=!1,$=new Map,q=null,V=!1,G=!1,Y=new Set,K=new Map,J=0,X=-1,Q=new Map,ee=new Set,te=new Map,ne=new Map,ie=new Set,ce=new Map,le=null;function ue(e,t={}){e.matches&&(e.matches=e.matches.map((e=>{let t=c[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}))),M={...M,...e};let n=[],r=[];M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),ie.forEach((e=>{M.fetchers.has(e)||K.has(e)||n.push(e)})),[...k].forEach((r=>r(M,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>Re(e))),r.forEach((e=>M.fetchers.delete(e)))}function de(t,n,{flushSync:r}={}){let o,a=null!=M.actionData&&null!=M.navigation.formMethod&&bt(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?M.actionData:null;let c=n.loaderData?nt(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,l=M.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,we))));let u,d=!V&&Ye(t,n.matches||M.matches),f=!0===U||null!=M.navigation.formMethod&&bt(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),V||"POP"===z||("PUSH"===z?e.history.push(t,t.state):"REPLACE"===z&&e.history.replace(t,t.state)),"POP"===z){let e=$.get(M.location.pathname);e&&e.has(t.pathname)?u={currentLocation:M.location,nextLocation:t}:$.has(t.pathname)&&(u={currentLocation:t,nextLocation:M.location})}else if(W){let e=$.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),$.set(M.location.pathname,e)),u={currentLocation:M.location,nextLocation:t}}ue({...n,actionData:o,loaderData:c,historyAction:z,location:t,initialized:!0,renderFallback:!1,navigation:ye,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),z="POP",U=!1,W=!1,V=!1,G=!1,B?.resolve(),B=null,le?.resolve(),le=null}async function fe(t,n,o){L&&L.abort(),L=null,z=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&C){let n=qe(e,t);S[n]=C()}}(M.location,M.matches),U=!0===(o&&o.preventScrollReset),W=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,f=o?.initialHydration&&M.matches&&M.matches.length>0&&!R?M.matches:E(u,n,l),p=!0===(o&&o.flushSync);if(f&&M.initialized&&!G&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(o&&o.submission&&bt(o.submission.formMethod)))return void de(n,{matches:f},{flushSync:p});let h=Xe(f,u,n.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void de(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}L=new AbortController;let m,v=Je(e.history,n,L.signal,o&&o.submission),g=e.getContext?await e.getContext():new x;if(o&&o.pendingError)m=[ot(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&bt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,f,p={}){ke();let h,m=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,o);if(ue({navigation:m},{flushSync:!0===p.flushSync}),d){let e=await Qe(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}i=e.matches}let v=xt(i,n);if(v.route.action||v.route.lazy){let e=We(a,c,t,n,i,v,f?[]:r,u),o=await me(t,n,e,u,null);if(h=o[v.route.id],!h)for(let e of i)if(o[e.route.id]){h=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else h={type:"error",error:it(405,{method:t.method,pathname:n.pathname,routeId:v.route.id})};if(ht(h)){let n;if(p&&null!=p.replace)n=p.replace;else{n=Ke(h.response.headers.get("Location"),new URL(t.url),l,e.history)===M.location.pathname+M.location.search}return await he(t,h,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(pt(h)){let e=ot(i,v.route.id);return!0!==(p&&p.replace)&&(z="PUSH"),{matches:i,pendingActionResult:[e.route.id,h,v.route.id]}}return{matches:i,pendingActionResult:[v.route.id,h]}}(v,n,o.submission,f,g,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(pt(r)&&Z(r.error)&&404===r.error.status)return L=null,void de(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}f=t.matches||f,m=t.pendingActionResult,d=kt(n,o.submission),p=!1,h.active=!1,v=Je(e.history,v.url,v.signal)}let{shortCircuited:y,matches:b,loaderData:w,errors:A}=await async function(t,n,o,u,d,f,p,h,m,v,g,y,b){let w=f||kt(n,p),x=p||h||At(w),A=!V&&!v;if(d){if(A){let e=pe(y);ue({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:g})}let e=await Qe(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=at(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ot(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let k=i||s,{dsMatches:O,revalidatingFetchers:S}=je(t,u,a,c,e.history,M,o,x,n,v?[]:r,!0===v,G,Y,ie,te,ee,k,l,null!=e.patchRoutesOnNavigation,y,b);if(X=++J,!e.dataStrategy&&!O.some((e=>e.shouldLoad))&&!O.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Ie();return de(n,{matches:o,loaderData:{},errors:y&&pt(y[1])?{[y[0]]:y[1].error}:null,...rt(y),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(A){let e={};if(!d){e.navigation=w;let t=pe(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),n=Ot(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)})),new Map(M.fetchers)}(S)),ue(e,{flushSync:g})}S.forEach((e=>{De(e.key),e.controller&&K.set(e.key,e.controller)}));let E=()=>S.forEach((e=>De(e.key)));L&&L.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await ve(O,S,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",E);S.forEach((e=>K.delete(e.key)));let T=ct(j);if(T)return await he(t,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=ct(P),T)return ee.add(T.key),await he(t,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:C,errors:_}=tt(M,o,j,y,S,P);v&&M.errors&&(_={...M.errors,..._});let N=Ie(),R=Fe(X),D=N||R||S.length>0;return{matches:o,loaderData:C,errors:_,...D?{fetchers:new Map(M.fetchers)}:{}}}(v,n,f,g,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m,o&&o.callSiteDefaultShouldRevalidate);y||(L=null,de(n,{matches:b||f,...rt(m),loaderData:w,errors:A}))}function pe(e){return e&&!pt(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function he(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(B?.resolve(),B=null),o.response.headers.has("X-Remix-Revalidate")&&(G=!0);let d=o.response.headers.get("Location");f(d,"Expected a Location header on the redirect Response"),d=Ke(d,new URL(r.url),l,e.history);let p=m(M.location,d,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(d)){const n=b(d,!0);e=n.origin!==t.location.origin||null==F(n.pathname,l)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}L=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:v,formAction:g,formEncType:y}=M.navigation;!i&&!c&&v&&g&&y&&(i=At(M.navigation));let w=i||c;if(ge.has(o.response.status)&&w&&bt(w.formMethod))await fe(h,p,{submission:{...w,formAction:d},preventScrollReset:s||U,enableViewTransition:a?W:void 0});else{let e=kt(p,i);await fe(h,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||U,enableViewTransition:a?W:void 0})}}async function me(e,t,n,r,o){let a,i={};try{a=await $e(y,e,t,n,o,r,!1)}catch(e){return n.filter((e=>e.shouldLoad)).forEach((t=>{i[t.route.id]={type:"error",error:e}})),i}if(e.signal.aborted)return i;if(!bt(e.method))for(let e of n){if("error"===a[e.route.id]?.type)break;a.hasOwnProperty(e.route.id)||M.loaderData.hasOwnProperty(e.route.id)||M.errors&&M.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(ft(r)){let o=r.result;i[t]={type:"redirect",response:Ge(o,e,t,n,l)}}else i[t]=await Ve(r);return i}async function ve(e,t,n,r,o){let a=me(n,r,e,o,null),i=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await me(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:it(404,{pathname:e.path})}})})));return{loaderResults:await a,fetcherResults:(await i).reduce(((e,t)=>Object.assign(e,t)),{})}}function ke(){G=!0,te.forEach(((e,t)=>{K.has(t)&&Y.add(t),De(t)}))}function Oe(e,t,n={}){M.fetchers.set(e,t),ue({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ce(e,t,n,r={}){let o=ot(M.matches,t);Re(e),ue({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ne(e){return ne.set(e,(ne.get(e)||0)+1),ie.has(e)&&ie.delete(e),M.fetchers.get(e)||be}function Re(e){let t=M.fetchers.get(e);!K.has(e)||t&&"loading"===t.state&&Q.has(e)||De(e),te.delete(e),Q.delete(e),ee.delete(e),ie.delete(e),Y.delete(e),M.fetchers.delete(e)}function De(e,t){let n=K.get(e);n&&(n.abort(t),K.delete(e))}function Le(e){for(let t of e){let e=St(Ne(t).data);M.fetchers.set(t,e)}}function Ie(){let e=[],t=!1;for(let n of ee){let r=M.fetchers.get(n);f(r,`Expected fetcher: ${n}`),"loading"===r.state&&(ee.delete(n),e.push(n),t=!0)}return Le(e),t}function Fe(e){let t=[];for(let[n,r]of Q)if(r<e){let e=M.fetchers.get(n);f(e,`Expected fetcher: ${n}`),"loading"===e.state&&(De(n),Q.delete(n),t.push(n))}return Le(t),t.length>0}function ze(e){M.blockers.delete(e),ce.delete(e)}function He(e,t){let n=M.blockers.get(e)||we;f("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),ue({blockers:r})}function Be({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ce.size)return;ce.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(ce.entries()),[o,a]=r[r.length-1],i=M.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ue(e){let t=it(404,{pathname:e}),n=i||s,{matches:r,route:o}=at(n);return{notFoundMatches:r,route:o,error:t}}function qe(e,t){if(T){return T(e,t.map((e=>P(e,M.loaderData))))||e.key}return e.key}function Ye(e,t){if(S){let n=qe(e,t),r=S[n];if("number"==typeof r)return r}return null}function Xe(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:j(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:j(n,r,l,!0)}}}return{active:!1,matches:null}}async function Qe(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,f=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||_e(e,t,d,f,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let p=E(d,n,l),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=j(d,n,l,!0),!(h&&u.length<h.length&&Ze(u,h.slice(0,u.length))))return{type:"success",matches:p}}if(h||(h=j(d,n,l,!0)),!h||Ze(u,h))return{type:"success",matches:null};u=h}}function Ze(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return h={get basename(){return l},get future(){return w},get state(){return M},get routes(){return s},get window(){return t},initialize:function(){if(A=e.history.listen((({action:t,location:n,delta:r})=>{if(I)return I(),void(I=void 0);p(0===ce.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=Be({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{I=e}));return e.history.go(-1*r),He(o,{state:"blocked",location:n,proceed(){He(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(M.blockers);e.set(o,we),ue({blockers:e})}}),B?.resolve(),void(B=null)}return fe(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ae);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,$);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ae,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,$);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return M.initialized||fe("POP",M.location,{initialHydration:!0}),h},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,C=t,T=n||null,!_&&M.navigation===ye){_=!0;let e=Ye(M.location,M.matches);null!=e&&ue({restoreScrollPosition:e})}return()=>{S=null,C=null,T=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=Et());let t=B.promise;return e.history.go(n),t}let o,a=Se(M.location,M.matches,l,n,r?.fromRouteId,r?.relative),{path:i,submission:c,error:s}=Ee(!1,a,r);if(r?.unstable_mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.unstable_mask?g(r.unstable_mask):{...M.location.unstable_mask,...r.unstable_mask}}}let u=M.location,d=m(u,i,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let f=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===f?p="REPLACE":!1===f||null!=c&&bt(c.formMethod)&&c.formAction===M.location.pathname+M.location.search&&(p="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),y=Be({currentLocation:u,nextLocation:d,historyAction:p});y?He(y,{state:"blocked",location:d,proceed(){He(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(y,we),ue({blockers:e})}}):await fe(p,d,{submission:c,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){De(t);let d=!0===(u&&u.flushSync),p=i||s,h=Se(M.location,M.matches,l,o,n,u?.relative),m=E(p,h,l),v=Xe(m,p,h);if(v.active&&v.matches&&(m=v.matches),!m)return void Ce(t,n,it(404,{pathname:h}),{flushSync:d});let{path:g,submission:y,error:b}=Ee(!0,h,u);if(b)return void Ce(t,n,b,{flushSync:d});let w=e.getContext?await e.getContext():new x,A=!0===(u&&u.preventScrollReset);y&&bt(y.formMethod)?await async function(t,n,o,u,d,p,h,m,v,g){ke(),te.delete(t);let y=M.fetchers.get(t);Oe(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(v,y),{flushSync:h});let b=new AbortController,w=Je(e.history,o,b.signal,v);if(p){let e=await Qe(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ce(t,n,e.error,{flushSync:h});if(!e.matches)return void Ce(t,n,it(404,{pathname:o}),{flushSync:h});u=e.matches}let x=xt(u,o);if(!x.route.action&&!x.route.lazy){let e=it(405,{method:v.formMethod,pathname:o,routeId:n});return void Ce(t,n,e,{flushSync:h})}K.set(t,b);let A=J,k=We(a,c,w,o,u,x,r,d),O=await me(w,o,k,d,t),S=O[x.route.id];if(!S)for(let e of k)if(O[e.route.id]){S=O[e.route.id];break}if(w.signal.aborted)return void(K.get(t)===b&&K.delete(t));if(ie.has(t)){if(ht(S)||pt(S))return void Oe(t,St(void 0))}else{if(ht(S))return K.delete(t),X>A?void Oe(t,St(void 0)):(ee.add(t),Oe(t,Ot(v)),he(w,S,!1,{fetcherSubmission:v,preventScrollReset:m}));if(pt(S))return void Ce(t,n,S.error)}let j=M.navigation.location||M.location,P=Je(e.history,j,b.signal),T=i||s,C="idle"!==M.navigation.state?E(T,M.navigation.location,l):M.matches;f(C,"Didn't find any matches after fetcher action");let _=++J;Q.set(t,_);let N=Ot(v,S.data);M.fetchers.set(t,N);let{dsMatches:R,revalidatingFetchers:D}=je(P,d,a,c,e.history,M,C,v,j,r,!1,G,Y,ie,te,ee,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,S],g);D.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=M.fetchers.get(t),r=Ot(void 0,n?n.data:void 0);M.fetchers.set(t,r),De(t),e.controller&&K.set(t,e.controller)})),ue({fetchers:new Map(M.fetchers)});let I=()=>D.forEach((e=>De(e.key)));b.signal.addEventListener("abort",I);let{loaderResults:F,fetcherResults:H}=await ve(R,D,P,j,d);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",I),Q.delete(t),K.delete(t),D.forEach((e=>K.delete(e.key))),M.fetchers.has(t)){let e=St(S.data);M.fetchers.set(t,e)}let B=ct(F);if(B)return he(P,B.result,!1,{preventScrollReset:m});if(B=ct(H),B)return ee.add(B.key),he(P,B.result,!1,{preventScrollReset:m});let{loaderData:U,errors:W}=tt(M,C,F,void 0,D,H);Fe(_),"loading"===M.navigation.state&&_>X?(f(z,"Expected pending action"),L&&L.abort(),de(M.navigation.location,{matches:C,loaderData:U,errors:W,fetchers:new Map(M.fetchers)})):(ue({errors:W,loaderData:nt(M.loaderData,U,C,W),fetchers:new Map(M.fetchers)}),G=!1)}(t,n,g,m,w,v.active,d,A,y,u&&u.unstable_defaultShouldRevalidate):(te.set(t,{routeId:n,path:g}),await async function(t,n,o,i,s,l,u,d,f){let p=M.fetchers.get(t);Oe(t,Ot(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Je(e.history,o,h.signal);if(l){let e=await Qe(i,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ce(t,n,e.error,{flushSync:u});if(!e.matches)return void Ce(t,n,it(404,{pathname:o}),{flushSync:u});i=e.matches}let v=xt(i,o);K.set(t,h);let g=J,y=We(a,c,m,o,i,v,r,s),b=await me(m,o,y,s,t),w=b[v.route.id];K.get(t)===h&&K.delete(t);if(m.signal.aborted)return;if(ie.has(t))return void Oe(t,St(void 0));if(ht(w))return X>g?void Oe(t,St(void 0)):(ee.add(t),void await he(m,w,!1,{preventScrollReset:d}));if(pt(w))return void Ce(t,n,w.error);Oe(t,St(w.data))}(t,n,g,m,w,v.active,d,A,y))},revalidate:function(){le||(le=Et()),ke(),ue({revalidation:"loading"});let e=le.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(fe(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(fe(z||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===W}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ne,resetFetcher:function(e,t){De(e,t?.reason),Oe(e,St(null))},deleteFetcher:function(e){let t=(ne.get(e)||0)-1;t<=0?(ne.delete(e),ie.add(e)):ne.set(e,t),ue({fetchers:new Map(M.fetchers)})},dispose:function(){A&&A(),q&&q(),k.clear(),L&&L.abort(),M.fetchers.forEach(((e,t)=>Re(t))),M.blockers.forEach(((e,t)=>ze(t)))},getBlocker:function(e,t){let n=M.blockers.get(e)||we;return ce.get(e)!==t&&ce.set(e,t),n},deleteBlocker:ze,patchRoutes:function(e,t,n=!1){let r=null==i;_e(e,t,i||s,c,a,n),r&&(s=[...s],ue({}))},_internalFetchControllers:K,_internalSetRoutes:function(e){c={},i=O(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ue(e)}},e.unstable_instrumentations&&(h=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach((e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}))),n.navigate.length>0){let t=e.navigate[re]??e.navigate,r=ae(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?v(n):".",...se(e,r??{})}}));r&&(r[re]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[re]??e.fetch,r=ae(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...se(e,o??{})}}));r&&(r[re]=t,e.fetch=r)}return e}(h,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),h}function Se(e,t,n,r,o,a){let i,c;if(o){i=[];for(let e of t)if(i.push(e),e.route.id===o){c=e;break}}else i=t,c=t[t.length-1];let s=q(r||".",$(i),F(e.pathname,n)||e.pathname,"path"===a);if(null==r&&(s.search=e.search,s.hash=e.hash),(null==r||""===r||"."===r)&&c){let e=wt(s.search);if(c.route.index&&!e)s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(s.search),t=e.getAll("index");e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return"/"!==n&&(s.pathname=function({basename:e,pathname:t}){return"/"===t?e:G([e,t])}({basename:n,pathname:s.pathname})),v(s)}function Ee(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!yt(n.formMethod))return{path:t,error:it(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:it(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=st(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!bt(i))return a();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,[t,n])=>`${e}${t}=${n}\n`),""):String(n.body);return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!bt(i))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Qe(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Qe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ze(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ze(r)}catch(e){return a()}let s={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(bt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&wt(l.search)&&r.append("index",""),l.search=`?${r}`,{path:v(l),submission:s}}function je(e,t,n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g,y,b,w){let x,A=b?pt(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(a.location),O=o.createURL(s);if(u&&a.errors){let e=Object.keys(a.errors)[0];x=i.findIndex((t=>t.route.id===e))}else if(b&&pt(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let S=b?b[1].statusCode:void 0,j=S&&S>=400,P={currentUrl:k,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...c,actionResult:A,actionStatus:S},T=ee(i),C=i.map(((o,i)=>{let{route:c}=o,f=null;if(null!=x&&i>x)f=!1;else if(c.lazy)f=!0;else if(Pe(c))if(u){let{shouldLoad:e}=Te(c,a.loaderData,a.errors);f=e}else(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o})(a.loaderData,a.matches[i],o)&&(f=!0);else f=!1;if(null!==f)return Ue(n,r,e,s,T,o,l,t,f);let p=!1;"boolean"==typeof w?p=w:j?p=!1:(d||k.pathname+k.search===O.pathname+O.search||k.search!==O.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(a.matches[i],o))&&(p=!0);let h={...P,defaultShouldRevalidate:p},m=Ce(o,h);return Ue(n,r,e,s,T,o,l,t,m,h,w)})),_=[];return h.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||p.has(c))return;let s=a.fetchers.get(c),h=s&&"idle"!==s.state&&void 0===s.data,b=E(v,e.path,g);if(!b){if(y&&h)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(c))return;let x=xt(b,e.path),A=new AbortController,k=Je(o,e.path,A.signal),O=null;if(f.has(c))f.delete(c),O=We(n,r,k,e.path,b,x,l,t);else if(h)d&&(O=We(n,r,k,e.path,b,x,l,t));else{let o;o="boolean"==typeof w?w:!j&&d;let a={...P,defaultShouldRevalidate:o};Ce(x,a)&&(O=We(n,r,k,e.path,b,x,l,t,a))}O&&_.push({key:c,routeId:e.routeId,path:e.path,matches:O,match:x,request:k,controller:A})})),{dsMatches:C,revalidatingFetchers:_}}function Pe(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Te(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pe(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!o;return{shouldLoad:a,renderFallback:a}}function Ce(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function _e(e,t,n,r,o,a){let i;if(e){let t=r[e];f(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let c=[],s=[];if(t.forEach((e=>{let t=i.find((t=>Ne(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=O(c,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...t)}if(a&&s.length>0)for(let e=0;e<s.length;e++){let{existingRoute:t,newRoute:n}=s[e],r=t,[a]=O([n],o,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function Ne(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every(((e,n)=>t.children?.some((t=>Ne(e,t)))))??!1))}var Re=new WeakMap,De=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(f(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=Re.get(o);i||(i={},Re.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return A.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)p(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every((e=>void 0===e))&&(o.lazy=void 0))})();return i[e]=s,s},Le=new WeakMap;async function Ie(e){let t=e.matches.filter((e=>e.shouldLoad)),n={};return(await Promise.all(t.map((e=>e.resolve())))).forEach(((e,r)=>{n[t[r].route.id]=e})),n}async function Me(e){return e.matches.some((e=>e.route.middleware))?Fe(e,(()=>Ie(e))):Ie(e)}function Fe(e,t){return ze(e,t,(e=>{if(gt(e))throw e;return e}),ut,(function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex((e=>e.route.id===n)),0),Math.max(r.findIndex((e=>e.shouldCallHandler())),0)),a=ot(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function ze(e,t,n,r,o){let{matches:a,...i}=e,c=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await He(i,c,t,n,r,o)}async function He(e,t,n,r,o,a,i=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let s=t[i];if(!s){return await n()}let l,[u,d]=s,f=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await He(e,t,n,r,o,a,i+1);return l={value:c},l.value}catch(e){return l={value:await a(e,u,l)},l.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await f()},l.value)}catch(e){return await a(e,u,l)}}function Be(e,t,n,r,o){let a=De({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(f(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Le.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{f("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let i=(o=e,k.has(o)),c=void 0!==a[e]&&"hasErrorBoundary"!==e;i?p(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):c?p(!c,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}var o;Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Le.set(a,n),n.catch((()=>{})),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,c=Object.keys(e.lazy),s=[];for(let a of c){if(o&&o.includes(a))continue;let c=De({key:a,route:e,manifest:n,mapRouteProperties:r});c&&(s.push(c),a===t&&(i=c))}let l=s.length>0?Promise.all(s).then((()=>{})):void 0;return l?.catch((()=>{})),i?.catch((()=>{})),{lazyRoutePromise:l,lazyHandlerPromise:i}}(r.route,bt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Ue(e,t,n,r,o,a,i,c,s,l=null,u){let d=!1,f=Be(e,t,n,a,i);return{...a,_lazyPromises:f,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?Ce(a,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=a.route,u=d||s||e&&!bt(n.method)&&(t||i),p=l&&l.length>0&&!i&&!t;return!u||!bt(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:i,scopedContext:c}){let s,l,u=bt(e.method),d=u?"action":"loader",f=o=>{let a,s=new Promise(((e,t)=>a=t));l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,unstable_url:Xe(e,t),unstable_pattern:n,params:r.params,context:c},...void 0!==a?[a]:[]),f=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([f,s])};try{let t=u?r.route.action:r.route.loader;if(o||a)if(t){let e,[n]=await Promise.all([f(t).catch((t=>{e=t})),o,a]);if(void 0!==e)throw e;s=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw it(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([f(t),a])}else{if(!t){let t=new URL(e.url);throw it(404,{pathname:t.pathname+t.search})}s=await f(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,path:r,unstable_pattern:o,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:c})}}}function We(e,t,n,r,o,a,i,c,s=null){return o.map((l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:Be(e,t,n,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ue(e,t,n,r,ee(o),l,i,c,!0,s)))}async function $e(e,t,n,r,o,a,i){r.some((e=>e._lazyPromises?.middleware))&&await Promise.all(r.map((e=>e._lazyPromises?.middleware)));let c={request:t,unstable_url:Xe(t,n),unstable_pattern:ee(r),params:r[0].params,context:a,matches:r},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=c;return Fe(t,(()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},l=await e({...c,fetcherKey:o,runClientMiddleware:s});try{await Promise.all(r.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return l}async function qe(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function Ve(e){let{result:t,type:n}=e;if(vt(t)){let e;try{e=await qe(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Q(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?mt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:lt(t),statusCode:Z(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Z(t)?t.status:void 0}:mt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ge(e,t,n,r,o){let a=e.headers.get("Location");if(f(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!H(a)){let i=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=Se(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}var Ye=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ke(e,t,n,r){if(H(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(Ye.includes(o.protocol))throw new Error("Invalid redirect location");let a=null!=F(o.pathname,n);if(o.origin===t.origin&&a)return V(o.pathname)+o.search+o.hash}try{let t=r.createURL(e);if(Ye.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function Je(e,t,n,r){let o=e.createURL(st(t)).toString(),a={signal:n};if(r&&bt(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Qe(r.formData):a.body=r.formData}return new Request(o,a)}function Xe(e,t){let n=new URL(e.url),r="string"==typeof t?g(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Qe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ze(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function et(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&pt(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let d=n.route.id,p=t[d];if(f(!ht(p),"Cannot handle redirect results in processLoaderData"),pt(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[d]=t;else{let n=ot(e,d);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[d]=ke),s||(s=!0,a=Z(p.error)?p.error.status:500),p.headers&&(l[d]=p.headers)}else i[d]=p.data,p.statusCode&&200!==p.statusCode&&!s&&(a=p.statusCode),p.headers&&(l[d]=p.headers)})),void 0!==u&&n&&(c={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:c,statusCode:a||200,loaderHeaders:l}}function tt(e,t,n,r,o,a){let{loaderData:i,errors:c}=et(t,n,r);return o.filter((e=>!e.matches||e.matches.some((e=>e.shouldLoad)))).forEach((t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let i=a[n];if(f(i,"Did not find corresponding fetcher result"),pt(i)){let t=ot(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(ht(i))f(!1,"Unhandled fetcher revalidation redirect");else{let t=St(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function nt(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==ke)).reduce(((e,[t,n])=>(e[t]=n,e)),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function rt(e){return e?pt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ot(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function at(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function it(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(i="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(i="Forbidden",c=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",c=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Q(e||500,i,new Error(c),!0)}function ct(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ht(r))return{key:n,result:r}}}function st(e){return v({..."string"==typeof e?g(e):e,hash:""})}function lt(e){return new Q(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function ut(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&dt(t)))}function dt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ft(e){return vt(e.result)&&ve.has(e.result.status)}function pt(e){return"error"===e.type}function ht(e){return"redirect"===(e&&e.type)}function mt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function vt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function gt(e){return vt(e)&&(t=e.status,ve.has(t))&&e.headers.has("Location");var t}function yt(e){return me.has(e.toUpperCase())}function bt(e){return pe.has(e.toUpperCase())}function wt(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function xt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&wt(n||""))return e[e.length-1];let r=W(e);return r[r.length-1]}function At(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function kt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ot(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function St(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Et(){let e,t,n=new Promise(((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}}));return{promise:n,resolve:e,reject:t}}var jt=a.createContext(null);jt.displayName="DataRouter";var Pt=a.createContext(null);Pt.displayName="DataRouterState";var Tt=a.createContext(!1);function Ct(){return a.useContext(Tt)}var _t=a.createContext({isTransitioning:!1});_t.displayName="ViewTransition";var Nt=a.createContext(new Map);Nt.displayName="Fetchers";var Rt=a.createContext(null);Rt.displayName="Await";var Dt=a.createContext(null);Dt.displayName="Navigation";var Lt=a.createContext(null);Lt.displayName="Location";var It=a.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Mt=a.createContext(null);Mt.displayName="RouteError";var Ft="REACT_ROUTER_ERROR";function zt(){return null!=a.useContext(Lt)}function Ht(){return f(zt(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Lt).location}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ut(e){a.useContext(Dt).static||a.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=a.useContext(It);return e?function(){let{router:e}=tn("useNavigate"),t=rn("useNavigate"),n=a.useRef(!1);return Ut((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{p(n.current,Bt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){f(zt(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(jt),{basename:t,navigator:n}=a.useContext(Dt),{matches:r}=a.useContext(It),{pathname:o}=Ht(),i=JSON.stringify($(r)),c=a.useRef(!1);return Ut((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(p(c.current,Bt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=q(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:G([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function $t(){let{matches:e}=a.useContext(It),t=e[e.length-1];return t?t.params:{}}function qt(e,{relative:t}={}){let{matches:n}=a.useContext(It),{pathname:r}=Ht(),o=JSON.stringify($(n));return a.useMemo((()=>q(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function Vt(e,t,n){f(zt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(Dt),{matches:o}=a.useContext(It),i=o[o.length-1],c=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";un(s,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,h=Ht();if(t){let e="string"==typeof t?g(t):t;f("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` 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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=E(e,{pathname:v});p(u||null!=y,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),p(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Zt(y&&y.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:G([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:G([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),o,n);return t&&b?a.createElement(Lt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},b):b}function Gt(){let e=an(),t=Z(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)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:i},"ErrorBoundary")," or"," ",a.createElement("code",{style:i},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,c)}var Yt=a.createElement(Gt,null),Kt=class extends a.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||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Ft}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new Q(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(It.Provider,{value:this.props.routeContext},a.createElement(Mt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(Xt,{error:e},t):t}};Kt.contextType=Tt;var Jt=new WeakMap;function Xt({children:e,error:t}){let{basename:n}=a.useContext(Dt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Ft}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Jt.get(t);if(r)throw r;let o=ne(e.location,n);if(te&&!Jt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Jt.set(t,n),n}window.location.href=o.absoluteURL||o.to}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Qt({routeContext:e,match:t,children:n}){let r=a.useContext(jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(It.Provider,{value:e},n)}function Zt(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));f(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,s=-1;if(n&&r){c=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||i){n.isStatic&&(c=!0),o=s>=0?o.slice(0,s+1):[o[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ee(r.matches),errorInfo:t})}:void 0;return o.reduceRight(((e,n,l)=>{let d,f=!1,p=null,h=null;r&&(d=i&&n.route.id?i[n.route.id]:void 0,p=n.route.errorElement||Yt,c&&(s<0&&0===l?(un("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):s===l&&(f=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,l+1)),v=()=>{let t;return t=d?p:f?h:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Qt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?a.createElement(Kt,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):v()}),null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tn(e){let t=a.useContext(jt);return f(t,en(e)),t}function nn(e){let t=a.useContext(Pt);return f(t,en(e)),t}function rn(e){let t=function(e){let t=a.useContext(It);return f(t,en(e)),t}(e),n=t.matches[t.matches.length-1];return f(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function on(){let{matches:e,loaderData:t}=nn("useMatches");return a.useMemo((()=>e.map((e=>P(e,t)))),[e,t])}function an(){let e=a.useContext(Mt),t=nn("useRouteError"),n=rn("useRouteError");return void 0!==e?e:t.errors?.[n]}var cn=0;function sn(e){let{router:t,basename:n}=tn("useBlocker"),r=nn("useBlocker"),[o,i]=a.useState(""),c=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:a}=t;return e({currentLocation:{...r,pathname:F(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:F(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++cn);return i(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==o&&t.getBlocker(o,c)}),[t,o,c]),o&&r.blockers.has(o)?r.blockers.get(o):we}var ln={};function un(e,t,n){t||ln[e]||(ln[e]=!0,p(!1,n))}var dn={};function fn(e,t){e||dn[t]||(dn[t]=!0,console.warn(t))}var pn=(r||(r=n.t(a,2))).useOptimistic,hn=()=>{};function mn(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var vn=["HydrateFallback","hydrateFallbackElement"];function gn(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:vn,mapRouteProperties:mn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var yn=class{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}};function bn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=Ct();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,pn?pn(u):[u,hn]);var u;let[d,f]=a.useState(),[p,h]=a.useState({isTransitioning:!1}),[m,v]=a.useState(),[g,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),A=a.useCallback(((o,{deletedFetchers:i,newErrors:s,flushSync:u,viewTransitionOpts:d})=>{s&&n&&Object.values(s).forEach((e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:ee(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),fn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(fn(null==d||p,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&p){if(t&&u){t((()=>{g&&(m?.resolve(),g.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})}))})),void t((()=>y(n)))}g?(m?.resolve(),g.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t((()=>c(o))):!1===r?c(o):a.startTransition((()=>{!0===r&&l((e=>wn(e,o))),c(o)}))}),[e.window,t,g,m,r,l,n]);a.useLayoutEffect((()=>e.subscribe(A)),[e,A]);let k=s.initialized;a.useLayoutEffect((()=>{!k&&e.state.initialized&&A(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})}),[k,A,e.state]),a.useEffect((()=>{p.isTransitioning&&!p.flushSync&&v(new yn)}),[p]),a.useEffect((()=>{if(m&&d&&e.window){let t=d,n=m.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>wn(e,t))),c(t)})),await n}));o.finished.finally((()=>{v(void 0),y(void 0),f(void 0),h({isTransitioning:!1})})),y(o)}}),[d,m,e.window,r,l]),a.useEffect((()=>{m&&d&&s.location.key===d.location.key&&m.resolve()}),[m,g,s.location,d]),a.useEffect((()=>{!p.isTransitioning&&b&&(f(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[p.isTransitioning,b]);let O=a.useMemo((()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})})),[e]),S=e.basename||"/",E=a.useMemo((()=>({router:e,navigator:O,static:!1,basename:S,onError:n})),[e,O,S,n]);return a.createElement(a.Fragment,null,a.createElement(jt.Provider,{value:E},a.createElement(Pt.Provider,{value:s},a.createElement(Nt.Provider,{value:x.current},a.createElement(_t.Provider,{value:p},a.createElement(Sn,{basename:S,location:s.location,navigationType:s.historyAction,navigator:O,unstable_useTransitions:r},a.createElement(xn,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function wn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var xn=a.memo(An);function An({routes:e,future:t,state:n,isStatic:r,onError:o}){return Vt(e,void 0,{state:n,isStatic:r,onError:o,future:t})}function kn({to:e,replace:t,state:n,relative:r}){f(zt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Dt);p(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=a.useContext(It),{pathname:c}=Ht(),s=Wt(),l=q(e,$(i),c,"path"===r),u=JSON.stringify(l);return a.useEffect((()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})}),[s,u,r,t,n]),null}function On(e){f(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Sn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){f(!zt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=a.useMemo((()=>({basename:s,navigator:o,static:i,unstable_useTransitions:c,future:{}})),[s,o,i,c]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:v="default",unstable_mask:y}=n,b=a.useMemo((()=>{let e=F(u,s);return null==e?null:{location:{pathname:e,search:d,hash:h,state:m,key:v,unstable_mask:y},navigationType:r}}),[s,u,d,h,m,v,r,y]);return p(null!=b,`<Router basename="${s}"> is not able to match the URL "${u}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:a.createElement(Dt.Provider,{value:l},a.createElement(Lt.Provider,{children:t,value:b}))}function En({children:e,location:t}){return Vt(jn(e),t)}a.Component;function jn(e,t=[]){let n=[];return a.Children.forEach(e,((e,r)=>{if(!a.isValidElement(e))return;let o=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,jn(e.props.children,o));f(e.type===On,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),f(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=jn(e.props.children,o)),n.push(i)})),n}var Pn="get",Tn="application/x-www-form-urlencoded";function Cn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function _n(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Nn=null;var Rn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dn(e){return null==e||Rn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tn}"`),null)}function Ln(e,t){let n,r,o,a,i;if(Cn(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?F(i,t):null,n=e.getAttribute("method")||Pn,o=Dn(e.getAttribute("enctype"))||Tn,a=new FormData(e)}else if(function(e){return Cn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Cn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(r=c?F(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Pn,o=Dn(e.getAttribute("formenctype"))||Dn(i.getAttribute("enctype"))||Tn,a=new FormData(i,e),!function(){if(null===Nn)try{new FormData(document.createElement("form"),0),Nn=!1}catch(e){Nn=!0}return Nn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,r)}}else{if(Cn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pn,r=null,o=Tn,i=e}var c;return a&&"text/plain"===o&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;var In={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Mn=/[&><\u2028\u2029]/g;function Fn(e){return e.replace(Mn,(e=>In[e]))}function zn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Hn(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===F(o.pathname,t)?o.pathname=`${Y(t)}/_root.${r}`:o.pathname=`${Y(o.pathname)}.${r}`,o}async function Bn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Un(e){return null!=e&&"string"==typeof e.page}function Wn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function $n(e,t,n,r,o,a){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,c=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===a?t.filter(((e,t)=>i(e,t)||c(e,t))):"data"===a?t.filter(((t,a)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,a)||c(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function qn(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Vn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Un(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}function Gn(e,t){return"lazy"===e.mode&&!0===t}function Yn(){let e=a.useContext(jt);return zn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Kn(){let e=a.useContext(Pt);return zn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jn=a.createContext(void 0);function Xn(){let e=a.useContext(Jn);return zn(e,"You must render this element inside a <HydratedRouter> element"),e}function Qn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zn(e,t,n){if(n&&!or)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Jn.displayName="FrameworkContext";function er({page:e,...t}){let n=Ct(),{router:r}=Yn(),o=a.useMemo((()=>E(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?n?a.createElement(nr,{page:e,matches:o,...t}):a.createElement(rr,{page:e,matches:o,...t}):null}function tr(e){let{manifest:t,routeModules:n}=Xn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return Vn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Bn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Wn).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||o(e)})),()=>{r=!0}}),[e,t,n]),r}function nr({page:e,matches:t,...n}){let r=Ht(),{future:o}=Xn(),{basename:i}=Yn(),c=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Hn(e,i,o.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,c=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:c.push(e.route.id);return a&&c.length>0&&n.searchParams.set("_routes",c.join(",")),[n.pathname+n.search]}),[i,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,c.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))))}function rr({page:e,matches:t,...n}){let r=Ht(),{future:o,manifest:i,routeModules:c}=Xn(),{basename:s}=Yn(),{loaderData:l,matches:u}=Kn(),d=a.useMemo((()=>$n(e,t,u,i,r,"data")),[e,t,u,i,r]),f=a.useMemo((()=>$n(e,t,u,i,r,"assets")),[e,t,u,i,r]),p=a.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in l&&c[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))})),0===n.size)return[];let u=Hn(e,s,o.unstable_trailingSlashAwareDataRequests,"data");return a&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,c]),h=a.useMemo((()=>qn(f,i)),[f,i]),m=tr(f);return a.createElement(a.Fragment,null,p.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),h.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var or=!1;function ar(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Xn(),{router:s,static:l,staticContext:u}=Yn(),{matches:d}=Kn(),f=Ct(),p=Gn(i,c);o&&(o.didRenderScripts=!0);let h=Zn(d,null,r);a.useEffect((()=>{0}),[]);let m=a.useMemo((()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];zn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:i,clientMiddlewareModule:c,hydrateFallbackModule:s,module:l}=o,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...c?[{module:c,varName:`${r}_clientMiddleware`}]:[],...s?[{module:s,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(l)};`:[u.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${u.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),a=["/"];for(o.pop();o.length>0;)a.push(`/${o.join("/")}`),o.pop();a.forEach((e=>{let t=E(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let i=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:i,sri:!!e||void 0}}(t,s),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return a.createElement(a.Fragment,null,a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),a.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))}),[]),v=or||f?[]:(t.entry.imports.concat(qn(h,t,{includeHydrateFallback:!0})),[...new Set(g)]);var g;let y="object"==typeof t.sri?t.sri:{};return fn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),or||f?null:a.createElement(a.Fragment,null,"object"==typeof t.sri?a.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,p?null:a.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),m)}function ir(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function cr({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(Z(e))return a.createElement(sr,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return a.createElement(sr,{title:"Application Error!",isOutsideRemixApp:t},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function sr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Xn();return o.root?.Layout&&!n?r:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,e)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?a.createElement(ar,null):null)))}var lr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{lr&&(window.__reactRouterVersion="7.14.1")}catch(e){}function ur(e,t){return Oe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||dr(),routes:e,mapRouteProperties:mn,hydrationRouteProperties:vn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function dr(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:fr(e.errors)}),e}function fr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Q(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var pr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,unstable_mask:c,state:s,target:l,to:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h,...m},g){let{basename:y,navigator:b,unstable_useTransitions:w}=a.useContext(Dt),x="string"==typeof u&&pr.test(u),A=ne(u,y),k=function(e,{relative:t}={}){f(zt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Dt),{hash:o,pathname:i,search:c}=qt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:G([n,i])),r.createHref({pathname:s,search:c,hash:o})}(u=A.to,{relative:r}),O=Ht(),S=null;if(c){let e=q(c,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:G([y,e.pathname])),S=b.createHref(e)}let[E,j,P]=function(e,t){let n=a.useContext(Jn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect((()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{c(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{o(!0)},m=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,p,{}]:[i,p,{onFocus:Qn(s,h),onBlur:Qn(l,m),onMouseEnter:Qn(u,h),onMouseLeave:Qn(d,m),onTouchStart:Qn(f,h)}]:[!1,p,{}]}(n,m),T=function(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Wt(),f=Ht(),p=qt(e,{relative:c});return a.useCallback((h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:v(f)===v(p),m=()=>d(e,{replace:t,unstable_mask:r,state:o,preventScrollReset:i,relative:c,viewTransition:s,unstable_defaultShouldRevalidate:l});u?a.startTransition((()=>m())):m()}}),[f,d,p,n,r,o,t,e,i,c,s,l,u])}(u,{replace:i,unstable_mask:c,state:s,target:l,preventScrollReset:d,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:w});let C=!(A.isExternal||o),_=a.createElement("a",{...m,...P,href:(C?S:void 0)||A.absoluteURL||k,onClick:C?function(t){e&&e(t),t.defaultPrevented||T(t)}:e,ref:ir(g,j),target:l,"data-discover":x||"render"!==t?void 0:"true"});return E&&!x?a.createElement(a.Fragment,null,_,a.createElement(er,{page:k})):_}));hr.displayName="Link",a.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:i,viewTransition:c,children:s,...l},u){let d=qt(i,{relative:l.relative}),p=Ht(),h=a.useContext(Pt),{navigator:m,basename:v}=a.useContext(Dt),g=null!=h&&function(e,{relative:t}={}){let n=a.useContext(_t);f(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yr("useViewTransitionState"),o=qt(e,{relative:t});if(!n.isTransitioning)return!1;let i=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=L(o.pathname,c)||null!=L(o.pathname,i)}(d)&&!0===c,y=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=F(w,v)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let A,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),O=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:k,isPending:O,isTransitioning:g},E=k?e:void 0;A="function"==typeof n?n(S):[n,k?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(hr,{...l,"aria-current":E,className:A,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var mr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=Pn,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h,...m},g)=>{let{unstable_useTransitions:y}=a.useContext(Dt),b=Ar(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Dt),r=a.useContext(It);f(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...qt(e||".",{relative:t})},c=Ht();if(null==e){i.search=c.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:G([n,i.pathname]));return v(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",A="string"==typeof s&&pr.test(s);return a.createElement("form",{ref:g,method:x,action:w,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||c,f=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:h});y&&!1!==n?a.startTransition((()=>f())):f()},...m,"data-discover":A||"render"!==e?void 0:"true"})}));function vr({getKey:e,storageKey:t,...n}){let r=a.useContext(Jn),{basename:o}=a.useContext(Dt),i=Ht(),c=on();!function({getKey:e,storageKey:t}={}){let{router:n}=yr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=br("useScrollRestoration"),{basename:i}=a.useContext(Dt),c=Ht(),s=on(),l=nn("useNavigation").navigation;a.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:n}=t||{};a.useEffect((()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,n])}(a.useCallback((()=>{if("idle"===l.state){let t=Sr(c,s,i,e);Or[t]=window.scrollY}try{sessionStorage.setItem(t||kr,JSON.stringify(Or))}catch(e){p(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"}),[l.state,e,i,c,s,t])),"undefined"!=typeof document&&(a.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(t||kr);e&&(Or=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(Or,(()=>window.scrollY),e?(t,n)=>Sr(t,n,i,e):void 0);return()=>t&&t()}),[n,i,e]),a.useLayoutEffect((()=>{if(!1!==r)if("number"!=typeof r){try{if(c.hash){let e=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{p(!1,`"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,r)}),[c,r,o]))}({getKey:e,storageKey:t});let s=a.useMemo((()=>{if(!r||!e)return null;let t=Sr(i,c,o,e);return t!==i.key?t:null}),[]);if(!r||r.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return a.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Fn(JSON.stringify(t||kr))}, ${Fn(JSON.stringify(s))})`}})}function gr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yr(e){let t=a.useContext(jt);return f(t,gr(e)),t}function br(e){let t=a.useContext(Pt);return f(t,gr(e)),t}function wr(e){p("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(_n(e)),n=a.useRef(!1),r=Ht(),o=a.useMemo((()=>function(e,t){let n=_n(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=Wt(),c=a.useCallback(((e,t)=>{const r=_n("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}mr.displayName="Form",vr.displayName="ScrollRestoration";var xr=0;function Ar(){let{router:e}=yr("useSubmit"),{basename:t}=a.useContext(Dt),n=rn("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Ln(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++xr)}__`;await r(e,n,a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,flushSync:a.flushSync})}else await o(a.action||i,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||c,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})}),[r,o,t,n])}var kr="react-router-scroll-positions",Or={};function Sr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:F(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}},52600(e,t,n){"use strict";n.d(t,{pg:()=>i});var r=n(50766),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},72367(e,t,n){"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725(e,t,n){"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return o(e).getComputedStyle(e)}function i(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function s(e){return e instanceof o(e).HTMLElement}function l(e){return e instanceof o(e).Element}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function p(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const h=Math.round;function m(e,t,n){var r,a,i,c;void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect();let d=1,p=1;t&&s(e)&&(d=e.offsetWidth>0&&h(u.width)/e.offsetWidth||1,p=e.offsetHeight>0&&h(u.height)/e.offsetHeight||1);const m=l(e)?o(e):window,v=!f()&&n,g=(u.left+(v&&null!=(r=null==(a=m.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(v&&null!=(i=null==(c=m.visualViewport)?void 0:c.offsetTop)?i:0))/p,b=u.width/d,w=u.height/p;return{width:b,height:w,top:y,right:g+b,bottom:y+w,left:g,x:g,y}}function v(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function g(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||v(e);return u(t)?t.host:t}function y(e){const t=g(e);return p(t)?e.ownerDocument.body:s(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=o(r),c=a?[i].concat(i.visualViewport||[],d(r)?r:[]):r,s=t.concat(c);return a?s:s.concat(b(c))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:c=!1}=r,s=o&&!c,u=s||a?[...l(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));let d,f=null;if(i){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&f.observe(e),l(e)||!e.contextElement||c||f.observe(e.contextElement),f.observe(t)}let p=c?m(e):null;return c&&function t(){const r=m(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,c&&cancelAnimationFrame(d)}}},21396(e,t,n){"use strict";n.d(t,{LU:()=>s,MS:()=>r,Sv:()=>u,XZ:()=>c,YK:()=>i,j:()=>a,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",a="-webkit-",i="comm",c="rule",s="decl",l="@import",u="@keyframes"},53473(e,t,n){"use strict";n.d(t,{MY:()=>a,r1:()=>o});var r=n(18061);function o(e){var t=(0,r.FK)(e);return function(n,r,o,a){for(var i="",c=0;c<t;c++)i+=e[c](n,r,o,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},71458(e,t,n){"use strict";n.d(t,{wE:()=>i});var r=n(21396),o=n(18061),a=n(19552);function i(e){return(0,a.VF)(c("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function c(e,t,n,r,i,d,f,p,h){for(var m=0,v=0,g=f,y=0,b=0,w=0,x=1,A=1,k=1,O=0,S="",E=i,j=d,P=r,T=S;A;)switch(w=O,O=(0,a.K2)()){case 40:if(108!=w&&58==(0,o.wN)(T,g-1)){-1!=(0,o.K5)(T+=(0,o.HC)((0,a.Tb)(O),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:T+=(0,a.Tb)(O);break;case 9:case 10:case 13:case 32:T+=(0,a.mw)(w);break;case 92:T+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,o.BC)(l((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,n),h);break;default:T+="/"}break;case 123*x:p[m++]=(0,o.b2)(T)*k;case 125*x:case 59:case 0:switch(O){case 0:case 125:A=0;case 59+v:b>0&&(0,o.b2)(T)-g&&(0,o.BC)(b>32?u(T+";",r,n,g-1):u((0,o.HC)(T," ","")+";",r,n,g-2),h);break;case 59:T+=";";default:if((0,o.BC)(P=s(T,t,n,m,v,i,p,S,E=[],j=[],g),d),123===O)if(0===v)c(T,t,P,P,E,d,g,p,j);else switch(99===y&&110===(0,o.wN)(T,3)?100:y){case 100:case 109:case 115:c(e,P,P,r&&(0,o.BC)(s(e,P,P,0,0,i,p,S,i,E=[],g),j),i,j,g,p,r?E:j);break;default:c(T,P,P,P,[""],j,0,p,j)}}m=v=b=0,x=k=1,S=T="",g=f;break;case 58:g=1+(0,o.b2)(T),b=w;default:if(x<1)if(123==O)--x;else if(125==O&&0==x++&&125==(0,a.YL)())continue;switch(T+=(0,o.HT)(O),O*x){case 38:k=v>0?1:(T+="\f",-1);break;case 44:p[m++]=((0,o.b2)(T)-1)*k,k=1;break;case 64:45===(0,a.se)()&&(T+=(0,a.Tb)((0,a.K2)())),y=(0,a.se)(),v=g=(0,o.b2)(S=T+=(0,a.Cv)((0,a.OW)())),O++;break;case 45:45===w&&2==(0,o.b2)(T)&&(x=0)}}return d}function s(e,t,n,i,c,s,l,u,d,f,p){for(var h=c-1,m=0===c?s:[""],v=(0,o.FK)(m),g=0,y=0,b=0;g<i;++g)for(var w=0,x=(0,o.c1)(e,h+1,h=(0,o.tn)(y=l[g])),A=e;w<v;++w)(A=(0,o.Bq)(y>0?m[w]+" "+x:(0,o.HC)(x,/&\f/g,m[w])))&&(d[b++]=A);return(0,a.rH)(e,t,n,0===c?r.XZ:u,d,f,p)}function l(e,t,n){return(0,a.rH)(e,t,n,r.YK,(0,o.HT)((0,a.Tp)()),(0,o.c1)(e,2,-2),0)}function u(e,t,n,i){return(0,a.rH)(e,t,n,r.LU,(0,o.c1)(e,0,i),(0,o.c1)(e,i+1,-1),i)}},3485(e,t,n){"use strict";n.d(t,{A:()=>i,l:()=>a});var r=n(21396),o=n(18061);function a(e,t){for(var n="",r=(0,o.FK)(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function i(e,t,n,i){switch(e.type){case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+a(e.children,i)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=a(e.children,i))?e.return=e.value+"{"+n+"}":""}},19552(e,t,n){"use strict";n.d(t,{C:()=>d,Cv:()=>E,G1:()=>c,K2:()=>h,Nc:()=>k,OW:()=>v,Sh:()=>y,Tb:()=>x,Tp:()=>f,VF:()=>w,YL:()=>p,c4:()=>b,di:()=>g,mw:()=>A,nf:()=>S,rH:()=>u,se:()=>m});var r=n(18061),o=1,a=1,i=0,c=0,s=0,l="";function u(e,t,n,r,i,c,s){return{value:e,root:t,parent:n,type:r,props:i,children:c,line:o,column:a,length:s,return:""}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function f(){return s}function p(){return s=c>0?(0,r.wN)(l,--c):0,a--,10===s&&(a=1,o--),s}function h(){return s=c<i?(0,r.wN)(l,c++):0,a++,10===s&&(a=1,o++),s}function m(){return(0,r.wN)(l,c)}function v(){return c}function g(e,t){return(0,r.c1)(l,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return o=a=1,i=(0,r.b2)(l=e),c=0,[]}function w(e){return l="",e}function x(e){return(0,r.Bq)(g(c-1,O(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(s=m())&&s<33;)h();return y(e)>2||y(s)>3?"":" "}function k(e,t){for(;--t&&h()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return g(e,v()+(t<6&&32==m()&&32==h()))}function O(e){for(;h();)switch(s){case e:return c;case 34:case 39:34!==e&&39!==e&&O(s);break;case 40:41===e&&O(e);break;case 92:h()}return c}function S(e,t){for(;h()&&e+s!==57&&(e+s!==84||47!==m()););return"/*"+g(t,c-1)+"*"+(0,r.HT)(47===e?e:h())}function E(e){for(;!y(m());)h();return g(e,c)}},18061(e,t,n){"use strict";n.d(t,{BC:()=>m,Bq:()=>c,FK:()=>h,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>p,c1:()=>f,kg:()=>v,kp:()=>a,tW:()=>i,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function m(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}},92149(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(4883),o=n(81845),a=n(2418);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const c=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class s extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new a(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(t,c),a=i({target:this._targetNode.current,element:this._elementParentNode},o),s=n||"";if(this._elementParentNode&&this._elementParentNode.id!==s&&(this._elementParentNode.id=s),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(a):this._createTetherInstance(a),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346(e,t,n){"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>a});var o=r(),a=r},14644(e,t,n){"use strict";function r(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. `}n.d(t,{HY:()=>l,Qd:()=>c,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>s,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function c(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let a=e,l=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return l}function v(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function g(e){if(!c(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,l=a(l,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}g({type:i.INIT});return{dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,g({type:i.REPLACE})},[o]:function(){const e=v;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let a;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const c={};for(let a=0;a<o.length;a++){const s=o[a],l=n[s],u=e[s],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}c[s]=d,i=i||d!==u}return i=i||o.length!==Object.keys(e).length,i?c:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function p(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const c={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map((e=>e(c)));return i=f(...s)(a.dispatch),{...a,dispatch:i}}}function h(e){return c(e)&&"type"in e&&"string"==typeof e.type}}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var a={};n=n||[null,r({}),r([]),r(r)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,s.d(o,a),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"chunk-"+({4672:"phone-formatter",36916:"vendor-icons",49222:"vendor-libphonenumber-js",54236:"actions",54310:"vendor-fontawesome",61556:"docs-actions",71262:"html-editor",83722:"code-editor"}[e]||e)+"."+{311:"55b709a1e67d30741e96",662:"0709b28425abca2159be",850:"fc9b4e2f1f0020dc680a",996:"21a842210fa3c8385856",1207:"eb29c85fefa59b81ee29",1216:"6acaae98c11fc5093b1c",1221:"9ed57a05f59fb0852f8d",1234:"b772b800007fe0af5ca0",1325:"bbf245813bc3167f8e28",1361:"c72713c80a4d951a3536",1496:"e29046cbbe103a33b971",1655:"57f39649ad023fe0a44d",1702:"6a2e20365a9fe58c9408",1766:"3266b3e54db03e176fd5",2045:"d2e6608a066a0e1a8075",2070:"3c2b089a2893beb5cf51",2451:"3466483b840640f19706",2540:"26a95001fce688f4df0a",2586:"aab9805dfd4411d66a75",2682:"fbce207866337b7948c6",3082:"1e22f1f7069c73263cca",3459:"62de1f29b122c6070a0c",4139:"86ea494a01052de0a906",4490:"4aa480502a55b02d2792",4672:"df409b6ab91acadfb10f",5243:"79991c7b9691fcd34056",5318:"50ce2dedab26b3e546b1",5438:"075f4fcfe1218743620f",5575:"0c64f6946a4fa6bbdfcc",5817:"3634825f807251ab5b20",6041:"0e58d9c8c41755f867d5",6147:"1f7ce063c1946f2f1359",6396:"9f55f8d7e81293cfd96a",6644:"beeb0a46b19d88c16d38",6893:"d1b655a118b8d35f16c9",7313:"0e9a157fd98f73fbb077",7625:"97c0b0e226ea9ffdb330",7668:"de0a4d13f9c57aa4363d",7743:"6a3b2b01e444368af9e2",7802:"e868ffe14749aedeb427",7989:"7d67b889e58f85f2fbf6",8171:"eef1e28193232f867458",8504:"71d1263e1e332cc8b63f",8676:"22c3b6e2ce770a269eeb",8818:"f48798d6db7389a4b62f",8992:"c75371a8810e05de1160",9017:"443c3b54409f19ee7c1b",9561:"482cce5d4fc3dbfe4ac2",9603:"43097da4b936011acc15",9753:"2104911286eef06de727",10012:"c8ab2dee83486b2444c8",10472:"3facaa10badfa19af71a",10499:"cd327bb45eefa3229969",10655:"a1310d1c80d1a95e1320",10910:"f9a73d6b14e4fece4326",11211:"2aeb59e8e88d31fdd075",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"e00735b41ae6ff2c87fc",13081:"6e3a716365ee7d39dd63",13093:"3b4932fbe1e946badeb8",13124:"764ef1f63f450a6e264e",13452:"f31354ce62affe8aa010",13622:"5769fcec499ffa3f8767",14291:"6b35b1445b08f16e746a",14527:"14552f16863cd535b9f3",14663:"97d3fa97b5fbc43dcb6b",14879:"fc754cc445fe49ec62d1",14973:"f5bd4d6821369ddb9902",15028:"12e19959715ac40d672a",15197:"deff53df5228fa2c24f0",15692:"2220e995fc039eb05eae",15802:"fd306bc350d0626d0473",15898:"1158c67247e4c8ab4f3c",16334:"fafa6ea6d3569a75d135",17e3:"c3fd2a7dc35291a84ae9",17076:"0f19a6b0d9cc8dc8ab61",17247:"db0ba89198c83764a522",17380:"9dc5fc5b4589a4c4c03d",18334:"b7ee0200ec27b95f0b60",18410:"bef573967f30cde14a27",18849:"f2472681cf4af859b992",19217:"1515dc5b023136b25cdd",19249:"90baded3ae36d9b7566a",19557:"2e0873273209dff402bc",19588:"3ad1468e8a3e9a8f7722",19786:"368da19980cfa756d67a",19956:"988e55513ade05075610",20009:"af75e80faa07fc7eab99",20047:"f7bee1ddda299d8667fe",20132:"5088bc17a351b35a9862",20360:"7fcaeef80d1db5956b22",20454:"fb27365591cf9a2129d6",20592:"f48bc52100574af18a16",20659:"e66eb1b6623329a2937c",21137:"4602565b0c56494683f3",21323:"2bfeee6325ccfa03bb82",21843:"e5f6f1902f9b094a6619",21901:"81698b2cc38d201c0a63",22030:"c6259dbf37721bbfbfd5",22584:"5d6cda172bda5322815d",22981:"7761a1310b113edb4605",23097:"ba847b56813726f79436",23257:"0b2c46625f3638e898cd",23407:"40a4f4ec8fc984c71455",24364:"c41187836437ff058e55",24499:"fe03519b5d9fbfd60fc3",24522:"584f31a073235fdd2e0a",24854:"a7fd3dfb0f0a153d69ef",25181:"4ade960a842ef4c100bb",25395:"12cec45009b444dc3631",25637:"be4ad6dabc51b1ac5b80",26051:"fd430c23c4ccf734e86b",26332:"86e899c360ce4305357b",26335:"4eef2a31a3376dc2a85f",26605:"7e65ff9ef2a2c0211495",26820:"fa58e092ebbee3d55be0",27211:"d3852ecf430737750021",28507:"609fae44f43cf8862780",28586:"1bcd120f8525d25beb3e",28734:"07684bf6b67a236ceaf0",28797:"5b5e2fa1d44428c8c827",29067:"2dfe443f7cc993f34941",29072:"a2ebb414065469553a79",29369:"8dafde99b5944fc2cf6f",29435:"660e92f79d1185e49133",29694:"18517adbc05c4642da34",29755:"7df6f8f9b7a96d4fcd5a",29861:"5f7679f4315fa3e2d0a3",29954:"79b1ae00af45e95a3c56",30470:"ac573086b4e17c955dc6",30486:"fd84837c0e602a7eaa62",30766:"217730baee42aed1b545",30897:"009ffa5de2ca2ddab31e",31001:"fc24be602d994b07bfe1",31131:"e00f6c558e7b634c6972",31255:"284d61fabe5b5e7e997f",31570:"38f44180ef39cc4bac78",31600:"102146e75a946ca0a528",31723:"3f9ca9f3db3e6aa55583",31835:"e7e6a10db3de690c40a5",32499:"755932b2aaa6c227b76c",32521:"284f3f58bed5891af7fe",32725:"084212f69acc91cc9e18",33204:"13d21862e8e9b6a61468",33227:"030d94d5f267409e7c89",33366:"cc6a7ba0fae65f10aa9b",33537:"ff4135b6b6d23fc0f21a",33688:"fd0e5ba6a25bc67d9142",34048:"82f3726f04680935d376",34163:"ef7ed0f0b6674e832d34",34675:"f249568ce058bdbe8959",34678:"adc95a7cdb5fb956efbd",34817:"02642114674717ea5515",34869:"1ae6b287a301074bace8",34916:"6793f2214984cbe50727",35173:"c9359f23abcb3ffbb024",36032:"a5a363c8f71950fc4255",36086:"181d5b1e040e11b819d1",36627:"599f51539711b56f98c0",36763:"96837ddc65e2150cb2da",36788:"0e7ffd3b0e524b3f1075",36916:"054e70b96c2e5c470388",37210:"f6278c0aadb80890fe5d",37551:"0a69c03c600be01a7959",37633:"50544d3151542cb1b0dc",37856:"9a37ed9989f007cb84f1",37887:"34bc6b68c4dfe77b7237",38223:"ae11e5ff036c4c7b6fe4",38297:"eedaae81cd83ca49ec70",38470:"6e4e7753c03332f46087",38506:"71f0b92fc5f9ab206a47",38749:"171a3deb73bfdbaf4a33",38848:"c103126300e5bd237e25",38909:"7bcd37f04776fd5618cc",38918:"588e8d295b84f0a9437c",39417:"5614744c5f77330f4adc",39669:"51e01abfaef96032f7ea",39797:"47480790e6c8b09c46bb",40426:"7a03b4113873e223f4fa",40975:"cb22d228c324ead003ec",41056:"b28cd9e48be188ca6e6f",41170:"9b6ca720904d7680825b",41293:"8b93fd134ecda415a88c",42049:"733b330d55d34c4be581",42206:"061386d61650c8dcc5f4",42482:"f2ce98cfbe1b7f4fd67c",43158:"60eb6fd2a03c92db6c32",43317:"ca9f4ceac867435d379d",43425:"b31052de5d55876efb17",43500:"c6835f9be8555cc4c110",43636:"2927cb3b50eef450cdf2",44286:"9971617eae952dd74262",44330:"41139c74898d549bc71f",44417:"9d80d6493d40b0348be4",44586:"d285afc00848c9d0cf72",44753:"f4531ccc8e9079e1e54f",44788:"1df2acb3c0abb6e02b23",45010:"88fdd69223a2ff04aaab",45011:"0f3ee20446072ae7e84d",45029:"450cac71e9af8a391422",45202:"648abbbcd149fea5425a",45209:"467b29b9742795038062",45587:"e178f27893c9c32ef621",45631:"5d3e1fca835a90f17786",45734:"95098f8933b7dd643805",45814:"2d182bf2ed9ecca4424e",46116:"c3b234cfd3764c5ac7ca",46167:"eaad51979a15258126c9",46503:"397619af3e2499a3d061",46623:"0192d63261a9431dbcaa",46811:"067bf557370878bb5bb0",47026:"6dd4d3cf79cf019e4c9f",47075:"f2effe325cfc11d32333",47145:"080c753a83b83ba91b76",47173:"de64cdd0bf6917c26572",47281:"bc445615da8446239d1a",47387:"60acb4daa69ee6b6040e",47507:"1cf8b3a1340f4cb79f05",47694:"aead390ef2eef6dee573",47968:"c844e5296f783731287e",48077:"4aadda7f9e96a7e1e9c1",48320:"b8eb8b426c820839dd9f",48331:"7196f1bdcc8a221a6d14",48575:"50c5014cb176eb6714e1",48640:"e534bf7a58811ef2c8bd",49159:"eadb61400091b1c10d77",49222:"eb517c355ffe999b8e56",49343:"d9b3aeec4ba3d1b53e43",49372:"b90c42134a7ac98b61ec",49392:"e7cdd975bf0c463dd969",49808:"842a1deb9090396c5e32",50117:"9502bee1ee2230863e3f",50152:"a1d1e59f249f83def93a",51004:"e367f86624bccf3f7e31",51057:"ef7d99460f087628da16",51150:"cef2267247ba07f6c739",51183:"e24c93b812697b07e44c",51199:"e47ddbe0a992b185f2da",51287:"0db49861e0d3a8c814d7",51289:"16c7f3c1b1e2d076a1d8",51678:"0bc483982c268f0f2855",51958:"2c1cd66da24b194d0b48",52602:"516ef2fae7c2fa4e5c1c",53103:"8e650d1a571786b92c48",53610:"f4b3433db4edb1bb91f0",53611:"2c084168e7aa91b6dfc7",53840:"1d2ee8133e222ba02eca",54176:"8e6d6d8f467d1ee6e048",54236:"a78547f45df3238e9a68",54310:"277a8ac23d29765828d5",54958:"09a59592c6c721cc88fd",55009:"d7a4afbc7fa2e8639c29",55113:"b8906c45edb18e43f4f6",55208:"2ab47fc88c473bf699b6",55263:"f4b1fecdc5bcc5ac49a9",55677:"b50f7084898db30be8ac",55980:"dec370469b3dea2b1ffa",56470:"464fda9e7efcdced81e1",56742:"4e5e77a2dc75c051685f",56746:"ff270605f206b3b00f68",57e3:"fe8c369e39d86f6341b2",57031:"d15c526cf7246d17cc8b",57108:"58b676f3b9386f789b67",57186:"b80511a71283c3a99c70",57217:"5b4b99f7374c05365f8d",57546:"c19fe57a0a9bf9433598",57592:"29b9ec31ca428490a84a",57936:"f6f1b366d3240f2556c1",58045:"13a2c2dce2cf09d0f540",58082:"f724c8229530ef962fa1",58135:"08f721ab5ff6038da1bf",58292:"4899c7d3fa047709ee47",58382:"6991743aa1efc1ae7585",58444:"33375a6f72b502837a0a",58457:"2ce0618b4c8f8ea579dd",58485:"85feae1a28c3d60356df",58972:"a0eb7f83be915f8c6b1c",59287:"705e6431fb2158aa45c7",59364:"52e28d5be9c1332d4cf7",59479:"088d030275ceca04a3a0",59517:"209c1d4e6c01b399d711",59544:"9a9c1e6d4c85890bb8cf",60240:"4c7e69531a623e34ea80",60395:"98dc972c273dba592c86",60526:"a49437bdea3e2be9930a",60824:"c95ebbaaf010932ad6ff",60871:"88a168d6759efb77fb1e",61060:"76e9eafe5c968a07bdae",61079:"a3ca7aeccd20c134fc8c",61305:"e96f62a8bfc1b37d46df",61507:"63c9a7157d7ef468a0b4",61532:"175ae393fb289a835ccd",61556:"cbc7b910295375acd69e",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",61866:"4ed73f64b7afcb2ad7e6",62115:"1b678f758663080a7b01",62308:"26dc495f0f463da3b0f9",62429:"59879690a27d5de8217e",62459:"80ad1792f9b61f1c915e",62575:"824beb8bf5cfa49e4401",62632:"986d0fe476f909c0e303",62797:"36551b552b6dc9eb3d94",63112:"bdb57914e8503d844bcd",63135:"92d35065523917c1ad99",63419:"88502bb23c0338114067",63471:"0e3f89f7c037ca05f16a",63489:"266aa9bfe25a60fe3ca2",63767:"2bb9b080be711df5cd0c",63780:"1f218c2f4ba4e7ff340d",64025:"3414e7a0b945937c7fa6",64108:"14ba11cb2e75baaa809b",64190:"072142050070bc273006",64309:"837ee3015640679acbb2",64420:"5d300e51b82dc0cae650",64442:"7abd6ed64f3d6c6d0f3c",64570:"ea6dec5dd759cf4aba44",64660:"cb8d588d30176bffd253",65111:"4d0dcda0383dac0d36e6",65408:"1a30bc2b9d7bd2e8dec9",65559:"4f3e54739cb32f771589",65896:"f35caf7ff8650f71e9a7",66181:"6a72393c9517628a0316",66448:"a2dfdbd24a3588f7489f",66565:"58c2a9e8e759b3e6542f",66656:"7485f3f4913bc3aab325",66796:"e584972fd68200f15a5d",66885:"5fcc126dd04266e2e46b",67015:"2fd58e657c09ec06111c",67278:"3937fef7a946d4b3857c",67705:"fb305cffbb0201ae2f18",67744:"917129ac82418dfa14cd",67772:"6e2a5492b50e16d96971",68389:"b0a81bcaab8e0ab2fdf1",68648:"626ab410de3b0107b50b",69073:"2b6d88ba6a1ac41f2f1e",69170:"50933dbc6144f3ccd543",69502:"cff776640344cdb44ade",69687:"9f6dff497a6ab6e68eca",69776:"08f6b63ed3cf7e02393c",69884:"9ee569bc61a675d05f36",69975:"e3110f5ccb37d9200092",70174:"5234cdf02209e0851692",70316:"46c6ddb94b2a0266aa94",70471:"2404ea8ce4e766412073",70997:"147b7a6a534a09d1ff10",71075:"2964b4b0918eb2c96de0",71262:"b14e478ffa420ad2f0c2",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"8a2a308c99be2a53b181",73031:"dd71a517f881edd9d8c3",73120:"d272e6a0bffc5172bc48",73226:"2c1a6e531e24ea283b88",73330:"5a50a05993eb767c309c",73477:"205f99959cb9d231d738",73781:"eb6e7bcf93bdaae3ec12",74142:"3d670f4bd292f133bade",74413:"4725684692958ea7f1e5",75042:"065ab5be0ba83abd6cc1",75263:"749dac4a120692ffebe3",76235:"cbb7286a14ba4594cd07",76254:"6caae5921e2441a90dcc",76283:"de1a40e4c57169aef5e5",76397:"e8abbebfc125f8e8b0bb",76667:"74ebd2430bdc43e3ecd4",77385:"7071cd8ad175d5cd7137",77406:"87c4c4bdcfd581493a2b",77623:"ec72054b4d92a21b234c",77968:"a866a0b7a1acec57f7db",78056:"5f8f7e52e7b980b7de3d",78155:"1c273c1e11e3765cb7f8",78720:"5d8ced9525aef536ad7f",79258:"79cb99624223df731c11",79289:"fd6fd52e0ecb5ef82165",79340:"b6b4bd6671aba4f948a1",79625:"cb4ca441c1c2430a6e5a",79685:"e1f9dcb8ff9a472013de",79699:"7e364fd1b5c7c7598078",79869:"40fdcb998f181de4d773",80008:"a83f75ebb8cab1c8d37f",80262:"9c066f08769142e86213",80270:"2df925ad04c68e688b9d",80335:"b7511e28be8ecb4a5cd5",80566:"0b1c7eec30627206617a",80569:"3a2b0d9efa9f60d4cc82",80638:"3a86c8fbeff1678e1fa7",80902:"fe4159bb61199644b734",81328:"6b7115a74a075f38c799",81450:"13af8a1248b7c49c14ca",81534:"5bef7ceeca3acb52d1be",81852:"fb62cfca74c8fae32a6a",82067:"0dcc81ddc8e5007b3de8",82327:"e1e1fc9b4f7a1467a823",82422:"c3695a3eb28f2b642fd0",82544:"0370ded20e71e1527b37",82555:"5fb9ac0ce96e3fa77996",82628:"ef51d7865ca6f23d00b4",82954:"061ac642a1ce20c7cc2c",83136:"d9121fe1542f2122e02e",83282:"cbc4633f587e1371b460",83369:"0dff41c8748325cea681",83722:"bd499550aa7dc300d9c5",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"d6c5bc5e16e0f23cc4f3",86902:"ab0bf04a1e0383d5df49",86952:"0517e341b6e10ee776ce",87268:"a7087cd82cedd90f490c",87406:"debb0c44636d04b5eb39",87624:"64c6748e273bf56ee1d4",87632:"0af7995c6e40eb52dca5",87772:"c202df324d8c7a9f281a",87826:"8aa1ffea5e1e56adc349",87842:"bed34f3e7841458d6640",87874:"f12fa7bfa10ecc20982a",88408:"9a48313c98c21ae6d1d6",88533:"5eb1146629661065df32",88628:"12f5fc0c3aba791d9a2c",89179:"7d00f85436616020bda8",89426:"9a25ab594d74348e18c6",89476:"f67df3c69912937f1523",89609:"fa3ca64eb85db5886e02",89651:"bc4ac92adc26ff821031",89673:"151a1d4cab641fadfc63",89695:"a12db7f0fe08b4675472",90008:"84cc7ab91d9cfcfa4391",90316:"b24f7bec252cbafc332b",90616:"3e98884220668405e2c9",90667:"222b3dc2b62488187da8",90721:"3c9f3b41706ebac89371",90724:"7cb9cb9a20e61980c465",90731:"b19dfa49acdbda9e000d",90830:"a8afe84f076c4fe09682",90846:"7cbb8281928a160c83f1",91051:"3ba0d5542ad78d0ee8ff",91201:"52ea9aab1a5f7397dfdc",91316:"d71dbfaa509e1922fdf0",91344:"98a01a7b75c1e588f044",91841:"92b4c75fe767e610a016",91858:"11bc3a034c8b2a04f6a4",91951:"2b5529ef98c9dbefd8d8",92012:"a77b4948d3ea822a8af2",92174:"3e3739be35b37dfb3fbe",92361:"a3f0df65f0d112c837e5",92657:"65b03a51e48c472555a1",93102:"5065edb159d56ef9aac5",93171:"bb3a24a282c316bb3ae3",93236:"df4c86dec4767c440c40",93534:"eb21ab6c7f397035b32f",93537:"4e422fcf8100e596cb54",93985:"6b5b006c41701d71962a",94194:"874988358d90d2ada2ea",94224:"d780c752eab2bef8775c",94443:"3d38310af7bba4e9b7f7",94565:"042130afcf5cee5a91cf",95399:"571e5848a3b4f2e18aa8",95814:"1f7d4b0ec5fec6e00e2e",95883:"d2e26eb9c8852f1a2bd7",96145:"a6ee2cfdcf6528a8f9c6",96193:"79e4fe2851a1dc19c512",96199:"7f44df2209ad638b44bf",96332:"5398dbb27ce84121fb75",96679:"1d186d28cff27c3d9c06",96809:"cfa7a7a96385b2913bb8",96934:"55830f344105fcb8a760",97230:"25633af52236707de347",97359:"1e499768062f586a1f52",97665:"8fba68dda4752888ead1",97940:"0f24963a4ed77d85f2ee",98153:"af1fe2055e0ebaa9d030",98423:"72c9a2563b902325285c",98769:"18994fa02e00b158f525",98996:"95624092978a62b14e6c",99010:"04b4f165cf5dea59c237",99148:"7dab4be2c2769260ee22",99623:"4a7a4f9cfe1156da2363",99651:"e4f9a079d93032c29342"}[e]+".js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="tocco-widget-bundle:",s.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+n){i=d;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+n),i.src=e),o[e]=[t];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),c&&document.head.appendChild(i)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.j=27101,s.p="/",(()=>{var e={27101:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=s.p+s.u(t),i=new Error;s.l(a,(n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,i,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)c(s)}for(t&&t(n);l<a.length;l++)o=a[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_widget_bundle=this.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l={};return(()=>{"use strict";s.r(l),s.d(l,{app:()=>Ue});var e=s(61402),t=s(64467),n=s(62193),r=s.n(n),o=s(2404),a=s.n(o),i=s(71086),c=s.n(i),u=s(5556),d=s.n(u),f=s(4883),p=s.n(f),h=s(50766),m=s(52600),v=s(88951),g=s(13128),y=s(59042),b=s(28391),w=s(96450),x=s(72942),A=s(78144),k=s(68500),O=s(80621),S=s(32619),E=s(7311),j=s(66498),P=s(35301),T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return j.A.getDispatchActions(e,C,t)},C=[{name:"entityName",action:P.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:P.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:P.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:P.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:P.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],_=s(44467),N=s(54756),R=s.n(N),D=s(15003),L=s(29056),I=s(71635),M=(0,t.A)((0,t.A)({},I.Bt,L.A.singleTransferReducer("formTouched")),I.wr,L.A.singleTransferReducer("detailParams")),F={detailParams:void 0,formTouched:!1};var z=s(10076),H=s(3453),B=s(28261),U=s(57327),W=s(27399);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var V=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=q({},e)})),e.relations.forEach((function(e){t[e.relationName]=q({type:"relation"},e)})),t};function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;return R().mark((function n(){var r;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,D.T1)(U.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,D.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var Y={CREATE:"create",UPDATE:"update"};const K=function(e){return void 0===e?Y.CREATE:Y.UPDATE};var J=s(89394);const X=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0})).map((function(e){return e.split(".")})).reduce((function(e,t){return[].concat((0,J.A)(e),(0,J.A)(t))}),[]);if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const Q=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Z=s(74848);function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var te=R().mark(ie),ne=R().mark(ce),re=R().mark(ue),oe=function(e){return e.entityBrowser},ae=function(e){return e.input};function ie(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.p8)(I.M4,se),(0,D.p8)(I.z3,ce),(0,D.p8)(I.o7,de)]);case 1:case"end":return e.stop()}}),te)}function ce(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.yJ)(I.EJ(void 0));case 1:case"end":return e.stop()}}),ne)}function se(e){var t=e.payload;return R().mark((function e(){var n,r,o,a,i,c,s,l,u,d,f,p,h,m,v,g;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.T1)(X,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,D.Lt)(oe);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,D.T1)(K,o);case 3:return l=e.sent,e.next=4,(0,D.T1)(le,c,r,s);case 4:return u=e.sent,d=(0,H.A)(u,2),f=d[0],p=d[1],e.next=5,(0,D.Lt)(ae);case 5:return h=e.sent,m=h.initialKey,e.next=6,(0,D.T1)(Q,m,r);case 6:return v=e.sent,g={mode:l,entityId:o,entityName:f,formName:p,parentUrl:a,showBackButton:v},e.next=7,(0,D.yJ)(I.EJ(g));case 7:case"end":return e.stop()}}),e)}))()}function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return R().mark((function o(){var a,i,c,s,l,u,d;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=(0,z.A)(t),i=a[0],c=ee(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,D.T1)(G,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,D.T1)(U.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,D.T1)(le,u.modelName,c,"".concat(n,"_").concat(i));case 4:case 6:return o.abrupt("return",o.sent);case 5:return d="".concat(n,"_").concat(l.targetEntity),o.next=6,(0,D.T1)(le,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function ue(e){var t;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,D.T1)(B.Ix);case 1:return t=n.sent,n.next=2,(0,D.yJ)(x.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,Z.jsx)(W.A,{onYes:function(){n(),t.put("yes")},onNo:function(){n(),t.put("no")}})}),!0,(function(){return t.put("no")})));case 2:return n.next=3,(0,D.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),re)}function de(e){var t=e.payload;return R().mark((function e(){var n,r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.message,r=t.confirmCallback,e.next=1,(0,D.T1)(ue,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,D.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,D.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var fe=R().mark(pe);function pe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.Zy)(ie)]);case 1:case"end":return e.stop()}}),fe)}const he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0,n=M[t.type];return n?n(e,t):e};function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?me(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=(0,t.A)((0,t.A)((0,t.A)((0,t.A)({},P.Rf,L.A.singleTransferReducer("entityName")),P.g0,(function(e,t){var n=t.payload.formBase;return n?ve(ve({},e),{},{formBase:n}):ve({},e)})),P.J6,L.A.singleTransferReducer("scrollBehaviour")),P.PH,L.A.singleTransferReducer("appId")),ye={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var be=R().mark(Ae),we=R().mark(ke),xe=R().mark(Oe);function Ae(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.T1)(ke),(0,D.p8)(P.XA,Oe)]);case 1:case"end":return e.stop()}}),be)}function ke(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,D.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,D.yJ)(w.A.doSessionCheck());case 2:case"end":return t.stop()}}),we)}function Oe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.yJ)(b.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),xe)}var Se=R().mark(Ee);function Ee(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,D.Q7)([(0,D.Zy)(Ae)]);case 1:case"end":return e.stop()}}),Se)}const je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e},Pe={detail:he,form:_.A,entityBrowser:je};var Te,Ce,_e=[Ee,pe];function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var De="entity-browser",Le=["onVisibilityStatusChange","onRouteChange"],Ie=p().lazy((function(){return Promise.all([s.e(61866),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Me=function(){return Te||(Te=(0,Z.jsx)(f.Suspense,{fallback:"",children:(0,Z.jsx)(Ie,{})}))},Fe=function(e){var t=e.initialKey,n=e.initialAction,r=(0,h.Zp)(),o=(0,h.zy)().pathname;(0,f.useEffect)((function(){if(t&&!isNaN(t)){if(!o.match(/\/detail\/[0-9]*/)){var e="/detail/".concat(t);r(e)}}if(n&&n.name){var a="/action/".concat(n.name,"?").concat(S.A.toQueryString(n.properties));r(a)}}),[])},ze=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?h.bg:h.Ge)([{path:"*",element:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Fe,{initialKey:n,initialAction:r}),Ce||(Ce=(0,Z.jsx)(Me,{}))]})}]);return(0,Z.jsx)(m.pg,{router:o})},He=function(t,n,r,o){n=Re(Re({},n),{},{id:t}),O.A.setInputEnvs(n);var a=e.A.createStore(Pe,_e,n,De);b.A.addToStore(a,(function(t){return e.A.getEvents(Le,t.input)})),v.A.addToStore(a),g.A.dynamicActionsAddToStore(a),y.A.addToStore(a,!0,["console","remote","notification"]),x.A.addToStore(a,!0),w.A.addToStore(a);var i=(0,Z.jsx)(ze,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(De,i,a,{input:n,actions:T(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},Be=function(t){var n=e.A.useApp({initApp:He,props:t,packageName:De}),o=n.component,i=n.store,s=E.A.usePrevious(t);return E.A.useDidUpdate((function(){var e=c()(t,(function(e,t){return!a()(e,s[t])}));r()(e)||T(e,!1).forEach((function(e){i.dispatch(e)}))}),[t]),(0,Z.jsx)(Z.Fragment,{children:o})};Be.propTypes=Re({entityName:d().string.isRequired,searchFormType:A.X,formBase:d().string,limit:d().oneOfType([d().number,d().string]),preselectedSearchFields:d().array,searchFilters:d().arrayOf(d().string),simpleSearchFields:d().string,initialKey:d().string,initialAction:d().shape({name:d().string,properties:d().objectOf(d().object)}),businessUnit:d().string,memoryHistory:d().bool,backendUrl:d().string,scrollBehaviour:d().oneOf(["none","inline"]),appContext:k.A.propTypes,modifyFormDefinition:d().func,modifyEntityPaths:d().func,disableDetailView:d().bool,reportIds:d().arrayOf(d().string),customActionEventHandlers:d().objectOf(d().objectOf(d().func)),isHidden:d().bool},b.A.createPropTypes(Le));var Ue=e.A.createBundleableApp(De,He,Be);e.A.registerAppInRegistry(Ue.name,Ue.init)})(),l})()));