@mriqbox/ui-kit 3.5.2 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -18,16 +18,16 @@
18
18
  `+ne+y}}var de=!1,Re;{var vn=typeof WeakMap=="function"?WeakMap:Map;Re=new vn}function jr(y,E){if(!y||de)return"";{var T=Re.get(y);if(T!==void 0)return T}var U;de=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=J.current,J.current=null,K();try{if(E){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Me){U=Me}Reflect.construct(y,[],Z)}else{try{Z.call()}catch(Me){U=Me}y.call(Z.prototype)}}else{try{throw Error()}catch(Me){U=Me}y()}}catch(Me){if(Me&&U&&typeof Me.stack=="string"){for(var Q=Me.stack.split(`
19
19
  `),je=U.stack.split(`
20
20
  `),he=Q.length-1,ve=je.length-1;he>=1&&ve>=0&&Q[he]!==je[ve];)ve--;for(;he>=1&&ve>=0;he--,ve--)if(Q[he]!==je[ve]){if(he!==1||ve!==1)do if(he--,ve--,ve<0||Q[he]!==je[ve]){var Ae=`
21
- `+Q[he].replace(" at new "," at ");return y.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",y.displayName)),typeof y=="function"&&Re.set(y,Ae),Ae}while(he>=1&&ve>=0);break}}}finally{de=!1,J.current=se,$(),Error.prepareStackTrace=oe}var Jt=y?y.displayName||y.name:"",Pt=Jt?fe(Jt):"";return typeof y=="function"&&Re.set(y,Pt),Pt}function St(y,E,T){return jr(y,!1)}function gn(y){var E=y.prototype;return!!(E&&E.isReactComponent)}function Qt(y,E,T){if(y==null)return"";if(typeof y=="function")return jr(y,gn(y));if(typeof y=="string")return fe(y);switch(y){case u:return fe("Suspense");case d:return fe("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return St(y.render);case f:return Qt(y.type,E,T);case h:{var U=y,oe=U._payload,se=U._init;try{return Qt(se(oe),E,T)}catch{}}}return""}var Mt=Object.prototype.hasOwnProperty,bn={},xn=x.ReactDebugCurrentFrame;function at(y){if(y){var E=y._owner,T=Qt(y.type,y._source,E?E.type:null);xn.setExtraStackFrame(T)}else xn.setExtraStackFrame(null)}function Cb(y,E,T,U,oe){{var se=Function.call.bind(Mt);for(var Z in y)if(se(y,Z)){var Q=void 0;try{if(typeof y[Z]!="function"){var je=Error((U||"React class")+": "+T+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=y[Z](E,Z,U,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){Q=he}Q&&!(Q instanceof Error)&&(at(oe),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",U||"React class",T,Z,typeof Q),at(null)),Q instanceof Error&&!(Q.message in bn)&&(bn[Q.message]=!0,at(oe),w("Failed %s type: %s",T,Q.message),at(null))}}}var jb=Array.isArray;function Ko(y){return jb(y)}function kb(y){{var E=typeof Symbol=="function"&&Symbol.toStringTag,T=E&&y[Symbol.toStringTag]||y.constructor.name||"Object";return T}}function Sb(y){try{return Fl(y),!1}catch{return!0}}function Fl(y){return""+y}function $l(y){if(Sb(y))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kb(y)),Fl(y)}var Bl=x.ReactCurrentOwner,Mb={key:!0,ref:!0,__self:!0,__source:!0},zl,Hl;function Pb(y){if(Mt.call(y,"ref")){var E=Object.getOwnPropertyDescriptor(y,"ref").get;if(E&&E.isReactWarning)return!1}return y.ref!==void 0}function Eb(y){if(Mt.call(y,"key")){var E=Object.getOwnPropertyDescriptor(y,"key").get;if(E&&E.isReactWarning)return!1}return y.key!==void 0}function _b(y,E){typeof y.ref=="string"&&Bl.current}function Db(y,E){{var T=function(){zl||(zl=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};T.isReactWarning=!0,Object.defineProperty(y,"key",{get:T,configurable:!0})}}function Ob(y,E){{var T=function(){Hl||(Hl=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};T.isReactWarning=!0,Object.defineProperty(y,"ref",{get:T,configurable:!0})}}var Rb=function(y,E,T,U,oe,se,Z){var Q={$$typeof:t,type:y,key:E,ref:T,props:Z,_owner:se};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Ab(y,E,T,U,oe){{var se,Z={},Q=null,je=null;T!==void 0&&($l(T),Q=""+T),Eb(E)&&($l(E.key),Q=""+E.key),Pb(E)&&(je=E.ref,_b(E,oe));for(se in E)Mt.call(E,se)&&!Mb.hasOwnProperty(se)&&(Z[se]=E[se]);if(y&&y.defaultProps){var he=y.defaultProps;for(se in he)Z[se]===void 0&&(Z[se]=he[se])}if(Q||je){var ve=typeof y=="function"?y.displayName||y.name||"Unknown":y;Q&&Db(Z,ve),je&&Ob(Z,ve)}return Rb(y,Q,je,oe,U,Bl.current,Z)}}var Qo=x.ReactCurrentOwner,Yl=x.ReactDebugCurrentFrame;function Zt(y){if(y){var E=y._owner,T=Qt(y.type,y._source,E?E.type:null);Yl.setExtraStackFrame(T)}else Yl.setExtraStackFrame(null)}var Zo;Zo=!1;function Jo(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Vl(){{if(Qo.current){var y=B(Qo.current.type);if(y)return`
21
+ `+Q[he].replace(" at new "," at ");return y.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",y.displayName)),typeof y=="function"&&Re.set(y,Ae),Ae}while(he>=1&&ve>=0);break}}}finally{de=!1,J.current=se,$(),Error.prepareStackTrace=oe}var Jt=y?y.displayName||y.name:"",Pt=Jt?fe(Jt):"";return typeof y=="function"&&Re.set(y,Pt),Pt}function St(y,E,T){return jr(y,!1)}function gn(y){var E=y.prototype;return!!(E&&E.isReactComponent)}function Qt(y,E,T){if(y==null)return"";if(typeof y=="function")return jr(y,gn(y));if(typeof y=="string")return fe(y);switch(y){case u:return fe("Suspense");case d:return fe("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return St(y.render);case f:return Qt(y.type,E,T);case h:{var U=y,oe=U._payload,se=U._init;try{return Qt(se(oe),E,T)}catch{}}}return""}var Mt=Object.prototype.hasOwnProperty,bn={},xn=x.ReactDebugCurrentFrame;function at(y){if(y){var E=y._owner,T=Qt(y.type,y._source,E?E.type:null);xn.setExtraStackFrame(T)}else xn.setExtraStackFrame(null)}function jb(y,E,T,U,oe){{var se=Function.call.bind(Mt);for(var Z in y)if(se(y,Z)){var Q=void 0;try{if(typeof y[Z]!="function"){var je=Error((U||"React class")+": "+T+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=y[Z](E,Z,U,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){Q=he}Q&&!(Q instanceof Error)&&(at(oe),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",U||"React class",T,Z,typeof Q),at(null)),Q instanceof Error&&!(Q.message in bn)&&(bn[Q.message]=!0,at(oe),w("Failed %s type: %s",T,Q.message),at(null))}}}var kb=Array.isArray;function Ko(y){return kb(y)}function Sb(y){{var E=typeof Symbol=="function"&&Symbol.toStringTag,T=E&&y[Symbol.toStringTag]||y.constructor.name||"Object";return T}}function Mb(y){try{return Fl(y),!1}catch{return!0}}function Fl(y){return""+y}function $l(y){if(Mb(y))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Sb(y)),Fl(y)}var Bl=x.ReactCurrentOwner,Pb={key:!0,ref:!0,__self:!0,__source:!0},zl,Hl;function Eb(y){if(Mt.call(y,"ref")){var E=Object.getOwnPropertyDescriptor(y,"ref").get;if(E&&E.isReactWarning)return!1}return y.ref!==void 0}function _b(y){if(Mt.call(y,"key")){var E=Object.getOwnPropertyDescriptor(y,"key").get;if(E&&E.isReactWarning)return!1}return y.key!==void 0}function Db(y,E){typeof y.ref=="string"&&Bl.current}function Ob(y,E){{var T=function(){zl||(zl=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};T.isReactWarning=!0,Object.defineProperty(y,"key",{get:T,configurable:!0})}}function Rb(y,E){{var T=function(){Hl||(Hl=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};T.isReactWarning=!0,Object.defineProperty(y,"ref",{get:T,configurable:!0})}}var Ab=function(y,E,T,U,oe,se,Z){var Q={$$typeof:t,type:y,key:E,ref:T,props:Z,_owner:se};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function Tb(y,E,T,U,oe){{var se,Z={},Q=null,je=null;T!==void 0&&($l(T),Q=""+T),_b(E)&&($l(E.key),Q=""+E.key),Eb(E)&&(je=E.ref,Db(E,oe));for(se in E)Mt.call(E,se)&&!Pb.hasOwnProperty(se)&&(Z[se]=E[se]);if(y&&y.defaultProps){var he=y.defaultProps;for(se in he)Z[se]===void 0&&(Z[se]=he[se])}if(Q||je){var ve=typeof y=="function"?y.displayName||y.name||"Unknown":y;Q&&Ob(Z,ve),je&&Rb(Z,ve)}return Ab(y,Q,je,oe,U,Bl.current,Z)}}var Qo=x.ReactCurrentOwner,Yl=x.ReactDebugCurrentFrame;function Zt(y){if(y){var E=y._owner,T=Qt(y.type,y._source,E?E.type:null);Yl.setExtraStackFrame(T)}else Yl.setExtraStackFrame(null)}var Zo;Zo=!1;function Jo(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function Vl(){{if(Qo.current){var y=B(Qo.current.type);if(y)return`
22
22
 
