import{X as B,at as S,ar as Y,l as m,aW as K,be as M,b9 as j,ba as x,as as C,o as H,a0 as W,ac as X,aZ as J,bn as G,M as O,e as Q,S as I,ak as E,aS as V,y as U,ai as b,aT as k,b4 as ee,aC as re,D as ne,bf as se,P as ie,v as ae,a8 as g,a9 as te,bo as L,b6 as N,aE as h,L as F,w as ue,aG as fe,x as le}from"./DLYq8eCY.js";import{B as Z}from"./BarrOnU1.js";let w=!1;function oe(e){var r=w;try{return w=!1,[e(),w]}finally{w=r}}function be(e,r,s=!1){var n;S&&(n=C,Y());var i=new Z(e),t=s?m:0;function o(a,u){if(S){var c=K(n);if(a!==parseInt(c.substring(1))){var l=M();j(l),i.anchor=l,x(!1),i.ensure(a,u),x(!0);return}}i.ensure(a,u)}B(()=>{var a=!1;r((u,c=0)=>{a=!0,o(c,u)}),a||o(-1,null)},t)}function Pe(e,r,s){var n;S&&(n=C,Y());var i=new Z(e);B(()=>{var t=r()??null;if(S){var o=K(n),a=o===H,u=t!==null;if(a!==u){var c=M();j(c),i.anchor=c,x(!1),i.ensure(t,t&&(l=>s(l,t))),x(!0);return}}i.ensure(t,t&&(l=>s(l,t)))},m)}function T(e,r){return e===r||(e==null?void 0:e[I])===r}function we(e={},r,s,n){var i=W.r,t=O;return X(()=>{var o,a;return J(()=>{o=a,a=[],G(()=>{T(s(...a),e)||(r(e,...a),o&&T(s(...o),e)&&r(null,...o))})}),()=>{let u=t;for(;u!==i&&u.parent!==null&&u.parent.f&Q;)u=u.parent;const c=()=>{a&&T(s(...a),e)&&r(null,...a)},l=u.teardown;u.teardown=()=>{c(),l==null||l()}}}),e}const ce={get(e,r){if(!e.exclude.has(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.has(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.has(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.has(r))}};function Se(e,r,s){return new Proxy({props:e,exclude:r},ce)}const pe={get(e,r){if(!e.exclude.includes(r))return b(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=O;try{N(e.parent_effect),e.special[r]=_e({get[r](){return e.props[r]}},r,U)}finally{N(n)}}return e.special[r](s),L(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),L(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 xe(e,r){return new Proxy({props:e,exclude:r,special:{},version:se(0),parent_effect:O},pe)}const de={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(h(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];h(i)&&(i=i());const t=E(i,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(h(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=E(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===I||r===F)return!1;for(let s of e.props)if(h(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(h(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function Oe(...e){return new Proxy({props:e},de)}function _e(e,r,s,n){var A;var i=!fe||(s&le)!==0,t=(s&ie)!==0,o=(s&ue)!==0,a=n,u=!0,c=void 0,l=()=>o&&i?(c??(c=g(n)),b(c)):(u&&(u=!1,a=o?G(n):n),a);let d;if(t){var $=I in e||F in e;d=((A=E(e,r))==null?void 0:A.set)??($&&r in e?f=>e[r]=f:void 0)}var _,y=!1;t?[_,y]=oe(()=>e[r]):_=e[r],_===void 0&&n!==void 0&&(_=l(),d&&(i&&V(),d(_)));var p;if(i?p=()=>{var f=e[r];return f===void 0?l():(u=!0,f)}:p=()=>{var f=e[r];return f!==void 0&&(a=void 0),f===void 0?a:f},i&&(s&U)===0)return p;if(d){var q=e.$$legacy;return(function(f,P){return arguments.length>0?((!i||!P||q||y)&&d(P?p():f),f):p()})}var R=!1,v=((s&ae)!==0?g:te)(()=>(R=!1,p()));t&&b(v);var z=O;return(function(f,P){if(arguments.length>0){const D=P?b(v):i&&t?k(f):f;return ee(v,D),R=!0,a!==void 0&&(a=D),f}return re&&R||(z.f&ne)!==0?v.v:b(v)})}export{we as b,Pe as c,be as i,xe as l,_e as p,Se as r,Oe as s};
