1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="58ad7302-3a77-40e4-a895-bbebd7c4c828",e._sentryDebugIdIdentifier="sentry-dbid-58ad7302-3a77-40e4-a895-bbebd7c4c828")}catch(e){}}();import"./_sentry-release-injection-file-SYOkQ1Km.js";import{a as e}from"./isArrayLike-Ch5XQcjF.js";var t,a=Object.create,n=function(){function t(){}return function(n){if(!e(n))return{};if(a)return a(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));var s,o="popstate";function i(e){return void 0===e&&(e={}),function(e,a,n,s){void 0===s&&(s={});let{window:i=document.defaultView,v5Compat:c=!1}=s,d=i.history,f=t.Pop,m=null,g=w();null==g&&(g=0,d.replaceState(r({},d.state,{idx:g}),""));function w(){return(d.state||{idx:null}).idx}function b(){f=t.Pop;let e=w(),a=null==e?null:e-g;g=e,m&&m({action:f,location:I.location,delta:a})}function v(e,a){f=t.Push;let r=u(I.location,e,a);n&&n(r,e),g=w()+1;let s=h(r,g),o=I.createHref(r);try{d.pushState(s,"",o)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;i.location.assign(o)}c&&m&&m({action:f,location:I.location,delta:1})}function y(e,a){f=t.Replace;let r=u(I.location,e,a);n&&n(r,e),g=w();let s=h(r,g),o=I.createHref(r);d.replaceState(s,"",o),c&&m&&m({action:f,location:I.location,delta:0})}function S(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof e?e:p(e);return a=a.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,t)}let I={get action(){return f},get location(){return e(i,d)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(o,b),m=e,()=>{i.removeEventListener(o,b),m=null}},createHref:e=>a(i,e),createURL:S,encodeLocation(e){let t=S(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:v,replace:y,go:e=>d.go(e)};return I}((function(e,t){let{pathname:a,search:n,hash:r}=e.location;return u("",{pathname:a,search:n,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:p(t)}),null,e)}function l(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(a){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,a,n){return void 0===a&&(a=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:a,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function p(e){let{pathname:t="/",search:a="",hash:n=""}=e;return a&&"?"!==a&&(t+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function d(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function f(e,t,a){void 0===a&&(a="/");let n=L(("string"==typeof t?d(t):t).pathname||"/",a);if(null==n)return null;let r=m(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,a)=>e===t[a]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let s=null;for(let o=0;null==s&&o<r.length;++o){let e=W(n);s=R(r[o],e)}return s}function m(e,t,a,n){void 0===t&&(t=[]),void 0===a&&(a=[]),void 0===n&&(n="");let r=(e,r,s)=>{let o={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&(l(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path "'+n+'" is not val
1id. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(n.length));let i=A([n,o.relativePath]),c=a.concat(o);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),m(e.children,t,c,i)),(null!=e.path||e.index)&&t.push({path:i,score:$(i,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var a;if(""!==e.path&&null!=(a=e.path)&&a.includes("?"))for(let n of g(e.path))r(e,t,n);else r(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[a,...n]=t,r=a.endsWith("?"),s=a.replace(/\?$/,"");if(0===n.length)return r?[s,""]:[s];let o=g(n.join("/")),i=[];return i.push(...o.map((e=>""===e?s:[s,e].join("/")))),r&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(s||(s={}));var w=/^:[\w-]+$/,b=3,v=2,y=1,S=10,I=-2,P=e=>"*"===e;function $(e,t){let a=e.split("/"),n=a.length;return a.some(P)&&(n+=I),t&&(n+=v),a.filter((e=>!P(e))).reduce(((e,t)=>e+(w.test(t)?b:""===t?y:S)),n)}function R(e,t){let{routesMeta:a}=e,n={},r="/",s=[];for(let o=0;o<a.length;++o){let e=a[o],i=o===a.length-1,l="/"===r?t:t.slice(r.length)||"/",c=x({path:e.relativePath,caseSensitive:e.caseSensitive,end:i},l);if(!c)return null;
1Object.assign(n,c.params);let h=e.route;s.push({params:n,pathname:A([r,c.pathname]),pathnameBase:C(A([r,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(r=A([r,c.pathnameBase]))}return s}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[a,n]=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=!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 n=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,a)=>(n.push({paramName:t,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");return[new RegExp(r,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),r=t.match(a);if(!r)return null;let s=r[0],o=s.replace(/(.)\/+$/,"$1"),i=r.slice(1);return{params:n.reduce(((e,t,a)=>{let{paramName:n,isOptional:r}=t;if("*"===n){let e=i[a]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[a];return e[n]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:o,pattern:e}}function W(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 L(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,n=e.charAt(a);return n&&"/"!==n?null:e.slice(a)||"/"}function j(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?a.length>1&&a.pop():"."!==e&&a.push(e)})),a.length>1?a.join("/"):"/"}function E(e,t,a,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e,t){let a=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?a.map(((t,a)=>a===e.length-1?t.pathname:t.pathnameBase)):a.map((e=>e.pathnameBase))}function k(e,t,a,n){let s;void 0===n&&(n=!1),"string"==typeof e?s=d(e):(s=r({},e),l(!s.pathname||!s.pathname.includes("?"),E("?","pathname","search",s)),l(!s.pathname||!s.pathname.includes("#"),E("#","pathname","hash",s)),l(!s.search||!s.search.includes("#"),E("#","search","hash",s)));let o,i=""===e||""===s.pathname,c=i?"/":s.pathname;if(null==c)o=a;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}o=e>=0?t[e]:"/"}let h=function(e,t){void 0===t&&(t="/");let{pathname:a,search:n="",hash:r=""}="string"==typeof e?d(e):e;return{pathname:a?a.startsWith("/")?a:j(a,t):t,search:U(n),hash:M(r)}}(s,o),u=c&&"/"!==c&&c.endsWith("/"),p=(i||"."===c)&&a.endsWith("/");return h.pathname.endsWith("/")||!u&&!p||(h.pathname+="/"),h}var A=e=>e.join("/").replace(/\/\/+/g,"/"),C=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",B=class extends Error{};function D(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var T=["post","put","patch","delete"],N=(new Set(T),["get",...T]),_=(new Set(N),{mainRoutes:{basename:"/",showcaseRegistration:"/showcase-registration/:showcaseSlug",accountDetails:"/account/details",changePassword:"/account/security",emailPreferences:"/account/email-preferences",searchPreferences:"/account/search-preferences",viewSubscription:"/account/subscription",logout:"/account/logout",login:"/account/login",register:"/account/create",editSubscription:"/account/subscription/edit",updateCard:"/account/update-card",contentPage:"/content/:contentPageSlug",clipboard:"/clipboard",wantsManager:"/wants",matchesNew:"/matches/new",librarySearch:"/library-search",mailingList:"/mailing-list",howLibribotWorks:"/content/how-libribot-works"},showcaseRoutes:{basename:"/showcases/:showcaseSlug",home:"/",checkout:"/items/:itemId/checkout",category:"/categories/:categoryId/:categorySlug",categories:"/categories",item:"/items/:itemIdSlug",seller:"/exhibitors/:sellerId",sellers:"/exhibitors",search:"/search",searchResults:"/search-results",contentPage:"/content/:contentPageSlug",reservedItems:"/dashboard/reserved-items",orders:"/dashboard/orders",browse:"/browse",clipboard:"/dashboard/clipboard"},dashboardRoutes:{showcaseProfile:"/showcase-exhibitor",showcaseItems:"/showcases/:showcaseId/items",showcaseItem:"/showcases/:showcaseId/items/:showcaseItemId",showcaseOrders:"/showcases/:showcaseId/orders",showcaseReservedItems:"/showcases/:showcaseId/reserved-items"},adminRoutes:{}}),H=(e,{params:t={},queryString:a=null,hashFragment:n,routeGroupKey:r="showcaseRoutes"}={})=>{const s=_[r];if(!s[e])throw new Error(`Invalid route name: ${e}`);const o=a?`?${new URLSearchParams(a).toString()}`:"",i=n?`#${encodeURIComponent(n)}`:"";let h=t;if("item"===e&&"itemId"in t){const{itemId:e,itemSlug:a,...n}=t;h={...n,itemIdSlug:a?`${e}-${a}`:String(e)}}return function(e,t){void 0===t&&(t={});let a=e;a.endsWith("*")&&"*"!==a&&!a.endsWith("/*")&&(c(!1,'Route path "'+a+'" will be treated as if it were "'+a.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+a.replace(/\*$/,"/*")+'".'),a=a.replace(/\*$/,"/*"));const n=a.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e);return n+a.split(/\/+/).map(((e,a,n)=>{if(a===n.length-1&&"*"===e)return r(t["*"]);const s=e.match(/^:([\w-]+)(\??)$/);if(s){const[,e,a]=s;let n=t[e];return l("?"===a||null!=n,'Missing ":'+e+'" param'),r(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}(s[e],h)+o+i};
1export{i as a,l as c,x as d,f,n as g,L as h,t as i,D as l,k as m,H as n,p as o,d as p,B as r,O as s,_ as t,A as u}; 2//# sourceMappingURL=appRoutes-DIP3_kWP.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.