import{h as x,c2 as M,c3 as V,c4 as m,M as v,G as P,ak as b,aY as I}from"./index-B4gewkxT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="398331dc-538f-4c56-91ce-9aad317ad8f8",e._sentryDebugIdIdentifier="sentry-dbid-398331dc-538f-4c56-91ce-9aad317ad8f8")}catch{}})();function q(e){return M()?(V(e),!0):!1}function f(e){return typeof e=="function"?e():x(e)}let c;function T(e,{mode:r="replace",route:t=b(),router:p=I()}={}){c=t.hash,q(()=>{c=void 0});let o;const i=m((l,s)=>(o=s,{get(){return l(),c||f(e)},set(u){u!==c&&(c=u===null?void 0:u,s(),v(()=>{const{params:d,query:a}=t;p[f(r)]({params:d,query:a,hash:c})}))}}));return P(()=>t.hash,()=>{c=t.hash,o()},{flush:"sync"}),i}var N=Object.defineProperty,E=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,S=(e,r,t)=>r in e?N(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$=(e,r)=>{for(var t in r||(r={}))W.call(r,t)&&S(e,t,r[t]);if(E)for(var t of E(r))k.call(r,t)&&S(e,t,r[t]);return e};const w=new WeakMap;function Y(e,r,t={}){const{mode:p="replace",route:o=b(),router:i=I(),transform:l=a=>a}=t;w.has(o)||w.set(o,new Map);const s=w.get(o);q(()=>{s.delete(e)}),s.set(e,o.params[e]);let u;const d=m((a,y)=>(u=y,{get(){a();const n=s.get(e);return l(n!==void 0?n:f(r))},set(n){s.get(e)!==n&&(s.set(e,n),y(),v(()=>{const{params:_,query:h,hash:g}=o;i[f(p)]({params:$($({},_),Object.fromEntries(s.entries())),query:h,hash:g})}))}}));return P(()=>o.params[e],a=>{s.set(e,a),u()},{flush:"sync"}),d}var C=Object.defineProperty,j=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,D=(e,r,t)=>r in e?C(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,R=(e,r)=>{for(var t in r||(r={}))G.call(r,t)&&D(e,t,r[t]);if(j)for(var t of j(r))H.call(r,t)&&D(e,t,r[t]);return e};const O=new WeakMap;function z(e,r,t={}){const{mode:p="replace",route:o=b(),router:i=I(),transform:l=a=>a}=t;O.has(o)||O.set(o,new Map);const s=O.get(o);q(()=>{s.delete(e)}),s.set(e,o.query[e]);let u;const d=m((a,y)=>(u=y,{get(){a();const n=s.get(e);return l(n!==void 0?n:f(r))},set(n){s.get(e)!==n&&(s.set(e,n),y(),v(()=>{const{params:_,query:h,hash:g}=o;i[f(p)]({params:_,query:R(R({},h),Object.fromEntries(s.entries())),hash:g})}))}}));return P(()=>o.query[e],a=>{s.set(e,a),u()},{flush:"sync"}),d}export{z as a,T as b,Y as u};
//# sourceMappingURL=index-BBtxBH0G.js.map