PageSourceSearch

https://www.with-magicdoor.com/_build/assets/routing-rySecgPp.js

js with-magicdoor.com collected 2026-10-06 02:26:19 UTC 8,383 bytes, 2 lines download raw bytes

1import{y as K,j as w,r as oe,C as H,D as W,h as X,n as O,k as ce,u as Y,B as ie,d as le,g as ue,x as fe}from"./solid-BpgdPW70.js";import{f as he}from"./web-B2OvdsLH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"882b069bf3d395a597ad23b0dfc21031695d97ee"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4347bacb-a50d-4ec5-90d8-06b5af641a35",e._sentryDebugIdIdentifier="sentry-dbid-4347bacb-a50d-4ec5-90d8-06b5af641a35")}catch{}})();function de(){let e=new Set;function t(r){return e.add(r),()=>e.delete(r)}let n=!1;function s(r,a){if(n)return!(n=!1);const o={to:r,options:a,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const i of e)i.listener({...o,from:i.location,retry:f=>{f&&(n=!0),i.navigate(r,{...a,resolve:!1})}});return!o.defaultPrevented}return{subscribe:t,confirm:s}}let q;function k(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),q=window.history.state._depth}k();function De(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function Fe(e,t){let n=!1;return()=>{const s=q;k();const r=s==null?null:q-s;if(n){n=!1;return}r&&t(r)?(n=!0,window.history.go(-r)):e()}}const pe=/^(?:[a-z0-9]+:)?\/\//i,me=/^\/+|(\/)\/+$/g,ge="http://sr";function E(e,t=!1){const n=e.replace(me,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function j(e,t,n){if(pe.test(t))return;const s=E(e),r=n&&E(n);let a="";return!r||t.startsWith("/")?a=s:r.toLowerCase().indexOf(s.toLowerCase())!==0?a=s+r:a=r,(a||"/")+E(t,!a)}function ye(e,t){if(e==null)throw new Error(t);return e}function we(e,t){return E(e).replace(/\/*(\*.*)?$/g,"")+E(t)}function G(e){const t={};return e.searchParams.forEach((n,s)=>{s in t?Array.isArray(t[s])?t[s].push(n):t[s]=[t[s],n]:t[s]=n}),t}function be(e,t,n){const[s,r]=e.split("/*",2),a=s.split("/").filter(Boolean),o=a.length;return i=>{const f=i.split("/").filter(Boolean),h=f.length-o;if(h<0||h>0&&r===void 0&&!t)return null;const u={path:o?"":"/",params:{}},m=p=>n===void 0?void 0:n[p];for(let p=0;p<o;p++){const d=a[p],y=d[0]===":",b=y?f[p]:f[p].toLowerCase(),x=y?d.slice(1):d.toLowerCase();if(y&&F(b,m(x)))u.params[x]=b;else if(y||!F(b,x))return null;u.path+=`/${b}`}if(r){const p=h?f.slice(-h).join("/"):"";if(F(p,m(r)))u.params[r]=p;else return null}return u}}function F(e,t){const n=s=>s===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function ve(e){const[t,n]=e.pattern.split("/*",2),s=t.split("/").filter(Boolean);return s.reduce((r,a)=>r+(a.startsWith(":")?2:3),s.length-(n===void 0?0:1))}function J(e){const t=new Map,n=oe();return new Proxy({},{get(s,r){return t.has(r)||K(n,()=>t.set(r,w(()=>e()[r]))),t.get(r)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(s,r){return r in e()}})}function Pe(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(([r,a])=>{a==null||a===""||a instanceof Array&&!a.length?n.delete(r):a instanceof Array?(n.delete(r),a.forEach(o=>{n.append(r,String(o))})):n.set(r,String(a))});const s=n.toString();return s?`?${s}`:""}function Q(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),s=e.slice(t.index+t[0].length);const r=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(s);)r.push(n+=t[1]),s=s.slice(t[0].length);return Q(s).reduce((a,o)=>[...a,...r.map(i=>i+o)],[])}const Re=100,xe=X(),V=X(),A=()=>ye(W(xe),"<A> and 'use' router primitives can be only used inside a Route."),Se=()=>W(V)||A().base,$e=e=>{const t=Se();return w(()=>t.resolvePath(e()))},qe=e=>{const t=A();return w(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},Ee=()=>A().navigatorFactory(),Ae=()=>A().location,We=()=>A().params,Me=()=>{const e=Ae(),t=Ee(),n=(s,r)=>{const a=H(()=>Pe(e.search,s)+e.hash);t(a,{scroll:!1,resolve:!1,...r})};return[e.query,n]};function Ce(e,t=""){const{component:n,preload:s,load:r,children:a,info:o}=e,i=!a||Array.isArray(a)&&!a.length,f={key:e,component:n,preload:s||r,info:o};return Z(e.path).reduce((h,u)=>{for(const m of Q(u)){const p=we(t,m);let d=i?p:p.split("/*",1)[0];d=d.split("/").map(y=>y.startsWith(":")||y.startsWith("*")?y:encodeURIComponent(y)).join("/"),h.push({...f,originalPath:u,pattern:d,matcher:be(d,!i,e.matchFilters)})}return h},[])}function _e(e,t=0){return{routes:e,score:ve(e[e.length-1])*1e4-t,matcher(n){const s=[];for(let r=e.length-1;r>=0;r--){const a=e[r],o=a.matcher(n);if(!o)return null;s.unshift({...o,route:a})}return s}}}function Z(e){return Array.isArray(e)?e:[e]}function Le(e,t="",n=[],s=[]){const r=Z(e);for(let a=0,o=r.length;a<o;a++){const i=r[a];if(i&&typeof i=="object"){i.hasOwnProperty("path")||(i.path="");const f=Ce(i,t);for(const h of f){n.push(h);const u=Array.isArray(i.children)&&i.children.length===0;if(i.children&&!u)Le(i.children,h.pattern,n,s);else{const m=_e([...n],s.length);s.push(m)}n.pop()}}}return n.length?s:s.sort((a,o)=>o.score-a.score)}function $(e,t){for(let n=0,s=e.length;n<s;n++){const r=e[n].matcher(t);if(r)return r}return[]}function Ie(e,t,n){const s=new URL(ge),r=w(u=>{const m=e();try{return new URL(m,s)}catch{return console.error(`Invalid path ${m}`),u}},s,{equals:(u,m)=>u.href===m.href}),a=w(()=>r().pathname),o=w(()=>r().search,!0),i=w(()=>r().hash),f=()=>"",h=Y(o,()=>G(r()));return{get pathname(){return a()},get search(){return o()},get hash(){return i()},get state(){return t()},get key(){return f()},query:n?n(h):J(h)}}let v;function Ue(){return v}function Te(e){}function Ne(e,t,n,s={}
1){const{signal:[r,a],utils:o={}}=e,i=o.parsePath||(c=>c),f=o.renderPath||(c=>c),h=o.beforeLeave||de(),u=j("",s.base||"");if(u===void 0)throw new Error(`${u} is not a valid base path`);u&&!r().value&&a({value:u,replace:!0,scroll:!1});const[m,p]=O(!1);let d;const y=(c,l)=>{l.value===b()&&l.state===C()||(d===void 0&&p(!0),v=c,d=l,ie(()=>{d===l&&(x(d.value),ee(d.state),fe(),M[1](g=>g.filter(P=>P.pending)))}).finally(()=>{d===l&&le(()=>{v=void 0,c==="navigate"&&se(d),p(!1),d=void 0})}))},[b,x]=O(r().value),[C,ee]=O(r().state),_=Ie(b,C,o.queryWrapper),L=[],M=O([]),U=w(()=>typeof s.transformUrl=="function"?$(t(),s.transformUrl(_.pathname)):$(t(),_.pathname)),T=()=>{const c=U(),l={};for(let g=0;g<c.length;g++)Object.assign(l,c[g].params);return l},te=o.paramsWrapper?o.paramsWrapper(T,t):J(T),N={pattern:u,path:()=>u,outlet:()=>null,resolvePath(c){return j(u,c)}};return ce(Y(r,c=>y("native",c),{defer:!0})),{base:N,location:_,params:te,isRouting:m,renderPath:f,parsePath:i,navigatorFactory:re,matches:U,beforeLeave:h,preloadRoute:ae,singleFlight:s.singleFlight===void 0?!0:s.singleFlight,submissions:M};function ne(c,l,g){H(()=>{if(typeof l=="number"){l&&(o.go?o.go(l):console.warn("Router integration does not support relative routing"));return}const P=!l||l[0]==="?",{replace:B,resolve:R,scroll:D,state:S}={replace:!1,resolve:!P,scroll:!0,...g},I=R?c.resolvePath(l):j(P&&_.pathname||"",l);if(I===void 0)throw new Error(`Path '${l}' is not a routable path`);if(L.length>=Re)throw new Error("Too many redirects");const z=b();(I!==z||S!==C())&&(he||h.confirm(I,g)&&(L.push({value:z,replace:B,scroll:D,state:C()}),y("navigate",{value:I,state:S})))})}function re(c){return c=c||W(V)||N,(l,g)=>ne(c,l,g)}function se(c){const l=L[0];l&&(a({...c,replace:l.replace,scroll:l.scroll}),L.length=0)}function ae(c,l){const g=$(t(),c.pathname),P=v;v="preload";for(let B in g){const{route:R,params:D}=g[B];R.component&&R.component.preload&&R.component.preload();const{preload:S}=R;l&&S&&K(n(),()=>S({params:D,location:{pathname:c.pathname,search:c.search,hash:c.hash,query:G(c),state:null,key:""},intent:"preload"}))}v=P}}function ze(e,t,n,s){const{base:r,location:a,params:o}=e,{pattern:i,component:f,preload:h}=s().route,u=w(()=>s().path);f&&f.preload&&f.preload();const m=h?h({params:o,location:a,intent:v||"initial"}):void 0;return{parent:t,pattern:i,path:u,outlet:()=>f?ue(f,{params:o,location:a,data:m,get children(){return n()}}):n(),resolvePath(d){return j(r.path(),d,u())}}}export{V as R,xe as a,Le as b,de as c,ze as d,Ne as e,Fe as f,Ue as g,Te as h,Ae as i,Ee as j,De as k,We as l,ge as m,E as n,$e as o,Me as p,k as s,qe as u};
2//# sourceMappingURL=routing-rySecgPp.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.