import{h as m,o as S,q as y,P as L,g as P,v as D,w as T,x as B,i as x,y as Y,z as j,A as M,B as N,C as U,F as q,G as z,H as C,S as O,L as b,I as _}from"./I3maXEMG.js";import{c as G}from"./es2A6yhI.js";const $={get(n,t){let r=n.props.length;for(;r--;){let e=n.props[r];if(_(e)&&(e=e()),typeof e=="object"&&e!==null&&t in e)return e[t]}},set(n,t,r){let e=n.props.length;for(;e--;){let i=n.props[e];_(i)&&(i=i());const s=S(i,t);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(n,t){let r=n.props.length;for(;r--;){let e=n.props[r];if(_(e)&&(e=e()),typeof e=="object"&&e!==null&&t in e){const i=S(e,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(n,t){if(t===O||t===b)return!1;for(let r of n.props)if(_(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(n){const t=[];for(let r of n.props)if(_(r)&&(r=r()),!!r){for(const e in r)t.includes(e)||t.push(e);for(const e of Object.getOwnPropertySymbols(r))t.includes(e)||t.push(e)}return t}};function K(...n){return new Proxy({props:n},$)}function Z(n,t,r,e){var i=!N||(r&U)!==0,s=(r&M)!==0,w=(r&j)!==0,a=e,p=!0,g=()=>(p&&(p=!1,a=w?m(e):e),a);let o;if(s){var A=O in n||b in n;o=S(n,t)?.set??(A&&t in n?f=>n[t]=f:void 0)}var l,h=!1;s?[l,h]=G(()=>n[t]):l=n[t],l===void 0&&e!==void 0&&(l=g(),o&&(i&&y(),o(l)));var u;if(i?u=()=>{var f=n[t];return f===void 0?g():(p=!0,f)}:u=()=>{var f=n[t];return f!==void 0&&(a=void 0),f===void 0?a:f},i&&(r&L)===0)return u;if(o){var E=n.$$legacy;return(function(f,c){return arguments.length>0?((!i||!c||E||h)&&o(c?u():f),f):u()})}var v=!1,d=((r&q)!==0?z:C)(()=>(v=!1,u()));s&&P(d);var R=x;return(function(f,c){if(arguments.length>0){const I=c?P(d):i&&s?D(f):f;return T(d,I),v=!0,a!==void 0&&(a=I),f}return B&&v||(R.f&Y)!==0?d.v:P(d)})}export{Z as p,K as s};
