@techdocs/cli 1.10.4-next.1 → 1.10.4-next.2

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.
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["183"],{21613(e,t,n){var a,r,l,i;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{AO:()=>g,Gh:()=>R,HS:()=>L,Oi:()=>u,Rr:()=>m,o1:()=>x,pX:()=>A,pb:()=>$,rc:()=>a,sC:()=>h,tH:()=>k,tW:()=>w,ue:()=>v,yD:()=>S,zR:()=>c}),(l=a||(a={})).Pop="POP",l.Push="PUSH",l.Replace="REPLACE";let s="popstate";function h(e){let t;void 0===e&&(e={});let{initialEntries:n=["/"],initialIndex:r,v5Compat:l=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=h(null==r?t.length-1:r),o=a.Pop,s=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,n,a){void 0===n&&(n=null);let r=f(t?t[i].pathname:"/",e,n,a);return p("/"===r.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),r}function u(e){return"string"==typeof e?e:g(e)}return{get index(){return i},get action(){return o},get location(){return t[i]},createHref:u,createURL:e=>new URL(u(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=a.Push;let r=c(e,n);i+=1,t.splice(i,t.length,r),l&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=a.Replace;let r=c(e,n);t[i]=r,l&&s&&s({action:o,location:r,delta:0})},go(e){o=a.Pop;let n=h(i+e),r=t[n];i=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,h=l.history,c=a.Pop,p=null,m=v();function v(){return(h.state||{idx:null}).idx}function y(){c=a.Pop;let e=v(),t=null==e?null:e-m;m=e,p&&p({action:c,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:g(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==m&&(m=0,h.replaceState(o({},h.state,{idx:m}),""));let w={get action(){return c},get location(){return e(l,h)},listen(e){if(p)throw Error("A history only accepts one active listener");return l.addEventListener(s,y),p=e,()=>{l.removeEventListener(s,y),p=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){c=a.Push;let n=f(w.location,e,t);let r=d(n,m=v()+1),o=w.createHref(n);try{h.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}i&&p&&p({action:c,location:w.location,delta:1})},replace:function(e,t){c=a.Replace;let n=f(w.location,e,t);let r=d(n,m=v()),l=w.createHref(n);h.replaceState(r,"",l),i&&p&&p({action:c,location:w.location,delta:0})},go:e=>h.go(e)};return w}(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return f("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:g(t)},null,e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,a){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function g(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function v(e,t,n){return void 0===n&&(n="/"),function(e,t,n,a){let r=$(("string"==typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let l=function e(t,n,a,r){void 0===n&&(n=[]),void 0===a&&(a=[]),void 0===r&&(r="");let l=(t,l,i)=>{var o,s;let h,c,p={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:l,route:t};p.relativePath.startsWith("/")&&(u(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),p.relativePath=p.relativePath.slice(r.length));let d=L([r,p.relativePath]),f=a.concat(p);t.children&&t.children.length>0&&(u(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+d+'".'),e(t.children,n,f,d)),(null!=t.path||t.index)&&n.push({path:d,score:(o=d,s=t.index,c=(h=o.split("/")).length,h.some(b)&&(c+=-2),s&&(c+=2),h.filter(e=>!b(e)).reduce((e,t)=>e+(y.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[a,...r]=n,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===r.length)return l?[i,""]:[i];let o=e(r.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),l&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))l(e,t,n);else l(e,t)}),n}(e);l.sort((e,t)=>{var n,a;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),n.length===a.length&&n.slice(0,-1).every((e,t)=>e===a[t])?n[n.length-1]-a[a.length-1]:0)});let i=null;for(let e=0;null==i&&e<l.length;++e){let t=function(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 is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r);i=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},l="/",i=[];for(let e=0;e<a.length;++e){let o=a[e],s=e===a.length-1,h="/"===l?t:t.slice(l.length)||"/",c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:s},h),u=o.route;if(!c&&s&&n&&!a[a.length-1].route.index&&(c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},h)),!c)return null;Object.assign(r,c.params),i.push({params:r,pathname:L([l,c.pathname]),pathnameBase:O(L([l,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(l=L([l,c.pathnameBase]))}return i}(l[e],t,a)}return i}(e,t,n,!1)}(i=r||(r={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=/^:[\w-]+$/,b=e=>"*"===e;function w(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(p(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));let a=n.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e);return a+n.split(/\/+/).map((e,n,a)=>{if(n===a.length-1&&"*"===e)return r(t["*"]);let l=e.match(/^:([\w-]+)(\??)$/);if(l){let[,e,n]=l,a=t[e];return u("?"===n||null!=a,'Missing ":'+e+'" param'),r(a)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function P(e,t){var n,a,r;let l,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[o,s]=(n=e.path,a=e.caseSensitive,r=e.end,void 0===a&&(a=!1),void 0===r&&(r=!0),p("*"===n||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),l=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(l.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(l.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),l]),h=t.match(o);if(!h)return null;let c=h[0],u=c.replace(/(.)\/+$/,"$1"),d=h.slice(1);return{params:s.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=d[n]||"";u=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let l=d[n];return r&&!l?e[a]=void 0:e[a]=(l||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:u,pattern:e}}function $(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function x(e,t){var n;let a;void 0===t&&(t="/");let{pathname:r,search:l="",hash:i=""}="string"==typeof e?m(e):e;return{pathname:r?r.startsWith("/")?r:(n=r,a=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?a.length>1&&a.pop():"."!==e&&a.push(e)}),a.length>1?a.join("/"):"/"):t,search:E(l),hash:j(i)}}function W(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"]. 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 S(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function R(e,t,n,a){let r,l;void 0===a&&(a=!1),"string"==typeof e?r=m(e):(u(!(r=o({},e)).pathname||!r.pathname.includes("?"),W("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),W("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),W("#","search","hash",r)));let i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)l=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}l=e>=0?t[e]:"/"}let h=x(r,l),c=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return!h.pathname.endsWith("/")&&(c||p)&&(h.pathname+="/"),h}let L=e=>e.join("/").replace(/\/\/+/g,"/"),O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class k extends Error{}function A(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Symbol("deferred")}}]);
2
- //# sourceMappingURL=module-remix-run.f9e8eadd.js.map
1
+ "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["183"],{21613(e,t,n){var a,r,l,i;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{AO:()=>g,Gh:()=>O,HS:()=>E,Oi:()=>u,Rr:()=>m,o1:()=>W,pX:()=>U,pb:()=>$,rc:()=>a,sC:()=>h,tH:()=>C,tW:()=>w,ue:()=>v,yD:()=>L,zR:()=>c}),(l=a||(a={})).Pop="POP",l.Push="PUSH",l.Replace="REPLACE";let s="popstate";function h(e){let t;void 0===e&&(e={});let{initialEntries:n=["/"],initialIndex:r,v5Compat:l=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=h(null==r?t.length-1:r),o=a.Pop,s=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,n,a){void 0===n&&(n=null);let r=f(t?t[i].pathname:"/",e,n,a);return p("/"===r.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),r}function u(e){return"string"==typeof e?e:g(e)}return{get index(){return i},get action(){return o},get location(){return t[i]},createHref:u,createURL:e=>new URL(u(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=a.Push;let r=c(e,n);i+=1,t.splice(i,t.length,r),l&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=a.Replace;let r=c(e,n);t[i]=r,l&&s&&s({action:o,location:r,delta:0})},go(e){o=a.Pop;let n=h(i+e),r=t[n];i=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,h=l.history,c=a.Pop,p=null,m=v();function v(){return(h.state||{idx:null}).idx}function y(){c=a.Pop;let e=v(),t=null==e?null:e-m;m=e,p&&p({action:c,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:g(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==m&&(m=0,h.replaceState(o({},h.state,{idx:m}),""));let w={get action(){return c},get location(){return e(l,h)},listen(e){if(p)throw Error("A history only accepts one active listener");return l.addEventListener(s,y),p=e,()=>{l.removeEventListener(s,y),p=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){c=a.Push;let n=f(w.location,e,t);let r=d(n,m=v()+1),o=w.createHref(n);try{h.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}i&&p&&p({action:c,location:w.location,delta:1})},replace:function(e,t){c=a.Replace;let n=f(w.location,e,t);let r=d(n,m=v()),l=w.createHref(n);h.replaceState(r,"",l),i&&p&&p({action:c,location:w.location,delta:0})},go:e=>h.go(e)};return w}(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return f("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:g(t)},null,e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,a){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function g(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function v(e,t,n){return void 0===n&&(n="/"),function(e,t,n,a){let r=$(("string"==typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let l=function e(t,n,a,r){void 0===n&&(n=[]),void 0===a&&(a=[]),void 0===r&&(r="");let l=(t,l,i)=>{var o,s;let h,c,p={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:l,route:t};p.relativePath.startsWith("/")&&(u(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),p.relativePath=p.relativePath.slice(r.length));let d=E([r,p.relativePath]),f=a.concat(p);t.children&&t.children.length>0&&(u(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+d+'".'),e(t.children,n,f,d)),(null!=t.path||t.index)&&n.push({path:d,score:(o=d,s=t.index,c=(h=o.split("/")).length,h.some(b)&&(c+=-2),s&&(c+=2),h.filter(e=>!b(e)).reduce((e,t)=>e+(y.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[a,...r]=n,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===r.length)return l?[i,""]:[i];let o=e(r.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),l&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))l(e,t,n);else l(e,t)}),n}(e);l.sort((e,t)=>{var n,a;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),n.length===a.length&&n.slice(0,-1).every((e,t)=>e===a[t])?n[n.length-1]-a[a.length-1]:0)});let i=null;for(let e=0;null==i&&e<l.length;++e){let t=function(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 is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r);i=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},l="/",i=[];for(let e=0;e<a.length;++e){let o=a[e],s=e===a.length-1,h="/"===l?t:t.slice(l.length)||"/",c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:s},h),u=o.route;if(!c&&s&&n&&!a[a.length-1].route.index&&(c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},h)),!c)return null;Object.assign(r,c.params),i.push({params:r,pathname:E([l,c.pathname]),pathnameBase:j(E([l,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(l=E([l,c.pathnameBase]))}return i}(l[e],t,a)}return i}(e,t,n,!1)}(i=r||(r={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=/^:[\w-]+$/,b=e=>"*"===e;function w(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(p(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));let a=n.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e);return a+n.split(/\/+/).map((e,n,a)=>{if(n===a.length-1&&"*"===e)return r(t["*"]);let l=e.match(/^:([\w-]+)(\??)$/);if(l){let[,e,n]=l,a=t[e];return u("?"===n||null!=a,'Missing ":'+e+'" param'),r(a)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function P(e,t){var n,a,r;let l,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[o,s]=(n=e.path,a=e.caseSensitive,r=e.end,void 0===a&&(a=!1),void 0===r&&(r=!0),p("*"===n||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),l=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(l.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(l.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),l]),h=t.match(o);if(!h)return null;let c=h[0],u=c.replace(/(.)\/+$/,"$1"),d=h.slice(1);return{params:s.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=d[n]||"";u=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let l=d[n];return r&&!l?e[a]=void 0:e[a]=(l||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:u,pattern:e}}function $(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}let x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function W(e,t){let n;void 0===t&&(t="/");let{pathname:a,search:r="",hash:l=""}="string"==typeof e?m(e):e;if(a){let e;(e=a,x.test(e))?n=a:(a.includes("//")&&p(!1,"Pathnames cannot have embedded double slashes - normalizing "+a+" -> "+(a=a.replace(/\/\/+/g,"/"))),n=a.startsWith("/")?S(a.substring(1),"/"):S(a,t))}else n=t;return{pathname:n,search:k(r),hash:A(l)}}function S(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 R(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"]. 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 L(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function O(e,t,n,a){let r,l;void 0===a&&(a=!1),"string"==typeof e?r=m(e):(u(!(r=o({},e)).pathname||!r.pathname.includes("?"),R("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),R("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),R("#","search","hash",r)));let i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)l=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}l=e>=0?t[e]:"/"}let h=W(r,l),c=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return!h.pathname.endsWith("/")&&(c||p)&&(h.pathname+="/"),h}let E=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class C extends Error{}function U(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Symbol("deferred")}}]);
2
+ //# sourceMappingURL=module-remix-run.8b5ff4b7.js.map