import{$ as y,l as W,n as T,p as R,f as q}from"./solid.C2pQeiPA.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="57e5d800-0a20-494a-8ffc-178d93300ccf",n._sentryDebugIdIdentifier="sentry-dbid-57e5d800-0a20-494a-8ffc-178d93300ccf")}catch{}})();const N=Symbol("store-raw"),j=Symbol("store-node"),w=Symbol("store-has"),F=Symbol("store-self");function z(n){let e=n[y];if(!e&&(Object.defineProperty(n,y,{value:e=new Proxy(n,V)}),!Array.isArray(n))){const o=Object.keys(n),l=Object.getOwnPropertyDescriptors(n);for(let i=0,f=o.length;in[y][e]),o}function L(n){R()&&a(I(n,j),F)()}function H(n){return L(n),Reflect.ownKeys(n)}const V={get(n,e,o){if(e===N)return n;if(e===y)return o;if(e===T)return L(n),o;const l=I(n,j),i=l[e];let f=i?i():n[e];if(e===j||e===w||e==="__proto__")return f;if(!i){const r=Object.getOwnPropertyDescriptor(n,e);R()&&(typeof f!="function"||n.hasOwnProperty(e))&&!(r&&r.get)&&(f=a(l,e,f)())}return O(f)?z(f):f},has(n,e){return e===N||e===y||e===T||e===j||e===w||e==="__proto__"?!0:(R()&&a(I(n,w),e)(),e in n)},set(){return!0},deleteProperty(){return!0},ownKeys:H,getOwnPropertyDescriptor:C};function h(n,e,o,l=!1){if(!l&&n[e]===o)return;const i=n[e],f=n.length;o===void 0?(delete n[e],n[w]&&n[w][e]&&i!==void 0&&n[w][e].$()):(n[e]=o,n[w]&&n[w][e]&&i===void 0&&n[w][e].$());let r=I(n,j),t;if((t=a(r,e,i))&&t.$(()=>o),Array.isArray(n)&&n.length!==f){for(let c=n.length;c1){l=e.shift();const r=typeof l,t=Array.isArray(n);if(Array.isArray(l)){for(let c=0;c1){_(n[l],e,[l].concat(o));return}i=n[l],o=[l].concat(o)}let f=e[0];typeof f=="function"&&(f=f(i,o),f===i)||l===void 0&&f==null||(f=S(f),l===void 0||O(i)&&O(f)&&!Array.isArray(f)?M(i,f):h(n,l,f))}function B(...[n,e]){const o=S(n||{}),l=Array.isArray(o),i=z(o);function f(...r){W(()=>{l&&r.length===1?X(o,r[0]):_(o,r)})}return[i,f]}const E=Symbol("store-root");function $(n,e,o,l,i){const f=e[o];if(n===f)return;if(o!==E&&(!O(n)||!O(f)||i&&n[i]!==f[i])){h(e,o,n);return}if(Array.isArray(n)){if(n.length&&f.length&&(!l||i&&n[0]&&n[0][i]!=null)){let c,s,u,d,b,A,K,g;for(u=0,d=Math.min(f.length,n.length);u=u&&b>=u&&(f[d]===n[b]||i&&f[u]&&n[u]&&f[d][i]===n[b][i]);d--,b--)P[b]=f[d];if(u>b||u>d){for(s=u;s<=b;s++)h(f,s,n[s]);for(;sn.length&&h(f,"length",n.length);return}for(K=new Array(b+1),s=b;s>=u;s--)A=n[s],g=i&&A?A[i]:A,c=D.get(g),K[s]=c===void 0?-1:c,D.set(g,s);for(c=u;c<=d;c++)A=f[c],g=i&&A?A[i]:A,s=D.get(g),s!==void 0&&s!==-1&&(P[s]=f[c],s=K[s],D.set(g,s));for(s=u;sn.length&&h(f,"length",n.length);return}const r=Object.keys(n);for(let c=0,s=r.length;c{if(!O(f)||!O(i))return i;const r=$(i,{[E]:f},E,o,l);return r===void 0?f:r}}export{B as c,G as r,S as u}; //# sourceMappingURL=store.BMKvgBPi.js.map