2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{a5 as N,a6 as ee,a7 as re,a8 as m,a9 as ne,a1 as g,aa as D,ab as o,C as P,u as C,ac as ae,ad as ie,P as te,h as T,k as V,b as J,Z as Q,ae as se,af as fe,d as ue,s as M,ag as Y,r as q,ah as F,e as W,M as le,ai as X,G as U,aj as ce,ak as de,al as k,am as ve,z as j,an as _e,ao as oe,K as G,ap as be,R as he,aq as Pe,ar as ge,as as ye,E as Z,a0 as me,at as we,au as z}from"./DQ4wegPz.js";import{s as Re}from"./DO8iMfni.js";function I(e,r=null,d){if(typeof e!="object"||e===null||N in e)return e;const u=ie(e);if(u!==ee&&u!==re)return e;var t=new Map,l=te(e),b=m(0);l&&t.set("length",m(e.length));var y;return new Proxy(e,{defineProperty(f,n,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ne();var s=t.get(n);return s===void 0?(s=m(a.value),t.set(n,s)):g(s,I(a.value,y)),!0},deleteProperty(f,n){var a=t.get(n);if(a===void 0)n in f&&t.set(n,m(o));else{if(l&&typeof n=="string"){var s=t.get("length"),i=Number(n);Number.isInteger(i)&&i<s.v&&g(s,i)}g(a,o),H(b)}return!0},get(f,n,a){var _;if(n===N)return e;var s=t.get(n),i=n in f;if(s===void 0&&(!i||(_=D(f,n))!=null&&_.writable)&&(s=m(I(i?f[n]:o,y)),t.set(n,s)),s!==void 0){var c=P(s);return c===o?void 0:c}return Reflect.get(f,n,a)},getOwnPropertyDescriptor(f,n){var a=Reflect.getOwnPropertyDescriptor(f,n);if(a&&"value"in a){var s=t.get(n);s&&(a.value=P(s))}else if(a===void 0){var i=t.get(n),c=i==null?void 0:i.v;if(i!==void 0&&c!==o)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(f,n){var c;if(n===N)return!0;var a=t.get(n),s=a!==void 0&&a.v!==o||Reflect.has(f,n);if(a!==void 0||C!==null&&(!s||(c=D(f,n))!=null&&c.writable)){a===void 0&&(a=m(s?I(f[n],y):o),t.set(n,a));var i=P(a);if(i===o)return!1}return s},set(f,n,a,s){var R;var i=t.get(n),c=n in f;if(l&&n==="length")for(var _=a;_<i.v;_+=1){var w=t.get(_+"");w!==void 0?g(w,o):_ in f&&(w=m(o),t.set(_+"",w))}i===void 0?(!c||(R=D(f,n))!=null&&R.writable)&&(i=m(void 0),g(i,I(a,y)),t.set(n,i)):(c=i.v!==o,g(i,I(a,y)));var h=Reflect.getOwnPropertyDescriptor(f,n);if(h!=null&&h.set&&h.set.call(s,a),!c){if(l&&typeof n=="string"){var S=t.get("length"),O=Number(n);Number.isInteger(O)&&O>=S.v&&g(S,O+1)}H(b)}return!0},ownKeys(f){P(b);var n=Reflect.ownKeys(f).filter(i=>{var c=t.get(i);return c===void 0||c.v!==o});for(var[a,s]of t)s.v!==o&&!(a in f)&&n.push(a);return n},setPrototypeOf(){ae()}})}function H(e,r=1){g(e,e.v+r)}function Te(e,r,d=!1){T&&V();var u=e,t=null,l=null,b=o,y=d?Q:0,f=!1;const n=(s,i=!0)=>{f=!0,a(i,s)},a=(s,i)=>{if(b===(b=s))return;let c=!1;if(T){const _=u.data===se;!!b===_&&(u=fe(),ue(u),M(!1),c=!0)}b?(t?Y(t):i&&(t=q(()=>i(u))),l&&F(l,()=>{l=null})):(l?Y(l):i&&(l=q(()=>i(u))),t&&F(t,()=>{t=null})),c&&M(!0)};J(()=>{f=!1,r(n),f||a(null,null)},y),T&&(u=W)}function Ae(e,r,d){T&&V();var u=e,t,l;J(()=>{t!==(t=r())&&(l&&(F(l),l=null),t&&(l=q(()=>d(u,t))))},Q),T&&(u=W)}let A=!1;function Ne(e,r,d){const u=d[r]??(d[r]={store:null,source:X(void 0),unsubscribe:U});if(u.store!==e)if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=U;else{var t=!0;u.unsubscribe=Re(e,l=>{t?u.source.v=l:g(u.source,l)}),t=!1}return P(u.source)}function De(){const e={};return le(()=>{for(var r in e)e[r].unsubscribe()}),e}function Ee(e){var r=A;try{return A=!1,[e(),A]}finally{A=r}}const Ie={get(e,r){if(!e.exclude.includes(r))return P(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,d){return r in e.special||(e.special[r]=Se({get[r](){return e.props[r]}},r,k)),e.special[r](d),z(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),z(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function pe(e,r){return new Proxy({props:e,exclude:r,special:{},version:m(0)},Ie)}function $(e){for(var r=C,d=C;r!==null&&!(r.f&(_e|oe));)r=r.parent;try{return G(r),e()}finally{G(d)}}function Se(e,r,d,u){var K;var t=(d&be)!==0,l=!he||(d&Pe)!==0,b=(d&ge)!==0,y=(d&we)!==0,f=!1,n;b?[n,f]=Ee(()=>e[r]):n=e[r];var a=N in e||ye in e,s=((K=D(e,r))==null?void 0:K.set)??(a&&b&&r in e?v=>e[r]=v:void 0),i=u,c=!0,_=!1,w=()=>(_=!0,c&&(c=!1,y?i=j(u):i=u),i);n===void 0&&u!==void 0&&(s&&l&&ce(),n=w(),s&&s(n));var h;if(l)h=()=>{var v=e[r];return v===void 0?w():(c=!0,_=!1,v)};else{var S=$(()=>(t?Z:me)(()=>e[r]));S.f|=de,h=()=>{var v=P(S);return v!==void 0&&(i=void 0),v===void 0?i:v}}if(!(d&k))return h;if(s){var O=e.$$legacy;return function(v,E){return arguments.length>0?((!l||!E||O||f)&&s(E?h():v),v):h()}}var R=!1,B=!1,p=X(n),x=$(()=>Z(()=>{var v=h(),E=P(p);return R?(R=!1,B=!0,E):(B=!1,p.v=v)}));return t||(x.equals=ve),function(v,E){if(arguments.length>0){const L=E?P(x):l&&b?I(v):v;return x.equals(L)||(R=!0,g(p,L),_&&i!==void 0&&(i=L),j(()=>P(x))),v}return P(x)}}export{I as a,Ne as b,Ae as c,Te as i,pe as l,Se as p,De as s};
|