23
- Check the render method of \``+y+"`."}return""}}function Tb(y){return""}var Ul={};function Lb(y){{var E=Vl();if(!E){var T=typeof y=="string"?y:y.displayName||y.name;T&&(E=`
23
+ Check the render method of \``+y+"`."}return""}}function Lb(y){return""}var Ul={};function Wb(y){{var E=Vl();if(!E){var T=typeof y=="string"?y:y.displayName||y.name;T&&(E=`
24
24
 
25
- Check the top-level render call using <`+T+">.")}return E}}function ql(y,E){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var T=Lb(E);if(Ul[T])return;Ul[T]=!0;var U="";y&&y._owner&&y._owner!==Qo.current&&(U=" It was passed a child from "+B(y._owner.type)+"."),Zt(y),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,U),Zt(null)}}function Gl(y,E){{if(typeof y!="object")return;if(Ko(y))for(var T=0;T<y.length;T++){var U=y[T];Jo(U)&&ql(U,E)}else if(Jo(y))y._store&&(y._store.validated=!0);else if(y){var oe=b(y);if(typeof oe=="function"&&oe!==y.entries)for(var se=oe.call(y),Z;!(Z=se.next()).done;)Jo(Z.value)&&ql(Z.value,E)}}}function Wb(y){{var E=y.type;if(E==null||typeof E=="string")return;var T;if(typeof E=="function")T=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===f))T=E.propTypes;else return;if(T){var U=B(E);Cb(T,y.props,"prop",U,y)}else if(E.PropTypes!==void 0&&!Zo){Zo=!0;var oe=B(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ib(y){{for(var E=Object.keys(y.props),T=0;T<E.length;T++){var U=E[T];if(U!=="children"&&U!=="key"){Zt(y),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),Zt(null);break}}y.ref!==null&&(Zt(y),w("Invalid attribute `ref` supplied to `React.Fragment`."),Zt(null))}}var Xl={};function Kl(y,E,T,U,oe,se){{var Z=F(y);if(!Z){var Q="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Tb();je?Q+=je:Q+=Vl();var he;y===null?he="null":Ko(y)?he="array":y!==void 0&&y.$$typeof===t?(he="<"+(B(y.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof y,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,Q)}var ve=Ab(y,E,T,oe,se);if(ve==null)return ve;if(Z){var Ae=E.children;if(Ae!==void 0)if(U)if(Ko(Ae)){for(var Jt=0;Jt<Ae.length;Jt++)Gl(Ae[Jt],y);Object.freeze&&Object.freeze(Ae)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Gl(Ae,y)}if(Mt.call(E,"key")){var Pt=B(y),Me=Object.keys(E).filter(function(Yb){return Yb!=="key"}),ea=Me.length>0?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}";if(!Xl[Pt+ea]){var Hb=Me.length>0?"{"+Me.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+T+">.")}return E}}function ql(y,E){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var T=Wb(E);if(Ul[T])return;Ul[T]=!0;var U="";y&&y._owner&&y._owner!==Qo.current&&(U=" It was passed a child from "+B(y._owner.type)+"."),Zt(y),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,U),Zt(null)}}function Gl(y,E){{if(typeof y!="object")return;if(Ko(y))for(var T=0;T<y.length;T++){var U=y[T];Jo(U)&&ql(U,E)}else if(Jo(y))y._store&&(y._store.validated=!0);else if(y){var oe=b(y);if(typeof oe=="function"&&oe!==y.entries)for(var se=oe.call(y),Z;!(Z=se.next()).done;)Jo(Z.value)&&ql(Z.value,E)}}}function Ib(y){{var E=y.type;if(E==null||typeof E=="string")return;var T;if(typeof E=="function")T=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===f))T=E.propTypes;else return;if(T){var U=B(E);jb(T,y.props,"prop",U,y)}else if(E.PropTypes!==void 0&&!Zo){Zo=!0;var oe=B(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fb(y){{for(var E=Object.keys(y.props),T=0;T<E.length;T++){var U=E[T];if(U!=="children"&&U!=="key"){Zt(y),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),Zt(null);break}}y.ref!==null&&(Zt(y),w("Invalid attribute `ref` supplied to `React.Fragment`."),Zt(null))}}var Xl={};function Kl(y,E,T,U,oe,se){{var Z=F(y);if(!Z){var Q="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Lb();je?Q+=je:Q+=Vl();var he;y===null?he="null":Ko(y)?he="array":y!==void 0&&y.$$typeof===t?(he="<"+(B(y.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof y,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,Q)}var ve=Tb(y,E,T,oe,se);if(ve==null)return ve;if(Z){var Ae=E.children;if(Ae!==void 0)if(U)if(Ko(Ae)){for(var Jt=0;Jt<Ae.length;Jt++)Gl(Ae[Jt],y);Object.freeze&&Object.freeze(Ae)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Gl(Ae,y)}if(Mt.call(E,"key")){var Pt=B(y),Me=Object.keys(E).filter(function(Vb){return Vb!=="key"}),ea=Me.length>0?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}";if(!Xl[Pt+ea]){var Yb=Me.length>0?"{"+Me.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ea,Pt,Hb,Pt),Xl[Pt+ea]=!0}}return y===n?Ib(ve):Wb(ve),ve}}function Fb(y,E,T){return Kl(y,E,T,!0)}function $b(y,E,T){return Kl(y,E,T,!1)}var Bb=$b,zb=Fb;tr.Fragment=n,tr.jsx=Bb,tr.jsxs=zb}()),tr}process.env.NODE_ENV==="production"?yn.exports=Ql():yn.exports=Zl();var l=yn.exports;function sa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=sa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ia(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=sa(e))&&(n&&(n+=" "),n+=t);return n}const la=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ca=ia,ua=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ca(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const d=r==null?void 0:r[u],f=a==null?void 0:a[u];if(d===null)return null;const h=la(d)||la(f);return o[u][h]}),i=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(g=>{let[v,b]=g;return Array.isArray(b)?b.includes({...a,...i}[v]):{...a,...i}[v]===b})?[...u,f,h]:u},[]);return ca(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},da=ua("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),wn="-",Jl=e=>{const t=tc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(wn);return i[0]===""&&i.length!==1&&i.shift(),fa(i,t)||ec(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},fa=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?fa(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(wn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ha=/^\[(.+)\]$/,ec=e=>{if(ha.test(e)){const t=ha.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},tc=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return nc(Object.entries(e.classGroups),r).forEach(([a,s])=>{Nn(s,n,a,t)}),n},Nn=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ma(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(rc(o)){Nn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{Nn(s,ma(t,a),r,n)})})},ma=(e,t)=>{let r=e;return t.split(wn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rc=e=>e.isThemeGetter,nc=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[r,o]}):e,oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},pa="!",ac=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,s=i=>{const c=[];let u=0,d=0,f;for(let b=0;b<i.length;b++){let x=i[b];if(u===0){if(x===o&&(n||i.slice(b,b+a)===t)){c.push(i.slice(d,b)),d=b+a;continue}if(x==="/"){f=b;continue}}x==="["?u++:x==="]"&&u--}const h=c.length===0?i:i.substring(d),p=h.startsWith(pa),g=p?h.substring(1):h,v=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:v}};return r?i=>r({className:i,parseClassName:s}):s},sc=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ic=e=>({cache:oc(e.cacheSize),parseClassName:ac(e),...Jl(e)}),lc=/\s+/,cc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(lc);let i="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(u);let g=!!p,v=n(g?h.substring(0,p):h);if(!v){if(!g){i=u+(i.length>0?" "+i:i);continue}if(v=n(h),!v){i=u+(i.length>0?" "+i:i);continue}g=!1}const b=sc(d).join(":"),x=f?b+pa:b,w=x+v;if(a.includes(w))continue;a.push(w);const N=o(v,g);for(let C=0;C<N.length;++C){const j=N[C];a.push(x+j)}i=u+(i.length>0?" "+i:i)}return i};function uc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=va(t))&&(n&&(n+=" "),n+=r);return n}const va=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=va(e[n]))&&(r&&(r+=" "),r+=t);return r};function dc(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((d,f)=>f(d),e());return r=ic(u),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const u=n(c);if(u)return u;const d=cc(c,r);return o(c,d),d}return function(){return a(uc.apply(null,arguments))}}const le=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ga=/^\[(?:([a-z-]+):)?(.+)\]$/i,fc=/^\d+\/\d+$/,hc=new Set(["px","full","screen"]),mc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Et(e)||hc.has(e)||fc.test(e),st=e=>_t(e,"length",Sc),Et=e=>!!e&&!Number.isNaN(Number(e)),Cn=e=>_t(e,"number",Et),rr=e=>!!e&&Number.isInteger(Number(e)),xc=e=>e.endsWith("%")&&Et(e.slice(0,-1)),q=e=>ga.test(e),it=e=>mc.test(e),yc=new Set(["length","size","percentage"]),wc=e=>_t(e,yc,ba),Nc=e=>_t(e,"position",ba),Cc=new Set(["image","url"]),jc=e=>_t(e,Cc,Pc),kc=e=>_t(e,"",Mc),nr=()=>!0,_t=(e,t,r)=>{const n=ga.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Sc=e=>pc.test(e)&&!vc.test(e),ba=()=>!1,Mc=e=>gc.test(e),Pc=e=>bc.test(e),Ec=dc(()=>{const e=le("colors"),t=le("spacing"),r=le("blur"),n=le("brightness"),o=le("borderColor"),a=le("borderRadius"),s=le("borderSpacing"),i=le("borderWidth"),c=le("contrast"),u=le("grayscale"),d=le("hueRotate"),f=le("invert"),h=le("gap"),p=le("gradientColorStops"),g=le("gradientColorStopPositions"),v=le("inset"),b=le("margin"),x=le("opacity"),w=le("padding"),N=le("saturate"),C=le("scale"),j=le("sepia"),D=le("skew"),k=le("space"),H=le("translate"),I=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",q,t],R=()=>[q,t],B=()=>["",Ze,st],W=()=>["auto",Et,q],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",q],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Et,q];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[Ze,st],blur:["none","",it,q],brightness:ce(),borderColor:[e],borderRadius:["none","","full",it,q],borderSpacing:R(),borderWidth:B(),contrast:ce(),grayscale:X(),hueRotate:ce(),invert:X(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[xc,st],inset:z(),margin:z(),opacity:ce(),padding:R(),saturate:ce(),scale:ce(),sepia:X(),skew:ce(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[it]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rr,q]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",rr,q]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",rr,q]},q]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[rr,q]},q]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[it]},it]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",it,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cn]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",Et,Cn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ze,st]}],"underline-offset":[{"underline-offset":["auto",Ze,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),Nc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:G()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[Ze,q]}],"outline-w":[{outline:[Ze,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ze,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",it,kc]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",it,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[N]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[rr,q]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ze,st,Cn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function P(...e){return Ec(ia(e))}function jn({className:e,variant:t,...r}){return l.jsx("div",{className:P(da({variant:t}),e),...r})}function xa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=xa(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():xa(e[o],null)}}}}function ye(...e){return m.useCallback(lt(...e),e)}var _c=Symbol.for("react.lazy"),kr=m[" use ".trim().toString()];function Dc(e){return typeof e=="object"&&e!==null&&"then"in e}function ya(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_c&&"_payload"in e&&Dc(e._payload)}function wa(e){const t=Rc(e),r=m.forwardRef((n,o)=>{let{children:a,...s}=n;ya(a)&&typeof kr=="function"&&(a=kr(a._payload));const i=m.Children.toArray(a),c=i.find(Tc);if(c){const u=c.props.children,d=i.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Oc=wa("Slot");function Rc(e){const t=m.forwardRef((r,n)=>{let{children:o,...a}=r;if(ya(o)&&typeof kr=="function"&&(o=kr(o._payload)),m.isValidElement(o)){const s=Wc(o),i=Lc(a,o.props);return o.type!==m.Fragment&&(i.ref=n?lt(n,s):s),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ac=Symbol("radix.slottable");function Tc(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ac}function Lc(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Wc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Sr=ua("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});/**
30
+ <%s key={someKey} {...props} />`,ea,Pt,Yb,Pt),Xl[Pt+ea]=!0}}return y===n?Fb(ve):Ib(ve),ve}}function $b(y,E,T){return Kl(y,E,T,!0)}function Bb(y,E,T){return Kl(y,E,T,!1)}var zb=Bb,Hb=$b;tr.Fragment=n,tr.jsx=zb,tr.jsxs=Hb}()),tr}process.env.NODE_ENV==="production"?yn.exports=Ql():yn.exports=Zl();var l=yn.exports;function sa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=sa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ia(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=sa(e))&&(n&&(n+=" "),n+=t);return n}const la=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ca=ia,ua=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ca(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const d=r==null?void 0:r[u],f=a==null?void 0:a[u];if(d===null)return null;const h=la(d)||la(f);return o[u][h]}),i=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(g=>{let[v,b]=g;return Array.isArray(b)?b.includes({...a,...i}[v]):{...a,...i}[v]===b})?[...u,f,h]:u},[]);return ca(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},da=ua("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),wn="-",Jl=e=>{const t=tc(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(wn);return i[0]===""&&i.length!==1&&i.shift(),fa(i,t)||ec(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},fa=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?fa(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(wn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ha=/^\[(.+)\]$/,ec=e=>{if(ha.test(e)){const t=ha.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},tc=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return nc(Object.entries(e.classGroups),r).forEach(([a,s])=>{Nn(s,n,a,t)}),n},Nn=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ma(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(rc(o)){Nn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{Nn(s,ma(t,a),r,n)})})},ma=(e,t)=>{let r=e;return t.split(wn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rc=e=>e.isThemeGetter,nc=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[r,o]}):e,oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},pa="!",ac=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,s=i=>{const c=[];let u=0,d=0,f;for(let b=0;b<i.length;b++){let x=i[b];if(u===0){if(x===o&&(n||i.slice(b,b+a)===t)){c.push(i.slice(d,b)),d=b+a;continue}if(x==="/"){f=b;continue}}x==="["?u++:x==="]"&&u--}const h=c.length===0?i:i.substring(d),p=h.startsWith(pa),g=p?h.substring(1):h,v=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:v}};return r?i=>r({className:i,parseClassName:s}):s},sc=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ic=e=>({cache:oc(e.cacheSize),parseClassName:ac(e),...Jl(e)}),lc=/\s+/,cc=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(lc);let i="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(u);let g=!!p,v=n(g?h.substring(0,p):h);if(!v){if(!g){i=u+(i.length>0?" "+i:i);continue}if(v=n(h),!v){i=u+(i.length>0?" "+i:i);continue}g=!1}const b=sc(d).join(":"),x=f?b+pa:b,w=x+v;if(a.includes(w))continue;a.push(w);const N=o(v,g);for(let C=0;C<N.length;++C){const j=N[C];a.push(x+j)}i=u+(i.length>0?" "+i:i)}return i};function uc(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=va(t))&&(n&&(n+=" "),n+=r);return n}const va=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=va(e[n]))&&(r&&(r+=" "),r+=t);return r};function dc(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((d,f)=>f(d),e());return r=ic(u),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const u=n(c);if(u)return u;const d=cc(c,r);return o(c,d),d}return function(){return a(uc.apply(null,arguments))}}const le=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ga=/^\[(?:([a-z-]+):)?(.+)\]$/i,fc=/^\d+\/\d+$/,hc=new Set(["px","full","screen"]),mc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Et(e)||hc.has(e)||fc.test(e),st=e=>_t(e,"length",Sc),Et=e=>!!e&&!Number.isNaN(Number(e)),Cn=e=>_t(e,"number",Et),rr=e=>!!e&&Number.isInteger(Number(e)),xc=e=>e.endsWith("%")&&Et(e.slice(0,-1)),q=e=>ga.test(e),it=e=>mc.test(e),yc=new Set(["length","size","percentage"]),wc=e=>_t(e,yc,ba),Nc=e=>_t(e,"position",ba),Cc=new Set(["image","url"]),jc=e=>_t(e,Cc,Pc),kc=e=>_t(e,"",Mc),nr=()=>!0,_t=(e,t,r)=>{const n=ga.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Sc=e=>pc.test(e)&&!vc.test(e),ba=()=>!1,Mc=e=>gc.test(e),Pc=e=>bc.test(e),Ec=dc(()=>{const e=le("colors"),t=le("spacing"),r=le("blur"),n=le("brightness"),o=le("borderColor"),a=le("borderRadius"),s=le("borderSpacing"),i=le("borderWidth"),c=le("contrast"),u=le("grayscale"),d=le("hueRotate"),f=le("invert"),h=le("gap"),p=le("gradientColorStops"),g=le("gradientColorStopPositions"),v=le("inset"),b=le("margin"),x=le("opacity"),w=le("padding"),N=le("saturate"),C=le("scale"),j=le("sepia"),D=le("skew"),k=le("space"),H=le("translate"),I=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",q,t],R=()=>[q,t],B=()=>["",Ze,st],W=()=>["auto",Et,q],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",q],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Et,q];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[Ze,st],blur:["none","",it,q],brightness:ce(),borderColor:[e],borderRadius:["none","","full",it,q],borderSpacing:R(),borderWidth:B(),contrast:ce(),grayscale:X(),hueRotate:ce(),invert:X(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[xc,st],inset:z(),margin:z(),opacity:ce(),padding:R(),saturate:ce(),scale:ce(),sepia:X(),skew:ce(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[it]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),q]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rr,q]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",rr,q]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",rr,q]},q]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[rr,q]},q]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[it]},it]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",it,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cn]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",Et,Cn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ze,st]}],"underline-offset":[{"underline-offset":["auto",Ze,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),Nc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:G()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[Ze,q]}],"outline-w":[{outline:[Ze,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ze,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",it,kc]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",it,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[N]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[rr,q]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ze,st,Cn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function P(...e){return Ec(ia(e))}function jn({className:e,variant:t,...r}){return l.jsx("div",{className:P(da({variant:t}),e),...r})}function xa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=xa(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():xa(e[o],null)}}}}function ye(...e){return m.useCallback(lt(...e),e)}var _c=Symbol.for("react.lazy"),kr=m[" use ".trim().toString()];function Dc(e){return typeof e=="object"&&e!==null&&"then"in e}function ya(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_c&&"_payload"in e&&Dc(e._payload)}function wa(e){const t=Rc(e),r=m.forwardRef((n,o)=>{let{children:a,...s}=n;ya(a)&&typeof kr=="function"&&(a=kr(a._payload));const i=m.Children.toArray(a),c=i.find(Tc);if(c){const u=c.props.children,d=i.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l.jsx(t,{...s,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Oc=wa("Slot");function Rc(e){const t=m.forwardRef((r,n)=>{let{children:o,...a}=r;if(ya(o)&&typeof kr=="function"&&(o=kr(o._payload)),m.isValidElement(o)){const s=Wc(o),i=Lc(a,o.props);return o.type!==m.Fragment&&(i.ref=n?lt(n,s):s),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ac=Symbol("radix.slottable");function Tc(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ac}function Lc(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Wc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Sr=ua("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});/**
31
31
  * @license lucide-react v0.344.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
@@ -227,7 +227,7 @@ React keys must be passed directly to JSX without using spread:
227
227
  `)},Xs=function(){var e=parseInt(document.body.getAttribute(Wt)||"0",10);return isFinite(e)?e:0},rh=function(){m.useEffect(function(){return document.body.setAttribute(Wt,(Xs()+1).toString()),function(){var e=Xs()-1;e<=0?document.body.removeAttribute(Wt):document.body.setAttribute(Wt,e.toString())}},[])},nh=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;rh();var a=m.useMemo(function(){return Jf(o)},[o]);return m.createElement(eh,{styles:th(a,!t,o,r?"":"!important")})},no=!1;if(typeof window<"u")try{var Zr=Object.defineProperty({},"passive",{get:function(){return no=!0,!0}});window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{no=!1}var It=no?{passive:!1}:!1,oh=function(e){return e.tagName==="TEXTAREA"},Ks=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!oh(e)&&r[t]==="visible")},ah=function(e){return Ks(e,"overflowY")},sh=function(e){return Ks(e,"overflowX")},Qs=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Zs(e,n);if(o){var a=Js(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ih=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},lh=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Zs=function(e,t){return e==="v"?ah(t):sh(t)},Js=function(e,t){return e==="v"?ih(t):lh(t)},ch=function(e,t){return e==="h"&&t==="rtl"?-1:1},uh=function(e,t,r,n,o){var a=ch(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),u=!1,d=s>0,f=0,h=0;do{if(!i)break;var p=Js(e,i),g=p[0],v=p[1],b=p[2],x=v-b-a*g;(g||x)&&Zs(e,i)&&(f+=x,h+=g);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(u=!0),u},Jr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ei=function(e){return[e.deltaX,e.deltaY]},ti=function(e){return e&&"current"in e?e.current:e},dh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fh=function(e){return`
228
228
  .block-interactivity-`.concat(e,` {pointer-events: none;}
229
229
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
230
- `)},hh=0,Ft=[];function mh(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),o=m.useState(hh++)[0],a=m.useState(Gs)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Tf([e.lockRef.current],(e.shards||[]).map(ti),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=m.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var x=Jr(v),w=r.current,N="deltaX"in v?v.deltaX:w[0]-x[0],C="deltaY"in v?v.deltaY:w[1]-x[1],j,D=v.target,k=Math.abs(N)>Math.abs(C)?"h":"v";if("touches"in v&&k==="h"&&D.type==="range")return!1;var H=window.getSelection(),I=H&&H.anchorNode,F=I?I===D||I.contains(D):!1;if(F)return!1;var z=Qs(k,D);if(!z)return!0;if(z?j=k:(j=k==="v"?"h":"v",z=Qs(k,D)),!z)return!1;if(!n.current&&"changedTouches"in v&&(N||C)&&(n.current=j),!j)return!0;var R=n.current||j;return uh(R,b,v,R==="h"?N:C)},[]),c=m.useCallback(function(v){var b=v;if(!(!Ft.length||Ft[Ft.length-1]!==a)){var x="deltaY"in b?ei(b):Jr(b),w=t.current.filter(function(j){return j.name===b.type&&(j.target===b.target||b.target===j.shadowParent)&&dh(j.delta,x)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var N=(s.current.shards||[]).map(ti).filter(Boolean).filter(function(j){return j.contains(b.target)}),C=N.length>0?i(b,N[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(v,b,x,w){var N={name:v,delta:b,target:x,should:w,shadowParent:ph(x)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(C){return C!==N})},1)},[]),d=m.useCallback(function(v){r.current=Jr(v),n.current=void 0},[]),f=m.useCallback(function(v){u(v.type,ei(v),v.target,i(v,e.lockRef.current))},[]),h=m.useCallback(function(v){u(v.type,Jr(v),v.target,i(v,e.lockRef.current))},[]);m.useEffect(function(){return Ft.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,It),document.addEventListener("touchmove",c,It),document.addEventListener("touchstart",d,It),function(){Ft=Ft.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,It),document.removeEventListener("touchmove",c,It),document.removeEventListener("touchstart",d,It)}},[]);var p=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(a,{styles:fh(o)}):null,p?m.createElement(nh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ph(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vh=Yf(qs,mh);var oo=m.forwardRef(function(e,t){return m.createElement(Qr,qe({},e,{ref:t,sideCar:vh}))});oo.classNames=Qr.classNames;var en="Popover",[ri]=Or(en,[Ds]),ur=Ds(),[gh,ft]=ri(en),ni=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ur(t),c=m.useRef(null),[u,d]=m.useState(!1),[f,h]=Bs({prop:n,defaultProp:o??!1,onChange:a,caller:en});return l.jsx(kf,{...i,children:l.jsx(gh,{scope:t,contentId:ze(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:u,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:s,children:r})})};ni.displayName=en;var oi="PopoverAnchor",bh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(oi,r),a=ur(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return m.useEffect(()=>(s(),()=>i()),[s,i]),l.jsx($s,{...a,...n,ref:t})});bh.displayName=oi;var ai="PopoverTrigger",si=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(ai,r),a=ur(r),s=ye(t,o.triggerRef),i=l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":di(o.open),...n,ref:s,onClick:me(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx($s,{asChild:!0,...a,children:i})});si.displayName=ai;var ao="PopoverPortal",[xh,yh]=ri(ao,{forceMount:void 0}),ii=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=ft(ao,t);return l.jsx(xh,{scope:t,forceMount:r,children:l.jsx($e,{present:r||a.open,children:l.jsx(Zn,{asChild:!0,container:o,children:n})})})};ii.displayName=ao;var $t="PopoverContent",li=m.forwardRef((e,t)=>{const r=yh($t,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=ft($t,e.__scopePopover);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(Nh,{...o,ref:t}):l.jsx(Ch,{...o,ref:t})})});li.displayName=$t;var wh=Mn("PopoverContent.RemoveScroll"),Nh=m.forwardRef((e,t)=>{const r=ft($t,e.__scopePopover),n=m.useRef(null),o=ye(t,n),a=m.useRef(!1);return m.useEffect(()=>{const s=n.current;if(s)return Hs(s)},[]),l.jsx(oo,{as:wh,allowPinchZoom:!0,children:l.jsx(ci,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ch=m.forwardRef((e,t)=>{const r=ft($t,e.__scopePopover),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(ci,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ci=m.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=ft($t,r),p=ur(r);return es(),l.jsx(In,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(An,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:l.jsx(Sf,{"data-state":di(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ui="PopoverClose",jh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(ui,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});jh.displayName=ui;var kh="PopoverArrow",Sh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ur(r);return l.jsx(Mf,{...o,...n,ref:t})});Sh.displayName=kh;function di(e){return e?"open":"closed"}var fi=ni,hi=si,mi=ii,so=li;const bt=fi,xt=hi,ht=m.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:n=!0,...o},a)=>{const s=l.jsx(so,{ref:a,align:t,sideOffset:r,className:P("z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o});return n?l.jsx(mi,{children:s}):s});ht.displayName=so.displayName;var pi=1,Mh=.9,Ph=.8,Eh=.17,io=.1,lo=.999,_h=.9999,Dh=.99,Oh=/[\\\/_+.#"@\[\(\{&]/,Rh=/[\\\/_+.#"@\[\(\{&]/g,Ah=/[\s-]/,vi=/[\s-]/g;function co(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?pi:Dh;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),d=0,f,h,p,g;u>=0;)f=co(e,t,r,n,u+1,a+1,s),f>d&&(u===o?f*=pi:Oh.test(e.charAt(u-1))?(f*=Ph,p=e.slice(o,u-1).match(Rh),p&&o>0&&(f*=Math.pow(lo,p.length))):Ah.test(e.charAt(u-1))?(f*=Mh,g=e.slice(o,u-1).match(vi),g&&o>0&&(f*=Math.pow(lo,g.length))):(f*=Eh,o>0&&(f*=Math.pow(lo,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=_h)),(f<io&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(h=co(e,t,r,n,u+1,a+2,s),h*io>f&&(f=h*io)),f>d&&(d=f),u=r.indexOf(c,u+1);return s[i]=d,d}function gi(e){return e.toLowerCase().replace(vi," ")}function Th(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,co(e,t,gi(e),gi(t),0,0,{})}var tn="Dialog",[bi]=Or(tn),[Lh,We]=bi(tn),xi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=m.useRef(null),c=m.useRef(null),[u,d]=Bs({prop:n,defaultProp:o??!1,onChange:a,caller:tn});return l.jsx(Lh,{scope:t,triggerRef:i,contentRef:c,contentId:ze(),titleId:ze(),descriptionId:ze(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:s,children:r})};xi.displayName=tn;var yi="DialogTrigger",Wh=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(yi,r),a=ye(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ho(o.open),...n,ref:a,onClick:me(e.onClick,o.onOpenToggle)})});Wh.displayName=yi;var uo="DialogPortal",[Ih,wi]=bi(uo,{forceMount:void 0}),Ni=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=We(uo,t);return l.jsx(Ih,{scope:t,forceMount:r,children:m.Children.map(n,s=>l.jsx($e,{present:r||a.open,children:l.jsx(Zn,{asChild:!0,container:o,children:s})}))})};Ni.displayName=uo;var rn="DialogOverlay",Ci=m.forwardRef((e,t)=>{const r=wi(rn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(rn,e.__scopeDialog);return a.modal?l.jsx($e,{present:n||a.open,children:l.jsx($h,{...o,ref:t})}):null});Ci.displayName=rn;var Fh=Mn("DialogOverlay.RemoveScroll"),$h=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(rn,r);return l.jsx(oo,{as:Fh,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":ho(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),yt="DialogContent",ji=m.forwardRef((e,t)=>{const r=wi(yt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(yt,e.__scopeDialog);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(Bh,{...o,ref:t}):l.jsx(zh,{...o,ref:t})})});ji.displayName=yt;var Bh=m.forwardRef((e,t)=>{const r=We(yt,e.__scopeDialog),n=m.useRef(null),o=ye(t,r.contentRef,n);return m.useEffect(()=>{const a=n.current;if(a)return Hs(a)},[]),l.jsx(ki,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:me(e.onFocusOutside,a=>a.preventDefault())})}),zh=m.forwardRef((e,t)=>{const r=We(yt,e.__scopeDialog),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(ki,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ki=m.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=We(yt,r),c=m.useRef(null),u=ye(t,c);return es(),l.jsxs(l.Fragment,{children:[l.jsx(In,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(An,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ho(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Yh,{titleId:i.titleId}),l.jsx(Uh,{contentRef:c,descriptionId:i.descriptionId})]})]})}),fo="DialogTitle",Si=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(fo,r);return l.jsx(ge.h2,{id:o.titleId,...n,ref:t})});Si.displayName=fo;var Mi="DialogDescription",Pi=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(Mi,r);return l.jsx(ge.p,{id:o.descriptionId,...n,ref:t})});Pi.displayName=Mi;var Ei="DialogClose",Hh=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(Ei,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});Hh.displayName=Ei;function ho(e){return e?"open":"closed"}var _i="DialogTitleWarning",[Ub,Di]=Cu(_i,{contentName:yt,titleName:fo,docsSlug:"dialog"}),Yh=({titleId:e})=>{const t=Di(_i),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
230
+ `)},hh=0,Ft=[];function mh(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),o=m.useState(hh++)[0],a=m.useState(Gs)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Tf([e.lockRef.current],(e.shards||[]).map(ti),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=m.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var x=Jr(v),w=r.current,N="deltaX"in v?v.deltaX:w[0]-x[0],C="deltaY"in v?v.deltaY:w[1]-x[1],j,D=v.target,k=Math.abs(N)>Math.abs(C)?"h":"v";if("touches"in v&&k==="h"&&D.type==="range")return!1;var H=window.getSelection(),I=H&&H.anchorNode,F=I?I===D||I.contains(D):!1;if(F)return!1;var z=Qs(k,D);if(!z)return!0;if(z?j=k:(j=k==="v"?"h":"v",z=Qs(k,D)),!z)return!1;if(!n.current&&"changedTouches"in v&&(N||C)&&(n.current=j),!j)return!0;var R=n.current||j;return uh(R,b,v,R==="h"?N:C)},[]),c=m.useCallback(function(v){var b=v;if(!(!Ft.length||Ft[Ft.length-1]!==a)){var x="deltaY"in b?ei(b):Jr(b),w=t.current.filter(function(j){return j.name===b.type&&(j.target===b.target||b.target===j.shadowParent)&&dh(j.delta,x)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var N=(s.current.shards||[]).map(ti).filter(Boolean).filter(function(j){return j.contains(b.target)}),C=N.length>0?i(b,N[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(v,b,x,w){var N={name:v,delta:b,target:x,should:w,shadowParent:ph(x)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(C){return C!==N})},1)},[]),d=m.useCallback(function(v){r.current=Jr(v),n.current=void 0},[]),f=m.useCallback(function(v){u(v.type,ei(v),v.target,i(v,e.lockRef.current))},[]),h=m.useCallback(function(v){u(v.type,Jr(v),v.target,i(v,e.lockRef.current))},[]);m.useEffect(function(){return Ft.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,It),document.addEventListener("touchmove",c,It),document.addEventListener("touchstart",d,It),function(){Ft=Ft.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,It),document.removeEventListener("touchmove",c,It),document.removeEventListener("touchstart",d,It)}},[]);var p=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(a,{styles:fh(o)}):null,p?m.createElement(nh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ph(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vh=Yf(qs,mh);var oo=m.forwardRef(function(e,t){return m.createElement(Qr,qe({},e,{ref:t,sideCar:vh}))});oo.classNames=Qr.classNames;var en="Popover",[ri]=Or(en,[Ds]),ur=Ds(),[gh,ft]=ri(en),ni=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ur(t),c=m.useRef(null),[u,d]=m.useState(!1),[f,h]=Bs({prop:n,defaultProp:o??!1,onChange:a,caller:en});return l.jsx(kf,{...i,children:l.jsx(gh,{scope:t,contentId:ze(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:u,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:s,children:r})})};ni.displayName=en;var oi="PopoverAnchor",bh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(oi,r),a=ur(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return m.useEffect(()=>(s(),()=>i()),[s,i]),l.jsx($s,{...a,...n,ref:t})});bh.displayName=oi;var ai="PopoverTrigger",si=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(ai,r),a=ur(r),s=ye(t,o.triggerRef),i=l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":di(o.open),...n,ref:s,onClick:me(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx($s,{asChild:!0,...a,children:i})});si.displayName=ai;var ao="PopoverPortal",[xh,yh]=ri(ao,{forceMount:void 0}),ii=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=ft(ao,t);return l.jsx(xh,{scope:t,forceMount:r,children:l.jsx($e,{present:r||a.open,children:l.jsx(Zn,{asChild:!0,container:o,children:n})})})};ii.displayName=ao;var $t="PopoverContent",li=m.forwardRef((e,t)=>{const r=yh($t,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=ft($t,e.__scopePopover);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(Nh,{...o,ref:t}):l.jsx(Ch,{...o,ref:t})})});li.displayName=$t;var wh=Mn("PopoverContent.RemoveScroll"),Nh=m.forwardRef((e,t)=>{const r=ft($t,e.__scopePopover),n=m.useRef(null),o=ye(t,n),a=m.useRef(!1);return m.useEffect(()=>{const s=n.current;if(s)return Hs(s)},[]),l.jsx(oo,{as:wh,allowPinchZoom:!0,children:l.jsx(ci,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ch=m.forwardRef((e,t)=>{const r=ft($t,e.__scopePopover),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(ci,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ci=m.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=ft($t,r),p=ur(r);return es(),l.jsx(In,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(An,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:l.jsx(Sf,{"data-state":di(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ui="PopoverClose",jh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ft(ui,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});jh.displayName=ui;var kh="PopoverArrow",Sh=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ur(r);return l.jsx(Mf,{...o,...n,ref:t})});Sh.displayName=kh;function di(e){return e?"open":"closed"}var fi=ni,hi=si,mi=ii,so=li;const bt=fi,xt=hi,ht=m.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:n=!0,...o},a)=>{const s=l.jsx(so,{ref:a,align:t,sideOffset:r,className:P("z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o});return n?l.jsx(mi,{children:s}):s});ht.displayName=so.displayName;var pi=1,Mh=.9,Ph=.8,Eh=.17,io=.1,lo=.999,_h=.9999,Dh=.99,Oh=/[\\\/_+.#"@\[\(\{&]/,Rh=/[\\\/_+.#"@\[\(\{&]/g,Ah=/[\s-]/,vi=/[\s-]/g;function co(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?pi:Dh;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),d=0,f,h,p,g;u>=0;)f=co(e,t,r,n,u+1,a+1,s),f>d&&(u===o?f*=pi:Oh.test(e.charAt(u-1))?(f*=Ph,p=e.slice(o,u-1).match(Rh),p&&o>0&&(f*=Math.pow(lo,p.length))):Ah.test(e.charAt(u-1))?(f*=Mh,g=e.slice(o,u-1).match(vi),g&&o>0&&(f*=Math.pow(lo,g.length))):(f*=Eh,o>0&&(f*=Math.pow(lo,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=_h)),(f<io&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(h=co(e,t,r,n,u+1,a+2,s),h*io>f&&(f=h*io)),f>d&&(d=f),u=r.indexOf(c,u+1);return s[i]=d,d}function gi(e){return e.toLowerCase().replace(vi," ")}function Th(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,co(e,t,gi(e),gi(t),0,0,{})}var tn="Dialog",[bi]=Or(tn),[Lh,We]=bi(tn),xi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=m.useRef(null),c=m.useRef(null),[u,d]=Bs({prop:n,defaultProp:o??!1,onChange:a,caller:tn});return l.jsx(Lh,{scope:t,triggerRef:i,contentRef:c,contentId:ze(),titleId:ze(),descriptionId:ze(),open:u,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:s,children:r})};xi.displayName=tn;var yi="DialogTrigger",Wh=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(yi,r),a=ye(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ho(o.open),...n,ref:a,onClick:me(e.onClick,o.onOpenToggle)})});Wh.displayName=yi;var uo="DialogPortal",[Ih,wi]=bi(uo,{forceMount:void 0}),Ni=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=We(uo,t);return l.jsx(Ih,{scope:t,forceMount:r,children:m.Children.map(n,s=>l.jsx($e,{present:r||a.open,children:l.jsx(Zn,{asChild:!0,container:o,children:s})}))})};Ni.displayName=uo;var rn="DialogOverlay",Ci=m.forwardRef((e,t)=>{const r=wi(rn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(rn,e.__scopeDialog);return a.modal?l.jsx($e,{present:n||a.open,children:l.jsx($h,{...o,ref:t})}):null});Ci.displayName=rn;var Fh=Mn("DialogOverlay.RemoveScroll"),$h=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(rn,r);return l.jsx(oo,{as:Fh,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":ho(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),yt="DialogContent",ji=m.forwardRef((e,t)=>{const r=wi(yt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(yt,e.__scopeDialog);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(Bh,{...o,ref:t}):l.jsx(zh,{...o,ref:t})})});ji.displayName=yt;var Bh=m.forwardRef((e,t)=>{const r=We(yt,e.__scopeDialog),n=m.useRef(null),o=ye(t,r.contentRef,n);return m.useEffect(()=>{const a=n.current;if(a)return Hs(a)},[]),l.jsx(ki,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:me(e.onFocusOutside,a=>a.preventDefault())})}),zh=m.forwardRef((e,t)=>{const r=We(yt,e.__scopeDialog),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(ki,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ki=m.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=We(yt,r),c=m.useRef(null),u=ye(t,c);return es(),l.jsxs(l.Fragment,{children:[l.jsx(In,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(An,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ho(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Yh,{titleId:i.titleId}),l.jsx(Uh,{contentRef:c,descriptionId:i.descriptionId})]})]})}),fo="DialogTitle",Si=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(fo,r);return l.jsx(ge.h2,{id:o.titleId,...n,ref:t})});Si.displayName=fo;var Mi="DialogDescription",Pi=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(Mi,r);return l.jsx(ge.p,{id:o.descriptionId,...n,ref:t})});Pi.displayName=Mi;var Ei="DialogClose",Hh=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(Ei,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});Hh.displayName=Ei;function ho(e){return e?"open":"closed"}var _i="DialogTitleWarning",[qb,Di]=Cu(_i,{contentName:yt,titleName:fo,docsSlug:"dialog"}),Yh=({titleId:e})=>{const t=Di(_i),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
231
231
 
232
232
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
233
233
 
@@ -266,4 +266,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
266
266
  border: 3px solid #09090b;
267
267
  box-shadow: 0 0 15px var(--vital-color-60);
268
268
  }
269
- `})]})}function bb({title:e,icon:t,count:r,countLabel:n,children:o,className:a,...s}){return l.jsxs("div",{className:P("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",a),...s,children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(t,{className:"w-6 h-6 text-primary"}),l.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&l.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),l.jsx("div",{className:"flex items-center gap-3",children:o})]})}function xb({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:a,children:s,className:i}){const c=({item:u})=>{if(u.divider)return l.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=u.icon,f=u.route&&t===u.route;return l.jsxs(ee,{variant:"ghost",className:P("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",f?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",i),onClick:()=>{u.onClick&&u.onClick(),u.route&&r&&r(u.route)},title:n?u.label:void 0,children:[l.jsx(d,{className:P("h-5 w-5 shrink-0",f?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&l.jsx("span",{className:P("truncate font-medium",f?"text-foreground":"text-muted-foreground"),children:u.label}),n&&f&&l.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return l.jsxs("div",{className:P("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",i),children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((u,d)=>l.jsx(c,{item:u},d)),s]}),l.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[a,o&&l.jsx("button",{onClick:o,className:P("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?l.jsx(ar,{className:"h-5 w-5"}):l.jsx(Mr,{className:"h-5 w-5"})})]})]})}function yb({items:e,activeRoute:t,onNavigate:r,logo:n,rightContent:o,children:a,className:s}){const i=({item:c})=>{if(c.divider)return l.jsx("div",{className:"mx-2 border-l border-white/5 opacity-50 h-6 self-center"});const u=c.icon,d=c.route&&t===c.route;return l.jsxs(ee,{variant:"ghost",className:P("h-10 justify-start gap-2 relative transition-all duration-200 border px-3",d?"bg-primary/10 text-primary border-primary/50 shadow-[inset_0_-3px_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",s),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},children:[l.jsx(u,{className:P("h-4 w-4 shrink-0",d?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),l.jsx("span",{className:P("truncate font-medium text-sm",d?"text-foreground":"text-muted-foreground"),children:c.label})]})};return l.jsxs("div",{className:P("w-full h-16 flex items-center px-4 border-b border-border bg-card gap-4",s),children:[n&&l.jsx("div",{className:"flex items-center shrink-0 mr-2",children:n}),l.jsxs("div",{className:"flex-1 flex items-center gap-1 overflow-x-auto no-scrollbar",children:[e.map((c,u)=>l.jsx(i,{item:c},u)),a]}),o&&l.jsx("div",{className:"flex items-center gap-2 shrink-0 ml-auto",children:o})]})}const kt=({label:e,className:t,style:r,active:n})=>l.jsx("div",{style:r,className:P("h-8 flex items-center justify-center rounded-md border text-[10px] font-bold transition-all duration-100 select-none shrink-0 shadow-sm",n?"bg-primary text-primary-foreground border-primary shadow-[0_0_15px_rgba(var(--primary),0.5)] scale-90 z-10":"bg-black/40 text-white/70 border-white/20 backdrop-blur-md",t),children:e}),Il=({pressedKeys:e,className:t})=>{const r=o=>e.includes(o.toUpperCase()),n=(o,a,s,i)=>l.jsx(kt,{label:o,active:r(a||o),className:s,style:i});return l.jsxs("div",{className:P("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden",t),children:[l.jsxs("div",{className:"flex flex-col gap-1.5 w-[480px] shrink-0",children:[l.jsxs("div",{className:"flex gap-1.5 mb-1",children:[n("ESC",void 0,"w-10 mr-4"),l.jsxs("div",{className:"flex gap-1",children:[n("F1",void 0,"w-9"),n("F2",void 0,"w-9"),n("F3",void 0,"w-9"),n("F4",void 0,"w-9")]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[n("F5",void 0,"w-9"),n("F6",void 0,"w-9"),n("F7",void 0,"w-9"),n("F8",void 0,"w-9")]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[n("F9",void 0,"w-9"),n("F10",void 0,"w-9"),n("F11",void 0,"w-9"),n("F12",void 0,"w-9")]})]}),l.jsxs("div",{className:"flex gap-1",children:[n("~",void 0,"w-8"),["1","2","3","4","5","6","7","8","9","0","-","="].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("BACK",void 0,"w-16")]}),l.jsxs("div",{className:"flex gap-1",children:[n("TAB",void 0,"w-14"),["Q","W","E","R","T","Y","U","I","O","P","[","]","\\"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o))]}),l.jsxs("div",{className:"flex gap-1",children:[n("CAPS",void 0,"w-16"),["A","S","D","F","G","H","J","K","L",";","'"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("ENTER",void 0,"w-24")]}),l.jsxs("div",{className:"flex gap-1",children:[n("SHIFT",void 0,"w-24"),["Z","X","C","V","B","N","M",",",".","/"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("SHIFT",void 0,"w-28")]}),l.jsxs("div",{className:"flex gap-1",children:[n("CTRL",void 0,"w-14"),n("WIN",void 0,"w-14"),n("ALT",void 0,"w-14"),n("SPACE",void 0,"flex-[6] h-8"),n("ALT",void 0,"w-14"),n("WIN",void 0,"w-14"),n("CTRL",void 0,"w-14")]})]}),l.jsxs("div",{className:"flex flex-col gap-6 shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px]",children:[["INS","HM","PU"].map(o=>{const a=o==="HM"?"HOME":o==="PU"?"PGUP":o;return l.jsx(kt,{label:o,active:r(a),className:"h-8"},o)}),["DEL","END","PD"].map(o=>{const a=o==="PD"?"PGDN":o;return l.jsx(kt,{label:o,active:r(a),className:"h-8"},o)})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px] mt-auto",children:[l.jsx("div",{}),n("UP","UP","h-8"),l.jsx("div",{}),n("LFT","LEFT","h-8"),n("DWN","DOWN","h-8"),n("RGT","RIGHT","h-8")]})]}),l.jsxs("div",{className:"flex flex-col gap-1 w-[130px] shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"flex gap-1",children:[n("NM","NUM","w-8"),n("/","NUM /","w-8"),n("*","NUM *","w-8"),n("-","NUM -","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[n("7","NUM 7","w-8"),n("8","NUM 8","w-8"),n("9","NUM 9","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[n("4","NUM 4","w-8"),n("5","NUM 5","w-8"),n("6","NUM 6","w-8")]})]}),n("+","NUM +","w-8 h-[68px]")]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[n("1","NUM 1","w-8"),n("2","NUM 2","w-8"),n("3","NUM 3","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[n("0","NUM 0","w-[40px]"),n(".","NUM .","w-8")]})]}),n("EN","NUM ENTER","w-8 h-[68px]")]})]}),l.jsxs("div",{className:"flex flex-col gap-2 w-24",children:[l.jsxs("div",{className:"h-32 border border-white/10 rounded-t-[2.5rem] flex relative overflow-hidden bg-black/20",children:[l.jsx("div",{className:P("flex-1 border-r border-white/10 transition-all duration-100",r("LMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:P("flex-1 transition-all duration-100",r("RMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:"absolute top-8 left-1/2 -translate-x-1/2 w-4 h-12 rounded-full border border-white/10 bg-black/40 shadow-inner"})]}),l.jsx("div",{className:"h-20 border border-white/10 rounded-b-[2.5rem] bg-black/20"})]})]})},wb={iceServers:[{urls:"stun:stun.l.google.com:19302"}]};function Nb({playerId:e,className:t,onFpsUpdate:r,autoPlay:n=!0,muted:o=!0,isMock:a=!1,showKeyboard:s=!1,onSendNui:i,onNuiEvent:c,signaling:u,subscribeFromCF:d,webrtcConfig:f,selfId:h,labels:p}){const[g,v]=M.useState(!0),[b,x]=M.useState(null),w=M.useRef(null),N=M.useRef(null),C=M.useRef(null),[j,D]=M.useState([]),k=M.useCallback((H,I)=>(p==null?void 0:p[H])||I,[p]);return M.useEffect(()=>{if(!c)return;const I=c("ReceivePlayerKeys",R=>{const B=R;String(B.id)===String(e)&&D(B.keys)}),F=R=>{if(!a)return;const B={w:"W",a:"A",s:"S",d:"D"," ":"SPACE",Shift:"SHIFT",Control:"CTRL",Alt:"ALT",Tab:"TAB",Enter:"ENTER",Escape:"ESC",Backspace:"BACK",ArrowUp:"UP",ArrowDown:"DWN",ArrowLeft:"LFT",ArrowRight:"RGT","numpad/":"NUM /","numpad*":"NUM *","numpad-":"NUM -","numpad+":"NUM +","numpad.":"NUM .",numpad0:"NUM 0",numpad1:"NUM 1",numpad2:"NUM 2",numpad3:"NUM 3",numpad4:"NUM 4",numpad5:"NUM 5",numpad6:"NUM 6",numpad7:"NUM 7",numpad8:"NUM 8",numpad9:"NUM 9"};let W=B[R.key]||R.key.toUpperCase();if(R.code.startsWith("Numpad")){const L=R.code.replace("Numpad","NUM ");B[R.code.toLowerCase()]?W=B[R.code.toLowerCase()]:W=L,R.code==="NumpadEnter"&&(W="NUM ENTER")}D(L=>R.type==="keydown"?L.includes(W)?L:[...L,W]:L.filter(G=>G!==W))},z=R=>{if(!a)return;const B=R.button===0?"LMB":R.button===2?"RMB":null;B&&D(W=>R.type==="mousedown"?W.includes(B)?W:[...W,B]:W.filter(L=>L!==B))};return a&&(window.addEventListener("keydown",F),window.addEventListener("keyup",F),window.addEventListener("mousedown",z),window.addEventListener("mouseup",z)),()=>{typeof I=="function"&&I(),a&&(window.removeEventListener("keydown",F),window.removeEventListener("keyup",F),window.removeEventListener("mousedown",z),window.removeEventListener("mouseup",z))}},[e,c,a]),M.useEffect(()=>{if(!(!e||a||!i))return i("StartWatchingPlayer",{targetId:e}).catch(()=>{}),()=>{i("StopWatchingPlayer",{targetId:e}).catch(()=>{})}},[e,i,a]),M.useEffect(()=>{if(!(a||!e||!u||!f||!h))return u.init(f.url,"viewer-"+h,f.provider),()=>{u.disconnect()}},[u,f,e,h,a]),M.useEffect(()=>{var R;if(a){queueMicrotask(()=>v(!1));return}if(!e||!h||!u)return;const H=(f==null?void 0:f.provider)||"websocket",I=(f==null?void 0:f.iceServers)||wb.iceServers;if(H==="cloudflare-sfu"&&d){const B=u.onMessage(async W=>{const L=W;if(L.type==="cf-track-ready"&&String(L.sourceId)===String(e))try{const{pc:G,stream:O}=await d(L.sessionId,L.trackName);N.current=G,w.current&&(w.current.srcObject=O,w.current.play().catch(()=>{}),v(!1))}catch{x(k("error_desc","CF SFU subscribe failed"))}});return i==null||i("GetPlayerScreen",{targetId:e}),()=>{typeof B=="function"&&B(),N.current&&N.current.close(),i==null||i("StopPlayerScreen",{targetId:e})}}const F=u.onMessage(async B=>{const W=B;if(W.type==="offer"&&String(W.sourceId)===String(e)){const L=new RTCPeerConnection({iceServers:I});for(N.current=L,L._queue=[],L.oniceconnectionstatechange=()=>{if((L.iceConnectionState==="connected"||L.iceConnectionState==="completed")&&r){const O=setInterval(async()=>{if(!N.current){clearInterval(O);return}try{(await N.current.getStats()).forEach(X=>{X.type==="inbound-rtp"&&X.kind==="video"&&X.framesPerSecond!==void 0&&r(Math.round(X.framesPerSecond))})}catch{}},1e3)}},L.ontrack=O=>{const S=O.streams[0];C.current=S,w.current&&(w.current.srcObject=S,v(!1))},await L.setRemoteDescription(new RTCSessionDescription(W.data));L._queue.length>0;){const O=L._queue.shift();O&&await L.addIceCandidate(new RTCIceCandidate(O))}const G=await L.createAnswer();await L.setLocalDescription(G),u.send({type:"answer",targetId:String(e),sourceId:"viewer-"+h,data:G}),L.onicecandidate=O=>{O.candidate&&u.send({type:"candidate",targetId:String(e),sourceId:"viewer-"+h,data:O.candidate})}}if(W.type==="candidate"&&String(W.sourceId)===String(e)){const L=N.current;L&&L.remoteDescription?await L.addIceCandidate(new RTCIceCandidate(W.data)):L&&(L._queue||(L._queue=[]),L._queue.push(W.data))}}),z=()=>i==null?void 0:i("GetPlayerScreen",{targetId:e});return(R=u.isConnected)!=null&&R.call(u)&&z(),u.onConnect(z),()=>{typeof F=="function"&&F(),N.current&&(N.current.close(),N.current=null),i==null||i("StopPlayerScreen",{targetId:e})}},[e,h,i,f,a,r,u,d,k]),M.useEffect(()=>{w.current&&C.current&&!w.current.srcObject&&(w.current.srcObject=C.current,w.current.play().catch(()=>{}),queueMicrotask(()=>v(!1)))},[]),l.jsxs("div",{className:P("relative bg-black flex items-center justify-center overflow-hidden group rounded-xl border border-white/5 shadow-2xl",t),children:[g&&l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground animate-in fade-in duration-500 z-10 bg-zinc-950/90 backdrop-blur-md",children:[l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-primary/20"}),l.jsx(Ha,{size:"lg"})]}),l.jsx("span",{className:"text-[10px] uppercase font-black tracking-[0.2em] animate-pulse",children:k("connecting","Connecting to feed...")})]}),b&&l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4 text-red-400 z-10 bg-zinc-950/95 backdrop-blur-xl p-8 text-center animate-in zoom-in-95 duration-300",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center border border-red-500/20 shadow-[0_0_20px_rgba(239,68,68,0.1)]",children:l.jsx($c,{className:"w-6 h-6 animate-bounce"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("h4",{className:"text-sm font-black uppercase tracking-widest",children:k("error_title","Connection Failed")}),l.jsx("p",{className:"text-xs text-red-400/60 font-medium max-w-[200px] mx-auto leading-relaxed",children:b})]}),l.jsx(ee,{variant:"ghost",size:"sm",className:"mt-2 text-[10px] uppercase font-bold border border-white/5",onClick:()=>window.location.reload(),children:k("retry","Retry")})]}),a?l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-zinc-900",children:[l.jsx("div",{className:"absolute inset-0 opacity-40 grayscale blur-[4px]",children:l.jsx("video",{src:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",autoPlay:!0,loop:!0,muted:!0,className:"w-full h-full object-cover"})}),l.jsx("div",{className:"absolute inset-0 opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, #fff 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx("div",{className:"relative z-10 flex flex-col items-center gap-4 group/mock",children:l.jsxs("div",{className:"relative",children:[l.jsx(Ma,{className:"w-24 h-24 text-white opacity-10 group-hover/mock:opacity-20 transition-all duration-700 group-hover/mock:scale-110"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx(Ma,{className:"w-12 h-12 text-primary opacity-40 animate-pulse"})})]})}),l.jsxs("div",{className:"absolute bottom-6 left-6 flex items-center gap-3 z-10",children:[l.jsxs("div",{className:"bg-black/80 backdrop-blur-md px-3 py-1.5 rounded-lg text-[9px] text-white/80 border border-white/10 uppercase tracking-[0.15em] font-black flex items-center gap-2 shadow-2xl",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),k("mock_active","Mock Feed Active")," • ID: ",e]}),l.jsx("div",{className:"bg-primary/10 backdrop-blur-md text-primary text-[9px] px-3 py-1.5 rounded-lg border border-primary/20 uppercase tracking-[0.15em] font-black shadow-2xl",children:k("simulator","Simulator")})]}),l.jsx("div",{className:"absolute top-6 left-6 flex items-center gap-2 z-10 animate-in slide-in-from-left duration-700",children:l.jsxs("div",{className:"flex items-center gap-1.5 bg-red-600 px-3 py-1 rounded font-black text-white text-[10px] tracking-widest uppercase shadow-lg shadow-red-600/20",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),k("live","Live")]})})]}):l.jsxs(l.Fragment,{children:[l.jsx("video",{ref:w,className:"w-full h-full object-contain bg-black transition-opacity duration-1000",autoPlay:n,playsInline:!0,muted:o,style:{opacity:g?0:1}}),!g&&!b&&l.jsxs("div",{className:"absolute top-4 left-4 z-10 flex items-center gap-2 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-500",children:[l.jsxs("div",{className:"flex items-center gap-1.5 bg-red-600 px-2 py-0.5 rounded-sm font-black text-white text-[9px] tracking-widest uppercase shadow-lg shadow-red-600/30",children:[l.jsx("div",{className:"w-1 h-1 rounded-full bg-white animate-pulse"}),k("live","Live")]}),l.jsxs("div",{className:"bg-black/60 backdrop-blur px-2 py-0.5 rounded-sm text-[9px] text-zinc-300 font-mono border border-white/10 flex items-center gap-1.5",children:[l.jsx(eu,{size:10,className:"text-green-500"}),k("stable","Stable")]})]})]}),s&&l.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 w-full max-w-[900px] px-4 pointer-events-none z-20 animate-in fade-in slide-in-from-bottom-6 duration-700 cubic-bezier(0.16, 1, 0.3, 1)",children:l.jsx(Il,{pressedKeys:j,className:"scale-[0.55] lg:scale-[0.65] origin-bottom shadow-[0_20px_50px_rgba(0,0,0,0.5)] pointer-events-auto backdrop-blur-sm"})}),l.jsx("div",{className:"absolute inset-0 pointer-events-none shadow-[inset_0_0_100px_rgba(0,0,0,0.5)] opacity-40"})]})}A.MriActionCard=Sm,A.MriActionModal=Mm,A.MriBadge=jn,A.MriBanIcon=fu,A.MriBringIcon=nu,A.MriButton=ee,A.MriCalendar=Wo,A.MriCard=Ya,A.MriCardContent=Ga,A.MriCardDescription=qa,A.MriCardFooter=Xa,A.MriCardHeader=Va,A.MriCardTitle=Ua,A.MriClothingIcon=lu,A.MriColorPicker=mb,A.MriCommand=Ht,A.MriCommandEmpty=Vt,A.MriCommandGroup=Ut,A.MriCommandInput=Yt,A.MriCommandItem=Nt,A.MriCommandList=hr,A.MriCommandSeparator=Yi,A.MriCommandShortcut=Vi,A.MriCompactSearch=dm,A.MriCopyButton=jm,A.MriDatePicker=zg,A.MriDialog=fm,A.MriEconomyCard=km,A.MriEyeIcon=cu,A.MriGridActionButton=Pm,A.MriInput=_r,A.MriKeyboardVisualizer=Il,A.MriKickIcon=du,A.MriModal=on,A.MriMoneyIcon=iu,A.MriPageHeader=bb,A.MriPlayerScreenStream=Nb,A.MriPlayerVitals=pb,A.MriPopover=bt,A.MriPopoverContent=ht,A.MriPopoverTrigger=xt,A.MriReviveIcon=au,A.MriScrollArea=sr,A.MriScrollBar=On,A.MriSearchInput=Em,A.MriSectionHeader=_m,A.MriSelect=pm,A.MriSendBackIcon=ou,A.MriSidebar=xb,A.MriSpinner=Ha,A.MriStatusBadge=Bu,A.MriTeleportIcon=ru,A.MriThemeToggle=ym,A.MriTimePicker=Cm,A.MriTopbar=yb,A.MriVerifyIcon=su,A.MriVitalAdjustModal=gb,A.MriWarnIcon=uu,A.cn=P,A.mriBadgeVariants=da,A.mriButtonVariants=Sr,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
269
+ `})]})}function bb({title:e,icon:t,count:r,countLabel:n,children:o,className:a,...s}){return l.jsxs("div",{className:P("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",a),...s,children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(t,{className:"w-6 h-6 text-primary"}),l.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&l.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),l.jsx("div",{className:"flex items-center gap-3",children:o})]})}function xb({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:a,children:s,className:i}){const c=({item:u})=>{if(u.divider)return l.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=u.icon,f=u.route&&t===u.route;return l.jsxs(ee,{variant:"ghost",className:P("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",f?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",i),onClick:()=>{u.onClick&&u.onClick(),u.route&&r&&r(u.route)},title:n?u.label:void 0,children:[l.jsx(d,{className:P("h-5 w-5 shrink-0",f?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&l.jsx("span",{className:P("truncate font-medium",f?"text-foreground":"text-muted-foreground"),children:u.label}),n&&f&&l.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return l.jsxs("div",{className:P("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",i),children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((u,d)=>l.jsx(c,{item:u},d)),s]}),l.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[a,o&&l.jsx("button",{onClick:o,className:P("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?l.jsx(ar,{className:"h-5 w-5"}):l.jsx(Mr,{className:"h-5 w-5"})})]})]})}function yb({items:e,activeRoute:t,onNavigate:r,logo:n,rightContent:o,children:a,className:s}){const i=({item:c})=>{if(c.divider)return l.jsx("div",{className:"mx-2 border-l border-white/5 opacity-50 h-6 self-center"});const u=c.icon,d=c.route&&t===c.route;return l.jsxs(ee,{variant:"ghost",className:P("h-10 justify-start gap-2 relative transition-all duration-200 border px-3",d?"bg-primary/10 text-primary border-primary/50 shadow-[inset_0_-3px_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",s),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},children:[l.jsx(u,{className:P("h-4 w-4 shrink-0",d?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),l.jsx("span",{className:P("truncate font-medium text-sm",d?"text-foreground":"text-muted-foreground"),children:c.label})]})};return l.jsxs("div",{className:P("w-full h-16 flex items-center px-4 border-b border-border bg-card gap-4",s),children:[n&&l.jsx("div",{className:"flex items-center shrink-0 mr-2",children:n}),l.jsxs("div",{className:"flex-1 flex items-center gap-1 overflow-x-auto no-scrollbar",children:[e.map((c,u)=>l.jsx(i,{item:c},u)),a]}),o&&l.jsx("div",{className:"flex items-center gap-2 shrink-0 ml-auto",children:o})]})}const kt=({label:e,className:t,style:r,active:n})=>l.jsx("div",{style:r,className:P("h-8 flex items-center justify-center rounded-md border text-[10px] font-bold transition-all duration-100 select-none shrink-0 shadow-sm",n?"bg-primary text-primary-foreground border-primary shadow-[0_0_15px_rgba(var(--primary),0.5)] scale-90 z-10":"bg-black/40 text-white/70 border-white/20 backdrop-blur-md",t),children:e}),Il=({pressedKeys:e,className:t})=>{const r=o=>e.includes(o.toUpperCase()),n=(o,a,s,i)=>l.jsx(kt,{label:o,active:r(a||o),className:s,style:i});return l.jsxs("div",{className:P("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden",t),children:[l.jsxs("div",{className:"flex flex-col gap-1.5 w-[480px] shrink-0",children:[l.jsxs("div",{className:"flex gap-1.5 mb-1",children:[n("ESC",void 0,"w-10 mr-4"),l.jsxs("div",{className:"flex gap-1",children:[n("F1",void 0,"w-9"),n("F2",void 0,"w-9"),n("F3",void 0,"w-9"),n("F4",void 0,"w-9")]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[n("F5",void 0,"w-9"),n("F6",void 0,"w-9"),n("F7",void 0,"w-9"),n("F8",void 0,"w-9")]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[n("F9",void 0,"w-9"),n("F10",void 0,"w-9"),n("F11",void 0,"w-9"),n("F12",void 0,"w-9")]})]}),l.jsxs("div",{className:"flex gap-1",children:[n("~",void 0,"w-8"),["1","2","3","4","5","6","7","8","9","0","-","="].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("BACK",void 0,"w-16")]}),l.jsxs("div",{className:"flex gap-1",children:[n("TAB",void 0,"w-14"),["Q","W","E","R","T","Y","U","I","O","P","[","]","\\"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o))]}),l.jsxs("div",{className:"flex gap-1",children:[n("CAPS",void 0,"w-16"),["A","S","D","F","G","H","J","K","L",";","'"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("ENTER",void 0,"w-24")]}),l.jsxs("div",{className:"flex gap-1",children:[n("SHIFT",void 0,"w-24"),["Z","X","C","V","B","N","M",",",".","/"].map(o=>l.jsx(kt,{label:o,active:r(o),className:"flex-1"},o)),n("SHIFT",void 0,"w-28")]}),l.jsxs("div",{className:"flex gap-1",children:[n("CTRL",void 0,"w-14"),n("WIN",void 0,"w-14"),n("ALT",void 0,"w-14"),n("SPACE",void 0,"flex-[6] h-8"),n("ALT",void 0,"w-14"),n("WIN",void 0,"w-14"),n("CTRL",void 0,"w-14")]})]}),l.jsxs("div",{className:"flex flex-col gap-6 shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px]",children:[["INS","HM","PU"].map(o=>{const a=o==="HM"?"HOME":o==="PU"?"PGUP":o;return l.jsx(kt,{label:o,active:r(a),className:"h-8"},o)}),["DEL","END","PD"].map(o=>{const a=o==="PD"?"PGDN":o;return l.jsx(kt,{label:o,active:r(a),className:"h-8"},o)})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px] mt-auto",children:[l.jsx("div",{}),n("UP","UP","h-8"),l.jsx("div",{}),n("LFT","LEFT","h-8"),n("DWN","DOWN","h-8"),n("RGT","RIGHT","h-8")]})]}),l.jsxs("div",{className:"flex flex-col gap-1 w-[130px] shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"flex gap-1",children:[n("NM","NUM","w-8"),n("/","NUM /","w-8"),n("*","NUM *","w-8"),n("-","NUM -","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[n("7","NUM 7","w-8"),n("8","NUM 8","w-8"),n("9","NUM 9","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[n("4","NUM 4","w-8"),n("5","NUM 5","w-8"),n("6","NUM 6","w-8")]})]}),n("+","NUM +","w-8 h-[68px]")]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[n("1","NUM 1","w-8"),n("2","NUM 2","w-8"),n("3","NUM 3","w-8")]}),l.jsxs("div",{className:"flex gap-1",children:[n("0","NUM 0","w-[40px]"),n(".","NUM .","w-8")]})]}),n("EN","NUM ENTER","w-8 h-[68px]")]})]}),l.jsxs("div",{className:"flex flex-col gap-2 w-24",children:[l.jsxs("div",{className:"h-32 border border-white/10 rounded-t-[2.5rem] flex relative overflow-hidden bg-black/20",children:[l.jsx("div",{className:P("flex-1 border-r border-white/10 transition-all duration-100",r("LMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:P("flex-1 transition-all duration-100",r("RMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:"absolute top-8 left-1/2 -translate-x-1/2 w-4 h-12 rounded-full border border-white/10 bg-black/40 shadow-inner"})]}),l.jsx("div",{className:"h-20 border border-white/10 rounded-b-[2.5rem] bg-black/20"})]})]})},wb={iceServers:[{urls:"stun:stun.l.google.com:19302"}]};function Nb({playerId:e,className:t,onFpsUpdate:r,autoPlay:n=!0,muted:o=!0,isMock:a=!1,showKeyboard:s=!1,onSendNui:i,onNuiEvent:c,signaling:u,subscribeFromCF:d,webrtcConfig:f,selfId:h,labels:p}){const[g,v]=M.useState(!0),[b,x]=M.useState(null),w=M.useRef(null),N=M.useRef(null),C=M.useRef(null),[j,D]=M.useState([]),k=M.useCallback((H,I)=>(p==null?void 0:p[H])||I,[p]);return M.useEffect(()=>{if(!c)return;const I=c("ReceivePlayerKeys",R=>{const B=R;String(B.id)===String(e)&&D(B.keys)}),F=R=>{if(!a)return;const B={w:"W",a:"A",s:"S",d:"D"," ":"SPACE",Shift:"SHIFT",Control:"CTRL",Alt:"ALT",Tab:"TAB",Enter:"ENTER",Escape:"ESC",Backspace:"BACK",ArrowUp:"UP",ArrowDown:"DWN",ArrowLeft:"LFT",ArrowRight:"RGT","numpad/":"NUM /","numpad*":"NUM *","numpad-":"NUM -","numpad+":"NUM +","numpad.":"NUM .",numpad0:"NUM 0",numpad1:"NUM 1",numpad2:"NUM 2",numpad3:"NUM 3",numpad4:"NUM 4",numpad5:"NUM 5",numpad6:"NUM 6",numpad7:"NUM 7",numpad8:"NUM 8",numpad9:"NUM 9"};let W=B[R.key]||R.key.toUpperCase();if(R.code.startsWith("Numpad")){const L=R.code.replace("Numpad","NUM ");B[R.code.toLowerCase()]?W=B[R.code.toLowerCase()]:W=L,R.code==="NumpadEnter"&&(W="NUM ENTER")}D(L=>R.type==="keydown"?L.includes(W)?L:[...L,W]:L.filter(G=>G!==W))},z=R=>{if(!a)return;const B=R.button===0?"LMB":R.button===2?"RMB":null;B&&D(W=>R.type==="mousedown"?W.includes(B)?W:[...W,B]:W.filter(L=>L!==B))};return a&&(window.addEventListener("keydown",F),window.addEventListener("keyup",F),window.addEventListener("mousedown",z),window.addEventListener("mouseup",z)),()=>{typeof I=="function"&&I(),a&&(window.removeEventListener("keydown",F),window.removeEventListener("keyup",F),window.removeEventListener("mousedown",z),window.removeEventListener("mouseup",z))}},[e,c,a]),M.useEffect(()=>{if(!(!e||a||!i))return i("StartWatchingPlayer",{targetId:e}).catch(()=>{}),()=>{i("StopWatchingPlayer",{targetId:e}).catch(()=>{})}},[e,i,a]),M.useEffect(()=>{if(!(a||!e||!u||!f||!h))return u.init(f.url,"viewer-"+h,f.provider),()=>{u.disconnect()}},[u,f,e,h,a]),M.useEffect(()=>{var R;if(a){queueMicrotask(()=>v(!1));return}if(!e||!h||!u)return;const H=(f==null?void 0:f.provider)||"websocket",I=(f==null?void 0:f.iceServers)||wb.iceServers;if(H==="cloudflare-sfu"&&d){const B=u.onMessage(async W=>{const L=W;if(L.type==="cf-track-ready"&&String(L.sourceId)===String(e))try{const{pc:G,stream:O}=await d(L.sessionId,L.trackName);N.current=G,w.current&&(w.current.srcObject=O,w.current.play().catch(()=>{}),v(!1))}catch{x(k("error_desc","CF SFU subscribe failed"))}});return i==null||i("GetPlayerScreen",{targetId:e}),()=>{typeof B=="function"&&B(),N.current&&N.current.close(),i==null||i("StopPlayerScreen",{targetId:e})}}const F=u.onMessage(async B=>{const W=B;if(W.type==="offer"&&String(W.sourceId)===String(e)){const L=new RTCPeerConnection({iceServers:I});for(N.current=L,L._queue=[],L.oniceconnectionstatechange=()=>{if((L.iceConnectionState==="connected"||L.iceConnectionState==="completed")&&r){const O=setInterval(async()=>{if(!N.current){clearInterval(O);return}try{(await N.current.getStats()).forEach(X=>{X.type==="inbound-rtp"&&X.kind==="video"&&X.framesPerSecond!==void 0&&r(Math.round(X.framesPerSecond))})}catch{}},1e3)}},L.ontrack=O=>{const S=O.streams[0];C.current=S,w.current&&(w.current.srcObject=S,v(!1))},await L.setRemoteDescription(new RTCSessionDescription(W.data));L._queue.length>0;){const O=L._queue.shift();O&&await L.addIceCandidate(new RTCIceCandidate(O))}const G=await L.createAnswer();await L.setLocalDescription(G),u.send({type:"answer",targetId:String(e),sourceId:"viewer-"+h,data:G}),L.onicecandidate=O=>{O.candidate&&u.send({type:"candidate",targetId:String(e),sourceId:"viewer-"+h,data:O.candidate})}}if(W.type==="candidate"&&String(W.sourceId)===String(e)){const L=N.current;L&&L.remoteDescription?await L.addIceCandidate(new RTCIceCandidate(W.data)):L&&(L._queue||(L._queue=[]),L._queue.push(W.data))}}),z=()=>i==null?void 0:i("GetPlayerScreen",{targetId:e});return(R=u.isConnected)!=null&&R.call(u)&&z(),u.onConnect(z),()=>{typeof F=="function"&&F(),N.current&&(N.current.close(),N.current=null),i==null||i("StopPlayerScreen",{targetId:e})}},[e,h,i,f,a,r,u,d,k]),M.useEffect(()=>{w.current&&C.current&&!w.current.srcObject&&(w.current.srcObject=C.current,w.current.play().catch(()=>{}),queueMicrotask(()=>v(!1)))},[]),l.jsxs("div",{className:P("relative bg-black flex items-center justify-center overflow-hidden group rounded-xl border border-white/5 shadow-2xl",t),children:[g&&l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground animate-in fade-in duration-500 z-10 bg-zinc-950/90 backdrop-blur-md",children:[l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"absolute inset-0 animate-ping rounded-full bg-primary/20"}),l.jsx(Ha,{size:"lg"})]}),l.jsx("span",{className:"text-[10px] uppercase font-black tracking-[0.2em] animate-pulse",children:k("connecting","Connecting to feed...")})]}),b&&l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4 text-red-400 z-10 bg-zinc-950/95 backdrop-blur-xl p-8 text-center animate-in zoom-in-95 duration-300",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center border border-red-500/20 shadow-[0_0_20px_rgba(239,68,68,0.1)]",children:l.jsx($c,{className:"w-6 h-6 animate-bounce"})}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("h4",{className:"text-sm font-black uppercase tracking-widest",children:k("error_title","Connection Failed")}),l.jsx("p",{className:"text-xs text-red-400/60 font-medium max-w-[200px] mx-auto leading-relaxed",children:b})]}),l.jsx(ee,{variant:"ghost",size:"sm",className:"mt-2 text-[10px] uppercase font-bold border border-white/5",onClick:()=>window.location.reload(),children:k("retry","Retry")})]}),a?l.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-zinc-900",children:[l.jsx("div",{className:"absolute inset-0 opacity-40 grayscale blur-[4px]",children:l.jsx("video",{src:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",autoPlay:!0,loop:!0,muted:!0,className:"w-full h-full object-cover"})}),l.jsx("div",{className:"absolute inset-0 opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, #fff 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx("div",{className:"relative z-10 flex flex-col items-center gap-4 group/mock",children:l.jsxs("div",{className:"relative",children:[l.jsx(Ma,{className:"w-24 h-24 text-white opacity-10 group-hover/mock:opacity-20 transition-all duration-700 group-hover/mock:scale-110"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx(Ma,{className:"w-12 h-12 text-primary opacity-40 animate-pulse"})})]})}),l.jsxs("div",{className:"absolute bottom-6 left-6 flex items-center gap-3 z-10",children:[l.jsxs("div",{className:"bg-black/80 backdrop-blur-md px-3 py-1.5 rounded-lg text-[9px] text-white/80 border border-white/10 uppercase tracking-[0.15em] font-black flex items-center gap-2 shadow-2xl",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.6)]"}),k("mock_active","Mock Feed Active")," • ID: ",e]}),l.jsx("div",{className:"bg-primary/10 backdrop-blur-md text-primary text-[9px] px-3 py-1.5 rounded-lg border border-primary/20 uppercase tracking-[0.15em] font-black shadow-2xl",children:k("simulator","Simulator")})]}),l.jsx("div",{className:"absolute top-6 left-6 flex items-center gap-2 z-10 animate-in slide-in-from-left duration-700",children:l.jsxs("div",{className:"flex items-center gap-1.5 bg-red-600 px-3 py-1 rounded font-black text-white text-[10px] tracking-widest uppercase shadow-lg shadow-red-600/20",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),k("live","Live")]})})]}):l.jsxs(l.Fragment,{children:[l.jsx("video",{ref:w,className:"w-full h-full object-contain bg-black transition-opacity duration-1000",autoPlay:n,playsInline:!0,muted:o,style:{opacity:g?0:1}}),!g&&!b&&l.jsxs("div",{className:"absolute top-4 left-4 z-10 flex items-center gap-2 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-500",children:[l.jsxs("div",{className:"flex items-center gap-1.5 bg-red-600 px-2 py-0.5 rounded-sm font-black text-white text-[9px] tracking-widest uppercase shadow-lg shadow-red-600/30",children:[l.jsx("div",{className:"w-1 h-1 rounded-full bg-white animate-pulse"}),k("live","Live")]}),l.jsxs("div",{className:"bg-black/60 backdrop-blur px-2 py-0.5 rounded-sm text-[9px] text-zinc-300 font-mono border border-white/10 flex items-center gap-1.5",children:[l.jsx(eu,{size:10,className:"text-green-500"}),k("stable","Stable")]})]})]}),s&&l.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 w-full max-w-[900px] px-4 pointer-events-none z-20 animate-in fade-in slide-in-from-bottom-6 duration-700 cubic-bezier(0.16, 1, 0.3, 1)",children:l.jsx(Il,{pressedKeys:j,className:"scale-[0.55] lg:scale-[0.65] origin-bottom shadow-[0_20px_50px_rgba(0,0,0,0.5)] pointer-events-auto backdrop-blur-sm"})}),l.jsx("div",{className:"absolute inset-0 pointer-events-none shadow-[inset_0_0_100px_rgba(0,0,0,0.5)] opacity-40"})]})}function Cb({sidebar:e,topbar:t,header:r,footer:n,children:o,sidebarPosition:a="left",topbarPlacement:s="aside",className:i,contentClassName:c,mainClassName:u}){const d=e?l.jsx("aside",{className:"shrink-0 h-full",children:e}):null,f=l.jsxs("div",{className:P("flex-1 flex flex-col min-w-0 h-full",c),children:[s==="aside"&&t,r,l.jsx("main",{className:P("flex-1 overflow-y-auto bg-background text-foreground",u),children:o}),n&&l.jsx("footer",{className:"shrink-0 border-t border-border bg-card",children:n})]}),h=l.jsxs("div",{className:"flex-1 flex min-h-0",children:[a==="left"&&d,f,a==="right"&&d]});return l.jsxs("div",{className:P("h-screen w-full flex flex-col bg-background text-foreground overflow-hidden",i),children:[s==="below"&&t,h]})}A.MriActionCard=Sm,A.MriActionModal=Mm,A.MriBadge=jn,A.MriBanIcon=fu,A.MriBringIcon=nu,A.MriButton=ee,A.MriCalendar=Wo,A.MriCard=Ya,A.MriCardContent=Ga,A.MriCardDescription=qa,A.MriCardFooter=Xa,A.MriCardHeader=Va,A.MriCardTitle=Ua,A.MriClothingIcon=lu,A.MriColorPicker=mb,A.MriCommand=Ht,A.MriCommandEmpty=Vt,A.MriCommandGroup=Ut,A.MriCommandInput=Yt,A.MriCommandItem=Nt,A.MriCommandList=hr,A.MriCommandSeparator=Yi,A.MriCommandShortcut=Vi,A.MriCompactSearch=dm,A.MriCopyButton=jm,A.MriDashboardLayout=Cb,A.MriDatePicker=zg,A.MriDialog=fm,A.MriEconomyCard=km,A.MriEyeIcon=cu,A.MriGridActionButton=Pm,A.MriInput=_r,A.MriKeyboardVisualizer=Il,A.MriKickIcon=du,A.MriModal=on,A.MriMoneyIcon=iu,A.MriPageHeader=bb,A.MriPlayerScreenStream=Nb,A.MriPlayerVitals=pb,A.MriPopover=bt,A.MriPopoverContent=ht,A.MriPopoverTrigger=xt,A.MriReviveIcon=au,A.MriScrollArea=sr,A.MriScrollBar=On,A.MriSearchInput=Em,A.MriSectionHeader=_m,A.MriSelect=pm,A.MriSendBackIcon=ou,A.MriSidebar=xb,A.MriSpinner=Ha,A.MriStatusBadge=Bu,A.MriTeleportIcon=ru,A.MriThemeToggle=ym,A.MriTimePicker=Cm,A.MriTopbar=yb,A.MriVerifyIcon=su,A.MriVitalAdjustModal=gb,A.MriWarnIcon=uu,A.cn=P,A.mriBadgeVariants=da,A.mriButtonVariants=Sr,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});