From 76fc358ab4d17986bded906dcb4c8332d4fed87e Mon Sep 17 00:00:00 2001 From: vladleesi Date: Mon, 23 Dec 2024 10:54:30 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20vladlees?= =?UTF-8?q?i/kotlin-js@d6951dedfe7bee94c595520fb64828cecbe179b3=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vladleesi-gh-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vladleesi-gh-pages.js b/vladleesi-gh-pages.js index b5b18e3..c12222a 100644 --- a/vladleesi-gh-pages.js +++ b/vladleesi-gh-pages.js @@ -1,3 +1,3 @@ /*! For license information please see vladleesi-gh-pages.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vladleesi-gh-pages"]=t():e["vladleesi-gh-pages"]=t()}(globalThis,(()=>(()=>{var e,t,n={8:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cache:()=>Pe,css:()=>$e,cx:()=>ke,flush:()=>we,getRegisteredStyles:()=>xe,hydrate:()=>_e,injectGlobal:()=>Ee,keyframes:()=>Ce,merge:()=>Se,sheet:()=>Re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(w,--y):0,v--,10===b&&(v=1,m--),b}function x(){return b=y2||R(b)>3?"":" "}function z(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return $(e,C()+(t<6&&32==E()&&32==x()))}function T(e){for(;x();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&T(b);break;case 40:41===e&&T(e);break;case 92:x()}return y}function D(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+$(t,y-1)+"*"+i(47===e?e:x())}function j(e){for(;!R(E());)x();return $(e,y)}var M="-ms-",O="-moz-",F="-webkit-",I="comm",U="rule",B="decl",q="@keyframes";function H(e,t){for(var n="",r=h(e),a=0;a0&&d(O)-g&&p(b>32?G(O+";",r,n,g-1):G(u(O," ","")+";",r,n,g-2),h);break;case 59:O+=";";default:if(p(M=Q(O,t,n,m,v,a,f,P,N=[],T=[],g),o),123===R)if(0===v)K(O,t,M,M,N,o,g,f,T);else switch(99===y&&110===c(O,3)?100:y){case 100:case 108:case 109:case 115:K(e,M,M,r&&p(Q(e,M,M,0,0,a,f,P,a,N=[],g),T),a,T,g,f,r?N:T);break;default:K(O,M,M,M,[""],T,0,f,T)}}m=v=b=0,_=$=1,P=O="",g=l;break;case 58:g=1+d(O),b=w;default:if(_<1)if(123==R)--_;else if(125==R&&0==_++&&125==S())continue;switch(O+=i(R),R*_){case 38:$=v>0?1:(O+="\f",-1);break;case 44:f[m++]=(d(O)-1)*$,$=1;break;case 64:45===E()&&(O+=A(x())),y=E(),v=g=d(P=O+=j(C())),R++;break;case 45:45===w&&2==d(O)&&(_=0)}}return o}function Q(e,t,n,r,i,o,s,c,d,p,m){for(var v=i-1,g=0===i?o:[""],y=h(g),b=0,w=0,k=0;b0?g[S]+" "+x:u(x,/&\f/g,g[S])))&&(d[k++]=E);return _(e,t,n,0===i?U:c,d,p,m)}function Y(e,t,n){return _(e,t,n,I,i(b),f(e,2,-2),0)}function G(e,t,n,r){return _(e,t,n,B,f(e,0,r),f(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,a=0;r=a,a=E(),38===r&&12===a&&(t[n]=1),!R(a);)x();return $(e,y)},X=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var a=[],o=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(R(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=J(y-1,t,n);break;case 2:e[n]+=A(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=x());return e}(P(e),t))}(t,a),l=n.props,u=0,s=0;u6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+O+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?te(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,d(e)-3-(~s(e,"!important")&&10))){case 107:return u(e,":",":"+F)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===c(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return F+e+M+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+M+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+M+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+M+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=te(e.value,e.length);break;case q:return H([k(e,{value:u(e.value,"@","@"+F)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([k(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([k(e,{props:[u(t,/:(plac\w+)/,":"+F+"input-$1")]}),k(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[u(t,/:(plac\w+)/,M+"input-$1")]})],r)}return""}))}}],re={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ae(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ie=/[A-Z]|^ms/g,oe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,le=function(e){return 45===e.charCodeAt(1)},ue=function(e){return null!=e&&"boolean"!=typeof e},se=ae((function(e){return le(e)?e:e.replace(ie,"-$&").toLowerCase()})),ce=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(oe,(function(e,t,n){return de={name:t,styles:n,next:de},t}))}return 1===re[e]||le(e)||"number"!=typeof t||0===t?t:t+"px"};function fe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return de={name:n.name,styles:n.styles,next:de},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)de={name:r.name,styles:r.styles,next:de},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+u;return{name:s,styles:a,next:de}};function me(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function ve(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function ge(e,t,n){var r=[],a=me(e,r,n);return r.length<2?n:a+t(r)}var ye=function e(t){for(var n="",r=0;r{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;th,B6:()=>z,G3:()=>ue,Gh:()=>I,HS:()=>U,HW:()=>le,Oi:()=>s,Pq:()=>V,Rr:()=>p,Sk:()=>J,TM:()=>u,V2:()=>G,VV:()=>X,aE:()=>de,o1:()=>j,pX:()=>Z,pb:()=>D,rc:()=>a,ro:()=>w,sC:()=>o,tH:()=>W,tW:()=>L,ue:()=>b,v6:()=>Y,yD:()=>F,zR:()=>l}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const i="popstate";function o(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map(((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let o=s(null==r?t.length-1:r),l=a.Pop,u=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function f(){return t[o]}function m(e,n,r){void 0===n&&(n=null);let a=d(t?f().pathname:"/",e,n,r);return c("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function v(e){return"string"==typeof e?e:h(e)}return{get index(){return o},get action(){return l},get location(){return f()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?p(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){l=a.Push;let r=m(e,n);o+=1,t.splice(o,t.length,r),i&&u&&u({action:l,location:r,delta:1})},replace(e,n){l=a.Replace;let r=m(e,n);t[o]=r,i&&u&&u({action:l,location:r,delta:0})},go(e){l=a.Pop;let n=s(o+e),r=t[n];o=n,u&&u({action:l,location:r,delta:e})},listen:e=>(u=e,()=>{u=null})}}function l(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return d("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function u(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),d("",{pathname:n,search:r,hash:a},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){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function c(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 d(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:u=!1}=o,c=l.history,p=a.Pop,m=null,v=g();function g(){return(c.state||{idx:null}).idx}function y(){p=a.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,c.replaceState(r({},c.state,{idx:v}),""));let w={get action(){return p},get location(){return e(l,c)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(i,y),m=e,()=>{l.removeEventListener(i,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=a.Push;let r=d(w.location,e,t);n&&n(r,e),v=g()+1;let i=f(r,v),o=w.createHref(r);try{c.pushState(i,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}u&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=a.Replace;let r=d(w.location,e,t);n&&n(r,e),v=g();let i=f(r,v),o=w.createHref(r);c.replaceState(i,"",o),u&&m&&m({action:p,location:w.location,delta:0})},go:e=>c.go(e)};return w}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));const g=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n,a){return void 0===n&&(n=[]),void 0===a&&(a={}),e.map(((e,i)=>{let o=[...n,i],l="string"==typeof e.id?e.id:o.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!a[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:l});return a[l]=n,n}{let n=r({},e,t(e),{id:l,children:void 0});return a[l]=n,e.children&&(n.children=y(e.children,t,o,a)),n}}))}function b(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let a=_(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[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{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let l=U([r,o.relativePath]),u=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),_(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of k(e.path))a(e,t,n);else a(e,t)})),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let o=k(r.join("/")),l=[];return l.push(...o.map((e=>""===e?i:[i,e].join("/")))),a&&l.push(...o),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const S=/^:[\w-]+$/,x=3,E=2,C=1,$=10,R=-2,P=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(P)&&(r+=R),t&&(r+=E),n.filter((e=>!P(e))).reduce(((e,t)=>e+(S.test(t)?x:""===t?C:$)),r)}function A(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let e=0;enull==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map(((e,n,r)=>{if(n===r.length-1&&"*"===e)return a(t["*"]);const i=e.match(/^:([\w-]+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];return s("?"===n||null!=r,'Missing ":'+e+'" param'),a(r)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),c("*"===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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const u=l[n];return e[r]=a&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function T(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function j(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:i,search:q(r),hash:H(a)}}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function O(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e,t){let n=O(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function I(e,t,n,a){let i;void 0===a&&(a=!1),"string"==typeof e?i=p(e):(i=r({},e),s(!i.pathname||!i.pathname.includes("?"),M("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),M("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),M("#","search","hash",i)));let o,l=""===e||""===i.pathname,u=l?"/":i.pathname;if(null==u)o=n;else{let e=t.length-1;if(!a&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=j(i,o),f=u&&"/"!==u&&u.endsWith("/"),d=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const U=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",V=function(e,t){void 0===t&&(t={});let n="number"==typeof t?{status:t}:t,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),r({},n,{headers:a}))};class W extends Error{}class K{constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],s(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>n=t)),this.controller=new AbortController;let r=()=>n(new W("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(n,e,void 0,t)),(t=>this.onSettle(n,e,t)));return n.catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof W)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach((n=>n(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise((t=>{this.subscribe((r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return s(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:Q(r)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Q(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Y=function(e,t){return void 0===t&&(t={}),new K(e,"number"==typeof t?{status:t}:t)},G=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",e),new Response(null,r({},n,{headers:a}))},J=(e,t)=>{let n=G(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n};class X{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const ee=["post","put","patch","delete"],te=new Set(ee),ne=["get",...ee],re=new Set(ne),ae=new Set([301,302,303,307,308]),ie=new Set([307,308]),oe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},le={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ue={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ce=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),fe="remix-router-transitions";function de(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,i=!n;let o;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=ce;let l,u,f={},h=y(e.routes,o,void 0,f),p=e.basename||"/",m=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),g=null,_=new Set,k=null,S=null,x=null,E=null!=e.hydrationData,C=b(h,e.history.location,p),$=null;if(null==C){let t=$e(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ce(h);C=n,$={[r.id]:t}}let R,P=C.some((e=>e.route.lazy)),N=C.some((e=>e.route.loader));if(P)u=!1;else if(N)if(m.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]);if(n){let e=C.findIndex((e=>void 0!==n[e.route.id]));u=C.slice(0,e+1).every(r)}else u=C.every(r)}else u=null!=e.hydrationData;else u=!0;let A,L={historyAction:e.history.action,location:e.history.location,matches:C,initialized:u,navigation:oe,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||$,fetchers:new Map,blockers:new Map},z=a.Pop,T=!1,j=!1,M=new Map,O=null,F=!1,I=!1,U=[],B=[],q=new Map,H=0,V=-1,W=new Map,K=new Set,Q=new Map,Y=new Map,G=new Set,J=new Map,X=new Map,Z=!1;function ee(e,t){void 0===t&&(t={}),L=r({},L,e);let n=[],a=[];m.v7_fetcherPersist&&L.fetchers.forEach(((e,t)=>{"idle"===e.state&&(G.has(t)?a.push(t):n.push(t))})),[..._].forEach((e=>e(L,{deletedFetchers:a,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),m.v7_fetcherPersist&&(n.forEach((e=>L.fetchers.delete(e))),a.forEach((e=>_e(e))))}function te(t,n,i){var o,u;let s,{flushSync:c}=void 0===i?{}:i,f=null!=L.actionData&&null!=L.navigation.formMethod&&ze(L.navigation.formMethod)&&"loading"===L.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:f?L.actionData:null;let d=n.loaderData?xe(L.loaderData,n.loaderData,n.matches||[],n.errors):L.loaderData,p=L.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,ue))));let m,v=!0===T||null!=L.navigation.formMethod&&ze(L.navigation.formMethod)&&!0!==(null==(u=t.state)?void 0:u._isRedirect);if(l&&(h=l,l=void 0),F||z===a.Pop||(z===a.Push?e.history.push(t,t.state):z===a.Replace&&e.history.replace(t,t.state)),z===a.Pop){let e=M.get(L.location.pathname);e&&e.has(t.pathname)?m={currentLocation:L.location,nextLocation:t}:M.has(t.pathname)&&(m={currentLocation:t,nextLocation:L.location})}else if(j){let e=M.get(L.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(L.location.pathname,e)),m={currentLocation:L.location,nextLocation:t}}ee(r({},n,{actionData:s,loaderData:d,historyAction:z,location:t,initialized:!0,navigation:oe,revalidation:"idle",restoreScrollPosition:Qe(t,n.matches||L.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),z=a.Pop,T=!1,j=!1,F=!1,I=!1,U=[],B=[]}async function ne(t,n,i){A&&A.abort(),A=null,z=t,F=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(k&&x){let n=Ke(e,t);k[n]=x()}}(L.location,L.matches),T=!0===(i&&i.preventScrollReset),j=!0===(i&&i.enableViewTransition);let u=l||h,s=i&&i.overrideNavigation,c=b(u,n,p),d=!0===(i&&i.flushSync);if(!c){let e=$e(404,{pathname:n.pathname}),{matches:t,route:r}=Ce(u);return We(),void te(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:d})}if(L.initialized&&!I&&(g=L.location,y=n,g.pathname===y.pathname&&g.search===y.search&&(""===g.hash?""!==y.hash:g.hash===y.hash||""!==y.hash))&&!(i&&i.submission&&ze(i.submission.formMethod)))return void te(n,{matches:c},{flushSync:d});var g,y;A=new AbortController;let w,_,S=we(e.history,n,A.signal,i&&i.submission);if(i&&i.pendingError)_={[Ee(c).route.id]:i.pendingError};else if(i&&i.submission&&ze(i.submission.formMethod)){let e=await async function(e,t,n,r,i){void 0===i&&(i={}),de();let l,u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,n);ee({navigation:u},{flushSync:!0===i.flushSync});let s=Me(r,t);if(s.route.action||s.route.lazy){if(l=await be("action",e,s,r,f,o,p,m.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else l={type:v.error,error:$e(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(Le(l)){let e;return e=i&&null!=i.replace?i.replace:l.location===L.location.pathname+L.location.search,await re(L,l,{submission:n,replace:e}),{shortCircuited:!0}}if(Ae(l)){let e=Ee(r,s.route.id);return!0!==(i&&i.replace)&&(z=a.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:l.error}}}if(Ne(l))throw $e(400,{type:"defer-action"});return{pendingActionData:{[s.route.id]:l.data}}}(S,n,i.submission,c,{replace:i.replace,flushSync:d});if(e.shortCircuited)return;w=e.pendingActionData,_=e.pendingActionError,s=Fe(n,i.submission),d=!1,S=new Request(S.url,{signal:S.signal})}let{shortCircuited:E,loaderData:C,errors:$}=await async function(t,n,a,i,o,u,s,c,f,d,v){let g=i||Fe(n,o),y=o||u||Oe(g),b=l||h,[w,_]=me(e.history,L,a,y,n,m.v7_partialHydration&&!0===c,I,U,B,G,Q,K,b,p,d,v);if(We((e=>!(a&&a.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),V=++H,0===w.length&&0===_.length){let e=je();return te(n,r({matches:a,loaderData:{},errors:v||null},d?{actionData:d}:{},e?{fetchers:new Map(L.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!(F||m.v7_partialHydration&&c)){_.forEach((e=>{let t=L.fetchers.get(e.key),n=Ie(void 0,t?t.data:void 0);L.fetchers.set(e.key,n)}));let e=d||L.actionData;ee(r({navigation:g},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},_.length>0?{fetchers:new Map(L.fetchers)}:{}),{flushSync:f})}_.forEach((e=>{q.has(e.key)&&ke(e.key),e.controller&&q.set(e.key,e.controller)}));let k=()=>_.forEach((e=>ke(e.key)));A&&A.signal.addEventListener("abort",k);let{results:S,loaderResults:x,fetcherResults:E}=await ae(L.matches,a,w,_,t);if(t.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",k),_.forEach((e=>q.delete(e.key)));let C=Re(S);if(C){if(C.idx>=w.length){let e=_[C.idx-w.length].key;K.add(e)}return await re(L,C.result,{replace:s}),{shortCircuited:!0}}let{loaderData:$,errors:R}=Se(L,a,w,x,v,_,E,J);J.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&J.delete(t)}))})),m.v7_partialHydration&&c&&L.errors&&Object.entries(L.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;R=Object.assign(R||{},{[t]:n})}));let P=je(),N=Be(V),z=P||N||_.length>0;return r({loaderData:$,errors:R},z?{fetchers:new Map(L.fetchers)}:{})}(S,n,c,s,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,d,w,_);E||(A=null,te(n,r({matches:c},w?{actionData:w}:{},{loaderData:C,errors:$})))}async function re(i,o,l){let{submission:u,fetcherSubmission:c,replace:f}=void 0===l?{}:l;o.revalidate&&(I=!0);let h=d(i.location,o.location,{_isRedirect:!0});if(s(h,"Expected a location on the redirect navigation"),n){let n=!1;if(o.reloadDocument)n=!0;else if(se.test(o.location)){const r=e.history.createURL(o.location);n=r.origin!==t.location.origin||null==D(r.pathname,p)}if(n)return void(f?t.location.replace(o.location):t.location.assign(o.location))}A=null;let m=!0===f?a.Replace:a.Push,{formMethod:v,formAction:g,formEncType:y}=i.navigation;!u&&!c&&v&&g&&y&&(u=Oe(i.navigation));let b=u||c;if(ie.has(o.status)&&b&&ze(b.formMethod))await ne(m,h,{submission:r({},b,{formAction:o.location}),preventScrollReset:T});else{let e=Fe(h,u);await ne(m,h,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:T})}}async function ae(t,n,r,a,i){let l=await Promise.all([...r.map((e=>be("loader",i,e,n,f,o,p,m.v7_relativeSplatPath))),...a.map((t=>t.matches&&t.match&&t.controller?be("loader",we(e.history,t.path,t.controller.signal),t.match,t.matches,f,o,p,m.v7_relativeSplatPath):{type:v.error,error:$e(404,{pathname:t.path})}))]),u=l.slice(0,r.length),s=l.slice(r.length);return await Promise.all([Te(t,r,u,u.map((()=>i.signal)),!1,L.loaderData),Te(t,a.map((e=>e.match)),s,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:u,fetcherResults:s}}function de(){I=!0,U.push(...We()),Q.forEach(((e,t)=>{q.has(t)&&(B.push(t),ke(t))}))}function ve(e,t,n){void 0===n&&(n={}),L.fetchers.set(e,t),ee({fetchers:new Map(L.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function ge(e,t,n,r){void 0===r&&(r={});let a=Ee(L.matches,t);_e(e),ee({errors:{[a.route.id]:n},fetchers:new Map(L.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ye(e){return m.v7_fetcherPersist&&(Y.set(e,(Y.get(e)||0)+1),G.has(e)&&G.delete(e)),L.fetchers.get(e)||le}function _e(e){let t=L.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&W.has(e)||ke(e),Q.delete(e),W.delete(e),K.delete(e),G.delete(e),L.fetchers.delete(e)}function ke(e){let t=q.get(e);s(t,"Expected fetch controller: "+e),t.abort(),q.delete(e)}function Pe(e){for(let t of e){let e=Ue(ye(t).data);L.fetchers.set(t,e)}}function je(){let e=[],t=!1;for(let n of K){let r=L.fetchers.get(n);s(r,"Expected fetcher: "+n),"loading"===r.state&&(K.delete(n),e.push(n),t=!0)}return Pe(e),t}function Be(e){let t=[];for(let[n,r]of W)if(r0}function qe(e){L.blockers.delete(e),X.delete(e)}function He(e,t){let n=L.blockers.get(e)||ue;s("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(L.blockers);r.set(e,t),ee({blockers:r})}function Ve(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===X.size)return;X.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(X.entries()),[i,o]=a[a.length-1],l=L.blockers.get(i);return l&&"proceeding"===l.state?void 0:o({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function We(e){let t=[];return J.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),J.delete(r))})),t}function Ke(e,t){return S&&S(e,t.map((e=>w(e,L.loaderData))))||e.key}function Qe(e,t){if(k){let n=Ke(e,t),r=k[n];if("number"==typeof r)return r}return null}return R={get basename(){return p},get future(){return m},get state(){return L},get routes(){return h},get window(){return t},initialize:function(){if(g=e.history.listen((t=>{let{action:n,location:r,delta:a}=t;if(Z)return void(Z=!1);c(0===X.size||null!=a,"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 i=Ve({currentLocation:L.location,nextLocation:r,historyAction:n});return i&&null!=a?(Z=!0,e.history.go(-1*a),void He(i,{state:"blocked",location:r,proceed(){He(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(L.blockers);e.set(i,ue),ee({blockers:e})}})):ne(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(fe);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,M);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(fe,JSON.stringify(n))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,M);t.addEventListener("pagehide",e),O=()=>t.removeEventListener("pagehide",e)}return L.initialized||ne(a.Pop,L.location,{initialHydration:!0}),R},subscribe:function(e){return _.add(e),()=>_.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,x=t,S=n||null,!E&&L.navigation===oe){E=!0;let e=Qe(L.location,L.matches);null!=e&&ee({restoreScrollPosition:e})}return()=>{k=null,x=null,S=null}},navigate:async function t(n,i){if("number"==typeof n)return void e.history.go(n);let o=he(L.location,L.matches,p,m.v7_prependBasename,n,m.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:l,submission:u,error:s}=pe(m.v7_normalizeFormMethod,!1,o,i),c=L.location,f=d(L.location,l,i&&i.state);f=r({},f,e.history.encodeLocation(f));let h=i&&null!=i.replace?i.replace:void 0,v=a.Push;!0===h?v=a.Replace:!1===h||null!=u&&ze(u.formMethod)&&u.formAction===L.location.pathname+L.location.search&&(v=a.Replace);let g=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,y=!0===(i&&i.unstable_flushSync),b=Ve({currentLocation:c,nextLocation:f,historyAction:v});if(!b)return await ne(v,f,{submission:u,pendingError:s,preventScrollReset:g,replace:i&&i.replace,enableViewTransition:i&&i.unstable_viewTransition,flushSync:y});He(b,{state:"blocked",location:f,proceed(){He(b,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(n,i)},reset(){let e=new Map(L.blockers);e.set(b,ue),ee({blockers:e})}})},fetch:function(t,n,r,a){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(t)&&ke(t);let u=!0===(a&&a.unstable_flushSync),c=l||h,d=he(L.location,L.matches,p,m.v7_prependBasename,r,m.v7_relativeSplatPath,n,null==a?void 0:a.relative),v=b(c,d,p);if(!v)return void ge(t,n,$e(404,{pathname:d}),{flushSync:u});let{path:g,submission:y,error:w}=pe(m.v7_normalizeFormMethod,!0,d,a);if(w)return void ge(t,n,w,{flushSync:u});let _=Me(v,g);T=!0===(a&&a.preventScrollReset),y&&ze(y.formMethod)?async function(t,n,r,a,i,u,c){if(de(),Q.delete(t),!a.route.action&&!a.route.lazy){let e=$e(405,{method:c.formMethod,pathname:r,routeId:n});return void ge(t,n,e,{flushSync:u})}let d=L.fetchers.get(t);ve(t,function(e,t){return{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}}(c,d),{flushSync:u});let v=new AbortController,g=we(e.history,r,v.signal,c);q.set(t,v);let y=H,w=await be("action",g,a,i,f,o,p,m.v7_relativeSplatPath);if(g.signal.aborted)return void(q.get(t)===v&&q.delete(t));if(m.v7_fetcherPersist&&G.has(t)){if(Le(w)||Ae(w))return void ve(t,Ue(void 0))}else{if(Le(w))return q.delete(t),V>y?void ve(t,Ue(void 0)):(K.add(t),ve(t,Ie(c)),re(L,w,{fetcherSubmission:c}));if(Ae(w))return void ge(t,n,w.error)}if(Ne(w))throw $e(400,{type:"defer-action"});let _=L.navigation.location||L.location,k=we(e.history,_,v.signal),S=l||h,x="idle"!==L.navigation.state?b(S,L.navigation.location,p):L.matches;s(x,"Didn't find any matches after fetcher action");let E=++H;W.set(t,E);let C=Ie(c,w.data);L.fetchers.set(t,C);let[$,R]=me(e.history,L,x,c,_,!1,I,U,B,G,Q,K,S,p,{[a.route.id]:w.data},void 0);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=L.fetchers.get(t),r=Ie(void 0,n?n.data:void 0);L.fetchers.set(t,r),q.has(t)&&ke(t),e.controller&&q.set(t,e.controller)})),ee({fetchers:new Map(L.fetchers)});let P=()=>R.forEach((e=>ke(e.key)));v.signal.addEventListener("abort",P);let{results:N,loaderResults:T,fetcherResults:D}=await ae(L.matches,x,$,R,k);if(v.signal.aborted)return;v.signal.removeEventListener("abort",P),W.delete(t),q.delete(t),R.forEach((e=>q.delete(e.key)));let j=Re(N);if(j){if(j.idx>=$.length){let e=R[j.idx-$.length].key;K.add(e)}return re(L,j.result)}let{loaderData:M,errors:O}=Se(L,L.matches,$,T,void 0,R,D,J);if(L.fetchers.has(t)){let e=Ue(w.data);L.fetchers.set(t,e)}Be(E),"loading"===L.navigation.state&&E>V?(s(z,"Expected pending action"),A&&A.abort(),te(L.navigation.location,{matches:x,loaderData:M,errors:O,fetchers:new Map(L.fetchers)})):(ee({errors:O,loaderData:xe(L.loaderData,M,x,O),fetchers:new Map(L.fetchers)}),I=!1)}(t,n,g,_,v,u,y):(Q.set(t,{routeId:n,path:g}),async function(t,n,r,a,i,l,u){let c=L.fetchers.get(t);ve(t,Ie(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=we(e.history,r,d.signal);q.set(t,d);let v=H,g=await be("loader",h,a,i,f,o,p,m.v7_relativeSplatPath);if(Ne(g)&&(g=await De(g,h.signal,!0)||g),q.get(t)===d&&q.delete(t),!h.signal.aborted){if(!G.has(t))return Le(g)?V>v?void ve(t,Ue(void 0)):(K.add(t),void await re(L,g)):void(Ae(g)?ge(t,n,g.error):(s(!Ne(g),"Unhandled fetcher deferred data"),ve(t,Ue(g.data))));ve(t,Ue(void 0))}}(t,n,g,_,v,u,y))},revalidate:function(){de(),ee({revalidation:"loading"}),"submitting"!==L.navigation.state&&("idle"!==L.navigation.state?ne(z||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation}):ne(L.historyAction,L.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ye,deleteFetcher:function(e){if(m.v7_fetcherPersist){let t=(Y.get(e)||0)-1;t<=0?(Y.delete(e),G.add(e)):Y.set(e,t)}else _e(e);ee({fetchers:new Map(L.fetchers)})},dispose:function(){g&&g(),O&&O(),_.clear(),A&&A.abort(),L.fetchers.forEach(((e,t)=>_e(t))),L.blockers.forEach(((e,t)=>qe(t)))},getBlocker:function(e,t){let n=L.blockers.get(e)||ue;return X.get(e)!==t&&X.set(e,t),n},deleteBlocker:qe,_internalFetchControllers:q,_internalActiveDeferreds:J,_internalSetRoutes:function(e){f={},l=y(e,o,void 0,f)}},R}function he(e,t,n,r,a,i,o,l){let u,s;if(o){u=[];for(let e of t)if(u.push(e),e.route.id===o){s=e;break}}else u=t,s=t[t.length-1];let c=I(a||".",F(u,i),D(e.pathname,n)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!s||!s.route.index||je(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:U([n,c.pathname])),h(c)}function pe(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(a=r.formMethod,!re.has(a.toLowerCase())))return{path:n,error:$e(405,{method:r.formMethod})};var a;let i,o,l=()=>({path:n,error:$e(400,{type:"invalid-body"})}),u=r.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),f=Pe(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(c))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(c))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:f,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),r.formData)i=_e(r.formData),o=r.formData;else if(r.body instanceof FormData)i=_e(r.body),o=r.body;else if(r.body instanceof URLSearchParams)i=r.body,o=ke(i);else if(null==r.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(r.body),o=ke(i)}catch(e){return l()}let d={formMethod:c,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ze(d.formMethod))return{path:n,submission:d};let m=p(n);return t&&m.search&&je(m.search)&&i.append("index",""),m.search="?"+i,{path:h(m),submission:d}}function me(e,t,n,a,i,o,l,u,s,c,f,d,h,p,m,v){let g=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),w=e.createURL(i),_=v?Object.keys(v)[0]:void 0,k=function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,_).filter(((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(o)return!!i.loader.hydrate||void 0===t.loaderData[i.id]&&(!t.errors||void 0===t.errors[i.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[n],c=e;return ge(e,r({currentUrl:y,currentParams:s.params,nextUrl:w,nextParams:c.params},a,{actionResult:g,defaultShouldRevalidate:l||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||ve(s,c)}))})),S=[];return f.forEach(((e,i)=>{if(o||!n.some((t=>t.route.id===e.routeId))||c.has(i))return;let u=b(h,e.path,p);if(!u)return void S.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(i),m=Me(u,e.path),v=!1;v=!d.has(i)&&(!!s.includes(i)||(f&&"idle"!==f.state&&void 0===f.data?l:ge(m,r({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},a,{actionResult:g,defaultShouldRevalidate:l})))),v&&S.push({key:i,routeId:e.routeId,path:e.path,matches:u,match:m,controller:new AbortController})})),[k,S]}function ve(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ge(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function ye(e,t,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let i=n[e.id];s(i,"No route found in manifest");let o={};for(let e in a){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+i.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.'),t||g.has(e)||(o[e]=a[e])}Object.assign(i,o),Object.assign(i,r({},t(i),{lazy:void 0}))}async function be(e,t,n,r,a,i,o,l,u){let c,f,d;void 0===u&&(u={});let h=e=>{let r,a=new Promise(((e,t)=>r=t));return d=()=>r(),t.signal.addEventListener("abort",d),Promise.race([e({request:t,params:n.params,context:u.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy)if(r){let e,t=await Promise.all([h(r).catch((t=>{e=t})),ye(n.route,i,a)]);if(e)throw e;f=t[0]}else{if(await ye(n.route,i,a),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw $e(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:v.data,data:void 0}}f=await h(r)}else{if(!r){let e=new URL(t.url);throw $e(404,{pathname:e.pathname+e.search})}f=await h(r)}s(void 0!==f,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){c=v.error,f=e}finally{d&&t.signal.removeEventListener("abort",d)}if(null!=(p=f)&&"number"==typeof p.status&&"string"==typeof p.statusText&&"object"==typeof p.headers&&void 0!==p.body){let e,a=f.status;if(ae.has(a)){let e=f.headers.get("Location");if(s(e,"Redirects returned/thrown from loaders/actions must have a Location header"),se.test(e)){if(!u.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),a=null!=D(r.pathname,o);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=he(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,e,l);if(u.isStaticRequest)throw f.headers.set("Location",e),f;return{type:v.redirect,status:a,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===v.error?v.error:v.data,response:f};try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==f.body?null:await f.json():await f.text()}catch(e){return{type:v.error,error:e}}return c===v.error?{type:c,error:new X(a,f.statusText,e),headers:f.headers}:{type:v.data,data:e,statusCode:f.status,headers:f.headers}}var p,m,g;return c===v.error?{type:c,error:f}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(f)?{type:v.deferred,deferredData:f,statusCode:null==(m=f.init)?void 0:m.status,headers:(null==(g=f.init)?void 0:g.headers)&&new Headers(f.init.headers)}:{type:v.data,data:f}}function we(e,t,n,r){let a=e.createURL(Pe(t)).toString(),i={signal:n};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=_e(r.formData):i.body=r.formData}return new Request(a,i)}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 ke(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Se(e,t,n,a,i,o,l,u){let{loaderData:c,errors:f}=function(e,t,n,r,a){let i,o={},l=null,u=!1,c={};return n.forEach(((n,f)=>{let d=t[f].route.id;if(s(!Le(n),"Cannot handle redirect results in processLoaderData"),Ae(n)){let t=Ee(e,d),a=n.error;r&&(a=Object.values(r)[0],r=void 0),l=l||{},null==l[t.route.id]&&(l[t.route.id]=a),o[d]=void 0,u||(u=!0,i=Z(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else Ne(n)?(a.set(d,n.deferredData),o[d]=n.deferredData.data):o[d]=n.data,null==n.statusCode||200===n.statusCode||u||(i=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:i||200,loaderHeaders:c}}(t,n,a,i,u);for(let t=0;te.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Ce(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 $e(e,t){let{pathname:n,routeId:r,method:a,type:i}=void 0===t?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(o="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(o="Not Found",l='No route matches URL "'+n+'"'):405===e&&(o="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new X(e||500,o,new Error(l),!0)}function Re(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Le(n))return{result:n,idx:t}}}function Pe(e){return h(r({},"string"==typeof e?p(e):e,{hash:""}))}function Ne(e){return e.type===v.deferred}function Ae(e){return e.type===v.error}function Le(e){return(e&&e.type)===v.redirect}function ze(e){return te.has(e.toLowerCase())}async function Te(e,t,n,r,a,i){for(let o=0;oe.route.id===u.route.id)),f=null!=c&&!ve(c,u)&&void 0!==(i&&i[u.route.id]);if(Ne(l)&&(a||f)){let e=r[o];s(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await De(l,e,a).then((e=>{e&&(n[o]=e||n[o])}))}}}async function De(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:v.data,data:e.deferredData.unwrappedData}}catch(e){return{type:v.error,error:e}}return{type:v.data,data:e.deferredData.data}}}function je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Me(e,t){let n="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&je(n||""))return e[e.length-1];let r=O(e);return r[r.length-1]}function Oe(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function Fe(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ie(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ue(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},555:(e,t,n)=>{"use strict";var r=n(552),a=n(754);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n