"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[644],{98009:function(t,e,n){n.d(e,{Ep:function(){return createPath},RQ:function(){return joinPaths},WK:function(){return isRouteErrorResponse},X3:function(){return y},Zn:function(){return stripBasename},Zq:function(){return getPathContributingMatches},aU:function(){return o},cP:function(){return parsePath},fp:function(){return matchRoutes},kG:function(){return invariant},lX:function(){return createBrowserHistory},pC:function(){return resolveTo}});var r,a,o,i,u=n(41366),c=n(7639),s=n(59426),l=n(65288),h=n(26460),f=n(56073),p=n(18787),d=n(59657),v=n(34136);function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function matchRoutes(t,e,n){void 0===n&&(n="/");var r=stripBasename(("string"==typeof e?parsePath(e):e).pathname||"/",n);if(null==r)return null;var a=function flattenRoutes(t,e,n,r){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===r&&(r="");var flattenRoute=function(t,a,o){var i,u,c,s={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};s.relativePath.startsWith("/")&&(invariant(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));var l=joinPaths([r,s.relativePath]),h=n.concat(s);t.children&&t.children.length>0&&(invariant(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),flattenRoutes(t.children,e,h,l)),(null!=t.path||t.index)&&e.push({path:l,score:(i=t.index,c=(u=l.split("/")).length,u.some(isSplat)&&(c+=-2),i&&(c+=2),u.filter(function(t){return!isSplat(t)}).reduce(function(t,e){return t+(g.test(e)?3:""===e?1:10)},c)),routesMeta:h})};return t.forEach(function(t,e){var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?")){var r,a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(t,e)}}(t))){n&&(t=n);var r=0,F=function(){};return{s:F,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,i=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){i=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(i)throw a}}}}(function explodeOptionalSegments(t){var e=t.split("/");if(0===e.length)return[];var n=(0,d.Z)(e),r=n[0],a=n.slice(1),o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var u=explodeOptionalSegments(a.join("/")),c=[];return c.push.apply(c,(0,v.Z)(u.map(function(t){return""===t?i:[i,t].join("/")}))),o&&c.push.apply(c,(0,v.Z)(u)),c.map(function(e){return t.startsWith("/")&&""===e?"/":e})}(t.path));try{for(a.s();!(r=a.n()).done;){var o=r.value;flattenRoute(t,e,o)}}catch(t){a.e(t)}finally{a.f()}}else flattenRoute(t,e)}),e}(t);!function(t){t.sort(function(t,e){var n,r;return t.score!==e.score?e.score-t.score:(n=t.routesMeta.map(function(t){return t.childrenIndex}),r=e.routesMeta.map(function(t){return t.childrenIndex}),n.length===r.length&&n.slice(0,-1).every(function(t,e){return t===r[e]})?n[n.length-1]-r[r.length-1]:0)})}(a);for(var o=null,i=0;null==o&&i and the router will parse it for you.'}function getPathContributingMatches(t){return t.filter(function(t,e){return 0===e||t.route.path&&t.route.path.length>0})}function resolveTo(t,e,n,r){void 0===r&&(r=!1),"string"==typeof t?p=parsePath(t):(invariant(!(p=_extends({},t)).pathname||!p.pathname.includes("?"),getInvalidPathError("?","pathname","search",p)),invariant(!p.pathname||!p.pathname.includes("#"),getInvalidPathError("#","pathname","hash",p)),invariant(!p.search||!p.search.includes("#"),getInvalidPathError("#","search","hash",p)));var a,o,i,u,c,s,l,h,f,p,d,v=""===t||""===p.pathname,m=v?"/":p.pathname;if(r||null==m)d=n;else{var g=e.length-1;if(m.startsWith("..")){for(var y=m.split("/");".."===y[0];)y.shift(),g-=1;p.pathname=y.join("/")}d=g>=0?e[g]:"/"}var P=(o=p,void 0===(i=d)&&(i="/"),c=(u="string"==typeof o?parsePath(o):o).pathname,l=void 0===(s=u.search)?"":s,f=void 0===(h=u.hash)?"":h,{pathname:c?c.startsWith("/")?c:(a=i.replace(/\/+$/,"").split("/"),c.split("/").forEach(function(t){".."===t?a.length>1&&a.pop():"."!==t&&a.push(t)}),a.length>1?a.join("/"):"/"):i,search:normalizeSearch(l),hash:normalizeHash(f)}),b=m&&"/"!==m&&m.endsWith("/"),w=(v||"."===m)&&n.endsWith("/");return!P.pathname.endsWith("/")&&(b||w)&&(P.pathname+="/"),P}var joinPaths=function(t){return t.join("/").replace(/\/\/+/g,"/")},normalizePathname=function(t){return t.replace(/\/+$/,"").replace(/^\/*/,"/")},normalizeSearch=function(t){return t&&"?"!==t?t.startsWith("?")?t:"?"+t:""},normalizeHash=function(t){return t&&"#"!==t?t.startsWith("#")?t:"#"+t:""},y=function(t){(0,s.Z)(AbortedDeferredError,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,h.Z)(AbortedDeferredError);if(e){var r=(0,h.Z)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)});function AbortedDeferredError(){return(0,c.Z)(this,AbortedDeferredError),n.apply(this,arguments)}return(0,u.Z)(AbortedDeferredError)}((0,f.Z)(Error));function isRouteErrorResponse(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}["get"].concat(["post","put","patch","delete"]),void 0!==window.document&&window.document.createElement,Symbol("deferred")}}]); //# sourceMappingURL=3b1baa31-cd7b2780daffd6bb.js.map