tocco-widget-bundle 3.15.52 → 3.15.53

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={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));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 l(){return t[a]}function u(e,n=null,r){let o=m(t?l().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:d,createURL:e=>new URL(d(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=u(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=u(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 u(e={}){return v((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:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(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 f(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n=null,r){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)}}function h({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 v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function p(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:g.location,delta:t})}function h(e){return y(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let g={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,p),l=e,()=>{o.removeEventListener(s,p),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=m(g.location,e,t);n&&n(r,e),u=d()+1;let s=f(r,u),p=g.createHref(r);try{i.pushState(s,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&l&&l({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=m(g.location,e,t);n&&n(r,e),u=d();let o=f(r,u),s=g.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:g.location,delta:0})},go:e=>i.go(e)};return g}function y(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),d(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b(e){return{defaultValue:e}}var w=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 x=new Set(["lazy","caseSensitive","path","id","index","children"]);var O=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function k(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(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(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]=A(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=A(n,t(n)),e.children&&(n.children=k(e.children,t,i,r,o)),n}}))}function A(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function S(e,t,n="/"){return E(e,t,n,!1)}function E(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let a=P(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=N(a[e],t,r)}return i}function j(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 P(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;d(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=Y([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),P(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:C(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))a(e,t,!0,n);else a(e,t)})),t}function T(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=T(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 D=/^:[\w-]+$/,_=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=-2),t&&(r+=2),n.filter((e=>!_(e))).reduce(((e,t)=>e+(D.test(t)?3:""===t?1:10)),r)}function N(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=I({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=I({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:Y([a,u.pathname]),pathnameBase:q(Y([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=Y([a,u.pathnameBase]))}return i}function I(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R(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 R(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)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).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 L(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 F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>F.test(e);function B(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function z(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 U(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=U(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),z("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),z("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),z("#","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=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:$(o),hash:G(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var Y=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var K=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 J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Q(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var X="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Z(e,t){let n=e;if("string"!=typeof n||!F.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(X)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=L(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 ee=Symbol("Uninstrumented");function te(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=ne(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=ne(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[ee]??o,a=ne(n[e],t,((...e)=>oe(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[ee]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ee]??e,r=ne(n.middleware,t,((...e)=>oe(e[0])));return r?(r[ee]=t,r):e}))),r}function ne(e,t,n){return 0===e.length?null:async(...r)=>{let o=await re(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function re(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=re(e,t,n,r-1),o=await i,d(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 oe(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ce(n)}}function ae(e,t){return{currentUrl:h(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 ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ce(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")===se}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var se=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var le=["POST","PUT","PATCH","DELETE"],ue=new Set(le),de=["GET",...le],pe=new Set(de),fe=new Set([301,302,303,307,308]),me=new Set([307,308]),he={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ye=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),be="remix-router-transitions",we=Symbol("ResetLoaderData");function xe(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ye,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...te(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=k(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,f,g=e.dataStrategy||Ie,v={...e.future},b=null,x=new Set,O=null,A=null,P=null,T=null!=e.hydrationData,D=S(s,e.history.location,l),_=!1,C=null;if(null!=D||e.patchRoutesOnNavigation){if(D&&!e.hydrationData){Ke(D,s,e.history.location.pathname).active&&(D=null)}if(D)if(D.some((e=>e.route.lazy)))u=!1;else if(D.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex((e=>void 0!==n[e.route.id]));u=D.slice(0,e+1).every((e=>!Ee(e.route,t,n)))}else u=D.every((e=>!Ee(e.route,t,n)))}else u=!0;else{u=!1,D=[];let t=Ke(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,D=t.matches)}}else{let t=tt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=et(s);u=!0,D=n,C={[r.id]:t}}let N,I,R={historyAction:e.history.action,location:e.history.location,matches:D,initialized:u,navigation:he,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||C,fetchers:new Map,blockers:new Map},M="POP",F=null,B=!1,z=!1,U=new Map,W=null,V=!1,Y=!1,q=new Set,$=new Map,G=0,K=-1,Q=new Map,X=new Set,Z=new Map,re=new Map,oe=new Set,ie=new Map,ce=null;function se(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}))),R={...R,...e};let n=[],r=[];R.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?n.push(t):r.push(t))})),oe.forEach((e=>{R.fetchers.has(e)||$.has(e)||n.push(e)})),[...x].forEach((r=>r(R,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>_e(e))),r.forEach((e=>R.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,a=null!=R.actionData&&null!=R.navigation.formMethod&&mt(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?R.actionData:null;let c=n.loaderData?Qe(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,l=R.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ve))));let u,d=!V&&Ge(t,n.matches||R.matches),p=!0===B||null!=R.navigation.formMethod&&mt(R.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),V||"POP"===M||("PUSH"===M?e.history.push(t,t.state):"REPLACE"===M&&e.history.replace(t,t.state)),"POP"===M){let e=U.get(R.location.pathname);e&&e.has(t.pathname)?u={currentLocation:R.location,nextLocation:t}:U.has(t.pathname)&&(u={currentLocation:t,nextLocation:R.location})}else if(z){let e=U.get(R.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(R.location.pathname,e)),u={currentLocation:R.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:M,location:t,initialized:!0,navigation:he,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),M="POP",B=!1,z=!1,V=!1,Y=!1,F?.resolve(),F=null,ce?.resolve(),ce=null}async function ue(t,n,o){N&&N.abort(),N=null,M=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&P){let n=$e(e,t);O[n]=P()}}(R.location,R.matches),B=!0===(o&&o.preventScrollReset),z=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&R.matches&&R.matches.length>0&&!_?R.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&R.initialized&&!Y&&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}(R.location,n)&&!(o&&o.submission&&mt(o.submission.formMethod)))return void le(n,{matches:p},{flushSync:f});let m=Ke(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}N=new AbortController;let h,g=qe(e.history,n,N.signal,o&&o.submission),v=e.getContext?await e.getContext():new w;if(o&&o.pendingError)h=[Ze(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&mt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,p,f={}){xe();let m,h=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(se({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await rt(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}=et(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Ze(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 g=gt(i,n);if(g.route.action||g.route.lazy){let e=Be(a,c,t,i,g,p?[]:r,u),n=await fe(t,e,u,null);if(m=n[g.route.id],!m)for(let e of i)if(n[e.route.id]){m=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:tt(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(lt(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ye(m.response.headers.get("Location"),new URL(t.url),l,e.history)===R.location.pathname+R.location.search}return await pe(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(st(m)){let e=Ze(i,g.route.id);return!0!==(f&&f.replace)&&(M="PUSH"),{matches:i,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:i,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(st(r)&&J(r.error)&&404===r.error.status)return N=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=yt(n,o.submission),f=!1,m.active=!1,g=qe(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:k}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||yt(n,f),x=f||m||vt(w),O=!V&&!g;if(d){if(O){let e=de(y);se({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await rt(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}=et(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ze(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:A,revalidatingFetchers:S}=Ae(t,u,a,c,e.history,R,o,x,n,g?[]:r,!0===g,Y,q,oe,Z,X,k,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++G,!e.dataStrategy&&!A.some((e=>e.shouldLoad))&&!A.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Re();return le(n,{matches:o,loaderData:{},errors:y&&st(y[1])?{[y[0]]:y[1].error}:null,...Xe(y),...e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(O){let e={};if(!d){e.navigation=w;let t=de(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=R.fetchers.get(e.key),n=bt(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)})),new Map(R.fetchers)}(S)),se(e,{flushSync:v})}S.forEach((e=>{Ce(e.key),e.controller&&$.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ce(e.key)));N&&N.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await we(A,S,t,u);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",E);S.forEach((e=>$.delete(e.key)));let T=nt(j);if(T)return await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=nt(P),T)return X.add(T.key),await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:D,errors:_}=Je(R,o,j,y,S,P);g&&R.errors&&(_={...R.errors,..._});let C=Re(),I=Me(K),M=C||I||S.length>0;return{matches:o,loaderData:D,errors:_,...M?{fetchers:new Map(R.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(N=null,le(n,{matches:b||p,...Xe(h),loaderData:x,errors:k}))}function de(e){return e&&!st(e[1])?{[e[0]]:e[1].data}:R.actionData?0===Object.keys(R.actionData).length?null:R.actionData:void 0}async function pe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(F?.resolve(),F=null),o.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ye(p,new URL(r.url),l,e.history);let f=m(R.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(p)){const n=y(p,!0);e=n.origin!==t.location.origin||null==L(n.pathname,l)}if(e)return void(u?t.location.replace(p):t.location.assign(p))}N=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:b}=R.navigation;!i&&!c&&g&&v&&b&&(i=vt(R.navigation));let w=i||c;if(me.has(o.response.status)&&w&&mt(w.formMethod))await ue(h,f,{submission:{...w,formAction:p},preventScrollReset:s||B,enableViewTransition:a?z:void 0});else{let e=yt(f,i);await ue(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||B,enableViewTransition:a?z:void 0})}}async function fe(e,t,n,r){let o,a={};try{o=await ze(g,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!mt(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||R.loaderData.hasOwnProperty(e.route.id)||R.errors&&R.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(ct(r)){let o=r.result;a[n]={type:"redirect",response:Ve(o,e,n,t,l)}}else a[n]=await We(r);return a}async function we(e,t,n,r){let o=fe(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await fe(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:tt(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function xe(){Y=!0,Z.forEach(((e,t)=>{$.has(t)&&q.add(t),Ce(t)}))}function je(e,t,n={}){R.fetchers.set(e,t),se({fetchers:new Map(R.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Ze(R.matches,t);_e(e),se({errors:{[o.route.id]:n},fetchers:new Map(R.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function De(e){return re.set(e,(re.get(e)||0)+1),oe.has(e)&&oe.delete(e),R.fetchers.get(e)||ge}function _e(e){let t=R.fetchers.get(e);!$.has(e)||t&&"loading"===t.state&&Q.has(e)||Ce(e),Z.delete(e),Q.delete(e),X.delete(e),oe.delete(e),q.delete(e),R.fetchers.delete(e)}function Ce(e,t){let n=$.get(e);n&&(n.abort(t),$.delete(e))}function Ne(e){for(let t of e){let e=wt(De(t).data);R.fetchers.set(t,e)}}function Re(){let e=[],t=!1;for(let n of X){let r=R.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(X.delete(n),e.push(n),t=!0)}return Ne(e),t}function Me(e){let t=[];for(let[n,r]of Q)if(r<e){let e=R.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ce(n),Q.delete(n),t.push(n))}return Ne(t),t.length>0}function Le(e){R.blockers.delete(e),ie.delete(e)}function Fe(e,t){let n=R.blockers.get(e)||ve;d("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(R.blockers);r.set(e,t),se({blockers:r})}function He({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ie.size)return;ie.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(ie.entries()),[o,a]=r[r.length-1],i=R.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=tt(404,{pathname:e}),n=i||s,{matches:r,route:o}=et(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(A){return A(e,t.map((e=>j(e,R.loaderData))))||e.key}return e.key}function Ge(e,t){if(O){let n=$e(e,t),r=O[n];if("number"==typeof r)return r}return null}function Ke(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:E(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:E(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Pe(e,t,d,p,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=S(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=E(d,n,l,!0),!(m&&u.length<m.length&&ot(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=E(d,n,l,!0)),!m||ot(u,m))return{type:"success",matches:null};u=m}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return f={get basename(){return l},get future(){return v},get state(){return R},get routes(){return s},get window(){return t},initialize:function(){if(b=e.history.listen((({action:t,location:n,delta:r})=>{if(I)return I(),void(I=void 0);p(0===ie.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=He({currentLocation:R.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{I=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(R.blockers);e.set(o,ve),se({blockers:e})}}),F?.resolve(),void(F=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(be);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,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(be,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,U);t.addEventListener("pagehide",e),W=()=>t.removeEventListener("pagehide",e)}return R.initialized||ue("POP",R.location,{initialHydration:!0}),f},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,P=t,A=n||null,!T&&R.navigation===he){T=!0;let e=Ge(R.location,R.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{O=null,P=null,A=null}},navigate:async function t(n,r){if(F?.resolve(),F=null,"number"==typeof n){F||(F=xt());let t=F.promise;return e.history.go(n),t}let o=Oe(R.location,R.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=ke(!1,o,r),s=R.location,u=m(R.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=i&&mt(i.formMethod)&&i.formAction===R.location.pathname+R.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=He({currentLocation:s,nextLocation:u,historyAction:p});g?Fe(g,{state:"blocked",location:u,proceed(){Fe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(R.blockers);e.set(g,ve),se({blockers:e})}}):await ue(p,u,{submission:i,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ce(t);let p=!0===(u&&u.flushSync),f=i||s,m=Oe(R.location,R.matches,l,o,n,u?.relative),h=S(f,m,l),g=Ke(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void Te(t,n,tt(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:b}=ke(!0,m,u);if(b)return void Te(t,n,b,{flushSync:p});let x=e.getContext?await e.getContext():new w,O=!0===(u&&u.preventScrollReset);y&&mt(y.formMethod)?await async function(t,n,o,u,p,f,m,h,g,v){xe(),Z.delete(t);let y=R.fetchers.get(t);je(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}(g,y),{flushSync:m});let b=new AbortController,w=qe(e.history,o,b.signal,g);if(f){let e=await rt(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:m});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:m});u=e.matches}let x=gt(u,o);if(!x.route.action&&!x.route.lazy){let e=tt(405,{method:g.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:m})}$.set(t,b);let O=G,k=Be(a,c,w,u,x,r,p),A=await fe(w,k,p,t),E=A[x.route.id];if(!E)for(let e of k)if(A[e.route.id]){E=A[e.route.id];break}if(w.signal.aborted)return void($.get(t)===b&&$.delete(t));if(oe.has(t)){if(lt(E)||st(E))return void je(t,wt(void 0))}else{if(lt(E))return $.delete(t),K>O?void je(t,wt(void 0)):(X.add(t),je(t,bt(g)),pe(w,E,!1,{fetcherSubmission:g,preventScrollReset:h}));if(st(E))return void Te(t,n,E.error)}let j=R.navigation.location||R.location,P=qe(e.history,j,b.signal),T=i||s,D="idle"!==R.navigation.state?S(T,R.navigation.location,l):R.matches;d(D,"Didn't find any matches after fetcher action");let _=++G;Q.set(t,_);let C=bt(g,E.data);R.fetchers.set(t,C);let{dsMatches:I,revalidatingFetchers:L}=Ae(P,p,a,c,e.history,R,D,g,j,r,!1,Y,q,oe,Z,X,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,E],v);L.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=R.fetchers.get(t),r=bt(void 0,n?n.data:void 0);R.fetchers.set(t,r),Ce(t),e.controller&&$.set(t,e.controller)})),se({fetchers:new Map(R.fetchers)});let F=()=>L.forEach((e=>Ce(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:H,fetcherResults:B}=await we(I,L,P,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),Q.delete(t),$.delete(t),L.forEach((e=>$.delete(e.key))),R.fetchers.has(t)){let e=wt(E.data);R.fetchers.set(t,e)}let z=nt(H);if(z)return pe(P,z.result,!1,{preventScrollReset:h});if(z=nt(B),z)return X.add(z.key),pe(P,z.result,!1,{preventScrollReset:h});let{loaderData:U,errors:W}=Je(R,D,H,void 0,L,B);Me(_),"loading"===R.navigation.state&&_>K?(d(M,"Expected pending action"),N&&N.abort(),le(R.navigation.location,{matches:D,loaderData:U,errors:W,fetchers:new Map(R.fetchers)})):(se({errors:W,loaderData:Qe(R.loaderData,U,D,W),fetchers:new Map(R.fetchers)}),Y=!1)}(t,n,v,h,x,g.active,p,O,y,u&&u.unstable_defaultShouldRevalidate):(Z.set(t,{routeId:n,path:v}),await async function(t,n,o,i,s,l,u,d,p){let f=R.fetchers.get(t);je(t,bt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=qe(e.history,o,m.signal);if(l){let e=await rt(i,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:u});i=e.matches}let g=gt(i,o);$.set(t,m);let v=G,y=Be(a,c,h,i,g,r,s),b=await fe(h,y,s,t),w=b[g.route.id];$.get(t)===m&&$.delete(t);if(h.signal.aborted)return;if(oe.has(t))return void je(t,wt(void 0));if(lt(w))return K>v?void je(t,wt(void 0)):(X.add(t),void await pe(h,w,!1,{preventScrollReset:d}));if(st(w))return void Te(t,n,w.error);je(t,wt(w.data))}(t,n,v,h,x,g.active,p,O,y))},revalidate:function(){ce||(ce=xt()),xe(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===R.navigation.state?e:"idle"===R.navigation.state?(ue(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),e):(ue(M||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:!0===z}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,resetFetcher:function(e,t){Ce(e,t?.reason),je(e,wt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),oe.add(e)):re.set(e,t),se({fetchers:new Map(R.fetchers)})},dispose:function(){b&&b(),W&&W(),x.clear(),N&&N.abort(),R.fetchers.forEach(((e,t)=>_e(t))),R.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=R.blockers.get(e)||ve;return ie.get(e)!==t&&ie.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let r=null==i;Pe(e,t,i||s,c,a,n),r&&(s=[...s],se({}))},_internalFetchControllers:$,_internalSetRoutes:function(e){c={},i=k(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(f=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[ee]??e.navigate,r=ne(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?h(n):".",...ae(e,r??{})}}));r&&(r[ee]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ee]??e.fetch,r=ne(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ae(e,o??{})}}));r&&(r[ee]=t,e.fetch=r)}return e}(f,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),f}function Oe(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=V(r||".",W(i),L(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=ht(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:Y([e,t])}({basename:n,pathname:s.pathname})),h(s)}function ke(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&&!ft(n.formMethod))return{path:t,error:tt(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:tt(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=rt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!mt(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(!mt(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(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=$e(n.formData),o=n.formData;else if(n.body instanceof FormData)r=$e(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ge(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ge(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(mt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&ht(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function Ae(e,t,n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,O=b?st(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(a.location),A=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&&st(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,j=E&&E>=400,P={currentUrl:k,currentParams:a.matches[0]?.params||{},nextUrl:A,nextParams:i[0].params,...c,actionResult:O,actionStatus:E},T=Q(i),D=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=x&&i>x?s=!1:c.lazy?s=!0:Se(c)?u?s=Ee(c,a.loaderData,a.errors):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)&&(s=!0):s=!1,null!==s)return He(n,r,e,T,o,l,t,s);let p=!1;"boolean"==typeof w?p=w:j?p=!1:(d||k.pathname+k.search===A.pathname+A.search||k.search!==A.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 f={...P,defaultShouldRevalidate:p},m=je(o,f);return He(n,r,e,T,o,l,t,m,f,w)})),_=[];return m.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=S(g,e.path,v);if(!b){if(y&&m)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let x=gt(b,e.path),O=new AbortController,k=qe(o,e.path,O.signal),A=null;if(p.has(c))p.delete(c),A=Be(n,r,k,b,x,l,t);else if(m)d&&(A=Be(n,r,k,b,x,l,t));else{let e;e="boolean"==typeof w?w:!j&&d;let o={...P,defaultShouldRevalidate:e};je(x,o)&&(A=Be(n,r,k,b,x,l,t,o))}A&&_.push({key:c,routeId:e.routeId,path:e.path,matches:A,match:x,request:k,controller:O})})),{dsMatches:D,revalidatingFetchers:_}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ee(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Pe(e,t,n,r,o,a){let i;if(e){let t=r[e];d(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=>Te(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=k(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]=k([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 Te(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=>Te(e,t))))))}var De=new WeakMap,_e=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=De.get(o);i||(i={},De.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return x.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},Ce=new WeakMap;async function Ne(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 Ie(e){return e.matches.some((e=>e.route.middleware))?Re(e,(()=>Ne(e))):Ne(e)}function Re(e,t){return Me(e,t,(e=>{if(pt(e))throw e;return e}),at,(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=Ze(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function Me(e,t,n,r,o){let{matches:a,request:i,params:c,context:s,unstable_pattern:l}=e,u=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Le({request:i,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Le(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,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Le(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,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await a(e,u,l)}}function Fe(e,t,n,r,o){let a=_e({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(d(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Ce.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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,O.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 Ce.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=_e({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,mt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function He(e,t,n,r,o,a,i,c,s=null,l){let u=!1,d=Fe(e,t,n,o,a);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:a,middleware:s}=o.route,l=u||c||e&&!mt(n.method)&&(t||a),p=s&&s.length>0&&!a&&!t;return!l||!mt(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=mt(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:i},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw tt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw tt(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i})}}}function Be(e,t,n,r,o,a,i,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Fe(e,t,n,s,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:He(e,t,n,Q(r),s,a,i,!0,c)))}async function ze(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,unstable_pattern:Q(n),params:n[0].params,context:o,matches:n},c=a?()=>{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=i;return Re(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...i,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ue(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 We(e){let{result:t,type:n}=e;if(dt(t)){let e;try{e=await Ue(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ut(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:ot(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:ut(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 Ve(e,t,n,r,o){let a=e.headers.get("Location");if(d(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=Oe(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Ye(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(H(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(a.protocol))throw new Error("Invalid redirect location");let i=null!=L(a.pathname,n);if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function qe(e,t,n,r){let o=e.createURL(rt(t)).toString(),a={signal:n};if(r&&mt(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=$e(r.formData):a.body=r.formData}return new Request(o,a)}function $e(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ge(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ke(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&st(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!lt(f),"Cannot handle redirect results in processLoaderData"),st(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[p]=t;else{let n=Ze(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[p]=we),s||(s=!0,a=J(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(l[p]=f.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 Je(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ke(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(d(i,"Did not find corresponding fetcher result"),st(i)){let t=Ze(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(lt(i))d(!1,"Unhandled fetcher revalidation redirect");else{let t=wt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Qe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==we)).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 Xe(e){return e?st(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ze(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 et(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 tt(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 K(e||500,i,new Error(c),!0)}function nt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(lt(r))return{key:n,result:r}}}function rt(e){return h({..."string"==typeof e?g(e):e,hash:""})}function ot(e){return new K(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function at(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ct(e){return dt(e.result)&&fe.has(e.result.status)}function st(e){return"error"===e.type}function lt(e){return"redirect"===(e&&e.type)}function ut(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function dt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function pt(e){return dt(e)&&(t=e.status,fe.has(t))&&e.headers.has("Location");var t}function ft(e){return pe.has(e.toUpperCase())}function mt(e){return ue.has(e.toUpperCase())}function ht(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function gt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&ht(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function vt(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 yt(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 bt(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 wt(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 xt(){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 Ot=a.createContext(null);Ot.displayName="DataRouter";var kt=a.createContext(null);kt.displayName="DataRouterState";var At=a.createContext(!1);function St(){return a.useContext(At)}var Et=a.createContext({isTransitioning:!1});Et.displayName="ViewTransition";var jt=a.createContext(new Map);jt.displayName="Fetchers";var Pt=a.createContext(null);Pt.displayName="Await";var Tt=a.createContext(null);Tt.displayName="Navigation";var Dt=a.createContext(null);Dt.displayName="Location";var _t=a.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Ct=a.createContext(null);Ct.displayName="RouteError";var Nt="REACT_ROUTER_ERROR";function It(){return null!=a.useContext(Dt)}function Rt(){return d(It(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Dt).location}var Mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lt(e){a.useContext(Tt).static||a.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=a.useContext(_t);return e?function(){let{router:e}=Jt("useNavigate"),t=Xt("useNavigate"),n=a.useRef(!1);return Lt((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{p(n.current,Mt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(It(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Ot),{basename:t,navigator:n}=a.useContext(Tt),{matches:r}=a.useContext(_t),{pathname:o}=Rt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Lt((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(p(c.current,Mt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function Ht(){let{matches:e}=a.useContext(_t),t=e[e.length-1];return t?t.params:{}}function Bt(e,{relative:t}={}){let{matches:n}=a.useContext(_t),{pathname:r}=Rt(),o=JSON.stringify(W(n));return a.useMemo((()=>V(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function zt(e,t,n,r,o){d(It(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(Tt),{matches:c}=a.useContext(_t),s=c[c.length-1],l=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let e=m&&m.path||"";on(u,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (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 h,v=Rt();if(t){let e="string"==typeof t?g(t):t;d("/"===f||e.pathname?.startsWith(f),`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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=S(e,{pathname:b});p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.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 x=Gt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Y([f,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:Y([f,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&x?a.createElement(Dt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},x):x}function Ut(){let e=en(),t=J(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 Wt=a.createElement(Ut,null),Vt=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(`${Nt}: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 K(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(_t.Provider,{value:this.props.routeContext},a.createElement(Ct.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(qt,{error:e},t):t}};Vt.contextType=At;var Yt=new WeakMap;function qt({children:e,error:t}){let{basename:n}=a.useContext(Tt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Nt}: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=Yt.get(t);if(r)throw r;let o=Z(e.location,n);if(X&&!Yt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Yt.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 $t({routeContext:e,match:t,children:n}){let r=a.useContext(Ot);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(_t.Provider,{value:e},n)}function Gt(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,c=n?.errors;if(null!=c){let e=i.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}let u=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Q(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,o)=>{let d,p=!1,f=null,m=null;n&&(d=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||Wt,s&&(l<0&&0===o?(on("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===o&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,o+1)),g=()=>{let t;return t=d?f:p?m:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement($t,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(Vt,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function Kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=a.useContext(Ot);return d(t,Kt(e)),t}function Qt(e){let t=a.useContext(kt);return d(t,Kt(e)),t}function Xt(e){let t=function(e){let t=a.useContext(_t);return d(t,Kt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zt(){let{matches:e,loaderData:t}=Qt("useMatches");return a.useMemo((()=>e.map((e=>j(e,t)))),[e,t])}function en(){let e=a.useContext(Ct),t=Qt("useRouteError"),n=Xt("useRouteError");return void 0!==e?e:t.errors?.[n]}var tn=0;function nn(e){let{router:t,basename:n}=Jt("useBlocker"),r=Qt("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:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++tn);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):ve}var rn={};function on(e,t,n){t||rn[e]||(rn[e]=!0,p(!1,n))}var an={};function cn(e,t){e||an[t]||(an[t]=!0,console.warn(t))}var sn=(r||(r=n.t(a,2))).useOptimistic,ln=()=>{};function un(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 dn=["HydrateFallback","hydrateFallbackElement"];function pn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:dn,mapRouteProperties:un,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var fn=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 mn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,sn?sn(u):[u,ln]);var u;let[d,p]=a.useState(),[f,m]=a.useState({isTransitioning:!1}),[h,g]=a.useState(),[v,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),O=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:Q(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),cn(!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 f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(cn(null==d||f,"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&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({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=>hn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);a.useLayoutEffect((()=>e.subscribe(O)),[e,O]),a.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new fn)}),[f]),a.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>hn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),a.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),a.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[f.isTransitioning,b]);let k=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]),A=e.basename||"/",S=a.useMemo((()=>({router:e,navigator:k,static:!1,basename:A,onError:n})),[e,k,A,n]);return a.createElement(a.Fragment,null,a.createElement(Ot.Provider,{value:S},a.createElement(kt.Provider,{value:s},a.createElement(jt.Provider,{value:x.current},a.createElement(Et.Provider,{value:f},a.createElement(bn,{basename:A,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},a.createElement(gn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function hn(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 gn=a.memo((function({routes:e,future:t,state:n,onError:r}){return zt(e,void 0,n,r,t)}));function vn({to:e,replace:t,state:n,relative:r}){d(It(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Tt);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(_t),{pathname:c}=Rt(),s=Ft(),l=V(e,W(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 yn(e){d(!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 bn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){d(!It(),"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:f="",hash:m="",state:h=null,key:v="default"}=n,y=a.useMemo((()=>{let e=L(u,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:h,key:v},navigationType:r}}),[s,u,f,m,h,v,r]);return p(null!=y,`<Router basename="${s}"> is not able to match the URL "${u}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:a.createElement(Tt.Provider,{value:l},a.createElement(Dt.Provider,{children:t,value:y}))}function wn({children:e,location:t}){return zt(xn(e),t)}a.Component;function xn(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,xn(e.props.children,o));d(e.type===yn,`[${"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>`),d(!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=xn(e.props.children,o)),n.push(i)})),n}var On="get",kn="application/x-www-form-urlencoded";function An(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Sn(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 En=null;var jn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pn(e){return null==e||jn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kn}"`),null)}function Tn(e,t){let n,r,o,a,i;if(An(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?L(i,t):null,n=e.getAttribute("method")||On,o=Pn(e.getAttribute("enctype"))||kn,a=new FormData(e)}else if(function(e){return An(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return An(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?L(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||On,o=Pn(e.getAttribute("formenctype"))||Pn(i.getAttribute("enctype"))||kn,a=new FormData(i,e),!function(){if(null===En)try{new FormData(document.createElement("form"),0),En=!1}catch(e){En=!0}return En}()){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(An(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=On,r=null,o=kn,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 Dn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_n=/[&><\u2028\u2029]/g;function Cn(e){return e.replace(_n,(e=>Dn[e]))}function Nn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function In(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&&"/"===L(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Rn(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 Mn(e){return null!=e&&"string"==typeof e.page}function Ln(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 Fn(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 Hn(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 Bn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Mn(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 zn(e,t){return"lazy"===e.mode&&!0===t}function Un(){let e=a.useContext(Ot);return Nn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=a.useContext(kt);return Nn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vn=a.createContext(void 0);function Yn(){let e=a.useContext(Vn);return Nn(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 $n(e,t,n){if(n&&!Qn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Vn.displayName="FrameworkContext";function Gn({page:e,...t}){let{router:n}=Un(),r=a.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Jn,{page:e,matches:r,...t}):null}function Kn(e){let{manifest:t,routeModules:n}=Yn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return Bn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Rn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Ln).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 Jn({page:e,matches:t,...n}){let r=Rt(),{future:o,manifest:i,routeModules:c}=Yn(),{basename:s}=Un(),{loaderData:l,matches:u}=Wn(),d=a.useMemo((()=>Fn(e,t,u,i,r,"data")),[e,t,u,i,r]),p=a.useMemo((()=>Fn(e,t,u,i,r,"assets")),[e,t,u,i,r]),f=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=In(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]),m=a.useMemo((()=>Hn(p,i)),[p,i]),h=Kn(p);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Qn=!1;function Xn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Yn(),{router:s,static:l,staticContext:u}=Un(),{matches:d}=Wn(),p=St(),f=zn(i,c);o&&(o.didRenderScripts=!0);let m=$n(d,null,r);a.useEffect((()=>{0}),[]);let h=a.useMemo((()=>{if(p)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)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Nn(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 ${f?`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=S(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 = {${m.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}))}),[]),g=Qn||p?[]:(t.entry.imports.concat(Hn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return cn(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Qn||p?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,f?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}),g.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function er({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(J(e))return a.createElement(tr,{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(tr,{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 tr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Yn();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(Xn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.13.0")}catch(e){}function rr(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:un,hydrationRouteProperties:dn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function or(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ar(e.errors)}),e}function ar(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 K(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 ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:c,target:s,to:l,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f,...m},g){let{basename:v,unstable_useTransitions:y}=a.useContext(Tt),b="string"==typeof l&&ir.test(l),w=Z(l,v),x=function(e,{relative:t}={}){d(It(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Tt),{hash:o,pathname:i,search:c}=Bt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:Y([n,i])),r.createHref({pathname:s,search:c,hash:o})}(l=w.to,{relative:r}),[O,k,A]=function(e,t){let n=a.useContext(Vn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=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 f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:qn(s,m),onBlur:qn(l,h),onMouseEnter:qn(u,m),onMouseLeave:qn(d,h),onTouchStart:qn(p,m)}]:[!1,f,{}]}(n,m),S=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Ft(),d=Rt(),p=Bt(e,{relative:i});return a.useCallback((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:h(d)===h(p),m=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s});l?a.startTransition((()=>m())):m()}}),[d,u,p,n,r,t,e,o,i,c,s,l])}(l,{replace:i,state:c,target:s,preventScrollReset:u,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});let E=a.createElement("a",{...m,...A,href:w.absoluteURL||x,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:Zn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?a.createElement(a.Fragment,null,E,a.createElement(Gn,{page:x})):E}));cr.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 p=Bt(i,{relative:l.relative}),f=Rt(),m=a.useContext(kt),{navigator:h,basename:g}=a.useContext(Tt),v=null!=m&&function(e,{relative:t}={}){let n=a.useContext(Et);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dr("useViewTransitionState"),o=Bt(e,{relative:t});if(!n.isTransitioning)return!1;let i=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=I(o.pathname,c)||null!=I(o.pathname,i)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),A=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:k,isPending:A,isTransitioning:v},E=k?e:void 0;O="function"==typeof n?n(S):[n,k?"active":null,A?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(cr,{...l,"aria-current":E,className:O,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=On,action:s,onSubmit:l,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v)=>{let{unstable_useTransitions:y}=a.useContext(Tt),b=hr(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Tt),r=a.useContext(_t);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Bt(e||".",{relative:t})},c=Rt();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:Y([n,i.pathname]));return h(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",O="string"==typeof s&&ir.test(s);return a.createElement("form",{ref:v,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,d=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?a.startTransition((()=>d())):d()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function lr({getKey:e,storageKey:t,...n}){let r=a.useContext(Vn),{basename:o}=a.useContext(Tt),i=Rt(),c=Zt();!function({getKey:e,storageKey:t}={}){let{router:n}=dr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=pr("useScrollRestoration"),{basename:i}=a.useContext(Tt),c=Rt(),s=Zt(),l=Qt("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=yr(c,s,i,e);vr[t]=window.scrollY}try{sessionStorage.setItem(t||gr,JSON.stringify(vr))}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||gr);e&&(vr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(vr,(()=>window.scrollY),e?(t,n)=>yr(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=yr(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})(${Cn(JSON.stringify(t||gr))}, ${Cn(JSON.stringify(s))})`}})}function ur(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dr(e){let t=a.useContext(Ot);return d(t,ur(e)),t}function pr(e){let t=a.useContext(kt);return d(t,ur(e)),t}function fr(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(Sn(e)),n=a.useRef(!1),r=Rt(),o=a.useMemo((()=>function(e,t){let n=Sn(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=Ft(),c=a.useCallback(((e,t)=>{const r=Sn("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}sr.displayName="Form",lr.displayName="ScrollRestoration";var mr=0;function hr(){let{router:e}=dr("useSubmit"),{basename:t}=a.useContext(Tt),n=Xt("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Tn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++mr)}__`;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 gr="react-router-scroll-positions",vr={};function yr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:L(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(35570),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(37444),o=n(89954),a=n(1560);function i(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var i=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(65710),o=n(97991);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),a=n(25134),i=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(95065),o=n(62439),a=n(25134),i=n(77969);function c(e){return(0,r.A)(e)||(0,o.A)(e)||(0,a.A)(e)||(0,i.A)()}},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},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 p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const m=Math.round;function h(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,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(a=h.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(i=null==(c=h.visualViewport)?void 0:c.offsetTop)?i:0))/f,b=u.width/d,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(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,p=null;if(i){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},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:()=>f,Zz:()=>p,ve:()=>m,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,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(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(f)throw new Error(r(9));try{f=!0,l=a(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}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 p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...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=p(...s)(a.dispatch),{...a,dispatch:i}}}function m(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:"3c1c59154271f87e916e",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:"792c5d8eedd7e180a8dd",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"97e5dd85393b6417f10c",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:"432083e5f41410c8db2f",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",26528:"2058d031de5ffa19a688",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",31509:"f3ef2932e5c381e9130e",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:"91bc1d47ede7f4d14fa9",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:"027733fe3eba39b13958",54310:"2ca2266ada2374163f48",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:"e588afb4488f11fd7815",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",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:"21c4f10787123ef929d2",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:"f382a9def7c08d24614e",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"6019fec098a828072d20",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:"912241017b80b7e6688c",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"284bb332a76c6f0eb8df",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:"0deb75b1e8e334faf0fb",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 p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.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=28200,s.p="/",(()=>{var e={28200: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:()=>lt});var e=s(61402),t=s(26396),n=s.n(t),r=s(5556),o=s.n(r),a=s(28391),i=s(78144),c=s(68500),u=s(80621),d=s(71468),p=s(62193),f=s.n(p),m=s(2404),h=s.n(m),g=s(71086),v=s.n(g),y=s(4883),b=s.n(y),w=s(35570),x=s(52600),O=s(88951),k=s(13128),A=s(59042),S=s(96450),E=s(72942),j=s(32619),P=s(7311),T=s(66498),D=s(35301),_=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return T.A.getDispatchActions(e,C,t)},C=[{name:"entityName",action:D.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:D.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:D.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:D.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:D.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],N=s(44467),I=s(92207),R=s.n(I),M=s(15003),L=s(29056),F=s(71635),H=n()(n()({},F.Bt,L.A.singleTransferReducer("formTouched")),F.wr,L.A.singleTransferReducer("detailParams")),B={detailParams:void 0,formTouched:!1};var z=s(15890),U=s.n(z),W=s(22056),V=s.n(W),Y=s(28261),q=s(57327),$=s(27399);function G(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 K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=K({},e)})),e.relations.forEach((function(e){t[e.relationName]=K({type:"relation"},e)})),t};function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;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,M.T1)(q.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,M.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var X={CREATE:"create",UPDATE:"update"};const Z=function(e){return void 0===e?X.CREATE:X.UPDATE};var ee=s(21259),te=s.n(ee);const ne=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(te()(e),te()(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 re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=s(74848);function ae(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 ie=R().mark(de),ce=R().mark(pe),se=R().mark(he),le=function(e){return e.entityBrowser},ue=function(e){return e.input};function de(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.p8)(F.M4,fe),(0,M.p8)(F.z3,pe),(0,M.p8)(F.o7,ge)]);case 1:case"end":return e.stop()}}),ie)}function pe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.yJ)(F.EJ(void 0));case 1:case"end":return e.stop()}}),ce)}function fe(e){var t=e.payload;return R().mark((function e(){var n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.T1)(ne,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,M.Lt)(le);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,M.T1)(Z,o);case 3:return l=e.sent,e.next=4,(0,M.T1)(me,c,r,s);case 4:return u=e.sent,d=V()(u,2),p=d[0],f=d[1],e.next=5,(0,M.Lt)(ue);case 5:return m=e.sent,h=m.initialKey,e.next=6,(0,M.T1)(re,h,r);case 6:return g=e.sent,v={mode:l,entityId:o,entityName:p,formName:f,parentUrl:a,showBackButton:g},e.next=7,(0,M.yJ)(F.EJ(v));case 7:case"end":return e.stop()}}),e)}))()}function me(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=U()(t),i=a[0],c=ae(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,M.T1)(Q,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,M.T1)(q.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,M.T1)(me,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,M.T1)(me,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,M.T1)(Y.Ix);case 1:return t=n.sent,n.next=2,(0,M.yJ)(E.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,oe.jsx)($.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,M.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),se)}function ge(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,M.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,M.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,M.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=R().mark(ye);function ye(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.Zy)(de)]);case 1:case"end":return e.stop()}}),ve)}const be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=H[t.type];return n?n(e,t):e};function we(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 xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Oe=n()(n()(n()(n()({},D.Rf,L.A.singleTransferReducer("entityName")),D.g0,(function(e,t){var n=t.payload.formBase;return n?xe(xe({},e),{},{formBase:n}):xe({},e)})),D.J6,L.A.singleTransferReducer("scrollBehaviour")),D.PH,L.A.singleTransferReducer("appId")),ke={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Ae=R().mark(je),Se=R().mark(Pe),Ee=R().mark(Te);function je(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.T1)(Pe),(0,M.p8)(D.XA,Te)]);case 1:case"end":return e.stop()}}),Ae)}function Pe(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,M.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,M.yJ)(S.A.doSessionCheck());case 2:case"end":return t.stop()}}),Se)}function Te(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.yJ)(a.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Ee)}var De=R().mark(_e);function _e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.Zy)(je)]);case 1:case"end":return e.stop()}}),De)}const Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0,n=Oe[t.type];return n?n(e,t):e},Ne={detail:be,form:N.A,entityBrowser:Ce};var Ie,Re,Me=[_e,ye];function Le(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var He="entity-browser",Be=["onVisibilityStatusChange","onRouteChange"],ze=b().lazy((function(){return Promise.all([s.e(31509),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Ue=function(){return Ie||(Ie=(0,oe.jsx)(y.Suspense,{fallback:"",children:(0,oe.jsx)(ze,{})}))},We=function(e){var t=e.initialKey,n=e.initialAction,r=(0,w.Zp)(),o=(0,w.zy)().pathname;(0,y.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(j.A.toQueryString(n.properties));r(a)}}),[])},Ve=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?w.bg:w.Ge)([{path:"*",element:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(We,{initialKey:n,initialAction:r}),Re||(Re=(0,oe.jsx)(Ue,{}))]})}]);return(0,oe.jsx)(x.pg,{router:o})},Ye=function(t,n,r,o){n=Fe(Fe({},n),{},{id:t}),u.A.setInputEnvs(n);var i=e.A.createStore(Ne,Me,n,He);a.A.addToStore(i,(function(t){return e.A.getEvents(Be,t.input)})),O.A.addToStore(i),k.A.dynamicActionsAddToStore(i),A.A.addToStore(i,!0,["console","remote","notification"]),E.A.addToStore(i,!0),S.A.addToStore(i);var c=(0,oe.jsx)(Ve,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(He,c,i,{input:n,actions:_(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:Ye,props:t,packageName:He}),r=n.component,o=n.store,a=P.A.usePrevious(t);return P.A.useDidUpdate((function(){var e=v()(t,(function(e,t){return!h()(e,a[t])}));f()(e)||_(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,oe.jsx)(oe.Fragment,{children:r})};qe.propTypes=Fe({entityName:o().string.isRequired,searchFormType:i.X,formBase:o().string,limit:o().oneOfType([o().number,o().string]),preselectedSearchFields:o().array,searchFilters:o().arrayOf(o().string),simpleSearchFields:o().string,initialKey:o().string,initialAction:o().shape({name:o().string,properties:o().objectOf(o().object)}),businessUnit:o().string,memoryHistory:o().bool,backendUrl:o().string,scrollBehaviour:o().oneOf(["none","inline"]),appContext:c.A.propTypes,modifyFormDefinition:o().func,modifyEntityPaths:o().func,disableDetailView:o().bool,reportIds:o().arrayOf(o().string),customActionEventHandlers:o().objectOf(o().objectOf(o().func)),isHidden:o().bool},a.A.createPropTypes(Be));const $e=qe;e.A.createBundleableApp(He,Ye,qe);var Ge=s(53727),Ke=s(46836),Je=R().mark(Ze),Qe=R().mark(et),Xe=["incomplete","open","check"];function Ze(e,t){var n;return R().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,M.T1)(q.A.fetchEntity,"Requirement",t,{paths:["relRequirement_rule.enable_upload"]},{},Ke.A.getFlattenEntity);case 1:if(n=r.sent,n["relRequirement_rule.enable_upload"]){r.next=2;break}return r.abrupt("return",Ge.A.removeBoxes(e,["documents"]));case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),Je)}function et(e,t){var n,r;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,M.T1)(q.A.fetchEntity,"Requirement",t,{paths:["relRequirement_status.unique_id"]},{},Ke.A.getFlattenEntity);case 1:if(n=o.sent,r=n["relRequirement_status.unique_id"],Xe.includes(r)){o.next=2;break}return o.abrupt("return",Ge.A.removeActions(e,["upload_action"]));case 2:return o.abrupt("return",e);case 3:case"end":return o.stop()}}),Qe)}const tt=function(e){var t=e.formBase,n=e.searchFormType,r=e.reportIds,o=e.searchFilters,a=e.limit,i=e.backendUrl,c=e.businessUnit,s=e.appContext,l=e.onVisibilityStatusChange,u=e.locale;return(0,oe.jsx)($e,{entityName:"Schooling",formBase:t,searchFormType:n,searchFilters:o,limit:a,modifyFormDefinition:function(e,n){return function(e,t,n){var r=t.parent,o=t.entityId,a=n.formBase;return R().mark((function t(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!=="".concat(a,"_Requirement_detail")){t.next=2;break}return t.next=1,(0,M.T1)(Ze,e,o);case 1:case 3:return t.abrupt("return",t.sent);case 2:if(e.id!=="".concat(a,"_Requirement_detail_relResource_entitydocs_list")){t.next=4;break}return t.next=3,(0,M.T1)(et,e,r.key);case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))()}(e,n,{formBase:t})},backendUrl:i,businessUnit:c,appContext:s,reportIds:r,onVisibilityStatusChange:l,locale:u})};const nt=(0,d.Ng)((function(e){return{formBase:e.input.formBase,searchFormType:e.input.searchFormType,reportIds:e.input.reportIds,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,onVisibilityStatusChange:e.input.onVisibilityStatusChange,locale:e.app.locale}}),{})(tt);var rt;function ot(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}var at="education-portfolio",it=["onVisibilityStatusChange"],ct=function(t,n,r,o){u.A.setInputEnvs(n);var i=rt||(rt=(0,oe.jsx)(nt,{})),c=e.A.createStore({},null,n,at);return a.A.addToStore(c,(function(t){return e.A.getEvents(it,t.input)})),e.A.createApp(at,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",at]})},st=function(t){return e.A.useApp({initApp:ct,props:t,packageName:at,externalEvents:it}).component};st.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({formBase:o().string.isRequired,searchFormType:i.X,reportIds:o().arrayOf(o().string).isRequired,searchFilters:o().arrayOf(o().string),limit:o().oneOfType([o().number,o().string]),backendUrl:o().string,businessUnit:o().string,appContext:c.A.propTypes.isRequired},a.A.createPropTypes(it));var lt=e.A.createBundleableApp(at,ct,st);e.A.registerAppInRegistry(lt.name,lt.init)})(),l})()));
62
+ */function l(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));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 l(){return t[a]}function u(e,n=null,r){let o=m(t?l().pathname:"/",e,n,r);return p("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:d,createURL:e=>new URL(d(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=u(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=u(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 u(e={}){return v((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:h(t))}),(function(e,t){p("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function d(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 f(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n=null,r){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)}}function h({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 v(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,c="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function p(){c="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:c,location:g.location,delta:t})}function h(e){return y(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let g={get action(){return c},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(s,p),l=e,()=>{o.removeEventListener(s,p),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let r=m(g.location,e,t);n&&n(r,e),u=d()+1;let s=f(r,u),p=g.createHref(r);try{i.pushState(s,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(p)}a&&l&&l({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let r=m(g.location,e,t);n&&n(r,e),u=d();let o=f(r,u),s=g.createHref(r);i.replaceState(o,"",s),a&&l&&l({action:c,location:g.location,delta:0})},go:e=>i.go(e)};return g}function y(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),d(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function b(e){return{defaultValue:e}}var w=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 x=new Set(["lazy","caseSensitive","path","id","index","children"]);var O=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function k(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(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(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]=A(n,t(n)),n}{let n={...e,id:c,children:void 0};return r[c]=A(n,t(n)),e.children&&(n.children=k(e.children,t,i,r,o)),n}}))}function A(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function S(e,t,n="/"){return E(e,t,n,!1)}function E(e,t,n,r){let o=L(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let a=P(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=N(a[e],t,r)}return i}function j(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 P(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;d(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=Y([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),P(e.children,t,u,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:C(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of T(e.path))a(e,t,!0,n);else a(e,t)})),t}function T(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=T(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 D=/^:[\w-]+$/,_=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=-2),t&&(r+=2),n.filter((e=>!_(e))).reduce(((e,t)=>e+(D.test(t)?3:""===t?1:10)),r)}function N(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=I({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=I({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:Y([a,u.pathname]),pathnameBase:q(Y([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=Y([a,u.pathnameBase]))}return i}function I(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R(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 R(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)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).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 L(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 F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H=e=>F.test(e);function B(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function z(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 U(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function W(e){let t=U(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function V(e,t,n,r=!1){let o;"string"==typeof e?o=g(e):(o={...e},d(!o.pathname||!o.pathname.includes("?"),z("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),z("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),z("#","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=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?B(r.substring(1),"/"):B(r,t)):n=t,{pathname:n,search:$(o),hash:G(a)}}(o,a),l=c&&"/"!==c&&c.endsWith("/"),u=(i||"."===c)&&n.endsWith("/");return s.pathname.endsWith("/")||!l&&!u||(s.pathname+="/"),s}var Y=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var K=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 J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Q(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var X="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Z(e,t){let n=e;if("string"!=typeof n||!F.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(X)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),a=L(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 ee=Symbol("Uninstrumented");function te(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=ne(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=ne(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[ee]??o,a=ne(n[e],t,((...e)=>oe(e[0])));a&&("loader"===e&&!0===t.hydrate&&(a.hydrate=!0),a[ee]=t,r[e]=a)}})),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map((e=>{let t=e[ee]??e,r=ne(n.middleware,t,((...e)=>oe(e[0])));return r?(r[ee]=t,r):e}))),r}function ne(e,t,n){return 0===e.length?null:async(...r)=>{let o=await re(e,n(...r),(()=>t(...r)),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function re(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=re(e,t,n,r-1),o=await i,d(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 oe(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:ie(t),params:{...r},unstable_pattern:o,context:ce(n)}}function ae(e,t){return{currentUrl:h(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 ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ce(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")===se}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var se=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var le=["POST","PUT","PATCH","DELETE"],ue=new Set(le),de=["GET",...le],pe=new Set(de),fe=new Set([301,302,303,307,308]),me=new Set([307,308]),he={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ye=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),be="remix-router-transitions",we=Symbol("ResetLoaderData");function xe(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;d(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||ye,a=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...o(e),...te(t.map((e=>e.route)).filter(Boolean),e)})}let i,c={},s=k(e.routes,a,void 0,c),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let u,f,g=e.dataStrategy||Ie,v={...e.future},b=null,x=new Set,O=null,A=null,P=null,T=null!=e.hydrationData,D=S(s,e.history.location,l),_=!1,C=null;if(null!=D||e.patchRoutesOnNavigation){if(D&&!e.hydrationData){Ke(D,s,e.history.location.pathname).active&&(D=null)}if(D)if(D.some((e=>e.route.lazy)))u=!1;else if(D.some((e=>Se(e.route)))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex((e=>void 0!==n[e.route.id]));u=D.slice(0,e+1).every((e=>!Ee(e.route,t,n)))}else u=D.every((e=>!Ee(e.route,t,n)))}else u=!0;else{u=!1,D=[];let t=Ke(null,s,e.history.location.pathname);t.active&&t.matches&&(_=!0,D=t.matches)}}else{let t=tt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=et(s);u=!0,D=n,C={[r.id]:t}}let N,I,R={historyAction:e.history.action,location:e.history.location,matches:D,initialized:u,navigation:he,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||C,fetchers:new Map,blockers:new Map},M="POP",F=null,B=!1,z=!1,U=new Map,W=null,V=!1,Y=!1,q=new Set,$=new Map,G=0,K=-1,Q=new Map,X=new Set,Z=new Map,re=new Map,oe=new Set,ie=new Map,ce=null;function se(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}))),R={...R,...e};let n=[],r=[];R.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?n.push(t):r.push(t))})),oe.forEach((e=>{R.fetchers.has(e)||$.has(e)||n.push(e)})),[...x].forEach((r=>r(R,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync}))),n.forEach((e=>_e(e))),r.forEach((e=>R.fetchers.delete(e)))}function le(t,n,{flushSync:r}={}){let o,a=null!=R.actionData&&null!=R.navigation.formMethod&&mt(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?R.actionData:null;let c=n.loaderData?Qe(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,l=R.blockers;l.size>0&&(l=new Map(l),l.forEach(((e,t)=>l.set(t,ve))));let u,d=!V&&Ge(t,n.matches||R.matches),p=!0===B||null!=R.navigation.formMethod&&mt(R.navigation.formMethod)&&!0!==t.state?._isRedirect;if(i&&(s=i,i=void 0),V||"POP"===M||("PUSH"===M?e.history.push(t,t.state):"REPLACE"===M&&e.history.replace(t,t.state)),"POP"===M){let e=U.get(R.location.pathname);e&&e.has(t.pathname)?u={currentLocation:R.location,nextLocation:t}:U.has(t.pathname)&&(u={currentLocation:t,nextLocation:R.location})}else if(z){let e=U.get(R.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(R.location.pathname,e)),u={currentLocation:R.location,nextLocation:t}}se({...n,actionData:o,loaderData:c,historyAction:M,location:t,initialized:!0,navigation:he,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:p,blockers:l},{viewTransitionOpts:u,flushSync:!0===r}),M="POP",B=!1,z=!1,V=!1,Y=!1,F?.resolve(),F=null,ce?.resolve(),ce=null}async function ue(t,n,o){N&&N.abort(),N=null,M=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(O&&P){let n=$e(e,t);O[n]=P()}}(R.location,R.matches),B=!0===(o&&o.preventScrollReset),z=!0===(o&&o.enableViewTransition);let u=i||s,d=o&&o.overrideNavigation,p=o?.initialHydration&&R.matches&&R.matches.length>0&&!_?R.matches:S(u,n,l),f=!0===(o&&o.flushSync);if(p&&R.initialized&&!Y&&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}(R.location,n)&&!(o&&o.submission&&mt(o.submission.formMethod)))return void le(n,{matches:p},{flushSync:f});let m=Ke(p,u,n.pathname);if(m.active&&m.matches&&(p=m.matches),!p){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return void le(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}N=new AbortController;let h,g=qe(e.history,n,N.signal,o&&o.submission),v=e.getContext?await e.getContext():new w;if(o&&o.pendingError)h=[Ze(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&mt(o.submission.formMethod)){let t=await async function(t,n,o,i,u,d,p,f={}){xe();let m,h=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(se({navigation:h},{flushSync:!0===f.flushSync}),d){let e=await rt(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}=et(s);return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=Ze(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 g=gt(i,n);if(g.route.action||g.route.lazy){let e=Be(a,c,t,i,g,p?[]:r,u),n=await fe(t,e,u,null);if(m=n[g.route.id],!m)for(let e of i)if(n[e.route.id]){m=n[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:tt(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};if(lt(m)){let n;if(f&&null!=f.replace)n=f.replace;else{n=Ye(m.response.headers.get("Location"),new URL(t.url),l,e.history)===R.location.pathname+R.location.search}return await pe(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(st(m)){let e=Ze(i,g.route.id);return!0!==(f&&f.replace)&&(M="PUSH"),{matches:i,pendingActionResult:[e.route.id,m,g.route.id]}}return{matches:i,pendingActionResult:[g.route.id,m]}}(g,n,o.submission,p,v,m.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:f});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(st(r)&&J(r.error)&&404===r.error.status)return N=null,void le(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}p=t.matches||p,h=t.pendingActionResult,d=yt(n,o.submission),f=!1,m.active=!1,g=qe(e.history,g.url,g.signal)}let{shortCircuited:y,matches:b,loaderData:x,errors:k}=await async function(t,n,o,u,d,p,f,m,h,g,v,y,b){let w=p||yt(n,f),x=f||m||vt(w),O=!V&&!g;if(d){if(O){let e=de(y);se({navigation:w,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await rt(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}=et(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Ze(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:A,revalidatingFetchers:S}=Ae(t,u,a,c,e.history,R,o,x,n,g?[]:r,!0===g,Y,q,oe,Z,X,k,l,null!=e.patchRoutesOnNavigation,y,b);if(K=++G,!e.dataStrategy&&!A.some((e=>e.shouldLoad))&&!A.some((e=>e.route.middleware&&e.route.middleware.length>0))&&0===S.length){let e=Re();return le(n,{matches:o,loaderData:{},errors:y&&st(y[1])?{[y[0]]:y[1].error}:null,...Xe(y),...e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(O){let e={};if(!d){e.navigation=w;let t=de(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=R.fetchers.get(e.key),n=bt(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)})),new Map(R.fetchers)}(S)),se(e,{flushSync:v})}S.forEach((e=>{Ce(e.key),e.controller&&$.set(e.key,e.controller)}));let E=()=>S.forEach((e=>Ce(e.key)));N&&N.signal.addEventListener("abort",E);let{loaderResults:j,fetcherResults:P}=await we(A,S,t,u);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",E);S.forEach((e=>$.delete(e.key)));let T=nt(j);if(T)return await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};if(T=nt(P),T)return X.add(T.key),await pe(t,T.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:D,errors:_}=Je(R,o,j,y,S,P);g&&R.errors&&(_={...R.errors,..._});let C=Re(),I=Me(K),M=C||I||S.length>0;return{matches:o,loaderData:D,errors:_,...M?{fetchers:new Map(R.fetchers)}:{}}}(g,n,p,v,m.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,f,h,o&&o.callSiteDefaultShouldRevalidate);y||(N=null,le(n,{matches:b||p,...Xe(h),loaderData:x,errors:k}))}function de(e){return e&&!st(e[1])?{[e[0]]:e[1].data}:R.actionData?0===Object.keys(R.actionData).length?null:R.actionData:void 0}async function pe(r,o,a,{submission:i,fetcherSubmission:c,preventScrollReset:s,replace:u}={}){a||(F?.resolve(),F=null),o.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let p=o.response.headers.get("Location");d(p,"Expected a Location header on the redirect Response"),p=Ye(p,new URL(r.url),l,e.history);let f=m(R.location,p,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(H(p)){const n=y(p,!0);e=n.origin!==t.location.origin||null==L(n.pathname,l)}if(e)return void(u?t.location.replace(p):t.location.assign(p))}N=null;let h=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:v,formEncType:b}=R.navigation;!i&&!c&&g&&v&&b&&(i=vt(R.navigation));let w=i||c;if(me.has(o.response.status)&&w&&mt(w.formMethod))await ue(h,f,{submission:{...w,formAction:p},preventScrollReset:s||B,enableViewTransition:a?z:void 0});else{let e=yt(f,i);await ue(h,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:s||B,enableViewTransition:a?z:void 0})}}async function fe(e,t,n,r){let o,a={};try{o=await ze(g,e,t,r,n,!1)}catch(e){return t.filter((e=>e.shouldLoad)).forEach((t=>{a[t.route.id]={type:"error",error:e}})),a}if(e.signal.aborted)return a;if(!mt(e.method))for(let e of t){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||R.loaderData.hasOwnProperty(e.route.id)||R.errors&&R.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[n,r]of Object.entries(o))if(ct(r)){let o=r.result;a[n]={type:"redirect",response:Ve(o,e,n,t,l)}}else a[n]=await We(r);return a}async function we(e,t,n,r){let o=fe(n,e,r,null),a=Promise.all(t.map((async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await fe(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:tt(404,{pathname:e.path})}})})));return{loaderResults:await o,fetcherResults:(await a).reduce(((e,t)=>Object.assign(e,t)),{})}}function xe(){Y=!0,Z.forEach(((e,t)=>{$.has(t)&&q.add(t),Ce(t)}))}function je(e,t,n={}){R.fetchers.set(e,t),se({fetchers:new Map(R.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e,t,n,r={}){let o=Ze(R.matches,t);_e(e),se({errors:{[o.route.id]:n},fetchers:new Map(R.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function De(e){return re.set(e,(re.get(e)||0)+1),oe.has(e)&&oe.delete(e),R.fetchers.get(e)||ge}function _e(e){let t=R.fetchers.get(e);!$.has(e)||t&&"loading"===t.state&&Q.has(e)||Ce(e),Z.delete(e),Q.delete(e),X.delete(e),oe.delete(e),q.delete(e),R.fetchers.delete(e)}function Ce(e,t){let n=$.get(e);n&&(n.abort(t),$.delete(e))}function Ne(e){for(let t of e){let e=wt(De(t).data);R.fetchers.set(t,e)}}function Re(){let e=[],t=!1;for(let n of X){let r=R.fetchers.get(n);d(r,`Expected fetcher: ${n}`),"loading"===r.state&&(X.delete(n),e.push(n),t=!0)}return Ne(e),t}function Me(e){let t=[];for(let[n,r]of Q)if(r<e){let e=R.fetchers.get(n);d(e,`Expected fetcher: ${n}`),"loading"===e.state&&(Ce(n),Q.delete(n),t.push(n))}return Ne(t),t.length>0}function Le(e){R.blockers.delete(e),ie.delete(e)}function Fe(e,t){let n=R.blockers.get(e)||ve;d("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(R.blockers);r.set(e,t),se({blockers:r})}function He({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ie.size)return;ie.size>1&&p(!1,"A router only supports one blocker at a time");let r=Array.from(ie.entries()),[o,a]=r[r.length-1],i=R.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=tt(404,{pathname:e}),n=i||s,{matches:r,route:o}=et(n);return{notFoundMatches:r,route:o,error:t}}function $e(e,t){if(A){return A(e,t.map((e=>j(e,R.loaderData))))||e.key}return e.key}function Ge(e,t){if(O){let n=$e(e,t),r=O[n];if("number"==typeof r)return r}return null}function Ke(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:E(n,r,l,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:E(n,r,l,!0)}}}return{active:!1,matches:null}}async function rt(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let u=t;for(;;){let t=null==i,d=i||s,p=c;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:o,patch:(e,t)=>{r.aborted||Pe(e,t,d,p,a,!1)}})}catch(e){return{type:"error",error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:"aborted"};let f=S(d,n,l),m=null;if(f){if(0===Object.keys(f[0].params).length)return{type:"success",matches:f};if(m=E(d,n,l,!0),!(m&&u.length<m.length&&ot(u,m.slice(0,u.length))))return{type:"success",matches:f}}if(m||(m=E(d,n,l,!0)),!m||ot(u,m))return{type:"success",matches:null};u=m}}function ot(e,t){return e.length===t.length&&e.every(((e,n)=>e.route.id===t[n].route.id))}return f={get basename(){return l},get future(){return v},get state(){return R},get routes(){return s},get window(){return t},initialize:function(){if(b=e.history.listen((({action:t,location:n,delta:r})=>{if(I)return I(),void(I=void 0);p(0===ie.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=He({currentLocation:R.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise((e=>{I=e}));return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(r)))},reset(){let e=new Map(R.blockers);e.set(o,ve),se({blockers:e})}}),F?.resolve(),void(F=null)}return ue(t,n)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(be);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,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(be,JSON.stringify(n))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,U);t.addEventListener("pagehide",e),W=()=>t.removeEventListener("pagehide",e)}return R.initialized||ue("POP",R.location,{initialHydration:!0}),f},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,n){if(O=e,P=t,A=n||null,!T&&R.navigation===he){T=!0;let e=Ge(R.location,R.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{O=null,P=null,A=null}},navigate:async function t(n,r){if(F?.resolve(),F=null,"number"==typeof n){F||(F=xt());let t=F.promise;return e.history.go(n),t}let o=Oe(R.location,R.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:i,error:c}=ke(!1,o,r),s=R.location,u=m(R.location,a,r&&r.state);u={...u,...e.history.encodeLocation(u)};let d=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===d?p="REPLACE":!1===d||null!=i&&mt(i.formMethod)&&i.formAction===R.location.pathname+R.location.search&&(p="REPLACE");let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,h=!0===(r&&r.flushSync),g=He({currentLocation:s,nextLocation:u,historyAction:p});g?Fe(g,{state:"blocked",location:u,proceed(){Fe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(R.blockers);e.set(g,ve),se({blockers:e})}}):await ue(p,u,{submission:i,pendingError:c,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:h,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})},fetch:async function(t,n,o,u){Ce(t);let p=!0===(u&&u.flushSync),f=i||s,m=Oe(R.location,R.matches,l,o,n,u?.relative),h=S(f,m,l),g=Ke(h,f,m);if(g.active&&g.matches&&(h=g.matches),!h)return void Te(t,n,tt(404,{pathname:m}),{flushSync:p});let{path:v,submission:y,error:b}=ke(!0,m,u);if(b)return void Te(t,n,b,{flushSync:p});let x=e.getContext?await e.getContext():new w,O=!0===(u&&u.preventScrollReset);y&&mt(y.formMethod)?await async function(t,n,o,u,p,f,m,h,g,v){xe(),Z.delete(t);let y=R.fetchers.get(t);je(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}(g,y),{flushSync:m});let b=new AbortController,w=qe(e.history,o,b.signal,g);if(f){let e=await rt(u,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:m});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:m});u=e.matches}let x=gt(u,o);if(!x.route.action&&!x.route.lazy){let e=tt(405,{method:g.formMethod,pathname:o,routeId:n});return void Te(t,n,e,{flushSync:m})}$.set(t,b);let O=G,k=Be(a,c,w,u,x,r,p),A=await fe(w,k,p,t),E=A[x.route.id];if(!E)for(let e of k)if(A[e.route.id]){E=A[e.route.id];break}if(w.signal.aborted)return void($.get(t)===b&&$.delete(t));if(oe.has(t)){if(lt(E)||st(E))return void je(t,wt(void 0))}else{if(lt(E))return $.delete(t),K>O?void je(t,wt(void 0)):(X.add(t),je(t,bt(g)),pe(w,E,!1,{fetcherSubmission:g,preventScrollReset:h}));if(st(E))return void Te(t,n,E.error)}let j=R.navigation.location||R.location,P=qe(e.history,j,b.signal),T=i||s,D="idle"!==R.navigation.state?S(T,R.navigation.location,l):R.matches;d(D,"Didn't find any matches after fetcher action");let _=++G;Q.set(t,_);let C=bt(g,E.data);R.fetchers.set(t,C);let{dsMatches:I,revalidatingFetchers:L}=Ae(P,p,a,c,e.history,R,D,g,j,r,!1,Y,q,oe,Z,X,T,l,null!=e.patchRoutesOnNavigation,[x.route.id,E],v);L.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=R.fetchers.get(t),r=bt(void 0,n?n.data:void 0);R.fetchers.set(t,r),Ce(t),e.controller&&$.set(t,e.controller)})),se({fetchers:new Map(R.fetchers)});let F=()=>L.forEach((e=>Ce(e.key)));b.signal.addEventListener("abort",F);let{loaderResults:H,fetcherResults:B}=await we(I,L,P,p);if(b.signal.aborted)return;if(b.signal.removeEventListener("abort",F),Q.delete(t),$.delete(t),L.forEach((e=>$.delete(e.key))),R.fetchers.has(t)){let e=wt(E.data);R.fetchers.set(t,e)}let z=nt(H);if(z)return pe(P,z.result,!1,{preventScrollReset:h});if(z=nt(B),z)return X.add(z.key),pe(P,z.result,!1,{preventScrollReset:h});let{loaderData:U,errors:W}=Je(R,D,H,void 0,L,B);Me(_),"loading"===R.navigation.state&&_>K?(d(M,"Expected pending action"),N&&N.abort(),le(R.navigation.location,{matches:D,loaderData:U,errors:W,fetchers:new Map(R.fetchers)})):(se({errors:W,loaderData:Qe(R.loaderData,U,D,W),fetchers:new Map(R.fetchers)}),Y=!1)}(t,n,v,h,x,g.active,p,O,y,u&&u.unstable_defaultShouldRevalidate):(Z.set(t,{routeId:n,path:v}),await async function(t,n,o,i,s,l,u,d,p){let f=R.fetchers.get(t);je(t,bt(p,f?f.data:void 0),{flushSync:u});let m=new AbortController,h=qe(e.history,o,m.signal);if(l){let e=await rt(i,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,n,e.error,{flushSync:u});if(!e.matches)return void Te(t,n,tt(404,{pathname:o}),{flushSync:u});i=e.matches}let g=gt(i,o);$.set(t,m);let v=G,y=Be(a,c,h,i,g,r,s),b=await fe(h,y,s,t),w=b[g.route.id];$.get(t)===m&&$.delete(t);if(h.signal.aborted)return;if(oe.has(t))return void je(t,wt(void 0));if(lt(w))return K>v?void je(t,wt(void 0)):(X.add(t),void await pe(h,w,!1,{preventScrollReset:d}));if(st(w))return void Te(t,n,w.error);je(t,wt(w.data))}(t,n,v,h,x,g.active,p,O,y))},revalidate:function(){ce||(ce=xt()),xe(),se({revalidation:"loading"});let e=ce.promise;return"submitting"===R.navigation.state?e:"idle"===R.navigation.state?(ue(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),e):(ue(M||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:!0===z}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:De,resetFetcher:function(e,t){Ce(e,t?.reason),je(e,wt(null))},deleteFetcher:function(e){let t=(re.get(e)||0)-1;t<=0?(re.delete(e),oe.add(e)):re.set(e,t),se({fetchers:new Map(R.fetchers)})},dispose:function(){b&&b(),W&&W(),x.clear(),N&&N.abort(),R.fetchers.forEach(((e,t)=>_e(t))),R.blockers.forEach(((e,t)=>Le(t)))},getBlocker:function(e,t){let n=R.blockers.get(e)||ve;return ie.get(e)!==t&&ie.set(e,t),n},deleteBlocker:Le,patchRoutes:function(e,t,n=!1){let r=null==i;Pe(e,t,i||s,c,a,n),r&&(s=[...s],se({}))},_internalFetchControllers:$,_internalSetRoutes:function(e){c={},i=k(e,a,void 0,c)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.unstable_instrumentations&&(f=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[ee]??e.navigate,r=ne(n.navigate,t,((...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?h(n):".",...ae(e,r??{})}}));r&&(r[ee]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ee]??e.fetch,r=ne(n.fetch,t,((...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...ae(e,o??{})}}));r&&(r[ee]=t,e.fetch=r)}return e}(f,e.unstable_instrumentations.map((e=>e.router)).filter(Boolean))),f}function Oe(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=V(r||".",W(i),L(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=ht(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:Y([e,t])}({basename:n,pathname:s.pathname})),h(s)}function ke(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&&!ft(n.formMethod))return{path:t,error:tt(405,{method:n.formMethod})};let r,o,a=()=>({path:t,error:tt(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),c=rt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!mt(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(!mt(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(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=$e(n.formData),o=n.formData;else if(n.body instanceof FormData)r=$e(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ge(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ge(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(mt(s.formMethod))return{path:t,submission:s};let l=g(t);return e&&l.search&&ht(l.search)&&r.append("index",""),l.search=`?${r}`,{path:h(l),submission:s}}function Ae(e,t,n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v,y,b,w){let x,O=b?st(b[1])?b[1].error:b[1].data:void 0,k=o.createURL(a.location),A=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&&st(b[1])){let e=b[0];x=i.findIndex((t=>t.route.id===e))-1}let E=b?b[1].statusCode:void 0,j=E&&E>=400,P={currentUrl:k,currentParams:a.matches[0]?.params||{},nextUrl:A,nextParams:i[0].params,...c,actionResult:O,actionStatus:E},T=Q(i),D=i.map(((o,i)=>{let{route:c}=o,s=null;if(null!=x&&i>x?s=!1:c.lazy?s=!0:Se(c)?u?s=Ee(c,a.loaderData,a.errors):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)&&(s=!0):s=!1,null!==s)return He(n,r,e,T,o,l,t,s);let p=!1;"boolean"==typeof w?p=w:j?p=!1:(d||k.pathname+k.search===A.pathname+A.search||k.search!==A.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 f={...P,defaultShouldRevalidate:p},m=je(o,f);return He(n,r,e,T,o,l,t,m,f,w)})),_=[];return m.forEach(((e,c)=>{if(u||!i.some((t=>t.route.id===e.routeId))||f.has(c))return;let s=a.fetchers.get(c),m=s&&"idle"!==s.state&&void 0===s.data,b=S(g,e.path,v);if(!b){if(y&&m)return;return void _.push({key:c,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(h.has(c))return;let x=gt(b,e.path),O=new AbortController,k=qe(o,e.path,O.signal),A=null;if(p.has(c))p.delete(c),A=Be(n,r,k,b,x,l,t);else if(m)d&&(A=Be(n,r,k,b,x,l,t));else{let e;e="boolean"==typeof w?w:!j&&d;let o={...P,defaultShouldRevalidate:e};je(x,o)&&(A=Be(n,r,k,b,x,l,t,o))}A&&_.push({key:c,routeId:e.routeId,path:e.path,matches:A,match:x,request:k,controller:O})})),{dsMatches:D,revalidatingFetchers:_}}function Se(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Ee(e,t,n){if(e.lazy)return!0;if(!Se(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function je(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Pe(e,t,n,r,o,a){let i;if(e){let t=r[e];d(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=>Te(e,t)));t?s.push({existingRoute:t,newRoute:e}):c.push(e)})),c.length>0){let t=k(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]=k([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 Te(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=>Te(e,t))))))}var De=new WeakMap,_e=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(d(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let a=o.lazy[e];if(!a)return;let i=De.get(o);i||(i={},De.set(o,i));let c=i[e];if(c)return c;let s=(async()=>{let t=function(e){return x.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},Ce=new WeakMap;async function Ne(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 Ie(e){return e.matches.some((e=>e.route.middleware))?Re(e,(()=>Ne(e))):Ne(e)}function Re(e,t){return Me(e,t,(e=>{if(pt(e))throw e;return e}),at,(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=Ze(r,r[o].route.id).route.id;return Promise.resolve({[a]:{type:"error",result:t}})}}))}async function Me(e,t,n,r,o){let{matches:a,request:i,params:c,context:s,unstable_pattern:l}=e,u=a.flatMap((e=>e.route.middleware?e.route.middleware.map((t=>[e.route.id,t])):[]));return await Le({request:i,params:c,context:s,unstable_pattern:l},u,t,n,r,o)}async function Le(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,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let c=await Le(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,p),n=null!=t?r(t):void 0;return o(n)?n:l?n??l.value:(l={value:await p()},l.value)}catch(e){return await a(e,u,l)}}function Fe(e,t,n,r,o){let a=_e({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,r,o){let a=n[e.id];if(d(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Ce.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{d("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,O.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 Ce.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=_e({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,mt(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function He(e,t,n,r,o,a,i,c,s=null,l){let u=!1,d=Fe(e,t,n,o,a);return{...o,_lazyPromises:d,shouldLoad:c,shouldRevalidateArgs:s,shouldCallHandler:e=>(u=!0,s?je(o,"boolean"==typeof l?{...s,defaultShouldRevalidate:l}:"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):c),resolve(e){let{lazy:t,loader:a,middleware:s}=o.route,l=u||c||e&&!mt(n.method)&&(t||a),p=s&&s.length>0&&!a&&!t;return!l||!mt(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:a,scopedContext:i}){let c,s,l=mt(e.method),u=l?"action":"loader",d=r=>{let o,c=new Promise(((e,t)=>o=t));s=()=>o(),e.signal.addEventListener("abort",s);let l=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:i},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(a?a((e=>l(e))):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,c])};try{let t=l?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch((t=>{e=t})),r,o]);if(void 0!==e)throw e;c=n}else{await r;let t=l?n.route.action:n.route.loader;if(!t){if("action"===u){let t=new URL(e.url),r=t.pathname+t.search;throw tt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw tt(404,{pathname:t.pathname+t.search})}c=await d(t)}}catch(e){return{type:"error",result:e}}finally{s&&e.signal.removeEventListener("abort",s)}return c}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i})}}}function Be(e,t,n,r,o,a,i,c=null){return r.map((s=>s.route.id!==o.route.id?{...s,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Fe(e,t,n,s,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:He(e,t,n,Q(r),s,a,i,!0,c)))}async function ze(e,t,n,r,o,a){n.some((e=>e._lazyPromises?.middleware))&&await Promise.all(n.map((e=>e._lazyPromises?.middleware)));let i={request:t,unstable_pattern:Q(n),params:n[0].params,context:o,matches:n},c=a?()=>{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=i;return Re(t,(()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})))},s=await e({...i,fetcherKey:r,runClientMiddleware:c});try{await Promise.all(n.flatMap((e=>[e._lazyPromises?.handler,e._lazyPromises?.route])))}catch(e){}return s}async function Ue(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 We(e){let{result:t,type:n}=e;if(dt(t)){let e;try{e=await Ue(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ut(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:ot(t),statusCode:J(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:J(t)?t.status:void 0}:ut(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 Ve(e,t,n,r,o){let a=e.headers.get("Location");if(d(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=Oe(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Ye(e,t,n,r){let o=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(H(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(o.includes(a.protocol))throw new Error("Invalid redirect location");let i=null!=L(a.pathname,n);if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(o.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function qe(e,t,n,r){let o=e.createURL(rt(t)).toString(),a={signal:n};if(r&&mt(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=$e(r.formData):a.body=r.formData}return new Request(o,a)}function $e(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ge(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ke(e,t,n,r=!1,o=!1){let a,i={},c=null,s=!1,l={},u=n&&st(n[1])?n[1].error:void 0;return e.forEach((n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!lt(f),"Cannot handle redirect results in processLoaderData"),st(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),c=c||{},o)c[p]=t;else{let n=Ze(e,p);null==c[n.route.id]&&(c[n.route.id]=t)}r||(i[p]=we),s||(s=!0,a=J(f.error)?f.error.status:500),f.headers&&(l[p]=f.headers)}else i[p]=f.data,f.statusCode&&200!==f.statusCode&&!s&&(a=f.statusCode),f.headers&&(l[p]=f.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 Je(e,t,n,r,o,a){let{loaderData:i,errors:c}=Ke(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(d(i,"Did not find corresponding fetcher result"),st(i)){let t=Ze(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(lt(i))d(!1,"Unhandled fetcher revalidation redirect");else{let t=wt(i.data);e.fetchers.set(n,t)}})),{loaderData:i,errors:c}}function Qe(e,t,n,r){let o=Object.entries(t).filter((([,e])=>e!==we)).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 Xe(e){return e?st(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ze(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 et(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 tt(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 K(e||500,i,new Error(c),!0)}function nt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(lt(r))return{key:n,result:r}}}function rt(e){return h({..."string"==typeof e?g(e):e,hash:""})}function ot(e){return new K(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function at(e){return null!=e&&"object"==typeof e&&Object.entries(e).every((([e,t])=>"string"==typeof e&&it(t)))}function it(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ct(e){return dt(e.result)&&fe.has(e.result.status)}function st(e){return"error"===e.type}function lt(e){return"redirect"===(e&&e.type)}function ut(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function dt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function pt(e){return dt(e)&&(t=e.status,fe.has(t))&&e.headers.has("Location");var t}function ft(e){return pe.has(e.toUpperCase())}function mt(e){return ue.has(e.toUpperCase())}function ht(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function gt(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&ht(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function vt(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 yt(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 bt(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 wt(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 xt(){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 Ot=a.createContext(null);Ot.displayName="DataRouter";var kt=a.createContext(null);kt.displayName="DataRouterState";var At=a.createContext(!1);function St(){return a.useContext(At)}var Et=a.createContext({isTransitioning:!1});Et.displayName="ViewTransition";var jt=a.createContext(new Map);jt.displayName="Fetchers";var Pt=a.createContext(null);Pt.displayName="Await";var Tt=a.createContext(null);Tt.displayName="Navigation";var Dt=a.createContext(null);Dt.displayName="Location";var _t=a.createContext({outlet:null,matches:[],isDataRoute:!1});_t.displayName="Route";var Ct=a.createContext(null);Ct.displayName="RouteError";var Nt="REACT_ROUTER_ERROR";function It(){return null!=a.useContext(Dt)}function Rt(){return d(It(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(Dt).location}var Mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lt(e){a.useContext(Tt).static||a.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=a.useContext(_t);return e?function(){let{router:e}=Jt("useNavigate"),t=Xt("useNavigate"),n=a.useRef(!1);return Lt((()=>{n.current=!0})),a.useCallback((async(r,o={})=>{p(n.current,Mt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){d(It(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Ot),{basename:t,navigator:n}=a.useContext(Tt),{matches:r}=a.useContext(_t),{pathname:o}=Rt(),i=JSON.stringify(W(r)),c=a.useRef(!1);return Lt((()=>{c.current=!0})),a.useCallback(((r,a={})=>{if(p(c.current,Mt),!c.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}),[t,n,i,o,e])}()}a.createContext(null);function Ht(){let{matches:e}=a.useContext(_t),t=e[e.length-1];return t?t.params:{}}function Bt(e,{relative:t}={}){let{matches:n}=a.useContext(_t),{pathname:r}=Rt(),o=JSON.stringify(W(n));return a.useMemo((()=>V(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function zt(e,t,n,r,o){d(It(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=a.useContext(Tt),{matches:c}=a.useContext(_t),s=c[c.length-1],l=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",m=s&&s.route;{let e=m&&m.path||"";on(u,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (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 h,v=Rt();if(t){let e="string"==typeof t?g(t):t;d("/"===f||e.pathname?.startsWith(f),`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 "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=v;let y=h.pathname||"/",b=y;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=S(e,{pathname:b});p(m||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.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 x=Gt(w&&w.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Y([f,i.encodeLocation?i.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:Y([f,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,o);return t&&x?a.createElement(Dt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},x):x}function Ut(){let e=en(),t=J(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 Wt=a.createElement(Ut,null),Vt=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(`${Nt}: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 K(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(_t.Provider,{value:this.props.routeContext},a.createElement(Ct.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(qt,{error:e},t):t}};Vt.contextType=At;var Yt=new WeakMap;function qt({children:e,error:t}){let{basename:n}=a.useContext(Tt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Nt}: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=Yt.get(t);if(r)throw r;let o=Z(e.location,n);if(X&&!Yt.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace})));throw Yt.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 $t({routeContext:e,match:t,children:n}){let r=a.useContext(Ot);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(_t.Provider,{value:e},n)}function Gt(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,c=n?.errors;if(null!=c){let e=i.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}let u=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Q(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,o)=>{let d,p=!1,f=null,m=null;n&&(d=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||Wt,s&&(l<0&&0===o?(on("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===o&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,o+1)),g=()=>{let t;return t=d?f:p?m:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement($t,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(Vt,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}function Kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jt(e){let t=a.useContext(Ot);return d(t,Kt(e)),t}function Qt(e){let t=a.useContext(kt);return d(t,Kt(e)),t}function Xt(e){let t=function(e){let t=a.useContext(_t);return d(t,Kt(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zt(){let{matches:e,loaderData:t}=Qt("useMatches");return a.useMemo((()=>e.map((e=>j(e,t)))),[e,t])}function en(){let e=a.useContext(Ct),t=Qt("useRouteError"),n=Xt("useRouteError");return void 0!==e?e:t.errors?.[n]}var tn=0;function nn(e){let{router:t,basename:n}=Jt("useBlocker"),r=Qt("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:L(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:L(o.pathname,n)||o.pathname},historyAction:a})}),[n,e]);return a.useEffect((()=>{let e=String(++tn);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):ve}var rn={};function on(e,t,n){t||rn[e]||(rn[e]=!0,p(!1,n))}var an={};function cn(e,t){e||an[t]||(an[t]=!0,console.warn(t))}var sn=(r||(r=n.t(a,2))).useOptimistic,ln=()=>{};function un(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 dn=["HydrateFallback","hydrateFallbackElement"];function pn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:l({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:dn,mapRouteProperties:un,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}var fn=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 mn({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){let o=St();r=o||r;let[i,c]=a.useState(e.state),[s,l]=(u=i,sn?sn(u):[u,ln]);var u;let[d,p]=a.useState(),[f,m]=a.useState({isTransitioning:!1}),[h,g]=a.useState(),[v,y]=a.useState(),[b,w]=a.useState(),x=a.useRef(new Map),O=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:Q(o.matches)}))),o.fetchers.forEach(((e,t)=>{void 0!==e.data&&x.current.set(t,e.data)})),i.forEach((e=>x.current.delete(e))),cn(!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 f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(cn(null==d||f,"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&&f){if(t&&u){t((()=>{v&&(h?.resolve(),v.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})}));let n=e.window.document.startViewTransition((()=>{t((()=>c(o)))}));return n.finished.finally((()=>{t((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})}))})),void t((()=>y(n)))}v?(h?.resolve(),v.skipTransition(),w({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),m({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=>hn(e,o))),c(o)}))}),[e.window,t,v,h,r,l,n]);a.useLayoutEffect((()=>e.subscribe(O)),[e,O]),a.useEffect((()=>{f.isTransitioning&&!f.flushSync&&g(new fn)}),[f]),a.useEffect((()=>{if(h&&d&&e.window){let t=d,n=h.promise,o=e.window.document.startViewTransition((async()=>{!1===r?c(t):a.startTransition((()=>{!0===r&&l((e=>hn(e,t))),c(t)})),await n}));o.finished.finally((()=>{g(void 0),y(void 0),p(void 0),m({isTransitioning:!1})})),y(o)}}),[d,h,e.window,r,l]),a.useEffect((()=>{h&&d&&s.location.key===d.location.key&&h.resolve()}),[h,v,s.location,d]),a.useEffect((()=>{!f.isTransitioning&&b&&(p(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))}),[f.isTransitioning,b]);let k=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]),A=e.basename||"/",S=a.useMemo((()=>({router:e,navigator:k,static:!1,basename:A,onError:n})),[e,k,A,n]);return a.createElement(a.Fragment,null,a.createElement(Ot.Provider,{value:S},a.createElement(kt.Provider,{value:s},a.createElement(jt.Provider,{value:x.current},a.createElement(Et.Provider,{value:f},a.createElement(bn,{basename:A,location:s.location,navigationType:s.historyAction,navigator:k,unstable_useTransitions:r},a.createElement(gn,{routes:e.routes,future:e.future,state:s,onError:n})))))),null)}function hn(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 gn=a.memo((function({routes:e,future:t,state:n,onError:r}){return zt(e,void 0,n,r,t)}));function vn({to:e,replace:t,state:n,relative:r}){d(It(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=a.useContext(Tt);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(_t),{pathname:c}=Rt(),s=Ft(),l=V(e,W(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 yn(e){d(!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 bn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:c}){d(!It(),"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:f="",hash:m="",state:h=null,key:v="default"}=n,y=a.useMemo((()=>{let e=L(u,s);return null==e?null:{location:{pathname:e,search:f,hash:m,state:h,key:v},navigationType:r}}),[s,u,f,m,h,v,r]);return p(null!=y,`<Router basename="${s}"> is not able to match the URL "${u}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:a.createElement(Tt.Provider,{value:l},a.createElement(Dt.Provider,{children:t,value:y}))}function wn({children:e,location:t}){return zt(xn(e),t)}a.Component;function xn(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,xn(e.props.children,o));d(e.type===yn,`[${"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>`),d(!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=xn(e.props.children,o)),n.push(i)})),n}var On="get",kn="application/x-www-form-urlencoded";function An(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Sn(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 En=null;var jn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pn(e){return null==e||jn.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kn}"`),null)}function Tn(e,t){let n,r,o,a,i;if(An(c=e)&&"form"===c.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?L(i,t):null,n=e.getAttribute("method")||On,o=Pn(e.getAttribute("enctype"))||kn,a=new FormData(e)}else if(function(e){return An(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return An(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?L(c,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||On,o=Pn(e.getAttribute("formenctype"))||Pn(i.getAttribute("enctype"))||kn,a=new FormData(i,e),!function(){if(null===En)try{new FormData(document.createElement("form"),0),En=!1}catch(e){En=!0}return En}()){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(An(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=On,r=null,o=kn,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 Dn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},_n=/[&><\u2028\u2029]/g;function Cn(e){return e.replace(_n,(e=>Dn[e]))}function Nn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function In(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&&"/"===L(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Rn(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 Mn(e){return null!=e&&"string"==typeof e.page}function Ln(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 Fn(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 Hn(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 Bn(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Mn(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 zn(e,t){return"lazy"===e.mode&&!0===t}function Un(){let e=a.useContext(Ot);return Nn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Wn(){let e=a.useContext(kt);return Nn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vn=a.createContext(void 0);function Yn(){let e=a.useContext(Vn);return Nn(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 $n(e,t,n){if(n&&!Qn)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Vn.displayName="FrameworkContext";function Gn({page:e,...t}){let{router:n}=Un(),r=a.useMemo((()=>S(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?a.createElement(Jn,{page:e,matches:r,...t}):null}function Kn(e){let{manifest:t,routeModules:n}=Yn(),[r,o]=a.useState([]);return a.useEffect((()=>{let r=!1;return async function(e,t,n){return Bn((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Rn(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Ln).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 Jn({page:e,matches:t,...n}){let r=Rt(),{future:o,manifest:i,routeModules:c}=Yn(),{basename:s}=Un(),{loaderData:l,matches:u}=Wn(),d=a.useMemo((()=>Fn(e,t,u,i,r,"data")),[e,t,u,i,r]),p=a.useMemo((()=>Fn(e,t,u,i,r,"assets")),[e,t,u,i,r]),f=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=In(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]),m=a.useMemo((()=>Hn(p,i)),[p,i]),h=Kn(p);return a.createElement(a.Fragment,null,f.map((e=>a.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>a.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>a.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin}))))}var Qn=!1;function Xn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:c}=Yn(),{router:s,static:l,staticContext:u}=Un(),{matches:d}=Wn(),p=St(),f=zn(i,c);o&&(o.didRenderScripts=!0);let m=$n(d,null,r);a.useEffect((()=>{0}),[]);let h=a.useMemo((()=>{if(p)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)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Nn(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 ${f?`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=S(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 = {${m.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}))}),[]),g=Qn||p?[]:(t.entry.imports.concat(Hn(m,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let y="object"==typeof t.sri?t.sri:{};return cn(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Qn||p?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,f?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}),g.map((t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),h)}function Zn(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}a.Component;function er({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(J(e))return a.createElement(tr,{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(tr,{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 tr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Yn();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(Xn,null):null)))}var nr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{nr&&(window.__reactRouterVersion="7.13.0")}catch(e){}function rr(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||or(),routes:e,mapRouteProperties:un,hydrationRouteProperties:dn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function or(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ar(e.errors)}),e}function ar(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 K(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 ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=a.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:i,state:c,target:s,to:l,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f,...m},g){let{basename:v,unstable_useTransitions:y}=a.useContext(Tt),b="string"==typeof l&&ir.test(l),w=Z(l,v),x=function(e,{relative:t}={}){d(It(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Tt),{hash:o,pathname:i,search:c}=Bt(e,{relative:t}),s=i;return"/"!==n&&(s="/"===i?n:Y([n,i])),r.createHref({pathname:s,search:c,hash:o})}(l=w.to,{relative:r}),[O,k,A]=function(e,t){let n=a.useContext(Vn),[r,o]=a.useState(!1),[i,c]=a.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=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 f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),a.useEffect((()=>{if(r){let e=setTimeout((()=>{c(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{o(!0)},h=()=>{o(!1),c(!1)};return n?"intent"!==e?[i,f,{}]:[i,f,{onFocus:qn(s,m),onBlur:qn(l,h),onMouseEnter:qn(u,m),onMouseLeave:qn(d,h),onTouchStart:qn(p,m)}]:[!1,f,{}]}(n,m),S=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=Ft(),d=Rt(),p=Bt(e,{relative:i});return a.useCallback((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:h(d)===h(p),m=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:s});l?a.startTransition((()=>m())):m()}}),[d,u,p,n,r,t,e,o,i,c,s,l])}(l,{replace:i,state:c,target:s,preventScrollReset:u,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:f,unstable_useTransitions:y});let E=a.createElement("a",{...m,...A,href:w.absoluteURL||x,onClick:w.isExternal||o?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:Zn(g,k),target:s,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?a.createElement(a.Fragment,null,E,a.createElement(Gn,{page:x})):E}));cr.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 p=Bt(i,{relative:l.relative}),f=Rt(),m=a.useContext(kt),{navigator:h,basename:g}=a.useContext(Tt),v=null!=m&&function(e,{relative:t}={}){let n=a.useContext(Et);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dr("useViewTransitionState"),o=Bt(e,{relative:t});if(!n.isTransitioning)return!1;let i=L(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=L(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=I(o.pathname,c)||null!=I(o.pathname,i)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=L(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let O,k=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),A=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:k,isPending:A,isTransitioning:v},E=k?e:void 0;O="function"==typeof n?n(S):[n,k?"active":null,A?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof o?o(S):o;return a.createElement(cr,{...l,"aria-current":E,className:O,ref:u,style:j,to:i,viewTransition:c},"function"==typeof s?s(S):s)})).displayName="NavLink";var sr=a.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:c=On,action:s,onSubmit:l,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...g},v)=>{let{unstable_useTransitions:y}=a.useContext(Tt),b=hr(),w=function(e,{relative:t}={}){let{basename:n}=a.useContext(Tt),r=a.useContext(_t);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Bt(e||".",{relative:t})},c=Rt();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:Y([n,i.pathname]));return h(i)}(s,{relative:u}),x="get"===c.toLowerCase()?"get":"post",O="string"==typeof s&&ir.test(s);return a.createElement("form",{ref:v,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,d=()=>b(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:o,state:i,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m});y&&!1!==n?a.startTransition((()=>d())):d()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function lr({getKey:e,storageKey:t,...n}){let r=a.useContext(Vn),{basename:o}=a.useContext(Tt),i=Rt(),c=Zt();!function({getKey:e,storageKey:t}={}){let{router:n}=dr("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=pr("useScrollRestoration"),{basename:i}=a.useContext(Tt),c=Rt(),s=Zt(),l=Qt("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=yr(c,s,i,e);vr[t]=window.scrollY}try{sessionStorage.setItem(t||gr,JSON.stringify(vr))}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||gr);e&&(vr=JSON.parse(e))}catch(e){}}),[t]),a.useLayoutEffect((()=>{let t=n?.enableScrollRestoration(vr,(()=>window.scrollY),e?(t,n)=>yr(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=yr(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})(${Cn(JSON.stringify(t||gr))}, ${Cn(JSON.stringify(s))})`}})}function ur(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dr(e){let t=a.useContext(Ot);return d(t,ur(e)),t}function pr(e){let t=a.useContext(kt);return d(t,ur(e)),t}function fr(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(Sn(e)),n=a.useRef(!1),r=Rt(),o=a.useMemo((()=>function(e,t){let n=Sn(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=Ft(),c=a.useCallback(((e,t)=>{const r=Sn("function"==typeof e?e(new URLSearchParams(o)):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,c]}sr.displayName="Form",lr.displayName="ScrollRestoration";var mr=0;function hr(){let{router:e}=dr("useSubmit"),{basename:t}=a.useContext(Tt),n=Xt("useRouteId"),r=e.fetch,o=e.navigate;return a.useCallback((async(e,a={})=>{let{action:i,method:c,encType:s,formData:l,body:u}=Tn(e,t);if(!1===a.navigate){let e=a.fetcherKey||`__${String(++mr)}__`;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 gr="react-router-scroll-positions",vr={};function yr(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:L(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(35570),o=n(4883),a=n(81845);function i(e){return o.createElement(r.pg,{flushSync:a.flushSync,...e})}(0,r.q6)()},77987(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(37444),o=n(89954),a=n(1560);function i(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var i=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},88097(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166(e,t,n){"use strict";function r(){return r=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},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}n.d(t,{A:()=>r})},37820(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(88097);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8609(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(65710),o=n(97991);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(6695),o=n(21648),a=n(25134),i=n(37820);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},47978(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(95065),o=n(62439),a=n(25134),i=n(77969);function c(e){return(0,r.A)(e)||(0,o.A)(e)||(0,a.A)(e)||(0,i.A)()}},65710(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},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 p(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e){return["html","body","#document"].includes(i(e))}Math.min,Math.max;const m=Math.round;function h(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,f=1;t&&s(e)&&(d=e.offsetWidth>0&&m(u.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(u.height)/e.offsetHeight||1);const h=l(e)?o(e):window,g=!p()&&n,v=(u.left+(g&&null!=(r=null==(a=h.visualViewport)?void 0:a.offsetLeft)?r:0))/d,y=(u.top+(g&&null!=(i=null==(c=h.visualViewport)?void 0:c.offsetTop)?i:0))/f,b=u.width/d,w=u.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||(u(e)?e.host:null)||g(e);return u(t)?t.host:t}function y(e){const t=v(e);return f(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,p=null;if(i){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),l(e)&&!c&&p.observe(e),l(e)||!e.contextElement||c||p.observe(e.contextElement),p.observe(t)}let f=c?h(e):null;return c&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}},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:()=>f,Zz:()=>p,ve:()=>m,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,p=0,f=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return l}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),u=null}}}function v(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(f)throw new Error(r(9));try{f=!0,l=a(l,e)}finally{f=!1}return(u=d).forEach((e=>{e()})),e}v({type:i.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,v({type:i.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}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 p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...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=p(...s)(a.dispatch),{...a,dispatch:i}}}function m(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:"3c1c59154271f87e916e",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:"792c5d8eedd7e180a8dd",11239:"3a5cd677cf29f3546ee4",11281:"d0881fa4e1202a4dbb76",11788:"51e32ea30eb321b03e6f",11842:"9004a43dcef6d7760dd2",12987:"97e5dd85393b6417f10c",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:"432083e5f41410c8db2f",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",26528:"2058d031de5ffa19a688",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",31509:"f3ef2932e5c381e9130e",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:"91bc1d47ede7f4d14fa9",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:"027733fe3eba39b13958",54310:"2ca2266ada2374163f48",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:"e588afb4488f11fd7815",61594:"0382427712b4da544e89",61742:"69492c57097c7388ee14",61777:"6cfa01d168603d2e8b19",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:"21c4f10787123ef929d2",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:"f382a9def7c08d24614e",71496:"06a9e24517f63c64b71e",71657:"e24e92ec601c3a8f6123",72246:"74336b92b3c10275cf5b",72283:"5640ceafcb1a84995a2b",72376:"1c8fe4fca40bdb58f2c7",72456:"f76fad1aca8dfb886286",72496:"2e04213724432319d644",72823:"0986f95ef2f3e926bec0",72887:"a2459671464659787208",72969:"6019fec098a828072d20",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:"912241017b80b7e6688c",84506:"65901c8d6e51b655ed26",84556:"1037288f434db19f6a5d",84567:"a5ea4e7f08bf4d4786a2",84625:"4d45878bc75d842f0ce5",85085:"1437fb70620c874f931b",85477:"b1c42a2c640fc2f2efa4",85481:"9bf28c4cde56ec1da335",85749:"e12a77f854f7d0742067",86006:"ea630e081ef1e382e68f",86187:"89510d8669a217799c2c",86275:"284bb332a76c6f0eb8df",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:"3157972cc0628b4a640b",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 p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.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=28200,s.p="/",(()=>{var e={28200: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:()=>lt});var e=s(61402),t=s(26396),n=s.n(t),r=s(5556),o=s.n(r),a=s(28391),i=s(78144),c=s(68500),u=s(80621),d=s(71468),p=s(62193),f=s.n(p),m=s(2404),h=s.n(m),g=s(71086),v=s.n(g),y=s(4883),b=s.n(y),w=s(35570),x=s(52600),O=s(88951),k=s(13128),A=s(59042),S=s(96450),E=s(72942),j=s(32619),P=s(7311),T=s(66498),D=s(35301),_=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return T.A.getDispatchActions(e,C,t)},C=[{name:"entityName",action:D.Zl,mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:D.uO,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:D.uO,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:D.Zy,argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:D.RH,argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],N=s(44467),I=s(92207),R=s.n(I),M=s(15003),L=s(29056),F=s(71635),H=n()(n()({},F.Bt,L.A.singleTransferReducer("formTouched")),F.wr,L.A.singleTransferReducer("detailParams")),B={detailParams:void 0,formTouched:!1};var z=s(15890),U=s.n(z),W=s(22056),V=s.n(W),Y=s(28261),q=s(57327),$=s(27399);function G(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 K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=K({},e)})),e.relations.forEach((function(e){t[e.relationName]=K({type:"relation"},e)})),t};function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J;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,M.T1)(q.A.requestSaga,"entities/".concat(e,"/model"));case 1:return r=n.sent,n.next=2,(0,M.T1)(t,r.body);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))()}var X={CREATE:"create",UPDATE:"update"};const Z=function(e){return void 0===e?X.CREATE:X.UPDATE};var ee=s(21259),te=s.n(ee);const ne=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(te()(e),te()(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 re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=s(74848);function ae(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 ie=R().mark(de),ce=R().mark(pe),se=R().mark(he),le=function(e){return e.entityBrowser},ue=function(e){return e.input};function de(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.p8)(F.M4,fe),(0,M.p8)(F.z3,pe),(0,M.p8)(F.o7,ge)]);case 1:case"end":return e.stop()}}),ie)}function pe(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.yJ)(F.EJ(void 0));case 1:case"end":return e.stop()}}),ce)}function fe(e){var t=e.payload;return R().mark((function e(){var n,r,o,a,i,c,s,l,u,d,p,f,m,h,g,v;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.T1)(ne,t.url);case 1:return n=e.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,e.next=2,(0,M.Lt)(le);case 2:return i=e.sent,c=i.entityName,s=i.formBase,e.next=3,(0,M.T1)(Z,o);case 3:return l=e.sent,e.next=4,(0,M.T1)(me,c,r,s);case 4:return u=e.sent,d=V()(u,2),p=d[0],f=d[1],e.next=5,(0,M.Lt)(ue);case 5:return m=e.sent,h=m.initialKey,e.next=6,(0,M.T1)(re,h,r);case 6:return g=e.sent,v={mode:l,entityId:o,entityName:p,formName:f,parentUrl:a,showBackButton:g},e.next=7,(0,M.yJ)(F.EJ(v));case 7:case"end":return e.stop()}}),e)}))()}function me(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=U()(t),i=a[0],c=ae(a).slice(1),i){o.next=1;break}return o.abrupt("return",[e,r]);case 1:return o.next=2,(0,M.T1)(Q,e);case 2:if(s=o.sent,l=s[i]){o.next=5;break}return o.next=3,(0,M.T1)(q.A.fetchForm,"".concat(n,"_detail_").concat(i),"list");case 3:return u=o.sent,o.next=4,(0,M.T1)(me,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,M.T1)(me,l.targetEntity,c,n,d);case 7:case"end":return o.stop()}}),o)}))()}function he(e){var t;return R().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,M.T1)(Y.Ix);case 1:return t=n.sent,n.next=2,(0,M.yJ)(E.A.modal("navigation-pending-changes","client.entity-browser.detail.confirmTouchedFormTitle",e,(function(e){var n=e.close;return(0,oe.jsx)($.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,M.s)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),se)}function ge(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,M.T1)(he,n);case 1:if("yes"!==e.sent){e.next=3;break}return e.next=2,(0,M.T1)(r,!0);case 2:e.next=4;break;case 3:return e.next=4,(0,M.T1)(r,!1);case 4:case"end":return e.stop()}}),e)}))()}var ve=R().mark(ye);function ye(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.Zy)(de)]);case 1:case"end":return e.stop()}}),ve)}const be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0,n=H[t.type];return n?n(e,t):e};function we(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 xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Oe=n()(n()(n()(n()({},D.Rf,L.A.singleTransferReducer("entityName")),D.g0,(function(e,t){var n=t.payload.formBase;return n?xe(xe({},e),{},{formBase:n}):xe({},e)})),D.J6,L.A.singleTransferReducer("scrollBehaviour")),D.PH,L.A.singleTransferReducer("appId")),ke={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Ae=R().mark(je),Se=R().mark(Pe),Ee=R().mark(Te);function je(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.T1)(Pe),(0,M.p8)(D.XA,Te)]);case 1:case"end":return e.stop()}}),Ae)}function Pe(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,M.s)(e.A.INPUT_INITIALIZED);case 1:return t.next=2,(0,M.yJ)(S.A.doSessionCheck());case 2:case"end":return t.stop()}}),Se)}function Te(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.yJ)(a.A.fireExternalEvent("onRouteChange"));case 1:case"end":return e.stop()}}),Ee)}var De=R().mark(_e);function _e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,M.Q7)([(0,M.Zy)(je)]);case 1:case"end":return e.stop()}}),De)}const Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0,n=Oe[t.type];return n?n(e,t):e},Ne={detail:be,form:N.A,entityBrowser:Ce};var Ie,Re,Me=[_e,ye];function Le(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var He="entity-browser",Be=["onVisibilityStatusChange","onRouteChange"],ze=b().lazy((function(){return Promise.all([s.e(31509),s.e(86275),s.e(91051)]).then(s.bind(s,55341))})),Ue=function(){return Ie||(Ie=(0,oe.jsx)(y.Suspense,{fallback:"",children:(0,oe.jsx)(ze,{})}))},We=function(e){var t=e.initialKey,n=e.initialAction,r=(0,w.Zp)(),o=(0,w.zy)().pathname;(0,y.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(j.A.toQueryString(n.properties));r(a)}}),[])},Ve=function(e){var t=e.memoryRouter,n=e.initialKey,r=e.initialAction,o=(t?w.bg:w.Ge)([{path:"*",element:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(We,{initialKey:n,initialAction:r}),Re||(Re=(0,oe.jsx)(Ue,{}))]})}]);return(0,oe.jsx)(x.pg,{router:o})},Ye=function(t,n,r,o){n=Fe(Fe({},n),{},{id:t}),u.A.setInputEnvs(n);var i=e.A.createStore(Ne,Me,n,He);a.A.addToStore(i,(function(t){return e.A.getEvents(Be,t.input)})),O.A.addToStore(i),k.A.dynamicActionsAddToStore(i),A.A.addToStore(i,!0,["console","remote","notification"]),E.A.addToStore(i,!0),S.A.addToStore(i);var c=(0,oe.jsx)(Ve,{memoryRouter:n.memoryHistory,initialKey:n.initialKey,initialAction:n.initialAction});return e.A.createApp(He,c,i,{input:n,actions:_(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},qe=function(t){var n=e.A.useApp({initApp:Ye,props:t,packageName:He}),r=n.component,o=n.store,a=P.A.usePrevious(t);return P.A.useDidUpdate((function(){var e=v()(t,(function(e,t){return!h()(e,a[t])}));f()(e)||_(e,!1).forEach((function(e){o.dispatch(e)}))}),[t]),(0,oe.jsx)(oe.Fragment,{children:r})};qe.propTypes=Fe({entityName:o().string.isRequired,searchFormType:i.X,formBase:o().string,limit:o().oneOfType([o().number,o().string]),preselectedSearchFields:o().array,searchFilters:o().arrayOf(o().string),simpleSearchFields:o().string,initialKey:o().string,initialAction:o().shape({name:o().string,properties:o().objectOf(o().object)}),businessUnit:o().string,memoryHistory:o().bool,backendUrl:o().string,scrollBehaviour:o().oneOf(["none","inline"]),appContext:c.A.propTypes,modifyFormDefinition:o().func,modifyEntityPaths:o().func,disableDetailView:o().bool,reportIds:o().arrayOf(o().string),customActionEventHandlers:o().objectOf(o().objectOf(o().func)),isHidden:o().bool},a.A.createPropTypes(Be));const $e=qe;e.A.createBundleableApp(He,Ye,qe);var Ge=s(53727),Ke=s(46836),Je=R().mark(Ze),Qe=R().mark(et),Xe=["incomplete","open","check"];function Ze(e,t){var n;return R().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,M.T1)(q.A.fetchEntity,"Requirement",t,{paths:["relRequirement_rule.enable_upload"]},{},Ke.A.getFlattenEntity);case 1:if(n=r.sent,n["relRequirement_rule.enable_upload"]){r.next=2;break}return r.abrupt("return",Ge.A.removeBoxes(e,["documents"]));case 2:return r.abrupt("return",e);case 3:case"end":return r.stop()}}),Je)}function et(e,t){var n,r;return R().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,M.T1)(q.A.fetchEntity,"Requirement",t,{paths:["relRequirement_status.unique_id"]},{},Ke.A.getFlattenEntity);case 1:if(n=o.sent,r=n["relRequirement_status.unique_id"],Xe.includes(r)){o.next=2;break}return o.abrupt("return",Ge.A.removeActions(e,["upload_action"]));case 2:return o.abrupt("return",e);case 3:case"end":return o.stop()}}),Qe)}const tt=function(e){var t=e.formBase,n=e.searchFormType,r=e.reportIds,o=e.searchFilters,a=e.limit,i=e.backendUrl,c=e.businessUnit,s=e.appContext,l=e.onVisibilityStatusChange,u=e.locale;return(0,oe.jsx)($e,{entityName:"Schooling",formBase:t,searchFormType:n,searchFilters:o,limit:a,modifyFormDefinition:function(e,n){return function(e,t,n){var r=t.parent,o=t.entityId,a=n.formBase;return R().mark((function t(){return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.id!=="".concat(a,"_Requirement_detail")){t.next=2;break}return t.next=1,(0,M.T1)(Ze,e,o);case 1:case 3:return t.abrupt("return",t.sent);case 2:if(e.id!=="".concat(a,"_Requirement_detail_relResource_entitydocs_list")){t.next=4;break}return t.next=3,(0,M.T1)(et,e,r.key);case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))()}(e,n,{formBase:t})},backendUrl:i,businessUnit:c,appContext:s,reportIds:r,onVisibilityStatusChange:l,locale:u})};const nt=(0,d.Ng)((function(e){return{formBase:e.input.formBase,searchFormType:e.input.searchFormType,reportIds:e.input.reportIds,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,onVisibilityStatusChange:e.input.onVisibilityStatusChange,locale:e.app.locale}}),{})(tt);var rt;function ot(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}var at="education-portfolio",it=["onVisibilityStatusChange"],ct=function(t,n,r,o){u.A.setInputEnvs(n);var i=rt||(rt=(0,oe.jsx)(nt,{})),c=e.A.createStore({},null,n,at);return a.A.addToStore(c,(function(t){return e.A.getEvents(it,t.input)})),e.A.createApp(at,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",at]})},st=function(t){return e.A.useApp({initApp:ct,props:t,packageName:at,externalEvents:it}).component};st.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({formBase:o().string.isRequired,searchFormType:i.X,reportIds:o().arrayOf(o().string).isRequired,searchFilters:o().arrayOf(o().string),limit:o().oneOfType([o().number,o().string]),backendUrl:o().string,businessUnit:o().string,appContext:c.A.propTypes.isRequired},a.A.createPropTypes(it));var lt=e.A.createBundleableApp(at,ct,st);e.A.registerAppInRegistry(lt.name,lt.init)})(),l})()));