@mobielnl/elements 0.1.1 → 0.2.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.
@@ -1,4 +1,4 @@
1
- (function($t,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):($t=typeof globalThis<"u"?globalThis:$t||self,f($t.Elements={},$t.React,$t.ReactDOM))})(this,function($t,f,Bn){"use strict";"use client";var process=typeof globalThis<"u"&&globalThis.process?globalThis.process:{env:{NODE_ENV:"production"}};function x1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Nt=x1(f);var Ci={exports:{}},Do={};/**
1
+ (function(Et,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Et=typeof globalThis<"u"?globalThis:Et||self,f(Et.Elements={},Et.React,Et.ReactDOM))})(this,function(Et,f,Kn){"use strict";"use client";var process=typeof globalThis<"u"&&globalThis.process?globalThis.process:{env:{NODE_ENV:"production"}};function o1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const At=o1(f);var $i={exports:{}},Mo={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var wd;function w1(){if(wd)return Do;wd=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:h,ref:p,props:d,_owner:o.current}}return Do.Fragment=r,Do.jsx=s,Do.jsxs=s,Do}var Ao={};/**
9
+ */var dd;function i1(){if(dd)return Mo;dd=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:p,ref:h,props:d,_owner:o.current}}return Mo.Fragment=r,Mo.jsx=s,Mo.jsxs=s,Mo}var Do={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,44 +14,55 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $d;function $1(){return $d||($d=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function x(O){if(O===null||typeof O!="object")return null;var X=g&&O[g]||O[m];return typeof X=="function"?X:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(O){{for(var X=arguments.length,oe=new Array(X>1?X-1:0),ge=1;ge<X;ge++)oe[ge-1]=arguments[ge];S("error",O,oe)}}function S(O,X,oe){{var ge=v.ReactDebugCurrentFrame,re=ge.getStackAddendum();re!==""&&(X+="%s",oe=oe.concat([re]));var Me=oe.map(function(_e){return String(_e)});Me.unshift("Warning: "+X),Function.prototype.apply.call(console[O],console,Me)}}var C=!1,T=!1,k=!1,D=!1,E=!1,V;V=Symbol.for("react.module.reference");function F(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===i||E||O===o||O===c||O===u||D||O===p||C||T||k||typeof O=="object"&&O!==null&&(O.$$typeof===h||O.$$typeof===d||O.$$typeof===s||O.$$typeof===a||O.$$typeof===l||O.$$typeof===V||O.getModuleId!==void 0))}function b(O,X,oe){var ge=O.displayName;if(ge)return ge;var re=X.displayName||X.name||"";return re!==""?oe+"("+re+")":oe}function M(O){return O.displayName||"Context"}function A(O){if(O==null)return null;if(typeof O.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case a:var X=O;return M(X)+".Consumer";case s:var oe=O;return M(oe._context)+".Provider";case l:return b(O,O.render,"ForwardRef");case d:var ge=O.displayName||null;return ge!==null?ge:A(O.type)||"Memo";case h:{var re=O,Me=re._payload,_e=re._init;try{return A(_e(Me))}catch{return null}}}return null}var I=Object.assign,N=0,w,P,_,B,L,K,z;function W(){}W.__reactDisabledLog=!0;function U(){{if(N===0){w=console.log,P=console.info,_=console.warn,B=console.error,L=console.group,K=console.groupCollapsed,z=console.groupEnd;var O={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}N++}}function ee(){{if(N--,N===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},O,{value:w}),info:I({},O,{value:P}),warn:I({},O,{value:_}),error:I({},O,{value:B}),group:I({},O,{value:L}),groupCollapsed:I({},O,{value:K}),groupEnd:I({},O,{value:z})})}N<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=v.ReactCurrentDispatcher,R;function he(O,X,oe){{if(R===void 0)try{throw Error()}catch(re){var ge=re.stack.trim().match(/\n( *(at )?)/);R=ge&&ge[1]||""}return`
18
- `+R+O}}var fe=!1,Q;{var se=typeof WeakMap=="function"?WeakMap:Map;Q=new se}function q(O,X){if(!O||fe)return"";{var oe=Q.get(O);if(oe!==void 0)return oe}var ge;fe=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Me;Me=Z.current,Z.current=null,U();try{if(X){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(Ot){ge=Ot}Reflect.construct(O,[],_e)}else{try{_e.call()}catch(Ot){ge=Ot}O.call(_e.prototype)}}else{try{throw Error()}catch(Ot){ge=Ot}O()}}catch(Ot){if(Ot&&ge&&typeof Ot.stack=="string"){for(var Ce=Ot.stack.split(`
19
- `),Ct=ge.stack.split(`
20
- `),tt=Ce.length-1,ot=Ct.length-1;tt>=1&&ot>=0&&Ce[tt]!==Ct[ot];)ot--;for(;tt>=1&&ot>=0;tt--,ot--)if(Ce[tt]!==Ct[ot]){if(tt!==1||ot!==1)do if(tt--,ot--,ot<0||Ce[tt]!==Ct[ot]){var Ht=`
21
- `+Ce[tt].replace(" at new "," at ");return O.displayName&&Ht.includes("<anonymous>")&&(Ht=Ht.replace("<anonymous>",O.displayName)),typeof O=="function"&&Q.set(O,Ht),Ht}while(tt>=1&&ot>=0);break}}}finally{fe=!1,Z.current=Me,ee(),Error.prepareStackTrace=re}var en=O?O.displayName||O.name:"",Nr=en?he(en):"";return typeof O=="function"&&Q.set(O,Nr),Nr}function Y(O,X,oe){return q(O,!1)}function de(O){var X=O.prototype;return!!(X&&X.isReactComponent)}function ae(O,X,oe){if(O==null)return"";if(typeof O=="function")return q(O,de(O));if(typeof O=="string")return he(O);switch(O){case c:return he("Suspense");case u:return he("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case l:return Y(O.render);case d:return ae(O.type,X,oe);case h:{var ge=O,re=ge._payload,Me=ge._init;try{return ae(Me(re),X,oe)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,we={},De=v.ReactDebugCurrentFrame;function xe(O){if(O){var X=O._owner,oe=ae(O.type,O._source,X?X.type:null);De.setExtraStackFrame(oe)}else De.setExtraStackFrame(null)}function te(O,X,oe,ge,re){{var Me=Function.call.bind(ie);for(var _e in O)if(Me(O,_e)){var Ce=void 0;try{if(typeof O[_e]!="function"){var Ct=Error((ge||"React class")+": "+oe+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ct.name="Invariant Violation",Ct}Ce=O[_e](X,_e,ge,oe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(tt){Ce=tt}Ce&&!(Ce instanceof Error)&&(xe(re),$("%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).",ge||"React class",oe,_e,typeof Ce),xe(null)),Ce instanceof Error&&!(Ce.message in we)&&(we[Ce.message]=!0,xe(re),$("Failed %s type: %s",oe,Ce.message),xe(null))}}}var je=Array.isArray;function Ee(O){return je(O)}function Ke(O){{var X=typeof Symbol=="function"&&Symbol.toStringTag,oe=X&&O[Symbol.toStringTag]||O.constructor.name||"Object";return oe}}function lt(O){try{return Te(O),!1}catch{return!0}}function Te(O){return""+O}function Ge(O){if(lt(O))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(O)),Te(O)}var ft=v.ReactCurrentOwner,Ft={key:!0,ref:!0,__self:!0,__source:!0},Oe,St;function Mt(O){if(ie.call(O,"ref")){var X=Object.getOwnPropertyDescriptor(O,"ref").get;if(X&&X.isReactWarning)return!1}return O.ref!==void 0}function Dt(O){if(ie.call(O,"key")){var X=Object.getOwnPropertyDescriptor(O,"key").get;if(X&&X.isReactWarning)return!1}return O.key!==void 0}function Wt(O,X){typeof O.ref=="string"&&ft.current}function qe(O,X){{var oe=function(){Oe||(Oe=!0,$("%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)",X))};oe.isReactWarning=!0,Object.defineProperty(O,"key",{get:oe,configurable:!0})}}function Ar(O,X){{var oe=function(){St||(St=!0,$("%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)",X))};oe.isReactWarning=!0,Object.defineProperty(O,"ref",{get:oe,configurable:!0})}}var cr=function(O,X,oe,ge,re,Me,_e){var Ce={$$typeof:t,type:O,key:X,ref:oe,props:_e,_owner:Me};return Ce._store={},Object.defineProperty(Ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(Ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(Ce.props),Object.freeze(Ce)),Ce};function Jr(O,X,oe,ge,re){{var Me,_e={},Ce=null,Ct=null;oe!==void 0&&(Ge(oe),Ce=""+oe),Dt(X)&&(Ge(X.key),Ce=""+X.key),Mt(X)&&(Ct=X.ref,Wt(X,re));for(Me in X)ie.call(X,Me)&&!Ft.hasOwnProperty(Me)&&(_e[Me]=X[Me]);if(O&&O.defaultProps){var tt=O.defaultProps;for(Me in tt)_e[Me]===void 0&&(_e[Me]=tt[Me])}if(Ce||Ct){var ot=typeof O=="function"?O.displayName||O.name||"Unknown":O;Ce&&qe(_e,ot),Ct&&Ar(_e,ot)}return cr(O,Ce,Ct,re,ge,ft.current,_e)}}var Vt=v.ReactCurrentOwner,Pe=v.ReactDebugCurrentFrame;function Fe(O){if(O){var X=O._owner,oe=ae(O.type,O._source,X?X.type:null);Pe.setExtraStackFrame(oe)}else Pe.setExtraStackFrame(null)}var At;At=!1;function wt(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function ir(){{if(Vt.current){var O=A(Vt.current.type);if(O)return`
17
+ */var fd;function s1(){return fd||(fd=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function x(O){if(O===null||typeof O!="object")return null;var J=m&&O[m]||O[g];return typeof J=="function"?J:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(O){{for(var J=arguments.length,ie=new Array(J>1?J-1:0),ve=1;ve<J;ve++)ie[ve-1]=arguments[ve];C("error",O,ie)}}function C(O,J,ie){{var ve=v.ReactDebugCurrentFrame,re=ve.getStackAddendum();re!==""&&(J+="%s",ie=ie.concat([re]));var Ae=ie.map(function(De){return String(De)});Ae.unshift("Warning: "+J),Function.prototype.apply.call(console[O],console,Ae)}}var S=!1,T=!1,k=!1,D=!1,E=!1,V;V=Symbol.for("react.module.reference");function F(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===i||E||O===o||O===c||O===u||D||O===h||S||T||k||typeof O=="object"&&O!==null&&(O.$$typeof===p||O.$$typeof===d||O.$$typeof===s||O.$$typeof===a||O.$$typeof===l||O.$$typeof===V||O.getModuleId!==void 0))}function y(O,J,ie){var ve=O.displayName;if(ve)return ve;var re=J.displayName||J.name||"";return re!==""?ie+"("+re+")":ie}function M(O){return O.displayName||"Context"}function A(O){if(O==null)return null;if(typeof O.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case a:var J=O;return M(J)+".Consumer";case s:var ie=O;return M(ie._context)+".Provider";case l:return y(O,O.render,"ForwardRef");case d:var ve=O.displayName||null;return ve!==null?ve:A(O.type)||"Memo";case p:{var re=O,Ae=re._payload,De=re._init;try{return A(De(Ae))}catch{return null}}}return null}var I=Object.assign,N=0,w,P,_,B,L,K,z;function W(){}W.__reactDisabledLog=!0;function U(){{if(N===0){w=console.log,P=console.info,_=console.warn,B=console.error,L=console.group,K=console.groupCollapsed,z=console.groupEnd;var O={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}N++}}function ee(){{if(N--,N===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},O,{value:w}),info:I({},O,{value:P}),warn:I({},O,{value:_}),error:I({},O,{value:B}),group:I({},O,{value:L}),groupCollapsed:I({},O,{value:K}),groupEnd:I({},O,{value:z})})}N<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=v.ReactCurrentDispatcher,R;function me(O,J,ie){{if(R===void 0)try{throw Error()}catch(re){var ve=re.stack.trim().match(/\n( *(at )?)/);R=ve&&ve[1]||""}return`
18
+ `+R+O}}var ue=!1,Q;{var se=typeof WeakMap=="function"?WeakMap:Map;Q=new se}function q(O,J){if(!O||ue)return"";{var ie=Q.get(O);if(ie!==void 0)return ie}var ve;ue=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=G.current,G.current=null,U();try{if(J){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(Dt){ve=Dt}Reflect.construct(O,[],De)}else{try{De.call()}catch(Dt){ve=Dt}O.call(De.prototype)}}else{try{throw Error()}catch(Dt){ve=Dt}O()}}catch(Dt){if(Dt&&ve&&typeof Dt.stack=="string"){for(var Se=Dt.stack.split(`
19
+ `),St=ve.stack.split(`
20
+ `),rt=Se.length-1,it=St.length-1;rt>=1&&it>=0&&Se[rt]!==St[it];)it--;for(;rt>=1&&it>=0;rt--,it--)if(Se[rt]!==St[it]){if(rt!==1||it!==1)do if(rt--,it--,it<0||Se[rt]!==St[it]){var Ht=`
21
+ `+Se[rt].replace(" at new "," at ");return O.displayName&&Ht.includes("<anonymous>")&&(Ht=Ht.replace("<anonymous>",O.displayName)),typeof O=="function"&&Q.set(O,Ht),Ht}while(rt>=1&&it>=0);break}}}finally{ue=!1,G.current=Ae,ee(),Error.prepareStackTrace=re}var en=O?O.displayName||O.name:"",Ar=en?me(en):"";return typeof O=="function"&&Q.set(O,Ar),Ar}function X(O,J,ie){return q(O,!1)}function le(O){var J=O.prototype;return!!(J&&J.isReactComponent)}function ae(O,J,ie){if(O==null)return"";if(typeof O=="function")return q(O,le(O));if(typeof O=="string")return me(O);switch(O){case c:return me("Suspense");case u:return me("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case l:return X(O.render);case d:return ae(O.type,J,ie);case p:{var ve=O,re=ve._payload,Ae=ve._init;try{return ae(Ae(re),J,ie)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,be={},Me=v.ReactDebugCurrentFrame;function ye(O){if(O){var J=O._owner,ie=ae(O.type,O._source,J?J.type:null);Me.setExtraStackFrame(ie)}else Me.setExtraStackFrame(null)}function te(O,J,ie,ve,re){{var Ae=Function.call.bind(oe);for(var De in O)if(Ae(O,De)){var Se=void 0;try{if(typeof O[De]!="function"){var St=Error((ve||"React class")+": "+ie+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw St.name="Invariant Violation",St}Se=O[De](J,De,ve,ie,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){Se=rt}Se&&!(Se instanceof Error)&&(ye(re),$("%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).",ve||"React class",ie,De,typeof Se),ye(null)),Se instanceof Error&&!(Se.message in be)&&(be[Se.message]=!0,ye(re),$("Failed %s type: %s",ie,Se.message),ye(null))}}}var je=Array.isArray;function xe(O){return je(O)}function We(O){{var J=typeof Symbol=="function"&&Symbol.toStringTag,ie=J&&O[Symbol.toStringTag]||O.constructor.name||"Object";return ie}}function lt(O){try{return Te(O),!1}catch{return!0}}function Te(O){return""+O}function Ge(O){if(lt(O))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",We(O)),Te(O)}var pt=v.ReactCurrentOwner,Ft={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ct;function It(O){if(oe.call(O,"ref")){var J=Object.getOwnPropertyDescriptor(O,"ref").get;if(J&&J.isReactWarning)return!1}return O.ref!==void 0}function _t(O){if(oe.call(O,"key")){var J=Object.getOwnPropertyDescriptor(O,"key").get;if(J&&J.isReactWarning)return!1}return O.key!==void 0}function Wt(O,J){typeof O.ref=="string"&&pt.current}function Ze(O,J){{var ie=function(){Oe||(Oe=!0,$("%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)",J))};ie.isReactWarning=!0,Object.defineProperty(O,"key",{get:ie,configurable:!0})}}function Mr(O,J){{var ie=function(){Ct||(Ct=!0,$("%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)",J))};ie.isReactWarning=!0,Object.defineProperty(O,"ref",{get:ie,configurable:!0})}}var sr=function(O,J,ie,ve,re,Ae,De){var Se={$$typeof:t,type:O,key:J,ref:ie,props:De,_owner:Ae};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function Jr(O,J,ie,ve,re){{var Ae,De={},Se=null,St=null;ie!==void 0&&(Ge(ie),Se=""+ie),_t(J)&&(Ge(J.key),Se=""+J.key),It(J)&&(St=J.ref,Wt(J,re));for(Ae in J)oe.call(J,Ae)&&!Ft.hasOwnProperty(Ae)&&(De[Ae]=J[Ae]);if(O&&O.defaultProps){var rt=O.defaultProps;for(Ae in rt)De[Ae]===void 0&&(De[Ae]=rt[Ae])}if(Se||St){var it=typeof O=="function"?O.displayName||O.name||"Unknown":O;Se&&Ze(De,it),St&&Mr(De,it)}return sr(O,Se,St,re,ve,pt.current,De)}}var Vt=v.ReactCurrentOwner,Ce=v.ReactDebugCurrentFrame;function ze(O){if(O){var J=O._owner,ie=ae(O.type,O._source,J?J.type:null);Ce.setExtraStackFrame(ie)}else Ce.setExtraStackFrame(null)}var Mt;Mt=!1;function $t(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function er(){{if(Vt.current){var O=A(Vt.current.type);if(O)return`
22
22
 
23
- Check the render method of \``+O+"`."}return""}}function _o(O){return""}var Or={};function Ut(O){{var X=ir();if(!X){var oe=typeof O=="string"?O:O.displayName||O.name;oe&&(X=`
23
+ Check the render method of \``+O+"`."}return""}}function Io(O){return""}var Dr={};function Ut(O){{var J=er();if(!J){var ie=typeof O=="string"?O:O.displayName||O.name;ie&&(J=`
24
24
 
25
- Check the top-level render call using <`+oe+">.")}return X}}function Nn(O,X){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var oe=Ut(X);if(Or[oe])return;Or[oe]=!0;var ge="";O&&O._owner&&O._owner!==Vt.current&&(ge=" It was passed a child from "+A(O._owner.type)+"."),Fe(O),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,ge),Fe(null)}}function Ln(O,X){{if(typeof O!="object")return;if(Ee(O))for(var oe=0;oe<O.length;oe++){var ge=O[oe];wt(ge)&&Nn(ge,X)}else if(wt(O))O._store&&(O._store.validated=!0);else if(O){var re=x(O);if(typeof re=="function"&&re!==O.entries)for(var Me=re.call(O),_e;!(_e=Me.next()).done;)wt(_e.value)&&Nn(_e.value,X)}}}function Ye(O){{var X=O.type;if(X==null||typeof X=="string")return;var oe;if(typeof X=="function")oe=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===l||X.$$typeof===d))oe=X.propTypes;else return;if(oe){var ge=A(X);te(oe,O.props,"prop",ge,O)}else if(X.PropTypes!==void 0&&!At){At=!0;var re=A(X);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fn(O){{for(var X=Object.keys(O.props),oe=0;oe<X.length;oe++){var ge=X[oe];if(ge!=="children"&&ge!=="key"){Fe(O),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge),Fe(null);break}}O.ref!==null&&(Fe(O),$("Invalid attribute `ref` supplied to `React.Fragment`."),Fe(null))}}var Vn={};function Qr(O,X,oe,ge,re,Me){{var _e=F(O);if(!_e){var Ce="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(Ce+=" 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 Ct=_o();Ct?Ce+=Ct:Ce+=ir();var tt;O===null?tt="null":Ee(O)?tt="array":O!==void 0&&O.$$typeof===t?(tt="<"+(A(O.type)||"Unknown")+" />",Ce=" Did you accidentally export a JSX literal instead of a component?"):tt=typeof O,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tt,Ce)}var ot=Jr(O,X,oe,re,Me);if(ot==null)return ot;if(_e){var Ht=X.children;if(Ht!==void 0)if(ge)if(Ee(Ht)){for(var en=0;en<Ht.length;en++)Ln(Ht[en],O);Object.freeze&&Object.freeze(Ht)}else $("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 Ln(Ht,O)}if(ie.call(X,"key")){var Nr=A(O),Ot=Object.keys(X).filter(function(xd){return xd!=="key"}),Si=Ot.length>0?"{key: someKey, "+Ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Vn[Nr+Si]){var yd=Ot.length>0?"{"+Ot.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+ie+">.")}return J}}function Fn(O,J){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var ie=Ut(J);if(Dr[ie])return;Dr[ie]=!0;var ve="";O&&O._owner&&O._owner!==Vt.current&&(ve=" It was passed a child from "+A(O._owner.type)+"."),ze(O),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ie,ve),ze(null)}}function Vn(O,J){{if(typeof O!="object")return;if(xe(O))for(var ie=0;ie<O.length;ie++){var ve=O[ie];$t(ve)&&Fn(ve,J)}else if($t(O))O._store&&(O._store.validated=!0);else if(O){var re=x(O);if(typeof re=="function"&&re!==O.entries)for(var Ae=re.call(O),De;!(De=Ae.next()).done;)$t(De.value)&&Fn(De.value,J)}}}function qe(O){{var J=O.type;if(J==null||typeof J=="string")return;var ie;if(typeof J=="function")ie=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===l||J.$$typeof===d))ie=J.propTypes;else return;if(ie){var ve=A(J);te(ie,O.props,"prop",ve,O)}else if(J.PropTypes!==void 0&&!Mt){Mt=!0;var re=A(J);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jn(O){{for(var J=Object.keys(O.props),ie=0;ie<J.length;ie++){var ve=J[ie];if(ve!=="children"&&ve!=="key"){ze(O),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),ze(null);break}}O.ref!==null&&(ze(O),$("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var zn={};function Qr(O,J,ie,ve,re,Ae){{var De=F(O);if(!De){var Se="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(Se+=" 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 St=Io();St?Se+=St:Se+=er();var rt;O===null?rt="null":xe(O)?rt="array":O!==void 0&&O.$$typeof===t?(rt="<"+(A(O.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):rt=typeof O,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rt,Se)}var it=Jr(O,J,ie,re,Ae);if(it==null)return it;if(De){var Ht=J.children;if(Ht!==void 0)if(ve)if(xe(Ht)){for(var en=0;en<Ht.length;en++)Vn(Ht[en],O);Object.freeze&&Object.freeze(Ht)}else $("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 Vn(Ht,O)}if(oe.call(J,"key")){var Ar=A(O),Dt=Object.keys(J).filter(function(cd){return cd!=="key"}),wi=Dt.length>0?"{key: someKey, "+Dt.join(": ..., ")+": ...}":"{key: someKey}";if(!zn[Ar+wi]){var ud=Dt.length>0?"{"+Dt.join(": ..., ")+": ...}":"{}";$(`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} />`,Si,Nr,yd,Nr),Vn[Nr+Si]=!0}}return O===n?Fn(ot):Ye(ot),ot}}function ke(O,X,oe){return Qr(O,X,oe,!0)}function Mo(O,X,oe){return Qr(O,X,oe,!1)}var jn=Mo,Pi=ke;Ao.Fragment=n,Ao.jsx=jn,Ao.jsxs=Pi}()),Ao}var Ed;function E1(){return Ed||(Ed=1,process.env.NODE_ENV==="production"?Ci.exports=w1():Ci.exports=$1()),Ci.exports}var y=E1(),P1={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},S1={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},C1={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},T1={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},k1={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},I1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},_1={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},J={solid:P1,shadow:S1,bordered:C1,flat:T1,faded:k1,light:I1,ghost:_1},M1={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},D1={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},A1={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},O1={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},dr="250ms",N1={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":dr},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":dr},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":dr},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":dr},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":dr},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":dr},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":dr},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":dr},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":dr},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":dr}},L1={...D1,...N1,...A1,...O1,...M1},Ti=["small","medium","large"],Na={theme:{spacing:["divider"],radius:Ti},classGroups:{shadow:[{shadow:Ti}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Ti]}],"border-w":[{border:Ti}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(L1).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},Pd=e=>e===!1?"false":e===!0?"true":e===0?"0":e,jt=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},F1=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0};function Sd(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Sd(n,t):t.push(n)}}var Cd=(...e)=>{let t=[];Sd(e,t);let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},Td=(e,t)=>{let r={};for(let n in e){let o=e[n];if(n in t){let i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=Cd(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=Td(o,i):r[n]=i+" "+o}else r[n]=o}for(let n in t)n in e||(r[n]=t[n]);return r},V1=/\s+/g,kd=e=>!e||typeof e!="string"?e:e.replace(V1," ").trim();const La="-",j1=e=>{const t=B1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(La);return a[0]===""&&a.length!==1&&a.shift(),Id(a,t)||z1(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},Id=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Id(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(La);return t.validators.find(({validator:s})=>s(i))?.classGroupId},_d=/^\[(.+)\]$/,z1=e=>{if(_d.test(e)){const t=_d.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},B1=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Fa(r[o],n,o,t);return n},Fa=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Md(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(R1(o)){Fa(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Fa(s,Md(t,i),r,n)})})},Md=(e,t)=>{let r=e;return t.split(La).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},R1=e=>e.isThemeGetter,K1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Va="!",ja=":",W1=ja.length,U1=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let g=0;g<o.length;g++){let m=o[g];if(s===0&&a===0){if(m===ja){i.push(o.slice(l,g)),l=g+W1;continue}if(m==="/"){c=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(l),d=H1(u),h=d!==u,p=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+ja,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},H1=e=>e.endsWith(Va)?e.substring(0,e.length-1):e.startsWith(Va)?e.substring(1):e,G1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Z1=e=>({cache:K1(e.cacheSize),parseClassName:U1(e),sortModifiers:G1(e),...j1(e)}),q1=/\s+/,Y1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(q1);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!m,v=n(x?g.substring(0,m):g);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const $=i(h).join(":"),S=p?$+Va:$,C=S+v;if(s.includes(C))continue;s.push(C);const T=o(v,x);for(let k=0;k<T.length;++k){const D=T[k];s.push(S+D)}l=u+(l.length>0?" "+l:l)}return l};function X1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Dd(t))&&(n&&(n+=" "),n+=r);return n}const Dd=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Dd(e[n]))&&(r&&(r+=" "),r+=t);return r};function za(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=Z1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=Y1(l,r);return o(l,u),u}return function(){return i(X1.apply(null,arguments))}}const pt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ad=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Od=/^\((?:(\w[\w-]*):)?(.+)\)$/i,J1=/^\d+\/\d+$/,Q1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ex=/\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$/,tx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>J1.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>!!e&&Number.isInteger(Number(e)),Ba=e=>e.endsWith("%")&&$e(e.slice(0,-1)),wr=e=>Q1.test(e),ox=()=>!0,ix=e=>ex.test(e)&&!tx.test(e),Nd=()=>!1,sx=e=>rx.test(e),ax=e=>nx.test(e),lx=e=>!le(e)&&!ue(e),ux=e=>Kn(e,zd,Nd),le=e=>Ad.test(e),tn=e=>Kn(e,Bd,ix),Ra=e=>Kn(e,hx,$e),Ld=e=>Kn(e,Vd,Nd),cx=e=>Kn(e,jd,ax),ki=e=>Kn(e,Rd,sx),ue=e=>Od.test(e),Oo=e=>Wn(e,Bd),dx=e=>Wn(e,mx),Fd=e=>Wn(e,Vd),fx=e=>Wn(e,zd),px=e=>Wn(e,jd),Ii=e=>Wn(e,Rd,!0),Kn=(e,t,r)=>{const n=Ad.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Wn=(e,t,r=!1)=>{const n=Od.exec(e);return n?n[1]?t(n[1]):r:!1},Vd=e=>e==="position"||e==="percentage",jd=e=>e==="image"||e==="url",zd=e=>e==="length"||e==="size"||e==="bg-size",Bd=e=>e==="length",hx=e=>e==="number",mx=e=>e==="family-name",Rd=e=>e==="shadow",Ka=()=>{const e=pt("color"),t=pt("font"),r=pt("text"),n=pt("font-weight"),o=pt("tracking"),i=pt("leading"),s=pt("breakpoint"),a=pt("container"),l=pt("spacing"),c=pt("radius"),u=pt("shadow"),d=pt("inset-shadow"),h=pt("text-shadow"),p=pt("drop-shadow"),g=pt("blur"),m=pt("perspective"),x=pt("aspect"),v=pt("ease"),$=pt("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...C(),ue,le],k=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],E=()=>[ue,le,l],V=()=>[Rn,"full","auto",...E()],F=()=>[Lr,"none","subgrid",ue,le],b=()=>["auto",{span:["full",Lr,ue,le]},Lr,ue,le],M=()=>[Lr,"auto",ue,le],A=()=>["auto","min","max","fr",ue,le],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...E()],P=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],_=()=>[e,ue,le],B=()=>[...C(),Fd,Ld,{position:[ue,le]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",fx,ux,{size:[ue,le]}],z=()=>[Ba,Oo,tn],W=()=>["","none","full",c,ue,le],U=()=>["",$e,Oo,tn],ee=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[$e,Ba,Fd,Ld],he=()=>["","none",g,ue,le],fe=()=>["none",$e,ue,le],Q=()=>["none",$e,ue,le],se=()=>[$e,ue,le],q=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wr],breakpoint:[wr],color:[ox],container:[wr],"drop-shadow":[wr],ease:["in","out","in-out"],font:[lx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wr],shadow:[wr],spacing:["px",$e],text:[wr],"text-shadow":[wr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,le,ue,x]}],container:["container"],columns:[{columns:[$e,le,ue,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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"],sr:["sr-only","not-sr-only"],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:T()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],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:[Lr,"auto",ue,le]}],basis:[{basis:[Rn,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,Rn,"auto","initial","none",le]}],grow:[{grow:["",$e,ue,le]}],shrink:[{shrink:["",$e,ue,le]}],order:[{order:[Lr,"first","last","none",ue,le]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:b()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:b()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[a,"screen",...P()]}],"min-w":[{"min-w":[a,"screen","none",...P()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,Oo,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ue,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ba,le]}],"font-family":[{font:[dx,le,t]}],"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:[o,ue,le]}],"line-clamp":[{"line-clamp":[$e,"none",ue,Ra]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",ue,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",ue,tn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[$e,"auto",ue,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lr,ue,le],radial:["",ue,le],conic:[Lr,ue,le]},px,cx]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,ue,le]}],"outline-w":[{outline:["",$e,Oo,tn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Ii,ki]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Ii,ki]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[$e,tn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",h,Ii,ki]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[$e,ue,le]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[ue,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,le]}],filter:[{filter:["","none",ue,le]}],blur:[{blur:he()}],brightness:[{brightness:[$e,ue,le]}],contrast:[{contrast:[$e,ue,le]}],"drop-shadow":[{"drop-shadow":["","none",p,Ii,ki]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",$e,ue,le]}],"hue-rotate":[{"hue-rotate":[$e,ue,le]}],invert:[{invert:["",$e,ue,le]}],saturate:[{saturate:[$e,ue,le]}],sepia:[{sepia:["",$e,ue,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,le]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[$e,ue,le]}],"backdrop-contrast":[{"backdrop-contrast":[$e,ue,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,ue,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,ue,le]}],"backdrop-invert":[{"backdrop-invert":["",$e,ue,le]}],"backdrop-opacity":[{"backdrop-opacity":[$e,ue,le]}],"backdrop-saturate":[{"backdrop-saturate":[$e,ue,le]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,ue,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",ue,le]}],ease:[{ease:["linear","initial",v,ue,le]}],delay:[{delay:[$e,ue,le]}],animate:[{animate:["none",$,ue,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ue,le]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[ue,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ue,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",ue,le]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[$e,Oo,tn,Ra]}],stroke:[{stroke:["none",..._()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gx=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(No(e,"cacheSize",t),No(e,"prefix",r),No(e,"experimentalParseClassName",n),_i(e.theme,i.theme),_i(e.classGroups,i.classGroups),_i(e.conflictingClassGroups,i.conflictingClassGroups),_i(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),No(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Mi(e.theme,o.theme),Mi(e.classGroups,o.classGroups),Mi(e.conflictingClassGroups,o.conflictingClassGroups),Mi(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Kd(e,o,"orderSensitiveModifiers"),e),No=(e,t,r)=>{r!==void 0&&(e[t]=r)},_i=(e,t)=>{if(t)for(const r in t)No(e,r,t[r])},Mi=(e,t)=>{if(t)for(const r in t)Kd(e,t,r)},Kd=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Wd=(e,...t)=>typeof e=="function"?za(Ka,e,...t):za(()=>gx(Ka(),e),...t),vx=za(Ka);var bx=e=>jt(e)?vx:Wd({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),yx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Di=(...e)=>{let t=[];Ud(e,t);let r="";for(let n=0;n<t.length;n++)t[n]&&(r&&(r+=" "),r+=t[n]);return r||void 0};function Ud(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Ud(n,t):n&&t.push(n)}}var Wa=null,Ua={},Ha=!1,Ai=(...e)=>t=>{let r=Di(e);return!r||!t.twMerge?r:((!Wa||Ha)&&(Ha=!1,Wa=bx(Ua)),Wa(r)||void 0)},Hd=(e,t)=>{for(let r in t)r in e?e[r]=Di(e[r],t[r]):e[r]=t[r];return e},xx=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...yx,...t},c=r?.base?Di(r.base,e?.base):e?.base,u=r?.variants&&!jt(r.variants)?Td(o,r.variants):o,d=r?.defaultVariants&&!jt(r.defaultVariants)?{...r.defaultVariants,...a}:a;!jt(l.twMergeConfig)&&!F1(l.twMergeConfig,Ua)&&(Ha=!0,Ua=l.twMergeConfig);let h=jt(r?.slots),p=jt(n)?{}:{base:Di(e?.base,h&&r?.base),...n},g=h?p:Hd({...r?.slots},jt(p)?{base:e?.base}:p),m=jt(r?.compoundVariants)?i:Cd(r?.compoundVariants,i),x=$=>{if(jt(u)&&jt(n)&&h)return Ai(c,$?.class,$?.className)(l);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof m}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let S=(M,A,I=[],N)=>{let w=I;if(typeof A=="string"){let P=kd(A).split(" ");for(let _=0;_<P.length;_++)w.push(`${M}:${P[_]}`)}else if(Array.isArray(A))for(let P=0;P<A.length;P++)w.push(`${M}:${A[P]}`);else if(typeof A=="object"&&typeof N=="string"&&N in A){let P=A[N];if(P&&typeof P=="string"){let _=kd(P).split(" "),B=[];for(let L=0;L<_.length;L++)B.push(`${M}:${_[L]}`);w[N]=w[N]?w[N].concat(B):B}else if(Array.isArray(P)&&P.length>0){let _=[];for(let B=0;B<P.length;B++)_.push(`${M}:${P[B]}`);w[N]=_}}return w},C=(M,A=u,I=null,N=null)=>{let w=A[M];if(!w||jt(w))return null;let P=N?.[M]??$?.[M];if(P===null)return null;let _=Pd(P),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,L=d?.[M],K=[];if(typeof _=="object"&&B)for(let[U,ee]of Object.entries(_)){let Z=w[ee];if(U==="initial"){L=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(K=S(U,Z,K,I))}let z=_!=null&&typeof _!="object"?_:Pd(L),W=w[z||"false"];return typeof K=="object"&&typeof I=="string"&&K[I]?Hd(K,W):K.length>0?(K.push(W),I==="base"?K.join(" "):K):W},T=()=>{if(!u)return null;let M=Object.keys(u),A=[];for(let I=0;I<M.length;I++){let N=C(M[I],u);N&&A.push(N)}return A},k=(M,A)=>{if(!u||typeof u!="object")return null;let I=[];for(let N in u){let w=C(N,u,M,A),P=M==="base"&&typeof w=="string"?w:w&&w[M];P&&I.push(P)}return I},D={};for(let M in $){let A=$[M];A!==void 0&&(D[M]=A)}let E=(M,A)=>{let I=typeof $?.[M]=="object"?{[M]:$[M]?.initial}:{};return{...d,...D,...I,...A}},V=(M=[],A)=>{let I=[],N=M.length;for(let w=0;w<N;w++){let{class:P,className:_,...B}=M[w],L=!0,K=E(null,A);for(let z in B){let W=B[z],U=K[z];if(Array.isArray(W)){if(!W.includes(U)){L=!1;break}}else{if((W==null||W===!1)&&(U==null||U===!1))continue;if(U!==W){L=!1;break}}}L&&(P&&I.push(P),_&&I.push(_))}return I},F=M=>{let A=V(m,M);if(!Array.isArray(A))return A;let I={},N=Ai;for(let w=0;w<A.length;w++){let P=A[w];if(typeof P=="string")I.base=N(I.base,P)(l);else if(typeof P=="object")for(let _ in P)I[_]=N(I[_],P[_])(l)}return I},b=M=>{if(s.length<1)return null;let A={},I=E(null,M);for(let N=0;N<s.length;N++){let{slots:w=[],class:P,className:_,...B}=s[N];if(!jt(B)){let L=!0;for(let K in B){let z=I[K],W=B[K];if(z===void 0||(Array.isArray(W)?!W.includes(z):W!==z)){L=!1;break}}if(!L)continue}for(let L=0;L<w.length;L++){let K=w[L];A[K]||(A[K]=[]),A[K].push([P,_])}}return A};if(!jt(n)||!h){let M={};if(typeof g=="object"&&!jt(g)){let A=Ai;for(let I in g)M[I]=N=>{let w=F(N),P=b(N);return A(g[I],k(I,N),w?w[I]:void 0,P?P[I]:void 0,N?.class,N?.className)(l)}}return M}return Ai(c,T(),V(m),$?.class,$?.className)(l)},v=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return x.variantKeys=v(),x.extend=r,x.base=c,x.slots=g,x.variants=u,x.defaultVariants=d,x.compoundSlots=s,x.compoundVariants=m,x},it=(e,t)=>{var r,n,o;return xx(e,{...t,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(n=void 0)==null?void 0:n.theme,...Na.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...Na.classGroups}}})},Oi=it({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),$r=["outline-solid outline-transparent","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ga=["outline-solid outline-transparent","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],wx=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Un={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},Gd=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],Ni=it({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...$r],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:J.solid.foreground},primary:{base:"before:bg-primary",content:J.solid.primary},secondary:{base:"before:bg-secondary",content:J.solid.secondary},success:{base:"before:bg-success",content:J.solid.success},warning:{base:"before:bg-warning",content:J.solid.warning},danger:{base:"before:bg-danger",content:J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),$x=it({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Ga],hiddenInput:Gd,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),Ex=it({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),Px=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Sx=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Li=it({base:[],variants:{orientation:{vertical:["overflow-y-auto",...Px],horizontal:["overflow-x-auto",...Sx]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),Zd=it({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none","group-data-[has-label-outside=true]:pointer-events-auto"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-xs outline-solid outline-transparent tap-highlight-transparent",innerWrapper:"inline-flex h-fit w-[calc(100%_-theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",clearButton:["w-4","h-4","z-10","mb-4","relative","start-auto","appearance-none","outline-none","select-none","opacity-70","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...$r],helperWrapper:"p-1 flex relative flex-col gap-1.5 group-data-[has-helper=true]:flex",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger",endWrapper:"flex end-18",endContent:"mb-4"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"],clearButton:"mb-4"},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4 me-2"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small",clearButton:"text-medium"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small",clearButton:"text-large"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium",clearButton:"mb-5 text-large"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col",clearButton:"mb-0"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",label:"relative pe-2 text-foreground",clearButton:"mb-0"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isClearable:{true:{clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",endContent:"ms-3"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity,translate,scale]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none",clearButton:["transition-opacity","motion-reduce:transition-none"]}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...$r]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+var(--heroui-font-size-tiny)/2_+_16px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_26px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_30px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_34px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{labelPlacement:["outside","outside-left"],isClearable:!0,class:{endContent:["mt-4"],clearButton:["group-data-[has-end-content=true]:mt-4"]}},{isClearable:!1,labelPlacement:["outside","outside-left"],class:{endContent:["mt-4"]}},{isClearable:!0,variant:["underlined"],class:{clearButton:["relative group-data-[has-end-content=true]:left-2"],endContent:["me-2"]}},{isClearable:!1,variant:["underlined"],class:{endContent:["me-2"]}},{isClearable:!0,size:"sm",class:{endContent:"ms-2"}}]}),Za=it({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",$r],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),qd=it({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...$r],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Ga]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),Cx=it({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-solid outline-transparent",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),Yd=it({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent",...$r,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),Tx=it({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),Xd=it({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-solid outline-transparent","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-solid outline-transparent","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...$r]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),Jd=it({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),Qd=it({base:"flex flex-col gap-2 items-start"}),ef=it({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),kx=it({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...$r],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:J.solid.default},{variant:"solid",color:"primary",class:J.solid.primary},{variant:"solid",color:"secondary",class:J.solid.secondary},{variant:"solid",color:"success",class:J.solid.success},{variant:"solid",color:"warning",class:J.solid.warning},{variant:"solid",color:"danger",class:J.solid.danger},{variant:"shadow",color:"default",class:J.shadow.default},{variant:"shadow",color:"primary",class:J.shadow.primary},{variant:"shadow",color:"secondary",class:J.shadow.secondary},{variant:"shadow",color:"success",class:J.shadow.success},{variant:"shadow",color:"warning",class:J.shadow.warning},{variant:"shadow",color:"danger",class:J.shadow.danger},{variant:"bordered",color:"default",class:J.bordered.default},{variant:"bordered",color:"primary",class:J.bordered.primary},{variant:"bordered",color:"secondary",class:J.bordered.secondary},{variant:"bordered",color:"success",class:J.bordered.success},{variant:"bordered",color:"warning",class:J.bordered.warning},{variant:"bordered",color:"danger",class:J.bordered.danger},{variant:"flat",color:"default",class:J.flat.default},{variant:"flat",color:"primary",class:J.flat.primary},{variant:"flat",color:"secondary",class:J.flat.secondary},{variant:"flat",color:"success",class:J.flat.success},{variant:"flat",color:"warning",class:J.flat.warning},{variant:"flat",color:"danger",class:J.flat.danger},{variant:"faded",color:"default",class:J.faded.default},{variant:"faded",color:"primary",class:J.faded.primary},{variant:"faded",color:"secondary",class:J.faded.secondary},{variant:"faded",color:"success",class:J.faded.success},{variant:"faded",color:"warning",class:J.faded.warning},{variant:"faded",color:"danger",class:J.faded.danger},{variant:"light",color:"default",class:[J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[J.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[J.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[J.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[J.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[J.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[J.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Un.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Un.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Un.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Un.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Un.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Un.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});it({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var tf=it({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...$r],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),Ix=it({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ga],hiddenInput:Gd,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),_x=it({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),rf=it({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-solid outline-transparent","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...wx,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:J.solid.default}},{variant:"solid",color:"primary",class:{base:J.solid.primary}},{variant:"solid",color:"secondary",class:{base:J.solid.secondary}},{variant:"solid",color:"success",class:{base:J.solid.success}},{variant:"solid",color:"warning",class:{base:J.solid.warning}},{variant:"solid",color:"danger",class:{base:J.solid.danger}},{variant:"shadow",color:"default",class:{base:J.shadow.default}},{variant:"shadow",color:"primary",class:{base:J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:J.shadow.success}},{variant:"shadow",color:"warning",class:{base:J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:J.shadow.danger}},{variant:"bordered",color:"default",class:{base:J.bordered.default}},{variant:"bordered",color:"primary",class:{base:J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:J.bordered.success}},{variant:"bordered",color:"warning",class:{base:J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:J.bordered.danger}},{variant:"flat",color:"default",class:{base:J.flat.default}},{variant:"flat",color:"primary",class:{base:J.flat.primary}},{variant:"flat",color:"secondary",class:{base:J.flat.secondary}},{variant:"flat",color:"success",class:{base:J.flat.success}},{variant:"flat",color:"warning",class:{base:J.flat.warning}},{variant:"flat",color:"danger",class:{base:J.flat.danger}},{variant:"faded",color:"default",class:{base:J.faded.default}},{variant:"faded",color:"primary",class:{base:J.faded.primary}},{variant:"faded",color:"secondary",class:{base:J.faded.secondary}},{variant:"faded",color:"success",class:{base:J.faded.success}},{variant:"faded",color:"warning",class:{base:J.faded.warning}},{variant:"faded",color:"danger",class:{base:J.faded.danger}},{variant:"light",color:"default",class:{base:J.light.default}},{variant:"light",color:"primary",class:{base:J.light.primary}},{variant:"light",color:"secondary",class:{base:J.light.secondary}},{variant:"light",color:"success",class:{base:J.light.success}},{variant:"light",color:"warning",class:{base:J.light.warning}},{variant:"light",color:"danger",class:{base:J.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),Mx=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function qa(e){return Array.isArray(e)}function Dx(e){return qa(e)&&e.length===0}function nf(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!qa(e)}function Ax(e){return nf(e)&&Object.keys(e).length===0}function Ox(e){return qa(e)?Dx(e):nf(e)?Ax(e):e==null||e===""}function Nx(e){return typeof e=="function"}var pe=e=>e?"true":void 0;function of(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=of(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Be(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=of(r))&&(o&&(o+=" "),o+=n);return o}var Ya=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function Lx(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function rn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function Fx(e,t,r){return Math.min(Math.max(e,t),r)}var sf={};function Fi(e,t,...r){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!sf[o]&&(sf[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Fr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var af=new Map;function Vx(e,t){if(e===t)return e;let r=af.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=af.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ht(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fr(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Be(i,s):o==="id"&&i&&s?t.id=Vx(i,s):t[o]=s!==void 0?s:i}}return t}function jx(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=lf(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():lf(e[i],null)})}}}function lf(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function uf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=uf(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function zx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=uf(e))&&(n&&(n+=" "),n+=t);return n}var Bx=Wd({extend:Na});function j(...e){return Bx(zx(e))}function Rx({children:e,classNames:t}){return y.jsx("div",{className:j("mobielnl-elements",t?.base),children:e})}function Vi(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function i(){var s;const a=Nt.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function Kx(e){return{UNSAFE_getDOMNode(){return e.current}}}function zt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function Wx(e,t){if(e!=null){if(Nx(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function cf(...e){return t=>{e.forEach(r=>Wx(r,t))}}function Ux(){const e=()=>()=>{};return Nt.useSyncExternalStore(e,()=>!0,()=>!1)}var Hx=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),Gx=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),df=/^(data-.*)$/,Zx=/^(aria-.*)$/,ji=/^(on[A-Z].*)$/;function Tt(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:i,omitEventNames:s,omitDataProps:a,omitEventProps:l}=t,c={};if(!n)return e;for(const u in e)i?.has(u)||s?.has(u)&&ji.test(u)||ji.test(u)&&!Gx.has(u)||a&&df.test(u)||l&&ji.test(u)||(Object.prototype.hasOwnProperty.call(e,u)&&(Hx.has(u)||r&&Zx.test(u)||o?.has(u)||df.test(u))||ji.test(u))&&(c[u]=e[u]);return c}function Xa({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):Nt.createElement(e,t)}var[aM,gt]=Vi({name:"ProviderContext",strict:!1});const qx=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Yx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xx(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return qx.has(r.script)}let t=e.split("-")[0];return Yx.has(t)}const zi={prefix:String(Math.round(Math.random()*1e10)),current:0},ff=f.createContext(zi),Jx=f.createContext(!1);let Qx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ja=new WeakMap;function ew(e=!1){let t=f.useContext(ff),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let s=Ja.get(i);s==null?Ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ja.delete(i))}r.current=++t.current}return r.current}function tw(e){let t=f.useContext(ff);t===zi&&!Qx&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=ew(!!e),n=t===zi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function rw(e){let t=f.useId(),[r]=f.useState(Hn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${zi.prefix}`;return e||`${n}-${t}`}const pf=typeof f.useId=="function"?rw:tw;function nw(){return!1}function ow(){return!0}function iw(e){return()=>{}}function Hn(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(iw,nw,ow):f.useContext(Jx)}const sw=Symbol.for("react-aria.i18n.locale");function hf(){let e=typeof window<"u"&&window[sw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xx(e)?"rtl":"ltr"}}let Qa=hf(),Lo=new Set;function mf(){Qa=hf();for(let e of Lo)e(Qa)}function aw(){let e=Hn(),[t,r]=f.useState(Qa);return f.useEffect(()=>(Lo.size===0&&window.addEventListener("languagechange",mf),Lo.add(r),()=>{Lo.delete(r),Lo.size===0&&window.removeEventListener("languagechange",mf)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const lw=f.createContext(null);function Fo(){let e=aw();return f.useContext(lw)||e}const uw=Symbol.for("react-aria.i18n.locale"),cw=Symbol.for("react-aria.i18n.strings");let Gn;class Bi{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=dw(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[uw];if(Gn===void 0){let o=window[cw];if(!o)return null;Gn={};for(let i in o)Gn[i]=new Bi({[r]:o[i]},r)}let n=Gn?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function dw(e,t,r="en-US"){if(t[e])return t[e];let n=fw(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function fw(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const gf=new Map,vf=new Map;class pw{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=gf.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),gf.set(i,s));let a=s.select(t);return o=r[a]||r.other,typeof o=="function"?o():o}number(t){let r=vf.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),vf.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function hw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bf(e,t,r){hw(e,t),t.set(e,r)}const nn=typeof document<"u"?f.useLayoutEffect:()=>{};var el;const mw=(el=f.useInsertionEffect)!==null&&el!==void 0?el:nn;function Gt(e){const t=f.useRef(null);return mw(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}let gw=!!(typeof window<"u"&&window.document&&window.document.createElement),Zn=new Map,Vo;typeof FinalizationRegistry<"u"&&(Vo=new FinalizationRegistry(e=>{Zn.delete(e)}));function vw(e){let[t,r]=f.useState(e),n=f.useRef(null),o=pf(t),i=f.useRef(null);if(Vo&&Vo.register(i,o),gw){const s=Zn.get(o);s&&!s.includes(n)?s.push(n):Zn.set(o,[n])}return nn(()=>{let s=o;return()=>{Vo&&Vo.unregister(i),Zn.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function bw(e,t){if(e===t)return e;let r=Zn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Zn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function yf(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Et=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Zt=e=>e&&"window"in e&&e.window===e?e:Et(e).defaultView||window;function yw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function xw(e){return yw(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ww=!1;function on(){return ww}function rt(e,t){if(!on())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:xw(r)?r=r.host:r=r.parentNode}return!1}const jo=(e=document)=>{var t;if(!on())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Ze(e){return on()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function xf(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=xf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xf(e))&&(n&&(n+=" "),n+=t);return n}function kt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=yf(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=wf(i,s):o==="id"&&i&&s?t.id=bw(i,s):t[o]=s!==void 0?s:i}}return t}const $w=new Set(["id"]),Ew=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Pw=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Sw=new Set(["dir","lang","hidden","inert","translate"]),$f=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Cw=/^(data-.*)$/;function Ri(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&($w.has(l)||r&&Ew.has(l)||n&&Pw.has(l)||o&&Sw.has(l)||i&&$f.has(l)||l.endsWith("Capture")&&$f.has(l.slice(0,-7))||s?.has(l)||Cw.test(l))&&(a[l]=e[l]);return a}function sn(e){if(Tw())e.focus({preventScroll:!0});else{let t=kw(e);e.focus(),Iw(t)}}let Ki=null;function Tw(){if(Ki==null){Ki=!1;try{document.createElement("div").focus({get preventScroll(){return Ki=!0,!0}})}catch{}}return Ki}function kw(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Iw(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Wi(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function tl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Er(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const qn=Er(function(){return tl(/^Mac/i)}),_w=Er(function(){return tl(/^iPhone/i)}),Ef=Er(function(){return tl(/^iPad/i)||qn()&&navigator.maxTouchPoints>1}),rl=Er(function(){return _w()||Ef()});Er(function(){return qn()||rl()});const Pf=Er(function(){return Wi(/AppleWebKit/i)&&!Mw()}),Mw=Er(function(){return Wi(/Chrome/i)}),Sf=Er(function(){return Wi(/Android/i)}),Dw=Er(function(){return Wi(/Firefox/i)});function zo(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Dw()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(qn()?i=!0:s=!0);let c=Pf()&&qn()&&!Ef()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});zo.isOpening=r,sn(e),e.dispatchEvent(c),zo.isOpening=!1}zo.isOpening=!1;let Vr=new Map,nl=new Set;function Cf(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Vr.get(n.target);o||(o=new Set,Vr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Vr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Vr.delete(n.target)),Vr.size===0)){for(let i of nl)i();nl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cf():document.addEventListener("DOMContentLoaded",Cf));function Aw(){for(const[e]of Vr)"isConnected"in e&&!e.isConnected&&Vr.delete(e)}function Tf(e){requestAnimationFrame(()=>{Aw(),Vr.size===0?e():nl.add(e)})}function Yn(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Ow(){return typeof window.ResizeObserver<"u"}function kf(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(Ow()){const i=new window.ResizeObserver(s=>{s.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function If(e,t){nn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ol(e){return e.mozInputSource===0&&e.isTrusted?!0:Sf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Nw(e){return!Sf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _f(e,t,r){let n=Gt(()=>{r&&r(t)});f.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e,n])}const Lw=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Fw(e){const t=Zt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Vw(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Mf(e,t){return Lw?e.checkVisibility():e.nodeName!=="#comment"&&Fw(e)&&Vw(e,t)&&(!e.parentElement||Mf(e.parentElement,e))}const Df=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],jw=Df.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Df.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function zw(e){return e.matches(jw)&&Mf(e)&&!Bw(e)}function Bw(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function jr(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=i.current;c!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:n,l=f.useCallback((c,...u)=>{let d=(h,...p)=>{r&&(Object.is(a,h)||r(h,...p)),s||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...g)=>{let m=c(s?a:p,...g);return d(m,...u),s?p:m})):(s||o(c),d(c,...u))},[s,a,r]);return[a,l]}function Pr(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Ui(e,t){let r=e,n=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let s=o.indexOf(".");s>=0&&(n=o.length-s)}if(n>0){let s=Math.pow(10,n);r=Math.round(r*s)/s}return r}function Bo(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,i=Ui(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(Ui(r/n,n))*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(Ui((r-t)/n,n))*n),i=Ui(i,n),i}let il=new Map,sl=!1;try{sl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Hi=!1;try{Hi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Af={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Rw{format(t){let r="";if(!sl&&this.options.signDisplay!=null?r=Ww(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Hi){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Af[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!sl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Hi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=Kw(t,r),this.options=r}}function Kw(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Hi){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Af[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(il.has(o))return il.get(o);let i=new Intl.NumberFormat(e,t);return il.set(o,i),i}function Ww(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(r)}}function Of(e={}){let{locale:t}=Fo();return f.useMemo(()=>new Rw(t,e),[t,e])}const Nf=f.createContext({});function al(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const ll=typeof window<"u",Lf=ll?f.useLayoutEffect:f.useEffect,Gi=f.createContext(null);function Uw(e,t){e.indexOf(t)===-1&&e.push(t)}function Hw(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const an=(e,t,r)=>r>t?t:r<e?e:r;function ul(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xn=()=>{},zr=()=>{};process.env.NODE_ENV!=="production"&&(Xn=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(ul(t,r))},zr=(e,t,r)=>{if(!e)throw new Error(ul(t,r))});const Sr={},Ff=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Gw(e){return typeof e=="object"&&e!==null}const Vf=e=>/^0[^.\s]+$/u.test(e);function cl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jn=e=>e,Zw=(e,t)=>r=>t(e(r)),Zi=(...e)=>e.reduce(Zw),jf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class zf{constructor(){this.subscriptions=[]}add(t){return Uw(this.subscriptions,t),()=>Hw(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fr=e=>e*1e3,Cr=e=>e/1e3;function Bf(e,t){return t?e*(1e3/t):0}const Rf=new Set;function dl(e,t,r){e||Rf.has(t)||(console.warn(ul(t,r)),Rf.add(t))}const Kf=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qw=1e-7,Yw=12;function Xw(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=Kf(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>qw&&++a<Yw);return s}function Ro(e,t,r,n){if(e===t&&r===n)return Jn;const o=i=>Xw(i,0,1,e,r);return i=>i===0||i===1?i:Kf(o(i),t,n)}const Wf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Uf=e=>t=>1-e(1-t),Hf=Ro(.33,1.53,.69,.99),fl=Uf(Hf),Gf=Wf(fl),Zf=e=>(e*=2)<1?.5*fl(e):.5*(2-Math.pow(2,-10*(e-1))),pl=e=>1-Math.sin(Math.acos(e)),Jw=Uf(pl),qf=Wf(pl),Qw=Ro(.42,0,1,1),e$=Ro(0,0,.58,1),Yf=Ro(.42,0,.58,1),t$=e=>Array.isArray(e)&&typeof e[0]!="number",Xf=e=>Array.isArray(e)&&typeof e[0]=="number",Jf={linear:Jn,easeIn:Qw,easeInOut:Yf,easeOut:e$,circIn:pl,circInOut:qf,circOut:Jw,backIn:fl,backInOut:Gf,backOut:Hf,anticipate:Zf},r$=e=>typeof e=="string",Qf=e=>{if(Xf(e)){zr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return Ro(t,r,n,o)}else if(r$(e))return zr(Jf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Jf[e];return e},qi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function n$(e,t){let r=new Set,n=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const g=h&&o?r:n;return d&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const o$=40;function ep(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=qi.reduce((S,C)=>(S[C]=n$(i),S),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:g}=s,m=()=>{const S=Sr.useManualTiming?o.timestamp:performance.now();r=!1,Sr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(S-o.timestamp,o$),1)),o.timestamp=S,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),p.process(o),g.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},x=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:qi.reduce((S,C)=>{const T=s[C];return S[C]=(k,D=!1,E=!1)=>(r||x(),T.schedule(k,D,E)),S},{}),cancel:S=>{for(let C=0;C<qi.length;C++)s[qi[C]].cancel(S)},state:o,steps:s}}const{schedule:sr,cancel:hl,state:Yi}=ep(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jn,!0);let Xi;function i$(){Xi=void 0}const Xt={now:()=>(Xi===void 0&&Xt.set(Yi.isProcessing||Sr.useManualTiming?Yi.timestamp:performance.now()),Xi),set:e=>{Xi=e,queueMicrotask(i$)}},tp=e=>t=>typeof t=="string"&&t.startsWith(e),rp=tp("--"),s$=tp("var(--"),ml=e=>s$(e)?a$.test(e.split("/*")[0].trim()):!1,a$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ko={...Qn,transform:e=>an(0,1,e)},Ji={...Qn,default:1},Wo=e=>Math.round(e*1e5)/1e5,gl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l$(e){return e==null}const u$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vl=(e,t)=>r=>!!(typeof r=="string"&&u$.test(r)&&r.startsWith(e)||t&&!l$(r)&&Object.prototype.hasOwnProperty.call(r,t)),np=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,s,a]=n.match(gl);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},c$=e=>an(0,255,e),bl={...Qn,transform:e=>Math.round(c$(e))},ln={test:vl("rgb","red"),parse:np("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+bl.transform(e)+", "+bl.transform(t)+", "+bl.transform(r)+", "+Wo(Ko.transform(n))+")"};function d$(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const yl={test:vl("#"),parse:d$,transform:ln.transform},Uo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Br=Uo("deg"),eo=Uo("%"),be=Uo("px"),f$=Uo("vh"),p$=Uo("vw"),op={...eo,parse:e=>eo.parse(e)/100,transform:e=>eo.transform(e*100)},to={test:vl("hsl","hue"),parse:np("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eo.transform(Wo(t))+", "+eo.transform(Wo(r))+", "+Wo(Ko.transform(n))+")"},ut={test:e=>ln.test(e)||yl.test(e)||to.test(e),parse:e=>ln.test(e)?ln.parse(e):to.test(e)?to.parse(e):yl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ln.transform(e):to.transform(e),getAnimatableNone:e=>{const t=ut.parse(e);return t.alpha=0,ut.transform(t)}},h$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function m$(e){return isNaN(e)&&typeof e=="string"&&(e.match(gl)?.length||0)+(e.match(h$)?.length||0)>0}const ip="number",sp="color",g$="var",v$="var(",ap="${}",b$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ho(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(b$,l=>(ut.test(l)?(n.color.push(i),o.push(sp),r.push(ut.parse(l))):l.startsWith(v$)?(n.var.push(i),o.push(g$),r.push(l)):(n.number.push(i),o.push(ip),r.push(parseFloat(l))),++i,ap)).split(ap);return{values:r,split:a,indexes:n,types:o}}function lp(e){return Ho(e).values}function up(e){const{split:t,types:r}=Ho(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){const a=r[s];a===ip?i+=Wo(o[s]):a===sp?i+=ut.transform(o[s]):i+=o[s]}return i}}const y$=e=>typeof e=="number"?0:ut.test(e)?ut.getAnimatableNone(e):e;function x$(e){const t=lp(e);return up(e)(t.map(y$))}const ro={test:m$,parse:lp,createTransformer:up,getAnimatableNone:x$};function xl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function w$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=xl(l,a,e+1/3),i=xl(l,a,e),s=xl(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Qi(e,t){return r=>r>0?t:e}const es=(e,t,r)=>e+(t-e)*r,wl=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},$$=[yl,ln,to],E$=e=>$$.find(t=>t.test(e));function cp(e){const t=E$(e);if(Xn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===to&&(r=w$(r)),r}const dp=(e,t)=>{const r=cp(e),n=cp(t);if(!r||!n)return Qi(e,t);const o={...r};return i=>(o.red=wl(r.red,n.red,i),o.green=wl(r.green,n.green,i),o.blue=wl(r.blue,n.blue,i),o.alpha=es(r.alpha,n.alpha,i),ln.transform(o))},$l=new Set(["none","hidden"]);function P$(e,t){return $l.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function S$(e,t){return r=>es(e,t,r)}function El(e){return typeof e=="number"?S$:typeof e=="string"?ml(e)?Qi:ut.test(e)?dp:k$:Array.isArray(e)?fp:typeof e=="object"?ut.test(e)?dp:C$:Qi}function fp(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>El(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function C$(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=El(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function T$(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][n[i]],a=e.values[s]??0;r[o]=a,n[i]++}return r}const k$=(e,t)=>{const r=ro.createTransformer(t),n=Ho(e),o=Ho(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?$l.has(e)&&!o.values.length||$l.has(t)&&!n.values.length?P$(e,t):Zi(fp(T$(n,o),o.values),r):(Xn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Qi(e,t))};function pp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?es(e,t,r):El(e)(e,t)}const I$=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>hl(t),now:()=>Yi.isProcessing?Yi.timestamp:Xt.now()}},hp=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ts=2e4;function Pl(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<ts;)t+=r,n=e.next(t);return t>=ts?1/0:t}function _$(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(Pl(n),ts);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:Cr(o)}}const M$=5;function mp(e,t,r){const n=Math.max(t-M$,0);return Bf(r-e(n),t-n)}const Qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sl=.001;function D$({duration:e=Qe.duration,bounce:t=Qe.bounce,velocity:r=Qe.velocity,mass:n=Qe.mass}){let o,i;Xn(e<=fr(Qe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=an(Qe.minDamping,Qe.maxDamping,s),e=an(Qe.minDuration,Qe.maxDuration,Cr(e)),s<1?(o=c=>{const u=c*s,d=u*e,h=u-r,p=Cl(c,s),g=Math.exp(-d);return Sl-h/p*g},i=c=>{const d=c*s*e,h=d*r+r,p=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-d),m=Cl(Math.pow(c,2),s);return(-o(c)+Sl>0?-1:1)*((h-p)*g)/m}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Sl+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const a=5/e,l=O$(o,i,a);if(e=fr(e),isNaN(l))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const A$=12;function O$(e,t,r){let n=r;for(let o=1;o<A$;o++)n=n-e(n)/t(n);return n}function Cl(e,t){return e*Math.sqrt(1-t*t)}const N$=["duration","bounce"],L$=["stiffness","damping","mass"];function gp(e,t){return t.some(r=>e[r]!==void 0)}function F$(e){let t={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...e};if(!gp(e,L$)&&gp(e,N$))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*an(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Qe.mass,stiffness:o,damping:i}}else{const r=D$(e);t={...t,...r,mass:Qe.mass},t.isResolvedFromDuration=!0}return t}function rs(e=Qe.visualDuration,t=Qe.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=F$({...r,velocity:-Cr(r.velocity||0)}),g=h||0,m=c/(2*Math.sqrt(l*u)),x=s-i,v=Cr(Math.sqrt(l/u)),$=Math.abs(x)<5;n||(n=$?Qe.restSpeed.granular:Qe.restSpeed.default),o||(o=$?Qe.restDelta.granular:Qe.restDelta.default);let S;if(m<1){const T=Cl(v,m);S=k=>{const D=Math.exp(-m*v*k);return s-D*((g+m*v*x)/T*Math.sin(T*k)+x*Math.cos(T*k))}}else if(m===1)S=T=>s-Math.exp(-v*T)*(x+(g+v*x)*T);else{const T=v*Math.sqrt(m*m-1);S=k=>{const D=Math.exp(-m*v*k),E=Math.min(T*k,300);return s-D*((g+m*v*x)*Math.sinh(E)+T*x*Math.cosh(E))/T}}const C={calculatedDuration:p&&d||null,next:T=>{const k=S(T);if(p)a.done=T>=d;else{let D=T===0?g:0;m<1&&(D=T===0?fr(g):mp(S,T,k));const E=Math.abs(D)<=n,V=Math.abs(s-k)<=o;a.done=E&&V}return a.value=a.done?s:k,a},toString:()=>{const T=Math.min(Pl(C),ts),k=hp(D=>C.next(T*D).value,T,30);return T+"ms "+k},toTransition:()=>{}};return C}rs.applyToOptions=e=>{const t=_$(e,100,rs);return e.ease=t.ease,e.duration=fr(t.duration),e.type="keyframes",e};function Tl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=E=>a!==void 0&&E<a||l!==void 0&&E>l,g=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let m=r*t;const x=d+m,v=s===void 0?x:s(x);v!==x&&(m=v-d);const $=E=>-m*Math.exp(-E/n),S=E=>v+$(E),C=E=>{const V=$(E),F=S(E);h.done=Math.abs(V)<=c,h.value=h.done?v:F};let T,k;const D=E=>{p(h.value)&&(T=E,k=rs({keyframes:[h.value,g(h.value)],velocity:mp(S,E,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:E=>{let V=!1;return!k&&T===void 0&&(V=!0,C(E),D(E)),T!==void 0&&E>=T?k.next(E-T):(!V&&C(E),h)}}}function V$(e,t,r){const n=[],o=r||Sr.mix||pp,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Jn:t;a=Zi(l,a)}n.push(a)}return n}function j$(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(zr(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=V$(t,n,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=jf(e[d],e[d+1],u);return a[d](h)};return r?u=>c(an(e[0],e[i-1],u)):c}function z$(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=jf(0,t,n);e.push(es(r,1,o))}}function B$(e){const t=[0];return z$(t,e.length-1),t}function R$(e,t){return e.map(r=>r*t)}function K$(e,t){return e.map(()=>t||Yf).splice(0,e.length-1)}function no({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=t$(n)?n.map(Qf):Qf(n),i={done:!1,value:t[0]},s=R$(r&&r.length===t.length?r:B$(t),e),a=j$(s,t,{ease:Array.isArray(o)?o:K$(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const W$=e=>e!==null;function kl(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(W$),a=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const U$={decay:Tl,inertia:Tl,tween:no,keyframes:no,spring:rs};function vp(e){typeof e.type=="string"&&(e.type=U$[e.type])}class Il{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const H$=e=>e/100;class _l extends Il{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Xt.now()&&this.tick(Xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;vp(t);const{type:r=no,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=r||no;process.env.NODE_ENV!=="production"&&l!==no&&zr(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==no&&typeof a[0]!="number"&&(this.mixKeyframes=Zi(H$,pp(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Pl(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let S=this.currentTime,C=n;if(d){const E=Math.min(this.currentTime,o)/a;let V=Math.floor(E),F=E%1;!F&&E>=1&&(F=1),F===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(h==="reverse"?(F=1-F,p&&(F-=p/a)):h==="mirror"&&(C=s)),S=an(0,1,F)*a}const T=$?{done:!1,value:u[0]}:C.next(S);i&&(T.value=i(T.value));let{done:k}=T;!$&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&g!==Tl&&(T.value=kl(u,this.options,x,this.speed)),m&&m(T.value),D&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return Cr(this.calculatedDuration)}get time(){return Cr(this.currentTime)}set time(t){t=fr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Cr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=I$,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function G$(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const un=e=>e*180/Math.PI,Ml=e=>{const t=un(Math.atan2(e[1],e[0]));return Dl(t)},Z$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ml,rotateZ:Ml,skewX:e=>un(Math.atan(e[1])),skewY:e=>un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Dl=e=>(e=e%360,e<0&&(e+=360),e),bp=Ml,yp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yp,scaleY:xp,scale:e=>(yp(e)+xp(e))/2,rotateX:e=>Dl(un(Math.atan2(e[6],e[5]))),rotateY:e=>Dl(un(Math.atan2(-e[2],e[0]))),rotateZ:bp,rotate:bp,skewX:e=>un(Math.atan(e[4])),skewY:e=>un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Al(e){return e.includes("scale")?1:0}function Ol(e,t){if(!e||e==="none")return Al(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=q$,o=r;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Z$,o=a}if(!o)return Al(t);const i=n[t],s=o[1].split(",").map(X$);return typeof i=="function"?i(s):s[i]}const Y$=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Ol(r,t)};function X$(e){return parseFloat(e.trim())}const oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],io=new Set(oo),wp=e=>e===Qn||e===be,J$=new Set(["x","y","z"]),Q$=oo.filter(e=>!J$.has(e));function eE(e){const t=[];return Q$.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const cn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ol(t,"x"),y:(e,{transform:t})=>Ol(t,"y")};cn.translateX=cn.x,cn.translateY=cn.y;const dn=new Set;let Nl=!1,Ll=!1,Fl=!1;function $p(){if(Ll){const e=Array.from(dn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=eE(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ll=!1,Nl=!1,dn.forEach(e=>e.complete(Fl)),dn.clear()}function Ep(){dn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ll=!0)})}function tE(){Fl=!0,Ep(),$p(),Fl=!1}class Vl{constructor(t,r,n,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(dn.add(this),Nl||(Nl=!0,sr.read(Ep),sr.resolveKeyframes($p))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const a=n.readValue(r,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}G$(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),dn.delete(this)}cancel(){this.state==="scheduled"&&(dn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rE=e=>e.startsWith("--");function nE(e,t,r){rE(t)?e.style.setProperty(t,r):e.style[t]=r}const oE=cl(()=>window.ScrollTimeline!==void 0),iE={};function sE(e,t){const r=cl(e);return()=>iE[t]??r()}const Pp=sE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Go=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Go([0,.65,.55,1]),circOut:Go([.55,0,1,.45]),backIn:Go([.31,.01,.66,-.59]),backOut:Go([.33,1.53,.69,.99])};function Cp(e,t){if(e)return typeof e=="function"?Pp()?hp(e,t):"ease-out":Xf(e)?Go(e):Array.isArray(e)?e.map(r=>Cp(r,t)||Sp.easeOut):Sp[e]}function aE(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=Cp(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function Tp(e){return typeof e=="function"&&"applyToOptions"in e}function lE({type:e,...t}){return Tp(e)&&Pp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uE extends Il{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,zr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=lE(t);this.animation=aE(r,n,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=kl(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):nE(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Cr(Number(t))}get time(){return Cr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=fr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oE()?(this.animation.timeline=t,Jn):r(this)}}const kp={anticipate:Zf,backInOut:Gf,circInOut:qf};function cE(e){return e in kp}function dE(e){typeof e.ease=="string"&&cE(e.ease)&&(e.ease=kp[e.ease])}const Ip=10;class fE extends uE{constructor(t){dE(t),vp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:i,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const a=new _l({...s,autoplay:!1}),l=fr(this.finishedTime??this.time);r.setWithVelocity(a.sample(l-Ip).value,a.sample(l).value,Ip),a.stop()}}const _p=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ro.test(e)||e==="0")&&!e.startsWith("url("));function pE(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function hE(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=_p(o,t),a=_p(i,t);return Xn(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pE(e)||(r==="spring"||Tp(r))&&n}function jl(e){e.duration=0,e.type}const mE=new Set(["opacity","clipPath","filter","transform"]),gE=cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vE(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return gE()&&r&&mE.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}const bE=40;class yE extends Il{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xt.now();const h={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},p=u?.KeyframeResolver||Vl;this.keyframeResolver=new p(a,(g,m,x)=>this.onKeyframesResolved(g,m,h,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Xt.now(),hE(t,i,s,a)||((Sr.instantAnimations||!l)&&u?.(kl(t,n,r)),t[0]=t[t.length-1],jl(n),n.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},p=!c&&vE(h)?new fE({...h,element:h.motionValue.owner.current}):new _l(h);p.finished.then(()=>this.notifyFinished()).catch(Jn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tE()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const xE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wE(e){const t=xE.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const $E=4;function Mp(e,t,r=1){zr(r<=$E,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=wE(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return Ff(s)?parseFloat(s):s}return ml(o)?Mp(o,t,r+1):o}function Dp(e,t){return e?.[t]??e?.default??e}const Ap=new Set(["width","height","top","left","right","bottom",...oo]),EE={test:e=>e==="auto",parse:e=>e},Op=e=>t=>t.test(e),Np=[Qn,be,eo,Br,p$,f$,EE],Lp=e=>Np.find(Op(e));function PE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vf(e):!0}const SE=new Set(["brightness","contrast","saturate","opacity"]);function CE(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(gl)||[];if(!n)return e;const o=r.replace(n,"");let i=SE.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const TE=/\b([a-z-]*)\(.*?\)/gu,zl={...ro,getAnimatableNone:e=>{const t=e.match(TE);return t?t.map(CE).join(" "):e}},Fp={...Qn,transform:Math.round},Bl={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be,...{rotate:Br,rotateX:Br,rotateY:Br,rotateZ:Br,scale:Ji,scaleX:Ji,scaleY:Ji,scaleZ:Ji,skew:Br,skewX:Br,skewY:Br,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Ko,originX:op,originY:op,originZ:be},zIndex:Fp,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:Fp},kE={...Bl,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:zl,WebkitFilter:zl},Vp=e=>kE[e];function jp(e,t){let r=Vp(e);return r!==zl&&(r=ro),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const IE=new Set(["auto","none","0"]);function _E(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!IE.has(i)&&Ho(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=jp(r,o)}class ME extends Vl{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),ml(c))){const u=Mp(c,r.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ap.has(n)||t.length!==2)return;const[o,i]=t,s=Lp(o),a=Lp(i);if(s!==a)if(wp(s)&&wp(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else cn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||PE(t[o]))&&n.push(o);n.length&&_E(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,s=n[i];n[i]=cn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function DE(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const zp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Bp(e){return Gw(e)&&"offsetHeight"in e}const Rp=30,AE=e=>!isNaN(parseFloat(e));class OE{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=Xt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Xt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AE(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&dl(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new zf);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rp)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Rp);return Bf(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ns(e,t){return new OE(e,t)}const{schedule:NE}=ep(queueMicrotask,!1),LE={y:!1};function FE(){return LE.y}function Kp(e,t){const r=DE(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Wp(e){return!(e.pointerType==="touch"||FE())}function VE(e,t,r={}){const[n,o,i]=Kp(e,r),s=a=>{if(!Wp(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Wp(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return n.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Up=(e,t)=>t?e===t?!0:Up(e,t.parentElement):!1,jE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BE(e){return zE.has(e.tagName)||e.tabIndex!==-1}const os=new WeakSet;function Hp(e){return t=>{t.key==="Enter"&&e(t)}}function Rl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RE=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=Hp(()=>{if(os.has(r))return;Rl(r,"down");const o=Hp(()=>{Rl(r,"up")}),i=()=>Rl(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function Gp(e){return jE(e)&&!0}function KE(e,t,r={}){const[n,o,i]=Kp(e,r),s=a=>{const l=a.currentTarget;if(!Gp(a))return;os.add(l);const c=t(l,a),u=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),os.has(l)&&os.delete(l),Gp(p)&&typeof c=="function"&&c(p,{success:g})},d=p=>{u(p,l===window||l===document||r.useGlobalTarget||Up(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return n.forEach(a=>{(r.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Bp(a)&&(a.addEventListener("focus",c=>RE(c,o)),!BE(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Lt=e=>!!(e&&e.getVelocity),WE=[...Np,ut,ro],UE=e=>WE.find(Op(e)),Kl=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class HE extends Nt.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=Bp(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function GE({children:e,isPresent:t,anchorX:r,root:n}){const o=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(Kl);return f.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:h}=s.current;if(t||!i.current||!l||!c)return;const p=r==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=o;const g=document.createElement("style");a&&(g.nonce=a);const m=n??document.head;return m.appendChild(g),g.sheet&&g.sheet.insertRule(`
30
+ <%s key={someKey} {...props} />`,wi,Ar,ud,Ar),zn[Ar+wi]=!0}}return O===n?jn(it):qe(it),it}}function ke(O,J,ie){return Qr(O,J,ie,!0)}function _o(O,J,ie){return Qr(O,J,ie,!1)}var Bn=_o,xi=ke;Do.Fragment=n,Do.jsx=Bn,Do.jsxs=xi}()),Do}var pd;function a1(){return pd||(pd=1,process.env.NODE_ENV==="production"?$i.exports=i1():$i.exports=s1()),$i.exports}var b=a1(),l1={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},u1={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},c1={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},d1={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},f1={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},p1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},h1={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},Y={solid:l1,shadow:u1,bordered:c1,flat:d1,faded:f1,light:p1,ghost:h1},m1={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},g1={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},v1={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},b1={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},ar="250ms",y1={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ar},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ar},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ar},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ar},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ar},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ar},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":ar},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":ar},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ar},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ar}},x1={...g1,...y1,...v1,...b1,...m1},Ei=["small","medium","large"],ka={theme:{spacing:["divider"],radius:Ei},classGroups:{shadow:[{shadow:Ei}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Ei]}],"border-w":[{border:Ei}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(x1).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},hd=e=>e===!1?"false":e===!0?"true":e===0?"0":e,jt=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},w1=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0};function md(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?md(n,t):t.push(n)}}var gd=(...e)=>{let t=[];md(e,t);let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},vd=(e,t)=>{let r={};for(let n in e){let o=e[n];if(n in t){let i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=gd(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=vd(o,i):r[n]=i+" "+o}else r[n]=o}for(let n in t)n in e||(r[n]=t[n]);return r},$1=/\s+/g,bd=e=>!e||typeof e!="string"?e:e.replace($1," ").trim();const Ia="-",E1=e=>{const t=C1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Ia);return a[0]===""&&a.length!==1&&a.shift(),yd(a,t)||P1(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},yd=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?yd(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Ia);return t.validators.find(({validator:s})=>s(i))?.classGroupId},xd=/^\[(.+)\]$/,P1=e=>{if(xd.test(e)){const t=xd.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},C1=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)_a(r[o],n,o,t);return n},_a=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wd(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(S1(o)){_a(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{_a(s,wd(t,i),r,n)})})},wd=(e,t)=>{let r=e;return t.split(Ia).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},S1=e=>e.isThemeGetter,T1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Ma="!",Da=":",k1=Da.length,I1=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let m=0;m<o.length;m++){let g=o[m];if(s===0&&a===0){if(g===Da){i.push(o.slice(l,m)),l=m+k1;continue}if(g==="/"){c=m;continue}}g==="["?s++:g==="]"?s--:g==="("?a++:g===")"&&a--}const u=i.length===0?o:o.substring(l),d=_1(u),p=d!==u,h=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+Da,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},_1=e=>e.endsWith(Ma)?e.substring(0,e.length-1):e.startsWith(Ma)?e.substring(1):e,M1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},D1=e=>({cache:T1(e.cacheSize),parseClassName:I1(e),sortModifiers:M1(e),...E1(e)}),A1=/\s+/,N1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(A1);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!g,v=n(x?m.substring(0,g):m);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=n(m),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const $=i(p).join(":"),C=h?$+Ma:$,S=C+v;if(s.includes(S))continue;s.push(S);const T=o(v,x);for(let k=0;k<T.length;++k){const D=T[k];s.push(C+D)}l=u+(l.length>0?" "+l:l)}return l};function O1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$d(t))&&(n&&(n+=" "),n+=r);return n}const $d=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=$d(e[n]))&&(r&&(r+=" "),r+=t);return r};function Aa(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=D1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=N1(l,r);return o(l,u),u}return function(){return i(O1.apply(null,arguments))}}const ht=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ed=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,L1=/^\d+\/\d+$/,F1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V1=/\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$/,j1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,z1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>L1.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),Nr=e=>!!e&&Number.isInteger(Number(e)),Na=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),xr=e=>F1.test(e),R1=()=>!0,K1=e=>V1.test(e)&&!j1.test(e),Cd=()=>!1,W1=e=>z1.test(e),U1=e=>B1.test(e),H1=e=>!ce(e)&&!de(e),G1=e=>Un(e,_d,Cd),ce=e=>Ed.test(e),tn=e=>Un(e,Md,K1),Oa=e=>Un(e,J1,Ee),Sd=e=>Un(e,kd,Cd),Z1=e=>Un(e,Id,U1),Pi=e=>Un(e,Dd,W1),de=e=>Pd.test(e),Ao=e=>Hn(e,Md),q1=e=>Hn(e,Q1),Td=e=>Hn(e,kd),Y1=e=>Hn(e,_d),X1=e=>Hn(e,Id),Ci=e=>Hn(e,Dd,!0),Un=(e,t,r)=>{const n=Ed.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Hn=(e,t,r=!1)=>{const n=Pd.exec(e);return n?n[1]?t(n[1]):r:!1},kd=e=>e==="position"||e==="percentage",Id=e=>e==="image"||e==="url",_d=e=>e==="length"||e==="size"||e==="bg-size",Md=e=>e==="length",J1=e=>e==="number",Q1=e=>e==="family-name",Dd=e=>e==="shadow",La=()=>{const e=ht("color"),t=ht("font"),r=ht("text"),n=ht("font-weight"),o=ht("tracking"),i=ht("leading"),s=ht("breakpoint"),a=ht("container"),l=ht("spacing"),c=ht("radius"),u=ht("shadow"),d=ht("inset-shadow"),p=ht("text-shadow"),h=ht("drop-shadow"),m=ht("blur"),g=ht("perspective"),x=ht("aspect"),v=ht("ease"),$=ht("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...S(),de,ce],k=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],E=()=>[de,ce,l],V=()=>[Wn,"full","auto",...E()],F=()=>[Nr,"none","subgrid",de,ce],y=()=>["auto",{span:["full",Nr,de,ce]},Nr,de,ce],M=()=>[Nr,"auto",de,ce],A=()=>["auto","min","max","fr",de,ce],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...E()],P=()=>[Wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],_=()=>[e,de,ce],B=()=>[...S(),Td,Sd,{position:[de,ce]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",Y1,G1,{size:[de,ce]}],z=()=>[Na,Ao,tn],W=()=>["","none","full",c,de,ce],U=()=>["",Ee,Ao,tn],ee=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[Ee,Na,Td,Sd],me=()=>["","none",m,de,ce],ue=()=>["none",Ee,de,ce],Q=()=>["none",Ee,de,ce],se=()=>[Ee,de,ce],q=()=>[Wn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xr],breakpoint:[xr],color:[R1],container:[xr],"drop-shadow":[xr],ease:["in","out","in-out"],font:[H1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xr],shadow:[xr],spacing:["px",Ee],text:[xr],"text-shadow":[xr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wn,ce,de,x]}],container:["container"],columns:[{columns:[Ee,ce,de,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:T()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],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:[Nr,"auto",de,ce]}],basis:[{basis:[Wn,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,Wn,"auto","initial","none",ce]}],grow:[{grow:["",Ee,de,ce]}],shrink:[{shrink:["",Ee,de,ce]}],order:[{order:[Nr,"first","last","none",de,ce]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:y()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:y()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[a,"screen",...P()]}],"min-w":[{"min-w":[a,"screen","none",...P()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,Ao,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,de,Oa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Na,ce]}],"font-family":[{font:[q1,ce,t]}],"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:[o,de,ce]}],"line-clamp":[{"line-clamp":[Ee,"none",de,Oa]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",de,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",de,tn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Ee,"auto",de,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nr,de,ce],radial:["",de,ce],conic:[Nr,de,ce]},X1,Z1]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,de,ce]}],"outline-w":[{outline:["",Ee,Ao,tn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Ci,Pi]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Ci,Pi]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Ee,tn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",p,Ci,Pi]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Ee,de,ce]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[de,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ce]}],filter:[{filter:["","none",de,ce]}],blur:[{blur:me()}],brightness:[{brightness:[Ee,de,ce]}],contrast:[{contrast:[Ee,de,ce]}],"drop-shadow":[{"drop-shadow":["","none",h,Ci,Pi]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Ee,de,ce]}],"hue-rotate":[{"hue-rotate":[Ee,de,ce]}],invert:[{invert:["",Ee,de,ce]}],saturate:[{saturate:[Ee,de,ce]}],sepia:[{sepia:["",Ee,de,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ce]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,de,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,de,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,de,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,de,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ee,de,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,de,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,de,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,de,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",de,ce]}],ease:[{ease:["linear","initial",v,de,ce]}],delay:[{delay:[Ee,de,ce]}],animate:[{animate:["none",$,de,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,de,ce]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[de,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",de,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",de,ce]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Ee,Ao,tn,Oa]}],stroke:[{stroke:["none",..._()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ex=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(No(e,"cacheSize",t),No(e,"prefix",r),No(e,"experimentalParseClassName",n),Si(e.theme,i.theme),Si(e.classGroups,i.classGroups),Si(e.conflictingClassGroups,i.conflictingClassGroups),Si(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),No(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ti(e.theme,o.theme),Ti(e.classGroups,o.classGroups),Ti(e.conflictingClassGroups,o.conflictingClassGroups),Ti(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ad(e,o,"orderSensitiveModifiers"),e),No=(e,t,r)=>{r!==void 0&&(e[t]=r)},Si=(e,t)=>{if(t)for(const r in t)No(e,r,t[r])},Ti=(e,t)=>{if(t)for(const r in t)Ad(e,t,r)},Ad=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Nd=(e,...t)=>typeof e=="function"?Aa(La,e,...t):Aa(()=>ex(La(),e),...t),tx=Aa(La);var rx=e=>jt(e)?tx:Nd({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),nx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},ki=(...e)=>{let t=[];Od(e,t);let r="";for(let n=0;n<t.length;n++)t[n]&&(r&&(r+=" "),r+=t[n]);return r||void 0};function Od(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Od(n,t):n&&t.push(n)}}var Fa=null,Va={},ja=!1,Ii=(...e)=>t=>{let r=ki(e);return!r||!t.twMerge?r:((!Fa||ja)&&(ja=!1,Fa=rx(Va)),Fa(r)||void 0)},Ld=(e,t)=>{for(let r in t)r in e?e[r]=ki(e[r],t[r]):e[r]=t[r];return e},ox=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...nx,...t},c=r?.base?ki(r.base,e?.base):e?.base,u=r?.variants&&!jt(r.variants)?vd(o,r.variants):o,d=r?.defaultVariants&&!jt(r.defaultVariants)?{...r.defaultVariants,...a}:a;!jt(l.twMergeConfig)&&!w1(l.twMergeConfig,Va)&&(ja=!0,Va=l.twMergeConfig);let p=jt(r?.slots),h=jt(n)?{}:{base:ki(e?.base,p&&r?.base),...n},m=p?h:Ld({...r?.slots},jt(h)?{base:e?.base}:h),g=jt(r?.compoundVariants)?i:gd(r?.compoundVariants,i),x=$=>{if(jt(u)&&jt(n)&&p)return Ii(c,$?.class,$?.className)(l);if(g&&!Array.isArray(g))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let C=(M,A,I=[],N)=>{let w=I;if(typeof A=="string"){let P=bd(A).split(" ");for(let _=0;_<P.length;_++)w.push(`${M}:${P[_]}`)}else if(Array.isArray(A))for(let P=0;P<A.length;P++)w.push(`${M}:${A[P]}`);else if(typeof A=="object"&&typeof N=="string"&&N in A){let P=A[N];if(P&&typeof P=="string"){let _=bd(P).split(" "),B=[];for(let L=0;L<_.length;L++)B.push(`${M}:${_[L]}`);w[N]=w[N]?w[N].concat(B):B}else if(Array.isArray(P)&&P.length>0){let _=[];for(let B=0;B<P.length;B++)_.push(`${M}:${P[B]}`);w[N]=_}}return w},S=(M,A=u,I=null,N=null)=>{let w=A[M];if(!w||jt(w))return null;let P=N?.[M]??$?.[M];if(P===null)return null;let _=hd(P),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,L=d?.[M],K=[];if(typeof _=="object"&&B)for(let[U,ee]of Object.entries(_)){let G=w[ee];if(U==="initial"){L=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(K=C(U,G,K,I))}let z=_!=null&&typeof _!="object"?_:hd(L),W=w[z||"false"];return typeof K=="object"&&typeof I=="string"&&K[I]?Ld(K,W):K.length>0?(K.push(W),I==="base"?K.join(" "):K):W},T=()=>{if(!u)return null;let M=Object.keys(u),A=[];for(let I=0;I<M.length;I++){let N=S(M[I],u);N&&A.push(N)}return A},k=(M,A)=>{if(!u||typeof u!="object")return null;let I=[];for(let N in u){let w=S(N,u,M,A),P=M==="base"&&typeof w=="string"?w:w&&w[M];P&&I.push(P)}return I},D={};for(let M in $){let A=$[M];A!==void 0&&(D[M]=A)}let E=(M,A)=>{let I=typeof $?.[M]=="object"?{[M]:$[M]?.initial}:{};return{...d,...D,...I,...A}},V=(M=[],A)=>{let I=[],N=M.length;for(let w=0;w<N;w++){let{class:P,className:_,...B}=M[w],L=!0,K=E(null,A);for(let z in B){let W=B[z],U=K[z];if(Array.isArray(W)){if(!W.includes(U)){L=!1;break}}else{if((W==null||W===!1)&&(U==null||U===!1))continue;if(U!==W){L=!1;break}}}L&&(P&&I.push(P),_&&I.push(_))}return I},F=M=>{let A=V(g,M);if(!Array.isArray(A))return A;let I={},N=Ii;for(let w=0;w<A.length;w++){let P=A[w];if(typeof P=="string")I.base=N(I.base,P)(l);else if(typeof P=="object")for(let _ in P)I[_]=N(I[_],P[_])(l)}return I},y=M=>{if(s.length<1)return null;let A={},I=E(null,M);for(let N=0;N<s.length;N++){let{slots:w=[],class:P,className:_,...B}=s[N];if(!jt(B)){let L=!0;for(let K in B){let z=I[K],W=B[K];if(z===void 0||(Array.isArray(W)?!W.includes(z):W!==z)){L=!1;break}}if(!L)continue}for(let L=0;L<w.length;L++){let K=w[L];A[K]||(A[K]=[]),A[K].push([P,_])}}return A};if(!jt(n)||!p){let M={};if(typeof m=="object"&&!jt(m)){let A=Ii;for(let I in m)M[I]=N=>{let w=F(N),P=y(N);return A(m[I],k(I,N),w?w[I]:void 0,P?P[I]:void 0,N?.class,N?.className)(l)}}return M}return Ii(c,T(),V(g),$?.class,$?.className)(l)},v=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return x.variantKeys=v(),x.extend=r,x.base=c,x.slots=m,x.variants=u,x.defaultVariants=d,x.compoundSlots=s,x.compoundVariants=g,x},nt=(e,t)=>{var r,n,o;return ox(e,{...t,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(n=void 0)==null?void 0:n.theme,...ka.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...ka.classGroups}}})},_i=nt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),wr=["outline-solid outline-transparent","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],za=["outline-solid outline-transparent","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],ix=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Gn={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},Fd=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],Mi=nt({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...wr],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Y.solid.foreground},primary:{base:"before:bg-primary",content:Y.solid.primary},secondary:{base:"before:bg-secondary",content:Y.solid.secondary},success:{base:"before:bg-success",content:Y.solid.success},warning:{base:"before:bg-warning",content:Y.solid.warning},danger:{base:"before:bg-danger",content:Y.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),sx=nt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...za],hiddenInput:Fd,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),ax=nt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),lx=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],ux=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Di=nt({base:[],variants:{orientation:{vertical:["overflow-y-auto",...lx],horizontal:["overflow-x-auto",...ux]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),Vd=nt({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none","group-data-[has-label-outside=true]:pointer-events-auto"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-xs outline-solid outline-transparent tap-highlight-transparent",innerWrapper:"inline-flex h-fit w-[calc(100%_-theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",clearButton:["w-4","h-4","z-10","mb-4","relative","start-auto","appearance-none","outline-none","select-none","opacity-70","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...wr],helperWrapper:"p-1 flex relative flex-col gap-1.5 group-data-[has-helper=true]:flex",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger",endWrapper:"flex end-18",endContent:"mb-4"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"],clearButton:"mb-4"},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4 me-2"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small",clearButton:"text-medium"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small",clearButton:"text-large"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium",clearButton:"mb-5 text-large"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col",clearButton:"mb-0"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",label:"relative pe-2 text-foreground",clearButton:"mb-0"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isClearable:{true:{clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",endContent:"ms-3"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity,translate,scale]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none",clearButton:["transition-opacity","motion-reduce:transition-none"]}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...wr]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+var(--heroui-font-size-tiny)/2_+_16px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_26px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_30px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_34px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{labelPlacement:["outside","outside-left"],isClearable:!0,class:{endContent:["mt-4"],clearButton:["group-data-[has-end-content=true]:mt-4"]}},{isClearable:!1,labelPlacement:["outside","outside-left"],class:{endContent:["mt-4"]}},{isClearable:!0,variant:["underlined"],class:{clearButton:["relative group-data-[has-end-content=true]:left-2"],endContent:["me-2"]}},{isClearable:!1,variant:["underlined"],class:{endContent:["me-2"]}},{isClearable:!0,size:"sm",class:{endContent:"ms-2"}}]}),Ba=nt({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",wr],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),jd=nt({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...wr],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...za]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),cx=nt({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-solid outline-transparent",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),zd=nt({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent",...wr,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),dx=nt({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),Bd=nt({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-solid outline-transparent","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-solid outline-transparent","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...wr]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),Rd=nt({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),Kd=nt({base:"flex flex-col gap-2 items-start"}),Wd=nt({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),Ud=nt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...wr],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:Y.solid.default},{variant:"solid",color:"primary",class:Y.solid.primary},{variant:"solid",color:"secondary",class:Y.solid.secondary},{variant:"solid",color:"success",class:Y.solid.success},{variant:"solid",color:"warning",class:Y.solid.warning},{variant:"solid",color:"danger",class:Y.solid.danger},{variant:"shadow",color:"default",class:Y.shadow.default},{variant:"shadow",color:"primary",class:Y.shadow.primary},{variant:"shadow",color:"secondary",class:Y.shadow.secondary},{variant:"shadow",color:"success",class:Y.shadow.success},{variant:"shadow",color:"warning",class:Y.shadow.warning},{variant:"shadow",color:"danger",class:Y.shadow.danger},{variant:"bordered",color:"default",class:Y.bordered.default},{variant:"bordered",color:"primary",class:Y.bordered.primary},{variant:"bordered",color:"secondary",class:Y.bordered.secondary},{variant:"bordered",color:"success",class:Y.bordered.success},{variant:"bordered",color:"warning",class:Y.bordered.warning},{variant:"bordered",color:"danger",class:Y.bordered.danger},{variant:"flat",color:"default",class:Y.flat.default},{variant:"flat",color:"primary",class:Y.flat.primary},{variant:"flat",color:"secondary",class:Y.flat.secondary},{variant:"flat",color:"success",class:Y.flat.success},{variant:"flat",color:"warning",class:Y.flat.warning},{variant:"flat",color:"danger",class:Y.flat.danger},{variant:"faded",color:"default",class:Y.faded.default},{variant:"faded",color:"primary",class:Y.faded.primary},{variant:"faded",color:"secondary",class:Y.faded.secondary},{variant:"faded",color:"success",class:Y.faded.success},{variant:"faded",color:"warning",class:Y.faded.warning},{variant:"faded",color:"danger",class:Y.faded.danger},{variant:"light",color:"default",class:[Y.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[Y.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[Y.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[Y.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[Y.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[Y.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[Y.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[Y.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[Y.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[Y.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[Y.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[Y.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Gn.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Gn.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Gn.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Gn.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Gn.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Gn.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});nt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var Hd=nt({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...wr],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),fx=nt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...za],hiddenInput:Fd,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),px=nt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),Gd=nt({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-solid outline-transparent","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...ix,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:Y.solid.default}},{variant:"solid",color:"primary",class:{base:Y.solid.primary}},{variant:"solid",color:"secondary",class:{base:Y.solid.secondary}},{variant:"solid",color:"success",class:{base:Y.solid.success}},{variant:"solid",color:"warning",class:{base:Y.solid.warning}},{variant:"solid",color:"danger",class:{base:Y.solid.danger}},{variant:"shadow",color:"default",class:{base:Y.shadow.default}},{variant:"shadow",color:"primary",class:{base:Y.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:Y.shadow.secondary}},{variant:"shadow",color:"success",class:{base:Y.shadow.success}},{variant:"shadow",color:"warning",class:{base:Y.shadow.warning}},{variant:"shadow",color:"danger",class:{base:Y.shadow.danger}},{variant:"bordered",color:"default",class:{base:Y.bordered.default}},{variant:"bordered",color:"primary",class:{base:Y.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:Y.bordered.secondary}},{variant:"bordered",color:"success",class:{base:Y.bordered.success}},{variant:"bordered",color:"warning",class:{base:Y.bordered.warning}},{variant:"bordered",color:"danger",class:{base:Y.bordered.danger}},{variant:"flat",color:"default",class:{base:Y.flat.default}},{variant:"flat",color:"primary",class:{base:Y.flat.primary}},{variant:"flat",color:"secondary",class:{base:Y.flat.secondary}},{variant:"flat",color:"success",class:{base:Y.flat.success}},{variant:"flat",color:"warning",class:{base:Y.flat.warning}},{variant:"flat",color:"danger",class:{base:Y.flat.danger}},{variant:"faded",color:"default",class:{base:Y.faded.default}},{variant:"faded",color:"primary",class:{base:Y.faded.primary}},{variant:"faded",color:"secondary",class:{base:Y.faded.secondary}},{variant:"faded",color:"success",class:{base:Y.faded.success}},{variant:"faded",color:"warning",class:{base:Y.faded.warning}},{variant:"faded",color:"danger",class:{base:Y.faded.danger}},{variant:"light",color:"default",class:{base:Y.light.default}},{variant:"light",color:"primary",class:{base:Y.light.primary}},{variant:"light",color:"secondary",class:{base:Y.light.secondary}},{variant:"light",color:"success",class:{base:Y.light.success}},{variant:"light",color:"warning",class:{base:Y.light.warning}},{variant:"light",color:"danger",class:{base:Y.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),Zd=nt({slots:{base:"flex flex-grow flex-row w-full items-center py-3 px-4 gap-x-1",mainWrapper:"h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",title:"text-small w-full font-medium block text-inherit leading-5",description:"pl-[1px] text-small font-normal text-inherit",closeButton:"relative text-inherit translate-x-1 -translate-y-1",iconWrapper:"flex-none relative w-9 h-9 rounded-full grid place-items-center",alertIcon:"fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},variants:{color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},variant:{solid:{},flat:{},faded:{base:"border-small"},bordered:{base:"border-small bg-transparent"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},hideIcon:{true:{iconWrapper:"hidden"}},hideIconWrapper:{true:{base:"gap-x-0",iconWrapper:"!bg-transparent !shadow-none !border-none"}},hasContent:{false:{base:"items-center",mainWrapper:"justify-center items-center"}}},defaultVariants:{color:"default",variant:"flat",radius:"md",hideIcon:!1,hideIconWrapper:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:Y.solid.default,closeButton:"data-[hover]:bg-default-100",alertIcon:"text-default-foreground"}},{variant:"solid",color:"primary",class:{base:Y.solid.primary}},{variant:"solid",color:"secondary",class:{base:Y.solid.secondary}},{variant:"solid",color:"success",class:{base:Y.solid.success}},{variant:"solid",color:"warning",class:{base:Y.solid.warning}},{variant:"solid",color:"danger",class:{base:Y.solid.danger}},{variant:["flat","faded"],color:"default",class:{base:[Y.flat.default,"bg-default-100 dark:bg-default-50/50","text-default-foreground"],description:"text-default-600",closeButton:"text-default-400",iconWrapper:"bg-default-50 dark:bg-default-100 border-default-200"}},{variant:["flat","faded"],color:"primary",class:{base:[Y.flat.primary,"bg-primary-50 dark:bg-primary-50/50"],closeButton:"text-primary-500 data-[hover]:bg-primary-200",iconWrapper:"bg-primary-50 dark:bg-primary-100 border-primary-100"}},{variant:["flat","faded"],color:"secondary",class:{base:[Y.flat.secondary,"bg-secondary-50 dark:bg-secondary-50/50"],closeButton:"text-secondary-500 data-[hover]:bg-secondary-200",iconWrapper:"bg-secondary-50 dark:bg-secondary-100 border-secondary-100"}},{variant:["flat","faded"],color:"success",class:{base:[Y.flat.success,"bg-success-50 dark:bg-success-50/50"],closeButton:"text-success-500 data-[hover]:bg-success-200",iconWrapper:"bg-success-50 dark:bg-success-100 border-success-100"}},{variant:["flat","faded"],color:"warning",class:{base:[Y.flat.warning,"bg-warning-50 dark:bg-warning-50/50"],closeButton:"text-warning-500 data-[hover]:bg-warning-200",iconWrapper:"bg-warning-50 dark:bg-warning-100 border-warning-100"}},{variant:["flat","faded"],color:"danger",class:{base:[Y.flat.danger,"bg-danger-50 dark:bg-danger-50/50"],closeButton:"text-danger-500 data-[hover]:bg-danger-200",iconWrapper:"bg-danger-50 dark:bg-danger-100 border-danger-100"}},{variant:"faded",color:"default",class:{base:"border-default-300 dark:border-default-200"}},{variant:"faded",color:"primary",class:{base:"border-primary-200 dark:border-primary-100"}},{variant:"faded",color:"secondary",class:{base:"border-secondary-200"}},{variant:"faded",color:"success",class:{base:"border-success-300 dark:border-success-100"}},{variant:"faded",color:"warning",class:{base:"border-warning-300 dark:border-warning-100"}},{variant:"faded",color:"danger",class:{base:"border-danger-200 dark:border-danger-100"}},{variant:"bordered",color:"default",class:{base:[Y.bordered.default],description:"text-default-600",closeButton:"text-default-400"}},{variant:"bordered",color:"primary",class:{base:[Y.bordered.primary],closeButton:"data-[hover]:bg-primary-50"}},{variant:"bordered",color:"secondary",class:{base:[Y.bordered.secondary],closeButton:"data-[hover]:bg-secondary-50"}},{variant:"bordered",color:"success",class:{base:[Y.bordered.success],closeButton:"data-[hover]:bg-success-50"}},{variant:"bordered",color:"warning",class:{base:[Y.bordered.warning],closeButton:"data-[hover]:bg-warning-100"}},{variant:"bordered",color:"danger",class:{base:[Y.bordered.danger],closeButton:"data-[hover]:bg-danger-50"}},{variant:["flat","bordered","faded"],class:{iconWrapper:"shadow-small"}},{variant:["flat","faded"],class:{iconWrapper:"shadow-small border-1"}},{variant:"bordered",color:"default",class:{iconWrapper:"bg-default-200 dark:bg-default-100"}},{variant:"bordered",color:"primary",class:{iconWrapper:"bg-primary-100 dark:bg-primary-50"}},{variant:"bordered",color:"secondary",class:{iconWrapper:"bg-secondary-100 dark:bg-secondary-50"}},{variant:"bordered",color:"success",class:{iconWrapper:"bg-success-100 dark:bg-success-50"}},{variant:"bordered",color:"warning",class:{iconWrapper:"bg-warning-100 dark:bg-warning-50"}},{variant:"bordered",color:"danger",class:{iconWrapper:"bg-danger-100 dark:bg-danger-50"}}]}),hx=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function Ra(e){return Array.isArray(e)}function mx(e){return Ra(e)&&e.length===0}function qd(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Ra(e)}function gx(e){return qd(e)&&Object.keys(e).length===0}function vx(e){return Ra(e)?mx(e):qd(e)?gx(e):e==null||e===""}function bx(e){return typeof e=="function"}var pe=e=>e?"true":void 0;function Yd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Yd(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ke(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=Yd(r))&&(o&&(o+=" "),o+=n);return o}var Ka=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function yx(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function rn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function xx(e,t,r){return Math.min(Math.max(e,t),r)}var Xd={};function Ai(e,t,...r){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Xd[o]&&(Xd[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Or(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Jd=new Map;function wx(e,t){if(e===t)return e;let r=Jd.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Jd.get(t);return n?(n.forEach(o=>o.current=e),e):t}function mt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Or(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Ke(i,s):o==="id"&&i&&s?t.id=wx(i,s):t[o]=s!==void 0?s:i}}return t}function $x(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=Qd(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():Qd(e[i],null)})}}}function Qd(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function ef(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ef(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ex(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ef(e))&&(n&&(n+=" "),n+=t);return n}var Px=Nd({extend:ka});function j(...e){return Px(Ex(e))}function Cx({children:e,classNames:t}){return b.jsx("div",{className:j("mobielnl-elements",t?.base),children:e})}function Ni(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function i(){var s;const a=At.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function Sx(e){return{UNSAFE_getDOMNode(){return e.current}}}function zt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function Tx(e,t){if(e!=null){if(bx(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function tf(...e){return t=>{e.forEach(r=>Tx(r,t))}}function kx(){const e=()=>()=>{};return At.useSyncExternalStore(e,()=>!0,()=>!1)}var Ix=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),_x=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),rf=/^(data-.*)$/,Mx=/^(aria-.*)$/,Oi=/^(on[A-Z].*)$/;function ut(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:i,omitEventNames:s,omitDataProps:a,omitEventProps:l}=t,c={};if(!n)return e;for(const u in e)i?.has(u)||s?.has(u)&&Oi.test(u)||Oi.test(u)&&!_x.has(u)||a&&rf.test(u)||l&&Oi.test(u)||(Object.prototype.hasOwnProperty.call(e,u)&&(Ix.has(u)||r&&Mx.test(u)||o?.has(u)||rf.test(u))||Oi.test(u))&&(c[u]=e[u]);return c}function Wa({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):At.createElement(e,t)}var[K8,gt]=Ni({name:"ProviderContext",strict:!1});const Dx=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ax=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Nx(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Dx.has(r.script)}let t=e.split("-")[0];return Ax.has(t)}const Li={prefix:String(Math.round(Math.random()*1e10)),current:0},nf=f.createContext(Li),Ox=f.createContext(!1);let Lx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ua=new WeakMap;function Fx(e=!1){let t=f.useContext(nf),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let s=Ua.get(i);s==null?Ua.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ua.delete(i))}r.current=++t.current}return r.current}function Vx(e){let t=f.useContext(nf);t===Li&&!Lx&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=Fx(!!e),n=t===Li&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function jx(e){let t=f.useId(),[r]=f.useState(Zn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Li.prefix}`;return e||`${n}-${t}`}const zx=typeof f.useId=="function"?jx:Vx;function Bx(){return!1}function Rx(){return!0}function Kx(e){return()=>{}}function Zn(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(Kx,Bx,Rx):f.useContext(Ox)}const Wx=Symbol.for("react-aria.i18n.locale");function of(){let e=typeof window<"u"&&window[Wx]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Nx(e)?"rtl":"ltr"}}let Ha=of(),Oo=new Set;function sf(){Ha=of();for(let e of Oo)e(Ha)}function Ux(){let e=Zn(),[t,r]=f.useState(Ha);return f.useEffect(()=>(Oo.size===0&&window.addEventListener("languagechange",sf),Oo.add(r),()=>{Oo.delete(r),Oo.size===0&&window.removeEventListener("languagechange",sf)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Hx=f.createContext(null);function Lo(){let e=Ux();return f.useContext(Hx)||e}const Gx=Symbol.for("react-aria.i18n.locale"),Zx=Symbol.for("react-aria.i18n.strings");let qn;class Fi{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=qx(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Gx];if(qn===void 0){let o=window[Zx];if(!o)return null;qn={};for(let i in o)qn[i]=new Fi({[r]:o[i]},r)}let n=qn?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function qx(e,t,r="en-US"){if(t[e])return t[e];let n=Yx(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Yx(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const af=new Map,lf=new Map;class Xx{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=af.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),af.set(i,s));let a=s.select(t);return o=r[a]||r.other,typeof o=="function"?o():o}number(t){let r=lf.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),lf.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function Jx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function uf(e,t,r){Jx(e,t),t.set(e,r)}const Be=typeof document<"u"?f.useLayoutEffect:()=>{};var Ga;const Qx=(Ga=f.useInsertionEffect)!==null&&Ga!==void 0?Ga:Be;function Ye(e){const t=f.useRef(null);return Qx(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function ew(e){let[t,r]=f.useState(e),n=f.useRef(null),o=Ye(()=>{if(!n.current)return;let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});Be(()=>{n.current&&o()});let i=Ye(s=>{n.current=s(t),o()});return[t,i]}let tw=!!(typeof window<"u"&&window.document&&window.document.createElement),Yn=new Map,Fo;typeof FinalizationRegistry<"u"&&(Fo=new FinalizationRegistry(e=>{Yn.delete(e)}));function Nt(e){let[t,r]=f.useState(e),n=f.useRef(null),o=zx(t),i=f.useRef(null);if(Fo&&Fo.register(i,o),tw){const s=Yn.get(o);s&&!s.includes(n)?s.push(n):Yn.set(o,[n])}return Be(()=>{let s=o;return()=>{Fo&&Fo.unregister(i),Yn.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function rw(e,t){if(e===t)return e;let r=Yn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Yn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function nn(e=[]){let t=Nt(),[r,n]=ew(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Be(o,[t,o,...e]),r}function on(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Le=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Ot=e=>e&&"window"in e&&e.window===e?e:Le(e).defaultView||window;function nw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ow(e){return nw(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let iw=!1;function sn(){return iw}function Xe(e,t){if(!sn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:ow(r)?r=r.host:r=r.parentNode}return!1}const Tt=(e=document)=>{var t;if(!sn())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Fe(e){return sn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class sw{get currentNode(){return this._currentNode}set currentNode(t){if(!Xe(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Xe(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let s=this.lastChild();return s&&(this.currentNode=s),s}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function aw(e,t,r,n){return sn()?new sw(e,t,r,n):e.createTreeWalker(t,r,n)}function cf(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=cf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function df(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=cf(e))&&(n&&(n+=" "),n+=t);return n}function Ie(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=on(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=df(i,s):o==="id"&&i&&s?t.id=rw(i,s):t[o]=s!==void 0?s:i}}return t}const lw=new Set(["id"]),uw=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cw=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dw=new Set(["dir","lang","hidden","inert","translate"]),ff=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),fw=/^(data-.*)$/;function lr(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(lw.has(l)||r&&uw.has(l)||n&&cw.has(l)||o&&dw.has(l)||i&&ff.has(l)||l.endsWith("Capture")&&ff.has(l.slice(0,-7))||s?.has(l)||fw.test(l))&&(a[l]=e[l]);return a}function Zt(e){if(pw())e.focus({preventScroll:!0});else{let t=hw(e);e.focus(),mw(t)}}let Vi=null;function pw(){if(Vi==null){Vi=!1;try{document.createElement("div").focus({get preventScroll(){return Vi=!0,!0}})}catch{}}return Vi}function hw(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function mw(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ji(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Za(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $r(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Lr=$r(function(){return Za(/^Mac/i)}),gw=$r(function(){return Za(/^iPhone/i)}),pf=$r(function(){return Za(/^iPad/i)||Lr()&&navigator.maxTouchPoints>1}),zi=$r(function(){return gw()||pf()}),vw=$r(function(){return Lr()||zi()}),Bi=$r(function(){return ji(/AppleWebKit/i)&&!qa()}),qa=$r(function(){return ji(/Chrome/i)}),Ya=$r(function(){return ji(/Android/i)}),bw=$r(function(){return ji(/Firefox/i)}),yw=f.createContext({isNative:!0,open:ww,useHref:e=>e});function Xa(){return f.useContext(yw)}function an(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;bw()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Lr()?i=!0:s=!0);let c=Bi()&&Lr()&&!pf()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});an.isOpening=r,Zt(e),e.dispatchEvent(c),an.isOpening=!1}an.isOpening=!1;function xw(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function ww(e,t){xw(e,r=>an(r,t))}function $w(e){let t=Xa();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Fr=new Map,Ja=new Set;function hf(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Fr.get(n.target);o||(o=new Set,Fr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Fr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Fr.delete(n.target)),Fr.size===0)){for(let i of Ja)i();Ja.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?hf():document.addEventListener("DOMContentLoaded",hf));function Ew(){for(const[e]of Fr)"isConnected"in e&&!e.isConnected&&Fr.delete(e)}function mf(e){requestAnimationFrame(()=>{Ew(),Fr.size===0?e():Ja.add(e)})}function ln(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Qa(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Nt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function gf(e,t){const r=f.useRef(!0),n=f.useRef(null);Be(()=>(r.current=!0,()=>{r.current=!1}),[]),Be(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function Pw(){return typeof window.ResizeObserver<"u"}function Ri(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(Pw()){const i=new window.ResizeObserver(s=>{s.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function vf(e,t){Be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Xn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function bf(e,t){let r=e;for(Xn(r,t)&&(r=r.parentElement);r&&!Xn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Cw(e,t){const r=[];for(;e&&e!==document.documentElement;)Xn(e,t)&&r.push(e),e=e.parentElement;return r}function Jn(e){return Lr()?e.metaKey:e.ctrlKey}const Sw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function el(e){return e instanceof HTMLInputElement&&!Sw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Tw=0;const tl=new Map;function kw(e){let[t,r]=f.useState();return Be(()=>{if(!e)return;let n=tl.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Tw++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},tl.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),tl.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Ki(e,t,r,n){let o=Ye(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,i,o])}function yf(e,t){let r=xf(e,t,"left"),n=xf(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:g,scrollMarginBottom:x,scrollMarginLeft:v}=getComputedStyle(t),$=s+parseInt(c,10),C=a+parseInt(l,10),S=$+e.clientWidth,T=C+e.clientHeight,k=parseInt(u,10)||0,D=parseInt(p,10)||0,E=parseInt(d,10)||0,V=parseInt(h,10)||0,F=parseInt(m,10)||0,y=parseInt(x,10)||0,M=parseInt(g,10)||0,A=parseInt(v,10)||0,I=r-A,N=r+o+M,w=n-F,P=n+i+y,_=s+parseInt(c,10)+V,B=S-E,L=a+parseInt(l,10)+k,K=T-D;if((I>_||N<B)&&(I<=s+V?s=I-parseInt(c,10)-V:N>S-E&&(s+=N-S+E)),(w>L||P<K)&&(w<=C+k?a=w-parseInt(l,10)-k:P>T-D&&(a+=P-T+D)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=a;return}e.scrollTo({left:s,top:a})}function xf(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function wf(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!qa()){var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=Cw(e);for(let c of l)yf(c,e)}}}function rl(e){return e.pointerType===""&&e.isTrusted?!0:Ya()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Iw(e){return!Ya()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Wi(e,t,r){let n=Ye(()=>{r&&r(t)});f.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e,n])}const _w="react-aria-clear-focus",Mw="react-aria-focus",Dw=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Aw(e){const t=Ot(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Nw(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function nl(e,t){return Dw?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Aw(e)&&Nw(e,t)&&(!e.parentElement||nl(e.parentElement,e))}const ol=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Ow=ol.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ol.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Lw=ol.join(':not([hidden]):not([tabindex="-1"]),');function $f(e){return e.matches(Ow)&&nl(e)&&!Ef(e)}function Fw(e){return e.matches(Lw)&&nl(e)&&!Ef(e)}function Ef(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Er(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=i.current;c!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:n,l=f.useCallback((c,...u)=>{let d=(p,...h)=>{r&&(Object.is(a,p)||r(p,...h)),s||(a=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...m)=>{let g=c(s?a:h,...m);return d(g,...u),s?h:g})):(s||o(c),d(c,...u))},[s,a,r]);return[a,l]}function Pr(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Ui(e,t){let r=e,n=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let s=o.indexOf(".");s>=0&&(n=o.length-s)}if(n>0){let s=Math.pow(10,n);r=Math.round(r*s)/s}return r}function Vo(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,i=Ui(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(Ui(r/n,n))*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(Ui((r-t)/n,n))*n),i=Ui(i,n),i}let il=new Map,sl=!1;try{sl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Hi=!1;try{Hi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Pf={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Vw{format(t){let r="";if(!sl&&this.options.signDisplay!=null?r=zw(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Hi){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Pf[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!sl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Hi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=jw(t,r),this.options=r}}function jw(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Hi){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Pf[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(il.has(o))return il.get(o);let i=new Intl.NumberFormat(e,t);return il.set(o,i),i}function zw(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(r)}}function Cf(e={}){let{locale:t}=Lo();return f.useMemo(()=>new Vw(t,e),[t,e])}const Sf=f.createContext({});function al(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const ll=typeof window<"u",Tf=ll?f.useLayoutEffect:f.useEffect,Gi=f.createContext(null);function Bw(e,t){e.indexOf(t)===-1&&e.push(t)}function Rw(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const un=(e,t,r)=>r>t?t:r<e?e:r;function ul(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Qn=()=>{},Vr=()=>{};process.env.NODE_ENV!=="production"&&(Qn=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(ul(t,r))},Vr=(e,t,r)=>{if(!e)throw new Error(ul(t,r))});const Cr={},kf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Kw(e){return typeof e=="object"&&e!==null}const If=e=>/^0[^.\s]+$/u.test(e);function cl(e){let t;return()=>(t===void 0&&(t=e()),t)}const eo=e=>e,Ww=(e,t)=>r=>t(e(r)),Zi=(...e)=>e.reduce(Ww),_f=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class Mf{constructor(){this.subscriptions=[]}add(t){return Bw(this.subscriptions,t),()=>Rw(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ur=e=>e*1e3,Sr=e=>e/1e3;function Df(e,t){return t?e*(1e3/t):0}const Af=new Set;function dl(e,t,r){e||Af.has(t)||(console.warn(ul(t,r)),Af.add(t))}const Nf=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Uw=1e-7,Hw=12;function Gw(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=Nf(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>Uw&&++a<Hw);return s}function jo(e,t,r,n){if(e===t&&r===n)return eo;const o=i=>Gw(i,0,1,e,r);return i=>i===0||i===1?i:Nf(o(i),t,n)}const Of=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lf=e=>t=>1-e(1-t),Ff=jo(.33,1.53,.69,.99),fl=Lf(Ff),Vf=Of(fl),jf=e=>(e*=2)<1?.5*fl(e):.5*(2-Math.pow(2,-10*(e-1))),pl=e=>1-Math.sin(Math.acos(e)),Zw=Lf(pl),zf=Of(pl),qw=jo(.42,0,1,1),Yw=jo(0,0,.58,1),Bf=jo(.42,0,.58,1),Xw=e=>Array.isArray(e)&&typeof e[0]!="number",Rf=e=>Array.isArray(e)&&typeof e[0]=="number",Kf={linear:eo,easeIn:qw,easeInOut:Bf,easeOut:Yw,circIn:pl,circInOut:zf,circOut:Zw,backIn:fl,backInOut:Vf,backOut:Ff,anticipate:jf},Jw=e=>typeof e=="string",Wf=e=>{if(Rf(e)){Vr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return jo(t,r,n,o)}else if(Jw(e))return Vr(Kf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Kf[e];return e},qi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Qw(e,t){let r=new Set,n=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,p=!1)=>{const m=p&&o?r:n;return d&&s.add(u),m.has(u)||m.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const e$=40;function Uf(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=qi.reduce((C,S)=>(C[S]=Qw(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:h,postRender:m}=s,g=()=>{const C=Cr.useManualTiming?o.timestamp:performance.now();r=!1,Cr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(C-o.timestamp,e$),1)),o.timestamp=C,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),h.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(g))},x=()=>{r=!0,n=!0,o.isProcessing||e(g)};return{schedule:qi.reduce((C,S)=>{const T=s[S];return C[S]=(k,D=!1,E=!1)=>(r||x(),T.schedule(k,D,E)),C},{}),cancel:C=>{for(let S=0;S<qi.length;S++)s[qi[S]].cancel(C)},state:o,steps:s}}const{schedule:tr,cancel:hl,state:Yi}=Uf(typeof requestAnimationFrame<"u"?requestAnimationFrame:eo,!0);let Xi;function t$(){Xi=void 0}const qt={now:()=>(Xi===void 0&&qt.set(Yi.isProcessing||Cr.useManualTiming?Yi.timestamp:performance.now()),Xi),set:e=>{Xi=e,queueMicrotask(t$)}},Hf=e=>t=>typeof t=="string"&&t.startsWith(e),Gf=Hf("--"),r$=Hf("var(--"),ml=e=>r$(e)?n$.test(e.split("/*")[0].trim()):!1,n$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,to={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},zo={...to,transform:e=>un(0,1,e)},Ji={...to,default:1},Bo=e=>Math.round(e*1e5)/1e5,gl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function o$(e){return e==null}const i$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vl=(e,t)=>r=>!!(typeof r=="string"&&i$.test(r)&&r.startsWith(e)||t&&!o$(r)&&Object.prototype.hasOwnProperty.call(r,t)),Zf=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,s,a]=n.match(gl);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},s$=e=>un(0,255,e),bl={...to,transform:e=>Math.round(s$(e))},cn={test:vl("rgb","red"),parse:Zf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+bl.transform(e)+", "+bl.transform(t)+", "+bl.transform(r)+", "+Bo(zo.transform(n))+")"};function a$(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const yl={test:vl("#"),parse:a$,transform:cn.transform},Ro=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jr=Ro("deg"),ro=Ro("%"),we=Ro("px"),l$=Ro("vh"),u$=Ro("vw"),qf={...ro,parse:e=>ro.parse(e)/100,transform:e=>ro.transform(e*100)},no={test:vl("hsl","hue"),parse:Zf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ro.transform(Bo(t))+", "+ro.transform(Bo(r))+", "+Bo(zo.transform(n))+")"},ct={test:e=>cn.test(e)||yl.test(e)||no.test(e),parse:e=>cn.test(e)?cn.parse(e):no.test(e)?no.parse(e):yl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cn.transform(e):no.transform(e),getAnimatableNone:e=>{const t=ct.parse(e);return t.alpha=0,ct.transform(t)}},c$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function d$(e){return isNaN(e)&&typeof e=="string"&&(e.match(gl)?.length||0)+(e.match(c$)?.length||0)>0}const Yf="number",Xf="color",f$="var",p$="var(",Jf="${}",h$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ko(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(h$,l=>(ct.test(l)?(n.color.push(i),o.push(Xf),r.push(ct.parse(l))):l.startsWith(p$)?(n.var.push(i),o.push(f$),r.push(l)):(n.number.push(i),o.push(Yf),r.push(parseFloat(l))),++i,Jf)).split(Jf);return{values:r,split:a,indexes:n,types:o}}function Qf(e){return Ko(e).values}function ep(e){const{split:t,types:r}=Ko(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){const a=r[s];a===Yf?i+=Bo(o[s]):a===Xf?i+=ct.transform(o[s]):i+=o[s]}return i}}const m$=e=>typeof e=="number"?0:ct.test(e)?ct.getAnimatableNone(e):e;function g$(e){const t=Qf(e);return ep(e)(t.map(m$))}const oo={test:d$,parse:Qf,createTransformer:ep,getAnimatableNone:g$};function xl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function v$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=xl(l,a,e+1/3),i=xl(l,a,e),s=xl(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Qi(e,t){return r=>r>0?t:e}const es=(e,t,r)=>e+(t-e)*r,wl=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},b$=[yl,cn,no],y$=e=>b$.find(t=>t.test(e));function tp(e){const t=y$(e);if(Qn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===no&&(r=v$(r)),r}const rp=(e,t)=>{const r=tp(e),n=tp(t);if(!r||!n)return Qi(e,t);const o={...r};return i=>(o.red=wl(r.red,n.red,i),o.green=wl(r.green,n.green,i),o.blue=wl(r.blue,n.blue,i),o.alpha=es(r.alpha,n.alpha,i),cn.transform(o))},$l=new Set(["none","hidden"]);function x$(e,t){return $l.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function w$(e,t){return r=>es(e,t,r)}function El(e){return typeof e=="number"?w$:typeof e=="string"?ml(e)?Qi:ct.test(e)?rp:P$:Array.isArray(e)?np:typeof e=="object"?ct.test(e)?rp:$$:Qi}function np(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>El(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function $$(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=El(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function E$(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][n[i]],a=e.values[s]??0;r[o]=a,n[i]++}return r}const P$=(e,t)=>{const r=oo.createTransformer(t),n=Ko(e),o=Ko(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?$l.has(e)&&!o.values.length||$l.has(t)&&!n.values.length?x$(e,t):Zi(np(E$(n,o),o.values),r):(Qn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Qi(e,t))};function op(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?es(e,t,r):El(e)(e,t)}const C$=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>tr.update(t,r),stop:()=>hl(t),now:()=>Yi.isProcessing?Yi.timestamp:qt.now()}},ip=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ts=2e4;function Pl(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<ts;)t+=r,n=e.next(t);return t>=ts?1/0:t}function S$(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(Pl(n),ts);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:Sr(o)}}const T$=5;function sp(e,t,r){const n=Math.max(t-T$,0);return Df(r-e(n),t-n)}const et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Cl=.001;function k$({duration:e=et.duration,bounce:t=et.bounce,velocity:r=et.velocity,mass:n=et.mass}){let o,i;Qn(e<=ur(et.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=un(et.minDamping,et.maxDamping,s),e=un(et.minDuration,et.maxDuration,Sr(e)),s<1?(o=c=>{const u=c*s,d=u*e,p=u-r,h=Sl(c,s),m=Math.exp(-d);return Cl-p/h*m},i=c=>{const d=c*s*e,p=d*r+r,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-d),g=Sl(Math.pow(c,2),s);return(-o(c)+Cl>0?-1:1)*((p-h)*m)/g}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Cl+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const a=5/e,l=_$(o,i,a);if(e=ur(e),isNaN(l))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const I$=12;function _$(e,t,r){let n=r;for(let o=1;o<I$;o++)n=n-e(n)/t(n);return n}function Sl(e,t){return e*Math.sqrt(1-t*t)}const M$=["duration","bounce"],D$=["stiffness","damping","mass"];function ap(e,t){return t.some(r=>e[r]!==void 0)}function A$(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!ap(e,D$)&&ap(e,M$))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*un(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:et.mass,stiffness:o,damping:i}}else{const r=k$(e);t={...t,...r,mass:et.mass},t.isResolvedFromDuration=!0}return t}function rs(e=et.visualDuration,t=et.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:h}=A$({...r,velocity:-Sr(r.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(l*u)),x=s-i,v=Sr(Math.sqrt(l/u)),$=Math.abs(x)<5;n||(n=$?et.restSpeed.granular:et.restSpeed.default),o||(o=$?et.restDelta.granular:et.restDelta.default);let C;if(g<1){const T=Sl(v,g);C=k=>{const D=Math.exp(-g*v*k);return s-D*((m+g*v*x)/T*Math.sin(T*k)+x*Math.cos(T*k))}}else if(g===1)C=T=>s-Math.exp(-v*T)*(x+(m+v*x)*T);else{const T=v*Math.sqrt(g*g-1);C=k=>{const D=Math.exp(-g*v*k),E=Math.min(T*k,300);return s-D*((m+g*v*x)*Math.sinh(E)+T*x*Math.cosh(E))/T}}const S={calculatedDuration:h&&d||null,next:T=>{const k=C(T);if(h)a.done=T>=d;else{let D=T===0?m:0;g<1&&(D=T===0?ur(m):sp(C,T,k));const E=Math.abs(D)<=n,V=Math.abs(s-k)<=o;a.done=E&&V}return a.value=a.done?s:k,a},toString:()=>{const T=Math.min(Pl(S),ts),k=ip(D=>S.next(T*D).value,T,30);return T+"ms "+k},toTransition:()=>{}};return S}rs.applyToOptions=e=>{const t=S$(e,100,rs);return e.ease=t.ease,e.duration=ur(t.duration),e.type="keyframes",e};function Tl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=E=>a!==void 0&&E<a||l!==void 0&&E>l,m=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let g=r*t;const x=d+g,v=s===void 0?x:s(x);v!==x&&(g=v-d);const $=E=>-g*Math.exp(-E/n),C=E=>v+$(E),S=E=>{const V=$(E),F=C(E);p.done=Math.abs(V)<=c,p.value=p.done?v:F};let T,k;const D=E=>{h(p.value)&&(T=E,k=rs({keyframes:[p.value,m(p.value)],velocity:sp(C,E,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:E=>{let V=!1;return!k&&T===void 0&&(V=!0,S(E),D(E)),T!==void 0&&E>=T?k.next(E-T):(!V&&S(E),p)}}}function N$(e,t,r){const n=[],o=r||Cr.mix||op,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||eo:t;a=Zi(l,a)}n.push(a)}return n}function O$(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(Vr(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=N$(t,n,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const p=_f(e[d],e[d+1],u);return a[d](p)};return r?u=>c(un(e[0],e[i-1],u)):c}function L$(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=_f(0,t,n);e.push(es(r,1,o))}}function F$(e){const t=[0];return L$(t,e.length-1),t}function V$(e,t){return e.map(r=>r*t)}function j$(e,t){return e.map(()=>t||Bf).splice(0,e.length-1)}function io({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Xw(n)?n.map(Wf):Wf(n),i={done:!1,value:t[0]},s=V$(r&&r.length===t.length?r:F$(t),e),a=O$(s,t,{ease:Array.isArray(o)?o:j$(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const z$=e=>e!==null;function kl(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(z$),a=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const B$={decay:Tl,inertia:Tl,tween:io,keyframes:io,spring:rs};function lp(e){typeof e.type=="string"&&(e.type=B$[e.type])}class Il{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const R$=e=>e/100;class _l extends Il{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==qt.now()&&this.tick(qt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;lp(t);const{type:r=io,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=r||io;process.env.NODE_ENV!=="production"&&l!==io&&Vr(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==io&&typeof a[0]!="number"&&(this.mixKeyframes=Zi(R$,op(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Pl(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,S=n;if(d){const E=Math.min(this.currentTime,o)/a;let V=Math.floor(E),F=E%1;!F&&E>=1&&(F=1),F===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(F=1-F,h&&(F-=h/a)):p==="mirror"&&(S=s)),C=un(0,1,F)*a}const T=$?{done:!1,value:u[0]}:S.next(C);i&&(T.value=i(T.value));let{done:k}=T;!$&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==Tl&&(T.value=kl(u,this.options,x,this.speed)),g&&g(T.value),D&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return Sr(this.calculatedDuration)}get time(){return Sr(this.currentTime)}set time(t){t=ur(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(qt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Sr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=C$,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(qt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function K$(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const dn=e=>e*180/Math.PI,Ml=e=>{const t=dn(Math.atan2(e[1],e[0]));return Dl(t)},W$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ml,rotateZ:Ml,skewX:e=>dn(Math.atan(e[1])),skewY:e=>dn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Dl=e=>(e=e%360,e<0&&(e+=360),e),up=Ml,cp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cp,scaleY:dp,scale:e=>(cp(e)+dp(e))/2,rotateX:e=>Dl(dn(Math.atan2(e[6],e[5]))),rotateY:e=>Dl(dn(Math.atan2(-e[2],e[0]))),rotateZ:up,rotate:up,skewX:e=>dn(Math.atan(e[4])),skewY:e=>dn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Al(e){return e.includes("scale")?1:0}function Nl(e,t){if(!e||e==="none")return Al(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=U$,o=r;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=W$,o=a}if(!o)return Al(t);const i=n[t],s=o[1].split(",").map(G$);return typeof i=="function"?i(s):s[i]}const H$=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Nl(r,t)};function G$(e){return parseFloat(e.trim())}const so=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ao=new Set(so),fp=e=>e===to||e===we,Z$=new Set(["x","y","z"]),q$=so.filter(e=>!Z$.has(e));function Y$(e){const t=[];return q$.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const fn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Nl(t,"x"),y:(e,{transform:t})=>Nl(t,"y")};fn.translateX=fn.x,fn.translateY=fn.y;const pn=new Set;let Ol=!1,Ll=!1,Fl=!1;function pp(){if(Ll){const e=Array.from(pn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=Y$(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ll=!1,Ol=!1,pn.forEach(e=>e.complete(Fl)),pn.clear()}function hp(){pn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ll=!0)})}function X$(){Fl=!0,hp(),pp(),Fl=!1}class Vl{constructor(t,r,n,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(pn.add(this),Ol||(Ol=!0,tr.read(hp),tr.resolveKeyframes(pp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const a=n.readValue(r,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}K$(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),pn.delete(this)}cancel(){this.state==="scheduled"&&(pn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const J$=e=>e.startsWith("--");function Q$(e,t,r){J$(t)?e.style.setProperty(t,r):e.style[t]=r}const e2=cl(()=>window.ScrollTimeline!==void 0),t2={};function r2(e,t){const r=cl(e);return()=>t2[t]??r()}const mp=r2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,gp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wo([0,.65,.55,1]),circOut:Wo([.55,0,1,.45]),backIn:Wo([.31,.01,.66,-.59]),backOut:Wo([.33,1.53,.69,.99])};function vp(e,t){if(e)return typeof e=="function"?mp()?ip(e,t):"ease-out":Rf(e)?Wo(e):Array.isArray(e)?e.map(r=>vp(r,t)||gp.easeOut):gp[e]}function n2(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=vp(a,o);Array.isArray(d)&&(u.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(p.pseudoElement=c),e.animate(u,p)}function bp(e){return typeof e=="function"&&"applyToOptions"in e}function o2({type:e,...t}){return bp(e)&&mp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class i2 extends Il{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Vr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=o2(t);this.animation=n2(r,n,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=kl(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Q$(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Sr(Number(t))}get time(){return Sr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ur(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&e2()?(this.animation.timeline=t,eo):r(this)}}const yp={anticipate:jf,backInOut:Vf,circInOut:zf};function s2(e){return e in yp}function a2(e){typeof e.ease=="string"&&s2(e.ease)&&(e.ease=yp[e.ease])}const xp=10;class l2 extends i2{constructor(t){a2(t),lp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:i,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const a=new _l({...s,autoplay:!1}),l=ur(this.finishedTime??this.time);r.setWithVelocity(a.sample(l-xp).value,a.sample(l).value,xp),a.stop()}}const wp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(oo.test(e)||e==="0")&&!e.startsWith("url("));function u2(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function c2(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=wp(o,t),a=wp(i,t);return Qn(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:u2(e)||(r==="spring"||bp(r))&&n}function jl(e){e.duration=0,e.type}const d2=new Set(["opacity","clipPath","filter","transform"]),f2=cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function p2(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return f2()&&r&&d2.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}const h2=40;class m2 extends Il{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=qt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||Vl;this.keyframeResolver=new h(a,(m,g,x)=>this.onKeyframesResolved(m,g,p,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=qt.now(),c2(t,i,s,a)||((Cr.instantAnimations||!l)&&u?.(kl(t,n,r)),t[0]=t[t.length-1],jl(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>h2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!c&&p2(p)?new l2({...p,element:p.motionValue.owner.current}):new _l(p);h.finished.then(()=>this.notifyFinished()).catch(eo),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),X$()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const g2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function v2(e){const t=g2.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const b2=4;function $p(e,t,r=1){Vr(r<=b2,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=v2(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return kf(s)?parseFloat(s):s}return ml(o)?$p(o,t,r+1):o}function Ep(e,t){return e?.[t]??e?.default??e}const Pp=new Set(["width","height","top","left","right","bottom",...so]),y2={test:e=>e==="auto",parse:e=>e},Cp=e=>t=>t.test(e),Sp=[to,we,ro,jr,u$,l$,y2],Tp=e=>Sp.find(Cp(e));function x2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||If(e):!0}const w2=new Set(["brightness","contrast","saturate","opacity"]);function $2(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(gl)||[];if(!n)return e;const o=r.replace(n,"");let i=w2.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const E2=/\b([a-z-]*)\(.*?\)/gu,zl={...oo,getAnimatableNone:e=>{const t=e.match(E2);return t?t.map($2).join(" "):e}},kp={...to,transform:Math.round},Bl={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we,...{rotate:jr,rotateX:jr,rotateY:jr,rotateZ:jr,scale:Ji,scaleX:Ji,scaleY:Ji,scaleZ:Ji,skew:jr,skewX:jr,skewY:jr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:zo,originX:qf,originY:qf,originZ:we},zIndex:kp,fillOpacity:zo,strokeOpacity:zo,numOctaves:kp},P2={...Bl,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:zl,WebkitFilter:zl},Ip=e=>P2[e];function _p(e,t){let r=Ip(e);return r!==zl&&(r=oo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const C2=new Set(["auto","none","0"]);function S2(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!C2.has(i)&&Ko(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=_p(r,o)}class T2 extends Vl{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),ml(c))){const u=$p(c,r.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Pp.has(n)||t.length!==2)return;const[o,i]=t,s=Tp(o),a=Tp(i);if(s!==a)if(fp(s)&&fp(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else fn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||x2(t[o]))&&n.push(o);n.length&&S2(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,s=n[i];n[i]=fn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function k2(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Mp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Dp(e){return Kw(e)&&"offsetHeight"in e}const Ap=30,I2=e=>!isNaN(parseFloat(e));class _2{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=qt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=qt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=I2(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&dl(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mf);const n=this.events[t].add(r);return t==="change"?()=>{n(),tr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=qt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ap)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Ap);return Df(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ns(e,t){return new _2(e,t)}const{schedule:M2}=Uf(queueMicrotask,!1),D2={y:!1};function A2(){return D2.y}function Np(e,t){const r=k2(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Op(e){return!(e.pointerType==="touch"||A2())}function N2(e,t,r={}){const[n,o,i]=Np(e,r),s=a=>{if(!Op(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Op(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return n.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Lp=(e,t)=>t?e===t?!0:Lp(e,t.parentElement):!1,O2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,L2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function F2(e){return L2.has(e.tagName)||e.tabIndex!==-1}const os=new WeakSet;function Fp(e){return t=>{t.key==="Enter"&&e(t)}}function Rl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V2=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=Fp(()=>{if(os.has(r))return;Rl(r,"down");const o=Fp(()=>{Rl(r,"up")}),i=()=>Rl(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function Vp(e){return O2(e)&&!0}function j2(e,t,r={}){const[n,o,i]=Np(e,r),s=a=>{const l=a.currentTarget;if(!Vp(a))return;os.add(l);const c=t(l,a),u=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),os.has(l)&&os.delete(l),Vp(h)&&typeof c=="function"&&c(h,{success:m})},d=h=>{u(h,l===window||l===document||r.useGlobalTarget||Lp(l,h.target))},p=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(a=>{(r.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Dp(a)&&(a.addEventListener("focus",c=>V2(c,o)),!F2(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Lt=e=>!!(e&&e.getVelocity),z2=[...Sp,ct,oo],B2=e=>z2.find(Cp(e)),Kl=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class R2 extends At.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=Dp(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function K2({children:e,isPresent:t,anchorX:r,root:n}){const o=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(Kl);return f.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:p}=s.current;if(t||!i.current||!l||!c)return;const h=r==="left"?`left: ${d}`:`right: ${p}`;i.current.dataset.motionPopId=o;const m=document.createElement("style");a&&(m.nonce=a);const g=n??document.head;return g.appendChild(m),m.sheet&&m.sheet.insertRule(`
31
31
  [data-motion-pop-id="${o}"] {
32
32
  position: absolute !important;
33
33
  width: ${l}px !important;
34
34
  height: ${c}px !important;
35
- ${p}px !important;
35
+ ${h}px !important;
36
36
  top: ${u}px !important;
37
37
  }
38
- `),()=>{m.contains(g)&&m.removeChild(g)}},[t]),y.jsx(HE,{isPresent:t,childRef:i,sizeRef:s,children:Nt.cloneElement(e,{ref:i})})}const ZE=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=al(qE),u=f.useId();let d=!0,h=f.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:r,custom:o,onExitComplete:p=>{c.set(p,!0);for(const g of c.values())if(!g)return;n&&n()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[r,c,n]);return i&&d&&(h={...h}),f.useMemo(()=>{c.forEach((p,g)=>c.set(g,!1))},[r]),Nt.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),s==="popLayout"&&(e=y.jsx(GE,{isPresent:r,anchorX:a,root:l,children:e})),y.jsx(Gi.Provider,{value:h,children:e})};function qE(){return new Map}function YE(e=!0){const t=f.useContext(Gi);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,s]:[!0]}const is=e=>e.key||"";function Zp(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const ss=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=YE(s),d=f.useMemo(()=>Zp(e),[e]),h=s&&!c?[]:d.map(is),p=f.useRef(!0),g=f.useRef(d),m=al(()=>new Map),[x,v]=f.useState(d),[$,S]=f.useState(d);Lf(()=>{p.current=!1,g.current=d;for(let k=0;k<$.length;k++){const D=is($[k]);h.includes(D)?m.delete(D):m.get(D)!==!0&&m.set(D,!1)}},[$,h.length,h.join("-")]);const C=[];if(d!==x){let k=[...d];for(let D=0;D<$.length;D++){const E=$[D],V=is(E);h.includes(V)||(k.splice(D,0,E),C.push(E))}return i==="wait"&&C.length&&(k=C),S(Zp(k)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&$.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(Nf);return y.jsx(y.Fragment,{children:$.map(k=>{const D=is(k),E=s&&!c?!1:d===$||h.includes(D),V=()=>{if(m.has(D))m.set(D,!0);else return;let F=!0;m.forEach(b=>{b||(F=!1)}),F&&(T?.(),S(g.current),s&&u?.(),n&&n())};return y.jsx(ZE,{isPresent:E,initial:!p.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:E?void 0:V,anchorX:a,children:k},D)})})},Wl=f.createContext({strict:!1}),qp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in qp)so[e]={isEnabled:t=>qp[e].some(r=>!!t[r])};function Ul(e){for(const t in e)so[t]={...so[t],...e[t]}}function ao({children:e,features:t,strict:r=!1}){const[,n]=f.useState(!Hl(t)),o=f.useRef(void 0);if(!Hl(t)){const{renderer:i,...s}=t;o.current=i,Ul(s)}return f.useEffect(()=>{Hl(t)&&t().then(({renderer:i,...s})=>{Ul(s),o.current=i,n(!0)})},[]),y.jsx(Wl.Provider,{value:{renderer:o.current,strict:r},children:e})}function Hl(e){return typeof e=="function"}const XE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function as(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XE.has(e)}let Yp=e=>!as(e);function JE(e){typeof e=="function"&&(Yp=t=>t.startsWith("on")?!as(t):e(t))}try{JE(require("@emotion/is-prop-valid").default)}catch{}function QE(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Yp(o)||r===!0&&as(o)||!t&&!as(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const ls=f.createContext({});function us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zo(e){return typeof e=="string"||Array.isArray(e)}const Gl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zl=["initial",...Gl];function cs(e){return us(e.animate)||Zl.some(t=>Zo(e[t]))}function Xp(e){return!!(cs(e)||e.variants)}function eP(e,t){if(cs(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Zo(r)?r:void 0,animate:Zo(n)?n:void 0}}return e.inherit!==!1?t:{}}function tP(e){const{initial:t,animate:r}=eP(e,f.useContext(ls));return f.useMemo(()=>({initial:t,animate:r}),[Jp(t),Jp(r)])}function Jp(e){return Array.isArray(e)?e.join(" "):e}const rP={};function Qp(e,{layout:t,layoutId:r}){return io.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!rP[e]||e==="opacity")}const nP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oP=oo.length;function iP(e,t,r){let n="",o=!0;for(let i=0;i<oP;i++){const s=oo[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){const c=zp(a,Bl[s]);if(!l){o=!1;const u=nP[s]||s;n+=`${u}(${c}) `}r&&(t[s]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function ql(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(io.has(l)){s=!0;continue}else if(rp(l)){o[l]=c;continue}else{const u=zp(c,Bl[l]);l.startsWith("origin")?(a=!0,i[l]=u):n[l]=u}}if(t.transform||(s||r?n.transform=iP(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}const Yl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Lt(t[n])&&!Qp(n,r)&&(e[n]=t[n])}function sP({transformTemplate:e},t){return f.useMemo(()=>{const r=Yl();return ql(r,t,e),Object.assign({},r.vars,r.style)},[t])}function aP(e,t){const r=e.style||{},n={};return eh(n,r,e),Object.assign(n,sP(e,t)),n}function lP(e,t){const r={},n=aP(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const uP={offset:"stroke-dashoffset",array:"stroke-dasharray"},cP={offset:"strokeDashoffset",array:"strokeDasharray"};function dP(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?uP:cP;e[i.offset]=be.transform(-n);const s=be.transform(t),a=be.transform(r);e[i.array]=`${s} ${a}`}function th(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(ql(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&dP(d,o,i,s,!1)}const rh=()=>({...Yl(),attrs:{}}),nh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fP(e,t,r,n){const o=f.useMemo(()=>{const i=rh();return th(i,t,nh(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};eh(i,e.style,e),o.style={...i,...o.style}}return o}const pP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xl(e){return typeof e!="string"||e.includes("-")?!1:!!(pP.indexOf(e)>-1||/[A-Z]/u.test(e))}function hP(e,t,r,{latestValues:n},o,i=!1){const a=(Xl(e)?fP:lP)(t,n,o,e),l=QE(t,typeof e=="string",i),c=e!==f.Fragment?{...l,...a,ref:r}:{},{children:u}=t,d=f.useMemo(()=>Lt(u)?u.get():u,[u]);return f.createElement(e,{...c,children:d})}function oh(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Jl(e,t,r,n){if(typeof t=="function"){const[o,i]=oh(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=oh(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function mP(e){return Lt(e)?e.get():e}function gP({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:vP(r,n,o,e),renderState:t()}}function vP(e,t,r,n){const o={},i=n(e,{});for(const h in i)o[h]=mP(i[h]);let{initial:s,animate:a}=e;const l=cs(e),c=Xp(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!us(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const g=Jl(e,h[p]);if(g){const{transitionEnd:m,transition:x,...v}=g;for(const $ in v){let S=v[$];if(Array.isArray(S)){const C=u?S.length-1:0;S=S[C]}S!==null&&(o[$]=S)}for(const $ in m)o[$]=m[$]}}}return o}const ih=e=>(t,r)=>{const n=f.useContext(ls),o=f.useContext(Gi),i=()=>gP(e,t,n,o);return r?i():al(i)};function Ql(e,t,r){const{style:n}=e,o={};for(const i in n)(Lt(n[i])||t.style&&Lt(t.style[i])||Qp(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=n[i]);return o}const bP=ih({scrapeMotionValuesFromProps:Ql,createRenderState:Yl});function sh(e,t,r){const n=Ql(e,t,r);for(const o in e)if(Lt(e[o])||Lt(t[o])){const i=oo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}const yP=ih({scrapeMotionValuesFromProps:sh,createRenderState:rh}),xP=Symbol.for("motionComponentSymbol");function ah(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wP(e,t,r){return f.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ah(r)&&(r.current=n))},[t])}const eu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),lh="data-"+eu("framerAppearId"),$P=f.createContext({});function EP(e,t,r,n,o){const{visualElement:i}=f.useContext(ls),s=f.useContext(Wl),a=f.useContext(Gi),l=f.useContext(Kl).reducedMotion,c=f.useRef(null);n=n||s.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=f.useContext($P);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&PP(c.current,r,o,d);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(r,a)});const p=r[lh],g=f.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Lf(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),g.current=!1),u.enteringChildren=void 0)}),u}function PP(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:uh(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ah(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function uh(e){if(e)return e.options.allowProjection!==!1?e.projection:uh(e.parent)}function tu(e,{forwardMotionProps:t=!1}={},r,n){r&&Ul(r);const o=Xl(e)?yP:bP;function i(a,l){let c;const u={...f.useContext(Kl),...a,layoutId:SP(a)},{isStatic:d}=u,h=tP(a),p=o(a,d);if(!d&&ll){CP(u,r);const g=TP(u);c=g.MeasureLayout,h.visualElement=EP(e,p,u,n,g.ProjectionNode)}return y.jsxs(ls.Provider,{value:h,children:[c&&h.visualElement?y.jsx(c,{visualElement:h.visualElement,...u}):null,hP(e,a,wP(p,h.visualElement,l),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=f.forwardRef(i);return s[xP]=e,s}function SP({layoutId:e}){const t=f.useContext(Nf).id;return t&&e!==void 0?t+"-"+e:e}function CP(e,t){const r=f.useContext(Wl).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Xn(!1,n,"lazy-strict-mode"):zr(!1,n,"lazy-strict-mode")}}function TP(e){const{drag:t,layout:r}=so;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function kP(e,t){if(typeof Proxy>"u")return tu;const r=new Map,n=(i,s)=>tu(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&dl(!1,"motion() is deprecated. Use motion.create() instead."),n(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?n:(r.has(s)||r.set(s,tu(s,void 0,e,t)),r.get(s))})}const lo=kP();function IP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function _P(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function MP(e,t){return IP(_P(e.getBoundingClientRect(),t))}const ch=()=>({min:0,max:0}),dh=()=>({x:ch(),y:ch()}),ru={current:null},fh={current:!1};function DP(){if(fh.current=!0,!!ll)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ru.current=e.matches;e.addEventListener("change",t),t()}else ru.current=!1}const AP=new WeakMap;function OP(e,t,r){for(const n in t){const o=t[n],i=r[n];if(Lt(o))e.addValue(n,o);else if(Lt(i))e.addValue(n,ns(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(n);e.addValue(n,ns(s!==void 0?s:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const ph=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NP{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Xt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=cs(r),this.isVariantNode=Xp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&Lt(p)&&p.set(l[h])}}mount(t){this.current=t,AP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),fh.current||DP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ru.current,process.env.NODE_ENV!=="production"&&dl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hl(this.notifyUpdate),hl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=io.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&sr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in so){const r=so[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dh()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<ph.length;n++){const o=ph[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=OP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ns(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Ff(n)||Vf(n))?n=parseFloat(n):!UE(n)&&ro.test(r)&&(n=jp(t,r)),this.setBaseTarget(t,Lt(n)?n.get():n)),Lt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=Jl(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Lt(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new zf),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){NE.render(this.render)}}class hh extends NP{constructor(){super(...arguments),this.KeyframeResolver=ME}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function mh(e,{style:t,vars:r},n,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,n);for(s in r)i.setProperty(s,r[s])}function LP(e){return window.getComputedStyle(e)}class FP extends hh{constructor(){super(...arguments),this.type="html",this.renderInstance=mh}readValueFromInstance(t,r){if(io.has(r))return this.projection?.isProjecting?Al(r):Y$(t,r);{const n=LP(t),o=(rp(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return MP(t,r)}build(t,r,n){ql(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Ql(t,r,n)}}const gh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function VP(e,t,r,n){mh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(gh.has(o)?o:eu(o),t.attrs[o])}class jP extends hh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dh}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(io.has(r)){const n=Vp(r);return n&&n.default||0}return r=gh.has(r)?r:eu(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return sh(t,r,n)}build(t,r,n){th(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){VP(t,r,n,o)}mount(t){this.isSVGTag=nh(t.tagName),super.mount(t)}}const zP=(e,t)=>Xl(e)?new jP(t):new FP(t,{allowProjection:e!==f.Fragment});function uo(e,t,r){const n=e.getProps();return Jl(n,t,r!==void 0?r:n.custom,e)}const nu=e=>Array.isArray(e);function BP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ns(r))}function RP(e){return nu(e)?e[e.length-1]||0:e}function KP(e,t){const r=uo(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=RP(i[s]);BP(e,s,a)}}function WP(e){return!!(Lt(e)&&e.add)}function UP(e,t){const r=e.getValue("willChange");if(WP(r))return r.add(t);if(!r&&Sr.WillChange){const n=new Sr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function HP(e){return e.props[lh]}const GP=e=>e!==null;function ZP(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(GP),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[i]}const qP={type:"spring",stiffness:500,damping:25,restSpeed:10},YP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XP={type:"keyframes",duration:.8},JP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QP=(e,{keyframes:t})=>t.length>2?XP:io.has(e)?e.startsWith("scale")?YP(t[1]):qP:JP;function eS({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const tS=(e,t,r,n={},o,i)=>s=>{const a=Dp(n,e)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-fr(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};eS(a)||Object.assign(u,QP(e,u)),u.duration&&(u.duration=fr(u.duration)),u.repeatDelay&&(u.repeatDelay=fr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jl(u),u.delay===0&&(d=!0)),(Sr.instantAnimations||Sr.skipAnimations)&&(d=!0,jl(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=ZP(u.keyframes,a);if(h!==void 0){sr.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new _l(u):new yE(u)};function rS({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function vh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;n&&(i=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||c&&rS(c,u))continue;const p={delay:r,...Dp(i||{},u)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===g&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=HP(e);if(v){const $=window.MotionHandoffAnimation(v,u,sr);$!==null&&(p.startTime=$,m=!0)}}UP(e,u),d.start(tS(u,d,h,e.shouldReduceMotion&&Ap.has(u)?{type:!1}:p,e,m));const x=d.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{sr.update(()=>{s&&KP(e,s)})}),l}function bh(e,t,r,n=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*n;return typeof r=="function"?r(i,s):o===1?i*n:a-i*n}function ou(e,t,r={}){const n=uo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(vh(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return nS(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(r.delay)])}function nS(e,t,r=0,n=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ou(l,t,{...s,delay:r+(typeof n=="function"?0:n)+bh(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function oS(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>ou(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=ou(e,t,r);else{const o=typeof t=="function"?uo(e,t,r.custom):t;n=Promise.all(vh(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function yh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const iS=Zl.length;function xh(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?xh(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<iS;r++){const n=Zl[r],o=e.props[n];(Zo(o)||o===!1)&&(t[n]=o)}return t}const sS=[...Gl].reverse(),aS=Gl.length;function lS(e){return t=>Promise.all(t.map(({animation:r,options:n})=>oS(e,r,n)))}function uS(e){let t=lS(e),r=wh(),n=!0;const o=l=>(c,u)=>{const d=uo(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=xh(e.parent)||{},d=[],h=new Set;let p={},g=1/0;for(let x=0;x<aS;x++){const v=sS[x],$=r[v],S=c[v]!==void 0?c[v]:u[v],C=Zo(S),T=v===l?$.isActive:null;T===!1&&(g=x);let k=S===u[v]&&S!==c[v]&&C;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),$.protectedKeys={...p},!$.isActive&&T===null||!S&&!$.prevProp||us(S)||typeof S=="boolean")continue;const D=cS($.prevProp,S);let E=D||v===l&&$.isActive&&!k&&C||x>g&&C,V=!1;const F=Array.isArray(S)?S:[S];let b=F.reduce(o(v),{});T===!1&&(b={});const{prevResolvedValues:M={}}=$,A={...M,...b},I=P=>{E=!0,h.has(P)&&(V=!0,h.delete(P)),$.needsAnimating[P]=!0;const _=e.getValue(P);_&&(_.liveStyle=!1)};for(const P in A){const _=b[P],B=M[P];if(p.hasOwnProperty(P))continue;let L=!1;nu(_)&&nu(B)?L=!yh(_,B):L=_!==B,L?_!=null?I(P):h.add(P):_!==void 0&&h.has(P)?I(P):$.protectedKeys[P]=!0}$.prevProp=S,$.prevResolvedValues=b,$.isActive&&(p={...p,...b}),n&&e.blockInitialAnimation&&(E=!1);const N=k&&D;E&&(!N||V)&&d.push(...F.map(P=>{const _={type:v};if(typeof P=="string"&&n&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,L=uo(B,P);if(B.enteringChildren&&L){const{delayChildren:K}=L.transition||{};_.delay=bh(B.enteringChildren,e,K)}}return{animation:P,options:_}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const v=uo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}h.forEach(v=>{const $=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=$??null}),d.push({animation:x})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function a(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=s(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=wh(),n=!0}}}function cS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yh(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wh(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class co{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dS extends co{constructor(t){super(t),t.animationState||(t.animationState=uS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();us(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let fS=0;class pS extends co{constructor(){super(...arguments),this.id=fS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const hS={animation:{Feature:dS},exit:{Feature:pS}};function $h(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Eh(e){return{point:{x:e.pageX,y:e.pageY}}}function Ph(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&sr.postRender(()=>i(t,Eh(t)))}class mS extends co{mount(){const{current:t}=this.node;t&&(this.unmount=VE(t,(r,n)=>(Ph(this.node,n,"Start"),o=>Ph(this.node,o,"End"))))}unmount(){}}class gS extends co{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zi($h(this.node.current,"focus",()=>this.onFocus()),$h(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sh(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&sr.postRender(()=>i(t,Eh(t)))}class vS extends co{mount(){const{current:t}=this.node;t&&(this.unmount=KE(t,(r,n)=>(Sh(this.node,n,"Start"),(o,{success:i})=>Sh(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iu=new WeakMap,su=new WeakMap,bS=e=>{const t=iu.get(e.target);t&&t(e)},yS=e=>{e.forEach(bS)};function xS({root:e,...t}){const r=e||document;su.has(r)||su.set(r,{});const n=su.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(yS,{root:e,...t})),n[o]}function wS(e,t,r){const n=xS(t);return iu.set(e,r),n.observe(e),()=>{iu.delete(e),n.unobserve(e)}}const $S={some:0,all:1};class ES extends co{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:$S[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return wS(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(PS(t,r))&&this.startObserver()}unmount(){}}function PS({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const SS={renderer:zP,...hS,...{inView:{Feature:ES},tap:{Feature:vS},focus:{Feature:gS},hover:{Feature:mS}}},pr={top:"top",bottom:"top",left:"left",right:"left"},ds={top:"bottom",bottom:"top",left:"right",right:"left"},CS={top:"left",left:"top"},au={top:"height",left:"width"},Ch={width:"totalWidth",height:"totalHeight"},fs={};let vt=typeof document<"u"?window.visualViewport:null;function Th(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=vt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=vt?.width)!==null&&u!==void 0?u:n;var d;r=(d=vt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,vt&&(i=vt.offsetTop,s=vt.offsetLeft)}else({width:t,height:r,top:i,left:s}=fo(e)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Pf()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var h;i=(h=vt?.pageTop)!==null&&h!==void 0?h:0;var p;s=(p=vt?.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function TS(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function kh(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[au[e]],u=n.scroll[pr[e]]+i,d=c+n.scroll[pr[e]]-i,h=t-l+s[e]-n[pr[e]],p=t-l+r+s[e]-n[pr[e]];return h<u?u-h:p>d?Math.max(d-p,u-h):0}function kS(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ih(e){if(fs[e])return fs[e];let[t,r]=e.split(" "),n=pr[t]||"right",o=CS[n];pr[r]||(r="center");let i=au[n],s=au[o];return fs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},fs[e]}function lu(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:h,crossAxis:p,size:g,crossSize:m}=n,x={};var v;x[p]=(v=e[p])!==null&&v!==void 0?v:0;var $,S,C,T;d==="center"?x[p]+=((($=e[m])!==null&&$!==void 0?$:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:d!==p&&(x[p]+=((C=e[m])!==null&&C!==void 0?C:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[p]+=i;const k=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(x[p]=Pr(x[p],k,D),u===h){const E=a?s[g]:t[Ch[g]];x[ds[h]]=Math.floor(E-e[h]+o)}else x[h]=Math.floor(e[h]+e[g]+o);return x}function IS(e,t,r,n,o,i,s,a){const l=n?r.height:t[Ch.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,h,p,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((h=o.top)!==null&&h!==void 0?h:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+s-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function _h(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[ds[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[ds[a]]-o)}function _S(e,t,r,n,o,i,s,a,l,c,u,d,h,p,g,m){let x=Ih(e),{size:v,crossAxis:$,crossSize:S,placement:C,crossPlacement:T}=x,k=lu(t,a,r,x,u,d,c,h,g,m),D=u,E=_h(a,c,t,o,i+u,x);if(s&&n[v]>E){let U=Ih(`${ds[C]} ${T}`),ee=lu(t,a,r,U,u,d,c,h,g,m);_h(a,c,t,o,i+u,U)>E&&(x=U,k=ee,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=kh($,k[$],r[S],a,l,i,c);k[$]+=F;let b=IS(k,a,c,h,o,i,r.height,V);p&&p<b&&(b=p),r.height=Math.min(r.height,b),k=lu(t,a,r,x,D,d,c,h,g,m),F=kh($,k[$],r[S],a,l,i,c),k[$]+=F;let M={},A=t[$]+.5*t[S]-k[$]-o[pr[$]];const I=g/2+m;var N,w,P,_;const B=pr[$]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((w=o.right)!==null&&w!==void 0?w:0):((P=o.top)!==null&&P!==void 0?P:0)+((_=o.bottom)!==null&&_!==void 0?_:0),L=r[S]-B-g/2-m,K=t[$]+g/2-(k[$]+o[pr[$]]),z=t[$]+t[S]-g/2-(k[$]+o[pr[$]]),W=Pr(A,K,z);return M[$]=Pr(W,I,L),{position:k,maxHeight:b,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x.placement}}function MS(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:h=0}=e,p=n instanceof HTMLElement?DS(n):document.documentElement,g=p===document.documentElement;const m=window.getComputedStyle(p).position;let x=!!m&&m!=="static",v=g?fo(r):Mh(r,p);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=fo(n),S=kS(n);var C,T;$.width+=((C=S.left)!==null&&C!==void 0?C:0)+((T=S.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=S.top)!==null&&k!==void 0?k:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let E=TS(o),V=Th(a),F=Th(p),b=a.tagName==="BODY"?fo(p):Mh(p,a);return p.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),_S(t,v,$,E,S,i,s,V,F,b,l,c,x,u,d,h)}function fo(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:r+s-l,width:n,height:o}}function Mh(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:s,height:a}=e.getBoundingClientRect();n={top:o,left:i,width:s,height:a}}else{n=fo(e);let o=fo(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function DS(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Dh(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Dh(t);)t=t.parentElement;return t||document.documentElement}function Dh(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const AS=new WeakMap;function OS(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||AS.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let st=typeof document<"u"?window.visualViewport:null;function NS(e){let{direction:t}=Fo(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:d=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:m,arrowBoundaryOffset:x=0}=e,[v,$]=f.useState(null),S=[h,s,o.current,n.current,i.current,a,l,c,u,d,p,t,m,x,r],C=f.useRef(st?.scale);f.useEffect(()=>{p&&(C.current=st?.scale)},[p]);let T=f.useCallback(()=>{if(h===!1||!p||!o.current||!n.current||!c||st?.scale!==C.current)return;let F=null;if(i.current&&i.current.contains(document.activeElement)){var b;let _=(b=document.activeElement)===null||b===void 0?void 0:b.getBoundingClientRect(),B=i.current.getBoundingClientRect();var M;if(F={type:"top",offset:((M=_?.top)!==null&&M!==void 0?M:0)-B.top},F.offset>B.height/2){F.type="bottom";var A;F.offset=((A=_?.bottom)!==null&&A!==void 0?A:0)-B.bottom}}let I=o.current;if(!m&&o.current){var N;I.style.top="0px",I.style.bottom="";var w;I.style.maxHeight=((w=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&w!==void 0?w:window.innerHeight)+"px"}let P=MS({placement:FS(s,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:a,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:d,maxHeight:m,arrowSize:r,arrowBoundaryOffset:x});if(P.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(P.position).forEach(_=>I.style[_]=P.position[_]+"px"),I.style.maxHeight=P.maxHeight!=null?P.maxHeight+"px":"",F&&document.activeElement&&i.current){let _=document.activeElement.getBoundingClientRect(),B=i.current.getBoundingClientRect(),L=_[F.type]-B[F.type];i.current.scrollTop+=L-F.offset}$(P)}},S);nn(T,S),LS(T),kf({ref:o,onResize:T}),kf({ref:n,onResize:T});let k=f.useRef(!1);nn(()=>{let F,b=()=>{k.current=!0,clearTimeout(F),F=setTimeout(()=>{k.current=!1},500),T()},M=()=>{k.current&&b()};return st?.addEventListener("resize",b),st?.addEventListener("scroll",M),()=>{st?.removeEventListener("resize",b),st?.removeEventListener("scroll",M)}},[T]);let D=f.useCallback(()=>{k.current||g?.()},[g,k]);OS({triggerRef:n,isOpen:p,onClose:g&&D});var E,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v?.position,maxHeight:(E=v?.maxHeight)!==null&&E!==void 0?E:"100vh"}},placement:(V=v?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:T}}function LS(e){nn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function FS(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function uu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ah(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Oh(e){let t=f.useRef({isFocused:!1,observer:null});nn(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Gt(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=uu(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let ps=!1;function Nh(e){for(;e&&!zw(e);)e=e.parentElement;let t=Zt(e),r=t.document.activeElement;if(!r||r===e)return;ps=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,sn(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,sn(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),ps=!1,n=!1},c=requestAnimationFrame(l);return l}let po="default",cu="",hs=new WeakMap;function du(e){if(rl()){if(po==="default"){const t=Et(e);cu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";hs.set(e,e.style[t]),e.style[t]="none"}}function ms(e){if(rl()){if(po!=="disabled")return;po="restoring",setTimeout(()=>{Tf(()=>{if(po==="restoring"){const t=Et(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=cu||""),cu="",po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&hs.has(e)){let t=hs.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),hs.delete(e)}}const Lh=f.createContext({register:()=>{}});Lh.displayName="PressResponderContext";function VS(e,t){return t.get?t.get.call(e):t.value}function Fh(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Vh(e,t){var r=Fh(e,t,"get");return VS(e,r)}function jS(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function gs(e,t,r){var n=Fh(e,t,"set");return jS(e,n,r),r}function zS(e){let t=f.useContext(Lh);if(t){let{register:r,...n}=t;e=kt(n,e),r()}return If(t,e.ref),e}var vs=new WeakMap;let bs=class{continuePropagation(){gs(this,vs,!1)}get shouldStopPropagation(){return Vh(this,vs)}constructor(t,r,n,o){bf(this,vs,{writable:!0,value:void 0}),gs(this,vs,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}};const jh=Symbol("linkClicked"),zh="react-aria-pressable-style",Bh="data-react-aria-pressable";function qo(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...p}=zS(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Yn(),S=Gt((b,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new bs("pressstart",M,b);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),C=Gt((b,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new bs("pressend",M,b);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new bs("press",M,b);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=Gt((b,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new bs("pressup",M,b);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=Gt(b=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(pn(M.target,b),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||ms(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=Gt(b=>{u&&k(b)}),E=Gt(b=>{s?.(b)}),V=Gt((b,M)=>{if(s){let A=new MouseEvent("click",b);Ah(A,M),s(uu(A))}}),F=f.useMemo(()=>{let b=x.current,M={onKeyDown(I){if(pu(I.nativeEvent,I.currentTarget)&&rt(I.currentTarget,Ze(I.nativeEvent))){var N;Wh(Ze(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!b.isPressed&&!I.repeat){b.target=I.currentTarget,b.isPressed=!0,b.pointerType="keyboard",w=S(I,"keyboard");let P=I.currentTarget,_=B=>{pu(B,P)&&!B.repeat&&rt(P,Ze(B))&&b.target&&T(pn(b.target,B),"keyboard")};v(Et(I.currentTarget),"keyup",yf(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&qn()&&((N=b.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(I){if(!(I&&!rt(I.currentTarget,Ze(I.nativeEvent)))&&I&&I.button===0&&!b.isTriggeringEvent&&!zo.isOpening){let N=!0;if(a&&I.preventDefault(),!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||ol(I.nativeEvent))){let w=S(I,"virtual"),P=T(I,"virtual"),_=C(I,"virtual");E(I),N=w&&P&&_}else if(b.isPressed&&b.pointerType!=="keyboard"){let w=b.pointerType||I.nativeEvent.pointerType||"virtual",P=T(pn(I.currentTarget,I),w),_=C(pn(I.currentTarget,I),w,!0);N=P&&_,b.isOverTarget=!1,E(I),k(I)}b.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(b.isPressed&&b.target&&pu(I,b.target)){var w;Wh(Ze(I),I.key)&&I.preventDefault();let _=Ze(I),B=rt(b.target,Ze(I));C(pn(b.target,I),"keyboard",B),B&&V(I,b.target),$(),I.key!=="Enter"&&fu(b.target)&&rt(b.target,_)&&!I[jh]&&(I[jh]=!0,zo(b.target,I,!1)),b.isPressed=!1,(w=b.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=b.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of _.values())(P=b.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(Nw(w.nativeEvent)){b.pointerType="virtual";return}b.pointerType=w.pointerType;let P=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=w.pointerId,b.target=w.currentTarget,d||du(b.target),P=S(w,b.pointerType);let _=Ze(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Et(w.currentTarget),"pointerup",I,!1),v(Et(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(rt(w.currentTarget,Ze(w.nativeEvent))&&w.button===0){if(c){let P=Nh(w.target);P&&b.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!rt(w.currentTarget,Ze(w.nativeEvent))||b.pointerType==="virtual"||w.button===0&&!b.isPressed&&T(w,b.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,S(pn(b.target,w),b.pointerType))},M.onPointerLeave=w=>{w.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,C(pn(b.target,w),b.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===b.activePointerId&&b.isPressed&&w.button===0&&b.target){if(rt(b.target,Ze(w))&&b.pointerType!=null){let P=!1,_=setTimeout(()=>{b.isPressed&&b.target instanceof HTMLElement&&(P?k(w):(sn(b.target),b.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),b.disposables.push(()=>clearTimeout(_))}else k(w);b.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(b.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(b.isPressed=!0,b.isOverTarget=!0,b.target=w.currentTarget,b.pointerType=ol(w.nativeEvent)?"virtual":"mouse",Bn.flushSync(()=>S(w,b.pointerType))&&w.stopPropagation(),c){let _=Nh(w.target);_&&b.disposables.push(_)}v(Et(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,P=S(w,b.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,P=C(w,b.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&!b.ignoreEmulatedMouseEvents&&w.button===0&&!b.isPressed&&T(w,b.pointerType||"mouse")};let I=w=>{if(w.button===0){if(b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&b.target.contains(w.target)&&b.pointerType!=null||k(w),b.isOverTarget=!1}};M.onTouchStart=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=BS(w.nativeEvent);if(!P)return;b.activePointerId=P.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=w.currentTarget,b.pointerType="touch",d||du(b.target),S(Rr(b.target,w),b.pointerType)&&w.stopPropagation(),v(Zt(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=Rh(w.nativeEvent,b.activePointerId),_=!0;P&&Kh(P,w.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,_=S(Rr(b.target,w),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,_=C(Rr(b.target,w),b.pointerType,!1),D(Rr(b.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=Rh(w.nativeEvent,b.activePointerId),_=!0;P&&Kh(P,w.currentTarget)&&b.pointerType!=null?(T(Rr(b.target,w),b.pointerType),_=C(Rr(b.target,w),b.pointerType),V(w.nativeEvent,b.target)):b.isOverTarget&&b.pointerType!=null&&(_=C(Rr(b.target,w),b.pointerType,!1)),_&&w.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!d&&ms(b.target),$()},M.onTouchCancel=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&(w.stopPropagation(),b.isPressed&&k(Rr(b.target,w)))};let N=w=>{b.isPressed&&rt(Ze(w),b.target)&&k({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,C,S,T,E,V]);return f.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const b=Et(h.current);if(!b||!b.head||b.getElementById(zh))return;const M=b.createElement("style");M.id=zh,M.textContent=`
38
+ `),()=>{g.contains(m)&&g.removeChild(m)}},[t]),b.jsx(R2,{isPresent:t,childRef:i,sizeRef:s,children:At.cloneElement(e,{ref:i})})}const W2=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=al(U2),u=f.useId();let d=!0,p=f.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:r,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;n&&n()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[r,c,n]);return i&&d&&(p={...p}),f.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[r]),At.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),s==="popLayout"&&(e=b.jsx(K2,{isPresent:r,anchorX:a,root:l,children:e})),b.jsx(Gi.Provider,{value:p,children:e})};function U2(){return new Map}function H2(e=!0){const t=f.useContext(Gi);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,s]:[!0]}const is=e=>e.key||"";function jp(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const Uo=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=H2(s),d=f.useMemo(()=>jp(e),[e]),p=s&&!c?[]:d.map(is),h=f.useRef(!0),m=f.useRef(d),g=al(()=>new Map),[x,v]=f.useState(d),[$,C]=f.useState(d);Tf(()=>{h.current=!1,m.current=d;for(let k=0;k<$.length;k++){const D=is($[k]);p.includes(D)?g.delete(D):g.get(D)!==!0&&g.set(D,!1)}},[$,p.length,p.join("-")]);const S=[];if(d!==x){let k=[...d];for(let D=0;D<$.length;D++){const E=$[D],V=is(E);p.includes(V)||(k.splice(D,0,E),S.push(E))}return i==="wait"&&S.length&&(k=S),C(jp(k)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&$.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(Sf);return b.jsx(b.Fragment,{children:$.map(k=>{const D=is(k),E=s&&!c?!1:d===$||p.includes(D),V=()=>{if(g.has(D))g.set(D,!0);else return;let F=!0;g.forEach(y=>{y||(F=!1)}),F&&(T?.(),C(m.current),s&&u?.(),n&&n())};return b.jsx(W2,{isPresent:E,initial:!h.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:E?void 0:V,anchorX:a,children:k},D)})})},Wl=f.createContext({strict:!1}),zp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lo={};for(const e in zp)lo[e]={isEnabled:t=>zp[e].some(r=>!!t[r])};function Ul(e){for(const t in e)lo[t]={...lo[t],...e[t]}}function hn({children:e,features:t,strict:r=!1}){const[,n]=f.useState(!Hl(t)),o=f.useRef(void 0);if(!Hl(t)){const{renderer:i,...s}=t;o.current=i,Ul(s)}return f.useEffect(()=>{Hl(t)&&t().then(({renderer:i,...s})=>{Ul(s),o.current=i,n(!0)})},[]),b.jsx(Wl.Provider,{value:{renderer:o.current,strict:r},children:e})}function Hl(e){return typeof e=="function"}const G2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ss(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G2.has(e)}let Bp=e=>!ss(e);function Z2(e){typeof e=="function"&&(Bp=t=>t.startsWith("on")?!ss(t):e(t))}try{Z2(require("@emotion/is-prop-valid").default)}catch{}function q2(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Bp(o)||r===!0&&ss(o)||!t&&!ss(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const as=f.createContext({});function ls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ho(e){return typeof e=="string"||Array.isArray(e)}const Gl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zl=["initial",...Gl];function us(e){return ls(e.animate)||Zl.some(t=>Ho(e[t]))}function Rp(e){return!!(us(e)||e.variants)}function Y2(e,t){if(us(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ho(r)?r:void 0,animate:Ho(n)?n:void 0}}return e.inherit!==!1?t:{}}function X2(e){const{initial:t,animate:r}=Y2(e,f.useContext(as));return f.useMemo(()=>({initial:t,animate:r}),[Kp(t),Kp(r)])}function Kp(e){return Array.isArray(e)?e.join(" "):e}const J2={};function Wp(e,{layout:t,layoutId:r}){return ao.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!J2[e]||e==="opacity")}const Q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=so.length;function tE(e,t,r){let n="",o=!0;for(let i=0;i<eE;i++){const s=so[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){const c=Mp(a,Bl[s]);if(!l){o=!1;const u=Q2[s]||s;n+=`${u}(${c}) `}r&&(t[s]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function ql(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(ao.has(l)){s=!0;continue}else if(Gf(l)){o[l]=c;continue}else{const u=Mp(c,Bl[l]);l.startsWith("origin")?(a=!0,i[l]=u):n[l]=u}}if(t.transform||(s||r?n.transform=tE(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}const Yl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Up(e,t,r){for(const n in t)!Lt(t[n])&&!Wp(n,r)&&(e[n]=t[n])}function rE({transformTemplate:e},t){return f.useMemo(()=>{const r=Yl();return ql(r,t,e),Object.assign({},r.vars,r.style)},[t])}function nE(e,t){const r=e.style||{},n={};return Up(n,r,e),Object.assign(n,rE(e,t)),n}function oE(e,t){const r={},n=nE(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const iE={offset:"stroke-dashoffset",array:"stroke-dasharray"},sE={offset:"strokeDashoffset",array:"strokeDasharray"};function aE(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?iE:sE;e[i.offset]=we.transform(-n);const s=we.transform(t),a=we.transform(r);e[i.array]=`${s} ${a}`}function Hp(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(ql(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&aE(d,o,i,s,!1)}const Gp=()=>({...Yl(),attrs:{}}),Zp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lE(e,t,r,n){const o=f.useMemo(()=>{const i=Gp();return Hp(i,t,Zp(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Up(i,e.style,e),o.style={...i,...o.style}}return o}const uE=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xl(e){return typeof e!="string"||e.includes("-")?!1:!!(uE.indexOf(e)>-1||/[A-Z]/u.test(e))}function cE(e,t,r,{latestValues:n},o,i=!1){const a=(Xl(e)?lE:oE)(t,n,o,e),l=q2(t,typeof e=="string",i),c=e!==f.Fragment?{...l,...a,ref:r}:{},{children:u}=t,d=f.useMemo(()=>Lt(u)?u.get():u,[u]);return f.createElement(e,{...c,children:d})}function qp(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Jl(e,t,r,n){if(typeof t=="function"){const[o,i]=qp(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=qp(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function dE(e){return Lt(e)?e.get():e}function fE({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:pE(r,n,o,e),renderState:t()}}function pE(e,t,r,n){const o={},i=n(e,{});for(const p in i)o[p]=dE(i[p]);let{initial:s,animate:a}=e;const l=us(e),c=Rp(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!ls(d)){const p=Array.isArray(d)?d:[d];for(let h=0;h<p.length;h++){const m=Jl(e,p[h]);if(m){const{transitionEnd:g,transition:x,...v}=m;for(const $ in v){let C=v[$];if(Array.isArray(C)){const S=u?C.length-1:0;C=C[S]}C!==null&&(o[$]=C)}for(const $ in g)o[$]=g[$]}}}return o}const Yp=e=>(t,r)=>{const n=f.useContext(as),o=f.useContext(Gi),i=()=>fE(e,t,n,o);return r?i():al(i)};function Ql(e,t,r){const{style:n}=e,o={};for(const i in n)(Lt(n[i])||t.style&&Lt(t.style[i])||Wp(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=n[i]);return o}const hE=Yp({scrapeMotionValuesFromProps:Ql,createRenderState:Yl});function Xp(e,t,r){const n=Ql(e,t,r);for(const o in e)if(Lt(e[o])||Lt(t[o])){const i=so.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}const mE=Yp({scrapeMotionValuesFromProps:Xp,createRenderState:Gp}),gE=Symbol.for("motionComponentSymbol");function Jp(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vE(e,t,r){return f.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Jp(r)&&(r.current=n))},[t])}const eu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Qp="data-"+eu("framerAppearId"),bE=f.createContext({});function yE(e,t,r,n,o){const{visualElement:i}=f.useContext(as),s=f.useContext(Wl),a=f.useContext(Gi),l=f.useContext(Kl).reducedMotion,c=f.useRef(null);n=n||s.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=f.useContext(bE);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&xE(c.current,r,o,d);const p=f.useRef(!1);f.useInsertionEffect(()=>{u&&p.current&&u.update(r,a)});const h=r[Qp],m=f.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return Tf(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),u.enteringChildren=void 0)}),u}function xE(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:eh(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Jp(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function eh(e){if(e)return e.options.allowProjection!==!1?e.projection:eh(e.parent)}function tu(e,{forwardMotionProps:t=!1}={},r,n){r&&Ul(r);const o=Xl(e)?mE:hE;function i(a,l){let c;const u={...f.useContext(Kl),...a,layoutId:wE(a)},{isStatic:d}=u,p=X2(a),h=o(a,d);if(!d&&ll){$E(u,r);const m=EE(u);c=m.MeasureLayout,p.visualElement=yE(e,h,u,n,m.ProjectionNode)}return b.jsxs(as.Provider,{value:p,children:[c&&p.visualElement?b.jsx(c,{visualElement:p.visualElement,...u}):null,cE(e,a,vE(h,p.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=f.forwardRef(i);return s[gE]=e,s}function wE({layoutId:e}){const t=f.useContext(Sf).id;return t&&e!==void 0?t+"-"+e:e}function $E(e,t){const r=f.useContext(Wl).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qn(!1,n,"lazy-strict-mode"):Vr(!1,n,"lazy-strict-mode")}}function EE(e){const{drag:t,layout:r}=lo;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function PE(e,t){if(typeof Proxy>"u")return tu;const r=new Map,n=(i,s)=>tu(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&dl(!1,"motion() is deprecated. Use motion.create() instead."),n(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?n:(r.has(s)||r.set(s,tu(s,void 0,e,t)),r.get(s))})}const mn=PE();function CE({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function SE(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function TE(e,t){return CE(SE(e.getBoundingClientRect(),t))}const th=()=>({min:0,max:0}),rh=()=>({x:th(),y:th()}),ru={current:null},nh={current:!1};function kE(){if(nh.current=!0,!!ll)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ru.current=e.matches;e.addEventListener("change",t),t()}else ru.current=!1}const IE=new WeakMap;function _E(e,t,r){for(const n in t){const o=t[n],i=r[n];if(Lt(o))e.addValue(n,o);else if(Lt(i))e.addValue(n,ns(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(n);e.addValue(n,ns(s!==void 0?s:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ME{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=qt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,tr.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=us(r),this.isVariantNode=Rp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in d){const h=d[p];l[p]!==void 0&&Lt(h)&&h.set(l[p])}}mount(t){this.current=t,IE.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),nh.current||kE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ru.current,process.env.NODE_ENV!=="production"&&dl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hl(this.notifyUpdate),hl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=ao.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&tr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lo){const r=lo[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rh()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<oh.length;n++){const o=oh[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=_E(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ns(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(kf(n)||If(n))?n=parseFloat(n):!B2(n)&&oo.test(r)&&(n=_p(t,r)),this.setBaseTarget(t,Lt(n)?n.get():n)),Lt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=Jl(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Lt(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Mf),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){M2.render(this.render)}}class ih extends ME{constructor(){super(...arguments),this.KeyframeResolver=T2}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function sh(e,{style:t,vars:r},n,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,n);for(s in r)i.setProperty(s,r[s])}function DE(e){return window.getComputedStyle(e)}class AE extends ih{constructor(){super(...arguments),this.type="html",this.renderInstance=sh}readValueFromInstance(t,r){if(ao.has(r))return this.projection?.isProjecting?Al(r):H$(t,r);{const n=DE(t),o=(Gf(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return TE(t,r)}build(t,r,n){ql(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Ql(t,r,n)}}const ah=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function NE(e,t,r,n){sh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(ah.has(o)?o:eu(o),t.attrs[o])}class OE extends ih{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rh}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ao.has(r)){const n=Ip(r);return n&&n.default||0}return r=ah.has(r)?r:eu(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Xp(t,r,n)}build(t,r,n){Hp(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){NE(t,r,n,o)}mount(t){this.isSVGTag=Zp(t.tagName),super.mount(t)}}const LE=(e,t)=>Xl(e)?new OE(t):new AE(t,{allowProjection:e!==f.Fragment});function uo(e,t,r){const n=e.getProps();return Jl(n,t,r!==void 0?r:n.custom,e)}const nu=e=>Array.isArray(e);function FE(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ns(r))}function VE(e){return nu(e)?e[e.length-1]||0:e}function jE(e,t){const r=uo(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=VE(i[s]);FE(e,s,a)}}function zE(e){return!!(Lt(e)&&e.add)}function BE(e,t){const r=e.getValue("willChange");if(zE(r))return r.add(t);if(!r&&Cr.WillChange){const n=new Cr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function RE(e){return e.props[Qp]}const KE=e=>e!==null;function WE(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(KE),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[i]}const UE={type:"spring",stiffness:500,damping:25,restSpeed:10},HE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GE={type:"keyframes",duration:.8},ZE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qE=(e,{keyframes:t})=>t.length>2?GE:ao.has(e)?e.startsWith("scale")?HE(t[1]):UE:ZE;function YE({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const XE=(e,t,r,n={},o,i)=>s=>{const a=Ep(n,e)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-ur(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};YE(a)||Object.assign(u,qE(e,u)),u.duration&&(u.duration=ur(u.duration)),u.repeatDelay&&(u.repeatDelay=ur(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jl(u),u.delay===0&&(d=!0)),(Cr.instantAnimations||Cr.skipAnimations)&&(d=!0,jl(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const p=WE(u.keyframes,a);if(p!==void 0){tr.update(()=>{u.onUpdate(p),u.onComplete()});return}}return a.isSync?new _l(u):new m2(u)};function JE({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function lh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;n&&(i=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),p=a[u];if(p===void 0||c&&JE(c,u))continue;const h={delay:r,...Ep(i||{},u)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===m&&!h.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const v=RE(e);if(v){const $=window.MotionHandoffAnimation(v,u,tr);$!==null&&(h.startTime=$,g=!0)}}BE(e,u),d.start(XE(u,d,p,e.shouldReduceMotion&&Pp.has(u)?{type:!1}:h,e,g));const x=d.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{tr.update(()=>{s&&jE(e,s)})}),l}function uh(e,t,r,n=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*n;return typeof r=="function"?r(i,s):o===1?i*n:a-i*n}function ou(e,t,r={}){const n=uo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(lh(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return QE(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(r.delay)])}function QE(e,t,r=0,n=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ou(l,t,{...s,delay:r+(typeof n=="function"?0:n)+uh(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function eP(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>ou(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=ou(e,t,r);else{const o=typeof t=="function"?uo(e,t,r.custom):t;n=Promise.all(lh(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function ch(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const tP=Zl.length;function dh(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?dh(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<tP;r++){const n=Zl[r],o=e.props[n];(Ho(o)||o===!1)&&(t[n]=o)}return t}const rP=[...Gl].reverse(),nP=Gl.length;function oP(e){return t=>Promise.all(t.map(({animation:r,options:n})=>eP(e,r,n)))}function iP(e){let t=oP(e),r=fh(),n=!0;const o=l=>(c,u)=>{const d=uo(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:h,...m}=d;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=dh(e.parent)||{},d=[],p=new Set;let h={},m=1/0;for(let x=0;x<nP;x++){const v=rP[x],$=r[v],C=c[v]!==void 0?c[v]:u[v],S=Ho(C),T=v===l?$.isActive:null;T===!1&&(m=x);let k=C===u[v]&&C!==c[v]&&S;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),$.protectedKeys={...h},!$.isActive&&T===null||!C&&!$.prevProp||ls(C)||typeof C=="boolean")continue;const D=sP($.prevProp,C);let E=D||v===l&&$.isActive&&!k&&S||x>m&&S,V=!1;const F=Array.isArray(C)?C:[C];let y=F.reduce(o(v),{});T===!1&&(y={});const{prevResolvedValues:M={}}=$,A={...M,...y},I=P=>{E=!0,p.has(P)&&(V=!0,p.delete(P)),$.needsAnimating[P]=!0;const _=e.getValue(P);_&&(_.liveStyle=!1)};for(const P in A){const _=y[P],B=M[P];if(h.hasOwnProperty(P))continue;let L=!1;nu(_)&&nu(B)?L=!ch(_,B):L=_!==B,L?_!=null?I(P):p.add(P):_!==void 0&&p.has(P)?I(P):$.protectedKeys[P]=!0}$.prevProp=C,$.prevResolvedValues=y,$.isActive&&(h={...h,...y}),n&&e.blockInitialAnimation&&(E=!1);const N=k&&D;E&&(!N||V)&&d.push(...F.map(P=>{const _={type:v};if(typeof P=="string"&&n&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,L=uo(B,P);if(B.enteringChildren&&L){const{delayChildren:K}=L.transition||{};_.delay=uh(B.enteringChildren,e,K)}}return{animation:P,options:_}}))}if(p.size){const x={};if(typeof c.initial!="boolean"){const v=uo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}p.forEach(v=>{const $=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),x[v]=$??null}),d.push({animation:x})}let g=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),n=!1,g?t(d):Promise.resolve()}function a(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=s(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=fh(),n=!0}}}function sP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ch(t,e):!1}function gn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fh(){return{animate:gn(!0),whileInView:gn(),whileHover:gn(),whileTap:gn(),whileDrag:gn(),whileFocus:gn(),exit:gn()}}class co{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aP extends co{constructor(t){super(t),t.animationState||(t.animationState=iP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let lP=0;class uP extends co{constructor(){super(...arguments),this.id=lP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const cP={animation:{Feature:aP},exit:{Feature:uP}};function ph(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function hh(e){return{point:{x:e.pageX,y:e.pageY}}}function mh(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&tr.postRender(()=>i(t,hh(t)))}class dP extends co{mount(){const{current:t}=this.node;t&&(this.unmount=N2(t,(r,n)=>(mh(this.node,n,"Start"),o=>mh(this.node,o,"End"))))}unmount(){}}class fP extends co{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zi(ph(this.node.current,"focus",()=>this.onFocus()),ph(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gh(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&tr.postRender(()=>i(t,hh(t)))}class pP extends co{mount(){const{current:t}=this.node;t&&(this.unmount=j2(t,(r,n)=>(gh(this.node,n,"Start"),(o,{success:i})=>gh(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iu=new WeakMap,su=new WeakMap,hP=e=>{const t=iu.get(e.target);t&&t(e)},mP=e=>{e.forEach(hP)};function gP({root:e,...t}){const r=e||document;su.has(r)||su.set(r,{});const n=su.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(mP,{root:e,...t})),n[o]}function vP(e,t,r){const n=gP(t);return iu.set(e,r),n.observe(e),()=>{iu.delete(e),n.unobserve(e)}}const bP={some:0,all:1};class yP extends co{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:bP[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return vP(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(xP(t,r))&&this.startObserver()}unmount(){}}function xP({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const wP={renderer:LE,...cP,...{inView:{Feature:yP},tap:{Feature:pP},focus:{Feature:fP},hover:{Feature:dP}}},au=typeof document<"u"?f.useLayoutEffect:()=>{};var lu;const $P=(lu=f.useInsertionEffect)!==null&&lu!==void 0?lu:au;function cr(e){const t=f.useRef(null);return $P(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}let uu=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{uu.delete(e)});function EP(e,t){if(e===t)return e;let r=uu.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=uu.get(t);return n?(n.forEach(o=>o.current=e),e):t}function vh(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const rr=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Go=e=>e&&"window"in e&&e.window===e?e:rr(e).defaultView||window;function PP(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function CP(e){return PP(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function ot(e,t){if(!sn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:CP(r)?r=r.host:r=r.parentNode}return!1}const SP=(e=document)=>{var t;if(!sn())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Je(e){return sn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function fo(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=vh(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=df(i,s):o==="id"&&i&&s?t.id=EP(i,s):t[o]=s!==void 0?s:i}}return t}const TP=new Set(["id"]),kP=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),IP=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_P=new Set(["dir","lang","hidden","inert","translate"]),bh=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),MP=/^(data-.*)$/;function yh(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(TP.has(l)||r&&kP.has(l)||n&&IP.has(l)||o&&_P.has(l)||i&&bh.has(l)||l.endsWith("Capture")&&bh.has(l.slice(0,-7))||s?.has(l)||MP.test(l))&&(a[l]=e[l]);return a}function cs(e){if(DP())e.focus({preventScroll:!0});else{let t=AP(e);e.focus(),NP(t)}}let ds=null;function DP(){if(ds==null){ds=!1;try{document.createElement("div").focus({get preventScroll(){return ds=!0,!0}})}catch{}}return ds}function AP(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function NP(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function fs(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function cu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Zo=Tr(function(){return cu(/^Mac/i)}),OP=Tr(function(){return cu(/^iPhone/i)}),xh=Tr(function(){return cu(/^iPad/i)||Zo()&&navigator.maxTouchPoints>1}),du=Tr(function(){return OP()||xh()});Tr(function(){return Zo()||du()});const LP=Tr(function(){return fs(/AppleWebKit/i)&&!FP()}),FP=Tr(function(){return fs(/Chrome/i)}),wh=Tr(function(){return fs(/Android/i)}),VP=Tr(function(){return fs(/Firefox/i)});function qo(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;VP()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Zo()?i=!0:s=!0);let c=LP()&&Zo()&&!xh()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});qo.isOpening=r,cs(e),e.dispatchEvent(c),qo.isOpening=!1}qo.isOpening=!1;let zr=new Map,fu=new Set;function $h(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);o||(o=new Set,zr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=zr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),zr.delete(n.target)),zr.size===0)){for(let i of fu)i();fu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?$h():document.addEventListener("DOMContentLoaded",$h));function jP(){for(const[e]of zr)"isConnected"in e&&!e.isConnected&&zr.delete(e)}function zP(e){requestAnimationFrame(()=>{jP(),zr.size===0?e():fu.add(e)})}function pu(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function BP(e,t){au(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Eh(e){return e.mozInputSource===0&&e.isTrusted?!0:wh()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RP(e){return!wh()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const KP=typeof Element<"u"&&"checkVisibility"in Element.prototype;function WP(e){const t=Go(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function UP(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ph(e,t){return KP?e.checkVisibility():e.nodeName!=="#comment"&&WP(e)&&UP(e,t)&&(!e.parentElement||Ph(e.parentElement,e))}const Ch=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],HP=Ch.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ch.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function GP(e){return e.matches(HP)&&Ph(e)&&!ZP(e)}function ZP(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}const dr={top:"top",bottom:"top",left:"left",right:"left"},ps={top:"bottom",bottom:"top",left:"right",right:"left"},qP={top:"left",left:"top"},hu={top:"height",left:"width"},Sh={width:"totalWidth",height:"totalHeight"},hs={};let bt=typeof document<"u"?window.visualViewport:null;function Th(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=bt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var u;t=(u=bt?.width)!==null&&u!==void 0?u:n;var d;r=(d=bt?.height)!==null&&d!==void 0?d:o,a.top=m.scrollTop||e.scrollTop,a.left=m.scrollLeft||e.scrollLeft,bt&&(i=bt.offsetTop,s=bt.offsetLeft)}else({width:t,height:r,top:i,left:s}=po(e)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Bi()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var p;i=(p=bt?.pageTop)!==null&&p!==void 0?p:0;var h;s=(h=bt?.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function YP(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function kh(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[hu[e]],u=n.scroll[dr[e]]+i,d=c+n.scroll[dr[e]]-i,p=t-l+s[e]-n[dr[e]],h=t-l+r+s[e]-n[dr[e]];return p<u?u-p:h>d?Math.max(d-h,u-p):0}function XP(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ih(e){if(hs[e])return hs[e];let[t,r]=e.split(" "),n=dr[t]||"right",o=qP[n];dr[r]||(r="center");let i=hu[n],s=hu[o];return hs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},hs[e]}function mu(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:p,crossAxis:h,size:m,crossSize:g}=n,x={};var v;x[h]=(v=e[h])!==null&&v!==void 0?v:0;var $,C,S,T;d==="center"?x[h]+=((($=e[g])!==null&&$!==void 0?$:0)-((C=r[g])!==null&&C!==void 0?C:0))/2:d!==h&&(x[h]+=((S=e[g])!==null&&S!==void 0?S:0)-((T=r[g])!==null&&T!==void 0?T:0)),x[h]+=i;const k=e[h]-r[g]+l+c,D=e[h]+e[g]-l-c;if(x[h]=Pr(x[h],k,D),u===p){const E=a?s[m]:t[Sh[m]];x[ps[p]]=Math.floor(E-e[p]+o)}else x[p]=Math.floor(e[p]+e[m]+o);return x}function JP(e,t,r,n,o,i,s,a){const l=n?r.height:t[Sh.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,p,h,m,g,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((h=o.bottom)!==null&&h!==void 0?h:0)+i)):Math.max(0,u+s-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((g=o.top)!==null&&g!==void 0?g:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function _h(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[ps[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[ps[a]]-o)}function QP(e,t,r,n,o,i,s,a,l,c,u,d,p,h,m,g){let x=Ih(e),{size:v,crossAxis:$,crossSize:C,placement:S,crossPlacement:T}=x,k=mu(t,a,r,x,u,d,c,p,m,g),D=u,E=_h(a,c,t,o,i+u,x);if(s&&n[v]>E){let U=Ih(`${ps[S]} ${T}`),ee=mu(t,a,r,U,u,d,c,p,m,g);_h(a,c,t,o,i+u,U)>E&&(x=U,k=ee,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=kh($,k[$],r[C],a,l,i,c);k[$]+=F;let y=JP(k,a,c,p,o,i,r.height,V);h&&h<y&&(y=h),r.height=Math.min(r.height,y),k=mu(t,a,r,x,D,d,c,p,m,g),F=kh($,k[$],r[C],a,l,i,c),k[$]+=F;let M={},A=t[$]+.5*t[C]-k[$]-o[dr[$]];const I=m/2+g;var N,w,P,_;const B=dr[$]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((w=o.right)!==null&&w!==void 0?w:0):((P=o.top)!==null&&P!==void 0?P:0)+((_=o.bottom)!==null&&_!==void 0?_:0),L=r[C]-B-m/2-g,K=t[$]+m/2-(k[$]+o[dr[$]]),z=t[$]+t[C]-m/2-(k[$]+o[dr[$]]),W=Pr(A,K,z);return M[$]=Pr(W,I,L),{position:k,maxHeight:y,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x.placement}}function eC(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=n instanceof HTMLElement?tC(n):document.documentElement,m=h===document.documentElement;const g=window.getComputedStyle(h).position;let x=!!g&&g!=="static",v=m?po(r):Mh(r,h);if(!m){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=po(n),C=XP(n);var S,T;$.width+=((S=C.left)!==null&&S!==void 0?S:0)+((T=C.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=C.top)!==null&&k!==void 0?k:0)+((D=C.bottom)!==null&&D!==void 0?D:0);let E=YP(o),V=Th(a),F=Th(h),y=a.tagName==="BODY"?po(h):Mh(h,a);return h.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),QP(t,v,$,E,C,i,s,V,F,y,l,c,x,u,d,p)}function po(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:r+s-l,width:n,height:o}}function Mh(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:s,height:a}=e.getBoundingClientRect();n={top:o,left:i,width:s,height:a}}else{n=po(e);let o=po(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function tC(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Dh(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Dh(t);)t=t.parentElement;return t||document.documentElement}function Dh(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const rC=new WeakMap;function nC(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||rC.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let st=typeof document<"u"?window.visualViewport:null;function oC(e){let{direction:t}=Lo(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:d=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:x=0}=e,[v,$]=f.useState(null),C=[p,s,o.current,n.current,i.current,a,l,c,u,d,h,t,g,x,r],S=f.useRef(st?.scale);f.useEffect(()=>{h&&(S.current=st?.scale)},[h]);let T=f.useCallback(()=>{if(p===!1||!h||!o.current||!n.current||!c||st?.scale!==S.current)return;let F=null;if(i.current&&i.current.contains(document.activeElement)){var y;let _=(y=document.activeElement)===null||y===void 0?void 0:y.getBoundingClientRect(),B=i.current.getBoundingClientRect();var M;if(F={type:"top",offset:((M=_?.top)!==null&&M!==void 0?M:0)-B.top},F.offset>B.height/2){F.type="bottom";var A;F.offset=((A=_?.bottom)!==null&&A!==void 0?A:0)-B.bottom}}let I=o.current;if(!g&&o.current){var N;I.style.top="0px",I.style.bottom="";var w;I.style.maxHeight=((w=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&w!==void 0?w:window.innerHeight)+"px"}let P=eC({placement:sC(s,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:a,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:d,maxHeight:g,arrowSize:r,arrowBoundaryOffset:x});if(P.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(P.position).forEach(_=>I.style[_]=P.position[_]+"px"),I.style.maxHeight=P.maxHeight!=null?P.maxHeight+"px":"",F&&document.activeElement&&i.current){let _=document.activeElement.getBoundingClientRect(),B=i.current.getBoundingClientRect(),L=_[F.type]-B[F.type];i.current.scrollTop+=L-F.offset}$(P)}},C);Be(T,C),iC(T),Ri({ref:o,onResize:T}),Ri({ref:n,onResize:T});let k=f.useRef(!1);Be(()=>{let F,y=()=>{k.current=!0,clearTimeout(F),F=setTimeout(()=>{k.current=!1},500),T()},M=()=>{k.current&&y()};return st?.addEventListener("resize",y),st?.addEventListener("scroll",M),()=>{st?.removeEventListener("resize",y),st?.removeEventListener("scroll",M)}},[T]);let D=f.useCallback(()=>{k.current||m?.()},[m,k]);nC({triggerRef:n,isOpen:h,onClose:m&&D});var E,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v?.position,maxHeight:(E=v?.maxHeight)!==null&&E!==void 0?E:"100vh"}},placement:(V=v?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:T}}function iC(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function sC(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function gu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ah(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Nh(e){let t=f.useRef({isFocused:!1,observer:null});Be(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Ye(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=gu(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let ms=!1;function Oh(e){for(;e&&!$f(e);)e=e.parentElement;let t=Ot(e),r=t.document.activeElement;if(!r||r===e)return;ms=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,Zt(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,Zt(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),ms=!1,n=!1},c=requestAnimationFrame(l);return l}let ho="default",vu="",gs=new WeakMap;function bu(e){if(zi()){if(ho==="default"){const t=Le(e);vu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ho="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";gs.set(e,e.style[t]),e.style[t]="none"}}function vs(e){if(zi()){if(ho!=="disabled")return;ho="restoring",setTimeout(()=>{mf(()=>{if(ho==="restoring"){const t=Le(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=vu||""),vu="",ho="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&gs.has(e)){let t=gs.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),gs.delete(e)}}const yu=f.createContext({register:()=>{}});yu.displayName="PressResponderContext";function aC(e,t){return t.get?t.get.call(e):t.value}function Lh(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Fh(e,t){var r=Lh(e,t,"get");return aC(e,r)}function lC(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function bs(e,t,r){var n=Lh(e,t,"set");return lC(e,n,r),r}function uC(e){let t=f.useContext(yu);if(t){let{register:r,...n}=t;e=Ie(n,e),r()}return vf(t,e.ref),e}var ys=new WeakMap;let xs=class{continuePropagation(){bs(this,ys,!1)}get shouldStopPropagation(){return Fh(this,ys)}constructor(t,r,n,o){uf(this,ys,{writable:!0,value:void 0}),bs(this,ys,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}};const Vh=Symbol("linkClicked"),jh="react-aria-pressable-style",zh="data-react-aria-pressable";function fr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...h}=uC(e),[m,g]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=ln(),C=Ye((y,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new xs("pressstart",M,y);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,g(!0),I}),S=Ye((y,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new xs("pressend",M,y);o(w),N=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&A&&!a){let w=new xs("press",M,y);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=Ye((y,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new xs("pressup",M,y);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=Ye(y=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&S(vn(M.target,y),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||vs(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=Ye(y=>{u&&k(y)}),E=Ye(y=>{a||s?.(y)}),V=Ye((y,M)=>{if(!a&&s){let A=new MouseEvent("click",y);Ah(A,M),s(gu(A))}}),F=f.useMemo(()=>{let y=x.current,M={onKeyDown(I){if(wu(I.nativeEvent,I.currentTarget)&&Xe(I.currentTarget,Fe(I.nativeEvent))){var N;Kh(Fe(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!y.isPressed&&!I.repeat){y.target=I.currentTarget,y.isPressed=!0,y.pointerType="keyboard",w=C(I,"keyboard");let P=I.currentTarget,_=B=>{wu(B,P)&&!B.repeat&&Xe(P,Fe(B))&&y.target&&T(vn(y.target,B),"keyboard")};v(Le(I.currentTarget),"keyup",on(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&Lr()&&((N=y.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Xe(I.currentTarget,Fe(I.nativeEvent)))&&I&&I.button===0&&!y.isTriggeringEvent&&!an.isOpening){let N=!0;if(a&&I.preventDefault(),!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||rl(I.nativeEvent))){let w=C(I,"virtual"),P=T(I,"virtual"),_=S(I,"virtual");E(I),N=w&&P&&_}else if(y.isPressed&&y.pointerType!=="keyboard"){let w=y.pointerType||I.nativeEvent.pointerType||"virtual",P=T(vn(I.currentTarget,I),w),_=S(vn(I.currentTarget,I),w,!0);N=P&&_,y.isOverTarget=!1,E(I),k(I)}y.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(y.isPressed&&y.target&&wu(I,y.target)){var w;Kh(Fe(I),I.key)&&I.preventDefault();let _=Fe(I),B=Xe(y.target,Fe(I));S(vn(y.target,I),"keyboard",B),B&&V(I,y.target),$(),I.key!=="Enter"&&xu(y.target)&&Xe(y.target,_)&&!I[Vh]&&(I[Vh]=!0,an(y.target,I,!1)),y.isPressed=!1,(w=y.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=y.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let B of _.values())(P=y.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(Iw(w.nativeEvent)){y.pointerType="virtual";return}y.pointerType=w.pointerType;let P=!0;if(!y.isPressed){y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=w.pointerId,y.target=w.currentTarget,d||bu(y.target),P=C(w,y.pointerType);let _=Fe(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Le(w.currentTarget),"pointerup",I,!1),v(Le(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(Xe(w.currentTarget,Fe(w.nativeEvent))&&w.button===0){if(c){let P=Oh(w.target);P&&y.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!Xe(w.currentTarget,Fe(w.nativeEvent))||y.pointerType==="virtual"||w.button===0&&!y.isPressed&&T(w,y.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===y.activePointerId&&y.target&&!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(vn(y.target,w),y.pointerType))},M.onPointerLeave=w=>{w.pointerId===y.activePointerId&&y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,S(vn(y.target,w),y.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===y.activePointerId&&y.isPressed&&w.button===0&&y.target){if(Xe(y.target,Fe(w))&&y.pointerType!=null){let P=!1,_=setTimeout(()=>{y.isPressed&&y.target instanceof HTMLElement&&(P?k(w):(Zt(y.target),y.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),y.disposables.push(()=>clearTimeout(_))}else k(w);y.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(y.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(y.isPressed=!0,y.isOverTarget=!0,y.target=w.currentTarget,y.pointerType=rl(w.nativeEvent)?"virtual":"mouse",Kn.flushSync(()=>C(w,y.pointerType))&&w.stopPropagation(),c){let _=Oh(w.target);_&&y.disposables.push(_)}v(Le(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let P=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,P=C(w,y.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let P=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,P=S(w,y.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&!y.ignoreEmulatedMouseEvents&&w.button===0&&!y.isPressed&&T(w,y.pointerType||"mouse")};let I=w=>{if(w.button===0){if(y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&y.target.contains(w.target)&&y.pointerType!=null||k(w),y.isOverTarget=!1}};M.onTouchStart=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let P=cC(w.nativeEvent);if(!P)return;y.activePointerId=P.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=w.currentTarget,y.pointerType="touch",d||bu(y.target),C(Br(y.target,w),y.pointerType)&&w.stopPropagation(),v(Ot(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let P=Bh(w.nativeEvent,y.activePointerId),_=!0;P&&Rh(P,w.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,_=C(Br(y.target,w),y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,_=S(Br(y.target,w),y.pointerType,!1),D(Br(y.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let P=Bh(w.nativeEvent,y.activePointerId),_=!0;P&&Rh(P,w.currentTarget)&&y.pointerType!=null?(T(Br(y.target,w),y.pointerType),_=S(Br(y.target,w),y.pointerType),V(w.nativeEvent,y.target)):y.isOverTarget&&y.pointerType!=null&&(_=S(Br(y.target,w),y.pointerType,!1)),_&&w.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&vs(y.target),$()},M.onTouchCancel=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&(w.stopPropagation(),y.isPressed&&k(Br(y.target,w)))};let N=w=>{y.isPressed&&Xe(Fe(w),y.target)&&k({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,S,C,T,E,V]);return f.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const y=Le(p.current);if(!y||!y.head||y.getElementById(jh))return;const M=y.createElement("style");M.id=jh,M.textContent=`
39
39
  @layer {
40
- [${Bh}] {
40
+ [${zh}] {
41
41
  touch-action: pan-x pan-y pinch-zoom;
42
42
  }
43
43
  }
44
- `.trim(),b.head.prepend(M)},[h]),f.useEffect(()=>{let b=x.current;return()=>{var M;d||ms((M=b.target)!==null&&M!==void 0?M:void 0);for(let A of b.disposables)A();b.disposables=[]}},[d]),{isPressed:l||g,pressProps:kt(p,F,{[Bh]:!0})}}function fu(e){return e.tagName==="A"&&e.hasAttribute("href")}function pu(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Zt(o).HTMLInputElement&&!Uh(o,r)||o instanceof Zt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&fu(o))&&r!=="Enter")}function BS(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rh(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Rr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function pn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function RS(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function KS(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Kh(e,t){let r=t.getBoundingClientRect(),n=RS(e);return KS(r,n)}function WS(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fu(e)}function Wh(e,t){return e instanceof HTMLInputElement?!Uh(e,t):WS(e)}const US=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Uh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":US.has(e.type)}let hn=null,hu=new Set,Yo=new Map,mn=!1,mu=!1;const HS={Tab:!0,Escape:!0};function ys(e,t){for(let r of hu)r(e,t)}function GS(e){return!(e.metaKey||!qn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function xs(e){mn=!0,GS(e)&&(hn="keyboard",ys("keyboard",e))}function Jt(e){hn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(mn=!0,ys("pointer",e))}function Hh(e){ol(e)&&(mn=!0,hn="virtual")}function Gh(e){e.target===window||e.target===document||ps||!e.isTrusted||(!mn&&!mu&&(hn="virtual",ys("virtual",e)),mn=!1,mu=!1)}function Zh(){ps||(mn=!1,mu=!0)}function gu(e){if(typeof window>"u"||typeof document>"u"||Yo.get(Zt(e)))return;const t=Zt(e),r=Et(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){mn=!0,n.apply(this,arguments)},r.addEventListener("keydown",xs,!0),r.addEventListener("keyup",xs,!0),r.addEventListener("click",Hh,!0),t.addEventListener("focus",Gh,!0),t.addEventListener("blur",Zh,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Jt,!0),r.addEventListener("pointermove",Jt,!0),r.addEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Jt,!0),r.addEventListener("mousemove",Jt,!0),r.addEventListener("mouseup",Jt,!0)),t.addEventListener("beforeunload",()=>{qh(e)},{once:!0}),Yo.set(t,{focus:n})}const qh=(e,t)=>{const r=Zt(e),n=Et(e);t&&n.removeEventListener("DOMContentLoaded",t),Yo.has(r)&&(r.HTMLElement.prototype.focus=Yo.get(r).focus,n.removeEventListener("keydown",xs,!0),n.removeEventListener("keyup",xs,!0),n.removeEventListener("click",Hh,!0),r.removeEventListener("focus",Gh,!0),r.removeEventListener("blur",Zh,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Jt,!0),n.removeEventListener("pointermove",Jt,!0),n.removeEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Jt,!0),n.removeEventListener("mousemove",Jt,!0),n.removeEventListener("mouseup",Jt,!0)),Yo.delete(r))};function ZS(e){const t=Et(e);let r;return t.readyState!=="loading"?gu(e):(r=()=>{gu(e)},t.addEventListener("DOMContentLoaded",r)),()=>qh(e,r)}typeof document<"u"&&ZS();function vu(){return hn!=="pointer"}function Yh(){return hn}function qS(e){hn=e,ys(e,null)}const YS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function XS(e,t,r){let n=Et(r?.target);const o=typeof window<"u"?Zt(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Zt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Zt(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Zt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!YS.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!HS[r.key])}function JS(e,t,r){gu(),f.useEffect(()=>{let n=(o,i)=>{XS(!!r?.isTextInput,o,i)&&e(vu())};return hu.add(n),()=>{hu.delete(n)}},t)}function QS(e){const t=Et(e),r=jo(t);if(Yh()==="virtual"){let n=r;Tf(()=>{jo(t)===n&&e.isConnected&&sn(e)})}else sn(e)}function Xh(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Oh(i),a=f.useCallback(l=>{const c=Et(l.target),u=c?jo(c):jo();l.target===l.currentTarget&&u===Ze(l.nativeEvent)&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Jh(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function Qh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Jh(e.onKeyDown),onKeyUp:Jh(e.onKeyUp)}}}let e2=f.createContext(null);function t2(e){let t=f.useContext(e2)||{};If(t,e);let{ref:r,...n}=t;return n}function ws(e,t){let{focusProps:r}=Xh(e),{keyboardProps:n}=Qh(e),o=kt(r,n),i=t2(t),s=e.isDisabled?{}:i,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&QS(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:kt({...o,tabIndex:l},s)}}function Xo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Yn(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=Oh(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const h=Et(d.target),p=jo(h);if(!i.current.isFocusWithin&&p===Ze(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let g=d.currentTarget;s(h,"focus",m=>{if(i.current.isFocusWithin&&!rt(g,m.target)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Ah(x,g);let v=uu(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let $s=!1,Es=0;function bu(){$s=!0,setTimeout(()=>{$s=!1},50)}function em(e){e.pointerType==="touch"&&bu()}function r2(){if(!(typeof document>"u"))return Es===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",em):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",bu)),Es++,()=>{Es--,!(Es>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",em):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",bu))}}function Tr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(r2,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Yn(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let h=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(Et(m.target),"pointerover",$=>{a.isHovered&&a.target&&!rt(a.target,$.target)&&p($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},p=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{$s&&m.pointerType==="mouse"||h(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!$s&&h(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function n2(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Gt(l=>{r&&Ps(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Gt(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=Et(c);if(typeof PointerEvent<"u"){let d=h=>{l.isPointerDown&&Ps(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Ps(p,t)&&a(p),l.isPointerDown=!1},h=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ps(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",h,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",h,!0)}}},[t,n,s,a])}function Ps(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function tm(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=f.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=Yn(),a=Gt((u,d,h,p)=>{h===0&&p===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),r?.({type:"move",pointerType:d,deltaX:h,deltaY:p,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Gt((u,d)=>{ms(),o.current.didMove&&n?.({type:"moveend",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})});return{moveProps:f.useMemo(()=>{let u={},d=()=>{du(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let p=v=>{if(v.button===0){var $,S,C,T;a(v,"mouse",v.pageX-((C=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&C!==void 0?C:0),v.pageY-((T=(S=o.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&T!==void 0?T:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},g=v=>{v.button===0&&(l(v,"mouse"),s(window,"mousemove",p,!1),s(window,"mouseup",g,!1))};u.onMouseDown=v=>{v.button===0&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},i(window,"mousemove",p,!1),i(window,"mouseup",g,!1))};let m=v=>{let $=[...v.changedTouches].findIndex(({identifier:D})=>D===o.current.id);if($>=0){var S,C;let{pageX:D,pageY:E}=v.changedTouches[$];var T,k;a(v,"touch",D-((T=(S=o.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&T!==void 0?T:0),E-((k=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:D,pageY:E}}},x=v=>{[...v.changedTouches].findIndex(({identifier:S})=>S===o.current.id)>=0&&(l(v,"touch"),o.current.id=null,s(window,"touchmove",m),s(window,"touchend",x),s(window,"touchcancel",x))};u.onTouchStart=v=>{if(v.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:S,identifier:C}=v.changedTouches[0];d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:$,pageY:S},o.current.id=C,i(window,"touchmove",m,!1),i(window,"touchend",x,!1),i(window,"touchcancel",x,!1)}}else{let p=m=>{if(m.pointerId===o.current.id){var x,v;let C=m.pointerType||"mouse";var $,S;a(m,C,m.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),m.pageY-((S=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageY)!==null&&S!==void 0?S:0)),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},g=m=>{if(m.pointerId===o.current.id){let x=m.pointerType||"mouse";l(m,x),o.current.id=null,s(window,"pointermove",p,!1),s(window,"pointerup",g,!1),s(window,"pointercancel",g,!1)}};u.onPointerDown=m=>{m.button===0&&o.current.id==null&&(d(),m.stopPropagation(),m.preventDefault(),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY},o.current.id=m.pointerId,i(window,"pointermove",p,!1),i(window,"pointerup",g,!1),i(window,"pointercancel",g,!1))}}let h=(p,g,m)=>{d(),a(p,"keyboard",g,m),l(p,"keyboard")};return u.onKeyDown=p=>{switch(p.key){case"Left":case"ArrowLeft":p.preventDefault(),p.stopPropagation(),h(p,-1,0);break;case"Right":case"ArrowRight":p.preventDefault(),p.stopPropagation(),h(p,1,0);break;case"Up":case"ArrowUp":p.preventDefault(),p.stopPropagation(),h(p,0,-1);break;case"Down":case"ArrowDown":p.preventDefault(),p.stopPropagation(),h(p,0,1);break}},u},[o,i,s,a,l])}}let o2=null;function rm(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function i2(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of om.traverse(om.getTreeNode(t)))if(r&&rm(e,r.current))return!0;return!1}function s2(e){return i2(e,o2)}let a2=class y1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new nm({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&rm(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new y1;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new nm({scopeRef:null}),this.fastMap.set(null,this.root)}},nm=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},om=new a2;function gn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||vu()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);JS(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Xh({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=Xo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?h:d}}const l2=f.createContext({});function u2(){var e;return(e=f.useContext(l2))!==null&&e!==void 0?e:{}}const yu=f.createContext(null);function c2(e){let{children:t}=e,r=f.useContext(yu),[n,o]=f.useState(0),i=f.useMemo(()=>({parent:r,modalCount:n,addModal(){o(s=>s+1),r&&r.addModal()},removeModal(){o(s=>s-1),r&&r.removeModal()}}),[r,n]);return f.createElement(yu.Provider,{value:i},t)}function d2(){let e=f.useContext(yu);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function f2(e){let{modalProviderProps:t}=d2();return f.createElement("div",{"data-overlay-container":!0,...e,...t})}function p2(e){return f.createElement(c2,null,f.createElement(f2,e))}function im(e){let t=Hn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=u2();if(!e.portalContainer&&o&&(r=o()),f.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=f.createElement(p2,n);return Bn.createPortal(i,r)}const sm={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function h2(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=Xo({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...sm,...t}:sm,[n]);return{visuallyHiddenProps:{...i,style:s}}}function m2(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=h2(e);return f.createElement(r,kt(i,s),t)}function g2(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function v2(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function Re(e){return f.forwardRef(e)}var qt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]};function b2(e){const[t,r]=qt(e,rf.variantKeys),{ref:n,as:o,children:i,avatar:s,startContent:a,endContent:l,onClose:c,classNames:u,className:d,...h}=t,p=o||"div",g=zt(n),m=Be(u?.base,d),x=!!c,v=e.variant==="dot",{focusProps:$,isFocusVisible:S}=gn(),C=f.useMemo(()=>typeof i=="string"&&i?.length===1,[i]),T=f.useMemo(()=>!!s||!!a,[s,a]),k=f.useMemo(()=>!!l||x,[l,x]),D=f.useMemo(()=>rf({...r,hasStartContent:T,hasEndContent:k,isOneChar:C,isCloseable:x,isCloseButtonFocusVisible:S}),[rn(r),S,T,k,C,x]),{pressProps:E}=qo({isDisabled:!!e?.isDisabled,onPress:c}),V=()=>({ref:g,className:D.base({class:m}),...h}),F=()=>({role:"button",tabIndex:0,className:D.closeButton({class:u?.closeButton}),"aria-label":"close chip",...ht(E,$)}),b=A=>f.isValidElement(A)?f.cloneElement(A,{className:D.avatar({class:u?.avatar})}):null,M=A=>f.isValidElement(A)?f.cloneElement(A,{className:Be("max-h-[80%]",A.props.className)}):null;return{Component:p,children:i,slots:D,classNames:u,isDot:v,isCloseable:x,startContent:b(s)||M(a),endContent:M(l),getCloseButtonProps:F,getChipProps:V}}var xu=e=>y.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:y.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),y2=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return y.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:y.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},x2=({strokeWidth:e=1.5,...t})=>y.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:y.jsx("path",{d:"m6 9 6 6 6-6"})}),am=Re((e,t)=>{const{Component:r,children:n,slots:o,classNames:i,isDot:s,isCloseable:a,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=b2({...e,ref:t}),h=f.useMemo(()=>s&&!l?y.jsx("span",{className:o.dot({class:i?.dot})}):l,[o,l,s]),p=f.useMemo(()=>a?y.jsx("span",{...u(),children:c||y.jsx(xu,{})}):c,[c,a,u]);return y.jsxs(r,{...d(),children:[h,y.jsx("span",{className:o.content({class:i?.content}),children:n}),p]})});am.displayName="HeroUI.Chip";var wu=am;function Ss(e){if(!Array.isArray(e)||e.length===0)return"";if(e.length===1)return e[0];if(e.length===2)return`${e[0]} of ${e[1]}`;const t=e.slice(0,-1),r=e[e.length-1];return`${t.join(", ")} of ${r}`}function Qt(e,t){if(typeof e!="number"||!Number.isFinite(e))return String(e);switch(t){case"currency":return new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR"}).format(e);case"percentage":return new Intl.NumberFormat("nl-NL",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}).format(e/100);case"decimal":return new Intl.NumberFormat("nl-NL",{minimumFractionDigits:0,maximumFractionDigits:2}).format(e);case"integer":return new Intl.NumberFormat("nl-NL",{maximumFractionDigits:0}).format(e);default:return new Intl.NumberFormat("nl-NL").format(e)}}function w2(e,t){if(!Array.isArray(e)||e.length===0)return[];const r=e.map(o=>{const i=o.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)$/);return i?{original:o,min:parseFloat(i[1]),max:parseFloat(i[2])}:null}).filter(o=>o!==null).sort((o,i)=>o.min-i.min);if(r.length===0)return e;const n=[];for(const o of r){if(n.length===0){n.push({min:o.min,max:o.max});continue}const i=n[n.length-1];o.min<=i.max?i.max=Math.max(i.max,o.max):n.push({min:o.min,max:o.max})}return n.map(o=>{if(t){const i=Qt(o.min,t),s=Qt(o.max,t);return`${i}-${s}`}else{const i=(o.min%1===0,o.min.toString()),s=(o.max%1===0,o.max.toString());return`${i}-${s}`}})}function $2(e,t,r){if(!Array.isArray(e)||e.length===0)return"";const n=e.filter(s=>Array.isArray(s)&&s.length===2).sort((s,a)=>s[0]-a[0]);if(n.length===0)return"";const o=[];for(const s of n){if(o.length===0){o.push([s[0],s[1]]);continue}const a=o[o.length-1];s[0]<=a[1]?a[1]=Math.max(a[1],s[1]):o.push([s[0],s[1]])}const i=o.map(s=>Jo(s,t,r));return Ss(i)}function E2(e,t){if(!e||!t)return"";try{switch(t.type){case"range":if(typeof e.value=="string")return Jo(e.value,t.unit,t.formatType);if(Array.isArray(e.value)){if(e.value.length===2&&typeof e.value[0]=="number"&&typeof e.value[1]=="number")return Jo(e.value,t.unit,t.formatType);if(e.value.every(r=>Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"))return $2(e.value,t.unit,t.formatType);if(e.value.every(r=>typeof r=="string")){const r=w2(e.value,t.formatType);return Ss(r)}}return Jo(e.value,t.unit,t.formatType);case"select":return P2(e.value,t.label);default:return lm(e.value,t.label)}}catch{return lm(e.value,t.label)}}function Jo(e,t,r){if(typeof e=="string"){const s=e.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)$/);if(s){const a=parseFloat(s[1]),l=parseFloat(s[2]);return Jo([a,l],t,r)}return e}if(!Array.isArray(e)||e.length!==2)return"";const[n,o]=e,i=t||"";if(n===o){if(r==="currency")return`${Qt(n,r)}`;{const s=Qt(n,r);return`${i}${s}`}}if(n===0||n===null||n===void 0){if(r==="currency")return`Tot ${Qt(o,r)}`;{const s=Qt(o,r);return`Tot ${i}${s}`}}if(o==null||o===1/0||!Number.isFinite(o)){if(r==="currency")return`Vanaf ${Qt(n,r)}`;{const s=Qt(n,r);return`Vanaf ${i}${s}`}}if(r==="currency"){const s=Qt(n,r),a=Qt(o,r);return`${s} - ${a}`}else{const s=Qt(n,r),a=Qt(o,r);return`${i}${s} - ${i}${a}`}}function P2(e,t){if(!Array.isArray(e)||e.length===0)return"";if(e.length===1)return vn(e[0],30);if(e.length===2){const r=e.map(n=>vn(n,20));return`${r[0]} of ${r[1]}`}if(e.length===3){const r=e.map(n=>vn(n,15));return Ss(r)}return e.length>3?`${t||"items"} (${e.length})`:Ss(e.map(r=>vn(r,15)))}function S2(e,t="Yes",r="No"){return e?t:r}function vn(e,t){if(!e||typeof e!="string")return"";if(e.length<=t)return e;if(t<10)return`${e.substring(0,t-3)}...`;const r=e.substring(0,t-3),n=r.lastIndexOf(" ");return n>t*.6?`${r.substring(0,n)}...`:`${r}...`}function lm(e,t){if(e==null)return"";if(typeof e=="string")return vn(e,30);if(typeof e=="number")return e.toString();if(typeof e=="boolean")return S2(e);if(Array.isArray(e)){if(e.length===0)return"";if(e.length===1)return vn(String(e[0]),30);const r=t||"items";return`${e.length} ${r.toLowerCase()} selected`}return vn(String(e),30)}function C2(e,t){const r=E2(e,t);return r||t.label}function T2(e,t){return e.find(r=>r.id===t)}function Kr(e,t){return e.find(r=>r.id===t)?.value}class ho extends Error{response;request;constructor(t,r){const n=`${ho.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,ho.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ho)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const um=e=>e.toUpperCase(),$u=e=>typeof e=="function"?e():e,cm=(e,t)=>e.map((r,n)=>[r,t[n]]),mo=e=>{let t={};return e instanceof Headers?t=k2(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},k2=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},I2=e=>{try{const t=e();return _2(t)?t.catch(r=>dm(r)):t}catch(t){return dm(t)}},dm=e=>e instanceof Error?e:new Error(String(e)),_2=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",Eu=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Cs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),M2=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},D2=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function Ts(e,t){if(!!!e)throw new Error(t)}function A2(e){return typeof e=="object"&&e!==null}function O2(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const N2=/\r\n|[\n\r]/g;function Pu(e,t){let r=0,n=1;for(const o of e.body.matchAll(N2)){if(typeof o.index=="number"||O2(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function L2(e){return fm(e.source,Pu(e.source,e.start))}function fm(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
45
- `,u=n.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const h=Math.floor(l/80),p=l%80,g=[];for(let m=0;m<d.length;m+=80)g.push(d.slice(m,m+80));return c+pm([[`${s} |`,g[0]],...g.slice(1,h+1).map(m=>["|",m]),["|","^".padStart(p)],["|",g[h+1]]])}return c+pm([[`${s-1} |`,u[o-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[o+1]]])}function pm(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
46
- `)}function F2(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Su extends Error{constructor(t,...r){var n,o,i;const{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=F2(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=hm(Array.isArray(s)?s:s?[s]:void 0);const h=hm((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=a??(h==null||(o=h[0])===null||o===void 0?void 0:o.source),this.positions=l??h?.map(g=>g.start),this.locations=l&&a?l.map(g=>Pu(a,g)):h?.map(g=>Pu(g.source,g.start));const p=A2(u?.extensions)?u?.extensions:void 0;this.extensions=(i=d??p)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Su):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
44
+ `.trim(),y.head.prepend(M)},[p]),f.useEffect(()=>{let y=x.current;return()=>{var M;d||vs((M=y.target)!==null&&M!==void 0?M:void 0);for(let A of y.disposables)A();y.disposables=[]}},[d]),{isPressed:l||m,pressProps:Ie(h,F,{[zh]:!0})}}function xu(e){return e.tagName==="A"&&e.hasAttribute("href")}function wu(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ot(o).HTMLInputElement&&!Wh(o,r)||o instanceof Ot(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&xu(o))&&r!=="Enter")}function cC(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Bh(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Br(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function vn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function dC(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function fC(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Rh(e,t){let r=t.getBoundingClientRect(),n=dC(e);return fC(r,n)}function pC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!xu(e)}function Kh(e,t){return e instanceof HTMLInputElement?!Wh(e,t):pC(e)}const hC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Wh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":hC.has(e.type)}let bn=null,$u=new Set,Yo=new Map,yn=!1,Eu=!1;const mC={Tab:!0,Escape:!0};function ws(e,t){for(let r of $u)r(e,t)}function gC(e){return!(e.metaKey||!Lr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function $s(e){yn=!0,gC(e)&&(bn="keyboard",ws("keyboard",e))}function Yt(e){bn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yn=!0,ws("pointer",e))}function Uh(e){rl(e)&&(yn=!0,bn="virtual")}function Hh(e){e.target===window||e.target===document||ms||!e.isTrusted||(!yn&&!Eu&&(bn="virtual",ws("virtual",e)),yn=!1,Eu=!1)}function Gh(){ms||(yn=!1,Eu=!0)}function Pu(e){if(typeof window>"u"||typeof document>"u"||Yo.get(Ot(e)))return;const t=Ot(e),r=Le(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){yn=!0,n.apply(this,arguments)},r.addEventListener("keydown",$s,!0),r.addEventListener("keyup",$s,!0),r.addEventListener("click",Uh,!0),t.addEventListener("focus",Hh,!0),t.addEventListener("blur",Gh,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Yt,!0),r.addEventListener("pointermove",Yt,!0),r.addEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Yt,!0),r.addEventListener("mousemove",Yt,!0),r.addEventListener("mouseup",Yt,!0)),t.addEventListener("beforeunload",()=>{Zh(e)},{once:!0}),Yo.set(t,{focus:n})}const Zh=(e,t)=>{const r=Ot(e),n=Le(e);t&&n.removeEventListener("DOMContentLoaded",t),Yo.has(r)&&(r.HTMLElement.prototype.focus=Yo.get(r).focus,n.removeEventListener("keydown",$s,!0),n.removeEventListener("keyup",$s,!0),n.removeEventListener("click",Uh,!0),r.removeEventListener("focus",Hh,!0),r.removeEventListener("blur",Gh,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Yt,!0),n.removeEventListener("pointermove",Yt,!0),n.removeEventListener("pointerup",Yt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Yt,!0),n.removeEventListener("mousemove",Yt,!0),n.removeEventListener("mouseup",Yt,!0)),Yo.delete(r))};function vC(e){const t=Le(e);let r;return t.readyState!=="loading"?Pu(e):(r=()=>{Pu(e)},t.addEventListener("DOMContentLoaded",r)),()=>Zh(e,r)}typeof document<"u"&&vC();function mo(){return bn!=="pointer"}function Xo(){return bn}function Es(e){bn=e,ws(e,null)}const bC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yC(e,t,r){let n=Le(r?.target);const o=typeof window<"u"?Ot(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Ot(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Ot(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Ot(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!bC.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!mC[r.key])}function qh(e,t,r){Pu(),f.useEffect(()=>{let n=(o,i)=>{yC(!!r?.isTextInput,o,i)&&e(mo())};return $u.add(n),()=>{$u.delete(n)}},t)}function xn(e){const t=Le(e),r=Tt(t);if(Xo()==="virtual"){let n=r;mf(()=>{Tt(t)===n&&e.isConnected&&Zt(e)})}else Zt(e)}function Cu(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Nh(i),a=f.useCallback(l=>{const c=Le(l.target),u=c?Tt(c):Tt();l.target===l.currentTarget&&u===Fe(l.nativeEvent)&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Yh(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function Xh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yh(e.onKeyDown),onKeyUp:Yh(e.onKeyUp)}}}let xC=f.createContext(null);function wC(e){let t=f.useContext(xC)||{};vf(t,e);let{ref:r,...n}=t;return n}function wn(e,t){let{focusProps:r}=Cu(e),{keyboardProps:n}=Xh(e),o=Ie(r,n),i=wC(t),s=e.isDisabled?{}:i,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&xn(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Ie({...o,tabIndex:l},s)}}function $C({children:e}){let t=f.useMemo(()=>({register:()=>{}}),[]);return f.createElement(yu.Provider,{value:t},e)}function Rr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=ln(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=Nh(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=Le(d.target),h=Tt(p);if(!i.current.isFocusWithin&&h===Fe(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let m=d.currentTarget;s(p,"focus",g=>{if(i.current.isFocusWithin&&!Xe(m,g.target)){let x=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});Ah(x,m);let v=gu(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Ps=!1,Cs=0;function Su(){Ps=!0,setTimeout(()=>{Ps=!1},50)}function Jh(e){e.pointerType==="touch"&&Su()}function EC(){if(!(typeof document>"u"))return Cs===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Jh):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Su)),Cs++,()=>{Cs--,!(Cs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Jh):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Su))}}function $n(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(EC,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=ln(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let p=(g,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let v=g.currentTarget;a.target=v,l(Le(g.target),"pointerover",$=>{a.isHovered&&a.target&&!Xe(a.target,$.target)&&h($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},h=(g,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Ps&&g.pointerType==="mouse"||p(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ps&&p(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function PC(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Ye(l=>{r&&Ss(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Ye(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=Le(c);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&Ss(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Ss(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ss(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",p,!0)}}},[t,n,s,a])}function Ss(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function Qh(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=f.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=ln(),a=Ye((u,d,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),r?.({type:"move",pointerType:d,deltaX:p,deltaY:h,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Ye((u,d)=>{vs(),o.current.didMove&&n?.({type:"moveend",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})});return{moveProps:f.useMemo(()=>{let u={},d=()=>{bu(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let h=v=>{if(v.button===0){var $,C,S,T;a(v,"mouse",v.pageX-((S=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&S!==void 0?S:0),v.pageY-((T=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&T!==void 0?T:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},m=v=>{v.button===0&&(l(v,"mouse"),s(window,"mousemove",h,!1),s(window,"mouseup",m,!1))};u.onMouseDown=v=>{v.button===0&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},i(window,"mousemove",h,!1),i(window,"mouseup",m,!1))};let g=v=>{let $=[...v.changedTouches].findIndex(({identifier:D})=>D===o.current.id);if($>=0){var C,S;let{pageX:D,pageY:E}=v.changedTouches[$];var T,k;a(v,"touch",D-((T=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&T!==void 0?T:0),E-((k=(S=o.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:D,pageY:E}}},x=v=>{[...v.changedTouches].findIndex(({identifier:C})=>C===o.current.id)>=0&&(l(v,"touch"),o.current.id=null,s(window,"touchmove",g),s(window,"touchend",x),s(window,"touchcancel",x))};u.onTouchStart=v=>{if(v.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:C,identifier:S}=v.changedTouches[0];d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:$,pageY:C},o.current.id=S,i(window,"touchmove",g,!1),i(window,"touchend",x,!1),i(window,"touchcancel",x,!1)}}else{let h=g=>{if(g.pointerId===o.current.id){var x,v;let S=g.pointerType||"mouse";var $,C;a(g,S,g.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),g.pageY-((C=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY}}},m=g=>{if(g.pointerId===o.current.id){let x=g.pointerType||"mouse";l(g,x),o.current.id=null,s(window,"pointermove",h,!1),s(window,"pointerup",m,!1),s(window,"pointercancel",m,!1)}};u.onPointerDown=g=>{g.button===0&&o.current.id==null&&(d(),g.stopPropagation(),g.preventDefault(),o.current.lastPosition={pageX:g.pageX,pageY:g.pageY},o.current.id=g.pointerId,i(window,"pointermove",h,!1),i(window,"pointerup",m,!1),i(window,"pointercancel",m,!1))}}let p=(h,m,g)=>{d(),a(h,"keyboard",m,g),l(h,"keyboard")};return u.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},u},[o,i,s,a,l])}}const CC=500;function em(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=CC,accessibilityDescription:s}=e;const a=f.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=ln(),{pressProps:u}=fr({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Le(p.target).activeElement!==p.target&&Zt(p.target),o&&o({...p,type:"longpress"}),a.current=void 0},i),p.pointerType==="touch")){let h=m=>{m.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=kw(o&&!t?s:void 0);return{longPressProps:Ie(u,d)}}const tm=f.createContext(null),Tu="react-aria-focus-scope-restore";let Ue=null;function SC(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=f.useRef(null),s=f.useRef(null),a=f.useRef([]),{parentNode:l}=f.useContext(tm)||{},c=f.useMemo(()=>new Iu({scopeRef:a}),[a]);Be(()=>{let p=l||dt.root;if(dt.getTreeNode(p.scopeRef)&&Ue&&!Ts(Ue,p.scopeRef)){let h=dt.getTreeNode(Ue);h&&(p=h)}p.addChild(c),dt.addNode(c)},[c,l]),Be(()=>{let p=dt.getTreeNode(a);p&&(p.contain=!!r)},[r]),Be(()=>{var p;let h=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[],g=x=>x.stopPropagation();for(;h&&h!==s.current;)m.push(h),h.addEventListener(Tu,g),h=h.nextSibling;return a.current=m,()=>{for(let x of m)x.removeEventListener(Tu,g)}},[t]),DC(a,n,r),IC(a,r),AC(a,n,r),MC(a,o),f.useEffect(()=>{const p=Tt(Le(a.current?a.current[0]:void 0));let h=null;if(Xt(p,a.current)){for(let m of dt.traverse())m.scopeRef&&Xt(p,m.scopeRef.current)&&(h=m);h===dt.getTreeNode(a)&&(Ue=h.scopeRef)}},[a]),Be(()=>()=>{var p,h,m;let g=(m=(h=dt.getTreeNode(a))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(a===Ue||Ts(a,Ue))&&(!g||dt.getTreeNode(g))&&(Ue=g),dt.removeTreeNode(a)},[a]);let u=f.useMemo(()=>TC(a),[]),d=f.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return f.createElement(tm.Provider,{value:d},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function TC(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||Tt(Le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,u=En(r),d=pr(u,{tabbable:o,accept:s},r);d.currentNode=Xt(l,r)?l:c;let p=d.nextNode();return!p&&i&&(d.currentNode=c,p=d.nextNode()),p&&kr(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||Tt(Le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,u=En(r),d=pr(u,{tabbable:o,accept:s},r);d.currentNode=Xt(l,r)?l:c;let p=d.previousNode();return!p&&i&&(d.currentNode=c,p=d.previousNode()),p&&kr(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=En(r),s=pr(i,{tabbable:n,accept:o},r);s.currentNode=r[0].previousElementSibling;let a=s.nextNode();return a&&kr(a,!0),a},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=En(r),s=pr(i,{tabbable:n,accept:o},r);s.currentNode=r[r.length-1].nextElementSibling;let a=s.previousNode();return a&&kr(a,!0),a}}}function En(e){return e[0].parentElement}function Jo(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function kC(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Le(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function IC(e,t){let r=f.useRef(void 0),n=f.useRef(void 0);Be(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Le(o?o[0]:void 0);let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Jo(e)||c.isComposing)return;let u=Tt(i),d=e.current;if(!d||!Xt(u,d))return;let p=En(d),h=pr(p,{tabbable:!0},d);if(!u)return;h.currentNode=u;let m=c.shiftKey?h.previousNode():h.nextNode();m||(h.currentNode=c.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),m&&kr(m,!0)},a=c=>{(!Ue||Ts(Ue,e))&&Xt(Fe(c),e.current)?(Ue=e,r.current=Fe(c)):Jo(e)&&!Kr(Fe(c),e)?r.current?r.current.focus():Ue&&Ue.current&&ku(Ue.current):Jo(e)&&(r.current=Fe(c))},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=Xo(),d=(u==="virtual"||u===null)&&Ya()&&qa(),p=Tt(i);if(!d&&p&&Jo(e)&&!Kr(p,e)){Ue=e;let m=Fe(c);if(m&&m.isConnected){var h;r.current=m,(h=r.current)===null||h===void 0||h.focus()}else Ue.current&&ku(Ue.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",a,!1),o?.forEach(c=>c.addEventListener("focusin",a,!1)),o?.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",a,!1),o?.forEach(c=>c.removeEventListener("focusin",a,!1)),o?.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),Be(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function rm(e){return Kr(e)}function Xt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Kr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of dt.traverse(dt.getTreeNode(t)))if(r&&Xt(e,r.current))return!0;return!1}function _C(e){return Kr(e,Ue)}function Ts(e,t){var r;let n=(r=dt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function kr(e,t=!1){if(e!=null&&!t)try{xn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function nm(e,t=!0){let r=e[0].previousElementSibling,n=En(e),o=pr(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=En(e),o=pr(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function ku(e,t=!0){kr(nm(e,t))}function MC(e,t){const r=f.useRef(t);f.useEffect(()=>{if(r.current){Ue=e;const n=Le(e.current?e.current[0]:void 0);!Xt(Tt(n),Ue.current)&&e.current&&ku(e.current)}r.current=!1},[e])}function DC(e,t,r){Be(()=>{if(t||r)return;let n=e.current;const o=Le(n?n[0]:void 0);let i=s=>{let a=Fe(s);Xt(a,e.current)?Ue=e:rm(a)||(Ue=null)};return o.addEventListener("focusin",i,!1),n?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,r])}function om(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function AC(e,t,r){const n=f.useRef(typeof document<"u"?Tt(Le(e.current?e.current[0]:void 0)):null);Be(()=>{let o=e.current;const i=Le(o?o[0]:void 0);if(!t||r)return;let s=()=>{(!Ue||Ts(Ue,e))&&Xt(Tt(i),e.current)&&(Ue=e)};return i.addEventListener("focusin",s,!1),o?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,r]),Be(()=>{const o=Le(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Jo(e)||s.isComposing)return;let a=o.activeElement;if(!Kr(a,e)||!om(e))return;let l=dt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=pr(o.body,{tabbable:!0});u.currentNode=a;let d=s.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!d||!Kr(d,e))&&c){u.currentNode=c;do d=s.shiftKey?u.previousNode():u.nextNode();while(Kr(d,e));s.preventDefault(),s.stopPropagation(),d?kr(d,!0):rm(c)?kr(c,!0):a.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),Be(()=>{const o=Le(e.current?e.current[0]:void 0);if(!t)return;let i=dt.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=n.current)!==null&&s!==void 0?s:void 0,()=>{let a=dt.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,c=Tt(o);if(t&&l&&(c&&Kr(c,e)||c===o.body&&om(e))){let u=dt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){im(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&dt.getTreeNode(d.scopeRef)){let p=nm(d.scopeRef.current,!0);im(p);return}d=d.parent}}})}}}},[e,t])}function im(e){e.dispatchEvent(new CustomEvent(Tu,{bubbles:!0,cancelable:!0}))&&kr(e)}function pr(e,t,r){let n=t?.tabbable?Fw:$f,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=Le(o),s=aw(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!kC(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:n(a)&&(!r||Xt(a,r))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}let NC=class n1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Iu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Xt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new n1;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Iu({scopeRef:null}),this.fastMap.set(null,this.root)}},Iu=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},dt=new NC;function Pn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||mo()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,s(h),c()},[c]);qh(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=Cu({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Rr({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?p:d}}function sm(e){let t=LC(Le(e));t!==e&&(t&&OC(t,e),e&&am(e,t))}function OC(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function am(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function LC(e){let t=Tt(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}const FC=f.createContext({});function VC(){var e;return(e=f.useContext(FC))!==null&&e!==void 0?e:{}}const _u=f.createContext(null);function jC(e){let{children:t}=e,r=f.useContext(_u),[n,o]=f.useState(0),i=f.useMemo(()=>({parent:r,modalCount:n,addModal(){o(s=>s+1),r&&r.addModal()},removeModal(){o(s=>s-1),r&&r.removeModal()}}),[r,n]);return f.createElement(_u.Provider,{value:i},t)}function zC(){let e=f.useContext(_u);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function BC(e){let{modalProviderProps:t}=zC();return f.createElement("div",{"data-overlay-container":!0,...e,...t})}function RC(e){return f.createElement(jC,null,f.createElement(BC,e))}function lm(e){let t=Zn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=VC();if(!e.portalContainer&&o&&(r=o()),f.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=f.createElement(RC,n);return Kn.createPortal(i,r)}const um={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function KC(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=Rr({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...um,...t}:um,[n]);return{visuallyHiddenProps:{...i,style:s}}}function WC(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=KC(e);return f.createElement(r,Ie(i,s),t)}function UC(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function HC(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function Re(e){return f.forwardRef(e)}var Bt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]};function Mu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function cm(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function GC(e){let t=f.useRef({isFocused:!1,observer:null});au(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=cr(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=Mu(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function dm(e){for(;e&&!GP(e);)e=e.parentElement;let t=Go(e),r=t.document.activeElement;if(!r||r===e)return;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,cs(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,cs(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),n=!1},c=requestAnimationFrame(l);return l}let go="default",Du="",ks=new WeakMap;function fm(e){if(du()){if(go==="default"){const t=rr(e);Du=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}go="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ks.set(e,e.style[t]),e.style[t]="none"}}function Au(e){if(du()){if(go!=="disabled")return;go="restoring",setTimeout(()=>{zP(()=>{if(go==="restoring"){const t=rr(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Du||""),Du="",go="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ks.has(e)){let t=ks.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ks.delete(e)}}const pm=f.createContext({register:()=>{}});pm.displayName="PressResponderContext";function ZC(e){let t=f.useContext(pm);if(t){let{register:r,...n}=t;e=fo(n,e),r()}return BP(t,e.ref),e}var Is=new WeakMap;class _s{continuePropagation(){bs(this,Is,!1)}get shouldStopPropagation(){return Fh(this,Is)}constructor(t,r,n,o){uf(this,Is,{writable:!0,value:void 0}),bs(this,Is,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const hm=Symbol("linkClicked"),mm="react-aria-pressable-style",gm="data-react-aria-pressable";function Ms(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...h}=ZC(e),[m,g]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=pu(),C=cr((y,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new _s("pressstart",M,y);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,g(!0),I}),S=cr((y,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new _s("pressend",M,y);o(w),N=w.shouldStopPropagation}if(r&&r(!1),g(!1),t&&A&&!a){let w=new _s("press",M,y);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=cr((y,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new _s("pressup",M,y);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=cr(y=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&S(Cn(M.target,y),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||Au(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=cr(y=>{u&&k(y)}),E=cr(y=>{s?.(y)}),V=cr((y,M)=>{if(s){let A=new MouseEvent("click",y);cm(A,M),s(Mu(A))}}),F=f.useMemo(()=>{let y=x.current,M={onKeyDown(I){if(Ou(I.nativeEvent,I.currentTarget)&&ot(I.currentTarget,Je(I.nativeEvent))){var N;ym(Je(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!y.isPressed&&!I.repeat){y.target=I.currentTarget,y.isPressed=!0,y.pointerType="keyboard",w=C(I,"keyboard");let P=I.currentTarget,_=B=>{Ou(B,P)&&!B.repeat&&ot(P,Je(B))&&y.target&&T(Cn(y.target,B),"keyboard")};v(rr(I.currentTarget),"keyup",vh(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&Zo()&&((N=y.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(I){if(!(I&&!ot(I.currentTarget,Je(I.nativeEvent)))&&I&&I.button===0&&!y.isTriggeringEvent&&!qo.isOpening){let N=!0;if(a&&I.preventDefault(),!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||Eh(I.nativeEvent))){let w=C(I,"virtual"),P=T(I,"virtual"),_=S(I,"virtual");E(I),N=w&&P&&_}else if(y.isPressed&&y.pointerType!=="keyboard"){let w=y.pointerType||I.nativeEvent.pointerType||"virtual",P=T(Cn(I.currentTarget,I),w),_=S(Cn(I.currentTarget,I),w,!0);N=P&&_,y.isOverTarget=!1,E(I),k(I)}y.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(y.isPressed&&y.target&&Ou(I,y.target)){var w;ym(Je(I),I.key)&&I.preventDefault();let _=Je(I),B=ot(y.target,Je(I));S(Cn(y.target,I),"keyboard",B),B&&V(I,y.target),$(),I.key!=="Enter"&&Nu(y.target)&&ot(y.target,_)&&!I[hm]&&(I[hm]=!0,qo(y.target,I,!1)),y.isPressed=!1,(w=y.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=y.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let B of _.values())(P=y.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!ot(w.currentTarget,Je(w.nativeEvent)))return;if(RP(w.nativeEvent)){y.pointerType="virtual";return}y.pointerType=w.pointerType;let P=!0;if(!y.isPressed){y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=w.pointerId,y.target=w.currentTarget,d||fm(y.target),P=C(w,y.pointerType);let _=Je(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(rr(w.currentTarget),"pointerup",I,!1),v(rr(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(ot(w.currentTarget,Je(w.nativeEvent))&&w.button===0){if(c){let P=dm(w.target);P&&y.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!ot(w.currentTarget,Je(w.nativeEvent))||y.pointerType==="virtual"||w.button===0&&!y.isPressed&&T(w,y.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===y.activePointerId&&y.target&&!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(Cn(y.target,w),y.pointerType))},M.onPointerLeave=w=>{w.pointerId===y.activePointerId&&y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,S(Cn(y.target,w),y.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===y.activePointerId&&y.isPressed&&w.button===0&&y.target){if(ot(y.target,Je(w))&&y.pointerType!=null){let P=!1,_=setTimeout(()=>{y.isPressed&&y.target instanceof HTMLElement&&(P?k(w):(cs(y.target),y.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),y.disposables.push(()=>clearTimeout(_))}else k(w);y.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!ot(w.currentTarget,Je(w.nativeEvent)))return;if(y.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(y.isPressed=!0,y.isOverTarget=!0,y.target=w.currentTarget,y.pointerType=Eh(w.nativeEvent)?"virtual":"mouse",Kn.flushSync(()=>C(w,y.pointerType))&&w.stopPropagation(),c){let _=dm(w.target);_&&y.disposables.push(_)}v(rr(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let P=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,P=C(w,y.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let P=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,P=S(w,y.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&!y.ignoreEmulatedMouseEvents&&w.button===0&&!y.isPressed&&T(w,y.pointerType||"mouse")};let I=w=>{if(w.button===0){if(y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&y.target.contains(w.target)&&y.pointerType!=null||k(w),y.isOverTarget=!1}};M.onTouchStart=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let P=qC(w.nativeEvent);if(!P)return;y.activePointerId=P.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=w.currentTarget,y.pointerType="touch",d||fm(y.target),C(Wr(y.target,w),y.pointerType)&&w.stopPropagation(),v(Go(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let P=vm(w.nativeEvent,y.activePointerId),_=!0;P&&bm(P,w.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,_=C(Wr(y.target,w),y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,_=S(Wr(y.target,w),y.pointerType,!1),D(Wr(y.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let P=vm(w.nativeEvent,y.activePointerId),_=!0;P&&bm(P,w.currentTarget)&&y.pointerType!=null?(T(Wr(y.target,w),y.pointerType),_=S(Wr(y.target,w),y.pointerType),V(w.nativeEvent,y.target)):y.isOverTarget&&y.pointerType!=null&&(_=S(Wr(y.target,w),y.pointerType,!1)),_&&w.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&Au(y.target),$()},M.onTouchCancel=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&(w.stopPropagation(),y.isPressed&&k(Wr(y.target,w)))};let N=w=>{y.isPressed&&ot(Je(w),y.target)&&k({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,S,C,T,E,V]);return f.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const y=rr(p.current);if(!y||!y.head||y.getElementById(mm))return;const M=y.createElement("style");M.id=mm,M.textContent=`
45
+ @layer {
46
+ [${gm}] {
47
+ touch-action: pan-x pan-y pinch-zoom;
48
+ }
49
+ }
50
+ `.trim(),y.head.prepend(M)},[p]),f.useEffect(()=>{let y=x.current;return()=>{var M;d||Au((M=y.target)!==null&&M!==void 0?M:void 0);for(let A of y.disposables)A();y.disposables=[]}},[d]),{isPressed:l||m,pressProps:fo(h,F,{[gm]:!0})}}function Nu(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ou(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Go(o).HTMLInputElement&&!xm(o,r)||o instanceof Go(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Nu(o))&&r!=="Enter")}function qC(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function vm(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Wr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Cn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function YC(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function XC(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function bm(e,t){let r=t.getBoundingClientRect(),n=YC(e);return XC(r,n)}function JC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Nu(e)}function ym(e,t){return e instanceof HTMLInputElement?!xm(e,t):JC(e)}const QC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xm(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":QC.has(e.type)}function wm(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=pu(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=GC(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=rr(d.target),h=SP(p);if(!i.current.isFocusWithin&&h===Je(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let m=d.currentTarget;s(p,"focus",g=>{if(i.current.isFocusWithin&&!ot(m,g.target)){let x=new p.defaultView.FocusEvent("blur",{relatedTarget:g.target});cm(x,m);let v=Mu(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Ds=!1,As=0;function Lu(){Ds=!0,setTimeout(()=>{Ds=!1},50)}function $m(e){e.pointerType==="touch"&&Lu()}function eS(){if(!(typeof document>"u"))return As===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",$m):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Lu)),As++,()=>{As--,!(As>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$m):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Lu))}}function Sn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(eS,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=pu(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let p=(g,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!g.currentTarget.contains(g.target))return;a.isHovered=!0;let v=g.currentTarget;a.target=v,l(rr(g.target),"pointerover",$=>{a.isHovered&&a.target&&!ot(a.target,$.target)&&h($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},h=(g,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Ds&&g.pointerType==="mouse"||p(g,g.pointerType)},m.onPointerLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(m.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!a.ignoreEmulatedMouseEvents&&!Ds&&p(g,"mouse"),a.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!o&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function tS(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=cr(l=>{r&&Ns(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=cr(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=rr(c);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&Ns(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Ns(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ns(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",p,!0)}}},[t,n,s,a])}function Ns(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}let rS=null;function Em(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function nS(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Cm.traverse(Cm.getTreeNode(t)))if(r&&Em(e,r.current))return!0;return!1}function oS(e){return nS(e,rS)}class Fu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Pm({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Em(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Fu;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Pm({scopeRef:null}),this.fastMap.set(null,this.root)}}class Pm{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Cm=new Fu;function Tn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||mo()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,s(h),c()},[c]);qh(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=Cu({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Rr({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?p:d}}function iS(e){const[t,r]=Bt(e,Gd.variantKeys),{ref:n,as:o,children:i,avatar:s,startContent:a,endContent:l,onClose:c,classNames:u,className:d,...p}=t,h=o||"div",m=zt(n),g=Ke(u?.base,d),x=!!c,v=e.variant==="dot",{focusProps:$,isFocusVisible:C}=Tn(),S=f.useMemo(()=>typeof i=="string"&&i?.length===1,[i]),T=f.useMemo(()=>!!s||!!a,[s,a]),k=f.useMemo(()=>!!l||x,[l,x]),D=f.useMemo(()=>Gd({...r,hasStartContent:T,hasEndContent:k,isOneChar:S,isCloseable:x,isCloseButtonFocusVisible:C}),[rn(r),C,T,k,S,x]),{pressProps:E}=Ms({isDisabled:!!e?.isDisabled,onPress:c}),V=()=>({ref:m,className:D.base({class:g}),...p}),F=()=>({role:"button",tabIndex:0,className:D.closeButton({class:u?.closeButton}),"aria-label":"close chip",...mt(E,$)}),y=A=>f.isValidElement(A)?f.cloneElement(A,{className:D.avatar({class:u?.avatar})}):null,M=A=>f.isValidElement(A)?f.cloneElement(A,{className:Ke("max-h-[80%]",A.props.className)}):null;return{Component:h,children:i,slots:D,classNames:u,isDot:v,isCloseable:x,startContent:y(s)||M(a),endContent:M(l),getCloseButtonProps:F,getChipProps:V}}var sS=e=>b.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:`
51
+ M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z
52
+ M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54
53
+ C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64
54
+ C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z
55
+ `})}),aS=e=>b.jsx("svg",{className:"fill-current",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{clipRule:"evenodd",d:"M3 10.417C3 7.219 3 5.62 3.378 5.082C3.755 4.545 5.258 4.03 8.265 3.001L8.838 2.805C10.405 2.268 11.188 2 12 2C12.812 2 13.595 2.268 15.162 2.805L15.735 3.001C18.742 4.03 20.245 4.545 20.622 5.082C21 5.62 21 7.22 21 10.417V11.991C21 17.629 16.761 20.366 14.101 21.527C13.38 21.842 13.02 22 12 22C10.98 22 10.62 21.842 9.899 21.527C7.239 20.365 3 17.63 3 11.991V10.417ZM12 7.25C12.1989 7.25 12.3897 7.32902 12.5303 7.46967C12.671 7.61032 12.75 7.80109 12.75 8V12C12.75 12.1989 12.671 12.3897 12.5303 12.5303C12.3897 12.671 12.1989 12.75 12 12.75C11.8011 12.75 11.6103 12.671 11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.80109 11.329 7.61032 11.4697 7.46967C11.6103 7.32902 11.8011 7.25 12 7.25ZM12 16C12.2652 16 12.5196 15.8946 12.7071 15.7071C12.8946 15.5196 13 15.2652 13 15C13 14.7348 12.8946 14.4804 12.7071 14.2929C12.5196 14.1054 12.2652 14 12 14C11.7348 14 11.4804 14.1054 11.2929 14.2929C11.1054 14.4804 11 14.7348 11 15C11 15.2652 11.1054 15.5196 11.2929 15.7071C11.4804 15.8946 11.7348 16 12 16Z",fill:"currentColor",fillRule:"evenodd"})}),Sm=e=>b.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22ZM12.75 16C12.75 16.41 12.41 16.75 12 16.75C11.59 16.75 11.25 16.41 11.25 16L11.25 11C11.25 10.59 11.59 10.25 12 10.25C12.41 10.25 12.75 10.59 12.75 11L12.75 16ZM11.08 7.62C11.13 7.49 11.2 7.39 11.29 7.29C11.39 7.2 11.5 7.13 11.62 7.08C11.74 7.03 11.87 7 12 7C12.13 7 12.26 7.03 12.38 7.08C12.5 7.13 12.61 7.2 12.71 7.29C12.8 7.39 12.87 7.49 12.92 7.62C12.97 7.74 13 7.87 13 8C13 8.13 12.97 8.26 12.92 8.38C12.87 8.5 12.8 8.61 12.71 8.71C12.61 8.8 12.5 8.87 12.38 8.92C12.14 9.02 11.86 9.02 11.62 8.92C11.5 8.87 11.39 8.8 11.29 8.71C11.2 8.61 11.13 8.5 11.08 8.38C11.03 8.26 11 8.13 11 8C11 7.87 11.03 7.74 11.08 7.62Z"})}),Vu=e=>b.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:b.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),Tm=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return b.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},lS=e=>b.jsx("svg",{className:"fill-current",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M17.51 3.85L11.57 0.42C10.6 -0.14 9.4 -0.14 8.42 0.42L2.49 3.85C1.52 4.41 0.919998 5.45 0.919998 6.58V13.42C0.919998 14.54 1.52 15.58 2.49 16.15L8.43 19.58C9.4 20.14 10.6 20.14 11.58 19.58L17.52 16.15C18.49 15.59 19.09 14.55 19.09 13.42V6.58C19.08 5.45 18.48 4.42 17.51 3.85ZM9.25 5.75C9.25 5.34 9.59 5 10 5C10.41 5 10.75 5.34 10.75 5.75V11C10.75 11.41 10.41 11.75 10 11.75C9.59 11.75 9.25 11.41 9.25 11V5.75ZM10.92 14.63C10.87 14.75 10.8 14.86 10.71 14.96C10.52 15.15 10.27 15.25 10 15.25C9.87 15.25 9.74 15.22 9.62 15.17C9.49 15.12 9.39 15.05 9.29 14.96C9.2 14.86 9.13 14.75 9.07 14.63C9.02 14.51 9 14.38 9 14.25C9 13.99 9.1 13.73 9.29 13.54C9.39 13.45 9.49 13.38 9.62 13.33C9.99 13.17 10.43 13.26 10.71 13.54C10.8 13.64 10.87 13.74 10.92 13.87C10.97 13.99 11 14.12 11 14.25C11 14.38 10.97 14.51 10.92 14.63Z"})}),uS=({strokeWidth:e=1.5,...t})=>b.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:b.jsx("path",{d:"m6 9 6 6 6-6"})}),km=Re((e,t)=>{const{Component:r,children:n,slots:o,classNames:i,isDot:s,isCloseable:a,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=iS({...e,ref:t}),p=f.useMemo(()=>s&&!l?b.jsx("span",{className:o.dot({class:i?.dot})}):l,[o,l,s]),h=f.useMemo(()=>a?b.jsx("span",{...u(),children:c||b.jsx(Vu,{})}):c,[c,a,u]);return b.jsxs(r,{...d(),children:[p,b.jsx("span",{className:o.content({class:i?.content}),children:n}),h]})});km.displayName="HeroUI.Chip";var ju=km;const Ur=2147483647;function nr(e,t){switch(t){case"price":return`€ ${e}`;case"data":return`${e===Ur?"Onbeperkt":e/1e3} GB`;case"minutes":return`${e===Ur?"Onbeperkt":e} min`;case"sms":return`${e===Ur?"Onbeperkt":e} sms`;case"months":return e%12===0?`${e/12} jaar`:`${e} maand`;case"data_speed":return`${e/1e3} Mbps`;case"hours":return`${e} uur`;case"inches":return`${e} inch`;case"centimeters":return`${e} cm`;case"milliamperes":return`${e} mAh`;default:return`${e}`}}function cS(e){return["ja","nee","0","1"].includes(e)}function Im(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function _m(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function Mm(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function Dm(e){return parseFloat(e)||0}function Hr(e){if(!e)return{to:void 0,from:void 0};const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}function Am(e){if(!Array.isArray(e)||e.length===0)return"";if(e.length===1)return e[0];if(e.length===2)return`${e[0]} of ${e[1]}`;const t=e.slice(0,-1),r=e[e.length-1];return`${t.join(", ")} of ${r}`}function dS(e,t){if(!e||typeof e!="string")return"";if(e.length<=t)return e;const r=e.substring(0,t-3),n=r.lastIndexOf(" ");return n>t*.6?`${r.substring(0,n)}...`:`${r}...`}function fS(e,t){return!Array.isArray(e)||e.length===0?"":e.length<4?t.formatType?Am(e.map(r=>nr(parseInt(r,10),t.formatType))):Am(e.map(r=>dS(r,20))):`${t.label} (${e.length})`}function pS(e,t){const r=n=>`${t.label} (${n})`;switch(t.type){case"range":{const{from:n=t.min,to:o=t.max}=Hr(e.value);return n===void 0||o===void 0?r(1):`${nr(n,t.formatType)} - ${nr(o,t.formatType)}`}case"min":{const{from:n}=Hr(e.value);return n===void 0?r(1):`Vanaf ${nr(n,t.formatType)}`}case"max":{const{to:n}=Hr(e.value);return n===void 0?r(1):`Tot ${nr(n,t.formatType)}`}case"select":{const n=Array.isArray(e.value)?e.value:[e.value];return fS(n,t)}case"radio":return typeof e.value!="string"?r(1):e.value;default:return r(Array.isArray(e.value)?e.value.length:1)}}function Nm(e,t){return e.find(r=>r.id===t)}function vo(e,t){return e.find(r=>r.id===t)?.value}function Gr(e,t){return t.length===0?e:t.reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r)}class bo extends Error{response;request;constructor(t,r){const n=`${bo.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,bo.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,bo)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const Om=e=>e.toUpperCase(),zu=e=>typeof e=="function"?e():e,Lm=(e,t)=>e.map((r,n)=>[r,t[n]]),yo=e=>{let t={};return e instanceof Headers?t=hS(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},hS=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},mS=e=>{try{const t=e();return gS(t)?t.catch(r=>Fm(r)):t}catch(t){return Fm(t)}},Fm=e=>e instanceof Error?e:new Error(String(e)),gS=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",Bu=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Os=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),vS=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},bS=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function Ls(e,t){if(!!!e)throw new Error(t)}function yS(e){return typeof e=="object"&&e!==null}function xS(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const wS=/\r\n|[\n\r]/g;function Ru(e,t){let r=0,n=1;for(const o of e.body.matchAll(wS)){if(typeof o.index=="number"||xS(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function $S(e){return Vm(e.source,Ru(e.source,e.start))}function Vm(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
56
+ `,u=n.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const p=Math.floor(l/80),h=l%80,m=[];for(let g=0;g<d.length;g+=80)m.push(d.slice(g,g+80));return c+jm([[`${s} |`,m[0]],...m.slice(1,p+1).map(g=>["|",g]),["|","^".padStart(h)],["|",m[p+1]]])}return c+jm([[`${s-1} |`,u[o-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[o+1]]])}function jm(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
57
+ `)}function ES(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Ku extends Error{constructor(t,...r){var n,o,i;const{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=ES(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=zm(Array.isArray(s)?s:s?[s]:void 0);const p=zm((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=a??(p==null||(o=p[0])===null||o===void 0?void 0:o.source),this.positions=l??p?.map(m=>m.start),this.locations=l&&a?l.map(m=>Ru(a,m)):p?.map(m=>Ru(m.source,m.start));const h=yS(u?.extensions)?u?.extensions:void 0;this.extensions=(i=d??h)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ku):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
47
58
 
48
- `+L2(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
59
+ `+$S(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
49
60
 
50
- `+fm(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function hm(e){return e===void 0||e.length===0?void 0:e}function bt(e,t,r){return new Su(`Syntax Error: ${r}`,{source:e,positions:[t]})}class V2{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class mm{constructor(t,r,n,o,i,s){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const gm={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},j2=new Set(Object.keys(gm));function vm(e){const t=e?.kind;return typeof t=="string"&&j2.has(t)}var go;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(go||(go={}));var Cu;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Cu||(Cu={}));var me;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(me||(me={}));function Tu(e){return e===9||e===32}function Qo(e){return e>=48&&e<=57}function bm(e){return e>=97&&e<=122||e>=65&&e<=90}function ym(e){return bm(e)||e===95}function z2(e){return bm(e)||Qo(e)||e===95}function B2(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let s=0;s<e.length;++s){var i;const a=e[s],l=R2(a);l!==a.length&&(n=(i=n)!==null&&i!==void 0?i:s,o=s,s!==0&&l<r&&(r=l))}return e.map((s,a)=>a===0?s:s.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function R2(e){let t=0;for(;t<e.length&&Tu(e.charCodeAt(t));)++t;return t}function K2(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,i=n.length>1&&n.slice(1).every(p=>p.length===0||Tu(p.charCodeAt(0))),s=r.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),c=a||l,u=!o||e.length>70||c||i||s;let d="";const h=o&&Tu(e.charCodeAt(0));return(u&&!h||i)&&(d+=`
61
+ `+Vm(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function zm(e){return e===void 0||e.length===0?void 0:e}function yt(e,t,r){return new Ku(`Syntax Error: ${r}`,{source:e,positions:[t]})}class PS{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Bm{constructor(t,r,n,o,i,s){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Rm={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},CS=new Set(Object.keys(Rm));function Km(e){const t=e?.kind;return typeof t=="string"&&CS.has(t)}var xo;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(xo||(xo={}));var Wu;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Wu||(Wu={}));var ge;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ge||(ge={}));function Uu(e){return e===9||e===32}function Qo(e){return e>=48&&e<=57}function Wm(e){return e>=97&&e<=122||e>=65&&e<=90}function Um(e){return Wm(e)||e===95}function SS(e){return Wm(e)||Qo(e)||e===95}function TS(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let s=0;s<e.length;++s){var i;const a=e[s],l=kS(a);l!==a.length&&(n=(i=n)!==null&&i!==void 0?i:s,o=s,s!==0&&l<r&&(r=l))}return e.map((s,a)=>a===0?s:s.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function kS(e){let t=0;for(;t<e.length&&Uu(e.charCodeAt(t));)++t;return t}function IS(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,i=n.length>1&&n.slice(1).every(h=>h.length===0||Uu(h.charCodeAt(0))),s=r.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),c=a||l,u=!o||e.length>70||c||i||s;let d="";const p=o&&Uu(e.charCodeAt(0));return(u&&!p||i)&&(d+=`
51
62
  `),d+=r,(u||c)&&(d+=`
52
- `),'"""'+d+'"""'}var H;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(H||(H={}));class W2{constructor(t){const r=new mm(H.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==H.EOF)do if(t.next)t=t.next;else{const r=H2(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===H.COMMENT);return t}}function U2(e){return e===H.BANG||e===H.DOLLAR||e===H.AMP||e===H.PAREN_L||e===H.PAREN_R||e===H.SPREAD||e===H.COLON||e===H.EQUALS||e===H.AT||e===H.BRACKET_L||e===H.BRACKET_R||e===H.BRACE_L||e===H.PIPE||e===H.BRACE_R}function vo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ks(e,t){return xm(e.charCodeAt(t))&&wm(e.charCodeAt(t+1))}function xm(e){return e>=55296&&e<=56319}function wm(e){return e>=56320&&e<=57343}function bn(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return H.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function ct(e,t,r,n,o){const i=e.line,s=1+r-e.lineStart;return new mm(t,r,n,i,s,o)}function H2(e,t){const r=e.source.body,n=r.length;let o=t;for(;o<n;){const i=r.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return G2(e,o);case 33:return ct(e,H.BANG,o,o+1);case 36:return ct(e,H.DOLLAR,o,o+1);case 38:return ct(e,H.AMP,o,o+1);case 40:return ct(e,H.PAREN_L,o,o+1);case 41:return ct(e,H.PAREN_R,o,o+1);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return ct(e,H.SPREAD,o,o+3);break;case 58:return ct(e,H.COLON,o,o+1);case 61:return ct(e,H.EQUALS,o,o+1);case 64:return ct(e,H.AT,o,o+1);case 91:return ct(e,H.BRACKET_L,o,o+1);case 93:return ct(e,H.BRACKET_R,o,o+1);case 123:return ct(e,H.BRACE_L,o,o+1);case 124:return ct(e,H.PIPE,o,o+1);case 125:return ct(e,H.BRACE_R,o,o+1);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?Q2(e,o):q2(e,o)}if(Qo(i)||i===45)return Z2(e,o,i);if(ym(i))return eC(e,o);throw bt(e.source,o,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:vo(i)||ks(r,o)?`Unexpected character: ${bn(e,o)}.`:`Invalid character: ${bn(e,o)}.`)}return ct(e,H.EOF,n,n)}function G2(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const i=r.charCodeAt(o);if(i===10||i===13)break;if(vo(i))++o;else if(ks(r,o))o+=2;else break}return ct(e,H.COMMENT,t,o,r.slice(t+1,o))}function Z2(e,t,r){const n=e.source.body;let o=t,i=r,s=!1;if(i===45&&(i=n.charCodeAt(++o)),i===48){if(i=n.charCodeAt(++o),Qo(i))throw bt(e.source,o,`Invalid number, unexpected digit after 0: ${bn(e,o)}.`)}else o=ku(e,o,i),i=n.charCodeAt(o);if(i===46&&(s=!0,i=n.charCodeAt(++o),o=ku(e,o,i),i=n.charCodeAt(o)),(i===69||i===101)&&(s=!0,i=n.charCodeAt(++o),(i===43||i===45)&&(i=n.charCodeAt(++o)),o=ku(e,o,i),i=n.charCodeAt(o)),i===46||ym(i))throw bt(e.source,o,`Invalid number, expected digit but got: ${bn(e,o)}.`);return ct(e,s?H.FLOAT:H.INT,t,o,n.slice(t,o))}function ku(e,t,r){if(!Qo(r))throw bt(e.source,t,`Invalid number, expected digit but got: ${bn(e,t)}.`);const n=e.source.body;let o=t+1;for(;Qo(n.charCodeAt(o));)++o;return o}function q2(e,t){const r=e.source.body,n=r.length;let o=t+1,i=o,s="";for(;o<n;){const a=r.charCodeAt(o);if(a===34)return s+=r.slice(i,o),ct(e,H.STRING,t,o+1,s);if(a===92){s+=r.slice(i,o);const l=r.charCodeAt(o+1)===117?r.charCodeAt(o+2)===123?Y2(e,o):X2(e,o):J2(e,o);s+=l.value,o+=l.size,i=o;continue}if(a===10||a===13)break;if(vo(a))++o;else if(ks(r,o))o+=2;else throw bt(e.source,o,`Invalid character within String: ${bn(e,o)}.`)}throw bt(e.source,o,"Unterminated string.")}function Y2(e,t){const r=e.source.body;let n=0,o=3;for(;o<12;){const i=r.charCodeAt(t+o++);if(i===125){if(o<5||!vo(n))break;return{value:String.fromCodePoint(n),size:o}}if(n=n<<4|ei(i),n<0)break}throw bt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function X2(e,t){const r=e.source.body,n=$m(r,t+2);if(vo(n))return{value:String.fromCodePoint(n),size:6};if(xm(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const o=$m(r,t+8);if(wm(o))return{value:String.fromCodePoint(n,o),size:12}}throw bt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function $m(e,t){return ei(e.charCodeAt(t))<<12|ei(e.charCodeAt(t+1))<<8|ei(e.charCodeAt(t+2))<<4|ei(e.charCodeAt(t+3))}function ei(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function J2(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
53
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw bt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function Q2(e,t){const r=e.source.body,n=r.length;let o=e.lineStart,i=t+3,s=i,a="";const l=[];for(;i<n;){const c=r.charCodeAt(i);if(c===34&&r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34){a+=r.slice(s,i),l.push(a);const u=ct(e,H.BLOCK_STRING,t,i+3,B2(l).join(`
54
- `));return e.line+=l.length-1,e.lineStart=o,u}if(c===92&&r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34&&r.charCodeAt(i+3)===34){a+=r.slice(s,i),s=i+1,i+=4;continue}if(c===10||c===13){a+=r.slice(s,i),l.push(a),c===13&&r.charCodeAt(i+1)===10?i+=2:++i,a="",s=i,o=i;continue}if(vo(c))++i;else if(ks(r,i))i+=2;else throw bt(e.source,i,`Invalid character within String: ${bn(e,i)}.`)}throw bt(e.source,i,"Unterminated string.")}function eC(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const i=r.charCodeAt(o);if(z2(i))++o;else break}return ct(e,H.NAME,t,o,r.slice(t,o))}const tC=10,Em=2;function Iu(e){return Is(e,[])}function Is(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return rC(e,t);default:return String(e)}}function rC(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(nC(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Is(n,r)}else if(Array.isArray(e))return iC(e,r);return oC(e,r)}function nC(e){return typeof e.toJSON=="function"}function oC(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Em?"["+sC(e)+"]":"{ "+r.map(([o,i])=>o+": "+Is(i,t)).join(", ")+" }"}function iC(e,t){if(e.length===0)return"[]";if(t.length>Em)return"[Array]";const r=Math.min(tC,e.length),n=e.length-r,o=[];for(let i=0;i<r;++i)o.push(Is(e[i],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function sC(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const aC=globalThis.process&&process.env.NODE_ENV==="production"?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const o=r.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===i){const s=Iu(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.
63
+ `),'"""'+d+'"""'}var H;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(H||(H={}));class _S{constructor(t){const r=new Bm(H.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==H.EOF)do if(t.next)t=t.next;else{const r=DS(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===H.COMMENT);return t}}function MS(e){return e===H.BANG||e===H.DOLLAR||e===H.AMP||e===H.PAREN_L||e===H.PAREN_R||e===H.SPREAD||e===H.COLON||e===H.EQUALS||e===H.AT||e===H.BRACKET_L||e===H.BRACKET_R||e===H.BRACE_L||e===H.PIPE||e===H.BRACE_R}function wo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Fs(e,t){return Hm(e.charCodeAt(t))&&Gm(e.charCodeAt(t+1))}function Hm(e){return e>=55296&&e<=56319}function Gm(e){return e>=56320&&e<=57343}function kn(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return H.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function ft(e,t,r,n,o){const i=e.line,s=1+r-e.lineStart;return new Bm(t,r,n,i,s,o)}function DS(e,t){const r=e.source.body,n=r.length;let o=t;for(;o<n;){const i=r.charCodeAt(o);switch(i){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return AS(e,o);case 33:return ft(e,H.BANG,o,o+1);case 36:return ft(e,H.DOLLAR,o,o+1);case 38:return ft(e,H.AMP,o,o+1);case 40:return ft(e,H.PAREN_L,o,o+1);case 41:return ft(e,H.PAREN_R,o,o+1);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return ft(e,H.SPREAD,o,o+3);break;case 58:return ft(e,H.COLON,o,o+1);case 61:return ft(e,H.EQUALS,o,o+1);case 64:return ft(e,H.AT,o,o+1);case 91:return ft(e,H.BRACKET_L,o,o+1);case 93:return ft(e,H.BRACKET_R,o,o+1);case 123:return ft(e,H.BRACE_L,o,o+1);case 124:return ft(e,H.PIPE,o,o+1);case 125:return ft(e,H.BRACE_R,o,o+1);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?jS(e,o):OS(e,o)}if(Qo(i)||i===45)return NS(e,o,i);if(Um(i))return zS(e,o);throw yt(e.source,o,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:wo(i)||Fs(r,o)?`Unexpected character: ${kn(e,o)}.`:`Invalid character: ${kn(e,o)}.`)}return ft(e,H.EOF,n,n)}function AS(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const i=r.charCodeAt(o);if(i===10||i===13)break;if(wo(i))++o;else if(Fs(r,o))o+=2;else break}return ft(e,H.COMMENT,t,o,r.slice(t+1,o))}function NS(e,t,r){const n=e.source.body;let o=t,i=r,s=!1;if(i===45&&(i=n.charCodeAt(++o)),i===48){if(i=n.charCodeAt(++o),Qo(i))throw yt(e.source,o,`Invalid number, unexpected digit after 0: ${kn(e,o)}.`)}else o=Hu(e,o,i),i=n.charCodeAt(o);if(i===46&&(s=!0,i=n.charCodeAt(++o),o=Hu(e,o,i),i=n.charCodeAt(o)),(i===69||i===101)&&(s=!0,i=n.charCodeAt(++o),(i===43||i===45)&&(i=n.charCodeAt(++o)),o=Hu(e,o,i),i=n.charCodeAt(o)),i===46||Um(i))throw yt(e.source,o,`Invalid number, expected digit but got: ${kn(e,o)}.`);return ft(e,s?H.FLOAT:H.INT,t,o,n.slice(t,o))}function Hu(e,t,r){if(!Qo(r))throw yt(e.source,t,`Invalid number, expected digit but got: ${kn(e,t)}.`);const n=e.source.body;let o=t+1;for(;Qo(n.charCodeAt(o));)++o;return o}function OS(e,t){const r=e.source.body,n=r.length;let o=t+1,i=o,s="";for(;o<n;){const a=r.charCodeAt(o);if(a===34)return s+=r.slice(i,o),ft(e,H.STRING,t,o+1,s);if(a===92){s+=r.slice(i,o);const l=r.charCodeAt(o+1)===117?r.charCodeAt(o+2)===123?LS(e,o):FS(e,o):VS(e,o);s+=l.value,o+=l.size,i=o;continue}if(a===10||a===13)break;if(wo(a))++o;else if(Fs(r,o))o+=2;else throw yt(e.source,o,`Invalid character within String: ${kn(e,o)}.`)}throw yt(e.source,o,"Unterminated string.")}function LS(e,t){const r=e.source.body;let n=0,o=3;for(;o<12;){const i=r.charCodeAt(t+o++);if(i===125){if(o<5||!wo(n))break;return{value:String.fromCodePoint(n),size:o}}if(n=n<<4|ei(i),n<0)break}throw yt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function FS(e,t){const r=e.source.body,n=Zm(r,t+2);if(wo(n))return{value:String.fromCodePoint(n),size:6};if(Hm(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const o=Zm(r,t+8);if(Gm(o))return{value:String.fromCodePoint(n,o),size:12}}throw yt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Zm(e,t){return ei(e.charCodeAt(t))<<12|ei(e.charCodeAt(t+1))<<8|ei(e.charCodeAt(t+2))<<4|ei(e.charCodeAt(t+3))}function ei(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function VS(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
64
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw yt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function jS(e,t){const r=e.source.body,n=r.length;let o=e.lineStart,i=t+3,s=i,a="";const l=[];for(;i<n;){const c=r.charCodeAt(i);if(c===34&&r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34){a+=r.slice(s,i),l.push(a);const u=ft(e,H.BLOCK_STRING,t,i+3,TS(l).join(`
65
+ `));return e.line+=l.length-1,e.lineStart=o,u}if(c===92&&r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34&&r.charCodeAt(i+3)===34){a+=r.slice(s,i),s=i+1,i+=4;continue}if(c===10||c===13){a+=r.slice(s,i),l.push(a),c===13&&r.charCodeAt(i+1)===10?i+=2:++i,a="",s=i,o=i;continue}if(wo(c))++i;else if(Fs(r,i))i+=2;else throw yt(e.source,i,`Invalid character within String: ${kn(e,i)}.`)}throw yt(e.source,i,"Unterminated string.")}function zS(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const i=r.charCodeAt(o);if(SS(i))++o;else break}return ft(e,H.NAME,t,o,r.slice(t,o))}const BS=10,qm=2;function Gu(e){return Vs(e,[])}function Vs(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return RS(e,t);default:return String(e)}}function RS(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(KS(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Vs(n,r)}else if(Array.isArray(e))return US(e,r);return WS(e,r)}function KS(e){return typeof e.toJSON=="function"}function WS(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>qm?"["+HS(e)+"]":"{ "+r.map(([o,i])=>o+": "+Vs(i,t)).join(", ")+" }"}function US(e,t){if(e.length===0)return"[]";if(t.length>qm)return"[Array]";const r=Math.min(BS,e.length),n=e.length-r,o=[];for(let i=0;i<r;++i)o.push(Vs(e[i],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function HS(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const GS=globalThis.process&&process.env.NODE_ENV==="production"?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const o=r.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===i){const s=Gu(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.
55
66
 
56
67
  Ensure that there is only one instance of "graphql" in the node_modules
57
68
  directory. If different versions of "graphql" are the dependencies of other
@@ -62,36 +73,36 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
62
73
  Duplicate "graphql" modules cannot be used at the same time since different
63
74
  versions may have different capabilities and behavior. The data from one
64
75
  version used in the function from another could produce confusing and
65
- spurious results.`)}}return!1};class Pm{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||Ts(!1,`Body must be a string. Received: ${Iu(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Ts(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ts(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function lC(e){return aC(e,Pm)}function uC(e,t){const r=new cC(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class cC{constructor(t,r={}){const n=lC(t)?t:new Pm(t);this._lexer=new W2(n),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(H.NAME);return this.node(t,{kind:me.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:me.DOCUMENT,definitions:this.many(H.SOF,this.parseDefinition,H.EOF)})}parseDefinition(){if(this.peek(H.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===H.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw bt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(H.BRACE_L))return this.node(t,{kind:me.OPERATION_DEFINITION,operation:go.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(H.NAME)&&(n=this.parseName()),this.node(t,{kind:me.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(H.NAME);switch(t.value){case"query":return go.QUERY;case"mutation":return go.MUTATION;case"subscription":return go.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(H.PAREN_L,this.parseVariableDefinition,H.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:me.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(H.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(H.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(H.DOLLAR),this.node(t,{kind:me.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:me.SELECTION_SET,selections:this.many(H.BRACE_L,this.parseSelection,H.BRACE_R)})}parseSelection(){return this.peek(H.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(H.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:me.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(H.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(H.PAREN_L,r,H.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:me.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(H.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(H.NAME)?this.node(t,{kind:me.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:me.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:me.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:me.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case H.BRACKET_L:return this.parseList(t);case H.BRACE_L:return this.parseObject(t);case H.INT:return this.advanceLexer(),this.node(r,{kind:me.INT,value:r.value});case H.FLOAT:return this.advanceLexer(),this.node(r,{kind:me.FLOAT,value:r.value});case H.STRING:case H.BLOCK_STRING:return this.parseStringLiteral();case H.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:me.BOOLEAN,value:!0});case"false":return this.node(r,{kind:me.BOOLEAN,value:!1});case"null":return this.node(r,{kind:me.NULL});default:return this.node(r,{kind:me.ENUM,value:r.value})}case H.DOLLAR:if(t)if(this.expectToken(H.DOLLAR),this._lexer.token.kind===H.NAME){const n=this._lexer.token.value;throw bt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:me.STRING,value:t.value,block:t.kind===H.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:me.LIST,values:this.any(H.BRACKET_L,r,H.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:me.OBJECT,fields:this.any(H.BRACE_L,r,H.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:me.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(H.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(H.AT),this.node(r,{kind:me.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(H.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(H.BRACKET_R),r=this.node(t,{kind:me.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(H.BANG)?this.node(t,{kind:me.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:me.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(H.STRING)||this.peek(H.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);return this.node(t,{kind:me.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(H.COLON);const n=this.parseNamedType();return this.node(t,{kind:me.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:me.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:me.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(H.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseFieldDefinition,H.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(H.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:me.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(H.PAREN_L,this.parseInputValueDef,H.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(H.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(H.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:me.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:me.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:me.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(H.EQUALS)?this.delimitedMany(H.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:me.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(H.BRACE_L,this.parseEnumValueDefinition,H.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:me.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw bt(this._lexer.source,this._lexer.token.start,`${_s(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:me.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseInputValueDef,H.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===H.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:me.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:me.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:me.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:me.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(H.AT);const n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:me.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(H.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(Cu,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new V2(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw bt(this._lexer.source,r.start,`Expected ${Sm(t)}, found ${_s(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===H.NAME&&r.value===t)this.advanceLexer();else throw bt(this._lexer.source,r.start,`Expected "${t}", found ${_s(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===H.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return bt(this._lexer.source,r.start,`Unexpected ${_s(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==H.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw bt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _s(e){const t=e.value;return Sm(e.kind)+(t!=null?` "${t}"`:"")}function Sm(e){return U2(e)?`"${e}"`:e}function dC(e){return`"${e.replace(fC,pC)}"`}const fC=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function pC(e){return hC[e.charCodeAt(0)]}const hC=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],mC=Object.freeze({});function gC(e,t,r=gm){const n=new Map;for(const v of Object.values(me))n.set(v,vC(t,v));let o,i=Array.isArray(e),s=[e],a=-1,l=[],c=e,u,d;const h=[],p=[];do{a++;const v=a===s.length,$=v&&l.length!==0;if(v){if(u=p.length===0?void 0:h[h.length-1],c=d,d=p.pop(),$)if(i){c=c.slice();let C=0;for(const[T,k]of l){const D=T-C;k===null?(c.splice(D,1),C++):c[D]=k}}else{c={...c};for(const[C,T]of l)c[C]=T}a=o.index,s=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(d){if(u=i?a:s[a],c=d[u],c==null)continue;h.push(u)}let S;if(!Array.isArray(c)){var g,m;vm(c)||Ts(!1,`Invalid AST Node: ${Iu(c)}.`);const C=v?(g=n.get(c.kind))===null||g===void 0?void 0:g.leave:(m=n.get(c.kind))===null||m===void 0?void 0:m.enter;if(S=C?.call(t,c,u,d,h,p),S===mC)break;if(S===!1){if(!v){h.pop();continue}}else if(S!==void 0&&(l.push([u,S]),!v))if(vm(S))c=S;else{h.pop();continue}}if(S===void 0&&$&&l.push([u,c]),v)h.pop();else{var x;o={inArray:i,index:a,keys:s,edits:l,prev:o},i=Array.isArray(c),s=i?c:(x=r[c.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&p.push(d),d=c}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function vC(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function bC(e){return gC(e,xC)}const yC=80,xC={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ce(e.definitions,`
76
+ spurious results.`)}}return!1};class Ym{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||Ls(!1,`Body must be a string. Received: ${Gu(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Ls(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ls(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ZS(e){return GS(e,Ym)}function qS(e,t){const r=new YS(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class YS{constructor(t,r={}){const n=ZS(t)?t:new Ym(t);this._lexer=new _S(n),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(H.NAME);return this.node(t,{kind:ge.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ge.DOCUMENT,definitions:this.many(H.SOF,this.parseDefinition,H.EOF)})}parseDefinition(){if(this.peek(H.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===H.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw yt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(H.BRACE_L))return this.node(t,{kind:ge.OPERATION_DEFINITION,operation:xo.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(H.NAME)&&(n=this.parseName()),this.node(t,{kind:ge.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(H.NAME);switch(t.value){case"query":return xo.QUERY;case"mutation":return xo.MUTATION;case"subscription":return xo.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(H.PAREN_L,this.parseVariableDefinition,H.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ge.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(H.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(H.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(H.DOLLAR),this.node(t,{kind:ge.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ge.SELECTION_SET,selections:this.many(H.BRACE_L,this.parseSelection,H.BRACE_R)})}parseSelection(){return this.peek(H.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(H.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:ge.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(H.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(H.PAREN_L,r,H.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:ge.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(H.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(H.NAME)?this.node(t,{kind:ge.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ge.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case H.BRACKET_L:return this.parseList(t);case H.BRACE_L:return this.parseObject(t);case H.INT:return this.advanceLexer(),this.node(r,{kind:ge.INT,value:r.value});case H.FLOAT:return this.advanceLexer(),this.node(r,{kind:ge.FLOAT,value:r.value});case H.STRING:case H.BLOCK_STRING:return this.parseStringLiteral();case H.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:ge.BOOLEAN,value:!0});case"false":return this.node(r,{kind:ge.BOOLEAN,value:!1});case"null":return this.node(r,{kind:ge.NULL});default:return this.node(r,{kind:ge.ENUM,value:r.value})}case H.DOLLAR:if(t)if(this.expectToken(H.DOLLAR),this._lexer.token.kind===H.NAME){const n=this._lexer.token.value;throw yt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:ge.STRING,value:t.value,block:t.kind===H.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:ge.LIST,values:this.any(H.BRACKET_L,r,H.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:ge.OBJECT,fields:this.any(H.BRACE_L,r,H.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:ge.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(H.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(H.AT),this.node(r,{kind:ge.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(H.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(H.BRACKET_R),r=this.node(t,{kind:ge.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(H.BANG)?this.node(t,{kind:ge.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:ge.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(H.STRING)||this.peek(H.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);return this.node(t,{kind:ge.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(H.COLON);const n=this.parseNamedType();return this.node(t,{kind:ge.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:ge.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:ge.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(H.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseFieldDefinition,H.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(H.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:ge.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(H.PAREN_L,this.parseInputValueDef,H.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(H.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(H.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:ge.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:ge.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:ge.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(H.EQUALS)?this.delimitedMany(H.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:ge.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(H.BRACE_L,this.parseEnumValueDefinition,H.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:ge.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw yt(this._lexer.source,this._lexer.token.start,`${js(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:ge.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseInputValueDef,H.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===H.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:ge.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:ge.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:ge.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:ge.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(H.AT);const n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:ge.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(H.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(Wu,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new PS(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw yt(this._lexer.source,r.start,`Expected ${Xm(t)}, found ${js(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===H.NAME&&r.value===t)this.advanceLexer();else throw yt(this._lexer.source,r.start,`Expected "${t}", found ${js(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===H.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return yt(this._lexer.source,r.start,`Unexpected ${js(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==H.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw yt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function js(e){const t=e.value;return Xm(e.kind)+(t!=null?` "${t}"`:"")}function Xm(e){return MS(e)?`"${e}"`:e}function XS(e){return`"${e.replace(JS,QS)}"`}const JS=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function QS(e){return eT[e.charCodeAt(0)]}const eT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tT=Object.freeze({});function rT(e,t,r=Rm){const n=new Map;for(const v of Object.values(ge))n.set(v,nT(t,v));let o,i=Array.isArray(e),s=[e],a=-1,l=[],c=e,u,d;const p=[],h=[];do{a++;const v=a===s.length,$=v&&l.length!==0;if(v){if(u=h.length===0?void 0:p[p.length-1],c=d,d=h.pop(),$)if(i){c=c.slice();let S=0;for(const[T,k]of l){const D=T-S;k===null?(c.splice(D,1),S++):c[D]=k}}else{c={...c};for(const[S,T]of l)c[S]=T}a=o.index,s=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(d){if(u=i?a:s[a],c=d[u],c==null)continue;p.push(u)}let C;if(!Array.isArray(c)){var m,g;Km(c)||Ls(!1,`Invalid AST Node: ${Gu(c)}.`);const S=v?(m=n.get(c.kind))===null||m===void 0?void 0:m.leave:(g=n.get(c.kind))===null||g===void 0?void 0:g.enter;if(C=S?.call(t,c,u,d,p,h),C===tT)break;if(C===!1){if(!v){p.pop();continue}}else if(C!==void 0&&(l.push([u,C]),!v))if(Km(C))c=C;else{p.pop();continue}}if(C===void 0&&$&&l.push([u,c]),v)p.pop();else{var x;o={inArray:i,index:a,keys:s,edits:l,prev:o},i=Array.isArray(c),s=i?c:(x=r[c.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&h.push(d),d=c}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function nT(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function oT(e){return rT(e,sT)}const iT=80,sT={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>fe(e.definitions,`
66
77
 
67
- `)},OperationDefinition:{leave(e){const t=Ie("(",ce(e.variableDefinitions,", "),")"),r=ce([e.operation,ce([e.name,t]),ce(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+Ie(" = ",r)+Ie(" ",ce(n," "))},SelectionSet:{leave:({selections:e})=>ar(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const i=Ie("",e,": ")+t;let s=i+Ie("(",ce(r,", "),")");return s.length>yC&&(s=i+Ie(`(
68
- `,Ms(ce(r,`
78
+ `)},OperationDefinition:{leave(e){const t=_e("(",fe(e.variableDefinitions,", "),")"),r=fe([e.operation,fe([e.name,t]),fe(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+_e(" = ",r)+_e(" ",fe(n," "))},SelectionSet:{leave:({selections:e})=>or(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const i=_e("",e,": ")+t;let s=i+_e("(",fe(r,", "),")");return s.length>iT&&(s=i+_e(`(
79
+ `,zs(fe(r,`
69
80
  `)),`
70
- )`)),ce([s,ce(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ie(" ",ce(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>ce(["...",Ie("on ",e),ce(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${e}${Ie("(",ce(r,", "),")")} on ${t} ${Ie("",ce(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?K2(e):dC(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ce(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ce(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",ce(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Ie("",e,`
71
- `)+ce(["schema",ce(t," "),ar(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
72
- `)+ce(["scalar",t,ce(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
73
- `)+ce(["type",t,Ie("implements ",ce(r," & ")),ce(n," "),ar(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Ie("",e,`
74
- `)+t+(Cm(r)?Ie(`(
75
- `,Ms(ce(r,`
81
+ )`)),fe([s,fe(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+_e(" ",fe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>fe(["...",_e("on ",e),fe(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${e}${_e("(",fe(r,", "),")")} on ${t} ${_e("",fe(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?IS(e):XS(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+fe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+fe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+_e("(",fe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>_e("",e,`
82
+ `)+fe(["schema",fe(t," "),or(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>_e("",e,`
83
+ `)+fe(["scalar",t,fe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>_e("",e,`
84
+ `)+fe(["type",t,_e("implements ",fe(r," & ")),fe(n," "),or(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>_e("",e,`
85
+ `)+t+(Jm(r)?_e(`(
86
+ `,zs(fe(r,`
76
87
  `)),`
77
- )`):Ie("(",ce(r,", "),")"))+": "+n+Ie(" ",ce(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Ie("",e,`
78
- `)+ce([t+": "+r,Ie("= ",n),ce(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
79
- `)+ce(["interface",t,Ie("implements ",ce(r," & ")),ce(n," "),ar(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Ie("",e,`
80
- `)+ce(["union",t,ce(r," "),Ie("= ",ce(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Ie("",e,`
81
- `)+ce(["enum",t,ce(r," "),ar(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
82
- `)+ce([t,ce(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ie("",e,`
83
- `)+ce(["input",t,ce(r," "),ar(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>Ie("",e,`
84
- `)+"directive @"+t+(Cm(r)?Ie(`(
85
- `,Ms(ce(r,`
88
+ )`):_e("(",fe(r,", "),")"))+": "+n+_e(" ",fe(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>_e("",e,`
89
+ `)+fe([t+": "+r,_e("= ",n),fe(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>_e("",e,`
90
+ `)+fe(["interface",t,_e("implements ",fe(r," & ")),fe(n," "),or(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>_e("",e,`
91
+ `)+fe(["union",t,fe(r," "),_e("= ",fe(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>_e("",e,`
92
+ `)+fe(["enum",t,fe(r," "),or(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>_e("",e,`
93
+ `)+fe([t,fe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>_e("",e,`
94
+ `)+fe(["input",t,fe(r," "),or(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>_e("",e,`
95
+ `)+"directive @"+t+(Jm(r)?_e(`(
96
+ `,zs(fe(r,`
86
97
  `)),`
87
- )`):Ie("(",ce(r,", "),")"))+(n?" repeatable":"")+" on "+ce(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ce(["extend schema",ce(e," "),ar(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ce(["extend scalar",e,ce(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ce(["extend type",e,Ie("implements ",ce(t," & ")),ce(r," "),ar(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ce(["extend interface",e,Ie("implements ",ce(t," & ")),ce(r," "),ar(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>ce(["extend union",e,ce(t," "),Ie("= ",ce(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>ce(["extend enum",e,ce(t," "),ar(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>ce(["extend input",e,ce(t," "),ar(r)]," ")}};function ce(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function ar(e){return Ie(`{
88
- `,Ms(ce(e,`
98
+ )`):_e("(",fe(r,", "),")"))+(n?" repeatable":"")+" on "+fe(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>fe(["extend schema",fe(e," "),or(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>fe(["extend scalar",e,fe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend type",e,_e("implements ",fe(t," & ")),fe(r," "),or(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend interface",e,_e("implements ",fe(t," & ")),fe(r," "),or(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>fe(["extend union",e,fe(t," "),_e("= ",fe(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>fe(["extend enum",e,fe(t," "),or(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>fe(["extend input",e,fe(t," "),or(r)]," ")}};function fe(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function or(e){return _e(`{
99
+ `,zs(fe(e,`
89
100
  `)),`
90
- }`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Ms(e){return Ie(" ",e.replace(/\n/g,`
91
- `))}function Cm(e){var t;return(t=e?.some(r=>r.includes(`
92
- `)))!==null&&t!==void 0?t:!1}const Tm="Accept",_u="Content-Type",Mu="application/json",km="application/graphql-response+json",Im=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),wC=e=>{const t=e.toLowerCase();return t.includes(km)||t.includes(Mu)},_m=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Mm)};if(Cs(e))return{_tag:"Single",executionResult:Mm(e)};throw new Error(`Invalid execution result: result is not object or array.
101
+ }`)}function _e(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function zs(e){return _e(" ",e.replace(/\n/g,`
102
+ `))}function Jm(e){var t;return(t=e?.some(r=>r.includes(`
103
+ `)))!==null&&t!==void 0?t:!1}const Qm="Accept",Zu="Content-Type",qu="application/json",eg="application/graphql-response+json",tg=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),aT=e=>{const t=e.toLowerCase();return t.includes(eg)||t.includes(qu)},rg=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(ng)};if(Os(e))return{_tag:"Single",executionResult:ng(e)};throw new Error(`Invalid execution result: result is not object or array.
93
104
  Got:
94
- ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,n;if("errors"in e){if(!Cs(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!Cs(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!Cs(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");n=e.extensions}return{data:r,errors:t,extensions:n}},$C=e=>e._tag==="Batch"?e.executionResults.some(Dm):Dm(e.executionResult),Dm=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Am=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===me.OPERATION_DEFINITION,EC=e=>{let t;const r=e.definitions.filter(Am);return r.length===1&&(t=r[0].name?.value),t},PC=e=>{let t=!1;const r=e.definitions.filter(Am);return r.length===1&&(t=r[0].operation==="mutation"),t},Du=(e,t)=>{const r=typeof e=="string"?e:bC(e);let n=!1,o;if(t)return{expression:r,isMutation:n,operationName:o};const i=I2(()=>typeof e=="string"?uC(e):e);return i instanceof Error?{expression:r,isMutation:n,operationName:o}:(o=EC(i),n=PC(i),{expression:r,operationName:o,isMutation:n})},Au=JSON,Ou=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":um(e.method??"post"):e.request.hasMutations?"POST":um(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=await CC(t.method)(t);if(!n.ok)return new ho({status:n.status,headers:n.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await SC(n,e.fetchOptions.jsonSerializer??Au);if(o instanceof Error)throw o;const i={status:n.status,headers:n.headers};if($C(o)&&t.fetchOptions.errorPolicy==="none"){const s=o._tag==="Batch"?{...o.executionResults,...i}:{...o.executionResult,...i};return new ho(s,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...Om(t)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(Om(t))};default:Eu(o)}},Om=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),SC=async(e,t)=>{const r=e.headers.get(_u),n=await e.text();return r&&wC(r)?_m(t.parse(n)):_m(n)},CC=e=>async t=>{const r=new Headers(t.headers);let n=null,o;r.has(Tm)||r.set(Tm,[km,Mu].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??Au).stringify(TC(t)),typeof o=="string"&&!r.has(_u)&&r.set(_u,Mu)):n=kC(t);const i={method:e,headers:r,body:o,...t.fetchOptions};let s=new URL(t.url),a=i;if(t.middleware){const c=await Promise.resolve(t.middleware({...i,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:u,...d}=c;s=new URL(u),a=d}return n&&n.forEach((c,u)=>{s.searchParams.append(u,c)}),await(t.fetch??fetch)(s,a)},TC=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return cm(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw Eu(e.request)}},kC=e=>{const t=e.fetchOptions.jsonSerializer??Au,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",Im(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=e.request.variables?.map(s=>t.stringify(s))??[],o=e.request.query.map(Im),i=cm(o,n).map(([s,a])=>({query:s,variables:a}));return r.append("query",t.stringify(i)),r}default:throw Eu(e.request)}};class IC{url;requestConfig;constructor(t,r={}){this.url=t,this.requestConfig=r}rawRequest=async(...t)=>{const[r,n,o]=t,i=D2(r,n,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...h}=this.requestConfig,{url:p}=this;i.signal!==void 0&&(h.signal=i.signal);const g=Du(i.query,d),m=await Ou({url:p,request:{_tag:"Single",document:g,variables:i.variables},headers:{...mo($u(s)),...mo(i.requestHeaders)},fetch:a,method:l,fetchOptions:h,middleware:c});if(u&&await u(m,{operationName:g.operationName,variables:n,url:this.url}),m instanceof Error)throw m;return m};async request(t,...r){const[n,o]=r,i=_C(t,n,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...h}=this.requestConfig,{url:p}=this;i.signal!==void 0&&(h.signal=i.signal);const g=Du(i.document,d),m=await Ou({url:p,request:{_tag:"Single",document:g,variables:i.variables},headers:{...mo($u(s)),...mo(i.requestHeaders)},fetch:a,method:l,fetchOptions:h,middleware:c});if(u&&await u(m,{operationName:g.operationName,variables:i.variables,url:this.url}),m instanceof Error)throw m;return m.data}async batchRequests(t,r){const n=M2(t,r),{headers:o,excludeOperationName:i,...s}=this.requestConfig;n.signal!==void 0&&(s.signal=n.signal);const a=n.documents.map(({document:h})=>Du(h,i)),l=a.map(({expression:h})=>h),c=a.some(({isMutation:h})=>h),u=n.documents.map(({variables:h})=>h),d=await Ou({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:c,variables:u},headers:{...mo($u(o)),...mo(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:u,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const _C=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},bo=(e,...t)=>e.reduce((r,n,o)=>`${r}${n}${o in t?String(t[o]):""}`,"");var yo=(e=>(e.Avg="AVG",e.Cardinality="CARDINALITY",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e))(yo||{});const MC=bo`
105
+ ${String(e)}`)}catch(t){return t}},ng=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,n;if("errors"in e){if(!Os(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!Os(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!Os(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");n=e.extensions}return{data:r,errors:t,extensions:n}},lT=e=>e._tag==="Batch"?e.executionResults.some(og):og(e.executionResult),og=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,ig=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===ge.OPERATION_DEFINITION,uT=e=>{let t;const r=e.definitions.filter(ig);return r.length===1&&(t=r[0].name?.value),t},cT=e=>{let t=!1;const r=e.definitions.filter(ig);return r.length===1&&(t=r[0].operation==="mutation"),t},Yu=(e,t)=>{const r=typeof e=="string"?e:oT(e);let n=!1,o;if(t)return{expression:r,isMutation:n,operationName:o};const i=mS(()=>typeof e=="string"?qS(e):e);return i instanceof Error?{expression:r,isMutation:n,operationName:o}:(o=uT(i),n=cT(i),{expression:r,operationName:o,isMutation:n})},Xu=JSON,Ju=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":Om(e.method??"post"):e.request.hasMutations?"POST":Om(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=await fT(t.method)(t);if(!n.ok)return new bo({status:n.status,headers:n.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await dT(n,e.fetchOptions.jsonSerializer??Xu);if(o instanceof Error)throw o;const i={status:n.status,headers:n.headers};if(lT(o)&&t.fetchOptions.errorPolicy==="none"){const s=o._tag==="Batch"?{...o.executionResults,...i}:{...o.executionResult,...i};return new bo(s,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...sg(t)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(sg(t))};default:Bu(o)}},sg=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),dT=async(e,t)=>{const r=e.headers.get(Zu),n=await e.text();return r&&aT(r)?rg(t.parse(n)):rg(n)},fT=e=>async t=>{const r=new Headers(t.headers);let n=null,o;r.has(Qm)||r.set(Qm,[eg,qu].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??Xu).stringify(pT(t)),typeof o=="string"&&!r.has(Zu)&&r.set(Zu,qu)):n=hT(t);const i={method:e,headers:r,body:o,...t.fetchOptions};let s=new URL(t.url),a=i;if(t.middleware){const c=await Promise.resolve(t.middleware({...i,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:u,...d}=c;s=new URL(u),a=d}return n&&n.forEach((c,u)=>{s.searchParams.append(u,c)}),await(t.fetch??fetch)(s,a)},pT=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return Lm(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw Bu(e.request)}},hT=e=>{const t=e.fetchOptions.jsonSerializer??Xu,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",tg(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=e.request.variables?.map(s=>t.stringify(s))??[],o=e.request.query.map(tg),i=Lm(o,n).map(([s,a])=>({query:s,variables:a}));return r.append("query",t.stringify(i)),r}default:throw Bu(e.request)}};class mT{url;requestConfig;constructor(t,r={}){this.url=t,this.requestConfig=r}rawRequest=async(...t)=>{const[r,n,o]=t,i=bS(r,n,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;i.signal!==void 0&&(p.signal=i.signal);const m=Yu(i.query,d),g=await Ju({url:h,request:{_tag:"Single",document:m,variables:i.variables},headers:{...yo(zu(s)),...yo(i.requestHeaders)},fetch:a,method:l,fetchOptions:p,middleware:c});if(u&&await u(g,{operationName:m.operationName,variables:n,url:this.url}),g instanceof Error)throw g;return g};async request(t,...r){const[n,o]=r,i=gT(t,n,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;i.signal!==void 0&&(p.signal=i.signal);const m=Yu(i.document,d),g=await Ju({url:h,request:{_tag:"Single",document:m,variables:i.variables},headers:{...yo(zu(s)),...yo(i.requestHeaders)},fetch:a,method:l,fetchOptions:p,middleware:c});if(u&&await u(g,{operationName:m.operationName,variables:i.variables,url:this.url}),g instanceof Error)throw g;return g.data}async batchRequests(t,r){const n=vS(t,r),{headers:o,excludeOperationName:i,...s}=this.requestConfig;n.signal!==void 0&&(s.signal=n.signal);const a=n.documents.map(({document:p})=>Yu(p,i)),l=a.map(({expression:p})=>p),c=a.some(({isMutation:p})=>p),u=n.documents.map(({variables:p})=>p),d=await Ju({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:c,variables:u},headers:{...yo(zu(o)),...yo(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:u,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const gT=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},$o=(e,...t)=>e.reduce((r,n,o)=>`${r}${n}${o in t?String(t[o]):""}`,"");var Eo=(e=>(e.Avg="AVG",e.Cardinality="CARDINALITY",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e))(Eo||{});const vT=$o`
95
106
  fragment ProductCardProduct on ProductVersion {
96
107
  id
97
108
  slug
@@ -177,7 +188,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
177
188
  }
178
189
  }
179
190
  }
180
- `,Ds=bo`
191
+ `,Bs=$o`
181
192
  fragment ProductCardProposition on Proposition {
182
193
  key
183
194
  creditFee
@@ -242,7 +253,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
242
253
  stickerImageUrl
243
254
  }
244
255
  }
245
- ${MC}`,DC=bo`
256
+ ${vT}`,bT=$o`
246
257
  query resultsFixedPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock], $postcode: String, $number: Int, $numberAddon: String) {
247
258
  fetchInfo(
248
259
  productCategory: "fixed-proposition"
@@ -288,7 +299,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
288
299
  }
289
300
  }
290
301
  }
291
- ${Ds}`,AC=bo`
302
+ ${Bs}`,yT=$o`
292
303
  query resultsSimOnlyPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
293
304
  search: searchPropositions(
294
305
  query: $query
@@ -323,7 +334,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
323
334
  }
324
335
  }
325
336
  }
326
- ${Ds}`,OC=bo`
337
+ ${Bs}`,xT=$o`
327
338
  query resultsSmartphonePropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
328
339
  search: searchPropositions(
329
340
  query: $query
@@ -367,7 +378,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
367
378
  }
368
379
  }
369
380
  }
370
- ${Ds}`,NC=bo`
381
+ ${Bs}`,wT=$o`
371
382
  query resultsSmartphonePropositionsExtended($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
372
383
  search: searchPropositions(
373
384
  query: $query
@@ -393,40 +404,34 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
393
404
  }
394
405
  }
395
406
  }
396
- ${Ds}`;function LC(e){return["ja","nee","0","1"].includes(e)}function Nm(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function Lm(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function Fm(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function Vm(e){return parseFloat(e)||0}function jm(e){const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}function zm(e){const{col:t,ranges:r,values:n}=FC(e),o=e.operator==="and";if(o&&r)return r.map(i=>({col:t,ranges:[i]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const i=n[0];if(typeof i=="string")return n.map(s=>({col:t,values:[s]}));if(typeof i=="number")return n.map(s=>({col:t,values:[s]}));if(typeof i=="boolean")return n.map(s=>({col:t,values:[s]}))}return[{col:t,ranges:r,values:n}]}function FC({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:Fm(t)}:(r==="integer"||r==="decimal")&&t.every(Lm)?{col:e,ranges:t.map(jm)}:(r==="integer"||r==="decimal")&&t.every(Nm)?{col:e,values:t.map(Vm)}:r==="string"?{col:e,values:t}:t.every(LC)?{col:e,values:Fm(t)}:t.every(Lm)?{col:e,ranges:t.map(jm)}:t.every(Nm)?{col:e,values:t.map(Vm)}:{col:e,values:t}}function VC({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:i,ranges:s}]=zm({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:yo.Max,col:t}];case"min":return[{key:`min_${e}`,metric:yo.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:yo.Min,col:t},{key:`max_${e}`,metric:yo.Max,col:t}];case"values":return s?[{key:e,col:t,filter:n,ranges:s}]:i&&i.length>0?[{key:e,col:t,filter:n,include:i}]:[{key:e,col:t,filter:n}]}}class jC{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...zm(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...VC(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:yo.Cardinality,col:this._groupBy}]:this._aggregations}}}function zC({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n}){const o=new jC;o.limit(r);const i=Kr(t,"sorteren");return i&&o.sort(i),t.forEach(s=>{const a=T2(e,s.id);a&&o.where({col:s.id,values:(Array.isArray(s.value)?s.value:[s.value]).map(l=>String(l)),valueType:a.type})}),n&&o.where({col:"current_provider",values:[n]}),o}function BC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Arrow Up Down Icon"}),y.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function RC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Broadcast Icon"}),y.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Calculator Icon"}),y.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Bm({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Chevron Right Icon"}),y.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Rm({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Circle Check Filled Icon"}),y.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function WC({fill:e="currentColor",size:t,height:r,width:n,className:o,style:i,...s}){return y.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:i,...s,children:[y.jsx("title",{children:"Circle X Icon"}),y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m10 10 4 4m0-4-4 4m11-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0"})]})}function UC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Clock Hour Icon"}),y.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function HC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Device Remote Icon"}),y.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function GC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Device TV Icon"}),y.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function ZC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Discount Icon"}),y.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Km({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Filters Icon"}),y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function qC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Gauge Icon"}),y.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function YC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Star Icon"}),y.jsx("path",{d:"M12.0001 17.75L5.82808 20.995L7.00708 14.122L2.00708 9.25495L8.90708 8.25495L11.9931 2.00195L15.0791 8.25495L21.9791 9.25495L16.9791 14.122L18.1581 20.995L12.0001 17.75Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function XC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"World Icon"}),y.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Wm({filter:e,filterOption:t,onRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>C2(e,t),[e,t]),s=f.useCallback(()=>r(e),[e,r]),a=f.useCallback(l=>{(l.key==="Delete"||l.key==="Backspace")&&(l.preventDefault(),s())},[s]);return y.jsx(wu,{ref:o,onClose:s,onKeyDown:a,variant:"bordered",color:"primary",endContent:y.jsx(WC,{size:20}),tabIndex:0,classNames:n,children:i})}function Um({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>new Map(t.map(a=>[a.id,a])),[t]),s=f.useCallback(a=>{r(a),setTimeout(()=>{if(!o.current)return;const l=o.current.querySelectorAll('[tabindex="0"]');l.length>0&&l[0].focus()},0)},[r]);return!e||e.length===0||e.every(a=>{const l=i.get(a.id);return!l||l.type==="hidden"})?null:y.jsx("fieldset",{ref:o,className:j("flex flex-wrap gap-2",n?.container),children:e.map(a=>{const l=i.get(a.id);return!l||l.type==="hidden"?null:y.jsx(Wm,{filter:a,filterOption:l,onRemove:s,classNames:{...n?.filterChip,base:j("border-primary-600",n?.filterChip?.base),content:j("text-primary-600 font-semibold",n?.filterChip?.content),closeButton:j("stroke-primary-600 opacity-100 hover:stroke-primary-700",n?.filterChip?.closeButton)}},a.id)})})}var[fM,JC]=Vi({name:"ButtonGroupContext",strict:!1});function Hm(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:h,target:p,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:S}=qo({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:C}=ws(e,t);u&&(C.tabIndex=n?-1:C.tabIndex);let T=kt(C,$,Ri(e,{labelable:!0}));return{isPressed:S,buttonProps:kt(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var QC=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),Gm=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:i}=e;return y.jsx(y.Fragment,{children:t.map(s=>{const a=Fx(.01*s.size,.2,s.size>100?.75:.5);return y.jsx(ao,{features:QC,children:y.jsx(ss,{mode:"popLayout",children:y.jsx(lo.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...r})})},s.key)})})};Gm.displayName="HeroUI.Ripple";var Zm=Gm;function qm(e={}){const[t,r]=f.useState([]),n=f.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);r(l=>[...l,{key:Lx(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=f.useCallback(i=>{r(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function eT(e){var t,r,n,o,i,s,a,l,c;const u=JC(),d=gt(),h=!!u,{ref:p,as:g,children:m,startContent:x,endContent:v,autoFocus:$,className:S,spinner:C,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:E=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:b=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:P,..._}=e,B=g||"button",L=typeof B=="string",K=zt(p),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=gn({autoFocus:$}),Z=A||T,R=f.useMemo(()=>kx({size:V,color:F,variant:b,radius:E,fullWidth:D,isDisabled:Z,isInGroup:h,disableAnimation:M,isIconOnly:I,className:S}),[V,F,b,E,D,Z,h,I,M,S]),{onPress:he,onClear:fe,ripples:Q}=qm(),se=f.useCallback(Ee=>{z||Z||M||K.current&&he(Ee)},[z,Z,M,K,he]),{buttonProps:q,isPressed:Y}=Hm({elementType:g,isDisabled:Z,onPress:Fr(w,se),onClick:P,..._},K),{isHovered:de,hoverProps:ae}=Tr({isDisabled:Z}),ie=f.useCallback((Ee={})=>({"data-disabled":pe(Z),"data-focus":pe(U),"data-pressed":pe(Y),"data-focus-visible":pe(W),"data-hover":pe(de),"data-loading":pe(T),...ht(q,ee,ae,Tt(_,{enabled:L}),Tt(Ee)),className:R}),[T,Z,U,Y,L,W,de,q,ee,ae,_,R]),we=Ee=>f.isValidElement(Ee)?f.cloneElement(Ee,{"aria-hidden":!0,focusable:!1}):null,De=we(x),xe=we(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:fe}),[Q,fe]);return{Component:B,children:m,domRef:K,spinner:C,styles:R,startContent:De,endContent:xe,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:ie,getRippleProps:je,isIconOnly:I}}function tT(e){var t,r;const[n,o]=qt(e,Oi.variantKeys),i=gt(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,h=f.useMemo(()=>Oi({...o}),[rn(o)]),p=Be(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:h.base({class:p}),...d}),[m,h,p,d]);return{label:g,slots:h,classNames:c,variant:s,getSpinnerProps:x}}var Ym=Re((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=tT({...e});return i==="wave"||i==="dots"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>y.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?y.jsxs("div",{ref:t,...s(),children:[y.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[y.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>y.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):y.jsxs("div",{ref:t,...s(),children:[y.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[y.jsx("i",{className:r.circle1({class:n?.circle1})}),y.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Ym.displayName="HeroUI.Spinner";var rT=Ym,Xm=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:i,spinner:s=y.jsx(rT,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:h,getRippleProps:p,isIconOnly:g}=eT({...e,ref:t});return y.jsxs(r,{ref:n,...h(),children:[l,u&&a==="start"&&s,u&&g?null:o,u&&a==="end"&&s,c,!d&&y.jsx(Zm,{...p()})]})});Xm.displayName="HeroUI.Button";var ti=Xm;function Nu(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function i(){var s;const a=Nt.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function er(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}var nT=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function Lu(e){return Array.isArray(e)}function oT(e){return Lu(e)&&e.length===0}function Jm(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Lu(e)}function iT(e){return Jm(e)&&Object.keys(e).length===0}function sT(e){return Lu(e)?oT(e):Jm(e)?iT(e):e==null||e===""}var ve=e=>e?"true":void 0;function Qm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Qm(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Se(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=Qm(r))&&(o&&(o+=" "),o+=n);return o}var aT=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t},eg=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function lT(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function yn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}var tg={};function rg(e,t,...r){const o=`[Hero UI]${` [${t}]`}: ${e}`;if(!(typeof console>"u")&&!tg[o]&&(tg[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Fu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ng=new Map;function uT(e,t){if(e===t)return e;let r=ng.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=ng.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ve(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fu(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Se(i,s):o==="id"&&i&&s?t.id=uT(i,s):t[o]=s!==void 0?s:i}}return t}function Vu(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=og(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():og(e[i],null)})}}}function og(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var[cT,As]=Nu({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),ig=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,bodyId:l,setBodyMounted:c}=As(),u=er(t),d=r||"div";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),y.jsx(d,{ref:u,className:s.body({class:Se(a?.body,o)}),id:l,...i,children:n})});ig.displayName="HeroUI.ModalBody";var dT=ig,ri={ease:[.36,.66,.4,1]},ju={scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ri.ease}},exit:{opacity:0,transition:{duration:.3,ease:ri.ease}}}},fT={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ri.ease},opacity:{duration:.4,ease:ri.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ri.ease}}};const We=typeof document<"u"?f.useLayoutEffect:()=>{};var zu;const pT=(zu=f.useInsertionEffect)!==null&&zu!==void 0?zu:We;function nt(e){const t=f.useRef(null);return pT(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function hT(e){let[t,r]=f.useState(e),n=f.useRef(null),o=nt(()=>{if(!n.current)return;let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});We(()=>{n.current&&o()});let i=nt(s=>{n.current=s(t),o()});return[t,i]}let mT=!!(typeof window<"u"&&window.document&&window.document.createElement),xo=new Map,ni;typeof FinalizationRegistry<"u"&&(ni=new FinalizationRegistry(e=>{xo.delete(e)}));function Bt(e){let[t,r]=f.useState(e),n=f.useRef(null),o=pf(t),i=f.useRef(null);if(ni&&ni.register(i,o),mT){const s=xo.get(o);s&&!s.includes(n)?s.push(n):xo.set(o,[n])}return We(()=>{let s=o;return()=>{ni&&ni.unregister(i),xo.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function gT(e,t){if(e===t)return e;let r=xo.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=xo.get(t);return n?(n.forEach(o=>o.current=e),e):t}function xn(e=[]){let t=Bt(),[r,n]=hT(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return We(o,[t,o,...e]),r}function wn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ne=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Rt=e=>e&&"window"in e&&e.window===e?e:Ne(e).defaultView||window;function vT(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function bT(e){return vT(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Xe(e,t){if(!on())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:bT(r)?r=r.host:r=r.parentNode}return!1}const It=(e=document)=>{var t;if(!on())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Le(e){return on()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class yT{get currentNode(){return this._currentNode}set currentNode(t){if(!Xe(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Xe(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let s=this.lastChild();return s&&(this.currentNode=s),s}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function xT(e,t,r,n){return on()?new yT(e,t,r,n):e.createTreeWalker(t,r,n)}function ze(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wn(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=wf(i,s):o==="id"&&i&&s?t.id=gT(i,s):t[o]=s!==void 0?s:i}}return t}const wT=new Set(["id"]),$T=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ET=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),PT=new Set(["dir","lang","hidden","inert","translate"]),sg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ST=/^(data-.*)$/;function Wr(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(wT.has(l)||r&&$T.has(l)||n&&ET.has(l)||o&&PT.has(l)||i&&sg.has(l)||l.endsWith("Capture")&&sg.has(l.slice(0,-7))||s?.has(l)||ST.test(l))&&(a[l]=e[l]);return a}function lr(e){if(CT())e.focus({preventScroll:!0});else{let t=TT(e);e.focus(),kT(t)}}let Os=null;function CT(){if(Os==null){Os=!1;try{document.createElement("div").focus({get preventScroll(){return Os=!0,!0}})}catch{}}return Os}function TT(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function kT(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ns(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Bu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function kr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ur=kr(function(){return Bu(/^Mac/i)}),IT=kr(function(){return Bu(/^iPhone/i)}),ag=kr(function(){return Bu(/^iPad/i)||Ur()&&navigator.maxTouchPoints>1}),Ls=kr(function(){return IT()||ag()}),_T=kr(function(){return Ur()||Ls()}),Ru=kr(function(){return Ns(/AppleWebKit/i)&&!Ku()}),Ku=kr(function(){return Ns(/Chrome/i)}),Wu=kr(function(){return Ns(/Android/i)}),MT=kr(function(){return Ns(/Firefox/i)}),DT=f.createContext({isNative:!0,open:OT,useHref:e=>e});function Uu(){return f.useContext(DT)}function $n(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;MT()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Ur()?i=!0:s=!0);let c=Ru()&&Ur()&&!ag()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});$n.isOpening=r,lr(e),e.dispatchEvent(c),$n.isOpening=!1}$n.isOpening=!1;function AT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function OT(e,t){AT(e,r=>$n(r,t))}function NT(e){let t=Uu();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Hr=new Map,Hu=new Set;function lg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Hr.get(n.target);o||(o=new Set,Hr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Hr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Hr.delete(n.target)),Hr.size===0)){for(let i of Hu)i();Hu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?lg():document.addEventListener("DOMContentLoaded",lg));function LT(){for(const[e]of Hr)"isConnected"in e&&!e.isConnected&&Hr.delete(e)}function ug(e){requestAnimationFrame(()=>{LT(),Hr.size===0?e():Hu.add(e)})}function Fs(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Gu(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function cg(e,t){const r=f.useRef(!0),n=f.useRef(null);We(()=>(r.current=!0,()=>{r.current=!1}),[]),We(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function FT(){return typeof window.ResizeObserver<"u"}function dg(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(FT()){const i=new window.ResizeObserver(s=>{s.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function fg(e,t){We(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function wo(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function pg(e,t){let r=e;for(wo(r,t)&&(r=r.parentElement);r&&!wo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function VT(e,t){const r=[];for(;e&&e!==document.documentElement;)wo(e,t)&&r.push(e),e=e.parentElement;return r}function $o(e){return Ur()?e.metaKey:e.ctrlKey}const jT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zu(e){return e instanceof HTMLInputElement&&!jT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let zT=0;const qu=new Map;function BT(e){let[t,r]=f.useState();return We(()=>{if(!e)return;let n=qu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${zT++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},qu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),qu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Vs(e,t,r,n){let o=nt(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,i,o])}function hg(e,t){let r=mg(e,t,"left"),n=mg(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(e),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:x,scrollMarginLeft:v}=getComputedStyle(t),$=s+parseInt(c,10),S=a+parseInt(l,10),C=$+e.clientWidth,T=S+e.clientHeight,k=parseInt(u,10)||0,D=parseInt(h,10)||0,E=parseInt(d,10)||0,V=parseInt(p,10)||0,F=parseInt(g,10)||0,b=parseInt(x,10)||0,M=parseInt(m,10)||0,A=parseInt(v,10)||0,I=r-A,N=r+o+M,w=n-F,P=n+i+b,_=s+parseInt(c,10)+V,B=C-E,L=a+parseInt(l,10)+k,K=T-D;if((I>_||N<B)&&(I<=s+V?s=I-parseInt(c,10)-V:N>C-E&&(s+=N-C+E)),(w>L||P<K)&&(w<=S+k?a=w-parseInt(l,10)-k:P>T-D&&(a+=P-T+D)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=a;return}e.scrollTo({left:s,top:a})}function mg(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function gg(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!Ku()){var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=VT(e);for(let c of l)hg(c,e)}}}function Yu(e){return e.pointerType===""&&e.isTrusted?!0:Wu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RT(e){return!Wu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function vg(e,t,r){let n=nt(()=>{r&&r(t)});f.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e,n])}const KT="react-aria-clear-focus",WT="react-aria-focus",UT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function HT(e){const t=Rt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function GT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Xu(e,t){return UT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&HT(e)&&GT(e,t)&&(!e.parentElement||Xu(e.parentElement,e))}const Ju=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],ZT=Ju.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ju.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const qT=Ju.join(':not([hidden]):not([tabindex="-1"]),');function bg(e){return e.matches(ZT)&&Xu(e)&&!yg(e)}function YT(e){return e.matches(qT)&&Xu(e)&&!yg(e)}function yg(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}const hr={top:"top",bottom:"top",left:"left",right:"left"},js={top:"bottom",bottom:"top",left:"right",right:"left"},XT={top:"left",left:"top"},Qu={top:"height",left:"width"},xg={width:"totalWidth",height:"totalHeight"},zs={};let yt=typeof document<"u"?window.visualViewport:null;function wg(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=yt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=yt?.width)!==null&&u!==void 0?u:n;var d;r=(d=yt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,yt&&(i=yt.offsetTop,s=yt.offsetLeft)}else({width:t,height:r,top:i,left:s}=Eo(e,!1)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Ru()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var h;i=(h=yt?.pageTop)!==null&&h!==void 0?h:0;var p;s=(p=yt?.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function JT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $g(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[Qu[e]],u=n.scroll[hr[e]]+i,d=c+n.scroll[hr[e]]-i,h=t-l+s[e]-n[hr[e]],p=t-l+r+s[e]-n[hr[e]];return h<u?u-h:p>d?Math.max(d-p,u-h):0}function QT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Eg(e){if(zs[e])return zs[e];let[t,r]=e.split(" "),n=hr[t]||"right",o=XT[n];hr[r]||(r="center");let i=Qu[n],s=Qu[o];return zs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},zs[e]}function ec(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:h,crossAxis:p,size:g,crossSize:m}=n,x={};var v;x[p]=(v=e[p])!==null&&v!==void 0?v:0;var $,S,C,T;d==="center"?x[p]+=((($=e[m])!==null&&$!==void 0?$:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:d!==p&&(x[p]+=((C=e[m])!==null&&C!==void 0?C:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[p]+=i;const k=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(x[p]=Pr(x[p],k,D),u===h){const E=a?s[g]:t[xg[g]];x[js[h]]=Math.floor(E-e[h]+o)}else x[h]=Math.floor(e[h]+e[g]+o);return x}function e4(e,t,r,n,o,i,s,a){const l=n?r.height:t[xg.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,h,p,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((h=o.top)!==null&&h!==void 0?h:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+s-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function Pg(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[js[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[js[a]]-o)}function t4(e,t,r,n,o,i,s,a,l,c,u,d,h,p,g,m){let x=Eg(e),{size:v,crossAxis:$,crossSize:S,placement:C,crossPlacement:T}=x,k=ec(t,a,r,x,u,d,c,h,g,m),D=u,E=Pg(a,c,t,o,i+u,x);if(s&&n[v]>E){let R=Eg(`${js[C]} ${T}`),he=ec(t,a,r,R,u,d,c,h,g,m);Pg(a,c,t,o,i+u,R)>E&&(x=R,k=he,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=$g($,k[$],r[S],a,l,i,c);k[$]+=F;let b=e4(k,a,c,h,o,i,r.height,V);p&&p<b&&(b=p),r.height=Math.min(r.height,b),k=ec(t,a,r,x,D,d,c,h,g,m),F=$g($,k[$],r[S],a,l,i,c),k[$]+=F;let M={},A=t[$]-k[$]-o[hr[$]],I=A+.5*t[S];const N=g/2+m;var w,P,_,B;const L=hr[$]==="left"?((w=o.left)!==null&&w!==void 0?w:0)+((P=o.right)!==null&&P!==void 0?P:0):((_=o.top)!==null&&_!==void 0?_:0)+((B=o.bottom)!==null&&B!==void 0?B:0),K=r[S]-L-g/2-m,z=t[$]+g/2-(k[$]+o[hr[$]]),W=t[$]+t[S]-g/2-(k[$]+o[hr[$]]),U=Pr(I,z,W);M[$]=Pr(U,N,K),{placement:C,crossPlacement:T}=x,g?A=M[$]:T==="right"?A+=t[S]:T==="center"&&(A+=t[S]/2);let ee=C==="left"||C==="top"?r[v]:0,Z={x:C==="top"||C==="bottom"?A:ee,y:C==="left"||C==="right"?A:ee};return{position:k,maxHeight:b,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:C,triggerAnchorPoint:Z}}function r4(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:h=0}=e,p=n instanceof HTMLElement?n4(n):document.documentElement,g=p===document.documentElement;const m=window.getComputedStyle(p).position;let x=!!m&&m!=="static",v=g?Eo(r,!1):Sg(r,p,!1);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=Eo(n,!0),S=QT(n);var C,T;$.width+=((C=S.left)!==null&&C!==void 0?C:0)+((T=S.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=S.top)!==null&&k!==void 0?k:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let E=JT(o),V=wg(a),F=wg(p),b=a.tagName==="BODY"?Eo(p,!1):Sg(p,a,!1);return p.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),t4(t,v,$,E,S,i,s,V,F,b,l,c,x,u,d,h)}function tc(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Eo(e,t){let{top:r,left:n,width:o,height:i}=tc(e,t),{scrollTop:s,scrollLeft:a,clientTop:l,clientLeft:c}=document.documentElement;return{top:r+s-l,left:n+a-c,width:o,height:i}}function Sg(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=tc(e,r);else{o=Eo(e,r);let i=Eo(t,r),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function n4(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Cg(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Cg(t);)t=t.parentElement;return t||document.documentElement}function Cg(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Tg=new WeakMap;function o4(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||Tg.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}const i4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),s4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function a4(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return i4.has(r.script)}let t=e.split("-")[0];return s4.has(t)}const l4=Symbol.for("react-aria.i18n.locale");function kg(){let e=typeof window<"u"&&window[l4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:a4(e)?"rtl":"ltr"}}let rc=kg(),oi=new Set;function Ig(){rc=kg();for(let e of oi)e(rc)}function u4(){let e=Hn(),[t,r]=f.useState(rc);return f.useEffect(()=>(oi.size===0&&window.addEventListener("languagechange",Ig),oi.add(r),()=>{oi.delete(r),oi.size===0&&window.removeEventListener("languagechange",Ig)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const c4=f.createContext(null);function ii(){let e=u4();return f.useContext(c4)||e}const _g=new WeakMap;function d4(e){let t=_g.get(e);return t||(t=new Bi(e),_g.set(e,t)),t}function f4(e,t){return t&&Bi.getGlobalDictionaryForPackage(t)||d4(e)}function Mg(e,t){let{locale:r}=ii(),n=f4(e,t);return f.useMemo(()=>new pw(r,n),[r,n])}let nc=new Map;function Dg(e){let{locale:t}=ii(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(nc.has(r))return nc.get(r);let n=new Intl.Collator(t,e);return nc.set(r,n),n}let at=typeof document<"u"?window.visualViewport:null;function p4(e){let{direction:t}=ii(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:a="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:m,maxHeight:x,arrowBoundaryOffset:v=0}=e,[$,S]=f.useState(null),C=[p,a,o.current,n.current,i?.current,s.current,l,c,u,d,h,g,t,x,v,r],T=f.useRef(at?.scale);f.useEffect(()=>{g&&(T.current=at?.scale)},[g]);let k=f.useCallback(()=>{if(p===!1||!g||!o.current||!n.current||!u||at?.scale!==T.current)return;let M=null;if(s.current&&s.current.contains(document.activeElement)){var A;let L=(A=document.activeElement)===null||A===void 0?void 0:A.getBoundingClientRect(),K=s.current.getBoundingClientRect();var I;if(M={type:"top",offset:((I=L?.top)!==null&&I!==void 0?I:0)-K.top},M.offset>K.height/2){M.type="bottom";var N;M.offset=((N=L?.bottom)!==null&&N!==void 0?N:0)-K.bottom}}let w=o.current;if(!x&&o.current){var P;w.style.top="0px",w.style.bottom="";var _;w.style.maxHeight=((_=(P=window.visualViewport)===null||P===void 0?void 0:P.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let B=r4({placement:m4(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:s.current||o.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:h,maxHeight:x,arrowSize:r??(i?.current?tc(i.current,!0).width:0),arrowBoundaryOffset:v});if(B.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(B.position).forEach(L=>w.style[L]=B.position[L]+"px"),w.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",M&&document.activeElement&&s.current){let L=document.activeElement.getBoundingClientRect(),K=s.current.getBoundingClientRect(),z=L[M.type]-K[M.type];s.current.scrollTop+=z-M.offset}S(B)}},C);We(k,C),h4(k),dg({ref:o,onResize:k}),dg({ref:n,onResize:k});let D=f.useRef(!1);We(()=>{let M,A=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},I=()=>{D.current&&A()};return at?.addEventListener("resize",A),at?.addEventListener("scroll",I),()=>{at?.removeEventListener("resize",A),at?.removeEventListener("scroll",I)}},[k]);let E=f.useCallback(()=>{D.current||m?.()},[m,D]);o4({triggerRef:n,isOpen:g,onClose:m&&E});var V,F,b;return{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$?.position,maxHeight:(V=$?.maxHeight)!==null&&V!==void 0?V:"100vh"}},placement:(F=$?.placement)!==null&&F!==void 0?F:null,triggerAnchorPoint:(b=$?.triggerAnchorPoint)!==null&&b!==void 0?b:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$?.arrowOffsetLeft,top:$?.arrowOffsetTop}},updatePosition:k}}function h4(e){We(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function m4(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function oc(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ag(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Og(e){let t=f.useRef({isFocused:!1,observer:null});We(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=nt(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=oc(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Bs=!1;function Ng(e){for(;e&&!bg(e);)e=e.parentElement;let t=Rt(e),r=t.document.activeElement;if(!r||r===e)return;Bs=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,lr(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,lr(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),Bs=!1,n=!1},c=requestAnimationFrame(l);return l}let Po="default",ic="",Rs=new WeakMap;function Lg(e){if(Ls()){if(Po==="default"){const t=Ne(e);ic=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Rs.set(e,e.style[t]),e.style[t]="none"}}function sc(e){if(Ls()){if(Po!=="disabled")return;Po="restoring",setTimeout(()=>{ug(()=>{if(Po==="restoring"){const t=Ne(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ic||""),ic="",Po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Rs.has(e)){let t=Rs.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Rs.delete(e)}}const ac=f.createContext({register:()=>{}});ac.displayName="PressResponderContext";function g4(e){let t=f.useContext(ac);if(t){let{register:r,...n}=t;e=ze(n,e),r()}return fg(t,e.ref),e}var Ks=new WeakMap;class Ws{continuePropagation(){gs(this,Ks,!1)}get shouldStopPropagation(){return Vh(this,Ks)}constructor(t,r,n,o){bf(this,Ks,{writable:!0,value:void 0}),gs(this,Ks,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const Fg=Symbol("linkClicked"),Vg="react-aria-pressable-style",jg="data-react-aria-pressable";function Ir(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...p}=g4(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Fs(),S=nt((b,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new Ws("pressstart",M,b);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),C=nt((b,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new Ws("pressend",M,b);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new Ws("press",M,b);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=nt((b,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new Ws("pressup",M,b);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=nt(b=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(En(M.target,b),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||sc(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=nt(b=>{u&&k(b)}),E=nt(b=>{a||s?.(b)}),V=nt((b,M)=>{if(!a&&s){let A=new MouseEvent("click",b);Ag(A,M),s(oc(A))}}),F=f.useMemo(()=>{let b=x.current,M={onKeyDown(I){if(uc(I.nativeEvent,I.currentTarget)&&Xe(I.currentTarget,Le(I.nativeEvent))){var N;Rg(Le(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!b.isPressed&&!I.repeat){b.target=I.currentTarget,b.isPressed=!0,b.pointerType="keyboard",w=S(I,"keyboard");let P=I.currentTarget,_=B=>{uc(B,P)&&!B.repeat&&Xe(P,Le(B))&&b.target&&T(En(b.target,B),"keyboard")};v(Ne(I.currentTarget),"keyup",wn(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&Ur()&&((N=b.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Xe(I.currentTarget,Le(I.nativeEvent)))&&I&&I.button===0&&!b.isTriggeringEvent&&!$n.isOpening){let N=!0;if(a&&I.preventDefault(),!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Yu(I.nativeEvent))){let w=S(I,"virtual"),P=T(I,"virtual"),_=C(I,"virtual");E(I),N=w&&P&&_}else if(b.isPressed&&b.pointerType!=="keyboard"){let w=b.pointerType||I.nativeEvent.pointerType||"virtual",P=T(En(I.currentTarget,I),w),_=C(En(I.currentTarget,I),w,!0);N=P&&_,b.isOverTarget=!1,E(I),k(I)}b.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(b.isPressed&&b.target&&uc(I,b.target)){var w;Rg(Le(I),I.key)&&I.preventDefault();let _=Le(I),B=Xe(b.target,Le(I));C(En(b.target,I),"keyboard",B),B&&V(I,b.target),$(),I.key!=="Enter"&&lc(b.target)&&Xe(b.target,_)&&!I[Fg]&&(I[Fg]=!0,$n(b.target,I,!1)),b.isPressed=!1,(w=b.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=b.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of _.values())(P=b.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(RT(w.nativeEvent)){b.pointerType="virtual";return}b.pointerType=w.pointerType;let P=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=w.pointerId,b.target=w.currentTarget,d||Lg(b.target),P=S(w,b.pointerType);let _=Le(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Ne(w.currentTarget),"pointerup",I,!1),v(Ne(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(Xe(w.currentTarget,Le(w.nativeEvent))&&w.button===0){if(c){let P=Ng(w.target);P&&b.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!Xe(w.currentTarget,Le(w.nativeEvent))||b.pointerType==="virtual"||w.button===0&&!b.isPressed&&T(w,b.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,S(En(b.target,w),b.pointerType))},M.onPointerLeave=w=>{w.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,C(En(b.target,w),b.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===b.activePointerId&&b.isPressed&&w.button===0&&b.target){if(Xe(b.target,Le(w))&&b.pointerType!=null){let P=!1,_=setTimeout(()=>{b.isPressed&&b.target instanceof HTMLElement&&(P?k(w):(lr(b.target),b.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),b.disposables.push(()=>clearTimeout(_))}else k(w);b.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(b.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(b.isPressed=!0,b.isOverTarget=!0,b.target=w.currentTarget,b.pointerType=Yu(w.nativeEvent)?"virtual":"mouse",Bn.flushSync(()=>S(w,b.pointerType))&&w.stopPropagation(),c){let _=Ng(w.target);_&&b.disposables.push(_)}v(Ne(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,P=S(w,b.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,P=C(w,b.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&!b.ignoreEmulatedMouseEvents&&w.button===0&&!b.isPressed&&T(w,b.pointerType||"mouse")};let I=w=>{if(w.button===0){if(b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&b.target.contains(w.target)&&b.pointerType!=null||k(w),b.isOverTarget=!1}};M.onTouchStart=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=v4(w.nativeEvent);if(!P)return;b.activePointerId=P.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=w.currentTarget,b.pointerType="touch",d||Lg(b.target),S(Gr(b.target,w),b.pointerType)&&w.stopPropagation(),v(Rt(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=zg(w.nativeEvent,b.activePointerId),_=!0;P&&Bg(P,w.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,_=S(Gr(b.target,w),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,_=C(Gr(b.target,w),b.pointerType,!1),D(Gr(b.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=zg(w.nativeEvent,b.activePointerId),_=!0;P&&Bg(P,w.currentTarget)&&b.pointerType!=null?(T(Gr(b.target,w),b.pointerType),_=C(Gr(b.target,w),b.pointerType),V(w.nativeEvent,b.target)):b.isOverTarget&&b.pointerType!=null&&(_=C(Gr(b.target,w),b.pointerType,!1)),_&&w.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!d&&sc(b.target),$()},M.onTouchCancel=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&(w.stopPropagation(),b.isPressed&&k(Gr(b.target,w)))};let N=w=>{b.isPressed&&Xe(Le(w),b.target)&&k({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,C,S,T,E,V]);return f.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const b=Ne(h.current);if(!b||!b.head||b.getElementById(Vg))return;const M=b.createElement("style");M.id=Vg,M.textContent=`
397
- @layer {
398
- [${jg}] {
399
- touch-action: pan-x pan-y pinch-zoom;
400
- }
401
- }
402
- `.trim(),b.head.prepend(M)},[h]),f.useEffect(()=>{let b=x.current;return()=>{var M;d||sc((M=b.target)!==null&&M!==void 0?M:void 0);for(let A of b.disposables)A();b.disposables=[]}},[d]),{isPressed:l||g,pressProps:ze(p,F,{[jg]:!0})}}function lc(e){return e.tagName==="A"&&e.hasAttribute("href")}function uc(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Rt(o).HTMLInputElement&&!Kg(o,r)||o instanceof Rt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&lc(o))&&r!=="Enter")}function v4(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function zg(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Gr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function En(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function b4(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function y4(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Bg(e,t){let r=t.getBoundingClientRect(),n=b4(e);return y4(r,n)}function x4(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!lc(e)}function Rg(e,t){return e instanceof HTMLInputElement?!Kg(e,t):x4(e)}const w4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":w4.has(e.type)}let Pn=null,cc=new Set,si=new Map,Sn=!1,dc=!1;const $4={Tab:!0,Escape:!0};function Us(e,t){for(let r of cc)r(e,t)}function E4(e){return!(e.metaKey||!Ur()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hs(e){Sn=!0,E4(e)&&(Pn="keyboard",Us("keyboard",e))}function tr(e){Pn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Sn=!0,Us("pointer",e))}function Wg(e){Yu(e)&&(Sn=!0,Pn="virtual")}function Ug(e){e.target===window||e.target===document||Bs||!e.isTrusted||(!Sn&&!dc&&(Pn="virtual",Us("virtual",e)),Sn=!1,dc=!1)}function Hg(){Bs||(Sn=!1,dc=!0)}function fc(e){if(typeof window>"u"||typeof document>"u"||si.get(Rt(e)))return;const t=Rt(e),r=Ne(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Sn=!0,n.apply(this,arguments)},r.addEventListener("keydown",Hs,!0),r.addEventListener("keyup",Hs,!0),r.addEventListener("click",Wg,!0),t.addEventListener("focus",Ug,!0),t.addEventListener("blur",Hg,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",tr,!0),r.addEventListener("pointermove",tr,!0),r.addEventListener("pointerup",tr,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",tr,!0),r.addEventListener("mousemove",tr,!0),r.addEventListener("mouseup",tr,!0)),t.addEventListener("beforeunload",()=>{Gg(e)},{once:!0}),si.set(t,{focus:n})}const Gg=(e,t)=>{const r=Rt(e),n=Ne(e);t&&n.removeEventListener("DOMContentLoaded",t),si.has(r)&&(r.HTMLElement.prototype.focus=si.get(r).focus,n.removeEventListener("keydown",Hs,!0),n.removeEventListener("keyup",Hs,!0),n.removeEventListener("click",Wg,!0),r.removeEventListener("focus",Ug,!0),r.removeEventListener("blur",Hg,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",tr,!0),n.removeEventListener("pointermove",tr,!0),n.removeEventListener("pointerup",tr,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",tr,!0),n.removeEventListener("mousemove",tr,!0),n.removeEventListener("mouseup",tr,!0)),si.delete(r))};function P4(e){const t=Ne(e);let r;return t.readyState!=="loading"?fc(e):(r=()=>{fc(e)},t.addEventListener("DOMContentLoaded",r)),()=>Gg(e,r)}typeof document<"u"&&P4();function Gs(){return Pn!=="pointer"}function Zs(){return Pn}function pc(e){Pn=e,Us(e,null)}const S4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function C4(e,t,r){let n=Ne(r?.target);const o=typeof window<"u"?Rt(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Rt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Rt(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Rt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!S4.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!$4[r.key])}function T4(e,t,r){fc(),f.useEffect(()=>{let n=(o,i)=>{C4(!!r?.isTextInput,o,i)&&e(Gs())};return cc.add(n),()=>{cc.delete(n)}},t)}function Cn(e){const t=Ne(e),r=It(t);if(Zs()==="virtual"){let n=r;ug(()=>{It(t)===n&&e.isConnected&&lr(e)})}else lr(e)}function Zg(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Og(i),a=f.useCallback(l=>{const c=Ne(l.target),u=c?It(c):It();l.target===l.currentTarget&&u===Le(l.nativeEvent)&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?i:void 0}}}function qg(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function k4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:qg(e.onKeyDown),onKeyUp:qg(e.onKeyUp)}}}let I4=f.createContext(null);function _4(e){let t=f.useContext(I4)||{};fg(t,e);let{ref:r,...n}=t;return n}function hc(e,t){let{focusProps:r}=Zg(e),{keyboardProps:n}=k4(e),o=ze(r,n),i=_4(t),s=e.isDisabled?{}:i,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&Cn(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:ze({...o,tabIndex:l},s)}}function M4({children:e}){let t=f.useMemo(()=>({register:()=>{}}),[]);return f.createElement(ac.Provider,{value:t},e)}function ai(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Fs(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=Og(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const h=Ne(d.target),p=It(h);if(!i.current.isFocusWithin&&p===Le(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let g=d.currentTarget;s(h,"focus",m=>{if(i.current.isFocusWithin&&!Xe(g,m.target)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Ag(x,g);let v=oc(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let qs=!1,Ys=0;function mc(){qs=!0,setTimeout(()=>{qs=!1},50)}function Yg(e){e.pointerType==="touch"&&mc()}function D4(){if(!(typeof document>"u"))return Ys===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Yg):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",mc)),Ys++,()=>{Ys--,!(Ys>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Yg):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",mc))}}function Xs(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(D4,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Fs(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let h=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(Ne(m.target),"pointerover",$=>{a.isHovered&&a.target&&!Xe(a.target,$.target)&&p($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},p=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{qs&&m.pointerType==="mouse"||h(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!qs&&h(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function A4(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=nt(l=>{r&&Js(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=nt(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=Ne(c);if(typeof PointerEvent<"u"){let d=h=>{l.isPointerDown&&Js(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1},h=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",h,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",h,!0)}}},[t,n,s,a])}function Js(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const O4=500;function Xg(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=O4,accessibilityDescription:s}=e;const a=f.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=Fs(),{pressProps:u}=Ir({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Ne(h.target).activeElement!==h.target&&lr(h.target),o&&o({...h,type:"longpress"}),a.current=void 0},i),h.pointerType==="touch")){let p=g=>{g.preventDefault()};l(h.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),d=BT(o&&!t?s:void 0);return{longPressProps:ze(u,d)}}const Jg=f.createContext(null),gc="react-aria-focus-scope-restore";let Ue=null;function N4(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=f.useRef(null),s=f.useRef(null),a=f.useRef([]),{parentNode:l}=f.useContext(Jg)||{},c=f.useMemo(()=>new yc({scopeRef:a}),[a]);We(()=>{let h=l||dt.root;if(dt.getTreeNode(h.scopeRef)&&Ue&&!Qs(Ue,h.scopeRef)){let p=dt.getTreeNode(Ue);p&&(h=p)}h.addChild(c),dt.addNode(c)},[c,l]),We(()=>{let h=dt.getTreeNode(a);h&&(h.contain=!!r)},[r]),We(()=>{var h;let p=(h=i.current)===null||h===void 0?void 0:h.nextSibling,g=[],m=x=>x.stopPropagation();for(;p&&p!==s.current;)g.push(p),p.addEventListener(gc,m),p=p.nextSibling;return a.current=g,()=>{for(let x of g)x.removeEventListener(gc,m)}},[t]),B4(a,n,r),V4(a,r),R4(a,n,r),z4(a,o),f.useEffect(()=>{const h=It(Ne(a.current?a.current[0]:void 0));let p=null;if(rr(h,a.current)){for(let g of dt.traverse())g.scopeRef&&rr(h,g.scopeRef.current)&&(p=g);p===dt.getTreeNode(a)&&(Ue=p.scopeRef)}},[a]),We(()=>()=>{var h,p,g;let m=(g=(p=dt.getTreeNode(a))===null||p===void 0||(h=p.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&g!==void 0?g:null;(a===Ue||Qs(a,Ue))&&(!m||dt.getTreeNode(m))&&(Ue=m),dt.removeTreeNode(a)},[a]);let u=f.useMemo(()=>L4(a),[]),d=f.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return f.createElement(Jg.Provider,{value:d},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function L4(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||It(Ne((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,u=Tn(r),d=mr(u,{tabbable:o,accept:s},r);d.currentNode=rr(l,r)?l:c;let h=d.nextNode();return!h&&i&&(d.currentNode=c,h=d.nextNode()),h&&_r(h,!0),h},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||It(Ne((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,u=Tn(r),d=mr(u,{tabbable:o,accept:s},r);d.currentNode=rr(l,r)?l:c;let h=d.previousNode();return!h&&i&&(d.currentNode=c,h=d.previousNode()),h&&_r(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Tn(r),s=mr(i,{tabbable:n,accept:o},r);s.currentNode=r[0].previousElementSibling;let a=s.nextNode();return a&&_r(a,!0),a},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Tn(r),s=mr(i,{tabbable:n,accept:o},r);s.currentNode=r[r.length-1].nextElementSibling;let a=s.previousNode();return a&&_r(a,!0),a}}}function Tn(e){return e[0].parentElement}function li(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function F4(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ne(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function V4(e,t){let r=f.useRef(void 0),n=f.useRef(void 0);We(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Ne(o?o[0]:void 0);let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!li(e)||c.isComposing)return;let u=It(i),d=e.current;if(!d||!rr(u,d))return;let h=Tn(d),p=mr(h,{tabbable:!0},d);if(!u)return;p.currentNode=u;let g=c.shiftKey?p.previousNode():p.nextNode();g||(p.currentNode=c.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,g=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),g&&_r(g,!0)},a=c=>{(!Ue||Qs(Ue,e))&&rr(Le(c),e.current)?(Ue=e,r.current=Le(c)):li(e)&&!Zr(Le(c),e)?r.current?r.current.focus():Ue&&Ue.current&&vc(Ue.current):li(e)&&(r.current=Le(c))},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=Zs(),d=(u==="virtual"||u===null)&&Wu()&&Ku(),h=It(i);if(!d&&h&&li(e)&&!Zr(h,e)){Ue=e;let g=Le(c);if(g&&g.isConnected){var p;r.current=g,(p=r.current)===null||p===void 0||p.focus()}else Ue.current&&vc(Ue.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",a,!1),o?.forEach(c=>c.addEventListener("focusin",a,!1)),o?.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",a,!1),o?.forEach(c=>c.removeEventListener("focusin",a,!1)),o?.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),We(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Qg(e){return Zr(e)}function rr(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Zr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of dt.traverse(dt.getTreeNode(t)))if(r&&rr(e,r.current))return!0;return!1}function j4(e){return Zr(e,Ue)}function Qs(e,t){var r;let n=(r=dt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function _r(e,t=!1){if(e!=null&&!t)try{Cn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ev(e,t=!0){let r=e[0].previousElementSibling,n=Tn(e),o=mr(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Tn(e),o=mr(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function vc(e,t=!0){_r(ev(e,t))}function z4(e,t){const r=f.useRef(t);f.useEffect(()=>{if(r.current){Ue=e;const n=Ne(e.current?e.current[0]:void 0);!rr(It(n),Ue.current)&&e.current&&vc(e.current)}r.current=!1},[e])}function B4(e,t,r){We(()=>{if(t||r)return;let n=e.current;const o=Ne(n?n[0]:void 0);let i=s=>{let a=Le(s);rr(a,e.current)?Ue=e:Qg(a)||(Ue=null)};return o.addEventListener("focusin",i,!1),n?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,r])}function tv(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function R4(e,t,r){const n=f.useRef(typeof document<"u"?It(Ne(e.current?e.current[0]:void 0)):null);We(()=>{let o=e.current;const i=Ne(o?o[0]:void 0);if(!t||r)return;let s=()=>{(!Ue||Qs(Ue,e))&&rr(It(i),e.current)&&(Ue=e)};return i.addEventListener("focusin",s,!1),o?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,r]),We(()=>{const o=Ne(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!li(e)||s.isComposing)return;let a=o.activeElement;if(!Zr(a,e)||!tv(e))return;let l=dt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=mr(o.body,{tabbable:!0});u.currentNode=a;let d=s.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!d||!Zr(d,e))&&c){u.currentNode=c;do d=s.shiftKey?u.previousNode():u.nextNode();while(Zr(d,e));s.preventDefault(),s.stopPropagation(),d?_r(d,!0):Qg(c)?_r(c,!0):a.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),We(()=>{const o=Ne(e.current?e.current[0]:void 0);if(!t)return;let i=dt.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=n.current)!==null&&s!==void 0?s:void 0,()=>{let a=dt.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,c=It(o);if(t&&l&&(c&&Zr(c,e)||c===o.body&&tv(e))){let u=dt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){rv(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&dt.getTreeNode(d.scopeRef)){let h=ev(d.scopeRef.current,!0);rv(h);return}d=d.parent}}})}}}},[e,t])}function rv(e){e.dispatchEvent(new CustomEvent(gc,{bubbles:!0,cancelable:!0}))&&_r(e)}function mr(e,t,r){let n=t?.tabbable?YT:bg,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=Ne(o),s=xT(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!F4(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:n(a)&&(!r||rr(a,r))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class bc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new yc({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&rr(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new bc;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new yc({scopeRef:null}),this.fastMap.set(null,this.root)}}class yc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let dt=new bc;function So(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Gs()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);T4(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Zg({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=ai({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?h:d}}function nv(e){let t=W4(Ne(e));t!==e&&(t&&K4(t,e),e&&ov(e,t))}function K4(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ov(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function W4(e){let t=It(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function iv(e,t,r){let{type:n}=e,{isOpen:o}=t;f.useEffect(()=>{r&&r.current&&Tg.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let s=Bt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const ui=typeof document<"u"&&window.visualViewport;let ea=0,xc;function wc(e={}){let{isDisabled:t}=e;We(()=>{if(!t)return ea++,ea===1&&(Ls()?xc=H4():xc=U4()),()=>{ea--,ea===0&&xc()}},[t])}function U4(){let e=window.innerWidth-document.documentElement.clientWidth;return wn(e>0&&("scrollbarGutter"in document.documentElement.style?$c(document.documentElement,"scrollbarGutter","stable"):$c(document.documentElement,"paddingRight",`${e}px`)),$c(document.documentElement,"overflow","hidden"))}function H4(){let e,t=!1,r=l=>{let c=l.target;e=wo(c)?c:pg(c,!0),t=!1;let u=c.ownerDocument.defaultView.getSelection();u&&!u.isCollapsed&&u.containsNode(c,!0)&&(t=!0),"selectionStart"in c&&"selectionEnd"in c&&c.selectionStart<c.selectionEnd&&c.ownerDocument.activeElement===c&&(t=!0)},n=document.createElement("style");n.textContent=`
407
+ ${Bs}`;function ag(e){const{col:t,ranges:r,values:n}=$T(e),o=e.operator==="and";if(o&&r)return r.map(i=>({col:t,ranges:[i]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const i=n[0];if(typeof i=="string")return n.map(s=>({col:t,values:[s]}));if(typeof i=="number")return n.map(s=>({col:t,values:[s]}));if(typeof i=="boolean")return n.map(s=>({col:t,values:[s]}))}return[{col:t,ranges:r,values:n}]}function $T({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:Mm(t)}:(r==="integer"||r==="decimal")&&t.every(_m)?{col:e,ranges:t.map(Hr)}:(r==="integer"||r==="decimal")&&t.every(Im)?{col:e,values:t.map(Dm)}:r==="string"?{col:e,values:t}:t.every(cS)?{col:e,values:Mm(t)}:t.every(_m)?{col:e,ranges:t.map(Hr)}:t.every(Im)?{col:e,values:t.map(Dm)}:{col:e,values:t}}function ET({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:i,ranges:s}]=ag({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:Eo.Max,col:t}];case"min":return[{key:`min_${e}`,metric:Eo.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:Eo.Min,col:t},{key:`max_${e}`,metric:Eo.Max,col:t}];case"values":return s?[{key:e,col:t,filter:n,ranges:s}]:i&&i.length>0?[{key:e,col:t,filter:n,include:i}]:[{key:e,col:t,filter:n}]}}class PT{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...ag(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...ET(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:Eo.Cardinality,col:this._groupBy}]:this._aggregations}}}function CT({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n}){const o=new PT;o.limit(r);const i=vo(t,"sorteren");return i&&o.sort(i),t.forEach(s=>{const a=Nm(e,s.id);a&&o.where({col:s.id,values:(Array.isArray(s.value)?s.value:[s.value]).map(l=>String(l)),valueType:a.type})}),n&&o.where({col:"current_provider",values:[n]}),o}function ST({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Arrow Up Down Icon"}),b.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function TT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Broadcast Icon"}),b.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function kT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Calculator Icon"}),b.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function lg({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Chevron Right Icon"}),b.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function ug({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Circle Check Filled Icon"}),b.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function IT({fill:e="currentColor",size:t,height:r,width:n,className:o,style:i,...s}){return b.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:i,...s,children:[b.jsx("title",{children:"Circle X Icon"}),b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m10 10 4 4m0-4-4 4m11-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0"})]})}function _T({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Clock Hour Icon"}),b.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function MT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Device Remote Icon"}),b.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function DT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Device TV Icon"}),b.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function AT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Discount Icon"}),b.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function cg({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Filters Icon"}),b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function NT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Gauge Icon"}),b.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function OT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"Star Icon"}),b.jsx("path",{d:"M12.0001 17.75L5.82808 20.995L7.00708 14.122L2.00708 9.25495L8.90708 8.25495L11.9931 2.00195L15.0791 8.25495L21.9791 9.25495L16.9791 14.122L18.1581 20.995L12.0001 17.75Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[b.jsx("title",{children:"World Icon"}),b.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function dg({filter:e,filterOption:t,onRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>pS(e,t),[e,t]),s=f.useCallback(()=>r(e),[e,r]),a=f.useCallback(l=>{(l.key==="Delete"||l.key==="Backspace")&&(l.preventDefault(),s())},[s]);return b.jsx(ju,{ref:o,onClose:s,onKeyDown:a,variant:"bordered",color:"primary",endContent:b.jsx(IT,{size:20}),tabIndex:0,classNames:n,children:i})}function Qu({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>new Map(t.map(a=>[a.id,a])),[t]),s=f.useCallback(a=>{r(a),setTimeout(()=>{if(!o.current)return;const l=o.current.querySelectorAll('[tabindex="0"]');l.length>0&&l[0].focus()},0)},[r]);return!e||e.length===0||e.every(a=>{const l=i.get(a.id);return!l||l.type==="hidden"})?null:b.jsx("fieldset",{ref:o,className:j("flex flex-wrap gap-2",n?.container),children:e.map(a=>{const l=i.get(a.id);return!l||l.type==="hidden"?null:b.jsx(dg,{filter:a,filterOption:l,onRemove:s,classNames:{base:j("border-primary-600",n?.filterChip?.base),content:j("text-primary-600 font-semibold",n?.filterChip?.content),closeButton:j("stroke-primary-600 opacity-100 hover:stroke-primary-700",n?.filterChip?.closeButton)}},a.id)})})}var[Z8,FT]=Ni({name:"ButtonGroupContext",strict:!1});function fg(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:p,target:h,rel:m,type:g="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:g,disabled:n}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:$,isPressed:C}=Ms({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:S}=wn(e,t);u&&(S.tabIndex=n?-1:S.tabIndex);let T=fo(S,$,yh(e,{labelable:!0}));return{isPressed:C,buttonProps:fo(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var VT=()=>Promise.resolve().then(()=>yi).then(e=>e.default),pg=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:i}=e;return b.jsx(b.Fragment,{children:t.map(s=>{const a=xx(.01*s.size,.2,s.size>100?.75:.5);return b.jsx(hn,{features:VT,children:b.jsx(Uo,{mode:"popLayout",children:b.jsx(mn.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...r})})},s.key)})})};pg.displayName="HeroUI.Ripple";var hg=pg;function mg(e={}){const[t,r]=f.useState([]),n=f.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);r(l=>[...l,{key:yx(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=f.useCallback(i=>{r(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function jT(e){var t,r,n,o,i,s,a,l,c;const u=FT(),d=gt(),p=!!u,{ref:h,as:m,children:g,startContent:x,endContent:v,autoFocus:$,className:C,spinner:S,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:E=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:y=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:P,..._}=e,B=m||"button",L=typeof B=="string",K=zt(h),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=Tn({autoFocus:$}),G=A||T,R=f.useMemo(()=>Ud({size:V,color:F,variant:y,radius:E,fullWidth:D,isDisabled:G,isInGroup:p,disableAnimation:M,isIconOnly:I,className:C}),[V,F,y,E,D,G,p,I,M,C]),{onPress:me,onClear:ue,ripples:Q}=mg(),se=f.useCallback(xe=>{z||G||M||K.current&&me(xe)},[z,G,M,K,me]),{buttonProps:q,isPressed:X}=fg({elementType:m,isDisabled:G,onPress:Or(w,se),onClick:P,..._},K),{isHovered:le,hoverProps:ae}=Sn({isDisabled:G}),oe=f.useCallback((xe={})=>({"data-disabled":pe(G),"data-focus":pe(U),"data-pressed":pe(X),"data-focus-visible":pe(W),"data-hover":pe(le),"data-loading":pe(T),...mt(q,ee,ae,ut(_,{enabled:L}),ut(xe)),className:R}),[T,G,U,X,L,W,le,q,ee,ae,_,R]),be=xe=>f.isValidElement(xe)?f.cloneElement(xe,{"aria-hidden":!0,focusable:!1}):null,Me=be(x),ye=be(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:ue}),[Q,ue]);return{Component:B,children:g,domRef:K,spinner:S,styles:R,startContent:Me,endContent:ye,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:oe,getRippleProps:je,isIconOnly:I}}function zT(e){var t,r;const[n,o]=Bt(e,_i.variantKeys),i=gt(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,p=f.useMemo(()=>_i({...o}),[rn(o)]),h=Ke(c?.base,l),m=u||a,g=f.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[a,m,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":g,className:p.base({class:h}),...d}),[g,p,h,d]);return{label:m,slots:p,classNames:c,variant:s,getSpinnerProps:x}}var gg=Re((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=zT({...e});return i==="wave"||i==="dots"?b.jsxs("div",{ref:t,...s(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>b.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?b.jsxs("div",{ref:t,...s(),children:[b.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?b.jsxs("div",{ref:t,...s(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>b.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):b.jsxs("div",{ref:t,...s(),children:[b.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[b.jsx("i",{className:r.circle1({class:n?.circle1})}),b.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]})});gg.displayName="HeroUI.Spinner";var BT=gg,vg=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:i,spinner:s=b.jsx(BT,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=jT({...e,ref:t});return b.jsxs(r,{ref:n,...p(),children:[l,u&&a==="start"&&s,u&&m?null:o,u&&a==="end"&&s,c,!d&&b.jsx(hg,{...h()})]})});vg.displayName="HeroUI.Button";var ti=vg;function Rs(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function i(){var s;const a=At.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function Rt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}var RT=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function ec(e){return Array.isArray(e)}function KT(e){return ec(e)&&e.length===0}function bg(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ec(e)}function WT(e){return bg(e)&&Object.keys(e).length===0}function In(e){return ec(e)?KT(e):bg(e)?WT(e):e==null||e===""}var he=e=>e?"true":void 0;function yg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=yg(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Pe(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=yg(r))&&(o&&(o+=" "),o+=n);return o}var UT=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t},xg=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function HT(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function GT(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function Zr(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function ZT(e,t,r){return Math.min(Math.max(e,t),r)}var wg={};function $g(e,t,...r){const o=`[Hero UI]${` [${t}]`}: ${e}`;if(!(typeof console>"u")&&!wg[o]&&(wg[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Ks(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Eg=new Map;function qT(e,t){if(e===t)return e;let r=Eg.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Eg.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ve(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ks(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Pe(i,s):o==="id"&&i&&s?t.id=qT(i,s):t[o]=s!==void 0?s:i}}return t}function tc(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=Pg(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():Pg(e[i],null)})}}}function Pg(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var[YT,Ws]=Rs({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Cg=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,bodyId:l,setBodyMounted:c}=Ws(),u=Rt(t),d=r||"div";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),b.jsx(d,{ref:u,className:s.body({class:Pe(a?.body,o)}),id:l,...i,children:n})});Cg.displayName="HeroUI.ModalBody";var XT=Cg,ri={ease:[.36,.66,.4,1]},rc={scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ri.ease}},exit:{opacity:0,transition:{duration:.3,ease:ri.ease}}}},JT={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ri.ease},opacity:{duration:.4,ease:ri.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ri.ease}}};const hr={top:"top",bottom:"top",left:"left",right:"left"},Us={top:"bottom",bottom:"top",left:"right",right:"left"},QT={top:"left",left:"top"},nc={top:"height",left:"width"},Sg={width:"totalWidth",height:"totalHeight"},Hs={};let xt=typeof document<"u"?window.visualViewport:null;function Tg(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=xt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var u;t=(u=xt?.width)!==null&&u!==void 0?u:n;var d;r=(d=xt?.height)!==null&&d!==void 0?d:o,a.top=m.scrollTop||e.scrollTop,a.left=m.scrollLeft||e.scrollLeft,xt&&(i=xt.offsetTop,s=xt.offsetLeft)}else({width:t,height:r,top:i,left:s}=Po(e,!1)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Bi()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var p;i=(p=xt?.pageTop)!==null&&p!==void 0?p:0;var h;s=(h=xt?.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function e4(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function kg(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[nc[e]],u=n.scroll[hr[e]]+i,d=c+n.scroll[hr[e]]-i,p=t-l+s[e]-n[hr[e]],h=t-l+r+s[e]-n[hr[e]];return p<u?u-p:h>d?Math.max(d-h,u-p):0}function t4(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ig(e){if(Hs[e])return Hs[e];let[t,r]=e.split(" "),n=hr[t]||"right",o=QT[n];hr[r]||(r="center");let i=nc[n],s=nc[o];return Hs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},Hs[e]}function oc(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:p,crossAxis:h,size:m,crossSize:g}=n,x={};var v;x[h]=(v=e[h])!==null&&v!==void 0?v:0;var $,C,S,T;d==="center"?x[h]+=((($=e[g])!==null&&$!==void 0?$:0)-((C=r[g])!==null&&C!==void 0?C:0))/2:d!==h&&(x[h]+=((S=e[g])!==null&&S!==void 0?S:0)-((T=r[g])!==null&&T!==void 0?T:0)),x[h]+=i;const k=e[h]-r[g]+l+c,D=e[h]+e[g]-l-c;if(x[h]=Pr(x[h],k,D),u===p){const E=a?s[m]:t[Sg[m]];x[Us[p]]=Math.floor(E-e[p]+o)}else x[p]=Math.floor(e[p]+e[m]+o);return x}function r4(e,t,r,n,o,i,s,a){const l=n?r.height:t[Sg.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,p,h,m,g,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((h=o.bottom)!==null&&h!==void 0?h:0)+i)):Math.max(0,u+s-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((g=o.top)!==null&&g!==void 0?g:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function _g(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[Us[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[Us[a]]-o)}function n4(e,t,r,n,o,i,s,a,l,c,u,d,p,h,m,g){let x=Ig(e),{size:v,crossAxis:$,crossSize:C,placement:S,crossPlacement:T}=x,k=oc(t,a,r,x,u,d,c,p,m,g),D=u,E=_g(a,c,t,o,i+u,x);if(s&&n[v]>E){let R=Ig(`${Us[S]} ${T}`),me=oc(t,a,r,R,u,d,c,p,m,g);_g(a,c,t,o,i+u,R)>E&&(x=R,k=me,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=kg($,k[$],r[C],a,l,i,c);k[$]+=F;let y=r4(k,a,c,p,o,i,r.height,V);h&&h<y&&(y=h),r.height=Math.min(r.height,y),k=oc(t,a,r,x,D,d,c,p,m,g),F=kg($,k[$],r[C],a,l,i,c),k[$]+=F;let M={},A=t[$]-k[$]-o[hr[$]],I=A+.5*t[C];const N=m/2+g;var w,P,_,B;const L=hr[$]==="left"?((w=o.left)!==null&&w!==void 0?w:0)+((P=o.right)!==null&&P!==void 0?P:0):((_=o.top)!==null&&_!==void 0?_:0)+((B=o.bottom)!==null&&B!==void 0?B:0),K=r[C]-L-m/2-g,z=t[$]+m/2-(k[$]+o[hr[$]]),W=t[$]+t[C]-m/2-(k[$]+o[hr[$]]),U=Pr(I,z,W);M[$]=Pr(U,N,K),{placement:S,crossPlacement:T}=x,m?A=M[$]:T==="right"?A+=t[C]:T==="center"&&(A+=t[C]/2);let ee=S==="left"||S==="top"?r[v]:0,G={x:S==="top"||S==="bottom"?A:ee,y:S==="left"||S==="right"?A:ee};return{position:k,maxHeight:y,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:S,triggerAnchorPoint:G}}function o4(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=n instanceof HTMLElement?i4(n):document.documentElement,m=h===document.documentElement;const g=window.getComputedStyle(h).position;let x=!!g&&g!=="static",v=m?Po(r,!1):Mg(r,h,!1);if(!m){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=Po(n,!0),C=t4(n);var S,T;$.width+=((S=C.left)!==null&&S!==void 0?S:0)+((T=C.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=C.top)!==null&&k!==void 0?k:0)+((D=C.bottom)!==null&&D!==void 0?D:0);let E=e4(o),V=Tg(a),F=Tg(h),y=a.tagName==="BODY"?Po(h,!1):Mg(h,a,!1);return h.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),n4(t,v,$,E,C,i,s,V,F,y,l,c,x,u,d,p)}function ic(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Po(e,t){let{top:r,left:n,width:o,height:i}=ic(e,t),{scrollTop:s,scrollLeft:a,clientTop:l,clientLeft:c}=document.documentElement;return{top:r+s-l,left:n+a-c,width:o,height:i}}function Mg(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=ic(e,r);else{o=Po(e,r);let i=Po(t,r),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function i4(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Dg(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Dg(t);)t=t.parentElement;return t||document.documentElement}function Dg(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Ag=new WeakMap;function s4(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||Ag.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}const a4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),l4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function u4(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return a4.has(r.script)}let t=e.split("-")[0];return l4.has(t)}const c4=Symbol.for("react-aria.i18n.locale");function Ng(){let e=typeof window<"u"&&window[c4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:u4(e)?"rtl":"ltr"}}let sc=Ng(),ni=new Set;function Og(){sc=Ng();for(let e of ni)e(sc)}function d4(){let e=Zn(),[t,r]=f.useState(sc);return f.useEffect(()=>(ni.size===0&&window.addEventListener("languagechange",Og),ni.add(r),()=>{ni.delete(r),ni.size===0&&window.removeEventListener("languagechange",Og)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const f4=f.createContext(null);function oi(){let e=d4();return f.useContext(f4)||e}const Lg=new WeakMap;function p4(e){let t=Lg.get(e);return t||(t=new Fi(e),Lg.set(e,t)),t}function h4(e,t){return t&&Fi.getGlobalDictionaryForPackage(t)||p4(e)}function Fg(e,t){let{locale:r}=oi(),n=h4(e,t);return f.useMemo(()=>new Xx(r,n),[r,n])}let ac=new Map;function Vg(e){let{locale:t}=oi(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ac.has(r))return ac.get(r);let n=new Intl.Collator(t,e);return ac.set(r,n),n}let at=typeof document<"u"?window.visualViewport:null;function m4(e){let{direction:t}=oi(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:a="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:m=!0,onClose:g,maxHeight:x,arrowBoundaryOffset:v=0}=e,[$,C]=f.useState(null),S=[h,a,o.current,n.current,i?.current,s.current,l,c,u,d,p,m,t,x,v,r],T=f.useRef(at?.scale);f.useEffect(()=>{m&&(T.current=at?.scale)},[m]);let k=f.useCallback(()=>{if(h===!1||!m||!o.current||!n.current||!u||at?.scale!==T.current)return;let M=null;if(s.current&&s.current.contains(document.activeElement)){var A;let L=(A=document.activeElement)===null||A===void 0?void 0:A.getBoundingClientRect(),K=s.current.getBoundingClientRect();var I;if(M={type:"top",offset:((I=L?.top)!==null&&I!==void 0?I:0)-K.top},M.offset>K.height/2){M.type="bottom";var N;M.offset=((N=L?.bottom)!==null&&N!==void 0?N:0)-K.bottom}}let w=o.current;if(!x&&o.current){var P;w.style.top="0px",w.style.bottom="";var _;w.style.maxHeight=((_=(P=window.visualViewport)===null||P===void 0?void 0:P.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let B=o4({placement:v4(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:s.current||o.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:p,maxHeight:x,arrowSize:r??(i?.current?ic(i.current,!0).width:0),arrowBoundaryOffset:v});if(B.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(B.position).forEach(L=>w.style[L]=B.position[L]+"px"),w.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",M&&document.activeElement&&s.current){let L=document.activeElement.getBoundingClientRect(),K=s.current.getBoundingClientRect(),z=L[M.type]-K[M.type];s.current.scrollTop+=z-M.offset}C(B)}},S);Be(k,S),g4(k),Ri({ref:o,onResize:k}),Ri({ref:n,onResize:k});let D=f.useRef(!1);Be(()=>{let M,A=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},I=()=>{D.current&&A()};return at?.addEventListener("resize",A),at?.addEventListener("scroll",I),()=>{at?.removeEventListener("resize",A),at?.removeEventListener("scroll",I)}},[k]);let E=f.useCallback(()=>{D.current||g?.()},[g,D]);s4({triggerRef:n,isOpen:m,onClose:g&&E});var V,F,y;return{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$?.position,maxHeight:(V=$?.maxHeight)!==null&&V!==void 0?V:"100vh"}},placement:(F=$?.placement)!==null&&F!==void 0?F:null,triggerAnchorPoint:(y=$?.triggerAnchorPoint)!==null&&y!==void 0?y:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$?.arrowOffsetLeft,top:$?.arrowOffsetTop}},updatePosition:k}}function g4(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function v4(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function jg(e,t,r){let{type:n}=e,{isOpen:o}=t;f.useEffect(()=>{r&&r.current&&Ag.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let s=Nt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const ii=typeof document<"u"&&window.visualViewport;let Gs=0,lc;function uc(e={}){let{isDisabled:t}=e;Be(()=>{if(!t)return Gs++,Gs===1&&(zi()?lc=y4():lc=b4()),()=>{Gs--,Gs===0&&lc()}},[t])}function b4(){let e=window.innerWidth-document.documentElement.clientWidth;return on(e>0&&("scrollbarGutter"in document.documentElement.style?cc(document.documentElement,"scrollbarGutter","stable"):cc(document.documentElement,"paddingRight",`${e}px`)),cc(document.documentElement,"overflow","hidden"))}function y4(){let e,t=!1,r=l=>{let c=l.target;e=Xn(c)?c:bf(c,!0),t=!1;let u=c.ownerDocument.defaultView.getSelection();u&&!u.isCollapsed&&u.containsNode(c,!0)&&(t=!0),"selectionStart"in c&&"selectionEnd"in c&&c.selectionStart<c.selectionEnd&&c.ownerDocument.activeElement===c&&(t=!0)},n=document.createElement("style");n.textContent=`
403
408
  @layer {
404
409
  * {
405
410
  overscroll-behavior: contain;
406
411
  }
407
- }`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let c=l.target,u=l.relatedTarget;if(u&&Zu(u))u.focus({preventScroll:!0}),sv(u,Zu(c));else if(!u){var d;let h=(d=c.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");h?.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let c=document.activeElement!=null&&Zu(document.activeElement);s.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&sv(this,c)};let a=wn(Ec(document,"touchstart",r,{passive:!1,capture:!0}),Ec(document,"touchmove",o,{passive:!1,capture:!0}),Ec(document,"blur",i,!0));return()=>{a(),n.remove(),HTMLElement.prototype.focus=s}}function $c(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Ec(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function sv(e,t){t||!ui?av(e):ui.addEventListener("resize",()=>av(e),{once:!0})}function av(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=pg(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let s=o.bottom;ui&&(s=Math.min(s,ui.offsetTop+ui.height));let a=i.top-o.top-((s-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+a)),behavior:"smooth"})}}r=n.parentElement}}const G4=f.createContext({});function Z4(){var e;return(e=f.useContext(G4))!==null&&e!==void 0?e:{}}var lv={};lv={dismiss:"تجاهل"};var uv={};uv={dismiss:"Отхвърляне"};var cv={};cv={dismiss:"Odstranit"};var dv={};dv={dismiss:"Luk"};var fv={};fv={dismiss:"Schließen"};var pv={};pv={dismiss:"Απόρριψη"};var hv={};hv={dismiss:"Dismiss"};var mv={};mv={dismiss:"Descartar"};var gv={};gv={dismiss:"Lõpeta"};var vv={};vv={dismiss:"Hylkää"};var bv={};bv={dismiss:"Rejeter"};var yv={};yv={dismiss:"התעלם"};var xv={};xv={dismiss:"Odbaci"};var wv={};wv={dismiss:"Elutasítás"};var $v={};$v={dismiss:"Ignora"};var Ev={};Ev={dismiss:"閉じる"};var Pv={};Pv={dismiss:"무시"};var Sv={};Sv={dismiss:"Atmesti"};var Cv={};Cv={dismiss:"Nerādīt"};var Tv={};Tv={dismiss:"Lukk"};var kv={};kv={dismiss:"Negeren"};var Iv={};Iv={dismiss:"Zignoruj"};var _v={};_v={dismiss:"Descartar"};var Mv={};Mv={dismiss:"Dispensar"};var Dv={};Dv={dismiss:"Revocare"};var Av={};Av={dismiss:"Пропустить"};var Ov={};Ov={dismiss:"Zrušiť"};var Nv={};Nv={dismiss:"Opusti"};var Lv={};Lv={dismiss:"Odbaci"};var Fv={};Fv={dismiss:"Avvisa"};var Vv={};Vv={dismiss:"Kapat"};var jv={};jv={dismiss:"Скасувати"};var zv={};zv={dismiss:"取消"};var Bv={};Bv={dismiss:"關閉"};var Rv={};Rv={"ar-AE":lv,"bg-BG":uv,"cs-CZ":cv,"da-DK":dv,"de-DE":fv,"el-GR":pv,"en-US":hv,"es-ES":mv,"et-EE":gv,"fi-FI":vv,"fr-FR":bv,"he-IL":yv,"hr-HR":xv,"hu-HU":wv,"it-IT":$v,"ja-JP":Ev,"ko-KR":Pv,"lt-LT":Sv,"lv-LV":Cv,"nb-NO":Tv,"nl-NL":kv,"pl-PL":Iv,"pt-BR":_v,"pt-PT":Mv,"ro-RO":Dv,"ru-RU":Av,"sk-SK":Ov,"sl-SI":Nv,"sr-SP":Lv,"sv-SE":Fv,"tr-TR":Vv,"uk-UA":jv,"zh-CN":zv,"zh-TW":Bv};const Kv={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Wv(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=ai({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...Kv,...t}:Kv,[n]);return{visuallyHiddenProps:{...i,style:s}}}function Uv(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=Wv(e);return f.createElement(r,ze(i,s),t)}function q4(e){return e&&e.__esModule?e.default:e}function ta(e){let{onDismiss:t,...r}=e,n=Mg(q4(Rv),"@react-aria/overlays"),o=Gu(r,n.format("dismiss")),i=()=>{t&&t()};return f.createElement(Uv,null,f.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const Y4=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let ci=new WeakMap,nr=[];function X4(e,t){let r=Rt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n?.root)!==null&&o!==void 0?o:document.body,s=n?.shouldUseInert&&Y4,a=new Set(e),l=new Set,c=m=>s&&m instanceof r.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",u=(m,x)=>{s&&m instanceof r.HTMLElement?m.inert=x:x?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof r.HTMLElement&&(m.inert=!1))},d=m=>{for(let S of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(S);let x=S=>{if(l.has(S)||a.has(S)||S.parentElement&&l.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of a)if(S.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:x}),$=x(m);if($===NodeFilter.FILTER_ACCEPT&&h(m),$!==NodeFilter.FILTER_REJECT){let S=v.nextNode();for(;S!=null;)h(S),S=v.nextNode()}},h=m=>{var x;let v=(x=ci.get(m))!==null&&x!==void 0?x:0;c(m)&&v===0||(v===0&&u(m,!0),l.add(m),ci.set(m,v+1))};nr.length&&nr[nr.length-1].disconnect(),d(i);let p=new MutationObserver(m=>{for(let x of m)if(x.type==="childList"&&![...a,...l].some(v=>v.contains(x.target)))for(let v of x.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&(v.dataset.liveAnnouncer==="true"||v.dataset.reactAriaTopLayer==="true")?a.add(v):v instanceof Element&&d(v)});p.observe(i,{childList:!0,subtree:!0});let g={visibleNodes:a,hiddenNodes:l,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return nr.push(g),()=>{p.disconnect();for(let m of l){let x=ci.get(m);x!=null&&(x===1?(u(m,!1),ci.delete(m)):ci.set(m,x-1))}g===nr[nr.length-1]?(nr.pop(),nr.length&&nr[nr.length-1].observe()):nr.splice(nr.indexOf(g),1)}}const Hv=f.createContext(null);function Gv(e){let t=Hn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=f.useState(!1),s=f.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=Z4();if(!e.portalContainer&&a&&(r=a()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=f.createElement(N4,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=f.createElement(Hv.Provider,{value:s},f.createElement(M4,null,l)),Bn.createPortal(l,r)}function Zv(){let e=f.useContext(Hv),t=e?.setContain;We(()=>{t?.(!0)},[t])}function qv(e,t){let{role:r="dialog"}=e,n=xn();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Cn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Cn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Zv(),{dialogProps:{...Wr(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var gr=typeof document<"u"&&window.visualViewport,J4=f.createContext(!1);function Q4(){return!1}function e5(){return!0}function t5(e){return()=>{}}function r5(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(t5,Q4,e5):f.useContext(J4)}function n5(){let e=r5(),[t,r]=f.useState(()=>e?{width:0,height:0}:Yv());return f.useEffect(()=>{let n=()=>{r(o=>{let i=Yv();return i.width===o.width&&i.height===o.height?o:i})};return gr?gr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{gr?gr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function Yv(){return{width:gr&&gr?.width||window.innerWidth,height:gr&&gr?.height||window.innerHeight}}var Xv=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),Jv=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:i,domRef:s,slots:a,classNames:l,motionProps:c,backdrop:u,closeButton:d,hideCloseButton:h,disableAnimation:p,getDialogProps:g,getBackdropProps:m,getCloseButtonProps:x,onClose:v}=As(),$=t||i||"div",S=n5(),{dialogProps:C}=qv({role:n},s),T=f.isValidElement(d)?f.cloneElement(d,x()):y.jsx("button",{...x(),children:y.jsx(y2,{})}),k=f.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=g(Ve(C,o)),E=y.jsxs($,{...D,onKeyDown:Fu(D.onKeyDown,k),children:[y.jsx(ta,{onDismiss:v}),!h&&T,typeof r=="function"?r(v):r,y.jsx(ta,{onDismiss:v})]}),V=f.useMemo(()=>u==="transparent"?null:p?y.jsx("div",{...m()}):y.jsx(ao,{features:Xv,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:ju.fade,...m()})}),[u,p,m]),F={"--visual-viewport-height":S.height+"px"},b=p?y.jsx("div",{className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:F,children:E}):y.jsx(ao,{features:Xv,children:y.jsx(lo.div,{animate:"enter",className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:fT,...c,style:F,children:E})});return y.jsxs("div",{tabIndex:-1,children:[V,b]})};Jv.displayName="HeroUI.ModalContent";var o5=Jv,Qv=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a}=As(),l=er(t),c=r||"footer";return y.jsx(c,{ref:l,className:s.footer({class:Se(a?.footer,o)}),...i,children:n})});Qv.displayName="HeroUI.ModalFooter";var i5=Qv,eb=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,headerId:l,setHeaderMounted:c}=As(),u=er(t),d=r||"header";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),y.jsx(d,{ref:u,className:s.header({class:Se(a?.header,o)}),id:l,...i,children:n})});eb.displayName="HeroUI.ModalHeader";var s5=eb,vr=[];function tb(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!vr.includes(t))return vr.push(t),()=>{let x=vr.indexOf(t);x>=0&&vr.splice(x,1)}},[i,t]);const c=()=>{vr[vr.length-1]===t&&s&&s()},u=x=>{(!l||l(x.target))&&(vr[vr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),m(t)!=="pressEnd"&&c())},d=x=>{(!l||l(x.target))&&(vr[vr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),c())},h=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),c())};A4({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:p}=ai({isDisabled:!a,onBlurWithin:x=>{!x.relatedTarget||j4(x.relatedTarget)||(!l||l(x.relatedTarget))&&c()}}),g=x=>{x.target===x.currentTarget&&x.preventDefault()};function m(x){const v=x.current;if(!v)return"unknown";const $=(v.getAttribute("role")||"").toLowerCase(),S=v.getAttribute("aria-modal");return($==="dialog"||$==="alertdialog")&&(S===null||S.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes($)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function a5(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=tb({...e,isOpen:t.isOpen,onClose:t.close},r);return wc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),Zv(),f.useEffect(()=>{if(t.isOpen&&r.current)return X4([r.current])},[t.isOpen,r]),{modalProps:ze(n),underlayProps:o}}function rb(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:h,target:p,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:S}=Ir({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:C}=hc(e,t);u&&(C.tabIndex=n?-1:C.tabIndex);let T=ze(C,$,Wr(e,{labelable:!0}));return{isPressed:S,buttonProps:ze(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function ra(e){let[t,r]=jr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=f.useCallback(()=>{r(!0)},[r]),o=f.useCallback(()=>{r(!1)},[r]),i=f.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function l5(e){var t,r,n;const o=gt(),[i,s]=qt(e,Xd.variantKeys),{ref:a,as:l,className:c,classNames:u,isOpen:d,defaultOpen:h,onOpenChange:p,motionProps:g,closeButton:m,isDismissable:x=!0,hideCloseButton:v=!1,shouldBlockScroll:$=!0,portalContainer:S,isKeyboardDismissDisabled:C=!1,onClose:T,...k}=i,D=l||"section",E=er(a),V=f.useRef(null),[F,b]=f.useState(!1),[M,A]=f.useState(!1),I=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,N=f.useId(),w=f.useId(),P=f.useId(),_=ra({isOpen:d,defaultOpen:h,onOpenChange:fe=>{p?.(fe),fe||T?.()}}),{modalProps:B,underlayProps:L}=a5({isDismissable:x,shouldBlockScroll:$,isKeyboardDismissDisabled:C},_,E),{buttonProps:K}=rb({onPress:_.close},V),{isFocusVisible:z,focusProps:W}=So(),U=Se(u?.base,c),ee=f.useMemo(()=>Xd({...s,disableAnimation:I}),[yn(s),I]),Z=(fe={},Q=null)=>{var se;return{ref:Vu(Q,E),...Ve(B,k,fe),className:ee.base({class:Se(U,fe.className)}),id:N,"data-open":ve(_.isOpen),"data-dismissable":ve(x),"aria-modal":ve(!0),"data-placement":(se=e?.placement)!=null?se:"right","aria-labelledby":F?w:void 0,"aria-describedby":M?P:void 0}},R=f.useCallback((fe={})=>({className:ee.backdrop({class:u?.backdrop}),...L,...fe}),[ee,u,L]),he=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":ve(z),className:ee.closeButton({class:u?.closeButton}),...Ve(K,W)});return{Component:D,slots:ee,domRef:E,headerId:w,bodyId:P,motionProps:g,classNames:u,isDismissable:x,closeButton:m,hideCloseButton:v,portalContainer:S,shouldBlockScroll:$,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:_.isOpen,onClose:_.close,disableAnimation:I,setBodyMounted:A,setHeaderMounted:b,getDialogProps:Z,getBackdropProps:R,getCloseButtonProps:he}}var nb=Re((e,t)=>{const{children:r,...n}=e,o=l5({...n,ref:t}),i=y.jsx(Gv,{portalContainer:o.portalContainer,children:r});return y.jsx(cT,{value:o,children:o.disableAnimation&&o.isOpen?i:y.jsx(ss,{children:o.isOpen?i:null})})});nb.displayName="HeroUI.Modal";var u5=nb,kn=globalThis?.document?f.useLayoutEffect:f.useEffect;function c5(e,t=[]){const r=f.useRef(e);return kn(()=>{r.current=e}),f.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function ob({filters:e,activeFilters:t,onFilterChange:r,classNames:n}){const[o,i]=f.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsxs(ti,{className:j("group gap-1 border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-white transition-colors leading-none font-semibold text-base",n?.button),variant:"bordered",color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,onPress:()=>i(!0),startContent:y.jsx(Km,{size:16,className:"stroke-primary-600 group-hover:stroke-white"}),children:["Filters",t.length>0&&` (${t.length})`]}),y.jsx(u5,{isOpen:o,onOpenChange:i,placement:"bottom-center",portalContainer:document.getElementsByClassName("mobielnl-elements")[0],classNames:{backdrop:j(n?.modal?.backdrop),wrapper:j(n?.modal?.wrapper),base:j(n?.modal?.base),header:j("flex items-center gap-1 text-foreground",n?.modal?.header),body:j(n?.modal?.body),footer:j(n?.modal?.footer),closeButton:j("cursor-pointer right-6 top-3.5 text-foreground hover:bg-foreground-50 active:bg-foreground-50",n?.modal?.closeButton)},children:y.jsx(o5,{children:s=>y.jsxs(y.Fragment,{children:[y.jsxs(s5,{children:[y.jsx(Km,{size:20,className:"stroke-foreground"}),"Filters"]}),y.jsx(dT,{children:y.jsx(Ac,{filters:e,activeFilters:t,onFilterChange:r,classNames:n?.filters})}),y.jsx(i5,{children:y.jsx(ti,{className:j("bg-primary-600 text-base font-medium",n?.modal?.primaryButton),color:"primary",variant:"solid",radius:"full",onPress:s,fullWidth:!0,disableAnimation:!0,children:"Toon resultaten"})})]})})})]})}const ib={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},sb={...ib,customError:!0,valid:!1},di={isInvalid:!1,validationDetails:ib,validationErrors:[]},ab=f.createContext({}),lb="__formValidationState"+Date.now();function ub(e){if(e[lb]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[lb];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return d5(e)}function d5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:sb}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=f5(s,o);return cb(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(ab),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Pc(u[F])):Pc(u[n]):[],[u,n]),[h,p]=f.useState(u),[g,m]=f.useState(!1);u!==h&&(p(u),m(!1));let x=f.useMemo(()=>cb(g?[]:d),[g,d]),v=f.useRef(di),[$,S]=f.useState(di),C=f.useRef(di),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;Sc(F,C.current)||(C.current=F,S(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||di,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!Sc($,F)?S(F):v.current=F},resetValidation(){let F=di;Sc(F,C.current)||(C.current=F,S(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function Pc(e){return e?Array.isArray(e)?e:[e]:[]}function f5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Pc(r)}return[]}function cb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:sb}:null}function Sc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}let p5=Math.round(Math.random()*1e10),h5=0;function m5(e){let t=f.useMemo(()=>e.name||`radio-group-${p5}-${++h5}`,[e.name]);var r;let[n,o]=jr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[i]=f.useState(n),[s,a]=f.useState(null),l=ub({...e,value:n}),c=h=>{!e.isReadOnly&&!e.isDisabled&&(o(h),l.commitValidation())},u=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?i:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:c,lastFocusedValue:s,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const db=new WeakMap;function fb(e,t,r){let{validationBehavior:n,focus:o}=e;We(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(v5(r.current))}});let i=f.useRef(!1),s=nt(()=>{i.current||t.resetValidation()}),a=nt(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&b5(d)===r.current){var h;o?o():(h=r.current)===null||h===void 0||h.focus(),pc("keyboard")}c.preventDefault()}),l=nt(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function g5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function v5(e){return{isInvalid:!e.validity.valid,validationDetails:g5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function b5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function y5(e,t,r){let{value:n,children:o,"aria-label":i,"aria-labelledby":s,onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:h}=e;const p=e.isDisabled||t.isDisabled;let g=o!=null,m=i!=null||s!=null;!g&&!m&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let x=t.selectedValue===n,v=N=>{N.stopPropagation(),t.setSelectedValue(n)},{pressProps:$,isPressed:S}=Ir({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:h,isDisabled:p}),{pressProps:C,isPressed:T}=Ir({onPressStart:a,onPressEnd:l,onPressChange:c,onPressUp:d,onClick:h,isDisabled:p,onPress(N){var w;u?.(N),t.setSelectedValue(n),(w=r.current)===null||w===void 0||w.focus()}}),{focusableProps:k}=hc(ze(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=ze($,k),E=Wr(e,{labelable:!0}),V=-1;t.selectedValue!=null?t.selectedValue===n&&(V=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(V=0),p&&(V=void 0);let{name:F,form:b,descriptionId:M,errorMessageId:A,validationBehavior:I}=db.get(t);return vg(r,t.defaultSelectedValue,t.setSelectedValue),fb({validationBehavior:I},t,r),{labelProps:ze(C,f.useMemo(()=>({onClick:N=>N.preventDefault(),onMouseDown:N=>N.preventDefault()}),[])),inputProps:ze(E,{...D,type:"radio",name:F,form:b,tabIndex:V,disabled:p,required:t.isRequired&&I==="native",checked:x,value:n,onChange:v,"aria-describedby":[e["aria-describedby"],t.isInvalid?A:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:p,isSelected:x,isPressed:S||T}}function pb(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Bt(t);let s=Bt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Gu({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function hb(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=pb(e),a=xn([!!t,!!r,n,o]),l=xn([!!t,!!r,n,o]);return s=ze(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function x5(e,t){let{name:r,form:n,isReadOnly:o,isRequired:i,isDisabled:s,orientation:a="vertical",validationBehavior:l="aria"}=e,{direction:c}=ii(),{isInvalid:u,validationErrors:d,validationDetails:h}=t.displayValidation,{labelProps:p,fieldProps:g,descriptionProps:m,errorMessageProps:x}=hb({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),v=Wr(e,{labelable:!0}),{focusWithinProps:$}=ai({onBlurWithin(T){var k;(k=e.onBlur)===null||k===void 0||k.call(e,T),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),S=T=>{let k;switch(T.key){case"ArrowRight":c==="rtl"&&a!=="vertical"?k="prev":k="next";break;case"ArrowLeft":c==="rtl"&&a!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}T.preventDefault();let D=mr(T.currentTarget,{from:T.target,accept:V=>V instanceof Rt(V).HTMLInputElement&&V.type==="radio"}),E;k==="next"?(E=D.nextNode(),E||(D.currentNode=T.currentTarget,E=D.firstChild())):(E=D.previousNode(),E||(D.currentNode=T.currentTarget,E=D.lastChild())),E&&(E.focus(),t.setSelectedValue(E.value))},C=Bt(r);return db.set(t,{name:C,form:n,descriptionId:m.id,errorMessageId:x.id,validationBehavior:l}),{radioGroupProps:ze(v,{role:"radiogroup",onKeyDown:S,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":i||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...g,...$}),labelProps:p,descriptionProps:m,errorMessageProps:x,isInvalid:u,validationErrors:d,validationDetails:h}}var mb=Symbol("default");function w5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Cc(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[mb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||mb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function $5(e,t,r){let n=Cc(r,e.slot)||{},{ref:o,...i}=n,s=w5(f.useMemo(()=>Vu(t,o),[t,o])),a=Ve(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var na=f.createContext(null);f.forwardRef(function(t,r){[t,r]=$5(t,r,na);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Qd({className:s}),[s]);return y.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:y.jsx(na.Provider,{value:{...t,validationBehavior:o},children:y.jsx(ab.Provider,{value:n??{},children:i})})})});function E5(e){var t,r;const n=gt(),{validationBehavior:o}=Cc(na)||{},{as:i,ref:s,classNames:a,children:l,label:c,value:u,name:d,isInvalid:h,validationState:p,validationBehavior:g=(t=o??n?.validationBehavior)!=null?t:"native",size:m="md",color:x="primary",isDisabled:v=!1,disableAnimation:$=(r=n?.disableAnimation)!=null?r:!1,orientation:S="vertical",isRequired:C=!1,isReadOnly:T,errorMessage:k,description:D,className:E,onChange:V,onValueChange:F,...b}=e,M=i||"div",A=typeof M=="string",I=er(s),N=f.useMemo(()=>({...b,value:u,name:d,"aria-label":aT(b["aria-label"],c),isRequired:C,isReadOnly:T,isInvalid:p==="invalid"||h,orientation:S,validationBehavior:g,onChange:F}),[b,u,d,c,C,T,h,p,g,S,F]),w=m5(N),{labelProps:P,radioGroupProps:_,errorMessageProps:B,descriptionProps:L,isInvalid:K,validationErrors:z,validationDetails:W}=x5(N,w),U=N.isInvalid||K||w.isInvalid,ee=f.useMemo(()=>({size:m,color:x,groupState:w,isRequired:C,isInvalid:U,isDisabled:v,disableAnimation:$,onChange:V}),[m,x,C,v,U,V,$,w.name,w.isDisabled,w.isReadOnly,w.isRequired,w.selectedValue,w.lastFocusedValue]),Z=f.useMemo(()=>Ex({isRequired:C,isInvalid:U,disableAnimation:$}),[U,C,$]),R=Se(a?.base,E),he=f.useCallback(()=>({ref:I,className:Z.base({class:R}),...Ve(_,Tt(b,{enabled:A}))}),[I,Z,R,_,b]),fe=f.useCallback(()=>({className:Z.label({class:a?.label}),...P}),[Z,a?.label,P,a?.label]),Q=f.useCallback(()=>({className:Z.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":S}),[Z,a?.wrapper,S,Z.wrapper]),se=f.useCallback((Y={})=>({...Y,...L,className:Z.description({class:Se(a?.description,Y?.className)})}),[Z,a?.description,L,Z.description]),q=f.useCallback((Y={})=>({...Y,...B,className:Z.errorMessage({class:Se(a?.errorMessage,Y?.className)})}),[Z,a?.errorMessage,B]);return{Component:M,children:l,label:c,context:ee,description:D,isInvalid:U,errorMessage:typeof k=="function"?k({isInvalid:U,validationErrors:z,validationDetails:W}):k||z?.join(" "),getGroupProps:he,getLabelProps:fe,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[P5,S5]=Nu({name:"RadioGroupContext",strict:!1}),gb=Re((e,t)=>{const{Component:r,children:n,label:o,context:i,description:s,isInvalid:a,errorMessage:l,getGroupProps:c,getLabelProps:u,getWrapperProps:d,getDescriptionProps:h,getErrorMessageProps:p}=E5({...e,ref:t});return y.jsxs(r,{...c(),children:[o&&y.jsx("span",{...u(),children:o}),y.jsx("div",{...d(),children:y.jsx(P5,{value:i,children:n})}),a&&l?y.jsx("div",{...p(),children:l}):s?y.jsx("div",{...h(),children:s}):null]})});gb.displayName="HeroUI.RadioGroup";var C5=gb;function T5(e){var t,r,n,o,i;const s=gt(),a=S5(),{as:l,ref:c,classNames:u,id:d,value:h,children:p,description:g,size:m=(t=a?.size)!=null?t:"md",color:x=(r=a?.color)!=null?r:"primary",isDisabled:v=(n=a?.isDisabled)!=null?n:!1,disableAnimation:$=(i=(o=a?.disableAnimation)!=null?o:s?.disableAnimation)!=null?i:!1,onChange:S=a?.onChange,autoFocus:C=!1,className:T,...k}=e;a&&nT&&("checked"in k&&rg('Remove props "checked" if in the Radio.Group.',"Radio"),h===void 0&&rg('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",E=er(c),V=f.useRef(null),F=f.useId(),b=f.useId(),M=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),A=a.isInvalid,I=f.useMemo(()=>{const ae=[k["aria-describedby"],b].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:v,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||F,"aria-describedby":ae}},[d,v,M,g,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],b]),{inputProps:N,isDisabled:w,isSelected:P,isPressed:_}=y5({value:h,children:typeof p=="function"?!0:p,...I},a.groupState,V),{focusProps:B,isFocused:L,isFocusVisible:K}=So({autoFocus:C}),z=w||N.readOnly,{hoverProps:W,isHovered:U}=Xs({isDisabled:z}),ee=z?!1:_,Z=f.useMemo(()=>$x({color:x,size:m,isInvalid:A,isDisabled:w,disableAnimation:$}),[x,m,w,A,$]),R=Se(u?.base,T),he=f.useCallback((ae={})=>({...ae,ref:E,className:Z.base({class:R}),"data-disabled":ve(w),"data-focus":ve(L),"data-focus-visible":ve(K),"data-selected":ve(P),"data-invalid":ve(A),"data-hover":ve(U),"data-pressed":ve(ee),"data-hover-unselected":ve(U&&!P),"data-readonly":ve(N.readOnly),"aria-required":ve(M),...Ve(W,k)}),[Z,R,E,w,L,K,P,A,U,ee,N.readOnly,M,k]),fe=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:Se(Z.wrapper({class:Se(u?.wrapper,ae.className)}))}),[Z,u?.wrapper]),Q=f.useCallback((ae={})=>({ref:V,...Ve(ae,N,B),className:Z.hiddenInput({class:u?.hiddenInput}),onChange:Fu(N.onChange,S)}),[N,B,S]),se=f.useCallback((ae={})=>({...ae,id:F,className:Z.label({class:u?.label})}),[Z,u?.label,w,P,A]),q=f.useCallback((ae={})=>({...ae,className:Z.labelWrapper({class:u?.labelWrapper})}),[Z,u?.labelWrapper]),Y=f.useCallback((ae={})=>({...ae,className:Z.control({class:u?.control})}),[Z,u?.control]),de=f.useCallback((ae={})=>({...ae,id:b,className:Z.description({class:u?.description})}),[Z,u?.description]);return{Component:D,children:p,isSelected:P,isDisabled:w,isInvalid:A,isFocusVisible:K,description:g,getBaseProps:he,getWrapperProps:fe,getInputProps:Q,getLabelProps:se,getLabelWrapperProps:q,getControlProps:Y,getDescriptionProps:de}}var vb=Re((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:i,getWrapperProps:s,getInputProps:a,getLabelProps:l,getLabelWrapperProps:c,getControlProps:u,getDescriptionProps:d}=T5({...e,ref:t});return y.jsxs(r,{...i(),children:[y.jsx("input",{...a()}),y.jsx("span",{...s(),children:y.jsx("span",{...u()})}),y.jsxs("div",{...c(),children:[n&&y.jsx("span",{...l(),children:n}),o&&y.jsx("span",{...d(),children:o})]})]})});vb.displayName="HeroUI.Radio";var k5=vb;function bb({id:e,options:t,value:r,onChange:n,classNames:o}){return y.jsx(C5,{size:"sm",value:r?r.toString():void 0,onValueChange:n,classNames:{base:j(o?.radioGroup?.base),wrapper:j(o?.radioGroup?.wrapper),label:j(o?.radioGroup?.label),description:j(o?.radioGroup?.description),errorMessage:j(o?.radioGroup?.errorMessage)},children:t.map(i=>y.jsx(k5,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.radio?.base),wrapper:j("border-1 border-default-200 bg-white group-data-[selected=true]:border-primary-600 group-data-[selected=true]:bg-primary-600",o?.radio?.wrapper),hiddenInput:j(o?.radio?.hiddenInput),labelWrapper:j(o?.radio?.labelWrapper),label:j("text-sm",o?.radio?.label),control:j("bg-white",o?.radio?.control),description:j(o?.radio?.description)},children:i},`${e}-${i}`))})}const Tc=new WeakMap;function kc(e,t){let r=Tc.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function Ic(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Bt(t);let s=Bt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Gu({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function yb(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=Ic(e),a=xn([!!t,!!r,n,o]),l=xn([!!t,!!r,n,o]);return s=ze(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function I5(e,t,r){let{labelProps:n,fieldProps:o}=Ic(e),i=e.orientation==="vertical";var s;Tc.set(t,{id:(s=n.id)!==null&&s!==void 0?s:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Fo(),{addGlobalListener:l,removeGlobalListener:c}=Yn();const u=f.useRef(null),d=a==="rtl",h=f.useRef(null),{moveProps:p}=tm({onMoveStart(){h.current=null},onMove({deltaX:v,deltaY:$}){if(!r.current)return;let{height:S,width:C}=r.current.getBoundingClientRect(),T=i?S:C;h.current==null&&u.current!=null&&(h.current=t.getThumbPercent(u.current)*T);let k=i?$:v;if((i||d)&&(k=-k),h.current+=k,u.current!=null&&r.current){const D=Pr(h.current/T,0,1);t.setThumbPercent(u.current,D)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let g=f.useRef(void 0),m=(v,$,S,C)=>{if(r.current&&!e.isDisabled&&t.values.every((T,k)=>!t.isThumbDragging(k))){let{height:T,width:k,top:D,left:E}=r.current.getBoundingClientRect(),V=i?T:k,A=((i?C:S)-(i?D:E))/V;(a==="rtl"||i)&&(A=1-A);let I=t.getPercentValue(A),N,w=t.values.findIndex(P=>I-P<0);if(w===0)N=w;else if(w===-1)N=t.values.length-1;else{let P=t.values[w-1],_=t.values[w];Math.abs(P-I)<Math.abs(_-I)?N=w-1:N=w}N>=0&&t.isThumbEditable(N)?(v.preventDefault(),u.current=N,t.setFocusedThumb(N),g.current=$,t.setThumbDragging(u.current,!0),t.setThumbValue(N,I),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):u.current=null}},x=v=>{var $,S;((S=v.pointerId)!==null&&S!==void 0?S:($=v.changedTouches)===null||$===void 0?void 0:$[0].identifier)===g.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",x,!1),c(window,"touchend",x,!1),c(window,"pointerup",x,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var v;(v=document.getElementById(kc(t,0)))===null||v===void 0||v.focus(),qS("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:kt({onMouseDown(v){v.button!==0||v.altKey||v.ctrlKey||v.metaKey||m(v,void 0,v.clientX,v.clientY)},onPointerDown(v){v.pointerType==="mouse"&&(v.button!==0||v.altKey||v.ctrlKey||v.metaKey)||m(v,v.pointerId,v.clientX,v.clientY)},onTouchStart(v){m(v,v.changedTouches[0].identifier,v.changedTouches[0].clientX,v.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((v,$)=>kc(t,$)).join(" "),"aria-live":"off"}}}function _5(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:i,trackRef:s,inputRef:a,orientation:l=t.orientation,name:c,form:u}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Fo(),{addGlobalListener:g,removeGlobalListener:m}=Yn(),x=Tc.get(t);var v;const{labelProps:$,fieldProps:S}=Ic({...e,id:kc(t,r),"aria-labelledby":`${x.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),C=t.values[r],T=f.useCallback(()=>{a.current&&sn(a.current)},[a]),k=t.focusedThumb===r;f.useEffect(()=>{k&&T()},[k,T]);let D=p==="rtl",E=f.useRef(null),{keyboardProps:V}=Qh({onKeyDown(P){let{getThumbMaxValue:_,getThumbMinValue:B,decrementThumb:L,incrementThumb:K,setThumbValue:z,setThumbDragging:W,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(P.key)){P.continuePropagation();return}switch(P.preventDefault(),W(r,!0),P.key){case"PageUp":K(r,U);break;case"PageDown":L(r,U);break;case"Home":z(r,B(r));break;case"End":z(r,_(r));break}W(r,!1)}}),{moveProps:F}=tm({onMoveStart(){E.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:P,deltaY:_,pointerType:B,shiftKey:L}){const{getThumbPercent:K,setThumbPercent:z,decrementThumb:W,incrementThumb:U,step:ee,pageSize:Z}=t;if(!s.current)return;let{width:R,height:he}=s.current.getBoundingClientRect(),fe=h?he:R;if(E.current==null&&(E.current=K(r)*fe),B==="keyboard")P>0&&D||P<0&&!D||_>0?W(r,L?Z:ee):U(r,L?Z:ee);else{let Q=h?_:P;(h||D)&&(Q=-Q),E.current+=Q,z(r,Pr(E.current/fe,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:b}=ws(kt(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),a);let M=f.useRef(void 0),A=P=>{T(),M.current=P,t.setThumbDragging(r,!0),g(window,"mouseup",I,!1),g(window,"touchend",I,!1),g(window,"pointerup",I,!1)},I=P=>{var _,B;((B=P.pointerId)!==null&&B!==void 0?B:(_=P.changedTouches)===null||_===void 0?void 0:_[0].identifier)===M.current&&(T(),t.setThumbDragging(r,!1),m(window,"mouseup",I,!1),m(window,"touchend",I,!1),m(window,"pointerup",I,!1))},N=t.getThumbPercent(r);(h||p==="rtl")&&(N=1-N);let w=d?{}:kt(V,F,{onMouseDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A()},onPointerDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A(P.pointerId)},onTouchStart:P=>{A(P.changedTouches[0].identifier)}});return _f(a,t.defaultValues[r],P=>{t.setThumbValue(r,P)}),{inputProps:kt(b,S,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:C,name:c,form:u,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:P=>{t.setThumbValue(r,parseFloat(P.target.value))}}),thumbProps:{...w,style:{position:"absolute",[h?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function M5(e){const{ref:t,as:r,state:n,index:o,name:i,trackRef:s,className:a,tooltipProps:l,isVertical:c,showTooltip:u,getTooltipValue:d,formatOptions:h,renderThumb:p,...g}=e,m=r||"div",x=zt(t),v=f.useRef(null),$=Of(h),{thumbProps:S,inputProps:C,isDragging:T,isFocused:k}=_5({index:o,trackRef:s,inputRef:v,name:i,...g},n),{hoverProps:D,isHovered:E}=Tr({isDisabled:n.isDisabled}),{focusProps:V,isFocusVisible:F}=gn(),{pressProps:b,isPressed:M}=qo({isDisabled:n.isDisabled});return{Component:m,index:o,showTooltip:u,renderThumb:p,getThumbProps:(w={})=>({ref:x,"data-slot":"thumb","data-hover":pe(E),"data-pressed":pe(M),"data-dragging":pe(T),"data-focused":pe(k),"data-focus-visible":pe(F),"aria-label":w["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...ht(S,b,D,g),className:a,...w}),getTooltipProps:()=>{const w=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],P=$&&typeof w=="number"?$.format(w):w;return{...l,placement:l?.placement?l?.placement:c?"right":"top",content:l?.content?l?.content:P,updatePositionDeps:[T,E,k,F,P],isOpen:l?.isOpen!==void 0?l?.isOpen:E||T||k||F,role:"tooltip","aria-label":`Current value: ${P}`}},getInputProps:(w={})=>({ref:v,...ht(C,V),...w})}}const D5=1500,xb=500;let In={},A5=0,fi=!1,Mr=null,_n=null;function O5(e={}){let{delay:t=D5,closeDelay:r=xb}=e,{isOpen:n,open:o,close:i}=ra(e),s=f.useMemo(()=>`${++A5}`,[]),a=f.useRef(null),l=f.useRef(i),c=()=>{In[s]=h},u=()=>{for(let g in In)g!==s&&(In[g](!0),delete In[g])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,u(),c(),fi=!0,o(),Mr&&(clearTimeout(Mr),Mr=null),_n&&(clearTimeout(_n),_n=null)},h=g=>{g||r<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},r)),Mr&&(clearTimeout(Mr),Mr=null),fi&&(_n&&clearTimeout(_n),_n=setTimeout(()=>{delete In[s],_n=null,fi=!1},Math.max(xb,r)))},p=()=>{u(),c(),!n&&!Mr&&!fi?Mr=setTimeout(()=>{Mr=null,fi=!0,d()},t):n||d()};return f.useEffect(()=>{l.current=i},[i]),f.useEffect(()=>()=>{a.current&&clearTimeout(a.current),In[s]&&delete In[s]},[s]),{isOpen:n,open:g=>{!g&&t>0&&!a.current?p():d()},close:h}}function N5(e,t){let r=Ri(e,{labelable:!0}),{hoverProps:n}=Tr({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:kt(r,n,{role:"tooltip"})}}function L5(e,t,r){let{isDisabled:n,trigger:o}=e,i=vw(),s=f.useRef(!1),a=f.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},c=v=>{!s.current&&!a.current&&t.close(v)};f.useEffect(()=>{let v=$=>{r&&r.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[r,t]);let u=()=>{o!=="focus"&&(Yh()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,c())},h=()=>{a.current=!1,s.current=!1,c(!0)},p=()=>{vu()&&(a.current=!0,l())},g=()=>{a.current=!1,s.current=!1,c(!0)},{hoverProps:m}=Tr({isDisabled:n,onHoverStart:u,onHoverEnd:d}),{focusableProps:x}=ws({isDisabled:n,onFocus:p,onBlur:g},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...kt(x,m,{onPointerDown:h,onKeyDown:h,tabIndex:void 0})},tooltipProps:{id:i}}}var F5=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},V5=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],wb=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},br=[];function j5(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!br.includes(t))return br.push(t),()=>{let m=br.indexOf(t);m>=0&&br.splice(m,1)}},[i,t]);const c=()=>{br[br.length-1]===t&&s&&s()},u=m=>{(!l||l(m.target))&&(br[br.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},d=m=>{(!l||l(m.target))&&(br[br.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},h=m=>{m.key==="Escape"&&!o&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),c())};n2({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:p}=Xo({isDisabled:!a,onBlurWithin:m=>{!m.relatedTarget||s2(m.relatedTarget)||(!l||l(m.relatedTarget))&&c()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function z5(e){var t,r;const n=gt(),[o,i]=qt(e,Ni.variantKeys),{ref:s,as:a,isOpen:l,content:c,children:u,defaultOpen:d,onOpenChange:h,isDisabled:p,trigger:g,shouldFlip:m=!0,containerPadding:x=12,placement:v="top",delay:$=0,closeDelay:S=500,showArrow:C=!1,offset:T=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:E=!0,portalContainer:V,isKeyboardDismissDisabled:F=!1,updatePositionDeps:b=[],shouldCloseOnInteractOutside:M,className:A,onClose:I,motionProps:N,classNames:w,...P}=o,_=a||"div",B=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,L=O5({delay:$,closeDelay:S,isDisabled:p,defaultOpen:d,isOpen:l,onOpenChange:ie=>{h?.(ie),ie||I?.()}}),K=f.useRef(null),z=f.useRef(null),W=f.useId(),U=L.isOpen&&!p;f.useImperativeHandle(s,()=>Kx(z));const{triggerProps:ee,tooltipProps:Z}=L5({isDisabled:p,trigger:g},L,K),{tooltipProps:R}=N5({isOpen:U,...ht(o,Z)},L),{overlayProps:he,placement:fe,updatePosition:Q}=NS({isOpen:U,targetRef:K,placement:V5(v),overlayRef:z,offset:C?T+3:T,crossOffset:k,shouldFlip:m,containerPadding:x});kn(()=>{b.length&&Q()},b);const{overlayProps:se}=j5({isOpen:U,onClose:L.close,isDismissable:D,shouldCloseOnBlur:E,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:M},z),q=f.useMemo(()=>{var ie,we,De;return Ni({...i,disableAnimation:B,radius:(ie=e?.radius)!=null?ie:"md",size:(we=e?.size)!=null?we:"md",shadow:(De=e?.shadow)!=null?De:"sm"})},[rn(i),B,e?.radius,e?.size,e?.shadow]),Y=f.useCallback((ie={},we=null)=>({...ht(ee,ie),ref:cf(we,K),"aria-describedby":U?W:void 0}),[ee,U,W,L]),de=f.useCallback(()=>({ref:z,"data-slot":"base","data-open":pe(U),"data-arrow":pe(C),"data-disabled":pe(p),"data-placement":wb(fe||"top",v),...ht(R,se,P),style:ht(he.style,P.style,o.style),className:q.base({class:w?.base}),id:W}),[q,U,C,p,fe,v,R,se,P,he,o,W]),ae=f.useCallback(()=>({"data-slot":"content","data-open":pe(U),"data-arrow":pe(C),"data-disabled":pe(p),"data-placement":wb(fe||"top",v),className:q.content({class:Be(w?.content,A)})}),[q,U,C,p,fe,v,w]);return{Component:_,content:c,children:u,isOpen:U,triggerRef:K,showArrow:C,portalContainer:V,placement:v,disableAnimation:B,isDisabled:p,motionProps:N,getTooltipContentProps:ae,getTriggerProps:Y,getTooltipProps:de}}var B5={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}}},R5=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),$b=Re((e,t)=>{var r;const{Component:n,children:o,content:i,isOpen:s,portalContainer:a,placement:l,disableAnimation:c,motionProps:u,getTriggerProps:d,getTooltipProps:h,getTooltipContentProps:p}=z5({...e,ref:t});let g;try{if(f.Children.count(o)!==1)throw new Error;if(!f.isValidElement(o))g=y.jsx("p",{...d(),children:o});else{const T=o,k=(r=T.props.ref)!=null?r:T.ref;g=f.cloneElement(T,d(T.props,k))}}catch{g=y.jsx("span",{}),Fi("Tooltip must have only one child node. Please, check your code.")}const{ref:m,id:x,style:v,...$}=h(),S=y.jsx("div",{ref:m,id:x,style:v,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:B5.scaleSpring,...ht(u,$),style:{...F5(l)},children:y.jsx(n,{...p(),children:i})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return y.jsxs(y.Fragment,{children:[g,c?s&&y.jsx(im,{portalContainer:a,children:y.jsx("div",{ref:m,id:x,style:v,...$,children:y.jsx(n,{...p(),children:i})})}):y.jsx(ao,{features:R5,children:y.jsx(ss,{children:s&&y.jsx(im,{portalContainer:a,children:S})})})]})});$b.displayName="HeroUI.Tooltip";var K5=$b,Eb=Re((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:i,getTooltipProps:s,getThumbProps:a,getInputProps:l}=M5({...e,ref:t}),c={...a(),index:n,children:y.jsx(m2,{children:y.jsx("input",{...l()})})},u=Xa({Component:r,props:c,renderCustom:o});return i?y.jsx(K5,{...s(),children:u}):u});Eb.displayName="HeroUI.SliderThumb";var W5=Eb;const U5=0,H5=100,G5=1;function Z5(e){const{isDisabled:t=!1,minValue:r=U5,maxValue:n=H5,numberFormatter:o,step:i=G5,orientation:s="horizontal"}=e;let a=f.useMemo(()=>{let z=(n-r)/10;return z=Bo(z,0,z+i,i),Math.max(z,i)},[i,n,r]),l=f.useCallback(z=>z?.map((W,U)=>{let ee=U===0?r:z[U-1],Z=U===z.length-1?n:z[U+1];return Bo(W,ee,Z,i)}),[r,n,i]),c=f.useMemo(()=>l(Sb(e.value)),[e.value,l]),u=f.useMemo(()=>{var z;return l((z=Sb(e.defaultValue))!==null&&z!==void 0?z:[r])},[e.defaultValue,r,l]),d=Cb(e.value,e.defaultValue,e.onChange),h=Cb(e.value,e.defaultValue,e.onChangeEnd);const[p,g]=jr(c,u,d);let[m]=f.useState(p);const[x,v]=f.useState(new Array(p.length).fill(!1)),$=f.useRef(new Array(p.length).fill(!0)),[S,C]=f.useState(void 0),T=f.useRef(p),k=f.useRef(x);let D=z=>{T.current=z,g(z)},E=z=>{k.current=z,v(z)};function V(z){return(z-r)/(n-r)}function F(z){return z===0?r:p[z-1]}function b(z){return z===p.length-1?n:p[z+1]}function M(z){return $.current[z]}function A(z,W){$.current[z]=W}function I(z,W){if(t||!M(z))return;const U=F(z),ee=b(z);W=Bo(W,U,ee,i);let Z=Pb(T.current,z,W);D(Z)}function N(z,W){if(t||!M(z))return;W&&(T.current=p);const U=k.current[z];k.current=Pb(k.current,z,W),E(k.current),h&&U&&!k.current.some(Boolean)&&h(T.current)}function w(z){return o.format(z)}function P(z,W){I(z,B(W))}function _(z){return Math.round((z-r)/i)*i+r}function B(z){const W=z*(n-r)+r;return Pr(_(W),r,n)}function L(z,W=1){let U=Math.max(W,i);I(z,Bo(p[z]+U,r,n,i))}function K(z,W=1){let U=Math.max(W,i);I(z,Bo(p[z]-U,r,n,i))}return{values:p,defaultValues:e.defaultValue!==void 0?u:m,getThumbValue:z=>p[z],setThumbValue:I,setThumbPercent:P,isThumbDragging:z=>x[z],setThumbDragging:N,focusedThumb:S,setFocusedThumb:C,getThumbPercent:z=>V(p[z]),getValuePercent:V,getThumbValueLabel:z=>w(p[z]),getFormattedValue:w,getThumbMinValue:F,getThumbMaxValue:b,getPercentValue:B,isThumbEditable:M,setThumbEditable:A,incrementThumb:L,decrementThumb:K,step:i,pageSize:a,orientation:s,isDisabled:t}}function Pb(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function Sb(e){if(e!=null)return Array.isArray(e)?e:[e]}function Cb(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function q5(e){var t,r,n,o;const i=gt(),[s,a]=qt(e,Za.variantKeys),{ref:l,as:c,name:u,label:d,formatOptions:h,value:p,maxValue:g=100,minValue:m=0,step:x=1,showSteps:v=!1,showTooltip:$=!1,orientation:S="horizontal",marks:C=[],startContent:T,endContent:k,fillOffset:D,className:E,classNames:V,renderThumb:F,renderLabel:b,renderValue:M,onChange:A,onChangeEnd:I,getValue:N,getTooltipValue:w,tooltipValueFormatOptions:P=h,tooltipProps:_={},...B}=s,L=m===g;L&&Fi("Min and max values should not be the same. This may cause unexpected behavior.");const K=c||"div",z=typeof K=="string",W=(r=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,U=zt(l),ee=f.useRef(null),Z=Of(h),{direction:R}=Fo(),he=f.useCallback(Pe=>Math.min(Math.max(Pe,m),g),[m,g]),fe=f.useMemo(()=>{if(L)return m;if(p!==void 0)return Array.isArray(p)?p.map(he):he(p)},[p,he,L,m]),Q=Z5({...B,value:fe,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:S,step:x,minValue:m,maxValue:g,numberFormatter:Z,onChange:A,onChangeEnd:I}),se={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Za.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,..._},{groupProps:q,trackProps:Y,labelProps:de,outputProps:ae}=I5(e,Q,ee),{isHovered:ie,hoverProps:we}=Tr({isDisabled:e.isDisabled}),De=Be(V?.base,E),xe=S==="vertical",te=C?.length>0,je=D===void 0?Q.values.length===1:!1,Ee=f.useMemo(()=>Za({...a,hasMarks:te,disableAnimation:W,hasSingleThumb:je,isVertical:xe}),[rn(a),xe,W,je,te]),[Ke,lt]=[Q.values.length>1?Q.getThumbPercent(0):D!==void 0?Q.getValuePercent(D):0,Q.getThumbPercent(Q.values.length-1)].sort(),Te=Q.values.length===1?Z.format(Q.values[0]):Z.formatRange(Q.values[0],Q.values[Q.values.length-1]),Ge=v?Math.floor((g-m)/x)+1:0;return{Component:K,state:Q,value:Te,domRef:U,label:d,steps:Ge,marks:C,startContent:T,endContent:k,getStepProps:Pe=>{const Fe=Q.getValuePercent(Pe*x+m);return{className:Ee.step({class:V?.step}),"data-slot":"step","data-in-range":Fe<=lt&&Fe>=Ke,style:{[xe?"bottom":R==="rtl"?"right":"left"]:`${Fe*100}%`}}},getBaseProps:(Pe={})=>({ref:U,"data-orientation":Q.orientation,"data-slot":"base","data-hover":ie,className:Ee.base({class:De}),...ht(q,we,Tt(B,{enabled:z}),Tt(Pe))}),getValue:N,renderLabel:b,renderValue:M,getTrackWrapperProps:(Pe={})=>({"data-slot":"track-wrapper",className:Ee.trackWrapper({class:V?.trackWrapper}),...Pe}),getLabelWrapperProps:(Pe={})=>({className:Ee.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...Pe}),getLabelProps:(Pe={})=>({"data-slot":"label",className:Ee.label({class:V?.label}),children:d,...de,...Pe}),getValueProps:(Pe={})=>({"data-slot":"value",className:Ee.value({class:V?.value}),children:N&&typeof N=="function"?N(Q.values):Te,...ae,...Pe}),getTrackProps:(Pe={})=>{const Fe=(lt-Ke)*100;return{ref:ee,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":xe,...je?{"data-fill-start":Fe>0,"data-fill-end":Fe==100}:{"data-fill-start":Ke==0,"data-fill-end":Ke*100+Fe==100},className:Ee.track({class:V?.track}),...Y,...Pe}},getFillerProps:(Pe={})=>({"data-slot":"filler",className:Ee.filler({class:V?.filler}),...Pe,style:{...Pe.style,[xe?"bottom":R==="rtl"?"right":"left"]:`${Ke*100}%`,...xe?{height:`${(lt-Ke)*100}%`}:{width:`${(lt-Ke)*100}%`}}}),getThumbProps:Pe=>({name:u,index:Pe,state:Q,trackRef:ee,orientation:S,isVertical:xe,tooltipProps:se,getTooltipValue:w,showTooltip:$,renderThumb:F,formatOptions:P,className:Ee.thumb({class:V?.thumb})}),getMarkProps:Pe=>{const Fe=Q.getValuePercent(Pe.value);return{className:Ee.mark({class:V?.mark}),"data-slot":"mark","data-in-range":Fe<=lt&&Fe>=Ke,style:{[xe?"bottom":R==="rtl"?"right":"left"]:`${Fe*100}%`},onMouseDown:At=>At.stopPropagation(),onPointerDown:At=>At.stopPropagation(),onClick:At=>{if(At.stopPropagation(),!L)if(Q.values.length===1)Q.setThumbPercent(0,Fe);else{const wt=Q.values[0],ir=Q.values[1];Pe.value<wt?Q.setThumbPercent(0,Fe):Pe.value>ir?Q.setThumbPercent(1,Fe):Math.abs(Pe.value-wt)<Math.abs(Pe.value-ir)?Q.setThumbPercent(0,Fe):Q.setThumbPercent(1,Fe)}}}},getStartContentProps:(Pe={})=>({"data-slot":"startContent",className:Ee.startContent({class:V?.startContent}),...Pe}),getEndContentProps:(Pe={})=>({"data-slot":"endContent",className:Ee.endContent({class:V?.endContent}),...Pe})}}var Tb=Re((e,t)=>{const{Component:r,state:n,label:o,steps:i,marks:s,startContent:a,endContent:l,getStepProps:c,getBaseProps:u,renderValue:d,renderLabel:h,getTrackWrapperProps:p,getLabelWrapperProps:g,getLabelProps:m,getValueProps:x,getTrackProps:v,getFillerProps:$,getThumbProps:S,getMarkProps:C,getStartContentProps:T,getEndContentProps:k}=q5({...e,ref:t});return y.jsxs(r,{...u(),children:[o&&y.jsxs("div",{...g(),children:[Xa({Component:"label",props:m(),renderCustom:h}),Xa({Component:"output",props:x(),renderCustom:d})]}),y.jsxs("div",{...p(),children:[a&&y.jsx("div",{...T(),children:a}),y.jsxs("div",{...v(),children:[y.jsx("div",{...$()}),Number.isFinite(i)&&Array.from({length:i},(D,E)=>y.jsx("div",{...c(E)},E)),n.values.map((D,E)=>y.jsx(W5,{...S(E)},E)),s?.length>0&&s.map((D,E)=>y.jsx("div",{...C(D),children:D.label},E))]}),l&&y.jsx("div",{...k(),children:l})]})]})});Tb.displayName="HeroUI.Slider";var Y5=Tb;function kb({min:e,max:t,step:r=1,unit:n="",value:o,onChange:i,classNames:s}){const a=l=>{if(Array.isArray(l)){const c=[l[0],l[1]];i(c)}};return y.jsx(Y5,{size:"sm",step:r,hideValue:!0,label:`${n} ${e} - ${n} ${t}`,minValue:e,maxValue:t,value:o||[e,t],onChange:a,marks:[{value:e,label:e.toString()},{value:t,label:t.toString()}],classNames:{base:j(s?.base),labelWrapper:j(s?.labelWrapper),label:j(s?.label),value:j(s?.value),step:j(s?.step),mark:j(s?.mark),trackWrapper:j(s?.trackWrapper),track:j(s?.track),filler:j("bg-primary-600",s?.filler),thumb:j("size-5 outline outline-default-200 bg-white after:size-2 after:bg-primary-600 data-[dragging=true]:outline-2 data-[dragging=true]:outline-primary-600 transition-colors duration-300",s?.thumb)}})}const _c={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ib={..._c,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:_c,validationErrors:[]},_b=f.createContext({}),oa="__formValidationState"+Date.now();function ia(e){if(e[oa]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[oa];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return X5(e)}function X5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Ib}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=J5(s,o);return Mb(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(_b),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Mc(u[F])):Mc(u[n]):[],[u,n]),[h,p]=f.useState(u),[g,m]=f.useState(!1);u!==h&&(p(u),m(!1));let x=f.useMemo(()=>Mb(g?[]:d),[g,d]),v=f.useRef(Co),[$,S]=f.useState(Co),C=f.useRef(Co),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;Dc(F,C.current)||(C.current=F,S(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||Co,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!Dc($,F)?S(F):v.current=F},resetValidation(){let F=Co;Dc(F,C.current)||(C.current=F,S(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function Mc(e){return e?Array.isArray(e)?e:[e]:[]}function J5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Mc(r)}return[]}function Mb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ib}:null}function Dc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Q5(...e){let t=new Set,r=!1,n={..._c};for(let s of e){var o,i;for(let a of s.validationErrors)t.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function Db(e,t,r){let{validationBehavior:n,focus:o}=e;We(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(tk(r.current))}});let i=f.useRef(!1),s=nt(()=>{i.current||t.resetValidation()}),a=nt(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&rk(d)===r.current){var h;o?o():(h=r.current)===null||h===void 0||h.focus(),pc("keyboard")}c.preventDefault()}),l=nt(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function ek(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function tk(e){return{isInvalid:!e.validity.valid,validationDetails:ek(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function rk(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function nk(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:s,form:a,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid",isInvalid:h,onPressStart:p,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$}=e,S=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},C=l!=null,T=c!=null||u!=null;!C&&!T&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=Ir({onPressStart:p,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$,isDisabled:n}),{pressProps:E,isPressed:V}=Ir({onPressStart:p,onPressEnd:g,onPressChange:m,onPressUp:v,onClick:$,onPress(A){var I;x?.(A),t.toggle(),(I=r.current)===null||I===void 0||I.focus()},isDisabled:n||o}),{focusableProps:F}=hc(e,r),b=ze(k,F),M=Wr(e,{labelable:!0});return vg(r,t.defaultSelected,t.setSelected),{labelProps:ze(E,{onClick:A=>A.preventDefault()}),inputProps:ze(M,{"aria-invalid":h||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:S,disabled:n,...i==null?{}:{value:i},name:s,form:a,type:"checkbox",...b}),isSelected:t.isSelected,isPressed:D||V,isDisabled:n,isReadOnly:o,isInvalid:h||d==="invalid"}}function Ab(e,t,r){let n=ia({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:s}=n.displayValidation,{labelProps:a,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h}=nk({...e,isInvalid:o},t,r);Db(e,n,r);let{isIndeterminate:p,isRequired:g,validationBehavior:m="aria"}=e;f.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:x}=qo({isDisabled:d||h,onPress(){let{[oa]:v}=e,{commitValidation:$}=v||n;$()}});return{labelProps:kt(a,x),inputProps:{...l,checked:c,"aria-required":g&&m==="aria"||void 0,required:g&&m==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h,isInvalid:o,validationErrors:i,validationDetails:s}}const Ob=new WeakMap;function ok(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:i="aria"}=e,{isInvalid:s,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:h}=yb({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||a});Ob.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:h.id,validationBehavior:i});let p=Ri(e,{labelable:!0}),{focusWithinProps:g}=Xo({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:kt(p,{role:"group","aria-disabled":r||void 0,...u,...g}),labelProps:c,descriptionProps:d,errorMessageProps:h,isInvalid:s,validationErrors:a,validationDetails:l}}function Nb(e={}){let{isReadOnly:t}=e,[r,n]=jr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=f.useState(r);function i(l){t||n(l)}function s(){t||n(!r)}var a;return{isSelected:r,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:i,toggle:s}}function ik(e,t,r){const n=Nb({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:i,descriptionId:s,errorMessageId:a,validationBehavior:l}=Ob.get(t);var c;l=(c=e.validationBehavior)!==null&&c!==void 0?c:l;let{realtimeValidation:u}=ia({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=f.useRef(Co),h=()=>{t.setInvalid(e.value,u.isInvalid?u:d.current)};f.useEffect(h);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,g=l==="native"?t.displayValidation:p;var m;let x=Ab({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:l,[oa]:{realtimeValidation:p,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,h()}}},n,r);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}function sk(e={}){let[t,r]=jr(e.value,e.defaultValue||[],e.onChange),[n]=f.useState(t),o=!!e.isRequired&&t.length===0,i=f.useRef(new Map),s=ia({...e,value:t}),a=s.displayValidation.isInvalid;var l,c;return{...s,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||t.includes(d)||(t=t.concat(d),r(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(h=>h!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(h=>h!==d)):r(t.concat(d)))},setInvalid(d,h){let p=new Map(i.current);h.isInvalid?p.set(d,h):p.delete(d),i.current=p,s.updateValidation(Q5(...p.values()))},validationState:(c=e.validationState)!==null&&c!==void 0?c:a?"invalid":null,isInvalid:a,isRequired:o}}var Lb=Symbol("default");function ak(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function sa(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[Lb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||Lb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function lk(e,t,r){let n=sa(r,e.slot)||{},{ref:o,...i}=n,s=ak(f.useMemo(()=>jx(t,o),[t,o])),a=ht(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var pi=f.createContext(null);f.forwardRef(function(t,r){[t,r]=lk(t,r,pi);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Qd({className:s}),[s]);return y.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:y.jsx(pi.Provider,{value:{...t,validationBehavior:o},children:y.jsx(_b.Provider,{value:n??{},children:i})})})});function uk(e){var t,r;const n=gt(),{validationBehavior:o}=sa(pi)||{},{as:i,ref:s,classNames:a,children:l,label:c,radius:u,value:d,name:h,defaultValue:p,isInvalid:g,validationState:m,size:x="md",color:v="primary",orientation:$="vertical",lineThrough:S=!1,isDisabled:C=!1,validationBehavior:T=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:E,onValueChange:V,description:F,errorMessage:b,className:M,...A}=e,I=i||"div",N=typeof I=="string",w=zt(s),P=f.useMemo(()=>({...A,value:d,name:h,"aria-label":Ya(A["aria-label"],c),defaultValue:p,isRequired:E,isReadOnly:D,orientation:$,validationBehavior:T,isInvalid:m==="invalid"||g,onChange:Fr(e.onChange,V)}),[d,h,c,p,E,D,$,V,g,m,T,A["aria-label"],A]),_=sk(P),{labelProps:B,groupProps:L,descriptionProps:K,errorMessageProps:z,validationErrors:W,validationDetails:U}=ok(P,_),ee=f.useMemo(()=>({size:x,color:v,radius:u,lineThrough:S,isInvalid:_.isInvalid,isDisabled:C,disableAnimation:k,validationBehavior:T,groupState:_}),[x,v,u,S,C,k,T,_.value,_.isDisabled,_.isReadOnly,_.isInvalid,_.isSelected]),Z=f.useMemo(()=>_x({isRequired:E,isInvalid:_.isInvalid,disableAnimation:k}),[E,_.isInvalid,,k]),R=Be(a?.base,M),he=f.useCallback(()=>({ref:w,className:Z.base({class:R}),...ht(L,Tt(A,{enabled:N}))}),[Z,w,R,L,A]),fe=f.useCallback(()=>({className:Z.label({class:a?.label}),...B}),[Z,B,a?.label]),Q=f.useCallback(()=>({className:Z.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[Z,$,a?.wrapper]),se=f.useCallback((Y={})=>({...Y,...K,className:Z.description({class:Be(a?.description,Y?.className)})}),[Z,K,a?.description]),q=f.useCallback((Y={})=>({...Y,...z,className:Z.errorMessage({class:Be(a?.errorMessage,Y?.className)})}),[Z,z,a?.errorMessage]);return{Component:I,children:l,label:c,context:ee,description:F,isInvalid:_.isInvalid,errorMessage:typeof b=="function"?b({isInvalid:_.isInvalid,validationErrors:W,validationDetails:U}):b||W?.join(" "),getGroupProps:he,getLabelProps:fe,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[ck,dk]=Vi({name:"CheckboxGroupContext",strict:!1}),Fb=Re((e,t)=>{const{children:r,context:n,label:o,description:i,isInvalid:s,errorMessage:a,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:h}=uk({...e,ref:t});return y.jsxs("div",{...l(),children:[o&&y.jsx("span",{...c(),children:o}),y.jsx("div",{...u(),children:y.jsx(ck,{value:n,children:r})}),s&&a?y.jsx("div",{...h(),children:a}):i?y.jsx("div",{...d(),children:i}):null]})});Fb.displayName="HeroUI.CheckboxGroup";var fk=Fb;function pk(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:y.jsx("polyline",{points:"1 9 7 14 15 4"})})}function hk(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:y.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function mk(e){const{isIndeterminate:t,...r}=e,n=t?hk:pk;return y.jsx(n,{...r})}function gk(e={}){var t,r,n,o,i,s,a,l;const c=gt(),u=dk(),{validationBehavior:d}=sa(pi)||{},h=!!u,{as:p,ref:g,value:m="",children:x,icon:v,name:$,isRequired:S,isReadOnly:C=!1,autoFocus:T=!1,isSelected:k,size:D=(t=u?.size)!=null?t:"md",color:E=(r=u?.color)!=null?r:"primary",radius:V=u?.radius,lineThrough:F=(n=u?.lineThrough)!=null?n:!1,isDisabled:b=(o=u?.isDisabled)!=null?o:!1,disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:c?.disableAnimation)!=null?s:!1,validationState:A,isInvalid:I=A?A==="invalid":(a=u?.isInvalid)!=null?a:!1,isIndeterminate:N=!1,validationBehavior:w=h?u.validationBehavior:(l=d??c?.validationBehavior)!=null?l:"native",defaultSelected:P,classNames:_,className:B,onValueChange:L,validate:K,...z}=e;u&&Mx&&(k&&Fi("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),P&&Fi("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const W=p||"label",U=f.useRef(null),ee=f.useRef(null);let Z=e.onChange;h&&(Z=Fr(()=>{u.groupState.resetValidation()},Z));const R=f.useId(),he=f.useMemo(()=>({name:$,value:m,children:x,autoFocus:T,defaultSelected:P,isIndeterminate:N,isRequired:S,isInvalid:I,isSelected:k,isDisabled:b,isReadOnly:C,"aria-label":Ya(z["aria-label"],x),"aria-labelledby":z["aria-labelledby"]||R,onChange:L}),[$,m,x,T,P,N,S,I,k,b,C,z["aria-label"],z["aria-labelledby"],R,L]),fe=Nb(he),Q={isInvalid:I,isRequired:S,validate:K,validationState:A,validationBehavior:w},{inputProps:se,isSelected:q,isDisabled:Y,isReadOnly:de,isPressed:ae,isInvalid:ie}=h?ik({...he,...Q},u.groupState,ee):Ab({...he,...Q},fe,ee),we=Y||de,De=A==="invalid"||I||ie,xe=we?!1:ae,{hoverProps:te,isHovered:je}=Tr({isDisabled:se.disabled}),{focusProps:Ee,isFocused:Ke,isFocusVisible:lt}=gn({autoFocus:se.autoFocus}),Te=f.useMemo(()=>Ix({color:E,size:D,radius:V,isInvalid:De,lineThrough:F,isDisabled:Y,disableAnimation:M}),[E,D,V,De,F,Y,M]);kn(()=>{if(!ee.current)return;const qe=!!ee.current.checked;fe.setSelected(qe)},[ee.current]);const Ge=c5(Z),ft=f.useCallback(qe=>{if(de||Y){qe.preventDefault();return}Ge?.(qe)},[de,Y,Ge]),Ft=Be(_?.base,B),Oe=f.useCallback(()=>({ref:U,className:Te.base({class:Ft}),"data-disabled":pe(Y),"data-selected":pe(q||N),"data-invalid":pe(De),"data-hover":pe(je),"data-focus":pe(Ke),"data-pressed":pe(xe),"data-readonly":pe(se.readOnly),"data-focus-visible":pe(lt),"data-indeterminate":pe(N),...ht(te,z)}),[Te,Ft,Y,q,N,De,je,Ke,xe,se.readOnly,lt,te,z]),St=f.useCallback((qe={})=>({...qe,"aria-hidden":!0,className:Be(Te.wrapper({class:Be(_?.wrapper,qe?.className)}))}),[Te,_?.wrapper]),Mt=f.useCallback(()=>({ref:cf(ee,g),...ht(se,Ee),className:Te.hiddenInput({class:_?.hiddenInput}),onChange:Fr(se.onChange,ft)}),[se,Ee,ft,_?.hiddenInput]),Dt=f.useCallback(()=>({id:R,className:Te.label({class:_?.label})}),[Te,_?.label,Y,q,De]),Wt=f.useCallback(()=>({isSelected:q,isIndeterminate:N,disableAnimation:M,className:Te.icon({class:_?.icon})}),[Te,_?.icon,q,N,M]);return{Component:W,icon:v,children:x,isSelected:q,isDisabled:Y,isInvalid:De,isFocused:Ke,isHovered:je,isFocusVisible:lt,getBaseProps:Oe,getWrapperProps:St,getInputProps:Mt,getLabelProps:Dt,getIconProps:Wt}}var Vb=Re((e,t)=>{const{Component:r,children:n,icon:o=y.jsx(mk,{}),getBaseProps:i,getWrapperProps:s,getInputProps:a,getIconProps:l,getLabelProps:c}=gk({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return y.jsxs(r,{...i(),children:[y.jsx("input",{...a()}),y.jsx("span",{...s(),children:u}),n&&y.jsx("span",{...c(),children:n})]})});Vb.displayName="HeroUI.Checkbox";var vk=Vb;function jb({id:e,options:t,values:r=[],onChange:n,classNames:o}){return y.jsx(fk,{size:"sm",value:r.map(i=>i.toString()),onValueChange:n,classNames:{base:j(o?.checkboxGroup?.base),wrapper:j(o?.checkboxGroup?.wrapper),label:j(o?.checkboxGroup?.label),description:j(o?.checkboxGroup?.description),errorMessage:j(o?.checkboxGroup?.errorMessage)},children:t.map(i=>y.jsx(vk,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.checkbox?.base),wrapper:j("before:border-default-200 before:border-1 before:rounded-sm bg-white group-data-[hover=true]:before:bg-default-50 after:bg-transparent",o?.checkbox?.wrapper),hiddenInput:j(o?.checkbox?.hiddenInput),icon:j("text-primary-600",o?.checkbox?.icon),label:j("text-sm text-foreground",o?.checkbox?.label)},children:i},`${e}-${i}`))})}function Ac({filters:e,activeFilters:t,onFilterChange:r,classNames:n}){function o(i,s){r({id:i,value:s})}return y.jsx("div",{className:j("min-w-60 shrink-0",n?.base),children:y.jsx("div",{className:j("flex flex-col gap-6",n?.filterWrapper),children:e.map(i=>i.type==="hidden"?null:y.jsxs("div",{className:j(n?.filterGroup),children:[y.jsx("div",{className:j("font-bold text-base mb-1",n?.filterLabel),children:i.label}),y.jsxs("div",{className:"flex flex-col gap-3",children:[i.type==="range"&&y.jsx(kb,{id:i.id,min:i.min||0,max:i.max||100,step:i.step,unit:i.unit,value:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.rangeFilter}),i.type==="select"&&i.options&&y.jsx(jb,{id:i.id,options:i.options,values:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.selectFilter}),i.type==="radio"&&i.options&&y.jsx(bb,{id:i.id,options:i.options,value:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.radioFilter})]})]},i.id))})})}var[bk,Oc]=Vi({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),zb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.body,o);return y.jsx(a,{ref:l,className:(r=c.body)==null?void 0:r.call(c,{class:d}),...s,children:i})});zb.displayName="HeroUI.CardBody";var Bb=zb,Rb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.footer,o);return y.jsx(a,{ref:l,className:(r=c.footer)==null?void 0:r.call(c,{class:d}),...s,children:i})});Rb.displayName="HeroUI.CardFooter";var yk=Rb,Kb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.header,o);return y.jsx(a,{ref:l,className:(r=c.header)==null?void 0:r.call(c,{class:d}),...s,children:i})});Kb.displayName="HeroUI.CardHeader";var xk=Kb;function wk(e){var t,r,n,o;const i=gt(),[s,a]=qt(e,tf.variantKeys),{ref:l,as:c,children:u,onClick:d,onPress:h,autoFocus:p,className:g,classNames:m,allowTextSelectionOnPress:x=!0,...v}=s,$=zt(l),S=c||(e.isPressable?"button":"div"),C=typeof S=="string",T=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:i?.disableRipple)!=null?o:!1,D=Be(m?.base,g),{onClear:E,onPress:V,ripples:F}=qm(),b=f.useCallback(W=>{k||T||$.current&&V(W)},[k,T,$,V]),{buttonProps:M,isPressed:A}=Hm({onPress:Fr(h,b),elementType:c,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...v},$),{hoverProps:I,isHovered:N}=Tr({isDisabled:!e.isHoverable,...v}),{isFocusVisible:w,isFocused:P,focusProps:_}=gn({autoFocus:p}),B=f.useMemo(()=>tf({...a,disableAnimation:T}),[rn(a),T]),L=f.useMemo(()=>({slots:B,classNames:m,disableAnimation:T,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,m,e.isDisabled,e.isFooterBlurred,T,e.fullWidth]),K=f.useCallback((W={})=>({ref:$,className:B.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":pe(N),"data-pressed":pe(A),"data-focus":pe(P),"data-focus-visible":pe(w),"data-disabled":pe(e.isDisabled),...ht(e.isPressable?{...M,..._,role:"button"}:{},e.isHoverable?I:{},Tt(v,{enabled:C}),Tt(W))}),[$,B,D,C,e.isPressable,e.isHoverable,e.isDisabled,N,A,w,M,_,I,v]),z=f.useCallback(()=>({ripples:F,onClear:E}),[F,E]);return{context:L,domRef:$,Component:S,classNames:m,children:u,isHovered:N,isPressed:A,disableAnimation:T,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:b,isFocusVisible:w,getCardProps:K,getRippleProps:z}}var Wb=Re((e,t)=>{const{children:r,context:n,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:c}=wk({...e,ref:t});return y.jsxs(o,{...l(),children:[y.jsx(bk,{value:n,children:r}),i&&!s&&!a&&y.jsx(Zm,{...c()})]})});Wb.displayName="HeroUI.Card";var Ub=Wb;function $k(e){let t=Tt(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function Ek(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=$k({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Jd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}var Hb=Re((e,t)=>{const{Component:r,getDividerProps:n}=Ek({...e});return y.jsx(r,{ref:t,...n()})});Hb.displayName="HeroUI.Divider";var Gb=Hb;function Pk(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:i,srcSet:s,sizes:a,loading:l,shouldBypassImageLoad:c=!1}=e,u=Ux(),d=f.useRef(u?new Image:null),[h,p]=f.useState("pending");f.useEffect(()=>{d.current&&(d.current.onload=x=>{g(),p("loaded"),t?.(x)},d.current.onerror=x=>{g(),p("failed"),r?.(x)})},[d.current]);const g=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},m=f.useCallback(()=>{if(!o)return"pending";if(n||c)return"loaded";const x=new Image;return x.src=o,i&&(x.crossOrigin=i),s&&(x.srcset=s),a&&(x.sizes=a),l&&(x.loading=l),d.current=x,x.complete&&x.naturalWidth?"loaded":"loading"},[o,i,s,a,t,r,l,c]);return kn(()=>{u&&p(m())},[u,m]),n?"loaded":h}function Sk(e){var t,r;const n=gt(),[o,i]=qt(e,ef.variantKeys),{ref:s,as:a,src:l,className:c,classNames:u,loading:d,isBlurred:h,fallbackSrc:p,isLoading:g,disableSkeleton:m=!!p,removeWrapper:x=!1,onError:v,onLoad:$,srcSet:S,sizes:C,crossOrigin:T,...k}=o,D=Pk({src:l,loading:d,onError:v,onLoad:$,ignoreFallback:!1,srcSet:S,sizes:C,crossOrigin:T,shouldBypassImageLoad:a!==void 0}),E=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,V=D==="loaded"&&!g,F=D==="loading"||g,b=e.isZoomed,M=a||"img",A=zt(s),{w:I,h:N}=f.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),w=(!l||!V)&&!!p,P=F&&!m,_=f.useMemo(()=>ef({...i,disableAnimation:E,showSkeleton:P}),[rn(i),E,P]),B=Be(c,u?.img),L=(W={})=>{const U=Be(B,W?.className);return{src:l,ref:A,"data-loaded":pe(V),className:_.img({class:U}),loading:d,srcSet:S,sizes:C,crossOrigin:T,...k,style:{...k?.height&&{height:N},...W.style,...k.style}}},K=f.useCallback(()=>{const W=w?{backgroundImage:`url(${p})`}:{};return{className:_.wrapper({class:u?.wrapper}),style:{...W,maxWidth:I}}},[_,w,p,u?.wrapper,I]),z=f.useCallback(()=>({src:l,"aria-hidden":pe(!0),className:_.blurredImg({class:u?.blurredImg})}),[_,l,u?.blurredImg]);return{Component:M,domRef:A,slots:_,classNames:u,isBlurred:h,disableSkeleton:m,fallbackSrc:p,removeWrapper:x,isZoomed:b,isLoading:F,getImgProps:L,getWrapperProps:K,getBlurredImgProps:z}}var Zb=Re((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:c,disableSkeleton:u,getImgProps:d,getWrapperProps:h,getBlurredImgProps:p}=Sk({...e,ref:t}),g=y.jsx(r,{ref:n,...d()});if(c)return g;const m=y.jsx("div",{className:o.zoomedWrapper({class:i?.zoomedWrapper}),children:g});return s?y.jsxs("div",{...h(),children:[a?m:g,f.cloneElement(g,p())]}):a||!u||l?y.jsxs("div",{...h(),children:[" ",a?m:g]}):g});Zb.displayName="HeroUI.Image";var aa=Zb;function qb(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",i="mobiel-assets.imgix.net",s="mobiel-frontend.imgix.net",a="?"+Object.keys(t).map(u=>`${u}=${encodeURIComponent(t[u])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${a}`;let l="",c=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return Yb(e)?l=r:la(e)&&c.includes("mobiel-nl-content")?l=n:la(e)&&c.includes("mobiel-nl-postpaid")?l=o:Xb(e)?l=i:l=s,la(e)&&(c=c.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${c}${a}`}function Yb(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function la(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Xb(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Jb(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||Yb(e)||Xb(e)||la(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Ck(e,t="auto",r="auto",n="none"){return Jb(e)?qb(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function Tk(e,t="auto",r="auto",n="none"){return Jb(e)?[1,2,3,4].map(s=>`${qb(e,{w:t,h:r,dpr:s,trim:n,auto:"compress,format",q:95})} ${s}x`).join(", "):""}function Nc(){return f.useMemo(()=>[Ck,Tk],[])}function Qb({hasProduct:e,deviceDiscount:t,tcoPerMonth:r,horizontal:n,classNames:o}){return y.jsxs("div",{className:j("px-3 py-2 bg-primary-50 text-xs font-medium text-primary-600 flex items-center gap-3",n&&"rounded-lg",n&&e&&"mb-4",o?.base),children:[t&&y.jsxs("div",{className:j("flex items-center gap-1",o?.deviceDiscount),children:[y.jsx(ZC,{size:16}),t," toestelkorting"]}),y.jsxs("div",{className:j("flex items-center gap-1",o?.averagePrice),children:[y.jsx(KC,{size:16}),"gem. ",r," /mnd"]})]})}function e0({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,classNames:n}){return y.jsxs("div",{className:j(n?.base),children:[e&&y.jsx("div",{className:j("text-sm text-default-400 whitespace-nowrap",n?.promotionText),children:e}),y.jsxs("div",{className:j("flex items-end gap-1",n?.monthlyFee),children:[y.jsx("div",{className:j("text-3xl font-extrabold tracking-tighter text-foreground leading-none",n?.monthlyFeeValue),children:t}),y.jsx("div",{className:j("text-sm text-foreground leading-none",n?.monthlyFeeLabel),children:"/mnd"})]}),r&&y.jsxs("div",{className:j("text-sm text-foreground",n?.productPrice),children:["+ ",y.jsx("b",{children:r})," eenmalig"]})]})}function t0({title:e,subtitle:t,imageUrl:r,imageAlt:n,specifications:o,stockStatus:i,reviewCount:s,reviewScore:a,classNames:l,horizontal:c}){const[u,d]=Nc();return y.jsxs("div",{className:j("w-full mb-3",l?.base),children:[!c&&y.jsx(aa,{alt:n,height:200,src:u(r,200,200),srcSet:d(r,200,200),width:200,classNames:{wrapper:j("mb-6 mt-3 mx-auto flex shrink-0",l?.imageWrapper),img:j("aspect-square",l?.image)}}),y.jsxs("div",{className:j(c&&"flex justify-between"),children:[y.jsxs("div",{children:[y.jsx("div",{className:j("text-lg font-semibold text-foreground leading-none",l?.subtitle),children:t}),y.jsx("div",{className:j("text-2xl font-bold text-foreground",l?.title),children:e})]}),c&&y.jsx(aa,{alt:n,height:60,src:u(r,120,60),srcSet:d(r,120,60),width:120,classNames:{wrapper:j("flex shrink-0",l?.imageWrapper),img:j("aspect-2/1",l?.image)}})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("div",{className:j("text-sm",i==="in_stock"?"text-success":"text-foreground",l?.stockStatus),children:i==="in_stock"?"Op voorraad":"Niet leverbaar"}),y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(YC,{size:16,filled:!0,className:"text-secondary"}),y.jsx("div",{className:j("font-semibold text-foreground",l?.reviewScore),children:a}),y.jsxs("span",{className:j("text-default-400",l?.reviewCount),children:["(",s,")"]})]})]}),o&&y.jsx("div",{className:j("flex text-sm",l?.specifications),children:o.map((h,p)=>y.jsxs("div",{className:"text-default-400",children:[h.title,p<o.length-1&&y.jsx("span",{className:"mx-1",children:"•"})]},h.title))})]})}function r0({specialPromotions:e,modificationPromotions:t,classNames:r}){return y.jsxs("div",{className:j(r?.base),children:[e.map(n=>y.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[y.jsx(Rm,{size:24,className:j("shrink-0",r?.specialPromotionIcon)}),n]},n)),t.map(n=>y.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[y.jsx(Rm,{size:24,className:j("shrink-0",r?.modificationPromotionIcon)}),n]},n))]})}function n0({title:e,subtitle:t,imageUrl:r,imageAlt:n,hasProduct:o,horizontal:i,classNames:s}){const[a,l]=Nc(),c=o?75:100,u=o?35:50;return y.jsxs("div",{className:j("flex justify-between w-full pb-3",i&&"w-fit",s?.base),children:[y.jsxs("div",{children:[y.jsx("div",{className:j(o?"text-2xl font-extrabold":"text-3xl font-extrabold","text-foreground",s?.title),children:e}),y.jsx("div",{className:j(o?"text-base":"text-lg","leading-none text-foreground",s?.subtitle),children:t})]}),!i&&y.jsx(aa,{alt:n,height:u,src:a(r,c,u),srcSet:l(r,c,u),width:c,classNames:{wrapper:j("flex shrink-0",s?.imageWrapper),img:j("aspect-2/1",s?.image)}})]})}function Lc({slug:e,size:t=16}){switch(e){case"contract-term":return y.jsx(UC,{size:t});case"data-speed-down":return y.jsx(qC,{size:t});case"provider-network":return y.jsx(RC,{size:t});case"data-eu":return y.jsx(XC,{size:t});case"internet-speed":return y.jsx(BC,{size:t});case"channels":return y.jsx(HC,{size:t});case"tv-receiver":return y.jsx(GC,{size:t});default:return null}}function kk({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:h,specialPromotions:p,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:S,productReviewCount:C,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i),[b,M]=Nc();return y.jsx(Ub,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("flex flex-row shadow-lg rounded-lg",E?.card),children:y.jsxs(Bb,{className:j("py-0 px-6 grid grid-cols-[max-content_1fr] gap-6",E?.body),children:[y.jsxs("div",{className:"flex flex-row",children:[y.jsx(aa,{alt:F?i:c,height:F?200:50,src:F?b(o??"",200,200):b(l,100,50),srcSet:F?M(o??"",200,200):M(l,100,50),width:F?200:100,classNames:{wrapper:j("flex shrink-0 mt-6 mr-6",E?.imageWrapper),img:j(F?"aspect-square":"aspect-2/1",E?.image)}}),y.jsx(Gb,{orientation:"vertical"})]}),y.jsxs("div",{className:"w-full",children:[y.jsxs("div",{className:j("pt-6 flex gap-6 justify-between",F&&"flex-col gap-4",E?.header),children:[F&&y.jsx(t0,{imageAlt:c,imageUrl:l,reviewCount:C,reviewScore:T,specifications:$,stockStatus:S,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),imageWrapper:j(E?.productSection?.imageWrapper),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)},horizontal:!0}),y.jsxs("div",{className:j(F&&u&&"flex gap-6 justify-between"),children:[y.jsx(n0,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,horizontal:!0,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle)}}),F&&u&&y.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-0 gap-x-3 h-fit mt-2",E?.specifications),children:u.map(A=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:A.slug}),A.title]},A.title))})]}),y.jsxs("div",{className:j("flex flex-col items-end gap-3",F&&"items-start"),children:[!F&&u&&y.jsx("div",{className:j("grid grid-cols-2 gap-x-3 lg:grid-cols-[repeat(4,max-content)] text-default-400 mb-0",u.length===2&&"lg:grid-cols-[repeat(2,max-content)]",E?.specifications),children:u.map(A=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:A.slug}),A.title]},A.title))}),y.jsx(Qb,{deviceDiscount:D,tcoPerMonth:h,horizontal:!0,hasProduct:F,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})]}),y.jsxs("div",{className:j(E?.body),children:[v&&y.jsx(wu,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),y.jsx(r0,{specialPromotions:p,modificationPromotions:g,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),y.jsxs("div",{className:j('grid self-end grid-cols-[1fr_max-content] [grid-template-areas:"delivery_delivery""price_button"] pt-3 pb-6 lg:grid-cols-[148px_max-content] lg:justify-end lg:pt-1',F&&"lg:grid-cols-[1fr_max-content]",E?.footer),children:[x&&y.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm [grid-area:delivery]",E?.deliveryText),children:x}),y.jsx(e0,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j("[grid-area:price] content-end",E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),y.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6 [grid-area:button]",e&&"pointer-events-none",E?.button),endContent:y.jsx(Bm,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]})]})})}function Ik({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:h,specialPromotions:p,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:S,productReviewCount:C,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i);return y.jsxs(Ub,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("rounded-lg shadow-lg",E?.card),children:[y.jsxs(xk,{className:j("flex-col items-start text-start z-1",E?.header),children:[F&&y.jsx(t0,{imageAlt:i||"",imageUrl:o||"",reviewCount:C,reviewScore:T,specifications:$,stockStatus:S,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)}}),y.jsx(n0,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle),imageWrapper:j(E?.propositionHeader?.imageWrapper),image:j(E?.propositionHeader?.image)}})]}),y.jsxs(Bb,{className:j("py-0",E?.body),children:[!F&&u&&y.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-3",E?.specifications),children:u.map(b=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:b.slug}),b.title]},b.title))}),v&&y.jsx(wu,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),y.jsx(r0,{specialPromotions:p,modificationPromotions:g,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),y.jsx(Gb,{className:"mt-3"}),y.jsxs(yk,{className:j("flex-col justify-between items-start text-start",E?.footer),children:[x&&y.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm",E?.deliveryText),children:x}),y.jsxs("div",{className:"flex justify-between items-end w-full",children:[y.jsx(e0,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j(E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),y.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6",e&&"pointer-events-none",E?.button),endContent:y.jsx(Bm,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]}),y.jsx(Qb,{deviceDiscount:D,tcoPerMonth:h,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})}function hi({horizontal:e,...t}){return e?y.jsx(kk,{...t}):y.jsx(Ik,{...t})}function _k(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:a="aria"}=e,[l,c]=jr(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=ws(e,t),d=ia({...e,value:l}),{isInvalid:h,validationErrors:p,validationDetails:g}=d.displayValidation,{labelProps:m,fieldProps:x,descriptionProps:v,errorMessageProps:$}=yb({...e,isInvalid:h,errorMessage:e.errorMessage||p}),S=Ri(e,{labelable:!0});const C={type:s,pattern:e.pattern};let[T]=f.useState(l);var k;return _f(t,(k=e.defaultValue)!==null&&k!==void 0?k:T,c),Db(e,d,t),f.useEffect(()=>{if(t.current instanceof Zt(t.current).HTMLTextAreaElement){let D=t.current;Object.defineProperty(D,"defaultValue",{get:()=>D.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:kt(S,r==="input"?C:void 0,{disabled:n,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>c(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(f.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...x}),descriptionProps:v,errorMessageProps:$,isInvalid:h,validationErrors:p,validationDetails:g}}function Mk(e){var t,r,n,o,i,s,a;const l=gt(),{validationBehavior:c}=sa(pi)||{},[u,d]=qt(e,qd.variantKeys),{ref:h,as:p,type:g,label:m,baseRef:x,wrapperRef:v,description:$,className:S,classNames:C,autoFocus:T,startContent:k,endContent:D,onClear:E,onChange:V,validationState:F,validationBehavior:b=(t=c??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:A=()=>{},...I}=u,N=f.useCallback(re=>{A(re??"")},[A]),[w,P]=f.useState(!1),_=p||"div",B=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,L=zt(h),K=zt(x),z=zt(v),W=zt(M),[U,ee]=jr(u.value,(o=u.defaultValue)!=null?o:"",N),Z=g==="file",R=((a=(s=(i=L?.current)==null?void 0:i.files)==null?void 0:s.length)!=null?a:0)>0,he=["date","time","month","week","range"].includes(g),fe=!Ox(U)||he||R,Q=fe||w,se=g==="hidden",q=e.isMultiline,Y=Be(C?.base,S,fe?"is-filled":""),de=f.useCallback(()=>{var re;Z?L.current.value="":ee(""),E?.(),(re=L.current)==null||re.focus()},[ee,E,Z]);kn(()=>{L.current&&ee(L.current.value)},[L.current]);const{labelProps:ae,inputProps:ie,isInvalid:we,validationErrors:De,validationDetails:xe,descriptionProps:te,errorMessageProps:je}=_k({...e,validationBehavior:b,autoCapitalize:e.autoCapitalize,value:U,"aria-label":e.label?e["aria-label"]:Ya(e["aria-label"],e.placeholder),inputElementType:q?"textarea":"input",onChange:ee},L);Z&&(delete ie.value,delete ie.onChange);const{isFocusVisible:Ee,isFocused:Ke,focusProps:lt}=gn({autoFocus:T,isTextInput:!0}),{isHovered:Te,hoverProps:Ge}=Tr({isDisabled:!!e?.isDisabled}),{isHovered:ft,hoverProps:Ft}=Tr({isDisabled:!!e?.isDisabled}),{focusProps:Oe,isFocusVisible:St}=gn(),{focusWithinProps:Mt}=Xo({onFocusWithinChange:P}),{pressProps:Dt}=qo({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:de}),Wt=F==="invalid"||we,qe=v2({labelPlacement:e.labelPlacement,label:m}),Ar=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:Wt,validationErrors:De,validationDetails:xe}):u.errorMessage||De?.join(" "),cr=!!E||e.isClearable,Jr=!!m||!!$||!!Ar,Vt=!!u.placeholder,Pe=!!m,Fe=!!$||!!Ar,At=qe==="outside-left",wt=qe==="outside-top",ir=qe==="outside"||At||wt,_o=qe==="inside",Or=L.current?(!L.current.value||L.current.value===""||!U||U==="")&&Vt:!1,Ut=!!k,Nn=ir?At||wt||Vt||qe==="outside"&&Ut:!1,Ln=qe==="outside"&&!Vt&&!Ut,Ye=f.useMemo(()=>qd({...d,isInvalid:Wt,labelPlacement:qe,isClearable:cr,disableAnimation:B}),[rn(d),Wt,qe,cr,Ut,B]),Fn=f.useCallback((re={})=>({ref:K,className:Ye.base({class:Y}),"data-slot":"base","data-filled":pe(fe||Vt||Ut||Or||Z),"data-filled-within":pe(Q||Vt||Ut||Or||Z),"data-focus-within":pe(w),"data-focus-visible":pe(Ee),"data-readonly":pe(e.isReadOnly),"data-focus":pe(Ke),"data-hover":pe(Te||ft),"data-required":pe(e.isRequired),"data-invalid":pe(Wt),"data-disabled":pe(e.isDisabled),"data-has-elements":pe(Jr),"data-has-helper":pe(Fe),"data-has-label":pe(Pe),"data-has-value":pe(!Or),"data-hidden":pe(se),...Mt,...re}),[Ye,Y,fe,Ke,Te,ft,Wt,Fe,Pe,Jr,Or,Ut,w,Ee,Q,Vt,Mt,se,e.isReadOnly,e.isRequired,e.isDisabled]),Vn=f.useCallback((re={})=>({"data-slot":"label",className:Ye.label({class:C?.label}),...ht(ae,Ft,re)}),[Ye,ft,ae,C?.label]),Qr=f.useCallback(re=>{re.key==="Escape"&&U&&(cr||E)&&!e.isReadOnly&&(ee(""),E?.())},[U,ee,E,cr,e.isReadOnly]),ke=f.useCallback((re={})=>({"data-slot":"input","data-filled":pe(fe),"data-filled-within":pe(Q),"data-has-start-content":pe(Ut),"data-has-end-content":pe(!!D),"data-type":g,className:Ye.input({class:Be(C?.input,fe?"is-filled":"",q?"pe-0":"",g==="password"?"[&::-ms-reveal]:hidden":"")}),...ht(lt,ie,Tt(I,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(ie))}),re),"aria-readonly":pe(e.isReadOnly),onChange:Fr(ie.onChange,V),onKeyDown:Fr(ie.onKeyDown,re.onKeyDown,Qr),ref:L}),[Ye,U,lt,ie,I,fe,Q,Ut,D,C?.input,e.isReadOnly,e.isRequired,V,Qr]),Mo=f.useCallback((re={})=>({ref:z,"data-slot":"input-wrapper","data-hover":pe(Te||ft),"data-focus-visible":pe(Ee),"data-focus":pe(Ke),className:Ye.inputWrapper({class:Be(C?.inputWrapper,fe?"is-filled":"")}),...ht(re,Ge),onClick:Me=>{L.current&&Me.currentTarget===Me.target&&L.current.focus()},style:{cursor:"text",...re.style}}),[Ye,Te,ft,Ee,Ke,U,C?.inputWrapper]),jn=f.useCallback((re={})=>({...re,ref:W,"data-slot":"inner-wrapper",onClick:Me=>{L.current&&Me.currentTarget===Me.target&&L.current.focus()},className:Ye.innerWrapper({class:Be(C?.innerWrapper,re?.className)})}),[Ye,C?.innerWrapper]),Pi=f.useCallback((re={})=>({...re,"data-slot":"main-wrapper",className:Ye.mainWrapper({class:Be(C?.mainWrapper,re?.className)})}),[Ye,C?.mainWrapper]),O=f.useCallback((re={})=>({...re,"data-slot":"helper-wrapper",className:Ye.helperWrapper({class:Be(C?.helperWrapper,re?.className)})}),[Ye,C?.helperWrapper]),X=f.useCallback((re={})=>({...re,...te,"data-slot":"description",className:Ye.description({class:Be(C?.description,re?.className)})}),[Ye,C?.description]),oe=f.useCallback((re={})=>({...re,...je,"data-slot":"error-message",className:Ye.errorMessage({class:Be(C?.errorMessage,re?.className)})}),[Ye,je,C?.errorMessage]),ge=f.useCallback((re={})=>({...re,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":pe(St),className:Ye.clearButton({class:Be(C?.clearButton,re?.className)}),...ht(Dt,Oe)}),[Ye,St,Dt,Oe,C?.clearButton]);return{Component:_,classNames:C,domRef:L,label:m,description:$,startContent:k,endContent:D,labelPlacement:qe,isClearable:cr,hasHelper:Fe,hasStartContent:Ut,isLabelOutside:Nn,isOutsideLeft:At,isOutsideTop:wt,isLabelOutsideAsPlaceholder:Ln,shouldLabelBeOutside:ir,shouldLabelBeInside:_o,hasPlaceholder:Vt,isInvalid:Wt,errorMessage:Ar,getBaseProps:Fn,getLabelProps:Vn,getInputProps:ke,getMainWrapperProps:Pi,getInputWrapperProps:Mo,getInnerWrapperProps:jn,getHelperWrapperProps:O,getDescriptionProps:X,getErrorMessageProps:oe,getClearButtonProps:ge}}var o0=Re((e,t)=>{const{Component:r,label:n,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasHelper:c,isOutsideLeft:u,isOutsideTop:d,shouldLabelBeOutside:h,errorMessage:p,isInvalid:g,getBaseProps:m,getLabelProps:x,getInputProps:v,getInnerWrapperProps:$,getInputWrapperProps:S,getMainWrapperProps:C,getHelperWrapperProps:T,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:E}=Mk({...e,ref:t}),V=n?y.jsx("label",{...x(),children:n}):null,F=f.useMemo(()=>i?y.jsx("button",{...E(),children:a||y.jsx(xu,{})}):a,[i,E]),b=f.useMemo(()=>{const I=g&&p;return!c||!(I||o)?null:y.jsx("div",{...T(),children:I?y.jsx("div",{...D(),children:p}):y.jsx("div",{...k(),children:o})})},[c,g,p,o,T,D,k]),M=f.useMemo(()=>y.jsxs("div",{...$(),children:[s,y.jsx("input",{...v()}),F]}),[s,F,v,$]),A=f.useMemo(()=>h?y.jsxs("div",{...C(),children:[y.jsxs("div",{...S(),children:[!u&&!d?V:null,M]}),b]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{...S(),children:[V,M]}),b]}),[l,b,h,V,M,p,o,C,S,D,k]);return y.jsxs(r,{...m(),children:[u||d?V:null,A]})});o0.displayName="HeroUI.Input";var mi=o0;class i0{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l)};for(let a of t)r(a);let n=null,o=0,i=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,n=l,n.nextKey=void 0;this._size=i;var s;this.lastKey=(s=n?.key)!==null&&s!==void 0?s:null}}class ur extends Set{constructor(t,r,n){super(t),t instanceof ur?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function Dk(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ak(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=f.useRef(!1),[,a]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>s0(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>s0(e.defaultSelectedKeys,new ur),[e.defaultSelectedKeys]),[p,g]=jr(d,h,e.onSelectionChange),m=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,v]=f.useState(o);o==="replace"&&x==="toggle"&&typeof p=="object"&&p.size===0&&v("replace");let $=f.useRef(o);return f.useEffect(()=>{o!==$.current&&(v(o),$.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:x,setSelectionBehavior:v,get isFocused(){return s.current},setFocused(S){s.current=S,a(S)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(S,C="first"){l.current=S,c.current=C,u(S)},selectedKeys:p,setSelectedKeys(S){(n||!Dk(S,p))&&g(S)},disabledKeys:m,disabledBehavior:i}}function s0(e,t){return e?e==="all"?"all":new ur(e):t}function a0(e){return null}a0.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:i}=t,s=t.title||t.children,a=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!a&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:a,"aria-label":t["aria-label"],hasChildNodes:Ok(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(i,c=>{l.push({type:"item",element:c})}),yield*l}}}};function Ok(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let Nk=a0;class Lk{build(t,r){return this.context=r,l0(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(f.isValidElement(r)&&r.type===f.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];f.Children.forEach(r,s=>{s&&o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let l of a)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(f.isValidElement(t.element)&&t.element.type===f.Fragment){let x=[];f.Children.forEach(t.element.props.children,$=>{x.push($)});var i;let v=(i=t.index)!==null&&i!==void 0?i:0;for(const $ of x)yield*this.getFullNode({element:$,index:v++},r,n,o);return}let s=t.element;if(!s&&t.value&&r&&r.renderer){let x=this.cache.get(t.value);if(x&&(!x.shouldInvalidate||!x.shouldInvalidate(this.context))){x.index=t.index,x.parentKey=o?o.key:null,yield x;return}s=r.renderer(t.value)}if(f.isValidElement(s)){let x=s.type;if(typeof x!="function"&&typeof x.getCollectionNode!="function"){let C=s.type;throw new Error(`Unknown element <${C}> in collection.`)}let v=x.getCollectionNode(s.props,this.context);var a;let $=(a=t.index)!==null&&a!==void 0?a:0,S=v.next();for(;!S.done&&S.value;){let C=S.value;t.index=$;var l;let T=(l=C.key)!==null&&l!==void 0?l:null;T==null&&(T=C.element?null:this.getKey(s,t,r,n));let D=[...this.getFullNode({...C,key:T,index:$,wrapper:Fk(t.wrapper,C.wrapper)},this.getChildState(r,C),n?`${n}${s.key}`:s.key,o)];for(let E of D){var c,u;E.value=(u=(c=C.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,E.value&&this.cache.set(E.value,E);var d;if(t.type&&E.type!==t.type)throw new Error(`Unsupported type <${Fc(E.type)}> in <${Fc((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Fc(t.type)}> is supported.`);$++,yield E}S=v.next(D)}return}if(t.key==null||t.type==null)return;let h=this;var p,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:l0(function*(){if(!t.hasChildNodes||!t.childNodes)return;let x=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let $=h.getFullNode({...v,index:x},h.getChildState(r,v),m.key,m);for(let S of $)x++,yield S}})};yield m}constructor(){this.cache=new WeakMap}}function l0(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Fk(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Fc(e){return e[0].toUpperCase()+e.slice(1)}function Vk(e,t,r){let n=f.useMemo(()=>new Lk,[]),{children:o,items:i,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,s,r,t])}function u0(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jk(e){return zk(e)}function zk(e,t){for(let r of e)return r}function Vc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...c0(e,t),t],o=[...c0(e,r),r],i=n.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function c0(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const d0=new WeakMap;function Bk(e){let t=d0.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(u0(i,e)):i.type==="item"&&r++};return n(e),d0.set(e,r),r}class jc{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Vc(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Vc(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ur([r],r,r);else{let s=this.state.selectedKeys;var o;let a=(o=s.anchorKey)!==null&&o!==void 0?o:r;n=new ur(s,a,r);var i;for(let l of this.getKeyRange(a,(i=s.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,a))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Vc(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ur(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ur([r],r,r):new ur;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ur;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let s=this.collection.getItem(n);s?.type==="item"&&t.push(n);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&r((i=(o=jk(u0(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ur)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new jc(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function f0(e){let{filter:t,layoutDelegate:r}=e,n=Ak(e),o=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=f.useCallback(c=>t?new i0(t(c)):new i0(c),[t]),s=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Vk(e,i,s),l=f.useMemo(()=>new jc(a,n,{layoutDelegate:r}),[a,n,r]);return Rk(a,l),{collection:a,disabledKeys:o,selectionManager:l}}function Rk(e,t){const r=f.useRef(null);f.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const u=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(v=>{const $=r.current.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null),h=[...e.getKeys()].map(v=>{const $=e.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null);var n,o;const p=((n=d?.length)!==null&&n!==void 0?n:0)-((o=h?.length)!==null&&o!==void 0?o:0);var i,s,a;let g=Math.min(p>1?Math.max(((i=u?.index)!==null&&i!==void 0?i:0)-p+1,0):(s=u?.index)!==null&&s!==void 0?s:0,((a=h?.length)!==null&&a!==void 0?a:0)-1),m=null,x=!1;for(;g>=0;){if(!t.isDisabled(h[g].key)){m=h[g];break}if(g<h.length-1&&!x)g++;else{x=!0;var l,c;g>((l=u?.index)!==null&&l!==void 0?l:0)&&(g=(c=u?.index)!==null&&c!==void 0?c:0),g--}}t.setFocusedKey(m?m.key:null)}r.current=e},[e,t])}function Kk(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:i,selectionMode:s}}=f0(e),a=f.useMemo(()=>!e.isLoading&&i.size!==0?Array.from(i).filter(Boolean).filter(c=>!t.getItem(c)):[],[i,t]),l=i.size!==0?Array.from(i).map(c=>t.getItem(c)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:s,selectedKeys:i,setSelectedKeys:o.bind(n),selectedItems:l}}function Wk(e){let t=ra(e),[r,n]=f.useState(null),[o,i]=f.useState([]),s=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){s()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(d=>u>d.length?d:[...d.slice(0,u),c])},closeSubmenu:(c,u)=>{i(d=>d[u]===c?d.slice(0,u):d)}}}function Uk({validate:e,validationBehavior:t,...r}){const[n,o]=f.useState(!1),[i,s]=f.useState(null),a=Wk(r),l=Kk({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&a.close()}}),c=ub({...r,validationBehavior:t,validate:d=>{if(!e)return;const h=Array.from(d);return e(r.selectionMode==="single"?h[0]:h)},value:l.selectedKeys}),u=l.collection.size===0&&r.hideEmptyContent;return{...c,...l,...a,focusStrategy:i,close(){a.close()},open(d=null){u||(s(d),a.open())},toggle(d=null){u||(s(d),a.toggle())},isFocused:n,setFocused:o}}var p0={};p0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var h0={};h0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var m0={};m0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var g0={};g0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var v0={};v0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var b0={};b0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var y0={};y0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var x0={};x0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var w0={};w0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var $0={};$0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var E0={};E0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var P0={};P0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var S0={};S0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var C0={};C0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var T0={};T0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var k0={};k0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var I0={};I0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var _0={};_0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var M0={};M0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var D0={};D0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var A0={};A0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var O0={};O0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var N0={};N0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var L0={};L0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var F0={};F0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var V0={};V0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var j0={};j0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var z0={};z0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var B0={};B0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var R0={};R0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var K0={};K0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var W0={};W0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var U0={};U0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var H0={};H0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var G0={};G0={"ar-AE":p0,"bg-BG":h0,"cs-CZ":m0,"da-DK":g0,"de-DE":v0,"el-GR":b0,"en-US":y0,"es-ES":x0,"et-EE":w0,"fi-FI":$0,"fr-FR":E0,"he-IL":P0,"hr-HR":S0,"hu-HU":C0,"it-IT":T0,"ja-JP":k0,"ko-KR":I0,"lt-LT":_0,"lv-LV":M0,"nb-NO":D0,"nl-NL":A0,"pl-PL":O0,"pt-BR":N0,"pt-PT":L0,"ro-RO":F0,"ru-RU":V0,"sk-SK":j0,"sl-SI":z0,"sr-SP":B0,"sv-SE":R0,"tr-TR":K0,"uk-UA":W0,"zh-CN":U0,"zh-TW":H0};function Hk(e){return e&&e.__esModule?e.default:e}function Gk(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,s=Bt(),{triggerProps:a,overlayProps:l}=iv({type:n},t,r),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},u=Mg(Hk(G0),"@react-aria/menu"),{longPressProps:d}=Xg({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(lr(p.target),t.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(lr(p.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?h:d,id:s,onKeyDown:c},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function zc(e){return _T()?e.altKey:e.ctrlKey}function ua(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Z0=new WeakMap;function Zk(e){let t=Bt();return Z0.set(e,t),t}function qk(e){return Z0.get(e)}const Yk=1e3;function q0(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=s=>{let a=Xk(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&a===" ")){if(a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Yk)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function Xk(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Jk(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=n,linkBehavior:m="action"}=e,{direction:x}=ii(),v=Uu(),$=P=>{var _;if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!(!((_=n.current)===null||_===void 0)&&_.contains(P.target)))return;const B=(q,Y)=>{if(q!=null){if(t.isLink(q)&&m==="selection"&&c&&!zc(P)){Bn.flushSync(()=>{t.setFocusedKey(q,Y)});let de=ua(n,q),ae=t.getItemProps(q);de&&v.open(de,P,ae.href,ae.routerOptions);return}if(t.setFocusedKey(q,Y),t.isLink(q)&&m==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&!zc(P)&&t.replaceSelection(q)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var L,K,z;let q=t.focusedKey!=null?(L=r.getKeyBelow)===null||L===void 0?void 0:L.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);q==null&&i&&(q=(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowUp":if(r.getKeyAbove){var W,U,ee;let q=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);q==null&&i&&(q=(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var Z,R,he;let q=t.focusedKey!=null?(Z=r.getKeyLeftOf)===null||Z===void 0?void 0:Z.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey):(he=r.getLastKey)===null||he===void 0?void 0:he.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var fe,Q,se;let q=t.focusedKey!=null?(fe=r.getKeyRightOf)===null||fe===void 0?void 0:fe.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(Q=r.getLastKey)===null||Q===void 0?void 0:Q.call(r,t.focusedKey):(se=r.getFirstKey)===null||se===void 0?void 0:se.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getFirstKey(t.focusedKey,$o(P));t.setFocusedKey(q),q!=null&&($o(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getLastKey(t.focusedKey,$o(P));t.setFocusedKey(q),q!=null&&($o(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"a":$o(P)&&t.selectionMode==="multiple"&&a!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(P.shiftKey)n.current.focus();else{let q=mr(n.current,{tabbable:!0}),Y,de;do de=q.lastChild(),de&&(Y=de);while(de);Y&&!Y.contains(document.activeElement)&&lr(Y)}break}}},S=f.useRef({top:0,left:0});Vs(g,"scroll",p?void 0:()=>{var P,_,B,L;S.current={top:(B=(P=g.current)===null||P===void 0?void 0:P.scrollTop)!==null&&B!==void 0?B:0,left:(L=(_=g.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&L!==void 0?L:0}});let C=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){var _,B;let z=U=>{U!=null&&(t.setFocusedKey(U),c&&!t.isSelected(U)&&t.replaceSelection(U))},W=P.relatedTarget;var L,K;W&&P.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(_=r.getLastKey)===null||_===void 0?void 0:_.call(r)):z((K=t.firstSelectedKey)!==null&&K!==void 0?K:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!p&&g.current&&(g.current.scrollTop=S.current.top,g.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&g.current){let z=ua(n,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&lr(z),Zs()==="keyboard"&&gg(z,{containingElement:n.current}))}}},T=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)},k=f.useRef(!1);Vs(n,WT,d?P=>{let{detail:_}=P;P.stopPropagation(),t.setFocused(!0),_?.focusStrategy==="first"&&(k.current=!0)}:void 0);let D=nt(()=>{var P,_;let B=(_=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&_!==void 0?_:null;if(B==null){let L=It();nv(n.current),ov(L,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(B),k.current=!1});cg(()=>{k.current&&D()},[t.collection,D]);let E=nt(()=>{t.collection.size>0&&(k.current=!1)});cg(()=>{E()},[t.focusedKey,E]),Vs(n,KT,d?P=>{var _;P.stopPropagation(),t.setFocused(!1),!((_=P.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=f.useRef(o),F=f.useRef(!1);f.useEffect(()=>{if(V.current){var P,_;let K=null;var B;o==="first"&&(K=(B=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&B!==void 0?B:null);var L;o==="last"&&(K=(L=(_=r.getLastKey)===null||_===void 0?void 0:_.call(r))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let W of z)if(t.canSelectItem(W)){K=W;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&Cn(n.current),t.collection.size>0&&(V.current=!1,F.current=!0)}});let b=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==b.current||F.current)&&g.current&&n.current){let P=Zs(),_=ua(n,t.focusedKey);if(!(_ instanceof HTMLElement))return;(P==="keyboard"||F.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{g.current&&(hg(g.current,_),P!=="virtual"&&gg(_,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&b.current!=null&&n.current&&Cn(n.current),b.current=t.focusedKey,F.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),Vs(n,"react-aria-focus-scope-restore",P=>{P.preventDefault(),t.setFocused(!0)});let A={onKeyDown:$,onFocus:C,onBlur:T,onMouseDown(P){g.current===P.target&&P.preventDefault()}},{typeSelectProps:I}=q0({keyboardDelegate:r,selectionManager:t});u||(A=ze(I,A));let N;d||(N=t.focusedKey==null?0:-1);let w=Zk(t.collection);return{collectionProps:ze(A,{tabIndex:N,"data-collection":w})}}function Qk(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=e,h=Uu();t=Bt(t);let p=L=>{if(L.pointerType==="keyboard"&&zc(L))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);h.open(o.current,L,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):L&&L.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||L&&($o(L)||L.pointerType==="touch"||L.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(s?nv(o.current):a?a():document.activeElement!==o.current&&o.current&&Cn(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),l=l||r.isDisabled(n);let g={};!s&&!l?g={tabIndex:n===r.focusedKey?0:-1,onFocus(L){L.target===o.current&&r.setFocusedKey(n)}}:l&&(g.onMouseDown=L=>{L.preventDefault()});let m=r.isLink(n)&&d==="override",x=c&&e.UNSTABLE_itemBehavior==="action",v=r.isLink(n)&&d!=="selection"&&d!=="none",$=!l&&r.canSelectItem(n)&&!m&&!x,S=(c||v)&&!l,C=S&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),T=S&&$&&r.selectionBehavior==="replace",k=C||T,D=f.useRef(null),E=k&&$,V=f.useRef(!1),F=f.useRef(!1),b=r.getItemProps(n),M=L=>{if(c){var K;c(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&o.current&&h.open(o.current,L,b.href,b.routerOptions)},A={ref:o};if(i?(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,L.pointerType==="keyboard"&&(!k||X0())&&p(L)},u?(A.onPressUp=C?void 0:L=>{L.pointerType==="mouse"&&$&&p(L)},A.onPress=C?M:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&$&&p(L)}):A.onPress=L=>{if(C||T&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!Y0())return;M(L)}else L.pointerType!=="keyboard"&&$&&p(L)}):(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,F.current=C,$&&(L.pointerType==="mouse"&&!C||L.pointerType==="keyboard"&&(!S||X0()))&&p(L)},A.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&k&&Y0()||L.pointerType==="mouse"&&F.current)&&(k?M(L):$&&p(L))}),g["data-collection"]=qk(r.collection),g["data-key"]=n,A.preventFocusOnPress=s,s&&(A=ze(A,{onPressStart(L){L.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(L){L.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),b)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])b[L]&&(A[L]=wn(A[L],b[L]));let{pressProps:I,isPressed:N}=Ir(A),w=T?L=>{D.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),M(L))}:void 0,{longPressProps:P}=Xg({isDisabled:!E,onLongPress(L){L.pointerType==="touch"&&(p(L),r.setSelectionBehavior("toggle"))}}),_=L=>{D.current==="touch"&&V.current&&L.preventDefault()},B=d!=="none"&&r.isLink(n)?L=>{$n.isOpening||L.preventDefault()}:void 0;return{itemProps:ze(g,$||C||s&&!l?I:{},E?P:{},{onDoubleClick:w,onDragStartCapture:_,onClick:B,id:t},s?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:N,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:$,hasAction:k}}function Y0(){let e=window.event;return e?.key==="Enter"}function X0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class J0{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?ua(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Q0{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(s,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!wo(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!wo(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new J0(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new J0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function e3(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,a=Dg({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=f.useMemo(()=>i||new Q0({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:a,layoutDelegate:s}),[i,s,r,n,o,a,l]),{collectionProps:u}=Jk({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function t3(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,i=Dg({usage:"search",sensitivity:"base"}),s=f.useMemo(()=>new Q0(t.collection,t.disabledKeys,null,i),[t.collection,t.disabledKeys,i]),{menuTriggerProps:a,menuProps:l}=Gk({isDisabled:o,type:"listbox"},t,r),c=T=>{if(t.selectionMode==="single")switch(T.key){case"ArrowLeft":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyAbove(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyBelow(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:u}=q0({keyboardDelegate:s,selectionManager:t.selectionManager,onTypeSelect(T){t.setSelectedKeys([T])}}),{isInvalid:d,validationErrors:h,validationDetails:p}=t.displayValidation,{labelProps:g,fieldProps:m,descriptionProps:x,errorMessageProps:v}=hb({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture,a.onPressStart=T=>{T.pointerType!=="touch"&&T.pointerType!=="keyboard"&&!o&&t.toggle(T.pointerType==="virtual"?"first":null)};const $=Wr(e,{labelable:!0}),S=ze(u,a,m),C=Bt();return{labelProps:{...g,onClick:()=>{var T;e.isDisabled||((T=r.current)==null||T.focus(),pc("keyboard"))}},triggerProps:ze($,{...S,onKeyDown:wn(S.onKeyDown,c,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].join(" "),onFocus(T){t.isFocused||(e.onFocus&&e.onFocus(T),t.setFocused(!0))},onBlur(T){t.isOpen||(e.onBlur&&e.onBlur(T),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||(e.onBlur&&e.onBlur(T),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[m["aria-labelledby"],S["aria-label"]&&!m["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:x,errorMessageProps:v,isInvalid:d,validationErrors:h,validationDetails:p}}var ey=new WeakMap;function r3(e){var t,r,n,o,i,s;const a=gt(),{validationBehavior:l}=Cc(na)||{},[c,u]=qt(e,Zd.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:a?.disableAnimation)!=null?r:!1,{ref:h,as:p,label:g,name:m,isLoading:x,selectorIcon:v,isOpen:$,defaultOpen:S,onOpenChange:C,startContent:T,endContent:k,description:D,renderValue:E,onSelectionChange:V,placeholder:F,isVirtualized:b,itemHeight:M=36,maxListboxHeight:A=256,children:I,disallowEmptySelection:N=!1,selectionMode:w="single",spinnerRef:P,scrollRef:_,popoverProps:B={},scrollShadowProps:L={},listboxProps:K={},spinnerProps:z={},validationState:W,onChange:U,onClose:ee,className:Z,classNames:R,validationBehavior:he=(n=l??a?.validationBehavior)!=null?n:"native",hideEmptyContent:fe=!1,onClear:Q,...se}=c,q=er(_),Y={popoverProps:Ve({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},B),scrollShadowProps:Ve({ref:q,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},L),listboxProps:Ve({disableAnimation:d},K)},de=p||"button",ae=typeof de=="string",ie=er(h),we=f.useRef(null),De=f.useRef(null),xe=f.useRef(null);let te=Uk({...c,isOpen:$,selectionMode:w,disallowEmptySelection:N,validationBehavior:he,children:I,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:S,hideEmptyContent:fe,onOpenChange:ne=>{C?.(ne),ne||ee?.()},onSelectionChange:ne=>{V?.(ne),U&&typeof U=="function"&&U({target:{...ie.current&&{...ie.current,name:ie.current.name},value:Array.from(ne).join(",")}}),te.commitValidation()}});te={...te,...e.isDisabled&&{disabledKeys:new Set([...te.collection.getKeys()])}},kn(()=>{var ne;(ne=ie.current)!=null&&ne.value&&te.setSelectedKeys(new Set([...te.selectedKeys,ie.current.value]))},[ie.current]);const{labelProps:je,triggerProps:Ee,valueProps:Ke,menuProps:lt,descriptionProps:Te,errorMessageProps:Ge,isInvalid:ft,validationErrors:Ft,validationDetails:Oe}=t3({...c,disallowEmptySelection:N,isDisabled:e.isDisabled},te,we),St=f.useCallback(()=>{var ne;te.setSelectedKeys(new Set([])),Q?.(),(ne=we.current)==null||ne.focus()},[Q,te]),{pressProps:Mt}=Ir({isDisabled:!!e?.isDisabled,onPress:St}),Dt=e.isInvalid||W==="invalid"||ft,{isPressed:Wt,buttonProps:qe}=rb(Ee,we),{focusProps:Ar,isFocused:cr,isFocusVisible:Jr}=So(),{focusProps:Vt,isFocusVisible:Pe}=So(),{isHovered:Fe,hoverProps:At}=Xs({isDisabled:e.isDisabled}),wt=g2({labelPlacement:e.labelPlacement,label:g}),ir=!!F,_o=wt==="outside-left"||wt==="outside",Or=wt==="inside",Ut=wt==="outside-left",Nn=e.isClearable,Ln=te.isOpen||ir||!!((i=te.selectedItems)!=null&&i.length)||!!T||!!k||!!e.isMultiline,Ye=!!((s=te.selectedItems)!=null&&s.length),Fn=!!g,Vn=Fn&&(Ut||_o&&ir),Qr=Se(R?.base,Z),ke=f.useMemo(()=>Zd({...u,isInvalid:Dt,isClearable:Nn,labelPlacement:wt,disableAnimation:d}),[yn(u),Dt,wt,d]);wc({isDisabled:!te.isOpen});const Mo=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:Dt,validationErrors:Ft,validationDetails:Oe}):c.errorMessage||Ft?.join(" "),jn=!!D||!!Mo,Pi=!!k;f.useEffect(()=>{if(te.isOpen&&xe.current&&we.current){let ne=we.current.getBoundingClientRect(),zn=xe.current;zn.style.width=ne.width+"px"}},[te.isOpen]);const O=f.useCallback((ne={})=>({"data-slot":"base","data-filled":ve(Ln),"data-has-value":ve(Ye),"data-has-label":ve(Fn),"data-has-helper":ve(jn),"data-has-end-content":ve(Pi),"data-invalid":ve(Dt),"data-has-label-outside":ve(Vn),className:ke.base({class:Se(Qr,ne.className)}),...ne}),[ke,jn,Ye,Fn,Vn,Ln,Qr]),X=f.useCallback((ne={})=>({ref:we,"data-slot":"trigger","data-open":ve(te.isOpen),"data-disabled":ve(e?.isDisabled),"data-focus":ve(cr),"data-pressed":ve(Wt),"data-focus-visible":ve(Jr),"data-hover":ve(Fe),className:ke.trigger({class:R?.trigger}),...Ve(qe,Ar,At,Tt(se,{enabled:ae}),Tt(ne))}),[ke,we,te.isOpen,R?.trigger,e?.isDisabled,cr,Wt,Jr,Fe,qe,Ar,At,se,ae]),oe=f.useCallback((ne={})=>({state:te,triggerRef:we,selectRef:ie,selectionMode:w,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:U,...ne}),[te,w,e?.label,e?.autoComplete,e?.name,e?.isDisabled,we]),ge=f.useCallback((ne={})=>({"data-slot":"label",className:ke.label({class:Se(R?.label,ne.className)}),...je,...ne}),[ke,R?.label,je]),re=f.useCallback((ne={})=>({"data-slot":"value",className:ke.value({class:Se(R?.value,ne.className)}),...Ke,...ne}),[ke,R?.value,Ke]),Me=f.useCallback((ne={})=>({"data-slot":"listboxWrapper",className:ke.listboxWrapper({class:Se(R?.listboxWrapper,ne?.className)}),style:{maxHeight:A??256,...ne.style},...Ve(Y.scrollShadowProps,ne)}),[ke.listboxWrapper,R?.listboxWrapper,Y.scrollShadowProps,A]),_e=(ne={})=>{const zn=b??te.collection.size>50;return{state:te,ref:De,isVirtualized:zn,virtualization:zn?{maxListboxHeight:A,itemHeight:M}:void 0,"data-slot":"listbox",className:ke.listbox({class:Se(R?.listbox,ne?.className)}),scrollShadowProps:Y.scrollShadowProps,...Ve(Y.listboxProps,ne,lt)}},Ce=f.useCallback((ne={})=>{var zn,b1;const sM=Ve(Y.popoverProps,ne);return{state:te,triggerRef:we,ref:xe,"data-slot":"popover",scrollRef:De,triggerType:"listbox",classNames:{content:ke.popoverContent({class:Se(R?.popoverContent,ne.className)})},...sM,offset:te.selectedItems&&te.selectedItems.length>0?te.selectedItems.length*1e-8+(((zn=Y.popoverProps)==null?void 0:zn.offset)||0):(b1=Y.popoverProps)==null?void 0:b1.offset}},[ke,R?.popoverContent,Y.popoverProps,we,te,te.selectedItems]),Ct=f.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":ve(!0),"data-open":ve(te.isOpen),className:ke.selectorIcon({class:R?.selectorIcon})}),[ke,R?.selectorIcon,te.isOpen]),tt=f.useCallback((ne={})=>({...ne,"data-slot":"innerWrapper",className:ke.innerWrapper({class:Se(R?.innerWrapper,ne?.className)})}),[ke,R?.innerWrapper]),ot=f.useCallback((ne={})=>({...ne,"data-slot":"helperWrapper",className:ke.helperWrapper({class:Se(R?.helperWrapper,ne?.className)})}),[ke,R?.helperWrapper]),Ht=f.useCallback((ne={})=>({...ne,...Te,"data-slot":"description",className:ke.description({class:Se(R?.description,ne?.className)})}),[ke,R?.description]),en=f.useCallback((ne={})=>({...ne,"data-slot":"mainWrapper",className:ke.mainWrapper({class:Se(R?.mainWrapper,ne?.className)})}),[ke,R?.mainWrapper]),Nr=f.useCallback((ne={})=>({...ne,"data-slot":"end-wrapper",className:ke.endWrapper({class:Se(R?.endWrapper,ne?.className)})}),[ke,R?.endWrapper]),Ot=f.useCallback((ne={})=>({...ne,"data-slot":"end-content",className:ke.endContent({class:Se(R?.endContent,ne?.className)})}),[ke,R?.endContent]),Si=f.useCallback((ne={})=>({...ne,...Ge,"data-slot":"error-message",className:ke.errorMessage({class:Se(R?.errorMessage,ne?.className)})}),[ke,Ge,R?.errorMessage]),yd=f.useCallback((ne={})=>({"aria-hidden":ve(!0),"data-slot":"spinner",color:"current",size:"sm",...z,...ne,ref:P,className:ke.spinner({class:Se(R?.spinner,ne?.className)})}),[ke,P,z,R?.spinner]),xd=f.useCallback((ne={})=>({...ne,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":ve(Pe),className:ke.clearButton({class:Se(R?.clearButton,ne?.className)}),...Ve(Mt,Vt)}),[ke,Pe,Mt,Vt,R?.clearButton]);return ey.set(te,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:Dt,validationBehavior:he}),{Component:de,domRef:ie,state:te,label:g,name:m,triggerRef:we,isLoading:x,placeholder:F,startContent:T,endContent:k,description:D,selectorIcon:v,hasHelper:jn,labelPlacement:wt,hasPlaceholder:ir,renderValue:E,selectionMode:w,disableAnimation:d,isOutsideLeft:Ut,shouldLabelBeOutside:_o,shouldLabelBeInside:Or,isInvalid:Dt,errorMessage:Mo,isClearable:Nn,getClearButtonProps:xd,getBaseProps:O,getTriggerProps:X,getLabelProps:ge,getValueProps:re,getListboxProps:_e,getPopoverProps:Ce,getSpinnerProps:yd,getMainWrapperProps:en,getListboxWrapperProps:Me,getHiddenSelectProps:oe,getInnerWrapperProps:tt,getHelperWrapperProps:ot,getDescriptionProps:Ht,getErrorMessageProps:Si,getSelectorIconProps:Ct,getEndWrapperProps:Nr,getEndContentProps:Ot}}var n3=typeof document<"u"?f.useLayoutEffect:()=>{};function o3(e){const t=f.useRef(null);return n3(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function i3(e,t,r){let n=f.useRef(t),o=o3(()=>{r&&r(n.current)});f.useEffect(()=>{var i;let s=(i=e?.current)==null?void 0:i.form;return s?.addEventListener("reset",o),()=>{s?.removeEventListener("reset",o)}},[e,o])}function s3(e,t,r){var n;let o=ey.get(t)||{},{autoComplete:i,name:s=o.name,isDisabled:a=o.isDisabled,selectionMode:l,onChange:c,form:u}=e,{validationBehavior:d,isRequired:h,isInvalid:p}=o,{visuallyHiddenProps:g}=Wv();return i3(e.selectRef,t.selectedKeys,t.setSelectedKeys),fb({validationBehavior:d,focus:()=>{var m;return(m=r.current)==null?void 0:m.focus()}},t,e.selectRef),{containerProps:{...g,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:u,autoComplete:i,disabled:a,"aria-invalid":p||void 0,"aria-required":h&&d==="aria"||void 0,required:h&&d==="native",name:s,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(m=>String(m)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:m=>{t.setSelectedKeys(m.target.value),c?.(m)}}}}function a3(e){var t;let{state:r,triggerRef:n,selectRef:o,label:i,name:s,isDisabled:a,form:l}=e,{containerProps:c,selectProps:u}=s3({...e,selectRef:o},r,n);return r.collection.size<=300?y.jsx("div",{...c,"data-testid":"hidden-select-container",children:y.jsxs("label",{children:[i,y.jsxs("select",{...u,ref:o,children:[y.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let h=r.collection.getItem(d);if(h?.type==="item")return y.jsx("option",{value:h.key,children:h.textValue},h.key)})]})]})}):s?y.jsx("input",{autoComplete:u.autoComplete,disabled:a,form:l,name:s,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}var l3=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},u3=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],c3=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},ty=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},gi=new WeakMap,Kt=[];function d3(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let h of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(h);let c=h=>{if(r.has(h)||h.parentElement&&n.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(h.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let h=u.nextNode();for(;h!=null;)i(h),h=u.nextNode()}},i=l=>{var c;let u=(c=gi.get(l))!=null?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),gi.set(l,u+1))};Kt.length&&Kt[Kt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});s.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:r,hiddenNodes:n,observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Kt.push(a),()=>{s.disconnect();for(let l of n){let c=gi.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),gi.delete(l)):gi.set(l,c-1))}a===Kt[Kt.length-1]?(Kt.pop(),Kt.length&&Kt[Kt.length-1].observe()):Kt.splice(Kt.indexOf(a),1)}}function f3(e){let t=Kt[Kt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var p3=Nk,Pt=p3;const Bc=new WeakMap;function h3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function m3(e,t){let r=Bc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${h3(t)}`}function g3(e,t,r){let n=Wr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:s}=e3({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=ai({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Bt(e.id);Bc.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:u}=pb({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:ze(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ze(u,s)})}}function v3(e,t,r){var n,o;let{key:i}=e,s=Bc.get(t);var a;let l=(a=e.isDisabled)!==null&&a!==void 0?a:t.selectionManager.isDisabled(i);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var d;let h=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:s?.shouldSelectOnPressUp;var p;let g=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:s?.shouldFocusOnHover;var m;let x=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:s?.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:s?.isVirtualized,S=xn(),C=xn(),T={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Ur()&&Ru()||(T["aria-label"]=e["aria-label"],T["aria-labelledby"]=S,T["aria-describedby"]=C);let k=t.collection.getItem(i);if($){let P=Number(k?.index);T["aria-posinset"]=Number.isNaN(P)?void 0:P+1,T["aria-setsize"]=Bk(t.collection)}let D=s?.onAction?()=>{var P;return s==null||(P=s.onAction)===null||P===void 0?void 0:P.call(s,i)}:void 0,E=m3(t,i),{itemProps:V,isPressed:F,isFocused:b,hasAction:M,allowsSelection:A}=Qk({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&g,isVirtualized:$,shouldUseVirtualFocus:x,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?wn(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:E}),{hoverProps:I}=Xs({isDisabled:l||!g,onHoverStart(){Gs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),N=Wr(k?.props);delete N.id;let w=NT(k?.props);return{optionProps:{...T,...ze(N,V,I,w),id:E},labelProps:{id:S},descriptionProps:{id:C},isFocused:b,isFocusVisible:b&&t.selectionManager.isFocused&&Gs(),isSelected:u,isDisabled:l,isPressed:F,allowsSelection:A,hasAction:M}}function b3(e){let{heading:t,"aria-label":r}=e,n=Bt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function y3(e){var t;const r=gt(),{ref:n,as:o,state:i,variant:s,color:a,onAction:l,children:c,onSelectionChange:u,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:h,className:p,topContent:g,bottomContent:m,emptyContent:x="No items.",hideSelectedIcon:v=!1,hideEmptyContent:$=!1,shouldHighlightOnFocus:S=!1,classNames:C,...T}=e,k=o||"ul",D=typeof k=="string",E=er(n),V=f0({...e,children:c,onSelectionChange:u}),F=i||V,{listBoxProps:b}=g3({...e,onAction:l},F,E),M=f.useMemo(()=>Cx(),[]),A=Se(C?.base,p);return{Component:k,state:F,variant:s,color:a,slots:M,classNames:C,topContent:g,bottomContent:m,emptyContent:x,hideEmptyContent:$,shouldHighlightOnFocus:S,hideSelectedIcon:v,disableAnimation:d,className:p,itemClasses:h,getBaseProps:(P={})=>({ref:E,"data-slot":"base",className:M.base({class:A}),...Tt(T,{enabled:D}),...P}),getListProps:(P={})=>({"data-slot":"list",className:M.list({class:C?.list}),...b,...P}),getEmptyContentProps:(P={})=>({"data-slot":"empty-content",children:x,className:M.emptyContent({class:C?.emptyContent}),...P})}}function x3(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:y.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var w3=700;function $3(){return Hn()||typeof window>"u"?!1:window.screen.width<=w3}function E3(e){var t,r;const n=gt(),[o,i]=qt(e,Yd.variantKeys),{as:s,item:a,state:l,description:c,startContent:u,endContent:d,isVirtualized:h,selectedIcon:p,className:g,classNames:m,autoFocus:x,onPress:v,onPressUp:$,onPressStart:S,onPressEnd:C,onPressChange:T,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:E=!1,isReadOnly:V=!1,...F}=o,b=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=f.useRef(null),A=s||(e.href?"a":"li"),I=typeof A=="string",{rendered:N,key:w}=a,P=l.disabledKeys.has(w)||e.isDisabled,_=l.selectionManager.selectionMode!=="none",B=$3(),{pressProps:L,isPressed:K}=Ir({ref:M,isDisabled:P,onClick:k,onPress:v,onPressUp:$,onPressStart:S,onPressEnd:C,onPressChange:T}),{isHovered:z,hoverProps:W}=Xs({isDisabled:P}),{isFocusVisible:U,focusProps:ee}=So({autoFocus:x}),{isFocused:Z,isSelected:R,optionProps:he,labelProps:fe,descriptionProps:Q}=v3({key:w,isDisabled:P,"aria-label":o["aria-label"],isVirtualized:h},l,M);let se=he;const q=f.useMemo(()=>Yd({...i,isDisabled:P,disableAnimation:b,hasTitleTextChild:typeof N=="string",hasDescriptionTextChild:typeof c=="string"}),[yn(i),P,b,N,c]),Y=Se(m?.base,g);V&&(se=lT(se));const de=D&&Z||(B?z||K:z||Z&&!U),ae=(te={})=>({ref:M,...Ve(se,V?{}:Ve(ee,L),W,Tt(F,{enabled:I}),te),"data-selectable":ve(_),"data-focus":ve(Z),"data-hover":ve(de),"data-disabled":ve(P),"data-selected":ve(R),"data-pressed":ve(K),"data-focus-visible":ve(U),className:q.base({class:Se(Y,te.className)})}),ie=(te={})=>({...Ve(fe,te),"data-label":ve(!0),className:q.title({class:m?.title})}),we=(te={})=>({...Ve(Q,te),className:q.description({class:m?.description})}),De=(te={})=>({...Ve(te),className:q.wrapper({class:m?.wrapper})}),xe=f.useCallback((te={})=>({"aria-hidden":ve(!0),"data-disabled":ve(P),className:q.selectedIcon({class:m?.selectedIcon}),...te}),[P,q,m]);return{Component:A,domRef:M,slots:q,classNames:m,isSelectable:_,isSelected:R,isDisabled:P,rendered:N,description:c,startContent:u,endContent:d,selectedIcon:p,hideSelectedIcon:E,disableAnimation:b,getItemProps:ae,getLabelProps:ie,getWrapperProps:De,getDescriptionProps:we,getSelectedIconProps:xe}}var ry=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:i,isDisabled:s,selectedIcon:a,startContent:l,endContent:c,hideSelectedIcon:u,disableAnimation:d,getItemProps:h,getLabelProps:p,getWrapperProps:g,getDescriptionProps:m,getSelectedIconProps:x}=E3(e),v=f.useMemo(()=>{const $=y.jsx(x3,{disableAnimation:d,isSelected:i});return typeof a=="function"?a({icon:$,isSelected:i,isDisabled:s}):a||$},[a,i,s,d]);return y.jsxs(t,{...h(),children:[l,n?y.jsxs("div",{...g(),children:[y.jsx("span",{...p(),children:r}),y.jsx("span",{...m(),children:n})]}):y.jsx("span",{...p(),children:r}),o&&!u&&y.jsx("span",{...x(),children:v}),c]})};ry.displayName="HeroUI.ListboxItem";var Rc=ry;function P3(e){let t=Tt(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function S3(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=P3({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Jd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}function ny(e){return f.forwardRef(e)}var C3=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]},oy=ny((e,t)=>{const{Component:r,getDividerProps:n}=S3({...e});return y.jsx(r,{ref:t,...n()})});oy.displayName="HeroUI.Divider";var T3=oy,iy=Re(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:i,className:s,classNames:a,hideSelectedIcon:l,showDivider:c=!1,dividerProps:u={},itemClasses:d,title:h,items:p,...g},m)=>{const x=r||"li",v=f.useMemo(()=>Tx(),[]),$=Se(a?.base,s),S=Se(a?.divider,u?.className),{itemProps:C,headingProps:T,groupProps:k}=b3({heading:e.rendered,"aria-label":e["aria-label"]});return y.jsxs(x,{"data-slot":"base",...Ve(C,g),className:v.base({class:$}),children:[e.rendered&&y.jsx("span",{...T,className:v.heading({class:a?.heading}),"data-slot":"heading",children:e.rendered}),y.jsxs("ul",{...k,className:v.group({class:a?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:E,props:V}=D;let F=y.jsx(Rc,{classNames:d,color:o,disableAnimation:i,hideSelectedIcon:l,item:D,state:t,variant:n,...V},E);return D.wrapper&&(F=D.wrapper(F)),F}),c&&y.jsx(T3,{as:"li",className:v.divider({class:S}),...u})]})]},e.key)});iy.displayName="HeroUI.ListboxSection";var sy=iy;function To(e,t,r){let n=r.initialDeps??[],o;return()=>{var i,s,a,l;let c;r.key&&((i=r.debug)!=null&&i.call(r))&&(c=Date.now());const u=e();if(!(u.length!==n.length||u.some((p,g)=>n[g]!==p)))return o;n=u;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),o=t(...u),r.key&&((a=r.debug)!=null&&a.call(r))){const p=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-h)*100)/100,m=g/16,x=(v,$)=>{for(v=String(v);v.length<$;)v=" "+v;return v};console.info(`%c⏱ ${x(g,5)} /${x(p,5)} ms`,`
412
+ }`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let c=l.target,u=l.relatedTarget;if(u&&el(u))u.focus({preventScroll:!0}),zg(u,el(c));else if(!u){var d;let p=(d=c.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let c=document.activeElement!=null&&el(document.activeElement);s.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&zg(this,c)};let a=on(dc(document,"touchstart",r,{passive:!1,capture:!0}),dc(document,"touchmove",o,{passive:!1,capture:!0}),dc(document,"blur",i,!0));return()=>{a(),n.remove(),HTMLElement.prototype.focus=s}}function cc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function dc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function zg(e,t){t||!ii?Bg(e):ii.addEventListener("resize",()=>Bg(e),{once:!0})}function Bg(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=bf(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let s=o.bottom;ii&&(s=Math.min(s,ii.offsetTop+ii.height));let a=i.top-o.top-((s-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+a)),behavior:"smooth"})}}r=n.parentElement}}const x4=f.createContext({});function w4(){var e;return(e=f.useContext(x4))!==null&&e!==void 0?e:{}}var Rg={};Rg={dismiss:"تجاهل"};var Kg={};Kg={dismiss:"Отхвърляне"};var Wg={};Wg={dismiss:"Odstranit"};var Ug={};Ug={dismiss:"Luk"};var Hg={};Hg={dismiss:"Schließen"};var Gg={};Gg={dismiss:"Απόρριψη"};var Zg={};Zg={dismiss:"Dismiss"};var qg={};qg={dismiss:"Descartar"};var Yg={};Yg={dismiss:"Lõpeta"};var Xg={};Xg={dismiss:"Hylkää"};var Jg={};Jg={dismiss:"Rejeter"};var Qg={};Qg={dismiss:"התעלם"};var ev={};ev={dismiss:"Odbaci"};var tv={};tv={dismiss:"Elutasítás"};var rv={};rv={dismiss:"Ignora"};var nv={};nv={dismiss:"閉じる"};var ov={};ov={dismiss:"무시"};var iv={};iv={dismiss:"Atmesti"};var sv={};sv={dismiss:"Nerādīt"};var av={};av={dismiss:"Lukk"};var lv={};lv={dismiss:"Negeren"};var uv={};uv={dismiss:"Zignoruj"};var cv={};cv={dismiss:"Descartar"};var dv={};dv={dismiss:"Dispensar"};var fv={};fv={dismiss:"Revocare"};var pv={};pv={dismiss:"Пропустить"};var hv={};hv={dismiss:"Zrušiť"};var mv={};mv={dismiss:"Opusti"};var gv={};gv={dismiss:"Odbaci"};var vv={};vv={dismiss:"Avvisa"};var bv={};bv={dismiss:"Kapat"};var yv={};yv={dismiss:"Скасувати"};var xv={};xv={dismiss:"取消"};var wv={};wv={dismiss:"關閉"};var $v={};$v={"ar-AE":Rg,"bg-BG":Kg,"cs-CZ":Wg,"da-DK":Ug,"de-DE":Hg,"el-GR":Gg,"en-US":Zg,"es-ES":qg,"et-EE":Yg,"fi-FI":Xg,"fr-FR":Jg,"he-IL":Qg,"hr-HR":ev,"hu-HU":tv,"it-IT":rv,"ja-JP":nv,"ko-KR":ov,"lt-LT":iv,"lv-LV":sv,"nb-NO":av,"nl-NL":lv,"pl-PL":uv,"pt-BR":cv,"pt-PT":dv,"ro-RO":fv,"ru-RU":pv,"sk-SK":hv,"sl-SI":mv,"sr-SP":gv,"sv-SE":vv,"tr-TR":bv,"uk-UA":yv,"zh-CN":xv,"zh-TW":wv};const Ev={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Pv(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=Rr({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...Ev,...t}:Ev,[n]);return{visuallyHiddenProps:{...i,style:s}}}function Cv(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=Pv(e);return f.createElement(r,Ie(i,s),t)}function $4(e){return e&&e.__esModule?e.default:e}function Zs(e){let{onDismiss:t,...r}=e,n=Fg($4($v),"@react-aria/overlays"),o=Qa(r,n.format("dismiss")),i=()=>{t&&t()};return f.createElement(Cv,null,f.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const E4=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let si=new WeakMap,Jt=[];function P4(e,t){let r=Ot(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n?.root)!==null&&o!==void 0?o:document.body,s=n?.shouldUseInert&&E4,a=new Set(e),l=new Set,c=g=>s&&g instanceof r.HTMLElement?g.inert:g.getAttribute("aria-hidden")==="true",u=(g,x)=>{s&&g instanceof r.HTMLElement?g.inert=x:x?g.setAttribute("aria-hidden","true"):(g.removeAttribute("aria-hidden"),g instanceof r.HTMLElement&&(g.inert=!1))},d=g=>{for(let C of g.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(C);let x=C=>{if(l.has(C)||a.has(C)||C.parentElement&&l.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let S of a)if(C.contains(S))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=document.createTreeWalker(g,NodeFilter.SHOW_ELEMENT,{acceptNode:x}),$=x(g);if($===NodeFilter.FILTER_ACCEPT&&p(g),$!==NodeFilter.FILTER_REJECT){let C=v.nextNode();for(;C!=null;)p(C),C=v.nextNode()}},p=g=>{var x;let v=(x=si.get(g))!==null&&x!==void 0?x:0;c(g)&&v===0||(v===0&&u(g,!0),l.add(g),si.set(g,v+1))};Jt.length&&Jt[Jt.length-1].disconnect(),d(i);let h=new MutationObserver(g=>{for(let x of g)if(x.type==="childList"&&![...a,...l].some(v=>v.contains(x.target)))for(let v of x.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&(v.dataset.liveAnnouncer==="true"||v.dataset.reactAriaTopLayer==="true")?a.add(v):v instanceof Element&&d(v)});h.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:a,hiddenNodes:l,observe(){h.observe(i,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return Jt.push(m),()=>{h.disconnect();for(let g of l){let x=si.get(g);x!=null&&(x===1?(u(g,!1),si.delete(g)):si.set(g,x-1))}m===Jt[Jt.length-1]?(Jt.pop(),Jt.length&&Jt[Jt.length-1].observe()):Jt.splice(Jt.indexOf(m),1)}}const Sv=f.createContext(null);function Tv(e){let t=Zn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=f.useState(!1),s=f.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=w4();if(!e.portalContainer&&a&&(r=a()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=f.createElement(SC,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=f.createElement(Sv.Provider,{value:s},f.createElement($C,null,l)),Kn.createPortal(l,r)}function kv(){let e=f.useContext(Sv),t=e?.setContain;Be(()=>{t?.(!0)},[t])}function Iv(e,t){let{role:r="dialog"}=e,n=nn();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){xn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),xn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),kv(),{dialogProps:{...lr(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var mr=typeof document<"u"&&window.visualViewport,C4=f.createContext(!1);function S4(){return!1}function T4(){return!0}function k4(e){return()=>{}}function I4(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(k4,S4,T4):f.useContext(C4)}function _4(){let e=I4(),[t,r]=f.useState(()=>e?{width:0,height:0}:_v());return f.useEffect(()=>{let n=()=>{r(o=>{let i=_v();return i.width===o.width&&i.height===o.height?o:i})};return mr?mr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{mr?mr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function _v(){return{width:mr&&mr?.width||window.innerWidth,height:mr&&mr?.height||window.innerHeight}}var Mv=()=>Promise.resolve().then(()=>yi).then(e=>e.default),Dv=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:i,domRef:s,slots:a,classNames:l,motionProps:c,backdrop:u,closeButton:d,hideCloseButton:p,disableAnimation:h,getDialogProps:m,getBackdropProps:g,getCloseButtonProps:x,onClose:v}=Ws(),$=t||i||"div",C=_4(),{dialogProps:S}=Iv({role:n},s),T=f.isValidElement(d)?f.cloneElement(d,x()):b.jsx("button",{...x(),children:b.jsx(Tm,{})}),k=f.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=m(Ve(S,o)),E=b.jsxs($,{...D,onKeyDown:Ks(D.onKeyDown,k),children:[b.jsx(Zs,{onDismiss:v}),!p&&T,typeof r=="function"?r(v):r,b.jsx(Zs,{onDismiss:v})]}),V=f.useMemo(()=>u==="transparent"?null:h?b.jsx("div",{...g()}):b.jsx(hn,{features:Mv,children:b.jsx(mn.div,{animate:"enter",exit:"exit",initial:"exit",variants:rc.fade,...g()})}),[u,h,g]),F={"--visual-viewport-height":C.height+"px"},y=h?b.jsx("div",{className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:F,children:E}):b.jsx(hn,{features:Mv,children:b.jsx(mn.div,{animate:"enter",className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:JT,...c,style:F,children:E})});return b.jsxs("div",{tabIndex:-1,children:[V,y]})};Dv.displayName="HeroUI.ModalContent";var M4=Dv,Av=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a}=Ws(),l=Rt(t),c=r||"footer";return b.jsx(c,{ref:l,className:s.footer({class:Pe(a?.footer,o)}),...i,children:n})});Av.displayName="HeroUI.ModalFooter";var D4=Av,Nv=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,headerId:l,setHeaderMounted:c}=Ws(),u=Rt(t),d=r||"header";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),b.jsx(d,{ref:u,className:s.header({class:Pe(a?.header,o)}),id:l,...i,children:n})});Nv.displayName="HeroUI.ModalHeader";var A4=Nv,gr=[];function Ov(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!gr.includes(t))return gr.push(t),()=>{let x=gr.indexOf(t);x>=0&&gr.splice(x,1)}},[i,t]);const c=()=>{gr[gr.length-1]===t&&s&&s()},u=x=>{(!l||l(x.target))&&(gr[gr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),g(t)!=="pressEnd"&&c())},d=x=>{(!l||l(x.target))&&(gr[gr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),c())},p=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),c())};PC({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:h}=Rr({isDisabled:!a,onBlurWithin:x=>{!x.relatedTarget||_C(x.relatedTarget)||(!l||l(x.relatedTarget))&&c()}}),m=x=>{x.target===x.currentTarget&&x.preventDefault()};function g(x){const v=x.current;if(!v)return"unknown";const $=(v.getAttribute("role")||"").toLowerCase(),C=v.getAttribute("aria-modal");return($==="dialog"||$==="alertdialog")&&(C===null||C.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes($)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:m}}}function N4(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=Ov({...e,isOpen:t.isOpen,onClose:t.close},r);return uc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),kv(),f.useEffect(()=>{if(t.isOpen&&r.current)return P4([r.current])},[t.isOpen,r]),{modalProps:Ie(n),underlayProps:o}}function fc(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:p,target:h,rel:m,type:g="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:g,disabled:n}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:$,isPressed:C}=fr({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:S}=wn(e,t);u&&(S.tabIndex=n?-1:S.tabIndex);let T=Ie(S,$,lr(e,{labelable:!0}));return{isPressed:C,buttonProps:Ie(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function qs(e){let[t,r]=Er(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=f.useCallback(()=>{r(!0)},[r]),o=f.useCallback(()=>{r(!1)},[r]),i=f.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function O4(e){var t,r,n;const o=gt(),[i,s]=Bt(e,Bd.variantKeys),{ref:a,as:l,className:c,classNames:u,isOpen:d,defaultOpen:p,onOpenChange:h,motionProps:m,closeButton:g,isDismissable:x=!0,hideCloseButton:v=!1,shouldBlockScroll:$=!0,portalContainer:C,isKeyboardDismissDisabled:S=!1,onClose:T,...k}=i,D=l||"section",E=Rt(a),V=f.useRef(null),[F,y]=f.useState(!1),[M,A]=f.useState(!1),I=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,N=f.useId(),w=f.useId(),P=f.useId(),_=qs({isOpen:d,defaultOpen:p,onOpenChange:ue=>{h?.(ue),ue||T?.()}}),{modalProps:B,underlayProps:L}=N4({isDismissable:x,shouldBlockScroll:$,isKeyboardDismissDisabled:S},_,E),{buttonProps:K}=fc({onPress:_.close},V),{isFocusVisible:z,focusProps:W}=Pn(),U=Pe(u?.base,c),ee=f.useMemo(()=>Bd({...s,disableAnimation:I}),[Zr(s),I]),G=(ue={},Q=null)=>{var se;return{ref:tc(Q,E),...Ve(B,k,ue),className:ee.base({class:Pe(U,ue.className)}),id:N,"data-open":he(_.isOpen),"data-dismissable":he(x),"aria-modal":he(!0),"data-placement":(se=e?.placement)!=null?se:"right","aria-labelledby":F?w:void 0,"aria-describedby":M?P:void 0}},R=f.useCallback((ue={})=>({className:ee.backdrop({class:u?.backdrop}),...L,...ue}),[ee,u,L]),me=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":he(z),className:ee.closeButton({class:u?.closeButton}),...Ve(K,W)});return{Component:D,slots:ee,domRef:E,headerId:w,bodyId:P,motionProps:m,classNames:u,isDismissable:x,closeButton:g,hideCloseButton:v,portalContainer:C,shouldBlockScroll:$,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:_.isOpen,onClose:_.close,disableAnimation:I,setBodyMounted:A,setHeaderMounted:y,getDialogProps:G,getBackdropProps:R,getCloseButtonProps:me}}var Lv=Re((e,t)=>{const{children:r,...n}=e,o=O4({...n,ref:t}),i=b.jsx(Tv,{portalContainer:o.portalContainer,children:r});return b.jsx(YT,{value:o,children:o.disableAnimation&&o.isOpen?i:b.jsx(Uo,{children:o.isOpen?i:null})})});Lv.displayName="HeroUI.Modal";var L4=Lv,_n=globalThis?.document?f.useLayoutEffect:f.useEffect;function F4(e,t=[]){const r=f.useRef(e);return _n(()=>{r.current=e}),f.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function Fv({filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n}){const[o,i]=f.useState(!1),s=f.useMemo(()=>t.reduce((a,l)=>{const c=Nm(e,l.id);return!c||c.type==="hidden"?a:a+1},0),[t,e]);return b.jsxs(b.Fragment,{children:[b.jsxs(ti,{className:j("group gap-1 border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-white transition-colors leading-none font-semibold text-base",n?.button),variant:"bordered",color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,onPress:()=>i(!0),startContent:b.jsx(cg,{size:16,className:"stroke-primary-600 group-hover:stroke-white"}),children:["Filters",s>0&&` (${s})`]}),b.jsx(L4,{isOpen:o,onOpenChange:i,placement:"bottom-center",scrollBehavior:"inside",portalContainer:document.getElementsByClassName("mobielnl-elements")[0],classNames:{backdrop:j(n?.modal?.backdrop),wrapper:j(n?.modal?.wrapper),base:j(n?.modal?.base),header:j("flex items-center gap-1 text-foreground",n?.modal?.header),body:j(n?.modal?.body),footer:j(n?.modal?.footer),closeButton:j("cursor-pointer right-6 top-3.5 text-foreground hover:bg-foreground-50 active:bg-foreground-50",n?.modal?.closeButton)},children:b.jsx(M4,{children:a=>b.jsxs(b.Fragment,{children:[b.jsxs(A4,{children:[b.jsx(cg,{size:20,className:"stroke-foreground"}),"Filters"]}),b.jsx(XT,{children:b.jsx(Ec,{filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n?.filters})}),b.jsx(D4,{children:b.jsx(ti,{className:j("bg-primary-600 text-base font-medium",n?.modal?.primaryButton),color:"primary",variant:"solid",radius:"full",onPress:a,fullWidth:!0,disableAnimation:!0,children:"Toon resultaten"})})]})})})]})}const pc=new WeakMap;function hc(e,t){let r=pc.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function mc(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Nt(t);let s=Nt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Qa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function Vv(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=mc(e),a=nn([!!t,!!r,n,o]),l=nn([!!t,!!r,n,o]);return s=Ie(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function V4(e,t,r){let{labelProps:n,fieldProps:o}=mc(e),i=e.orientation==="vertical";var s;pc.set(t,{id:(s=n.id)!==null&&s!==void 0?s:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Lo(),{addGlobalListener:l,removeGlobalListener:c}=ln();const u=f.useRef(null),d=a==="rtl",p=f.useRef(null),{moveProps:h}=Qh({onMoveStart(){p.current=null},onMove({deltaX:v,deltaY:$}){if(!r.current)return;let{height:C,width:S}=r.current.getBoundingClientRect(),T=i?C:S;p.current==null&&u.current!=null&&(p.current=t.getThumbPercent(u.current)*T);let k=i?$:v;if((i||d)&&(k=-k),p.current+=k,u.current!=null&&r.current){const D=Pr(p.current/T,0,1);t.setThumbPercent(u.current,D)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let m=f.useRef(void 0),g=(v,$,C,S)=>{if(r.current&&!e.isDisabled&&t.values.every((T,k)=>!t.isThumbDragging(k))){let{height:T,width:k,top:D,left:E}=r.current.getBoundingClientRect(),V=i?T:k,A=((i?S:C)-(i?D:E))/V;(a==="rtl"||i)&&(A=1-A);let I=t.getPercentValue(A),N,w=t.values.findIndex(P=>I-P<0);if(w===0)N=w;else if(w===-1)N=t.values.length-1;else{let P=t.values[w-1],_=t.values[w];Math.abs(P-I)<Math.abs(_-I)?N=w-1:N=w}N>=0&&t.isThumbEditable(N)?(v.preventDefault(),u.current=N,t.setFocusedThumb(N),m.current=$,t.setThumbDragging(u.current,!0),t.setThumbValue(N,I),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):u.current=null}},x=v=>{var $,C;((C=v.pointerId)!==null&&C!==void 0?C:($=v.changedTouches)===null||$===void 0?void 0:$[0].identifier)===m.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",x,!1),c(window,"touchend",x,!1),c(window,"pointerup",x,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var v;(v=document.getElementById(hc(t,0)))===null||v===void 0||v.focus(),Es("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:Ie({onMouseDown(v){v.button!==0||v.altKey||v.ctrlKey||v.metaKey||g(v,void 0,v.clientX,v.clientY)},onPointerDown(v){v.pointerType==="mouse"&&(v.button!==0||v.altKey||v.ctrlKey||v.metaKey)||g(v,v.pointerId,v.clientX,v.clientY)},onTouchStart(v){g(v,v.changedTouches[0].identifier,v.changedTouches[0].clientX,v.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map((v,$)=>hc(t,$)).join(" "),"aria-live":"off"}}}function j4(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:i,trackRef:s,inputRef:a,orientation:l=t.orientation,name:c,form:u}=e,d=e.isDisabled||t.isDisabled,p=l==="vertical",{direction:h}=Lo(),{addGlobalListener:m,removeGlobalListener:g}=ln(),x=pc.get(t);var v;const{labelProps:$,fieldProps:C}=mc({...e,id:hc(t,r),"aria-labelledby":`${x.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),S=t.values[r],T=f.useCallback(()=>{a.current&&Zt(a.current)},[a]),k=t.focusedThumb===r;f.useEffect(()=>{k&&T()},[k,T]);let D=h==="rtl",E=f.useRef(null),{keyboardProps:V}=Xh({onKeyDown(P){let{getThumbMaxValue:_,getThumbMinValue:B,decrementThumb:L,incrementThumb:K,setThumbValue:z,setThumbDragging:W,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(P.key)){P.continuePropagation();return}switch(P.preventDefault(),W(r,!0),P.key){case"PageUp":K(r,U);break;case"PageDown":L(r,U);break;case"Home":z(r,B(r));break;case"End":z(r,_(r));break}W(r,!1)}}),{moveProps:F}=Qh({onMoveStart(){E.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:P,deltaY:_,pointerType:B,shiftKey:L}){const{getThumbPercent:K,setThumbPercent:z,decrementThumb:W,incrementThumb:U,step:ee,pageSize:G}=t;if(!s.current)return;let{width:R,height:me}=s.current.getBoundingClientRect(),ue=p?me:R;if(E.current==null&&(E.current=K(r)*ue),B==="keyboard")P>0&&D||P<0&&!D||_>0?W(r,L?G:ee):U(r,L?G:ee);else{let Q=p?_:P;(p||D)&&(Q=-Q),E.current+=Q,z(r,Pr(E.current/ue,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:y}=wn(Ie(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),a);let M=f.useRef(void 0),A=P=>{T(),M.current=P,t.setThumbDragging(r,!0),m(window,"mouseup",I,!1),m(window,"touchend",I,!1),m(window,"pointerup",I,!1)},I=P=>{var _,B;((B=P.pointerId)!==null&&B!==void 0?B:(_=P.changedTouches)===null||_===void 0?void 0:_[0].identifier)===M.current&&(T(),t.setThumbDragging(r,!1),g(window,"mouseup",I,!1),g(window,"touchend",I,!1),g(window,"pointerup",I,!1))},N=t.getThumbPercent(r);(p||h==="rtl")&&(N=1-N);let w=d?{}:Ie(V,F,{onMouseDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A()},onPointerDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A(P.pointerId)},onTouchStart:P=>{A(P.changedTouches[0].identifier)}});return Wi(a,t.defaultValues[r],P=>{t.setThumbValue(r,P)}),{inputProps:Ie(y,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:S,name:c,form:u,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:P=>{t.setThumbValue(r,parseFloat(P.target.value))}}),thumbProps:{...w,style:{position:"absolute",[p?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function z4(e){const{ref:t,as:r,state:n,index:o,name:i,trackRef:s,className:a,tooltipProps:l,isVertical:c,showTooltip:u,getTooltipValue:d,formatOptions:p,renderThumb:h,...m}=e,g=r||"div",x=zt(t),v=f.useRef(null),$=Cf(p),{thumbProps:C,inputProps:S,isDragging:T,isFocused:k}=j4({index:o,trackRef:s,inputRef:v,name:i,...m},n),{hoverProps:D,isHovered:E}=Sn({isDisabled:n.isDisabled}),{focusProps:V,isFocusVisible:F}=Tn(),{pressProps:y,isPressed:M}=Ms({isDisabled:n.isDisabled});return{Component:g,index:o,showTooltip:u,renderThumb:h,getThumbProps:(w={})=>({ref:x,"data-slot":"thumb","data-hover":pe(E),"data-pressed":pe(M),"data-dragging":pe(T),"data-focused":pe(k),"data-focus-visible":pe(F),"aria-label":w["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...mt(C,y,D,m),className:a,...w}),getTooltipProps:()=>{const w=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],P=$&&typeof w=="number"?$.format(w):w;return{...l,placement:l?.placement?l?.placement:c?"right":"top",content:l?.content?l?.content:P,updatePositionDeps:[T,E,k,F,P],isOpen:l?.isOpen!==void 0?l?.isOpen:E||T||k||F,role:"tooltip","aria-label":`Current value: ${P}`}},getInputProps:(w={})=>({ref:v,...mt(S,V),...w})}}const B4=1500,jv=500;let Mn={},R4=0,ai=!1,Ir=null,Dn=null;function K4(e={}){let{delay:t=B4,closeDelay:r=jv}=e,{isOpen:n,open:o,close:i}=qs(e),s=f.useMemo(()=>`${++R4}`,[]),a=f.useRef(null),l=f.useRef(i),c=()=>{Mn[s]=p},u=()=>{for(let m in Mn)m!==s&&(Mn[m](!0),delete Mn[m])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,u(),c(),ai=!0,o(),Ir&&(clearTimeout(Ir),Ir=null),Dn&&(clearTimeout(Dn),Dn=null)},p=m=>{m||r<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},r)),Ir&&(clearTimeout(Ir),Ir=null),ai&&(Dn&&clearTimeout(Dn),Dn=setTimeout(()=>{delete Mn[s],Dn=null,ai=!1},Math.max(jv,r)))},h=()=>{u(),c(),!n&&!Ir&&!ai?Ir=setTimeout(()=>{Ir=null,ai=!0,d()},t):n||d()};return f.useEffect(()=>{l.current=i},[i]),f.useEffect(()=>()=>{a.current&&clearTimeout(a.current),Mn[s]&&delete Mn[s]},[s]),{isOpen:n,open:m=>{!m&&t>0&&!a.current?h():d()},close:p}}function W4(e,t){let r=lr(e,{labelable:!0}),{hoverProps:n}=$n({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Ie(r,n,{role:"tooltip"})}}function U4(e,t,r){let{isDisabled:n,trigger:o}=e,i=Nt(),s=f.useRef(!1),a=f.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},c=v=>{!s.current&&!a.current&&t.close(v)};f.useEffect(()=>{let v=$=>{r&&r.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[r,t]);let u=()=>{o!=="focus"&&(Xo()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,c())},p=()=>{a.current=!1,s.current=!1,c(!0)},h=()=>{mo()&&(a.current=!0,l())},m=()=>{a.current=!1,s.current=!1,c(!0)},{hoverProps:g}=$n({isDisabled:n,onHoverStart:u,onHoverEnd:d}),{focusableProps:x}=wn({isDisabled:n,onFocus:h,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Ie(x,g,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:i}}}var H4=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},G4=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],zv=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},vr=[];function Z4(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!vr.includes(t))return vr.push(t),()=>{let g=vr.indexOf(t);g>=0&&vr.splice(g,1)}},[i,t]);const c=()=>{vr[vr.length-1]===t&&s&&s()},u=g=>{(!l||l(g.target))&&(vr[vr.length-1]===t&&r&&(g.stopPropagation(),g.preventDefault()),c())},d=g=>{(!l||l(g.target))&&(vr[vr.length-1]===t&&r&&(g.stopPropagation(),g.preventDefault()),c())},p=g=>{g.key==="Escape"&&!o&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),c())};tS({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:h}=wm({isDisabled:!a,onBlurWithin:g=>{!g.relatedTarget||oS(g.relatedTarget)||(!l||l(g.relatedTarget))&&c()}}),m=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:m}}}function q4(e){var t,r;const n=gt(),[o,i]=Bt(e,Mi.variantKeys),{ref:s,as:a,isOpen:l,content:c,children:u,defaultOpen:d,onOpenChange:p,isDisabled:h,trigger:m,shouldFlip:g=!0,containerPadding:x=12,placement:v="top",delay:$=0,closeDelay:C=500,showArrow:S=!1,offset:T=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:E=!0,portalContainer:V,isKeyboardDismissDisabled:F=!1,updatePositionDeps:y=[],shouldCloseOnInteractOutside:M,className:A,onClose:I,motionProps:N,classNames:w,...P}=o,_=a||"div",B=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,L=K4({delay:$,closeDelay:C,isDisabled:h,defaultOpen:d,isOpen:l,onOpenChange:oe=>{p?.(oe),oe||I?.()}}),K=f.useRef(null),z=f.useRef(null),W=f.useId(),U=L.isOpen&&!h;f.useImperativeHandle(s,()=>Sx(z));const{triggerProps:ee,tooltipProps:G}=U4({isDisabled:h,trigger:m},L,K),{tooltipProps:R}=W4({isOpen:U,...mt(o,G)},L),{overlayProps:me,placement:ue,updatePosition:Q}=oC({isOpen:U,targetRef:K,placement:G4(v),overlayRef:z,offset:S?T+3:T,crossOffset:k,shouldFlip:g,containerPadding:x});_n(()=>{y.length&&Q()},y);const{overlayProps:se}=Z4({isOpen:U,onClose:L.close,isDismissable:D,shouldCloseOnBlur:E,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:M},z),q=f.useMemo(()=>{var oe,be,Me;return Mi({...i,disableAnimation:B,radius:(oe=e?.radius)!=null?oe:"md",size:(be=e?.size)!=null?be:"md",shadow:(Me=e?.shadow)!=null?Me:"sm"})},[rn(i),B,e?.radius,e?.size,e?.shadow]),X=f.useCallback((oe={},be=null)=>({...mt(ee,oe),ref:tf(be,K),"aria-describedby":U?W:void 0}),[ee,U,W,L]),le=f.useCallback(()=>({ref:z,"data-slot":"base","data-open":pe(U),"data-arrow":pe(S),"data-disabled":pe(h),"data-placement":zv(ue||"top",v),...mt(R,se,P),style:mt(me.style,P.style,o.style),className:q.base({class:w?.base}),id:W}),[q,U,S,h,ue,v,R,se,P,me,o,W]),ae=f.useCallback(()=>({"data-slot":"content","data-open":pe(U),"data-arrow":pe(S),"data-disabled":pe(h),"data-placement":zv(ue||"top",v),className:q.content({class:Ke(w?.content,A)})}),[q,U,S,h,ue,v,w]);return{Component:_,content:c,children:u,isOpen:U,triggerRef:K,showArrow:S,portalContainer:V,placement:v,disableAnimation:B,isDisabled:h,motionProps:N,getTooltipContentProps:ae,getTriggerProps:X,getTooltipProps:le}}var Y4={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}}},X4=()=>Promise.resolve().then(()=>yi).then(e=>e.default),Bv=Re((e,t)=>{var r;const{Component:n,children:o,content:i,isOpen:s,portalContainer:a,placement:l,disableAnimation:c,motionProps:u,getTriggerProps:d,getTooltipProps:p,getTooltipContentProps:h}=q4({...e,ref:t});let m;try{if(f.Children.count(o)!==1)throw new Error;if(!f.isValidElement(o))m=b.jsx("p",{...d(),children:o});else{const T=o,k=(r=T.props.ref)!=null?r:T.ref;m=f.cloneElement(T,d(T.props,k))}}catch{m=b.jsx("span",{}),Ai("Tooltip must have only one child node. Please, check your code.")}const{ref:g,id:x,style:v,...$}=p(),C=b.jsx("div",{ref:g,id:x,style:v,children:b.jsx(mn.div,{animate:"enter",exit:"exit",initial:"exit",variants:Y4.scaleSpring,...mt(u,$),style:{...H4(l)},children:b.jsx(n,{...h(),children:i})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return b.jsxs(b.Fragment,{children:[m,c?s&&b.jsx(lm,{portalContainer:a,children:b.jsx("div",{ref:g,id:x,style:v,...$,children:b.jsx(n,{...h(),children:i})})}):b.jsx(hn,{features:X4,children:b.jsx(Uo,{children:s&&b.jsx(lm,{portalContainer:a,children:C})})})]})});Bv.displayName="HeroUI.Tooltip";var J4=Bv,Rv=Re((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:i,getTooltipProps:s,getThumbProps:a,getInputProps:l}=z4({...e,ref:t}),c={...a(),index:n,children:b.jsx(WC,{children:b.jsx("input",{...l()})})},u=Wa({Component:r,props:c,renderCustom:o});return i?b.jsx(J4,{...s(),children:u}):u});Rv.displayName="HeroUI.SliderThumb";var Q4=Rv;const e5=0,t5=100,r5=1;function n5(e){const{isDisabled:t=!1,minValue:r=e5,maxValue:n=t5,numberFormatter:o,step:i=r5,orientation:s="horizontal"}=e;let a=f.useMemo(()=>{let z=(n-r)/10;return z=Vo(z,0,z+i,i),Math.max(z,i)},[i,n,r]),l=f.useCallback(z=>z?.map((W,U)=>{let ee=U===0?r:z[U-1],G=U===z.length-1?n:z[U+1];return Vo(W,ee,G,i)}),[r,n,i]),c=f.useMemo(()=>l(Wv(e.value)),[e.value,l]),u=f.useMemo(()=>{var z;return l((z=Wv(e.defaultValue))!==null&&z!==void 0?z:[r])},[e.defaultValue,r,l]),d=Uv(e.value,e.defaultValue,e.onChange),p=Uv(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=Er(c,u,d);let[g]=f.useState(h);const[x,v]=f.useState(new Array(h.length).fill(!1)),$=f.useRef(new Array(h.length).fill(!0)),[C,S]=f.useState(void 0),T=f.useRef(h),k=f.useRef(x);let D=z=>{T.current=z,m(z)},E=z=>{k.current=z,v(z)};function V(z){return(z-r)/(n-r)}function F(z){return z===0?r:h[z-1]}function y(z){return z===h.length-1?n:h[z+1]}function M(z){return $.current[z]}function A(z,W){$.current[z]=W}function I(z,W){if(t||!M(z))return;const U=F(z),ee=y(z);W=Vo(W,U,ee,i);let G=Kv(T.current,z,W);D(G)}function N(z,W){if(t||!M(z))return;W&&(T.current=h);const U=k.current[z];k.current=Kv(k.current,z,W),E(k.current),p&&U&&!k.current.some(Boolean)&&p(T.current)}function w(z){return o.format(z)}function P(z,W){I(z,B(W))}function _(z){return Math.round((z-r)/i)*i+r}function B(z){const W=z*(n-r)+r;return Pr(_(W),r,n)}function L(z,W=1){let U=Math.max(W,i);I(z,Vo(h[z]+U,r,n,i))}function K(z,W=1){let U=Math.max(W,i);I(z,Vo(h[z]-U,r,n,i))}return{values:h,defaultValues:e.defaultValue!==void 0?u:g,getThumbValue:z=>h[z],setThumbValue:I,setThumbPercent:P,isThumbDragging:z=>x[z],setThumbDragging:N,focusedThumb:C,setFocusedThumb:S,getThumbPercent:z=>V(h[z]),getValuePercent:V,getThumbValueLabel:z=>w(h[z]),getFormattedValue:w,getThumbMinValue:F,getThumbMaxValue:y,getPercentValue:B,isThumbEditable:M,setThumbEditable:A,incrementThumb:L,decrementThumb:K,step:i,pageSize:a,orientation:s,isDisabled:t}}function Kv(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function Wv(e){if(e!=null)return Array.isArray(e)?e:[e]}function Uv(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function o5(e){var t,r,n,o;const i=gt(),[s,a]=Bt(e,Ba.variantKeys),{ref:l,as:c,name:u,label:d,formatOptions:p,value:h,maxValue:m=100,minValue:g=0,step:x=1,showSteps:v=!1,showTooltip:$=!1,orientation:C="horizontal",marks:S=[],startContent:T,endContent:k,fillOffset:D,className:E,classNames:V,renderThumb:F,renderLabel:y,renderValue:M,onChange:A,onChangeEnd:I,getValue:N,getTooltipValue:w,tooltipValueFormatOptions:P=p,tooltipProps:_={},...B}=s,L=g===m;L&&Ai("Min and max values should not be the same. This may cause unexpected behavior.");const K=c||"div",z=typeof K=="string",W=(r=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,U=zt(l),ee=f.useRef(null),G=Cf(p),{direction:R}=Lo(),me=f.useCallback(Ce=>Math.min(Math.max(Ce,g),m),[g,m]),ue=f.useMemo(()=>{if(L)return g;if(h!==void 0)return Array.isArray(h)?h.map(me):me(h)},[h,me,L,g]),Q=n5({...B,value:ue,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:C,step:x,minValue:g,maxValue:m,numberFormatter:G,onChange:A,onChangeEnd:I}),se={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Ba.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,..._},{groupProps:q,trackProps:X,labelProps:le,outputProps:ae}=V4(e,Q,ee),{isHovered:oe,hoverProps:be}=Sn({isDisabled:e.isDisabled}),Me=Ke(V?.base,E),ye=C==="vertical",te=S?.length>0,je=D===void 0?Q.values.length===1:!1,xe=f.useMemo(()=>Ba({...a,hasMarks:te,disableAnimation:W,hasSingleThumb:je,isVertical:ye}),[rn(a),ye,W,je,te]),[We,lt]=[Q.values.length>1?Q.getThumbPercent(0):D!==void 0?Q.getValuePercent(D):0,Q.getThumbPercent(Q.values.length-1)].sort(),Te=Q.values.length===1?G.format(Q.values[0]):G.formatRange(Q.values[0],Q.values[Q.values.length-1]),Ge=v?Math.floor((m-g)/x)+1:0;return{Component:K,state:Q,value:Te,domRef:U,label:d,steps:Ge,marks:S,startContent:T,endContent:k,getStepProps:Ce=>{const ze=Q.getValuePercent(Ce*x+g);return{className:xe.step({class:V?.step}),"data-slot":"step","data-in-range":ze<=lt&&ze>=We,style:{[ye?"bottom":R==="rtl"?"right":"left"]:`${ze*100}%`}}},getBaseProps:(Ce={})=>({ref:U,"data-orientation":Q.orientation,"data-slot":"base","data-hover":oe,className:xe.base({class:Me}),...mt(q,be,ut(B,{enabled:z}),ut(Ce))}),getValue:N,renderLabel:y,renderValue:M,getTrackWrapperProps:(Ce={})=>({"data-slot":"track-wrapper",className:xe.trackWrapper({class:V?.trackWrapper}),...Ce}),getLabelWrapperProps:(Ce={})=>({className:xe.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...Ce}),getLabelProps:(Ce={})=>({"data-slot":"label",className:xe.label({class:V?.label}),children:d,...le,...Ce}),getValueProps:(Ce={})=>({"data-slot":"value",className:xe.value({class:V?.value}),children:N&&typeof N=="function"?N(Q.values):Te,...ae,...Ce}),getTrackProps:(Ce={})=>{const ze=(lt-We)*100;return{ref:ee,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":ye,...je?{"data-fill-start":ze>0,"data-fill-end":ze==100}:{"data-fill-start":We==0,"data-fill-end":We*100+ze==100},className:xe.track({class:V?.track}),...X,...Ce}},getFillerProps:(Ce={})=>({"data-slot":"filler",className:xe.filler({class:V?.filler}),...Ce,style:{...Ce.style,[ye?"bottom":R==="rtl"?"right":"left"]:`${We*100}%`,...ye?{height:`${(lt-We)*100}%`}:{width:`${(lt-We)*100}%`}}}),getThumbProps:Ce=>({name:u,index:Ce,state:Q,trackRef:ee,orientation:C,isVertical:ye,tooltipProps:se,getTooltipValue:w,showTooltip:$,renderThumb:F,formatOptions:P,className:xe.thumb({class:V?.thumb})}),getMarkProps:Ce=>{const ze=Q.getValuePercent(Ce.value);return{className:xe.mark({class:V?.mark}),"data-slot":"mark","data-in-range":ze<=lt&&ze>=We,style:{[ye?"bottom":R==="rtl"?"right":"left"]:`${ze*100}%`},onMouseDown:Mt=>Mt.stopPropagation(),onPointerDown:Mt=>Mt.stopPropagation(),onClick:Mt=>{if(Mt.stopPropagation(),!L)if(Q.values.length===1)Q.setThumbPercent(0,ze);else{const $t=Q.values[0],er=Q.values[1];Ce.value<$t?Q.setThumbPercent(0,ze):Ce.value>er?Q.setThumbPercent(1,ze):Math.abs(Ce.value-$t)<Math.abs(Ce.value-er)?Q.setThumbPercent(0,ze):Q.setThumbPercent(1,ze)}}}},getStartContentProps:(Ce={})=>({"data-slot":"startContent",className:xe.startContent({class:V?.startContent}),...Ce}),getEndContentProps:(Ce={})=>({"data-slot":"endContent",className:xe.endContent({class:V?.endContent}),...Ce})}}var Hv=Re((e,t)=>{const{Component:r,state:n,label:o,steps:i,marks:s,startContent:a,endContent:l,getStepProps:c,getBaseProps:u,renderValue:d,renderLabel:p,getTrackWrapperProps:h,getLabelWrapperProps:m,getLabelProps:g,getValueProps:x,getTrackProps:v,getFillerProps:$,getThumbProps:C,getMarkProps:S,getStartContentProps:T,getEndContentProps:k}=o5({...e,ref:t});return b.jsxs(r,{...u(),children:[o&&b.jsxs("div",{...m(),children:[Wa({Component:"label",props:g(),renderCustom:p}),Wa({Component:"output",props:x(),renderCustom:d})]}),b.jsxs("div",{...h(),children:[a&&b.jsx("div",{...T(),children:a}),b.jsxs("div",{...v(),children:[b.jsx("div",{...$()}),Number.isFinite(i)&&Array.from({length:i},(D,E)=>b.jsx("div",{...c(E)},E)),n.values.map((D,E)=>b.jsx(Q4,{...C(E)},E)),s?.length>0&&s.map((D,E)=>b.jsx("div",{...S(D),children:D.label},E))]}),l&&b.jsx("div",{...k(),children:l})]})]})});Hv.displayName="HeroUI.Slider";var gc=Hv;function i5({min:e,max:t,step:r,value:n,options:o,maxOptionValue:i,marks:s,formatType:a,onChange:l,classNames:c}){const{to:u}=Hr(n),[d,p]=f.useState(u??t);return f.useEffect(()=>{n||p(t)},[n,t]),b.jsx(gc,{size:"sm",step:r,hideValue:!0,label:`Tot ${nr(d,a)}`,minValue:e,maxValue:i,value:d===t?i:d,onChange:h=>{if(typeof h=="number"){if(h>=i)return p(t);p(Gr(h,o))}},onChangeEnd:h=>{if(typeof h=="number"){if(h>=i)return l(`-${t}`);l(`-${Gr(h,o)}`)}},marks:s,classNames:c})}function s5({min:e,max:t,step:r,value:n,options:o,maxOptionValue:i,marks:s,formatType:a,onChange:l,classNames:c}){const{from:u}=Hr(n),[d,p]=f.useState(u??e);return f.useEffect(()=>{n||p(e)},[n,e]),b.jsx(gc,{size:"sm",step:r,hideValue:!0,label:`Vanaf ${nr(d,a)}`,minValue:e,maxValue:i,value:d===t?i:d,onChange:h=>{if(typeof h=="number"){if(h>=i)return p(t);p(Gr(h,o))}},onChangeEnd:h=>{if(typeof h=="number"){if(h>=i)return l(`${t}-`);l(`${Gr(h,o)}-`)}},marks:s,classNames:c})}const Gv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Zv={...Gv,customError:!0,valid:!1},li={isInvalid:!1,validationDetails:Gv,validationErrors:[]},qv=f.createContext({}),Yv="__formValidationState"+Date.now();function Xv(e){if(e[Yv]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[Yv];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return a5(e)}function a5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Zv}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=l5(s,o);return Jv(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(qv),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>vc(u[F])):vc(u[n]):[],[u,n]),[p,h]=f.useState(u),[m,g]=f.useState(!1);u!==p&&(h(u),g(!1));let x=f.useMemo(()=>Jv(m?[]:d),[m,d]),v=f.useRef(li),[$,C]=f.useState(li),S=f.useRef(li),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;bc(F,S.current)||(S.current=F,C(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||li,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!bc($,F)?C(F):v.current=F},resetValidation(){let F=li;bc(F,S.current)||(S.current=F,C(F)),a==="native"&&D(!1),g(!0)},commitValidation(){a==="native"&&D(!0),g(!0)}}}function vc(e){return e?Array.isArray(e)?e:[e]:[]}function l5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return vc(r)}return[]}function Jv(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Zv}:null}function bc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}let u5=Math.round(Math.random()*1e10),c5=0;function d5(e){let t=f.useMemo(()=>e.name||`radio-group-${u5}-${++c5}`,[e.name]);var r;let[n,o]=Er(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[i]=f.useState(n),[s,a]=f.useState(null),l=Xv({...e,value:n}),c=p=>{!e.isReadOnly&&!e.isDisabled&&(o(p),l.commitValidation())},u=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?i:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:c,lastFocusedValue:s,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const Qv=new WeakMap;function eb(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(p5(r.current))}});let i=f.useRef(!1),s=Ye(()=>{i.current||t.resetValidation()}),a=Ye(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&h5(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),Es("keyboard")}c.preventDefault()}),l=Ye(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function f5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function p5(e){return{isInvalid:!e.validity.valid,validationDetails:f5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function h5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function m5(e,t,r){let{value:n,children:o,"aria-label":i,"aria-labelledby":s,onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:p}=e;const h=e.isDisabled||t.isDisabled;let m=o!=null,g=i!=null||s!=null;!m&&!g&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let x=t.selectedValue===n,v=N=>{N.stopPropagation(),t.setSelectedValue(n)},{pressProps:$,isPressed:C}=fr({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:p,isDisabled:h}),{pressProps:S,isPressed:T}=fr({onPressStart:a,onPressEnd:l,onPressChange:c,onPressUp:d,onClick:p,isDisabled:h,onPress(N){var w;u?.(N),t.setSelectedValue(n),(w=r.current)===null||w===void 0||w.focus()}}),{focusableProps:k}=wn(Ie(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=Ie($,k),E=lr(e,{labelable:!0}),V=-1;t.selectedValue!=null?t.selectedValue===n&&(V=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(V=0),h&&(V=void 0);let{name:F,form:y,descriptionId:M,errorMessageId:A,validationBehavior:I}=Qv.get(t);return Wi(r,t.defaultSelectedValue,t.setSelectedValue),eb({validationBehavior:I},t,r),{labelProps:Ie(S,f.useMemo(()=>({onClick:N=>N.preventDefault(),onMouseDown:N=>N.preventDefault()}),[])),inputProps:Ie(E,{...D,type:"radio",name:F,form:y,tabIndex:V,disabled:h,required:t.isRequired&&I==="native",checked:x,value:n,onChange:v,"aria-describedby":[e["aria-describedby"],t.isInvalid?A:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:h,isSelected:x,isPressed:C||T}}function tb(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Nt(t);let s=Nt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Qa({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function rb(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=tb(e),a=nn([!!t,!!r,n,o]),l=nn([!!t,!!r,n,o]);return s=Ie(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function g5(e,t){let{name:r,form:n,isReadOnly:o,isRequired:i,isDisabled:s,orientation:a="vertical",validationBehavior:l="aria"}=e,{direction:c}=oi(),{isInvalid:u,validationErrors:d,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:x}=rb({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),v=lr(e,{labelable:!0}),{focusWithinProps:$}=Rr({onBlurWithin(T){var k;(k=e.onBlur)===null||k===void 0||k.call(e,T),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),C=T=>{let k;switch(T.key){case"ArrowRight":c==="rtl"&&a!=="vertical"?k="prev":k="next";break;case"ArrowLeft":c==="rtl"&&a!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}T.preventDefault();let D=pr(T.currentTarget,{from:T.target,accept:V=>V instanceof Ot(V).HTMLInputElement&&V.type==="radio"}),E;k==="next"?(E=D.nextNode(),E||(D.currentNode=T.currentTarget,E=D.firstChild())):(E=D.previousNode(),E||(D.currentNode=T.currentTarget,E=D.lastChild())),E&&(E.focus(),t.setSelectedValue(E.value))},S=Nt(r);return Qv.set(t,{name:S,form:n,descriptionId:g.id,errorMessageId:x.id,validationBehavior:l}),{radioGroupProps:Ie(v,{role:"radiogroup",onKeyDown:C,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":i||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...m,...$}),labelProps:h,descriptionProps:g,errorMessageProps:x,isInvalid:u,validationErrors:d,validationDetails:p}}var nb=Symbol("default");function v5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function yc(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[nb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||nb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function b5(e,t,r){let n=yc(r,e.slot)||{},{ref:o,...i}=n,s=v5(f.useMemo(()=>tc(t,o),[t,o])),a=Ve(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var Ys=f.createContext(null);f.forwardRef(function(t,r){[t,r]=b5(t,r,Ys);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Kd({className:s}),[s]);return b.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:b.jsx(Ys.Provider,{value:{...t,validationBehavior:o},children:b.jsx(qv.Provider,{value:n??{},children:i})})})});function y5(e){var t,r;const n=gt(),{validationBehavior:o}=yc(Ys)||{},{as:i,ref:s,classNames:a,children:l,label:c,value:u,name:d,isInvalid:p,validationState:h,validationBehavior:m=(t=o??n?.validationBehavior)!=null?t:"native",size:g="md",color:x="primary",isDisabled:v=!1,disableAnimation:$=(r=n?.disableAnimation)!=null?r:!1,orientation:C="vertical",isRequired:S=!1,isReadOnly:T,errorMessage:k,description:D,className:E,onChange:V,onValueChange:F,...y}=e,M=i||"div",A=typeof M=="string",I=Rt(s),N=f.useMemo(()=>({...y,value:u,name:d,"aria-label":UT(y["aria-label"],c),isRequired:S,isReadOnly:T,isInvalid:h==="invalid"||p,orientation:C,validationBehavior:m,onChange:F}),[y,u,d,c,S,T,p,h,m,C,F]),w=d5(N),{labelProps:P,radioGroupProps:_,errorMessageProps:B,descriptionProps:L,isInvalid:K,validationErrors:z,validationDetails:W}=g5(N,w),U=N.isInvalid||K||w.isInvalid,ee=f.useMemo(()=>({size:g,color:x,groupState:w,isRequired:S,isInvalid:U,isDisabled:v,disableAnimation:$,onChange:V}),[g,x,S,v,U,V,$,w.name,w.isDisabled,w.isReadOnly,w.isRequired,w.selectedValue,w.lastFocusedValue]),G=f.useMemo(()=>ax({isRequired:S,isInvalid:U,disableAnimation:$}),[U,S,$]),R=Pe(a?.base,E),me=f.useCallback(()=>({ref:I,className:G.base({class:R}),...Ve(_,ut(y,{enabled:A}))}),[I,G,R,_,y]),ue=f.useCallback(()=>({className:G.label({class:a?.label}),...P}),[G,a?.label,P,a?.label]),Q=f.useCallback(()=>({className:G.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":C}),[G,a?.wrapper,C,G.wrapper]),se=f.useCallback((X={})=>({...X,...L,className:G.description({class:Pe(a?.description,X?.className)})}),[G,a?.description,L,G.description]),q=f.useCallback((X={})=>({...X,...B,className:G.errorMessage({class:Pe(a?.errorMessage,X?.className)})}),[G,a?.errorMessage,B]);return{Component:M,children:l,label:c,context:ee,description:D,isInvalid:U,errorMessage:typeof k=="function"?k({isInvalid:U,validationErrors:z,validationDetails:W}):k||z?.join(" "),getGroupProps:me,getLabelProps:ue,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[x5,w5]=Rs({name:"RadioGroupContext",strict:!1}),ob=Re((e,t)=>{const{Component:r,children:n,label:o,context:i,description:s,isInvalid:a,errorMessage:l,getGroupProps:c,getLabelProps:u,getWrapperProps:d,getDescriptionProps:p,getErrorMessageProps:h}=y5({...e,ref:t});return b.jsxs(r,{...c(),children:[o&&b.jsx("span",{...u(),children:o}),b.jsx("div",{...d(),children:b.jsx(x5,{value:i,children:n})}),a&&l?b.jsx("div",{...h(),children:l}):s?b.jsx("div",{...p(),children:s}):null]})});ob.displayName="HeroUI.RadioGroup";var $5=ob;function E5(e){var t,r,n,o,i;const s=gt(),a=w5(),{as:l,ref:c,classNames:u,id:d,value:p,children:h,description:m,size:g=(t=a?.size)!=null?t:"md",color:x=(r=a?.color)!=null?r:"primary",isDisabled:v=(n=a?.isDisabled)!=null?n:!1,disableAnimation:$=(i=(o=a?.disableAnimation)!=null?o:s?.disableAnimation)!=null?i:!1,onChange:C=a?.onChange,autoFocus:S=!1,className:T,...k}=e;a&&RT&&("checked"in k&&$g('Remove props "checked" if in the Radio.Group.',"Radio"),p===void 0&&$g('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",E=Rt(c),V=f.useRef(null),F=f.useId(),y=f.useId(),M=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),A=a.isInvalid,I=f.useMemo(()=>{const ae=[k["aria-describedby"],y].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:v,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||F,"aria-describedby":ae}},[d,v,M,m,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],y]),{inputProps:N,isDisabled:w,isSelected:P,isPressed:_}=m5({value:p,children:typeof h=="function"?!0:h,...I},a.groupState,V),{focusProps:B,isFocused:L,isFocusVisible:K}=Pn({autoFocus:S}),z=w||N.readOnly,{hoverProps:W,isHovered:U}=$n({isDisabled:z}),ee=z?!1:_,G=f.useMemo(()=>sx({color:x,size:g,isInvalid:A,isDisabled:w,disableAnimation:$}),[x,g,w,A,$]),R=Pe(u?.base,T),me=f.useCallback((ae={})=>({...ae,ref:E,className:G.base({class:R}),"data-disabled":he(w),"data-focus":he(L),"data-focus-visible":he(K),"data-selected":he(P),"data-invalid":he(A),"data-hover":he(U),"data-pressed":he(ee),"data-hover-unselected":he(U&&!P),"data-readonly":he(N.readOnly),"aria-required":he(M),...Ve(W,k)}),[G,R,E,w,L,K,P,A,U,ee,N.readOnly,M,k]),ue=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:Pe(G.wrapper({class:Pe(u?.wrapper,ae.className)}))}),[G,u?.wrapper]),Q=f.useCallback((ae={})=>({ref:V,...Ve(ae,N,B),className:G.hiddenInput({class:u?.hiddenInput}),onChange:Ks(N.onChange,C)}),[N,B,C]),se=f.useCallback((ae={})=>({...ae,id:F,className:G.label({class:u?.label})}),[G,u?.label,w,P,A]),q=f.useCallback((ae={})=>({...ae,className:G.labelWrapper({class:u?.labelWrapper})}),[G,u?.labelWrapper]),X=f.useCallback((ae={})=>({...ae,className:G.control({class:u?.control})}),[G,u?.control]),le=f.useCallback((ae={})=>({...ae,id:y,className:G.description({class:u?.description})}),[G,u?.description]);return{Component:D,children:h,isSelected:P,isDisabled:w,isInvalid:A,isFocusVisible:K,description:m,getBaseProps:me,getWrapperProps:ue,getInputProps:Q,getLabelProps:se,getLabelWrapperProps:q,getControlProps:X,getDescriptionProps:le}}var ib=Re((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:i,getWrapperProps:s,getInputProps:a,getLabelProps:l,getLabelWrapperProps:c,getControlProps:u,getDescriptionProps:d}=E5({...e,ref:t});return b.jsxs(r,{...i(),children:[b.jsx("input",{...a()}),b.jsx("span",{...s(),children:b.jsx("span",{...u()})}),b.jsxs("div",{...c(),children:[n&&b.jsx("span",{...l(),children:n}),o&&b.jsx("span",{...d(),children:o})]})]})});ib.displayName="HeroUI.Radio";var P5=ib;function sb({id:e,options:t,value:r,onChange:n,classNames:o}){return b.jsx($5,{size:"sm",value:r?r.toString():void 0,onValueChange:n,classNames:{base:j(o?.radioGroup?.base),wrapper:j(o?.radioGroup?.wrapper),label:j(o?.radioGroup?.label),description:j(o?.radioGroup?.description),errorMessage:j(o?.radioGroup?.errorMessage)},children:t.map(i=>b.jsx(P5,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.radio?.base),wrapper:j("border-1 border-default-200 bg-white group-data-[selected=true]:border-primary-600 group-data-[selected=true]:bg-primary-600",o?.radio?.wrapper),hiddenInput:j(o?.radio?.hiddenInput),labelWrapper:j(o?.radio?.labelWrapper),label:j("text-sm",o?.radio?.label),control:j("bg-white",o?.radio?.control),description:j(o?.radio?.description)},children:i},`${e}-${i}`))})}function ab({min:e,max:t,step:r,value:n,options:o,maxOptionValue:i,marks:s,formatType:a,onChange:l,classNames:c}){const{from:u,to:d}=Hr(n),[p,h]=f.useState([u??e,d??t]),[m,g]=p;return f.useEffect(()=>{n||h([e,t])},[n,e,t]),b.jsx(gc,{size:"sm",step:r,hideValue:!0,label:`${nr(m,a)} - ${nr(g,a)}`,minValue:e,maxValue:i,value:p,onChange:x=>{if(!Array.isArray(x))return;const v=Gr(x[0],o);if(x[1]>=i)return h([v,t]);h([v,Gr(x[1],o)])},onChangeEnd:x=>{if(!Array.isArray(x))return;const v=Gr(x[0],o);if(x[1]>=i)return l(`${v}-${t}`);l(`${v}-${Gr(x[1],o)}`)},marks:s,classNames:c})}const xc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},lb={...xc,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:xc,validationErrors:[]},ub=f.createContext({}),Xs="__formValidationState"+Date.now();function Js(e){if(e[Xs]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[Xs];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return C5(e)}function C5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:lb}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=S5(s,o);return cb(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(ub),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>wc(u[F])):wc(u[n]):[],[u,n]),[p,h]=f.useState(u),[m,g]=f.useState(!1);u!==p&&(h(u),g(!1));let x=f.useMemo(()=>cb(m?[]:d),[m,d]),v=f.useRef(Co),[$,C]=f.useState(Co),S=f.useRef(Co),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;$c(F,S.current)||(S.current=F,C(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||Co,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!$c($,F)?C(F):v.current=F},resetValidation(){let F=Co;$c(F,S.current)||(S.current=F,C(F)),a==="native"&&D(!1),g(!0)},commitValidation(){a==="native"&&D(!0),g(!0)}}}function wc(e){return e?Array.isArray(e)?e:[e]:[]}function S5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return wc(r)}return[]}function cb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:lb}:null}function $c(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function T5(...e){let t=new Set,r=!1,n={...xc};for(let s of e){var o,i;for(let a of s.validationErrors)t.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function db(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(I5(r.current))}});let i=f.useRef(!1),s=Ye(()=>{i.current||t.resetValidation()}),a=Ye(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&_5(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),Es("keyboard")}c.preventDefault()}),l=Ye(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function k5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function I5(e){return{isInvalid:!e.validity.valid,validationDetails:k5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function M5(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:s,form:a,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid",isInvalid:p,onPressStart:h,onPressEnd:m,onPressChange:g,onPress:x,onPressUp:v,onClick:$}=e,C=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},S=l!=null,T=c!=null||u!=null;!S&&!T&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=fr({onPressStart:h,onPressEnd:m,onPressChange:g,onPress:x,onPressUp:v,onClick:$,isDisabled:n}),{pressProps:E,isPressed:V}=fr({onPressStart:h,onPressEnd:m,onPressChange:g,onPressUp:v,onClick:$,onPress(A){var I;x?.(A),t.toggle(),(I=r.current)===null||I===void 0||I.focus()},isDisabled:n||o}),{focusableProps:F}=wn(e,r),y=Ie(k,F),M=lr(e,{labelable:!0});return Wi(r,t.defaultSelected,t.setSelected),{labelProps:Ie(E,{onClick:A=>A.preventDefault()}),inputProps:Ie(M,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:C,disabled:n,...i==null?{}:{value:i},name:s,form:a,type:"checkbox",...y}),isSelected:t.isSelected,isPressed:D||V,isDisabled:n,isReadOnly:o,isInvalid:p||d==="invalid"}}function fb(e,t,r){let n=Js({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:s}=n.displayValidation,{labelProps:a,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p}=M5({...e,isInvalid:o},t,r);db(e,n,r);let{isIndeterminate:h,isRequired:m,validationBehavior:g="aria"}=e;f.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:x}=fr({isDisabled:d||p,onPress(){let{[Xs]:v}=e,{commitValidation:$}=v||n;$()}});return{labelProps:fo(a,x),inputProps:{...l,checked:c,"aria-required":m&&g==="aria"||void 0,required:m&&g==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:i,validationDetails:s}}const pb=new WeakMap;function D5(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:i="aria"}=e,{isInvalid:s,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:p}=Vv({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||a});pb.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:p.id,validationBehavior:i});let h=yh(e,{labelable:!0}),{focusWithinProps:m}=Rr({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:fo(h,{role:"group","aria-disabled":r||void 0,...u,...m}),labelProps:c,descriptionProps:d,errorMessageProps:p,isInvalid:s,validationErrors:a,validationDetails:l}}function hb(e={}){let{isReadOnly:t}=e,[r,n]=Er(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=f.useState(r);function i(l){t||n(l)}function s(){t||n(!r)}var a;return{isSelected:r,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:i,toggle:s}}function A5(e,t,r){const n=hb({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:i,descriptionId:s,errorMessageId:a,validationBehavior:l}=pb.get(t);var c;l=(c=e.validationBehavior)!==null&&c!==void 0?c:l;let{realtimeValidation:u}=Js({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=f.useRef(Co),p=()=>{t.setInvalid(e.value,u.isInvalid?u:d.current)};f.useEffect(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:u,m=l==="native"?t.displayValidation:h;var g;let x=fb({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(g=e.isRequired)!==null&&g!==void 0?g:t.isRequired,validationBehavior:l,[Xs]:{realtimeValidation:h,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,p()}}},n,r);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}function N5(e={}){let[t,r]=Er(e.value,e.defaultValue||[],e.onChange),[n]=f.useState(t),o=!!e.isRequired&&t.length===0,i=f.useRef(new Map),s=Js({...e,value:t}),a=s.displayValidation.isInvalid;var l,c;return{...s,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||t.includes(d)||(t=t.concat(d),r(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(p=>p!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(p=>p!==d)):r(t.concat(d)))},setInvalid(d,p){let h=new Map(i.current);p.isInvalid?h.set(d,p):h.delete(d),i.current=h,s.updateValidation(T5(...h.values()))},validationState:(c=e.validationState)!==null&&c!==void 0?c:a?"invalid":null,isInvalid:a,isRequired:o}}var mb=Symbol("default");function O5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Qs(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[mb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||mb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function L5(e,t,r){let n=Qs(r,e.slot)||{},{ref:o,...i}=n,s=O5(f.useMemo(()=>$x(t,o),[t,o])),a=mt(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var ui=f.createContext(null);f.forwardRef(function(t,r){[t,r]=L5(t,r,ui);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Kd({className:s}),[s]);return b.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:b.jsx(ui.Provider,{value:{...t,validationBehavior:o},children:b.jsx(ub.Provider,{value:n??{},children:i})})})});function F5(e){var t,r;const n=gt(),{validationBehavior:o}=Qs(ui)||{},{as:i,ref:s,classNames:a,children:l,label:c,radius:u,value:d,name:p,defaultValue:h,isInvalid:m,validationState:g,size:x="md",color:v="primary",orientation:$="vertical",lineThrough:C=!1,isDisabled:S=!1,validationBehavior:T=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:E,onValueChange:V,description:F,errorMessage:y,className:M,...A}=e,I=i||"div",N=typeof I=="string",w=zt(s),P=f.useMemo(()=>({...A,value:d,name:p,"aria-label":Ka(A["aria-label"],c),defaultValue:h,isRequired:E,isReadOnly:D,orientation:$,validationBehavior:T,isInvalid:g==="invalid"||m,onChange:Or(e.onChange,V)}),[d,p,c,h,E,D,$,V,m,g,T,A["aria-label"],A]),_=N5(P),{labelProps:B,groupProps:L,descriptionProps:K,errorMessageProps:z,validationErrors:W,validationDetails:U}=D5(P,_),ee=f.useMemo(()=>({size:x,color:v,radius:u,lineThrough:C,isInvalid:_.isInvalid,isDisabled:S,disableAnimation:k,validationBehavior:T,groupState:_}),[x,v,u,C,S,k,T,_.value,_.isDisabled,_.isReadOnly,_.isInvalid,_.isSelected]),G=f.useMemo(()=>px({isRequired:E,isInvalid:_.isInvalid,disableAnimation:k}),[E,_.isInvalid,,k]),R=Ke(a?.base,M),me=f.useCallback(()=>({ref:w,className:G.base({class:R}),...mt(L,ut(A,{enabled:N}))}),[G,w,R,L,A]),ue=f.useCallback(()=>({className:G.label({class:a?.label}),...B}),[G,B,a?.label]),Q=f.useCallback(()=>({className:G.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[G,$,a?.wrapper]),se=f.useCallback((X={})=>({...X,...K,className:G.description({class:Ke(a?.description,X?.className)})}),[G,K,a?.description]),q=f.useCallback((X={})=>({...X,...z,className:G.errorMessage({class:Ke(a?.errorMessage,X?.className)})}),[G,z,a?.errorMessage]);return{Component:I,children:l,label:c,context:ee,description:F,isInvalid:_.isInvalid,errorMessage:typeof y=="function"?y({isInvalid:_.isInvalid,validationErrors:W,validationDetails:U}):y||W?.join(" "),getGroupProps:me,getLabelProps:ue,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[V5,j5]=Ni({name:"CheckboxGroupContext",strict:!1}),gb=Re((e,t)=>{const{children:r,context:n,label:o,description:i,isInvalid:s,errorMessage:a,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:p}=F5({...e,ref:t});return b.jsxs("div",{...l(),children:[o&&b.jsx("span",{...c(),children:o}),b.jsx("div",{...u(),children:b.jsx(V5,{value:n,children:r})}),s&&a?b.jsx("div",{...p(),children:a}):i?b.jsx("div",{...d(),children:i}):null]})});gb.displayName="HeroUI.CheckboxGroup";var z5=gb;function B5(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:b.jsx("polyline",{points:"1 9 7 14 15 4"})})}function R5(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function K5(e){const{isIndeterminate:t,...r}=e,n=t?R5:B5;return b.jsx(n,{...r})}function W5(e={}){var t,r,n,o,i,s,a,l;const c=gt(),u=j5(),{validationBehavior:d}=Qs(ui)||{},p=!!u,{as:h,ref:m,value:g="",children:x,icon:v,name:$,isRequired:C,isReadOnly:S=!1,autoFocus:T=!1,isSelected:k,size:D=(t=u?.size)!=null?t:"md",color:E=(r=u?.color)!=null?r:"primary",radius:V=u?.radius,lineThrough:F=(n=u?.lineThrough)!=null?n:!1,isDisabled:y=(o=u?.isDisabled)!=null?o:!1,disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:c?.disableAnimation)!=null?s:!1,validationState:A,isInvalid:I=A?A==="invalid":(a=u?.isInvalid)!=null?a:!1,isIndeterminate:N=!1,validationBehavior:w=p?u.validationBehavior:(l=d??c?.validationBehavior)!=null?l:"native",defaultSelected:P,classNames:_,className:B,onValueChange:L,validate:K,...z}=e;u&&hx&&(k&&Ai("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),P&&Ai("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const W=h||"label",U=f.useRef(null),ee=f.useRef(null);let G=e.onChange;p&&(G=Or(()=>{u.groupState.resetValidation()},G));const R=f.useId(),me=f.useMemo(()=>({name:$,value:g,children:x,autoFocus:T,defaultSelected:P,isIndeterminate:N,isRequired:C,isInvalid:I,isSelected:k,isDisabled:y,isReadOnly:S,"aria-label":Ka(z["aria-label"],x),"aria-labelledby":z["aria-labelledby"]||R,onChange:L}),[$,g,x,T,P,N,C,I,k,y,S,z["aria-label"],z["aria-labelledby"],R,L]),ue=hb(me),Q={isInvalid:I,isRequired:C,validate:K,validationState:A,validationBehavior:w},{inputProps:se,isSelected:q,isDisabled:X,isReadOnly:le,isPressed:ae,isInvalid:oe}=p?A5({...me,...Q},u.groupState,ee):fb({...me,...Q},ue,ee),be=X||le,Me=A==="invalid"||I||oe,ye=be?!1:ae,{hoverProps:te,isHovered:je}=Sn({isDisabled:se.disabled}),{focusProps:xe,isFocused:We,isFocusVisible:lt}=Tn({autoFocus:se.autoFocus}),Te=f.useMemo(()=>fx({color:E,size:D,radius:V,isInvalid:Me,lineThrough:F,isDisabled:X,disableAnimation:M}),[E,D,V,Me,F,X,M]);_n(()=>{if(!ee.current)return;const Ze=!!ee.current.checked;ue.setSelected(Ze)},[ee.current]);const Ge=F4(G),pt=f.useCallback(Ze=>{if(le||X){Ze.preventDefault();return}Ge?.(Ze)},[le,X,Ge]),Ft=Ke(_?.base,B),Oe=f.useCallback(()=>({ref:U,className:Te.base({class:Ft}),"data-disabled":pe(X),"data-selected":pe(q||N),"data-invalid":pe(Me),"data-hover":pe(je),"data-focus":pe(We),"data-pressed":pe(ye),"data-readonly":pe(se.readOnly),"data-focus-visible":pe(lt),"data-indeterminate":pe(N),...mt(te,z)}),[Te,Ft,X,q,N,Me,je,We,ye,se.readOnly,lt,te,z]),Ct=f.useCallback((Ze={})=>({...Ze,"aria-hidden":!0,className:Ke(Te.wrapper({class:Ke(_?.wrapper,Ze?.className)}))}),[Te,_?.wrapper]),It=f.useCallback(()=>({ref:tf(ee,m),...mt(se,xe),className:Te.hiddenInput({class:_?.hiddenInput}),onChange:Or(se.onChange,pt)}),[se,xe,pt,_?.hiddenInput]),_t=f.useCallback(()=>({id:R,className:Te.label({class:_?.label})}),[Te,_?.label,X,q,Me]),Wt=f.useCallback(()=>({isSelected:q,isIndeterminate:N,disableAnimation:M,className:Te.icon({class:_?.icon})}),[Te,_?.icon,q,N,M]);return{Component:W,icon:v,children:x,isSelected:q,isDisabled:X,isInvalid:Me,isFocused:We,isHovered:je,isFocusVisible:lt,getBaseProps:Oe,getWrapperProps:Ct,getInputProps:It,getLabelProps:_t,getIconProps:Wt}}var vb=Re((e,t)=>{const{Component:r,children:n,icon:o=b.jsx(K5,{}),getBaseProps:i,getWrapperProps:s,getInputProps:a,getIconProps:l,getLabelProps:c}=W5({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return b.jsxs(r,{...i(),children:[b.jsx("input",{...a()}),b.jsx("span",{...s(),children:u}),n&&b.jsx("span",{...c(),children:n})]})});vb.displayName="HeroUI.Checkbox";var U5=vb;function bb({id:e,options:t,values:r=[],onChange:n,classNames:o}){return b.jsx(z5,{size:"sm",value:r.map(i=>i.toString()),onValueChange:n,classNames:{base:j(o?.checkboxGroup?.base),wrapper:j(o?.checkboxGroup?.wrapper),label:j(o?.checkboxGroup?.label),description:j(o?.checkboxGroup?.description),errorMessage:j(o?.checkboxGroup?.errorMessage)},children:t.map(i=>b.jsx(U5,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.checkbox?.base),wrapper:j("before:border-default-200 before:border-1 before:rounded-sm bg-white group-data-[hover=true]:before:bg-default-50 after:bg-transparent",o?.checkbox?.wrapper),hiddenInput:j(o?.checkbox?.hiddenInput),icon:j("text-primary-600",o?.checkbox?.icon),label:j("text-sm text-foreground",o?.checkbox?.label)},children:i},`${e}-${i}`))})}function H5({type:e,id:t,formatType:r,min:n=0,max:o=100,step:i=1,value:s,options:a=[],onChange:l,classNames:c}){const u=a.length>0?[n,...a.map(m=>parseInt(m,10)),o]:[],d=a.length>0?u[u.length-2]+i:o,p=[{value:n,label:nr(n,r)},{value:d,label:nr(o,r)}],h={base:j(c?.sliderFilter?.base),labelWrapper:j(c?.sliderFilter?.labelWrapper),label:j("text-sm",c?.sliderFilter?.label),value:j(c?.sliderFilter?.value),step:j(c?.sliderFilter?.step),mark:j("text-xs text-default whitespace-nowrap translate-x-0 not-last-of-type:!-left-2 last-of-type:-right-2 last-of-type:!left-auto",c?.sliderFilter?.mark),trackWrapper:j(c?.sliderFilter?.trackWrapper),track:j("data-[fill-start=true]:border-s-primary-600 data-[fill-end=true]:border-e-primary-600",c?.sliderFilter?.track),filler:j("bg-primary-600",c?.sliderFilter?.filler),thumb:j("size-5 outline outline-default-200 bg-white after:size-2 after:bg-primary-600 data-[dragging=true]:outline-2 data-[dragging=true]:outline-primary-600 transition-colors duration-300",c?.sliderFilter?.thumb)};switch(e){case"min":return b.jsx(s5,{id:t,formatType:r,min:n,max:o,step:i,value:s,options:u,maxOptionValue:d,marks:p,onChange:l,classNames:h});case"max":return b.jsx(i5,{id:t,formatType:r,min:n,max:o,step:i,value:s,options:u,maxOptionValue:d,marks:p,onChange:l,classNames:h});case"range":return b.jsx(ab,{id:t,formatType:r,min:n,max:o,step:i,value:s,options:u,maxOptionValue:d,marks:p,onChange:l,classNames:h});case"select":return!a||a.length===0?null:b.jsx(bb,{id:t,options:a,values:s,onChange:l,classNames:c?.selectFilter});case"radio":return!a||a.length===0?null:b.jsx(sb,{id:t,options:a,value:s,onChange:l,classNames:c?.radioFilter});default:return null}}function Ec({filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n}){return e.length===0||e.every(o=>o.type==="hidden")?null:b.jsx("div",{className:j("min-w-60 shrink-0",n?.base),children:b.jsx("div",{className:j("flex flex-col gap-6",n?.filterWrapper),children:e.map(o=>o.type==="hidden"?null:b.jsxs("div",{className:j(n?.filterGroup),children:[b.jsx("div",{className:j("font-bold text-base mb-1",n?.filterLabel),children:o.label}),b.jsx(H5,{...o,value:vo(t,o.id),onChange:i=>r({id:o.id,value:i}),classNames:n})]},o.id))})})}var[G5,Pc]=Ni({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),yb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Pc(),d=Ke(u?.body,o);return b.jsx(a,{ref:l,className:(r=c.body)==null?void 0:r.call(c,{class:d}),...s,children:i})});yb.displayName="HeroUI.CardBody";var xb=yb,wb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Pc(),d=Ke(u?.footer,o);return b.jsx(a,{ref:l,className:(r=c.footer)==null?void 0:r.call(c,{class:d}),...s,children:i})});wb.displayName="HeroUI.CardFooter";var Z5=wb,$b=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Pc(),d=Ke(u?.header,o);return b.jsx(a,{ref:l,className:(r=c.header)==null?void 0:r.call(c,{class:d}),...s,children:i})});$b.displayName="HeroUI.CardHeader";var q5=$b;function Y5(e){var t,r,n,o;const i=gt(),[s,a]=Bt(e,Hd.variantKeys),{ref:l,as:c,children:u,onClick:d,onPress:p,autoFocus:h,className:m,classNames:g,allowTextSelectionOnPress:x=!0,...v}=s,$=zt(l),C=c||(e.isPressable?"button":"div"),S=typeof C=="string",T=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:i?.disableRipple)!=null?o:!1,D=Ke(g?.base,m),{onClear:E,onPress:V,ripples:F}=mg(),y=f.useCallback(W=>{k||T||$.current&&V(W)},[k,T,$,V]),{buttonProps:M,isPressed:A}=fg({onPress:Or(p,y),elementType:c,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...v},$),{hoverProps:I,isHovered:N}=Sn({isDisabled:!e.isHoverable,...v}),{isFocusVisible:w,isFocused:P,focusProps:_}=Tn({autoFocus:h}),B=f.useMemo(()=>Hd({...a,disableAnimation:T}),[rn(a),T]),L=f.useMemo(()=>({slots:B,classNames:g,disableAnimation:T,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,g,e.isDisabled,e.isFooterBlurred,T,e.fullWidth]),K=f.useCallback((W={})=>({ref:$,className:B.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":pe(N),"data-pressed":pe(A),"data-focus":pe(P),"data-focus-visible":pe(w),"data-disabled":pe(e.isDisabled),...mt(e.isPressable?{...M,..._,role:"button"}:{},e.isHoverable?I:{},ut(v,{enabled:S}),ut(W))}),[$,B,D,S,e.isPressable,e.isHoverable,e.isDisabled,N,A,w,M,_,I,v]),z=f.useCallback(()=>({ripples:F,onClear:E}),[F,E]);return{context:L,domRef:$,Component:C,classNames:g,children:u,isHovered:N,isPressed:A,disableAnimation:T,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:y,isFocusVisible:w,getCardProps:K,getRippleProps:z}}var Eb=Re((e,t)=>{const{children:r,context:n,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:c}=Y5({...e,ref:t});return b.jsxs(o,{...l(),children:[b.jsx(G5,{value:n,children:r}),i&&!s&&!a&&b.jsx(hg,{...c()})]})});Eb.displayName="HeroUI.Card";var Pb=Eb;function X5(e){let t=ut(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function J5(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=X5({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Rd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}var Cb=Re((e,t)=>{const{Component:r,getDividerProps:n}=J5({...e});return b.jsx(r,{ref:t,...n()})});Cb.displayName="HeroUI.Divider";var Sb=Cb;function Q5(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:i,srcSet:s,sizes:a,loading:l,shouldBypassImageLoad:c=!1}=e,u=kx(),d=f.useRef(u?new Image:null),[p,h]=f.useState("pending");f.useEffect(()=>{d.current&&(d.current.onload=x=>{m(),h("loaded"),t?.(x)},d.current.onerror=x=>{m(),h("failed"),r?.(x)})},[d.current]);const m=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},g=f.useCallback(()=>{if(!o)return"pending";if(n||c)return"loaded";const x=new Image;return x.src=o,i&&(x.crossOrigin=i),s&&(x.srcset=s),a&&(x.sizes=a),l&&(x.loading=l),d.current=x,x.complete&&x.naturalWidth?"loaded":"loading"},[o,i,s,a,t,r,l,c]);return _n(()=>{u&&h(g())},[u,g]),n?"loaded":p}function e3(e){var t,r;const n=gt(),[o,i]=Bt(e,Wd.variantKeys),{ref:s,as:a,src:l,className:c,classNames:u,loading:d,isBlurred:p,fallbackSrc:h,isLoading:m,disableSkeleton:g=!!h,removeWrapper:x=!1,onError:v,onLoad:$,srcSet:C,sizes:S,crossOrigin:T,...k}=o,D=Q5({src:l,loading:d,onError:v,onLoad:$,ignoreFallback:!1,srcSet:C,sizes:S,crossOrigin:T,shouldBypassImageLoad:a!==void 0}),E=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,V=D==="loaded"&&!m,F=D==="loading"||m,y=e.isZoomed,M=a||"img",A=zt(s),{w:I,h:N}=f.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),w=(!l||!V)&&!!h,P=F&&!g,_=f.useMemo(()=>Wd({...i,disableAnimation:E,showSkeleton:P}),[rn(i),E,P]),B=Ke(c,u?.img),L=(W={})=>{const U=Ke(B,W?.className);return{src:l,ref:A,"data-loaded":pe(V),className:_.img({class:U}),loading:d,srcSet:C,sizes:S,crossOrigin:T,...k,style:{...k?.height&&{height:N},...W.style,...k.style}}},K=f.useCallback(()=>{const W=w?{backgroundImage:`url(${h})`}:{};return{className:_.wrapper({class:u?.wrapper}),style:{...W,maxWidth:I}}},[_,w,h,u?.wrapper,I]),z=f.useCallback(()=>({src:l,"aria-hidden":pe(!0),className:_.blurredImg({class:u?.blurredImg})}),[_,l,u?.blurredImg]);return{Component:M,domRef:A,slots:_,classNames:u,isBlurred:p,disableSkeleton:g,fallbackSrc:h,removeWrapper:x,isZoomed:y,isLoading:F,getImgProps:L,getWrapperProps:K,getBlurredImgProps:z}}var Tb=Re((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:c,disableSkeleton:u,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=e3({...e,ref:t}),m=b.jsx(r,{ref:n,...d()});if(c)return m;const g=b.jsx("div",{className:o.zoomedWrapper({class:i?.zoomedWrapper}),children:m});return s?b.jsxs("div",{...p(),children:[a?g:m,f.cloneElement(m,h())]}):a||!u||l?b.jsxs("div",{...p(),children:[" ",a?g:m]}):m});Tb.displayName="HeroUI.Image";var ea=Tb;function kb(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",i="mobiel-assets.imgix.net",s="mobiel-frontend.imgix.net",a="?"+Object.keys(t).map(u=>`${u}=${encodeURIComponent(t[u])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${a}`;let l="",c=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return Ib(e)?l=r:ta(e)&&c.includes("mobiel-nl-content")?l=n:ta(e)&&c.includes("mobiel-nl-postpaid")?l=o:_b(e)?l=i:l=s,ta(e)&&(c=c.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${c}${a}`}function Ib(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function ta(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function _b(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Mb(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||Ib(e)||_b(e)||ta(e)||e?.includes("/assets/")&&!e.includes("localhost")}function t3(e,t="auto",r="auto",n="none"){return Mb(e)?kb(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function r3(e,t="auto",r="auto",n="none"){return Mb(e)?[1,2,3,4].map(s=>`${kb(e,{w:t,h:r,dpr:s,trim:n,auto:"compress,format",q:95})} ${s}x`).join(", "):""}function Cc(){return f.useMemo(()=>[t3,r3],[])}function Db({hasProduct:e,deviceDiscount:t,tcoPerMonth:r,horizontal:n,classNames:o}){return b.jsxs("div",{className:j("px-3 py-2 bg-primary-50 text-xs font-medium text-primary-600 flex items-center gap-3",n&&"rounded-lg",n&&e&&"mb-4",o?.base),children:[t&&b.jsxs("div",{className:j("flex items-center gap-1",o?.deviceDiscount),children:[b.jsx(AT,{size:16}),t," toestelkorting"]}),b.jsxs("div",{className:j("flex items-center gap-1",o?.averagePrice),children:[b.jsx(kT,{size:16}),"gem. ",r," /mnd"]})]})}function Ab({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,classNames:n}){return b.jsxs("div",{className:j(n?.base),children:[e&&b.jsx("div",{className:j("text-sm text-default-400 whitespace-nowrap",n?.promotionText),children:e}),b.jsxs("div",{className:j("flex items-end gap-1",n?.monthlyFee),children:[b.jsx("div",{className:j("text-3xl font-extrabold tracking-tighter text-foreground leading-none",n?.monthlyFeeValue),children:t}),b.jsx("div",{className:j("text-sm text-foreground leading-none",n?.monthlyFeeLabel),children:"/mnd"})]}),r&&b.jsxs("div",{className:j("text-sm text-foreground",n?.productPrice),children:["+ ",b.jsx("b",{children:r})," eenmalig"]})]})}function Nb({title:e,subtitle:t,imageUrl:r,imageAlt:n,specifications:o,stockStatus:i,reviewCount:s,reviewScore:a,classNames:l,horizontal:c}){const[u,d]=Cc();return b.jsxs("div",{className:j("w-full mb-3",l?.base),children:[!c&&b.jsx(ea,{alt:n,height:200,src:u(r,200,200),srcSet:d(r,200,200),width:200,classNames:{wrapper:j("mb-6 mt-3 mx-auto flex shrink-0",l?.imageWrapper),img:j("aspect-square",l?.image)}}),b.jsxs("div",{className:j(c&&"flex justify-between"),children:[b.jsxs("div",{children:[b.jsx("div",{className:j("text-lg font-semibold text-foreground leading-none",l?.subtitle),children:t}),b.jsx("div",{className:j("text-2xl font-bold text-foreground",l?.title),children:e})]}),c&&b.jsx(ea,{alt:n,height:60,src:u(r,120,60),srcSet:d(r,120,60),width:120,classNames:{wrapper:j("flex shrink-0",l?.imageWrapper),img:j("aspect-2/1",l?.image)}})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("div",{className:j("text-sm",i==="in_stock"?"text-success":"text-foreground",l?.stockStatus),children:i==="in_stock"?"Op voorraad":"Niet leverbaar"}),b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(OT,{size:16,filled:!0,className:"text-secondary"}),b.jsx("div",{className:j("font-semibold text-foreground",l?.reviewScore),children:a}),b.jsxs("span",{className:j("text-default-400",l?.reviewCount),children:["(",s,")"]})]})]}),o&&b.jsx("div",{className:j("flex text-sm",l?.specifications),children:o.map((p,h)=>b.jsxs("div",{className:"text-default-400",children:[p.title,h<o.length-1&&b.jsx("span",{className:"mx-1",children:"•"})]},p.title))})]})}function Ob({specialPromotions:e,modificationPromotions:t,classNames:r}){return b.jsxs("div",{className:j(r?.base),children:[e.map(n=>b.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[b.jsx(ug,{size:24,className:j("shrink-0",r?.specialPromotionIcon)}),n]},n)),t.map(n=>b.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[b.jsx(ug,{size:24,className:j("shrink-0",r?.modificationPromotionIcon)}),n]},n))]})}function Lb({title:e,subtitle:t,imageUrl:r,imageAlt:n,hasProduct:o,horizontal:i,classNames:s}){const[a,l]=Cc(),c=o?75:100,u=o?35:50;return b.jsxs("div",{className:j("flex justify-between w-full pb-3",i&&"w-fit",s?.base),children:[b.jsxs("div",{children:[b.jsx("div",{className:j(o?"text-2xl font-extrabold":"text-3xl font-extrabold","text-foreground",s?.title),children:e}),b.jsx("div",{className:j(o?"text-base":"text-lg","leading-none text-foreground",s?.subtitle),children:t})]}),!i&&b.jsx(ea,{alt:n,height:u,src:a(r,c,u),srcSet:l(r,c,u),width:c,classNames:{wrapper:j("flex shrink-0",s?.imageWrapper),img:j("aspect-2/1",s?.image)}})]})}function Sc({slug:e,size:t=16}){switch(e){case"contract-term":return b.jsx(_T,{size:t});case"data-speed-down":return b.jsx(NT,{size:t});case"provider-network":return b.jsx(TT,{size:t});case"data-eu":return b.jsx(LT,{size:t});case"internet-speed":return b.jsx(ST,{size:t});case"channels":return b.jsx(MT,{size:t});case"tv-receiver":return b.jsx(DT,{size:t});default:return null}}function n3({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:g,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:C,productReviewCount:S,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i),[y,M]=Cc();return b.jsx(Pb,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("flex flex-row shadow-lg rounded-lg",E?.card),children:b.jsxs(xb,{className:j("py-0 px-6 grid grid-cols-[max-content_1fr] gap-6",E?.body),children:[b.jsxs("div",{className:"flex flex-row",children:[b.jsx(ea,{alt:F?i:c,height:F?200:50,src:F?y(o??"",200,200):y(l,100,50),srcSet:F?M(o??"",200,200):M(l,100,50),width:F?200:100,classNames:{wrapper:j("flex shrink-0 mt-6 mr-6",E?.imageWrapper),img:j(F?"aspect-square":"aspect-2/1",E?.image)}}),b.jsx(Sb,{orientation:"vertical"})]}),b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:j("pt-6 flex gap-6 justify-between",F&&"flex-col gap-4",E?.header),children:[F&&b.jsx(Nb,{imageAlt:c,imageUrl:l,reviewCount:S,reviewScore:T,specifications:$,stockStatus:C,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),imageWrapper:j(E?.productSection?.imageWrapper),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)},horizontal:!0}),b.jsxs("div",{className:j(F&&u&&"flex gap-6 justify-between"),children:[b.jsx(Lb,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,horizontal:!0,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle)}}),F&&u&&b.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-0 gap-x-3 h-fit mt-2",E?.specifications),children:u.map(A=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(Sc,{slug:A.slug}),A.title]},A.title))})]}),b.jsxs("div",{className:j("flex flex-col items-end gap-3",F&&"items-start"),children:[!F&&u&&b.jsx("div",{className:j("grid grid-cols-2 gap-x-3 lg:grid-cols-[repeat(4,max-content)] text-default-400 mb-0",u.length===2&&"lg:grid-cols-[repeat(2,max-content)]",E?.specifications),children:u.map(A=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(Sc,{slug:A.slug}),A.title]},A.title))}),b.jsx(Db,{deviceDiscount:D,tcoPerMonth:p,horizontal:!0,hasProduct:F,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})]}),b.jsxs("div",{className:j(E?.body),children:[v&&b.jsx(ju,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),b.jsx(Ob,{specialPromotions:h,modificationPromotions:m,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),b.jsxs("div",{className:j('grid self-end grid-cols-[1fr_max-content] [grid-template-areas:"delivery_delivery""price_button"] pt-3 pb-6 lg:grid-cols-[148px_max-content] lg:justify-end lg:pt-1',F&&"lg:grid-cols-[1fr_max-content]",E?.footer),children:[x&&b.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm [grid-area:delivery]",E?.deliveryText),children:x}),b.jsx(Ab,{monthlyFeePromotionText:g,productPrice:k,monthlyFee:d,classNames:{base:j("[grid-area:price] content-end",E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),b.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6 [grid-area:button]",e&&"pointer-events-none",E?.button),endContent:b.jsx(lg,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]})]})})}function o3({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:m,monthlyFeePromotionText:g,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:C,productReviewCount:S,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i);return b.jsxs(Pb,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("rounded-lg shadow-lg",E?.card),children:[b.jsxs(q5,{className:j("flex-col items-start text-start z-1",E?.header),children:[F&&b.jsx(Nb,{imageAlt:i||"",imageUrl:o||"",reviewCount:S,reviewScore:T,specifications:$,stockStatus:C,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)}}),b.jsx(Lb,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle),imageWrapper:j(E?.propositionHeader?.imageWrapper),image:j(E?.propositionHeader?.image)}})]}),b.jsxs(xb,{className:j("py-0",E?.body),children:[!F&&u&&b.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-3",E?.specifications),children:u.map(y=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(Sc,{slug:y.slug}),y.title]},y.title))}),v&&b.jsx(ju,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),b.jsx(Ob,{specialPromotions:h,modificationPromotions:m,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),b.jsx(Sb,{className:"mt-3"}),b.jsxs(Z5,{className:j("flex-col justify-between items-start text-start",E?.footer),children:[x&&b.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm",E?.deliveryText),children:x}),b.jsxs("div",{className:"flex justify-between items-end w-full",children:[b.jsx(Ab,{monthlyFeePromotionText:g,productPrice:k,monthlyFee:d,classNames:{base:j(E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),b.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6",e&&"pointer-events-none",E?.button),endContent:b.jsx(lg,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]}),b.jsx(Db,{deviceDiscount:D,tcoPerMonth:p,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})}function ci({horizontal:e,...t}){return e?b.jsx(n3,{...t}):b.jsx(o3,{...t})}function i3(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:a="aria"}=e,[l,c]=Er(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=wn(e,t),d=Js({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:g,fieldProps:x,descriptionProps:v,errorMessageProps:$}=Vv({...e,isInvalid:p,errorMessage:e.errorMessage||h}),C=lr(e,{labelable:!0});const S={type:s,pattern:e.pattern};let[T]=f.useState(l);var k;return Wi(t,(k=e.defaultValue)!==null&&k!==void 0?k:T,c),db(e,d,t),f.useEffect(()=>{if(t.current instanceof Ot(t.current).HTMLTextAreaElement){let D=t.current;Object.defineProperty(D,"defaultValue",{get:()=>D.value,set:()=>{},configurable:!0})}},[t]),{labelProps:g,inputProps:Ie(C,r==="input"?S:void 0,{disabled:n,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>c(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(f.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...x}),descriptionProps:v,errorMessageProps:$,isInvalid:p,validationErrors:h,validationDetails:m}}function s3(e){var t,r,n,o,i,s,a;const l=gt(),{validationBehavior:c}=Qs(ui)||{},[u,d]=Bt(e,jd.variantKeys),{ref:p,as:h,type:m,label:g,baseRef:x,wrapperRef:v,description:$,className:C,classNames:S,autoFocus:T,startContent:k,endContent:D,onClear:E,onChange:V,validationState:F,validationBehavior:y=(t=c??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:A=()=>{},...I}=u,N=f.useCallback(re=>{A(re??"")},[A]),[w,P]=f.useState(!1),_=h||"div",B=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,L=zt(p),K=zt(x),z=zt(v),W=zt(M),[U,ee]=Er(u.value,(o=u.defaultValue)!=null?o:"",N),G=m==="file",R=((a=(s=(i=L?.current)==null?void 0:i.files)==null?void 0:s.length)!=null?a:0)>0,me=["date","time","month","week","range"].includes(m),ue=!vx(U)||me||R,Q=ue||w,se=m==="hidden",q=e.isMultiline,X=Ke(S?.base,C,ue?"is-filled":""),le=f.useCallback(()=>{var re;G?L.current.value="":ee(""),E?.(),(re=L.current)==null||re.focus()},[ee,E,G]);_n(()=>{L.current&&ee(L.current.value)},[L.current]);const{labelProps:ae,inputProps:oe,isInvalid:be,validationErrors:Me,validationDetails:ye,descriptionProps:te,errorMessageProps:je}=i3({...e,validationBehavior:y,autoCapitalize:e.autoCapitalize,value:U,"aria-label":e.label?e["aria-label"]:Ka(e["aria-label"],e.placeholder),inputElementType:q?"textarea":"input",onChange:ee},L);G&&(delete oe.value,delete oe.onChange);const{isFocusVisible:xe,isFocused:We,focusProps:lt}=Tn({autoFocus:T,isTextInput:!0}),{isHovered:Te,hoverProps:Ge}=Sn({isDisabled:!!e?.isDisabled}),{isHovered:pt,hoverProps:Ft}=Sn({isDisabled:!!e?.isDisabled}),{focusProps:Oe,isFocusVisible:Ct}=Tn(),{focusWithinProps:It}=wm({onFocusWithinChange:P}),{pressProps:_t}=Ms({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:le}),Wt=F==="invalid"||be,Ze=HC({labelPlacement:e.labelPlacement,label:g}),Mr=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:Wt,validationErrors:Me,validationDetails:ye}):u.errorMessage||Me?.join(" "),sr=!!E||e.isClearable,Jr=!!g||!!$||!!Mr,Vt=!!u.placeholder,Ce=!!g,ze=!!$||!!Mr,Mt=Ze==="outside-left",$t=Ze==="outside-top",er=Ze==="outside"||Mt||$t,Io=Ze==="inside",Dr=L.current?(!L.current.value||L.current.value===""||!U||U==="")&&Vt:!1,Ut=!!k,Fn=er?Mt||$t||Vt||Ze==="outside"&&Ut:!1,Vn=Ze==="outside"&&!Vt&&!Ut,qe=f.useMemo(()=>jd({...d,isInvalid:Wt,labelPlacement:Ze,isClearable:sr,disableAnimation:B}),[rn(d),Wt,Ze,sr,Ut,B]),jn=f.useCallback((re={})=>({ref:K,className:qe.base({class:X}),"data-slot":"base","data-filled":pe(ue||Vt||Ut||Dr||G),"data-filled-within":pe(Q||Vt||Ut||Dr||G),"data-focus-within":pe(w),"data-focus-visible":pe(xe),"data-readonly":pe(e.isReadOnly),"data-focus":pe(We),"data-hover":pe(Te||pt),"data-required":pe(e.isRequired),"data-invalid":pe(Wt),"data-disabled":pe(e.isDisabled),"data-has-elements":pe(Jr),"data-has-helper":pe(ze),"data-has-label":pe(Ce),"data-has-value":pe(!Dr),"data-hidden":pe(se),...It,...re}),[qe,X,ue,We,Te,pt,Wt,ze,Ce,Jr,Dr,Ut,w,xe,Q,Vt,It,se,e.isReadOnly,e.isRequired,e.isDisabled]),zn=f.useCallback((re={})=>({"data-slot":"label",className:qe.label({class:S?.label}),...mt(ae,Ft,re)}),[qe,pt,ae,S?.label]),Qr=f.useCallback(re=>{re.key==="Escape"&&U&&(sr||E)&&!e.isReadOnly&&(ee(""),E?.())},[U,ee,E,sr,e.isReadOnly]),ke=f.useCallback((re={})=>({"data-slot":"input","data-filled":pe(ue),"data-filled-within":pe(Q),"data-has-start-content":pe(Ut),"data-has-end-content":pe(!!D),"data-type":m,className:qe.input({class:Ke(S?.input,ue?"is-filled":"",q?"pe-0":"",m==="password"?"[&::-ms-reveal]:hidden":"")}),...mt(lt,oe,ut(I,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),re),"aria-readonly":pe(e.isReadOnly),onChange:Or(oe.onChange,V),onKeyDown:Or(oe.onKeyDown,re.onKeyDown,Qr),ref:L}),[qe,U,lt,oe,I,ue,Q,Ut,D,S?.input,e.isReadOnly,e.isRequired,V,Qr]),_o=f.useCallback((re={})=>({ref:z,"data-slot":"input-wrapper","data-hover":pe(Te||pt),"data-focus-visible":pe(xe),"data-focus":pe(We),className:qe.inputWrapper({class:Ke(S?.inputWrapper,ue?"is-filled":"")}),...mt(re,Ge),onClick:Ae=>{L.current&&Ae.currentTarget===Ae.target&&L.current.focus()},style:{cursor:"text",...re.style}}),[qe,Te,pt,xe,We,U,S?.inputWrapper]),Bn=f.useCallback((re={})=>({...re,ref:W,"data-slot":"inner-wrapper",onClick:Ae=>{L.current&&Ae.currentTarget===Ae.target&&L.current.focus()},className:qe.innerWrapper({class:Ke(S?.innerWrapper,re?.className)})}),[qe,S?.innerWrapper]),xi=f.useCallback((re={})=>({...re,"data-slot":"main-wrapper",className:qe.mainWrapper({class:Ke(S?.mainWrapper,re?.className)})}),[qe,S?.mainWrapper]),O=f.useCallback((re={})=>({...re,"data-slot":"helper-wrapper",className:qe.helperWrapper({class:Ke(S?.helperWrapper,re?.className)})}),[qe,S?.helperWrapper]),J=f.useCallback((re={})=>({...re,...te,"data-slot":"description",className:qe.description({class:Ke(S?.description,re?.className)})}),[qe,S?.description]),ie=f.useCallback((re={})=>({...re,...je,"data-slot":"error-message",className:qe.errorMessage({class:Ke(S?.errorMessage,re?.className)})}),[qe,je,S?.errorMessage]),ve=f.useCallback((re={})=>({...re,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":pe(Ct),className:qe.clearButton({class:Ke(S?.clearButton,re?.className)}),...mt(_t,Oe)}),[qe,Ct,_t,Oe,S?.clearButton]);return{Component:_,classNames:S,domRef:L,label:g,description:$,startContent:k,endContent:D,labelPlacement:Ze,isClearable:sr,hasHelper:ze,hasStartContent:Ut,isLabelOutside:Fn,isOutsideLeft:Mt,isOutsideTop:$t,isLabelOutsideAsPlaceholder:Vn,shouldLabelBeOutside:er,shouldLabelBeInside:Io,hasPlaceholder:Vt,isInvalid:Wt,errorMessage:Mr,getBaseProps:jn,getLabelProps:zn,getInputProps:ke,getMainWrapperProps:xi,getInputWrapperProps:_o,getInnerWrapperProps:Bn,getHelperWrapperProps:O,getDescriptionProps:J,getErrorMessageProps:ie,getClearButtonProps:ve}}var Fb=Re((e,t)=>{const{Component:r,label:n,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasHelper:c,isOutsideLeft:u,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:m,getBaseProps:g,getLabelProps:x,getInputProps:v,getInnerWrapperProps:$,getInputWrapperProps:C,getMainWrapperProps:S,getHelperWrapperProps:T,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:E}=s3({...e,ref:t}),V=n?b.jsx("label",{...x(),children:n}):null,F=f.useMemo(()=>i?b.jsx("button",{...E(),children:a||b.jsx(Vu,{})}):a,[i,E]),y=f.useMemo(()=>{const I=m&&h;return!c||!(I||o)?null:b.jsx("div",{...T(),children:I?b.jsx("div",{...D(),children:h}):b.jsx("div",{...k(),children:o})})},[c,m,h,o,T,D,k]),M=f.useMemo(()=>b.jsxs("div",{...$(),children:[s,b.jsx("input",{...v()}),F]}),[s,F,v,$]),A=f.useMemo(()=>p?b.jsxs("div",{...S(),children:[b.jsxs("div",{...C(),children:[!u&&!d?V:null,M]}),y]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{...C(),children:[V,M]}),y]}),[l,y,p,V,M,h,o,S,C,D,k]);return b.jsxs(r,{...g(),children:[u||d?V:null,A]})});Fb.displayName="HeroUI.Input";var di=Fb;class Vb{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l)};for(let a of t)r(a);let n=null,o=0,i=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,n=l,n.nextKey=void 0;this._size=i;var s;this.lastKey=(s=n?.key)!==null&&s!==void 0?s:null}}class ir extends Set{constructor(t,r,n){super(t),t instanceof ir?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function a3(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function l3(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=f.useRef(!1),[,a]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>jb(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>jb(e.defaultSelectedKeys,new ir),[e.defaultSelectedKeys]),[h,m]=Er(d,p,e.onSelectionChange),g=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,v]=f.useState(o);o==="replace"&&x==="toggle"&&typeof h=="object"&&h.size===0&&v("replace");let $=f.useRef(o);return f.useEffect(()=>{o!==$.current&&(v(o),$.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:x,setSelectionBehavior:v,get isFocused(){return s.current},setFocused(C){s.current=C,a(C)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(C,S="first"){l.current=C,c.current=S,u(C)},selectedKeys:h,setSelectedKeys(C){(n||!a3(C,h))&&m(C)},disabledKeys:g,disabledBehavior:i}}function jb(e,t){return e?e==="all"?"all":new ir(e):t}function zb(e){return null}zb.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:i}=t,s=t.title||t.children,a=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!a&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:a,"aria-label":t["aria-label"],hasChildNodes:u3(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(i,c=>{l.push({type:"item",element:c})}),yield*l}}}};function u3(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let c3=zb;class d3{build(t,r){return this.context=r,Bb(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(f.isValidElement(r)&&r.type===f.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];f.Children.forEach(r,s=>{s&&o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let l of a)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(f.isValidElement(t.element)&&t.element.type===f.Fragment){let x=[];f.Children.forEach(t.element.props.children,$=>{x.push($)});var i;let v=(i=t.index)!==null&&i!==void 0?i:0;for(const $ of x)yield*this.getFullNode({element:$,index:v++},r,n,o);return}let s=t.element;if(!s&&t.value&&r&&r.renderer){let x=this.cache.get(t.value);if(x&&(!x.shouldInvalidate||!x.shouldInvalidate(this.context))){x.index=t.index,x.parentKey=o?o.key:null,yield x;return}s=r.renderer(t.value)}if(f.isValidElement(s)){let x=s.type;if(typeof x!="function"&&typeof x.getCollectionNode!="function"){let S=s.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=x.getCollectionNode(s.props,this.context);var a;let $=(a=t.index)!==null&&a!==void 0?a:0,C=v.next();for(;!C.done&&C.value;){let S=C.value;t.index=$;var l;let T=(l=S.key)!==null&&l!==void 0?l:null;T==null&&(T=S.element?null:this.getKey(s,t,r,n));let D=[...this.getFullNode({...S,key:T,index:$,wrapper:f3(t.wrapper,S.wrapper)},this.getChildState(r,S),n?`${n}${s.key}`:s.key,o)];for(let E of D){var c,u;E.value=(u=(c=S.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,E.value&&this.cache.set(E.value,E);var d;if(t.type&&E.type!==t.type)throw new Error(`Unsupported type <${Tc(E.type)}> in <${Tc((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Tc(t.type)}> is supported.`);$++,yield E}C=v.next(D)}return}if(t.key==null||t.type==null)return;let p=this;var h,m;let g={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Bb(function*(){if(!t.hasChildNodes||!t.childNodes)return;let x=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${g.key}${v.key}`);let $=p.getFullNode({...v,index:x},p.getChildState(r,v),g.key,g);for(let C of $)x++,yield C}})};yield g}constructor(){this.cache=new WeakMap}}function Bb(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function f3(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Tc(e){return e[0].toUpperCase()+e.slice(1)}function p3(e,t,r){let n=f.useMemo(()=>new d3,[]),{children:o,items:i,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,s,r,t])}function Rb(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function h3(e){return m3(e)}function m3(e,t){for(let r of e)return r}function kc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Kb(e,t),t],o=[...Kb(e,r),r],i=n.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function Kb(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const Wb=new WeakMap;function g3(e){let t=Wb.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Rb(i,e)):i.type==="item"&&r++};return n(e),Wb.set(e,r),r}class Ic{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&kc(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&kc(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ir([r],r,r);else{let s=this.state.selectedKeys;var o;let a=(o=s.anchorKey)!==null&&o!==void 0?o:r;n=new ir(s,a,r);var i;for(let l of this.getKeyRange(a,(i=s.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,a))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?kc(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ir(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ir([r],r,r):new ir;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ir;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let s=this.collection.getItem(n);s?.type==="item"&&t.push(n);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&r((i=(o=h3(Rb(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ir)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Ic(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function Ub(e){let{filter:t,layoutDelegate:r}=e,n=l3(e),o=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=f.useCallback(c=>t?new Vb(t(c)):new Vb(c),[t]),s=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=p3(e,i,s),l=f.useMemo(()=>new Ic(a,n,{layoutDelegate:r}),[a,n,r]);return v3(a,l),{collection:a,disabledKeys:o,selectionManager:l}}function v3(e,t){const r=f.useRef(null);f.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const u=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(v=>{const $=r.current.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null),p=[...e.getKeys()].map(v=>{const $=e.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null);var n,o;const h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var i,s,a;let m=Math.min(h>1?Math.max(((i=u?.index)!==null&&i!==void 0?i:0)-h+1,0):(s=u?.index)!==null&&s!==void 0?s:0,((a=p?.length)!==null&&a!==void 0?a:0)-1),g=null,x=!1;for(;m>=0;){if(!t.isDisabled(p[m].key)){g=p[m];break}if(m<p.length-1&&!x)m++;else{x=!0;var l,c;m>((l=u?.index)!==null&&l!==void 0?l:0)&&(m=(c=u?.index)!==null&&c!==void 0?c:0),m--}}t.setFocusedKey(g?g.key:null)}r.current=e},[e,t])}function b3(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:i,selectionMode:s}}=Ub(e),a=f.useMemo(()=>!e.isLoading&&i.size!==0?Array.from(i).filter(Boolean).filter(c=>!t.getItem(c)):[],[i,t]),l=i.size!==0?Array.from(i).map(c=>t.getItem(c)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:s,selectedKeys:i,setSelectedKeys:o.bind(n),selectedItems:l}}function y3(e){let t=qs(e),[r,n]=f.useState(null),[o,i]=f.useState([]),s=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){s()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(d=>u>d.length?d:[...d.slice(0,u),c])},closeSubmenu:(c,u)=>{i(d=>d[u]===c?d.slice(0,u):d)}}}function x3({validate:e,validationBehavior:t,...r}){const[n,o]=f.useState(!1),[i,s]=f.useState(null),a=y3(r),l=b3({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&a.close()}}),c=Xv({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),u=l.collection.size===0&&r.hideEmptyContent;return{...c,...l,...a,focusStrategy:i,close(){a.close()},open(d=null){u||(s(d),a.open())},toggle(d=null){u||(s(d),a.toggle())},isFocused:n,setFocused:o}}var Hb={};Hb={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Gb={};Gb={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Zb={};Zb={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qb={};qb={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Yb={};Yb={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Xb={};Xb={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Jb={};Jb={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Qb={};Qb={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var e0={};e0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var t0={};t0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var r0={};r0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var n0={};n0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var o0={};o0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var i0={};i0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var s0={};s0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var a0={};a0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var l0={};l0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var u0={};u0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var c0={};c0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var d0={};d0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var f0={};f0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var p0={};p0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var h0={};h0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var m0={};m0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var g0={};g0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var v0={};v0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var b0={};b0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var y0={};y0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var x0={};x0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var w0={};w0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var $0={};$0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var E0={};E0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var P0={};P0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var C0={};C0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var S0={};S0={"ar-AE":Hb,"bg-BG":Gb,"cs-CZ":Zb,"da-DK":qb,"de-DE":Yb,"el-GR":Xb,"en-US":Jb,"es-ES":Qb,"et-EE":e0,"fi-FI":t0,"fr-FR":r0,"he-IL":n0,"hr-HR":o0,"hu-HU":i0,"it-IT":s0,"ja-JP":a0,"ko-KR":l0,"lt-LT":u0,"lv-LV":c0,"nb-NO":d0,"nl-NL":f0,"pl-PL":p0,"pt-BR":h0,"pt-PT":m0,"ro-RO":g0,"ru-RU":v0,"sk-SK":b0,"sl-SI":y0,"sr-SP":x0,"sv-SE":w0,"tr-TR":$0,"uk-UA":E0,"zh-CN":P0,"zh-TW":C0};function w3(e){return e&&e.__esModule?e.default:e}function $3(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,s=Nt(),{triggerProps:a,overlayProps:l}=jg({type:n},t,r),c=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(i==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},u=Fg(w3(S0),"@react-aria/menu"),{longPressProps:d}=em({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Zt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Zt(h.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?p:d,id:s,onKeyDown:c},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function _c(e){return vw()?e.altKey:e.ctrlKey}function ra(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const T0=new WeakMap;function E3(e){let t=Nt();return T0.set(e,t),t}function P3(e){return T0.get(e)}const C3=1e3;function k0(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=s=>{let a=S3(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&a===" ")){if(a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},C3)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function S3(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T3(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:m=n,linkBehavior:g="action"}=e,{direction:x}=oi(),v=Xa(),$=P=>{var _;if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!(!((_=n.current)===null||_===void 0)&&_.contains(P.target)))return;const B=(q,X)=>{if(q!=null){if(t.isLink(q)&&g==="selection"&&c&&!_c(P)){Kn.flushSync(()=>{t.setFocusedKey(q,X)});let le=ra(n,q),ae=t.getItemProps(q);le&&v.open(le,P,ae.href,ae.routerOptions);return}if(t.setFocusedKey(q,X),t.isLink(q)&&g==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&!_c(P)&&t.replaceSelection(q)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var L,K,z;let q=t.focusedKey!=null?(L=r.getKeyBelow)===null||L===void 0?void 0:L.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);q==null&&i&&(q=(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowUp":if(r.getKeyAbove){var W,U,ee;let q=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);q==null&&i&&(q=(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,R,me;let q=t.focusedKey!=null?(G=r.getKeyLeftOf)===null||G===void 0?void 0:G.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey):(me=r.getLastKey)===null||me===void 0?void 0:me.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ue,Q,se;let q=t.focusedKey!=null?(ue=r.getKeyRightOf)===null||ue===void 0?void 0:ue.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(Q=r.getLastKey)===null||Q===void 0?void 0:Q.call(r,t.focusedKey):(se=r.getFirstKey)===null||se===void 0?void 0:se.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getFirstKey(t.focusedKey,Jn(P));t.setFocusedKey(q),q!=null&&(Jn(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getLastKey(t.focusedKey,Jn(P));t.setFocusedKey(q),q!=null&&(Jn(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"a":Jn(P)&&t.selectionMode==="multiple"&&a!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(P.shiftKey)n.current.focus();else{let q=pr(n.current,{tabbable:!0}),X,le;do le=q.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Zt(X)}break}}},C=f.useRef({top:0,left:0});Ki(m,"scroll",h?void 0:()=>{var P,_,B,L;C.current={top:(B=(P=m.current)===null||P===void 0?void 0:P.scrollTop)!==null&&B!==void 0?B:0,left:(L=(_=m.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&L!==void 0?L:0}});let S=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){var _,B;let z=U=>{U!=null&&(t.setFocusedKey(U),c&&!t.isSelected(U)&&t.replaceSelection(U))},W=P.relatedTarget;var L,K;W&&P.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(_=r.getLastKey)===null||_===void 0?void 0:_.call(r)):z((K=t.firstSelectedKey)!==null&&K!==void 0?K:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!h&&m.current&&(m.current.scrollTop=C.current.top,m.current.scrollLeft=C.current.left);if(t.focusedKey!=null&&m.current){let z=ra(n,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&Zt(z),Xo()==="keyboard"&&wf(z,{containingElement:n.current}))}}},T=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)},k=f.useRef(!1);Ki(n,Mw,d?P=>{let{detail:_}=P;P.stopPropagation(),t.setFocused(!0),_?.focusStrategy==="first"&&(k.current=!0)}:void 0);let D=Ye(()=>{var P,_;let B=(_=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&_!==void 0?_:null;if(B==null){let L=Tt();sm(n.current),am(L,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(B),k.current=!1});gf(()=>{k.current&&D()},[t.collection,D]);let E=Ye(()=>{t.collection.size>0&&(k.current=!1)});gf(()=>{E()},[t.focusedKey,E]),Ki(n,_w,d?P=>{var _;P.stopPropagation(),t.setFocused(!1),!((_=P.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=f.useRef(o),F=f.useRef(!1);f.useEffect(()=>{if(V.current){var P,_;let K=null;var B;o==="first"&&(K=(B=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&B!==void 0?B:null);var L;o==="last"&&(K=(L=(_=r.getLastKey)===null||_===void 0?void 0:_.call(r))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let W of z)if(t.canSelectItem(W)){K=W;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&xn(n.current),t.collection.size>0&&(V.current=!1,F.current=!0)}});let y=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==y.current||F.current)&&m.current&&n.current){let P=Xo(),_=ra(n,t.focusedKey);if(!(_ instanceof HTMLElement))return;(P==="keyboard"||F.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{m.current&&(yf(m.current,_),P!=="virtual"&&wf(_,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&y.current!=null&&n.current&&xn(n.current),y.current=t.focusedKey,F.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),Ki(n,"react-aria-focus-scope-restore",P=>{P.preventDefault(),t.setFocused(!0)});let A={onKeyDown:$,onFocus:S,onBlur:T,onMouseDown(P){m.current===P.target&&P.preventDefault()}},{typeSelectProps:I}=k0({keyboardDelegate:r,selectionManager:t});u||(A=Ie(I,A));let N;d||(N=t.focusedKey==null?0:-1);let w=E3(t.collection);return{collectionProps:Ie(A,{tabIndex:N,"data-collection":w})}}function k3(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=e,p=Xa();t=Nt(t);let h=L=>{if(L.pointerType==="keyboard"&&_c(L))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);p.open(o.current,L,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):L&&L.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||L&&(Jn(L)||L.pointerType==="touch"||L.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(s?sm(o.current):a?a():document.activeElement!==o.current&&o.current&&xn(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),l=l||r.isDisabled(n);let m={};!s&&!l?m={tabIndex:n===r.focusedKey?0:-1,onFocus(L){L.target===o.current&&r.setFocusedKey(n)}}:l&&(m.onMouseDown=L=>{L.preventDefault()});let g=r.isLink(n)&&d==="override",x=c&&e.UNSTABLE_itemBehavior==="action",v=r.isLink(n)&&d!=="selection"&&d!=="none",$=!l&&r.canSelectItem(n)&&!g&&!x,C=(c||v)&&!l,S=C&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),T=C&&$&&r.selectionBehavior==="replace",k=S||T,D=f.useRef(null),E=k&&$,V=f.useRef(!1),F=f.useRef(!1),y=r.getItemProps(n),M=L=>{if(c){var K;c(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&o.current&&p.open(o.current,L,y.href,y.routerOptions)},A={ref:o};if(i?(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,L.pointerType==="keyboard"&&(!k||_0())&&h(L)},u?(A.onPressUp=S?void 0:L=>{L.pointerType==="mouse"&&$&&h(L)},A.onPress=S?M:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&$&&h(L)}):A.onPress=L=>{if(S||T&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!I0())return;M(L)}else L.pointerType!=="keyboard"&&$&&h(L)}):(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,F.current=S,$&&(L.pointerType==="mouse"&&!S||L.pointerType==="keyboard"&&(!C||_0()))&&h(L)},A.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&k&&I0()||L.pointerType==="mouse"&&F.current)&&(k?M(L):$&&h(L))}),m["data-collection"]=P3(r.collection),m["data-key"]=n,A.preventFocusOnPress=s,s&&(A=Ie(A,{onPressStart(L){L.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(L){L.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),y)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])y[L]&&(A[L]=on(A[L],y[L]));let{pressProps:I,isPressed:N}=fr(A),w=T?L=>{D.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),M(L))}:void 0,{longPressProps:P}=em({isDisabled:!E,onLongPress(L){L.pointerType==="touch"&&(h(L),r.setSelectionBehavior("toggle"))}}),_=L=>{D.current==="touch"&&V.current&&L.preventDefault()},B=d!=="none"&&r.isLink(n)?L=>{an.isOpening||L.preventDefault()}:void 0;return{itemProps:Ie(m,$||S||s&&!l?I:{},E?P:{},{onDoubleClick:w,onDragStartCapture:_,onClick:B,id:t},s?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:N,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:$,hasAction:k}}function I0(){let e=window.event;return e?.key==="Enter"}function _0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class M0{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?ra(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class D0{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(s,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Xn(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!Xn(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new M0(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new M0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function I3(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,a=Vg({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=f.useMemo(()=>i||new D0({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:a,layoutDelegate:s}),[i,s,r,n,o,a,l]),{collectionProps:u}=T3({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function _3(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,i=Vg({usage:"search",sensitivity:"base"}),s=f.useMemo(()=>new D0(t.collection,t.disabledKeys,null,i),[t.collection,t.disabledKeys,i]),{menuTriggerProps:a,menuProps:l}=$3({isDisabled:o,type:"listbox"},t,r),c=T=>{if(t.selectionMode==="single")switch(T.key){case"ArrowLeft":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyAbove(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyBelow(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:u}=k0({keyboardDelegate:s,selectionManager:t.selectionManager,onTypeSelect(T){t.setSelectedKeys([T])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:m,fieldProps:g,descriptionProps:x,errorMessageProps:v}=rb({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture,a.onPressStart=T=>{T.pointerType!=="touch"&&T.pointerType!=="keyboard"&&!o&&t.toggle(T.pointerType==="virtual"?"first":null)};const $=lr(e,{labelable:!0}),C=Ie(u,a,g),S=Nt();return{labelProps:{...m,onClick:()=>{var T;e.isDisabled||((T=r.current)==null||T.focus(),Es("keyboard"))}},triggerProps:Ie($,{...C,onKeyDown:on(C.onKeyDown,c,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].join(" "),onFocus(T){t.isFocused||(e.onFocus&&e.onFocus(T),t.setFocused(!0))},onBlur(T){t.isOpen||(e.onBlur&&e.onBlur(T),t.setFocused(!1))}}),valueProps:{id:S},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||(e.onBlur&&e.onBlur(T),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[g["aria-labelledby"],C["aria-label"]&&!g["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:x,errorMessageProps:v,isInvalid:d,validationErrors:p,validationDetails:h}}var A0=new WeakMap;function M3(e){var t,r,n,o,i,s;const a=gt(),{validationBehavior:l}=yc(Ys)||{},[c,u]=Bt(e,Vd.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:a?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:m,name:g,isLoading:x,selectorIcon:v,isOpen:$,defaultOpen:C,onOpenChange:S,startContent:T,endContent:k,description:D,renderValue:E,onSelectionChange:V,placeholder:F,isVirtualized:y,itemHeight:M=36,maxListboxHeight:A=256,children:I,disallowEmptySelection:N=!1,selectionMode:w="single",spinnerRef:P,scrollRef:_,popoverProps:B={},scrollShadowProps:L={},listboxProps:K={},spinnerProps:z={},validationState:W,onChange:U,onClose:ee,className:G,classNames:R,validationBehavior:me=(n=l??a?.validationBehavior)!=null?n:"native",hideEmptyContent:ue=!1,onClear:Q,...se}=c,q=Rt(_),X={popoverProps:Ve({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},B),scrollShadowProps:Ve({ref:q,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},L),listboxProps:Ve({disableAnimation:d},K)},le=h||"button",ae=typeof le=="string",oe=Rt(p),be=f.useRef(null),Me=f.useRef(null),ye=f.useRef(null);let te=x3({...c,isOpen:$,selectionMode:w,disallowEmptySelection:N,validationBehavior:me,children:I,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:C,hideEmptyContent:ue,onOpenChange:ne=>{S?.(ne),ne||ee?.()},onSelectionChange:ne=>{V?.(ne),U&&typeof U=="function"&&U({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(ne).join(",")}}),te.commitValidation()}});te={...te,...e.isDisabled&&{disabledKeys:new Set([...te.collection.getKeys()])}},_n(()=>{var ne;(ne=oe.current)!=null&&ne.value&&te.setSelectedKeys(new Set([...te.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:je,triggerProps:xe,valueProps:We,menuProps:lt,descriptionProps:Te,errorMessageProps:Ge,isInvalid:pt,validationErrors:Ft,validationDetails:Oe}=_3({...c,disallowEmptySelection:N,isDisabled:e.isDisabled},te,be),Ct=f.useCallback(()=>{var ne;te.setSelectedKeys(new Set([])),Q?.(),(ne=be.current)==null||ne.focus()},[Q,te]),{pressProps:It}=fr({isDisabled:!!e?.isDisabled,onPress:Ct}),_t=e.isInvalid||W==="invalid"||pt,{isPressed:Wt,buttonProps:Ze}=fc(xe,be),{focusProps:Mr,isFocused:sr,isFocusVisible:Jr}=Pn(),{focusProps:Vt,isFocusVisible:Ce}=Pn(),{isHovered:ze,hoverProps:Mt}=$n({isDisabled:e.isDisabled}),$t=UC({labelPlacement:e.labelPlacement,label:m}),er=!!F,Io=$t==="outside-left"||$t==="outside",Dr=$t==="inside",Ut=$t==="outside-left",Fn=e.isClearable,Vn=te.isOpen||er||!!((i=te.selectedItems)!=null&&i.length)||!!T||!!k||!!e.isMultiline,qe=!!((s=te.selectedItems)!=null&&s.length),jn=!!m,zn=jn&&(Ut||Io&&er),Qr=Pe(R?.base,G),ke=f.useMemo(()=>Vd({...u,isInvalid:_t,isClearable:Fn,labelPlacement:$t,disableAnimation:d}),[Zr(u),_t,$t,d]);uc({isDisabled:!te.isOpen});const _o=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:_t,validationErrors:Ft,validationDetails:Oe}):c.errorMessage||Ft?.join(" "),Bn=!!D||!!_o,xi=!!k;f.useEffect(()=>{if(te.isOpen&&ye.current&&be.current){let ne=be.current.getBoundingClientRect(),Rn=ye.current;Rn.style.width=ne.width+"px"}},[te.isOpen]);const O=f.useCallback((ne={})=>({"data-slot":"base","data-filled":he(Vn),"data-has-value":he(qe),"data-has-label":he(jn),"data-has-helper":he(Bn),"data-has-end-content":he(xi),"data-invalid":he(_t),"data-has-label-outside":he(zn),className:ke.base({class:Pe(Qr,ne.className)}),...ne}),[ke,Bn,qe,jn,zn,Vn,Qr]),J=f.useCallback((ne={})=>({ref:be,"data-slot":"trigger","data-open":he(te.isOpen),"data-disabled":he(e?.isDisabled),"data-focus":he(sr),"data-pressed":he(Wt),"data-focus-visible":he(Jr),"data-hover":he(ze),className:ke.trigger({class:R?.trigger}),...Ve(Ze,Mr,Mt,ut(se,{enabled:ae}),ut(ne))}),[ke,be,te.isOpen,R?.trigger,e?.isDisabled,sr,Wt,Jr,ze,Ze,Mr,Mt,se,ae]),ie=f.useCallback((ne={})=>({state:te,triggerRef:be,selectRef:oe,selectionMode:w,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:U,...ne}),[te,w,e?.label,e?.autoComplete,e?.name,e?.isDisabled,be]),ve=f.useCallback((ne={})=>({"data-slot":"label",className:ke.label({class:Pe(R?.label,ne.className)}),...je,...ne}),[ke,R?.label,je]),re=f.useCallback((ne={})=>({"data-slot":"value",className:ke.value({class:Pe(R?.value,ne.className)}),...We,...ne}),[ke,R?.value,We]),Ae=f.useCallback((ne={})=>({"data-slot":"listboxWrapper",className:ke.listboxWrapper({class:Pe(R?.listboxWrapper,ne?.className)}),style:{maxHeight:A??256,...ne.style},...Ve(X.scrollShadowProps,ne)}),[ke.listboxWrapper,R?.listboxWrapper,X.scrollShadowProps,A]),De=(ne={})=>{const Rn=y??te.collection.size>50;return{state:te,ref:Me,isVirtualized:Rn,virtualization:Rn?{maxListboxHeight:A,itemHeight:M}:void 0,"data-slot":"listbox",className:ke.listbox({class:Pe(R?.listbox,ne?.className)}),scrollShadowProps:X.scrollShadowProps,...Ve(X.listboxProps,ne,lt)}},Se=f.useCallback((ne={})=>{var Rn,r1;const R8=Ve(X.popoverProps,ne);return{state:te,triggerRef:be,ref:ye,"data-slot":"popover",scrollRef:Me,triggerType:"listbox",classNames:{content:ke.popoverContent({class:Pe(R?.popoverContent,ne.className)})},...R8,offset:te.selectedItems&&te.selectedItems.length>0?te.selectedItems.length*1e-8+(((Rn=X.popoverProps)==null?void 0:Rn.offset)||0):(r1=X.popoverProps)==null?void 0:r1.offset}},[ke,R?.popoverContent,X.popoverProps,be,te,te.selectedItems]),St=f.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":he(!0),"data-open":he(te.isOpen),className:ke.selectorIcon({class:R?.selectorIcon})}),[ke,R?.selectorIcon,te.isOpen]),rt=f.useCallback((ne={})=>({...ne,"data-slot":"innerWrapper",className:ke.innerWrapper({class:Pe(R?.innerWrapper,ne?.className)})}),[ke,R?.innerWrapper]),it=f.useCallback((ne={})=>({...ne,"data-slot":"helperWrapper",className:ke.helperWrapper({class:Pe(R?.helperWrapper,ne?.className)})}),[ke,R?.helperWrapper]),Ht=f.useCallback((ne={})=>({...ne,...Te,"data-slot":"description",className:ke.description({class:Pe(R?.description,ne?.className)})}),[ke,R?.description]),en=f.useCallback((ne={})=>({...ne,"data-slot":"mainWrapper",className:ke.mainWrapper({class:Pe(R?.mainWrapper,ne?.className)})}),[ke,R?.mainWrapper]),Ar=f.useCallback((ne={})=>({...ne,"data-slot":"end-wrapper",className:ke.endWrapper({class:Pe(R?.endWrapper,ne?.className)})}),[ke,R?.endWrapper]),Dt=f.useCallback((ne={})=>({...ne,"data-slot":"end-content",className:ke.endContent({class:Pe(R?.endContent,ne?.className)})}),[ke,R?.endContent]),wi=f.useCallback((ne={})=>({...ne,...Ge,"data-slot":"error-message",className:ke.errorMessage({class:Pe(R?.errorMessage,ne?.className)})}),[ke,Ge,R?.errorMessage]),ud=f.useCallback((ne={})=>({"aria-hidden":he(!0),"data-slot":"spinner",color:"current",size:"sm",...z,...ne,ref:P,className:ke.spinner({class:Pe(R?.spinner,ne?.className)})}),[ke,P,z,R?.spinner]),cd=f.useCallback((ne={})=>({...ne,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":he(Ce),className:ke.clearButton({class:Pe(R?.clearButton,ne?.className)}),...Ve(It,Vt)}),[ke,Ce,It,Vt,R?.clearButton]);return A0.set(te,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:_t,validationBehavior:me}),{Component:le,domRef:oe,state:te,label:m,name:g,triggerRef:be,isLoading:x,placeholder:F,startContent:T,endContent:k,description:D,selectorIcon:v,hasHelper:Bn,labelPlacement:$t,hasPlaceholder:er,renderValue:E,selectionMode:w,disableAnimation:d,isOutsideLeft:Ut,shouldLabelBeOutside:Io,shouldLabelBeInside:Dr,isInvalid:_t,errorMessage:_o,isClearable:Fn,getClearButtonProps:cd,getBaseProps:O,getTriggerProps:J,getLabelProps:ve,getValueProps:re,getListboxProps:De,getPopoverProps:Se,getSpinnerProps:ud,getMainWrapperProps:en,getListboxWrapperProps:Ae,getHiddenSelectProps:ie,getInnerWrapperProps:rt,getHelperWrapperProps:it,getDescriptionProps:Ht,getErrorMessageProps:wi,getSelectorIconProps:St,getEndWrapperProps:Ar,getEndContentProps:Dt}}var D3=typeof document<"u"?f.useLayoutEffect:()=>{};function A3(e){const t=f.useRef(null);return D3(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function N3(e,t,r){let n=f.useRef(t),o=A3(()=>{r&&r(n.current)});f.useEffect(()=>{var i;let s=(i=e?.current)==null?void 0:i.form;return s?.addEventListener("reset",o),()=>{s?.removeEventListener("reset",o)}},[e,o])}function O3(e,t,r){var n;let o=A0.get(t)||{},{autoComplete:i,name:s=o.name,isDisabled:a=o.isDisabled,selectionMode:l,onChange:c,form:u}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:m}=Pv();return N3(e.selectRef,t.selectedKeys,t.setSelectedKeys),eb({validationBehavior:d,focus:()=>{var g;return(g=r.current)==null?void 0:g.focus()}},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:u,autoComplete:i,disabled:a,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:s,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(g=>String(g)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:g=>{t.setSelectedKeys(g.target.value),c?.(g)}}}}function L3(e){var t;let{state:r,triggerRef:n,selectRef:o,label:i,name:s,isDisabled:a,form:l}=e,{containerProps:c,selectProps:u}=O3({...e,selectRef:o},r,n);return r.collection.size<=300?b.jsx("div",{...c,"data-testid":"hidden-select-container",children:b.jsxs("label",{children:[i,b.jsxs("select",{...u,ref:o,children:[b.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return b.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):s?b.jsx("input",{autoComplete:u.autoComplete,disabled:a,form:l,name:s,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}var F3=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},V3=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],j3=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},N0=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},fi=new WeakMap,Kt=[];function z3(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let c=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of r)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let p=u.nextNode();for(;p!=null;)i(p),p=u.nextNode()}},i=l=>{var c;let u=(c=fi.get(l))!=null?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),fi.set(l,u+1))};Kt.length&&Kt[Kt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});s.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:r,hiddenNodes:n,observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Kt.push(a),()=>{s.disconnect();for(let l of n){let c=fi.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),fi.delete(l)):fi.set(l,c-1))}a===Kt[Kt.length-1]?(Kt.pop(),Kt.length&&Kt[Kt.length-1].observe()):Kt.splice(Kt.indexOf(a),1)}}function B3(e){let t=Kt[Kt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var R3=c3,Pt=R3;const Mc=new WeakMap;function K3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function W3(e,t){let r=Mc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${K3(t)}`}function U3(e,t,r){let n=lr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:s}=I3({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Rr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Nt(e.id);Mc.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:u}=tb({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:Ie(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ie(u,s)})}}function H3(e,t,r){var n,o;let{key:i}=e,s=Mc.get(t);var a;let l=(a=e.isDisabled)!==null&&a!==void 0?a:t.selectionManager.isDisabled(i);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:s?.shouldSelectOnPressUp;var h;let m=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:s?.shouldFocusOnHover;var g;let x=(g=e.shouldUseVirtualFocus)!==null&&g!==void 0?g:s?.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:s?.isVirtualized,C=nn(),S=nn(),T={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Lr()&&Bi()||(T["aria-label"]=e["aria-label"],T["aria-labelledby"]=C,T["aria-describedby"]=S);let k=t.collection.getItem(i);if($){let P=Number(k?.index);T["aria-posinset"]=Number.isNaN(P)?void 0:P+1,T["aria-setsize"]=g3(t.collection)}let D=s?.onAction?()=>{var P;return s==null||(P=s.onAction)===null||P===void 0?void 0:P.call(s,i)}:void 0,E=W3(t,i),{itemProps:V,isPressed:F,isFocused:y,hasAction:M,allowsSelection:A}=k3({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&m,isVirtualized:$,shouldUseVirtualFocus:x,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?on(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:E}),{hoverProps:I}=$n({isDisabled:l||!m,onHoverStart(){mo()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),N=lr(k?.props);delete N.id;let w=$w(k?.props);return{optionProps:{...T,...Ie(N,V,I,w),id:E},labelProps:{id:C},descriptionProps:{id:S},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&mo(),isSelected:u,isDisabled:l,isPressed:F,allowsSelection:A,hasAction:M}}function G3(e){let{heading:t,"aria-label":r}=e,n=Nt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function Z3(e){var t;const r=gt(),{ref:n,as:o,state:i,variant:s,color:a,onAction:l,children:c,onSelectionChange:u,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:p,className:h,topContent:m,bottomContent:g,emptyContent:x="No items.",hideSelectedIcon:v=!1,hideEmptyContent:$=!1,shouldHighlightOnFocus:C=!1,classNames:S,...T}=e,k=o||"ul",D=typeof k=="string",E=Rt(n),V=Ub({...e,children:c,onSelectionChange:u}),F=i||V,{listBoxProps:y}=U3({...e,onAction:l},F,E),M=f.useMemo(()=>cx(),[]),A=Pe(S?.base,h);return{Component:k,state:F,variant:s,color:a,slots:M,classNames:S,topContent:m,bottomContent:g,emptyContent:x,hideEmptyContent:$,shouldHighlightOnFocus:C,hideSelectedIcon:v,disableAnimation:d,className:h,itemClasses:p,getBaseProps:(P={})=>({ref:E,"data-slot":"base",className:M.base({class:A}),...ut(T,{enabled:D}),...P}),getListProps:(P={})=>({"data-slot":"list",className:M.list({class:S?.list}),...y,...P}),getEmptyContentProps:(P={})=>({"data-slot":"empty-content",children:x,className:M.emptyContent({class:S?.emptyContent}),...P})}}function q3(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:b.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var Y3=700;function X3(){return Zn()||typeof window>"u"?!1:window.screen.width<=Y3}function J3(e){var t,r;const n=gt(),[o,i]=Bt(e,zd.variantKeys),{as:s,item:a,state:l,description:c,startContent:u,endContent:d,isVirtualized:p,selectedIcon:h,className:m,classNames:g,autoFocus:x,onPress:v,onPressUp:$,onPressStart:C,onPressEnd:S,onPressChange:T,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:E=!1,isReadOnly:V=!1,...F}=o,y=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=f.useRef(null),A=s||(e.href?"a":"li"),I=typeof A=="string",{rendered:N,key:w}=a,P=l.disabledKeys.has(w)||e.isDisabled,_=l.selectionManager.selectionMode!=="none",B=X3(),{pressProps:L,isPressed:K}=fr({ref:M,isDisabled:P,onClick:k,onPress:v,onPressUp:$,onPressStart:C,onPressEnd:S,onPressChange:T}),{isHovered:z,hoverProps:W}=$n({isDisabled:P}),{isFocusVisible:U,focusProps:ee}=Pn({autoFocus:x}),{isFocused:G,isSelected:R,optionProps:me,labelProps:ue,descriptionProps:Q}=H3({key:w,isDisabled:P,"aria-label":o["aria-label"],isVirtualized:p},l,M);let se=me;const q=f.useMemo(()=>zd({...i,isDisabled:P,disableAnimation:y,hasTitleTextChild:typeof N=="string",hasDescriptionTextChild:typeof c=="string"}),[Zr(i),P,y,N,c]),X=Pe(g?.base,m);V&&(se=GT(se));const le=D&&G||(B?z||K:z||G&&!U),ae=(te={})=>({ref:M,...Ve(se,V?{}:Ve(ee,L),W,ut(F,{enabled:I}),te),"data-selectable":he(_),"data-focus":he(G),"data-hover":he(le),"data-disabled":he(P),"data-selected":he(R),"data-pressed":he(K),"data-focus-visible":he(U),className:q.base({class:Pe(X,te.className)})}),oe=(te={})=>({...Ve(ue,te),"data-label":he(!0),className:q.title({class:g?.title})}),be=(te={})=>({...Ve(Q,te),className:q.description({class:g?.description})}),Me=(te={})=>({...Ve(te),className:q.wrapper({class:g?.wrapper})}),ye=f.useCallback((te={})=>({"aria-hidden":he(!0),"data-disabled":he(P),className:q.selectedIcon({class:g?.selectedIcon}),...te}),[P,q,g]);return{Component:A,domRef:M,slots:q,classNames:g,isSelectable:_,isSelected:R,isDisabled:P,rendered:N,description:c,startContent:u,endContent:d,selectedIcon:h,hideSelectedIcon:E,disableAnimation:y,getItemProps:ae,getLabelProps:oe,getWrapperProps:Me,getDescriptionProps:be,getSelectedIconProps:ye}}var O0=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:i,isDisabled:s,selectedIcon:a,startContent:l,endContent:c,hideSelectedIcon:u,disableAnimation:d,getItemProps:p,getLabelProps:h,getWrapperProps:m,getDescriptionProps:g,getSelectedIconProps:x}=J3(e),v=f.useMemo(()=>{const $=b.jsx(q3,{disableAnimation:d,isSelected:i});return typeof a=="function"?a({icon:$,isSelected:i,isDisabled:s}):a||$},[a,i,s,d]);return b.jsxs(t,{...p(),children:[l,n?b.jsxs("div",{...m(),children:[b.jsx("span",{...h(),children:r}),b.jsx("span",{...g(),children:n})]}):b.jsx("span",{...h(),children:r}),o&&!u&&b.jsx("span",{...x(),children:v}),c]})};O0.displayName="HeroUI.ListboxItem";var Dc=O0;function Q3(e){let t=ut(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function ek(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=Q3({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Rd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}function L0(e){return f.forwardRef(e)}var tk=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]},F0=L0((e,t)=>{const{Component:r,getDividerProps:n}=ek({...e});return b.jsx(r,{ref:t,...n()})});F0.displayName="HeroUI.Divider";var rk=F0,V0=Re(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:i,className:s,classNames:a,hideSelectedIcon:l,showDivider:c=!1,dividerProps:u={},itemClasses:d,title:p,items:h,...m},g)=>{const x=r||"li",v=f.useMemo(()=>dx(),[]),$=Pe(a?.base,s),C=Pe(a?.divider,u?.className),{itemProps:S,headingProps:T,groupProps:k}=G3({heading:e.rendered,"aria-label":e["aria-label"]});return b.jsxs(x,{"data-slot":"base",...Ve(S,m),className:v.base({class:$}),children:[e.rendered&&b.jsx("span",{...T,className:v.heading({class:a?.heading}),"data-slot":"heading",children:e.rendered}),b.jsxs("ul",{...k,className:v.group({class:a?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:E,props:V}=D;let F=b.jsx(Dc,{classNames:d,color:o,disableAnimation:i,hideSelectedIcon:l,item:D,state:t,variant:n,...V},E);return D.wrapper&&(F=D.wrapper(F)),F}),c&&b.jsx(rk,{as:"li",className:v.divider({class:C}),...u})]})]},e.key)});V0.displayName="HeroUI.ListboxSection";var j0=V0;function So(e,t,r){let n=r.initialDeps??[],o;return()=>{var i,s,a,l;let c;r.key&&((i=r.debug)!=null&&i.call(r))&&(c=Date.now());const u=e();if(!(u.length!==n.length||u.some((h,m)=>n[m]!==h)))return o;n=u;let p;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(p=Date.now()),o=t(...u),r.key&&((a=r.debug)!=null&&a.call(r))){const h=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-p)*100)/100,g=m/16,x=(v,$)=>{for(v=String(v);v.length<$;)v=" "+v;return v};console.info(`%c⏱ ${x(m,5)} /${x(h,5)} ms`,`
408
413
  font-size: .6rem;
409
414
  font-weight: bold;
410
- color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Kc(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const k3=(e,t)=>Math.abs(e-t)<1,I3=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},_3=e=>e,M3=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},D3=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(s=>{const a=s[0];if(a?.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},ay={passive:!0},A3=typeof window>"u"?!0:"onscrollend"in window,O3=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=e.options.useScrollendEvent&&A3?()=>{}:I3(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),s=c=>()=>{const{horizontal:u,isRtl:d}=e.options;o=u?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,c)},a=s(!0),l=s(!1);return l(),r.addEventListener("scroll",a,ay),r.addEventListener("scrollend",l,ay),()=>{r.removeEventListener("scroll",a),r.removeEventListener("scrollend",l)}},N3=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},L3=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const s=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class F3{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_3,rangeExtractor:M3,onChange:()=>{},measureElement:N3,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=To(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,i=new Map;for(let s=n-1;s>=0;s--){const a=r[s];if(o.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=To(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=To(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let u=l;u<r;u++){const d=i(u),h=this.options.lanes===1?c[u-1]:this.getFurthestMeasurement(c,u),p=h?h.end+this.options.gap:n+o,g=a.get(d),m=typeof g=="number"?g:this.options.estimateSize(u),x=p+m,v=h?h.lane:u%this.options.lanes;c[u]={index:u,start:p,size:m,end:x,key:d,lane:v}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=To(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?V3({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=To(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,i,s)=>i===null||s===null?[]:r({startIndex:i,endIndex:s,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const s=i.key,a=this.elementsCache.get(s);a!==r&&(a&&this.observer.unobserve(a),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,s=n-i;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=To(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,s=r.length;i<s;i++){const a=r[i],l=n[a];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Kc(n[ly(0,n.length-1,o=>Kc(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&r>=i+o&&(n="end"),n==="end"&&(r-=o);const s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(o.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const a=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(n){case"center":return[this.getOffsetForAlignment(a,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[s,a]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[c]=Kc(this.getOffsetForIndex(r,a));k3(c,this.getScrollOffset())||this.scrollToIndex(r,{align:a,behavior:o})}else this.scrollToIndex(r,{align:a,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const ly=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function V3({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=ly(0,n,a=>e[a].start,r);let s=i;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:i,endIndex:s}}const uy=typeof document<"u"?Nt.useLayoutEffect:Nt.useEffect;function j3(e){const t=Nt.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var s;i?Bn.flushSync(t):t(),(s=e.onChange)==null||s.call(e,o,i)}},[n]=Nt.useState(()=>new F3(r));return n.setOptions(r),uy(()=>n._didMount(),[]),uy(()=>n._willUpdate()),n}function z3(e){return j3({observeElementRect:D3,observeElementOffset:O3,scrollToFn:L3,...e})}function B3(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(p,g,m,x,v)=>{if(o==="auto"){const $=`${x}${eg(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var p,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((p=x?.getAttribute("data-virtual-scroll-height"))!=null?p:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:S,prefix:C,suffix:T}of m)if(n===S||n==="both"){const k=S==="vertical"?$>i:c.scrollLeft>i,D=S==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(S,k,D,C,T)}},h=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(p=>{c.removeAttribute(`data-${p}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(h(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{c.dataset[`${p}Scroll`]=String(o===p)}))),()=>{c.removeEventListener("scroll",d,!0),h()}},[...a,r,o,n,s,t])}function R3(e){var t;const[r,n]=qt(e,Li.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:p,...g}=r,m=i||"div",x=er(o);B3({domRef:x,offset:u,visibility:d,isEnabled:h,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Li({...n,className:a}),[yn(n),a]);return{Component:m,styles:v,domRef:x,children:s,getBaseProps:(S={})=>{var C;return{ref:x,className:v,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...S.style},...g,...S}}}}var K3=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},W3=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},U3=e=>{var t;const{Component:r,state:n,color:o,variant:i,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:c,hideEmptyContent:u,hideSelectedIcon:d,shouldHighlightOnFocus:h,disableAnimation:p,getEmptyContentProps:g,getListProps:m,scrollShadowProps:x}=e,{virtualization:v}=e;if(!v||!sT(v)&&!v.maxListboxHeight&&!v.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:$,itemHeight:S}=v,C=Math.min($,S*n.collection.size),T=f.useRef(null),k=f.useMemo(()=>K3([...n.collection],S),[n.collection,S]),D=z3({count:[...n.collection].length,getScrollElement:()=>T.current,estimateSize:N=>k[N]}),E=D.getVirtualItems(),V=D.getTotalSize(),{getBaseProps:F}=R3({...x}),b=N=>{var w;const P=[...n.collection][N.index];if(!P)return null;const _={color:o,item:P,state:n,variant:i,disableAnimation:p,hideSelectedIcon:d,...P.props},B={position:"absolute",top:0,left:0,width:"100%",height:`${N.size}px`,transform:`translateY(${N.start}px)`};if(P.type==="section")return y.jsx(sy,{..._,itemClasses:s,style:{...B,..._.style}},P.key);let L=y.jsx(Rc,{..._,classNames:Ve(s,(w=P.props)==null?void 0:w.classNames),shouldHighlightOnFocus:h,style:{...B,..._.style}},P.key);return P.wrapper&&(L=P.wrapper(L)),L},[M,A]=f.useState({isTop:!1,isBottom:!0,isMiddle:!1}),I=y.jsxs(r,{...m(),"data-virtual-scroll-height":V,"data-virtual-scroll-top":(t=T?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!u&&y.jsx("li",{children:y.jsx("div",{...g()})}),y.jsx("div",{...Tt(F()),ref:T,style:{height:$,overflow:"auto"},onScroll:N=>{A(W3(N.target))},children:C>0&&S>0&&y.jsx("div",{style:{height:`${V}px`,width:"100%",position:"relative"},children:E.map(N=>b(N))})})]});return y.jsxs("div",{...a(),children:[l,I,c]})},H3=U3,G3=Re(function(t,r){const{isVirtualized:n,...o}=t,i=y3({...o,ref:r}),{Component:s,state:a,color:l,variant:c,itemClasses:u,getBaseProps:d,topContent:h,bottomContent:p,hideEmptyContent:g,hideSelectedIcon:m,shouldHighlightOnFocus:x,disableAnimation:v,getEmptyContentProps:$,getListProps:S}=i;if(n)return y.jsx(H3,{...t,...i});const C=y.jsxs(s,{...S(),children:[!a.collection.size&&!g&&y.jsx("li",{children:y.jsx("div",{...$()})}),[...a.collection].map(T=>{var k;const D={color:l,item:T,state:a,variant:c,disableAnimation:v,hideSelectedIcon:m,...T.props};if(T.type==="section")return y.jsx(sy,{...D,itemClasses:u},T.key);let E=y.jsx(Rc,{...D,classNames:Ve(u,(k=T.props)==null?void 0:k.classNames),shouldHighlightOnFocus:x},T.key);return T.wrapper&&(E=T.wrapper(E)),E})]});return y.jsxs("div",{...d(),children:[h,C,p]})}),Z3=G3;function q3(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:i,offset:s=7,crossOffset:a=0,scrollRef:l,shouldFlip:c,boundaryElement:u,isDismissable:d=!0,shouldCloseOnBlur:h=!0,shouldCloseOnScroll:p=!0,placement:g="top",containerPadding:m,shouldCloseOnInteractOutside:x,isNonModal:v,isKeyboardDismissDisabled:$,updatePositionDeps:S=[],...C}=e,T=v??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:E}=tb({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:h,isDismissable:d||k,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:x||(I=>{var N;return!((N=n.current)!=null&&N.contains(I))}),disableOutsideEvents:!T},o),{overlayProps:V,arrowProps:F,placement:b,updatePosition:M,triggerAnchorPoint:A}=p4({...C,shouldFlip:c,crossOffset:a,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:m,placement:u3(g),offset:i?s+3:s,onClose:T&&!k&&p?t.close:()=>{}});return kn(()=>{S.length&&M()},S),f.useEffect(()=>{var I,N;if(t.isOpen&&o.current)return T?f3((I=r?.current)!=null?I:o.current):d3([(N=r?.current)!=null?N:o.current])},[T,t.isOpen,o,r]),{popoverProps:Ve(D,V),arrowProps:F,underlayProps:E,placement:b,triggerAnchorPoint:A}}var Y3="top";function X3(e){var t,r,n;const o=gt(),[i,s]=qt(e,Ni.variantKeys),{as:a,ref:l,children:c,state:u,triggerRef:d,scrollRef:h,defaultOpen:p,onOpenChange:g,isOpen:m,isNonModal:x=!0,shouldFlip:v=!0,containerPadding:$=12,shouldBlockScroll:S=!1,isDismissable:C=!0,shouldCloseOnBlur:T,portalContainer:k,updatePositionDeps:D,dialogProps:E,placement:V=Y3,triggerType:F="dialog",showArrow:b=!1,offset:M=7,crossOffset:A=0,boundaryElement:I,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:w,shouldCloseOnScroll:P,triggerAnchorPoint:_,motionProps:B,className:L,classNames:K,onClose:z,...W}=i,U=a||"div",ee=er(l),Z=f.useRef(null),R=f.useRef(!1),he=d||Z,fe=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,Q=ra({isOpen:m,defaultOpen:p,onOpenChange:Oe=>{g?.(Oe),Oe||z?.()}}),se=u||Q,{popoverProps:q,underlayProps:Y,placement:de}=q3({triggerRef:he,isNonModal:x,popoverRef:ee,placement:V,offset:M,scrollRef:h,isDismissable:C,shouldCloseOnBlur:T,boundaryElement:I,crossOffset:A,shouldFlip:v,containerPadding:$,updatePositionDeps:D,isKeyboardDismissDisabled:N,shouldCloseOnScroll:P,shouldCloseOnInteractOutside:w,triggerAnchorPoint:_},se),ae=f.useMemo(()=>de?c3(de,V)?de:V:null,[de,V]),{triggerProps:ie}=iv({type:F},se,he),{isFocusVisible:we,isFocused:De,focusProps:xe}=So(),te=f.useMemo(()=>Ni({...s}),[yn(s)]),je=Se(K?.base,L),Ee={"--trigger-anchor-point":_?`${_.x}px ${_.y}px`:void 0};wc({isDisabled:!(S&&se.isOpen)});const Ke=(Oe={})=>({ref:ee,...Ve(q,W,Oe),style:Ve(q.style,W.style,Oe.style)}),lt=(Oe={})=>({"data-slot":"base","data-open":ve(se.isOpen),"data-focus":ve(De),"data-arrow":ve(b),"data-focus-visible":ve(we),"data-placement":de?ty(de,V):void 0,...Ve(xe,E,Oe),className:te.base({class:Se(je)}),style:{outline:"none",...Ee}}),Te=f.useCallback((Oe={})=>({"data-slot":"content","data-open":ve(se.isOpen),"data-arrow":ve(b),"data-placement":de?ty(de,V):void 0,className:te.content({class:Se(K?.content,Oe.className)})}),[te,se.isOpen,b,ae,V,K,de]),Ge=f.useCallback(Oe=>{var St;let Mt;return Oe.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?Mt=setTimeout(()=>{R.current=!0},100):R.current=!0,(St=ie.onPress)==null||St.call(ie,Oe),()=>{clearTimeout(Mt)}},[ie?.onPress]),ft=f.useCallback((Oe={},St=null)=>{const{isDisabled:Mt,...Dt}=Oe;return{"data-slot":"trigger",...Ve({"aria-haspopup":"dialog"},ie,Dt),onPress:Ge,isDisabled:Mt,className:te.trigger({class:Se(K?.trigger,Oe.className),isTriggerDisabled:Mt}),ref:Vu(St,he)}},[se,ie,Ge,he]),Ft=f.useCallback((Oe={})=>({"data-slot":"backdrop",className:te.backdrop({class:K?.backdrop}),onClick:St=>{if(!R.current){St.preventDefault();return}se.close(),R.current=!1},...Y,...Oe}),[te,se.isOpen,K,Y]);return{state:se,Component:U,children:c,classNames:K,showArrow:b,triggerRef:he,placement:ae,isNonModal:x,popoverRef:ee,portalContainer:k,isOpen:se.isOpen,onClose:se.close,disableAnimation:fe,shouldBlockScroll:S,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:B,getBackdropProps:Ft,getPopoverProps:Ke,getTriggerProps:ft,getDialogProps:lt,getContentProps:Te}}var cy=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),dy=Re(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:i={},...s},a)=>{let l=o;return i.originX!==void 0||i.originY!==void 0?l={...l,transformOrigin:i}:r&&(l={...l,...l3(r==="center"?"top":r)}),n?y.jsx("div",{...s,ref:a,children:e}):y.jsx(ao,{features:cy,children:y.jsx(lo.div,{ref:a,animate:"enter",exit:"exit",initial:"initial",style:l,variants:ju.scaleSpringOpacity,...Ve(s,t),children:e})})});dy.displayName="HeroUI.FreeSoloPopoverWrapper";var fy=Re(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:i,state:s,placement:a,backdrop:l,portalContainer:c,disableAnimation:u,motionProps:d,isNonModal:h,getPopoverProps:p,getBackdropProps:g,getDialogProps:m,getContentProps:x}=X3({...n,ref:o}),v=Nt.useRef(null),{dialogProps:$,titleProps:S}=qv({},v),C=m({...!r&&{ref:v},...$}),T=Nt.useMemo(()=>l==="transparent"?null:u?y.jsx("div",{...g()}):y.jsx(ao,{features:cy,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:ju.fade,...g()})}),[l,u,g]);return y.jsxs(Gv,{portalContainer:c,children:[!h&&T,y.jsx(i,{...p(),children:y.jsxs(dy,{disableAnimation:u,motionProps:d,placement:a,tabIndex:-1,transformOrigin:t,...C,children:[!h&&y.jsx(ta,{onDismiss:s.close}),y.jsx("div",{...x(),children:typeof e=="function"?e(S):e}),y.jsx(ta,{onDismiss:s.close})]})})]})});fy.displayName="HeroUI.FreeSoloPopover";var J3=fy,[pM,Q3]=Nu({name:"ProviderContext",strict:!1});function e6(e){var t,r;const[n,o]=C3(e,Oi.variantKeys),i=Q3(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,h=f.useMemo(()=>Oi({...o}),[yn(o)]),p=Se(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:h.base({class:p}),...d}),[m,h,p,d]);return{label:g,slots:h,classNames:c,variant:s,getSpinnerProps:x}}var py=ny((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=e6({...e});return i==="wave"||i==="dots"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>y.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?y.jsxs("div",{ref:t,...s(),children:[y.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[y.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>y.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):y.jsxs("div",{ref:t,...s(),children:[y.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[y.jsx("i",{className:r.circle1({class:n?.circle1})}),y.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]})});py.displayName="HeroUI.Spinner";var t6=py;function r6(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(p,g,m,x,v)=>{if(o==="auto"){const $=`${x}${eg(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var p,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((p=x?.getAttribute("data-virtual-scroll-height"))!=null?p:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:S,prefix:C,suffix:T}of m)if(n===S||n==="both"){const k=S==="vertical"?$>i:c.scrollLeft>i,D=S==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(S,k,D,C,T)}},h=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(p=>{c.removeAttribute(`data-${p}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(h(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{c.dataset[`${p}Scroll`]=String(o===p)}))),()=>{c.removeEventListener("scroll",d,!0),h()}},[...a,r,o,n,s,t])}function n6(e){var t;const[r,n]=qt(e,Li.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:p,...g}=r,m=i||"div",x=er(o);r6({domRef:x,offset:u,visibility:d,isEnabled:h,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Li({...n,className:a}),[yn(n),a]);return{Component:m,styles:v,domRef:x,children:s,getBaseProps:(S={})=>{var C;return{ref:x,className:v,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...S.style},...g,...S}}}}var hy=Re((e,t)=>{const{Component:r,children:n,getBaseProps:o}=n6({...e,ref:t});return y.jsx(r,{...o(),children:n})});hy.displayName="HeroUI.ScrollShadow";var o6=hy,i6=Re(function(t,r){var n;const{Component:o,state:i,label:s,hasHelper:a,isLoading:l,triggerRef:c,selectorIcon:u=y.jsx(x2,{}),description:d,errorMessage:h,isInvalid:p,startContent:g,endContent:m,placeholder:x,renderValue:v,shouldLabelBeOutside:$,disableAnimation:S,getBaseProps:C,getLabelProps:T,getTriggerProps:k,getValueProps:D,getListboxProps:E,getPopoverProps:V,getSpinnerProps:F,getMainWrapperProps:b,getInnerWrapperProps:M,getHiddenSelectProps:A,getHelperWrapperProps:I,getListboxWrapperProps:N,getDescriptionProps:w,getErrorMessageProps:P,getSelectorIconProps:_,isClearable:B,getClearButtonProps:L,getEndWrapperProps:K,getEndContentProps:z}=r3({...t,ref:r}),W=s?y.jsx("label",{...T(),children:s}):null,U=f.cloneElement(u,_()),ee=f.useMemo(()=>{var se;return B&&((se=i.selectedItems)!=null&&se.length)?y.jsx("span",{...L(),children:y.jsx(xu,{})}):null},[B,L,(n=i.selectedItems)==null?void 0:n.length]),Z=f.useMemo(()=>ee?y.jsxs("div",{...K(),children:[ee,m&&y.jsx("span",{...z(),children:m})]}):m&&y.jsx("span",{...z(),children:m}),[ee,m,K,z]),R=f.useMemo(()=>{const se=p&&h;return!a||!(se||d)?null:y.jsx("div",{...I(),children:se?y.jsx("div",{...P(),children:h}):y.jsx("div",{...w(),children:d})})},[a,p,h,d,I,P,w]),he=f.useMemo(()=>{var se;if(!((se=i.selectedItems)!=null&&se.length))return x;if(v&&typeof v=="function"){const q=[...i.selectedItems].map(Y=>({key:Y.key,data:Y.value,type:Y.type,props:Y.props,textValue:Y.textValue,rendered:Y.rendered,"aria-label":Y["aria-label"]}));return v(q)}return i.selectedItems.map(q=>q.textValue).join(", ")},[i.selectedItems,v,x]),fe=f.useMemo(()=>l?y.jsx(t6,{...F()}):U,[l,U,F]),Q=f.useMemo(()=>i.isOpen?y.jsx(J3,{...V(),children:y.jsx(o6,{...N(),children:y.jsx(Z3,{...E()})})}):null,[i.isOpen,V,i,c,N,E]);return y.jsxs("div",{...C(),children:[y.jsx(a3,{...A()}),$?W:null,y.jsxs("div",{...b(),children:[y.jsxs(o,{...k(),children:[$?null:W,y.jsxs("div",{...M(),children:[g,y.jsx("span",{...D(),children:he}),m&&i.selectedItems&&y.jsx(Uv,{elementType:"span",children:","}),Z]}),fe]}),R]}),S?Q:y.jsx(ss,{children:Q})]})}),ca=i6;function G(e,t,r){function n(a,l){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,l);for(const u in s.prototype)u in a||Object.defineProperty(a,u,{value:s.prototype[u].bind(a)});a._zod.constr=s,a._zod.def=l}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var l;const c=r?.Parent?new i:this;n(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ko extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class my extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const gy={};function Mn(e){return gy}function s6(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function Wc(e,t){return typeof t=="bigint"?t.toString():t}function Uc(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Hc(e){return e==null}function Gc(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const vy=Symbol("evaluating");function He(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==vy)return n===void 0&&(n=vy,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Dn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function An(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function by(e){return JSON.stringify(e)}const yy="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function da(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const a6=Uc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function vi(e){if(da(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(da(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function xy(e){return vi(e)?{...e}:Array.isArray(e)?[...e]:e}const l6=new Set(["string","number","symbol"]);function fa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ye(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function u6(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function c6(e,t){const r=e._zod.def,n=An(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=r.shape[i])}return Dn(this,"shape",o),o},checks:[]});return qr(e,n)}function d6(e,t){const r=e._zod.def,n=An(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return Dn(this,"shape",o),o},checks:[]});return qr(e,n)}function f6(e,t){if(!vi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=An(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Dn(this,"shape",i),i},checks:[]});return qr(e,o)}function p6(e,t){if(!vi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Dn(this,"shape",n),n},checks:e._zod.def.checks};return qr(e,r)}function h6(e,t){const r=An(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Dn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return qr(e,r)}function m6(e,t,r){const n=An(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)i[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return Dn(this,"shape",i),i},checks:[]});return qr(t,n)}function g6(e,t,r){const n=An(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return Dn(this,"shape",i),i},checks:[]});return qr(t,n)}function Io(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function wy(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function pa(e){return typeof e=="string"?e:e?.message}function On(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=pa(e.inst?._zod.def?.error?.(e))??pa(t?.error?.(e))??pa(r.customError?.(e))??pa(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Zc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bi(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const $y=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Wc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ey=G("$ZodError",$y),Py=G("$ZodError",$y,{Parent:Error});function v6(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function b6(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const l=i.path[a];a===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return n(e),r}const qc=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ko;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>On(l,i,Mn())));throw yy(a,o?.callee),a}return s.value},Yc=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>On(l,i,Mn())));throw yy(a,o?.callee),a}return s.value},ha=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ko;return i.issues.length?{success:!1,error:new(e??Ey)(i.issues.map(s=>On(s,o,Mn())))}:{success:!0,data:i.value}},y6=ha(Py),ma=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>On(s,o,Mn())))}:{success:!0,data:i.value}},x6=ma(Py),w6=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return qc(e)(t,r,o)},$6=e=>(t,r,n)=>qc(e)(t,r,n),E6=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yc(e)(t,r,o)},P6=e=>async(t,r,n)=>Yc(e)(t,r,n),S6=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ha(e)(t,r,o)},C6=e=>(t,r,n)=>ha(e)(t,r,n),T6=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ma(e)(t,r,o)},k6=e=>async(t,r,n)=>ma(e)(t,r,n),I6=/^[cC][^\s-]{8,}$/,_6=/^[0-9a-z]+$/,M6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,D6=/^[0-9a-vA-V]{20}$/,A6=/^[A-Za-z0-9]{27}$/,O6=/^[a-zA-Z0-9_-]{21}$/,N6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,L6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Sy=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,F6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,V6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function j6(){return new RegExp(V6,"u")}const z6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,R6=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,K6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,W6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cy=/^[A-Za-z0-9_-]*$/,U6=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,H6=/^\+(?:[0-9]){6,14}[0-9]$/,Ty="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",G6=new RegExp(`^${Ty}$`);function ky(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Z6(e){return new RegExp(`^${ky(e)}$`)}function q6(e){const t=ky({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Ty}T(?:${n})$`)}const Y6=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},X6=/^[^A-Z]*$/,J6=/^[^a-z]*$/,yr=G("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Q6=G("$ZodCheckMaxLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=Zc(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),e9=G("$ZodCheckMinLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=Zc(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),t9=G("$ZodCheckLengthEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=Zc(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ga=G("$ZodCheckStringFormat",(e,t)=>{var r,n;yr.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),r9=G("$ZodCheckRegex",(e,t)=>{ga.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),n9=G("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=X6),ga.init(e,t)}),o9=G("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=J6),ga.init(e,t)}),i9=G("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);const r=fa(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),s9=G("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);const r=new RegExp(`^${fa(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),a9=G("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);const r=new RegExp(`.*${fa(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),l9=G("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class u9{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
415
+ color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Ac(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const nk=(e,t)=>Math.abs(e-t)<1,ok=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},ik=e=>e,sk=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},ak=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(s=>{const a=s[0];if(a?.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},z0={passive:!0},lk=typeof window>"u"?!0:"onscrollend"in window,uk=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=e.options.useScrollendEvent&&lk?()=>{}:ok(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),s=c=>()=>{const{horizontal:u,isRtl:d}=e.options;o=u?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,c)},a=s(!0),l=s(!1);return l(),r.addEventListener("scroll",a,z0),r.addEventListener("scrollend",l,z0),()=>{r.removeEventListener("scroll",a),r.removeEventListener("scrollend",l)}},ck=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},dk=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const s=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class fk{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ik,rangeExtractor:sk,onChange:()=>{},measureElement:ck,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=So(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,i=new Map;for(let s=n-1;s>=0;s--){const a=r[s];if(o.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=So(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=So(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let u=l;u<r;u++){const d=i(u),p=this.options.lanes===1?c[u-1]:this.getFurthestMeasurement(c,u),h=p?p.end+this.options.gap:n+o,m=a.get(d),g=typeof m=="number"?m:this.options.estimateSize(u),x=h+g,v=p?p.lane:u%this.options.lanes;c[u]={index:u,start:h,size:g,end:x,key:d,lane:v}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=So(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?pk({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=So(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,i,s)=>i===null||s===null?[]:r({startIndex:i,endIndex:s,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const s=i.key,a=this.elementsCache.get(s);a!==r&&(a&&this.observer.unobserve(a),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,s=n-i;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=So(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,s=r.length;i<s;i++){const a=r[i],l=n[a];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Ac(n[B0(0,n.length-1,o=>Ac(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&r>=i+o&&(n="end"),n==="end"&&(r-=o);const s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(o.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const a=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(n){case"center":return[this.getOffsetForAlignment(a,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[s,a]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[c]=Ac(this.getOffsetForIndex(r,a));nk(c,this.getScrollOffset())||this.scrollToIndex(r,{align:a,behavior:o})}else this.scrollToIndex(r,{align:a,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const B0=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function pk({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=B0(0,n,a=>e[a].start,r);let s=i;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:i,endIndex:s}}const R0=typeof document<"u"?At.useLayoutEffect:At.useEffect;function hk(e){const t=At.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var s;i?Kn.flushSync(t):t(),(s=e.onChange)==null||s.call(e,o,i)}},[n]=At.useState(()=>new fk(r));return n.setOptions(r),R0(()=>n._didMount(),[]),R0(()=>n._willUpdate()),n}function mk(e){return hk({observeElementRect:ak,observeElementOffset:uk,scrollToFn:dk,...e})}function gk(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(h,m,g,x,v)=>{if(o==="auto"){const $=`${x}${xg(v)}Scroll`;m&&g?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=m.toString(),c.dataset[`${v}Scroll`]=g.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=m&&g?"both":m?x:g?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var h,m;const g=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((h=x?.getAttribute("data-virtual-scroll-height"))!=null?h:c.scrollHeight),$=+((m=x?.getAttribute("data-virtual-scroll-top"))!=null?m:c.scrollTop);for(const{type:C,prefix:S,suffix:T}of g)if(n===C||n==="both"){const k=C==="vertical"?$>i:c.scrollLeft>i,D=C==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(C,k,D,S,T)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{c.removeAttribute(`data-${h}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{c.dataset[`${h}Scroll`]=String(o===h)}))),()=>{c.removeEventListener("scroll",d,!0),p()}},[...a,r,o,n,s,t])}function vk(e){var t;const[r,n]=Bt(e,Di.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,g=i||"div",x=Rt(o);gk({domRef:x,offset:u,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Di({...n,className:a}),[Zr(n),a]);return{Component:g,styles:v,domRef:x,children:s,getBaseProps:(C={})=>{var S;return{ref:x,className:v,"data-orientation":(S=e.orientation)!=null?S:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...C.style},...m,...C}}}}var bk=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},yk=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},xk=e=>{var t;const{Component:r,state:n,color:o,variant:i,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:c,hideEmptyContent:u,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:m,getListProps:g,scrollShadowProps:x}=e,{virtualization:v}=e;if(!v||!In(v)&&!v.maxListboxHeight&&!v.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:$,itemHeight:C}=v,S=Math.min($,C*n.collection.size),T=f.useRef(null),k=f.useMemo(()=>bk([...n.collection],C),[n.collection,C]),D=mk({count:[...n.collection].length,getScrollElement:()=>T.current,estimateSize:N=>k[N]}),E=D.getVirtualItems(),V=D.getTotalSize(),{getBaseProps:F}=vk({...x}),y=N=>{var w;const P=[...n.collection][N.index];if(!P)return null;const _={color:o,item:P,state:n,variant:i,disableAnimation:h,hideSelectedIcon:d,...P.props},B={position:"absolute",top:0,left:0,width:"100%",height:`${N.size}px`,transform:`translateY(${N.start}px)`};if(P.type==="section")return b.jsx(j0,{..._,itemClasses:s,style:{...B,..._.style}},P.key);let L=b.jsx(Dc,{..._,classNames:Ve(s,(w=P.props)==null?void 0:w.classNames),shouldHighlightOnFocus:p,style:{...B,..._.style}},P.key);return P.wrapper&&(L=P.wrapper(L)),L},[M,A]=f.useState({isTop:!1,isBottom:!0,isMiddle:!1}),I=b.jsxs(r,{...g(),"data-virtual-scroll-height":V,"data-virtual-scroll-top":(t=T?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!u&&b.jsx("li",{children:b.jsx("div",{...m()})}),b.jsx("div",{...ut(F()),ref:T,style:{height:$,overflow:"auto"},onScroll:N=>{A(yk(N.target))},children:S>0&&C>0&&b.jsx("div",{style:{height:`${V}px`,width:"100%",position:"relative"},children:E.map(N=>y(N))})})]});return b.jsxs("div",{...a(),children:[l,I,c]})},wk=xk,$k=Re(function(t,r){const{isVirtualized:n,...o}=t,i=Z3({...o,ref:r}),{Component:s,state:a,color:l,variant:c,itemClasses:u,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:g,shouldHighlightOnFocus:x,disableAnimation:v,getEmptyContentProps:$,getListProps:C}=i;if(n)return b.jsx(wk,{...t,...i});const S=b.jsxs(s,{...C(),children:[!a.collection.size&&!m&&b.jsx("li",{children:b.jsx("div",{...$()})}),[...a.collection].map(T=>{var k;const D={color:l,item:T,state:a,variant:c,disableAnimation:v,hideSelectedIcon:g,...T.props};if(T.type==="section")return b.jsx(j0,{...D,itemClasses:u},T.key);let E=b.jsx(Dc,{...D,classNames:Ve(u,(k=T.props)==null?void 0:k.classNames),shouldHighlightOnFocus:x},T.key);return T.wrapper&&(E=T.wrapper(E)),E})]});return b.jsxs("div",{...d(),children:[p,S,h]})}),Ek=$k;function Pk(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:i,offset:s=7,crossOffset:a=0,scrollRef:l,shouldFlip:c,boundaryElement:u,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:m="top",containerPadding:g,shouldCloseOnInteractOutside:x,isNonModal:v,isKeyboardDismissDisabled:$,updatePositionDeps:C=[],...S}=e,T=v??!0,k=S.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:E}=Ov({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:x||(I=>{var N;return!((N=n.current)!=null&&N.contains(I))}),disableOutsideEvents:!T},o),{overlayProps:V,arrowProps:F,placement:y,updatePosition:M,triggerAnchorPoint:A}=m4({...S,shouldFlip:c,crossOffset:a,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:g,placement:V3(m),offset:i?s+3:s,onClose:T&&!k&&h?t.close:()=>{}});return _n(()=>{C.length&&M()},C),f.useEffect(()=>{var I,N;if(t.isOpen&&o.current)return T?B3((I=r?.current)!=null?I:o.current):z3([(N=r?.current)!=null?N:o.current])},[T,t.isOpen,o,r]),{popoverProps:Ve(D,V),arrowProps:F,underlayProps:E,placement:y,triggerAnchorPoint:A}}var Ck="top";function Sk(e){var t,r,n;const o=gt(),[i,s]=Bt(e,Mi.variantKeys),{as:a,ref:l,children:c,state:u,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:m,isOpen:g,isNonModal:x=!0,shouldFlip:v=!0,containerPadding:$=12,shouldBlockScroll:C=!1,isDismissable:S=!0,shouldCloseOnBlur:T,portalContainer:k,updatePositionDeps:D,dialogProps:E,placement:V=Ck,triggerType:F="dialog",showArrow:y=!1,offset:M=7,crossOffset:A=0,boundaryElement:I,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:w,shouldCloseOnScroll:P,triggerAnchorPoint:_,motionProps:B,className:L,classNames:K,onClose:z,...W}=i,U=a||"div",ee=Rt(l),G=f.useRef(null),R=f.useRef(!1),me=d||G,ue=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,Q=qs({isOpen:g,defaultOpen:h,onOpenChange:Oe=>{m?.(Oe),Oe||z?.()}}),se=u||Q,{popoverProps:q,underlayProps:X,placement:le}=Pk({triggerRef:me,isNonModal:x,popoverRef:ee,placement:V,offset:M,scrollRef:p,isDismissable:S,shouldCloseOnBlur:T,boundaryElement:I,crossOffset:A,shouldFlip:v,containerPadding:$,updatePositionDeps:D,isKeyboardDismissDisabled:N,shouldCloseOnScroll:P,shouldCloseOnInteractOutside:w,triggerAnchorPoint:_},se),ae=f.useMemo(()=>le?j3(le,V)?le:V:null,[le,V]),{triggerProps:oe}=jg({type:F},se,me),{isFocusVisible:be,isFocused:Me,focusProps:ye}=Pn(),te=f.useMemo(()=>Mi({...s}),[Zr(s)]),je=Pe(K?.base,L),xe={"--trigger-anchor-point":_?`${_.x}px ${_.y}px`:void 0};uc({isDisabled:!(C&&se.isOpen)});const We=(Oe={})=>({ref:ee,...Ve(q,W,Oe),style:Ve(q.style,W.style,Oe.style)}),lt=(Oe={})=>({"data-slot":"base","data-open":he(se.isOpen),"data-focus":he(Me),"data-arrow":he(y),"data-focus-visible":he(be),"data-placement":le?N0(le,V):void 0,...Ve(ye,E,Oe),className:te.base({class:Pe(je)}),style:{outline:"none",...xe}}),Te=f.useCallback((Oe={})=>({"data-slot":"content","data-open":he(se.isOpen),"data-arrow":he(y),"data-placement":le?N0(le,V):void 0,className:te.content({class:Pe(K?.content,Oe.className)})}),[te,se.isOpen,y,ae,V,K,le]),Ge=f.useCallback(Oe=>{var Ct;let It;return Oe.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?It=setTimeout(()=>{R.current=!0},100):R.current=!0,(Ct=oe.onPress)==null||Ct.call(oe,Oe),()=>{clearTimeout(It)}},[oe?.onPress]),pt=f.useCallback((Oe={},Ct=null)=>{const{isDisabled:It,..._t}=Oe;return{"data-slot":"trigger",...Ve({"aria-haspopup":"dialog"},oe,_t),onPress:Ge,isDisabled:It,className:te.trigger({class:Pe(K?.trigger,Oe.className),isTriggerDisabled:It}),ref:tc(Ct,me)}},[se,oe,Ge,me]),Ft=f.useCallback((Oe={})=>({"data-slot":"backdrop",className:te.backdrop({class:K?.backdrop}),onClick:Ct=>{if(!R.current){Ct.preventDefault();return}se.close(),R.current=!1},...X,...Oe}),[te,se.isOpen,K,X]);return{state:se,Component:U,children:c,classNames:K,showArrow:y,triggerRef:me,placement:ae,isNonModal:x,popoverRef:ee,portalContainer:k,isOpen:se.isOpen,onClose:se.close,disableAnimation:ue,shouldBlockScroll:C,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:B,getBackdropProps:Ft,getPopoverProps:We,getTriggerProps:pt,getDialogProps:lt,getContentProps:Te}}var K0=()=>Promise.resolve().then(()=>yi).then(e=>e.default),W0=Re(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:i={},...s},a)=>{let l=o;return i.originX!==void 0||i.originY!==void 0?l={...l,transformOrigin:i}:r&&(l={...l,...F3(r==="center"?"top":r)}),n?b.jsx("div",{...s,ref:a,children:e}):b.jsx(hn,{features:K0,children:b.jsx(mn.div,{ref:a,animate:"enter",exit:"exit",initial:"initial",style:l,variants:rc.scaleSpringOpacity,...Ve(s,t),children:e})})});W0.displayName="HeroUI.FreeSoloPopoverWrapper";var U0=Re(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:i,state:s,placement:a,backdrop:l,portalContainer:c,disableAnimation:u,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:m,getDialogProps:g,getContentProps:x}=Sk({...n,ref:o}),v=At.useRef(null),{dialogProps:$,titleProps:C}=Iv({},v),S=g({...!r&&{ref:v},...$}),T=At.useMemo(()=>l==="transparent"?null:u?b.jsx("div",{...m()}):b.jsx(hn,{features:K0,children:b.jsx(mn.div,{animate:"enter",exit:"exit",initial:"exit",variants:rc.fade,...m()})}),[l,u,m]);return b.jsxs(Tv,{portalContainer:c,children:[!p&&T,b.jsx(i,{...h(),children:b.jsxs(W0,{disableAnimation:u,motionProps:d,placement:a,tabIndex:-1,transformOrigin:t,...S,children:[!p&&b.jsx(Zs,{onDismiss:s.close}),b.jsx("div",{...x(),children:typeof e=="function"?e(C):e}),b.jsx(Zs,{onDismiss:s.close})]})})]})});U0.displayName="HeroUI.FreeSoloPopover";var Tk=U0,[q8,kk]=Rs({name:"ButtonGroupContext",strict:!1}),Ik=()=>Promise.resolve().then(()=>yi).then(e=>e.default),H0=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:i}=e;return b.jsx(b.Fragment,{children:t.map(s=>{const a=ZT(.01*s.size,.2,s.size>100?.75:.5);return b.jsx(hn,{features:Ik,children:b.jsx(Uo,{mode:"popLayout",children:b.jsx(mn.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...r})})},s.key)})})};H0.displayName="HeroUI.Ripple";var _k=H0;function Mk(e={}){const[t,r]=f.useState([]),n=f.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);r(l=>[...l,{key:HT(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=f.useCallback(i=>{r(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function Dk(e){var t,r,n,o,i,s,a,l,c;const u=kk(),d=gt(),p=!!u,{ref:h,as:m,children:g,startContent:x,endContent:v,autoFocus:$,className:C,spinner:S,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:E=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:y=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:P,..._}=e,B=m||"button",L=typeof B=="string",K=Rt(h),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=Pn({autoFocus:$}),G=A||T,R=f.useMemo(()=>Ud({size:V,color:F,variant:y,radius:E,fullWidth:D,isDisabled:G,isInGroup:p,disableAnimation:M,isIconOnly:I,className:C}),[V,F,y,E,D,G,p,I,M,C]),{onPress:me,onClear:ue,ripples:Q}=Mk(),se=f.useCallback(xe=>{z||G||M||K.current&&me(xe)},[z,G,M,K,me]),{buttonProps:q,isPressed:X}=fc({elementType:m,isDisabled:G,onPress:Ks(w,se),onClick:P,..._},K),{isHovered:le,hoverProps:ae}=$n({isDisabled:G}),oe=f.useCallback((xe={})=>({"data-disabled":he(G),"data-focus":he(U),"data-pressed":he(X),"data-focus-visible":he(W),"data-hover":he(le),"data-loading":he(T),...Ve(q,ee,ae,ut(_,{enabled:L}),ut(xe)),className:R}),[T,G,U,X,L,W,le,q,ee,ae,_,R]),be=xe=>f.isValidElement(xe)?f.cloneElement(xe,{"aria-hidden":!0,focusable:!1}):null,Me=be(x),ye=be(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:ue}),[Q,ue]);return{Component:B,children:g,domRef:K,spinner:S,styles:R,startContent:Me,endContent:ye,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:oe,getRippleProps:je,isIconOnly:I}}var[Y8,Ak]=Rs({name:"ProviderContext",strict:!1});function Nk(e){var t,r;const[n,o]=tk(e,_i.variantKeys),i=Ak(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,p=f.useMemo(()=>_i({...o}),[Zr(o)]),h=Pe(c?.base,l),m=u||a,g=f.useMemo(()=>m&&typeof m=="string"?m:d["aria-label"]?"":"Loading",[a,m,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":g,className:p.base({class:h}),...d}),[g,p,h,d]);return{label:m,slots:p,classNames:c,variant:s,getSpinnerProps:x}}var G0=L0((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=Nk({...e});return i==="wave"||i==="dots"?b.jsxs("div",{ref:t,...s(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>b.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?b.jsxs("div",{ref:t,...s(),children:[b.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?b.jsxs("div",{ref:t,...s(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>b.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):b.jsxs("div",{ref:t,...s(),children:[b.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[b.jsx("i",{className:r.circle1({class:n?.circle1})}),b.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]})});G0.displayName="HeroUI.Spinner";var Z0=G0,q0=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:i,spinner:s=b.jsx(Z0,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:m}=Dk({...e,ref:t});return b.jsxs(r,{ref:n,...p(),children:[l,u&&a==="start"&&s,u&&m?null:o,u&&a==="end"&&s,c,!d&&b.jsx(_k,{...h()})]})});q0.displayName="HeroUI.Button";var Ok=q0;function Lk(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(h,m,g,x,v)=>{if(o==="auto"){const $=`${x}${xg(v)}Scroll`;m&&g?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=m.toString(),c.dataset[`${v}Scroll`]=g.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=m&&g?"both":m?x:g?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var h,m;const g=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((h=x?.getAttribute("data-virtual-scroll-height"))!=null?h:c.scrollHeight),$=+((m=x?.getAttribute("data-virtual-scroll-top"))!=null?m:c.scrollTop);for(const{type:C,prefix:S,suffix:T}of g)if(n===C||n==="both"){const k=C==="vertical"?$>i:c.scrollLeft>i,D=C==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(C,k,D,S,T)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{c.removeAttribute(`data-${h}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{c.dataset[`${h}Scroll`]=String(o===h)}))),()=>{c.removeEventListener("scroll",d,!0),p()}},[...a,r,o,n,s,t])}function Fk(e){var t;const[r,n]=Bt(e,Di.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...m}=r,g=i||"div",x=Rt(o);Lk({domRef:x,offset:u,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Di({...n,className:a}),[Zr(n),a]);return{Component:g,styles:v,domRef:x,children:s,getBaseProps:(C={})=>{var S;return{ref:x,className:v,"data-orientation":(S=e.orientation)!=null?S:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...C.style},...m,...C}}}}var Y0=Re((e,t)=>{const{Component:r,children:n,getBaseProps:o}=Fk({...e,ref:t});return b.jsx(r,{...o(),children:n})});Y0.displayName="HeroUI.ScrollShadow";var Vk=Y0,jk=Re(function(t,r){var n;const{Component:o,state:i,label:s,hasHelper:a,isLoading:l,triggerRef:c,selectorIcon:u=b.jsx(uS,{}),description:d,errorMessage:p,isInvalid:h,startContent:m,endContent:g,placeholder:x,renderValue:v,shouldLabelBeOutside:$,disableAnimation:C,getBaseProps:S,getLabelProps:T,getTriggerProps:k,getValueProps:D,getListboxProps:E,getPopoverProps:V,getSpinnerProps:F,getMainWrapperProps:y,getInnerWrapperProps:M,getHiddenSelectProps:A,getHelperWrapperProps:I,getListboxWrapperProps:N,getDescriptionProps:w,getErrorMessageProps:P,getSelectorIconProps:_,isClearable:B,getClearButtonProps:L,getEndWrapperProps:K,getEndContentProps:z}=M3({...t,ref:r}),W=s?b.jsx("label",{...T(),children:s}):null,U=f.cloneElement(u,_()),ee=f.useMemo(()=>{var se;return B&&((se=i.selectedItems)!=null&&se.length)?b.jsx("span",{...L(),children:b.jsx(Vu,{})}):null},[B,L,(n=i.selectedItems)==null?void 0:n.length]),G=f.useMemo(()=>ee?b.jsxs("div",{...K(),children:[ee,g&&b.jsx("span",{...z(),children:g})]}):g&&b.jsx("span",{...z(),children:g}),[ee,g,K,z]),R=f.useMemo(()=>{const se=h&&p;return!a||!(se||d)?null:b.jsx("div",{...I(),children:se?b.jsx("div",{...P(),children:p}):b.jsx("div",{...w(),children:d})})},[a,h,p,d,I,P,w]),me=f.useMemo(()=>{var se;if(!((se=i.selectedItems)!=null&&se.length))return x;if(v&&typeof v=="function"){const q=[...i.selectedItems].map(X=>({key:X.key,data:X.value,type:X.type,props:X.props,textValue:X.textValue,rendered:X.rendered,"aria-label":X["aria-label"]}));return v(q)}return i.selectedItems.map(q=>q.textValue).join(", ")},[i.selectedItems,v,x]),ue=f.useMemo(()=>l?b.jsx(Z0,{...F()}):U,[l,U,F]),Q=f.useMemo(()=>i.isOpen?b.jsx(Tk,{...V(),children:b.jsx(Vk,{...N(),children:b.jsx(Ek,{...E()})})}):null,[i.isOpen,V,i,c,N,E]);return b.jsxs("div",{...S(),children:[b.jsx(L3,{...A()}),$?W:null,b.jsxs("div",{...y(),children:[b.jsxs(o,{...k(),children:[$?null:W,b.jsxs("div",{...M(),children:[m,b.jsx("span",{...D(),children:me}),g&&i.selectedItems&&b.jsx(Cv,{elementType:"span",children:","}),G]}),ue]}),R]}),C?Q:b.jsx(Uo,{children:Q})]})}),na=jk;function Z(e,t,r){function n(a,l){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,l);for(const u in s.prototype)u in a||Object.defineProperty(a,u,{value:s.prototype[u].bind(a)});a._zod.constr=s,a._zod.def=l}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var l;const c=r?.Parent?new i:this;n(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class To extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class X0 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const J0={};function An(e){return J0}function zk(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function Nc(e,t){return typeof t=="bigint"?t.toString():t}function Oc(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Lc(e){return e==null}function Fc(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const Q0=Symbol("evaluating");function He(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Q0)return n===void 0&&(n=Q0,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Nn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function On(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function ey(e){return JSON.stringify(e)}const ty="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function oa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Bk=Oc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function pi(e){if(oa(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(oa(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ry(e){return pi(e)?{...e}:Array.isArray(e)?[...e]:e}const Rk=new Set(["string","number","symbol"]);function ia(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function $e(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Kk(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function Wk(e,t){const r=e._zod.def,n=On(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=r.shape[i])}return Nn(this,"shape",o),o},checks:[]});return qr(e,n)}function Uk(e,t){const r=e._zod.def,n=On(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return Nn(this,"shape",o),o},checks:[]});return qr(e,n)}function Hk(e,t){if(!pi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=On(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Nn(this,"shape",i),i},checks:[]});return qr(e,o)}function Gk(e,t){if(!pi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Nn(this,"shape",n),n},checks:e._zod.def.checks};return qr(e,r)}function Zk(e,t){const r=On(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Nn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return qr(e,r)}function qk(e,t,r){const n=On(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)i[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return Nn(this,"shape",i),i},checks:[]});return qr(t,n)}function Yk(e,t,r){const n=On(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return Nn(this,"shape",i),i},checks:[]});return qr(t,n)}function ko(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ny(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function sa(e){return typeof e=="string"?e:e?.message}function Ln(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=sa(e.inst?._zod.def?.error?.(e))??sa(t?.error?.(e))??sa(r.customError?.(e))??sa(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Vc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function hi(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const oy=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Nc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},iy=Z("$ZodError",oy),sy=Z("$ZodError",oy,{Parent:Error});function Xk(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function Jk(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const l=i.path[a];a===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return n(e),r}const jc=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new To;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Ln(l,i,An())));throw ty(a,o?.callee),a}return s.value},zc=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Ln(l,i,An())));throw ty(a,o?.callee),a}return s.value},aa=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new To;return i.issues.length?{success:!1,error:new(e??iy)(i.issues.map(s=>Ln(s,o,An())))}:{success:!0,data:i.value}},Qk=aa(sy),la=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Ln(s,o,An())))}:{success:!0,data:i.value}},e9=la(sy),t9=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return jc(e)(t,r,o)},r9=e=>(t,r,n)=>jc(e)(t,r,n),n9=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zc(e)(t,r,o)},o9=e=>async(t,r,n)=>zc(e)(t,r,n),i9=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return aa(e)(t,r,o)},s9=e=>(t,r,n)=>aa(e)(t,r,n),a9=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return la(e)(t,r,o)},l9=e=>async(t,r,n)=>la(e)(t,r,n),u9=/^[cC][^\s-]{8,}$/,c9=/^[0-9a-z]+$/,d9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,f9=/^[0-9a-vA-V]{20}$/,p9=/^[A-Za-z0-9]{27}$/,h9=/^[a-zA-Z0-9_-]{21}$/,m9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,g9=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ay=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,v9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function y9(){return new RegExp(b9,"u")}const x9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$9=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,E9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,P9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ly=/^[A-Za-z0-9_-]*$/,C9=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,S9=/^\+(?:[0-9]){6,14}[0-9]$/,uy="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",T9=new RegExp(`^${uy}$`);function cy(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function k9(e){return new RegExp(`^${cy(e)}$`)}function I9(e){const t=cy({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${uy}T(?:${n})$`)}const _9=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},M9=/^[^A-Z]*$/,D9=/^[^a-z]*$/,br=Z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),A9=Z("$ZodCheckMaxLength",(e,t)=>{var r;br.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Lc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=Vc(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),N9=Z("$ZodCheckMinLength",(e,t)=>{var r;br.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Lc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=Vc(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),O9=Z("$ZodCheckLengthEquals",(e,t)=>{var r;br.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Lc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=Vc(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ua=Z("$ZodCheckStringFormat",(e,t)=>{var r,n;br.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),L9=Z("$ZodCheckRegex",(e,t)=>{ua.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),F9=Z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=M9),ua.init(e,t)}),V9=Z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=D9),ua.init(e,t)}),j9=Z("$ZodCheckIncludes",(e,t)=>{br.init(e,t);const r=ia(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),z9=Z("$ZodCheckStartsWith",(e,t)=>{br.init(e,t);const r=new RegExp(`^${ia(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),B9=Z("$ZodCheckEndsWith",(e,t)=>{br.init(e,t);const r=new RegExp(`.*${ia(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),R9=Z("$ZodCheckOverwrite",(e,t)=>{br.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class K9{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
411
416
  `).filter(s=>s),o=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,o.join(`
412
- `))}}const c9={major:4,minor:1,patch:12},mt=G("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=c9;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,l)=>{let c=Io(s),u;for(const d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,p=d._zod.check(s);if(p instanceof Promise&&l?.async===!1)throw new ko;if(u||p instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await p,s.issues.length!==h&&(c||(c=Io(s,h)))});else{if(s.issues.length===h)continue;c||(c=Io(s,h))}}return u?u.then(()=>s):s},i=(s,a,l)=>{if(Io(s))return s.aborted=!0,s;const c=o(a,n,l);if(c instanceof Promise){if(l.async===!1)throw new ko;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new ko;return l.then(c=>o(c,n,a))}return o(l,n,a)}}e["~standard"]={validate:o=>{try{const i=y6(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return x6(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),Xc=G("$ZodString",(e,t)=>{mt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Y6(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Je=G("$ZodStringFormat",(e,t)=>{ga.init(e,t),Xc.init(e,t)}),d9=G("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=L6),Je.init(e,t)}),f9=G("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Sy(n))}else t.pattern??(t.pattern=Sy());Je.init(e,t)}),p9=G("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=F6),Je.init(e,t)}),h9=G("$ZodURL",(e,t)=>{Je.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:U6.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),m9=G("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=j6()),Je.init(e,t)}),g9=G("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=O6),Je.init(e,t)}),v9=G("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=I6),Je.init(e,t)}),b9=G("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_6),Je.init(e,t)}),y9=G("$ZodULID",(e,t)=>{t.pattern??(t.pattern=M6),Je.init(e,t)}),x9=G("$ZodXID",(e,t)=>{t.pattern??(t.pattern=D6),Je.init(e,t)}),w9=G("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=A6),Je.init(e,t)}),$9=G("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=q6(t)),Je.init(e,t)}),E9=G("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=G6),Je.init(e,t)}),P9=G("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Z6(t)),Je.init(e,t)}),S9=G("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=N6),Je.init(e,t)}),C9=G("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=z6),Je.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),T9=G("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=B6),Je.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),k9=G("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=R6),Je.init(e,t)}),I9=G("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=K6),Je.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Iy(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const _9=G("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=W6),Je.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{Iy(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function M9(e){if(!Cy.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Iy(r)}const D9=G("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Cy),Je.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{M9(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),A9=G("$ZodE164",(e,t)=>{t.pattern??(t.pattern=H6),Je.init(e,t)});function O9(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const N9=G("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=r=>{O9(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),L9=G("$ZodUnknown",(e,t)=>{mt.init(e,t),e._zod.parse=r=>r}),F9=G("$ZodNever",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function _y(e,t,r){e.issues.length&&t.issues.push(...wy(r,e.issues)),t.value[r]=e.value}const V9=G("$ZodArray",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],l=t.element._zod.run({value:a,issues:[]},n);l instanceof Promise?i.push(l.then(c=>_y(c,r,s))):_y(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function va(e,t,r,n){e.issues.length&&t.issues.push(...wy(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function My(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=u6(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Dy(e,t,r,n,o,i){const s=[],a=o.keySet,l=o.catchall._zod,c=l.def.type;for(const u of Object.keys(t)){if(a.has(u))continue;if(c==="never"){s.push(u);continue}const d=l.run({value:t[u],issues:[]},n);d instanceof Promise?e.push(d.then(h=>va(h,r,u,t))):va(d,r,u,t)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}const j9=G("$ZodObject",(e,t)=>{if(mt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=Uc(()=>My(t));He(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const o=da,i=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=n.value);const c=a.value;if(!o(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],d=s.shape;for(const h of s.keys){const g=d[h]._zod.run({value:c[h],issues:[]},l);g instanceof Promise?u.push(g.then(m=>va(m,a,h,c))):va(g,a,h,c)}return i?Dy(u,c,a,l,n.value,e):u.length?Promise.all(u).then(()=>a):a}}),z9=G("$ZodObjectJIT",(e,t)=>{j9.init(e,t);const r=e._zod.parse,n=Uc(()=>My(t)),o=h=>{const p=new u9(["shape","payload","ctx"]),g=n.value,m=S=>{const C=by(S);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};p.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const S of g.keys)x[S]=`key_${v++}`;p.write("const newResult = {};");for(const S of g.keys){const C=x[S],T=by(S);p.write(`const ${C} = ${m(S)};`),p.write(`
413
- if (${C}.issues.length) {
414
- payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
417
+ `))}}const W9={major:4,minor:1,patch:12},vt=Z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=W9;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,l)=>{let c=ko(s),u;for(const d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;const p=s.issues.length,h=d._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new To;if(u||h instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await h,s.issues.length!==p&&(c||(c=ko(s,p)))});else{if(s.issues.length===p)continue;c||(c=ko(s,p))}}return u?u.then(()=>s):s},i=(s,a,l)=>{if(ko(s))return s.aborted=!0,s;const c=o(a,n,l);if(c instanceof Promise){if(l.async===!1)throw new To;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new To;return l.then(c=>o(c,n,a))}return o(l,n,a)}}e["~standard"]={validate:o=>{try{const i=Qk(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return e9(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),Bc=Z("$ZodString",(e,t)=>{vt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??_9(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Qe=Z("$ZodStringFormat",(e,t)=>{ua.init(e,t),Bc.init(e,t)}),U9=Z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=g9),Qe.init(e,t)}),H9=Z("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ay(n))}else t.pattern??(t.pattern=ay());Qe.init(e,t)}),G9=Z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=v9),Qe.init(e,t)}),Z9=Z("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:C9.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),q9=Z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=y9()),Qe.init(e,t)}),Y9=Z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=h9),Qe.init(e,t)}),X9=Z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=u9),Qe.init(e,t)}),J9=Z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=c9),Qe.init(e,t)}),Q9=Z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=d9),Qe.init(e,t)}),e6=Z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=f9),Qe.init(e,t)}),t6=Z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=p9),Qe.init(e,t)}),r6=Z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=I9(t)),Qe.init(e,t)}),n6=Z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=T9),Qe.init(e,t)}),o6=Z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=k9(t)),Qe.init(e,t)}),i6=Z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=m9),Qe.init(e,t)}),s6=Z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=x9),Qe.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),a6=Z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w9),Qe.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),l6=Z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$9),Qe.init(e,t)}),u6=Z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=E9),Qe.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function dy(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const c6=Z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=P9),Qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{dy(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function d6(e){if(!ly.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return dy(r)}const f6=Z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ly),Qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{d6(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),p6=Z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=S9),Qe.init(e,t)});function h6(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const m6=Z("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{h6(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),g6=Z("$ZodUnknown",(e,t)=>{vt.init(e,t),e._zod.parse=r=>r}),v6=Z("$ZodNever",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function fy(e,t,r){e.issues.length&&t.issues.push(...ny(r,e.issues)),t.value[r]=e.value}const b6=Z("$ZodArray",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],l=t.element._zod.run({value:a,issues:[]},n);l instanceof Promise?i.push(l.then(c=>fy(c,r,s))):fy(l,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function ca(e,t,r,n){e.issues.length&&t.issues.push(...ny(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function py(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=Kk(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function hy(e,t,r,n,o,i){const s=[],a=o.keySet,l=o.catchall._zod,c=l.def.type;for(const u of Object.keys(t)){if(a.has(u))continue;if(c==="never"){s.push(u);continue}const d=l.run({value:t[u],issues:[]},n);d instanceof Promise?e.push(d.then(p=>ca(p,r,u,t))):ca(d,r,u,t)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}const y6=Z("$ZodObject",(e,t)=>{if(vt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=Oc(()=>py(t));He(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const o=oa,i=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=n.value);const c=a.value;if(!o(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],d=s.shape;for(const p of s.keys){const m=d[p]._zod.run({value:c[p],issues:[]},l);m instanceof Promise?u.push(m.then(g=>ca(g,a,p,c))):ca(m,a,p,c)}return i?hy(u,c,a,l,n.value,e):u.length?Promise.all(u).then(()=>a):a}}),x6=Z("$ZodObjectJIT",(e,t)=>{y6.init(e,t);const r=e._zod.parse,n=Oc(()=>py(t)),o=p=>{const h=new K9(["shape","payload","ctx"]),m=n.value,g=C=>{const S=ey(C);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};h.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const C of m.keys)x[C]=`key_${v++}`;h.write("const newResult = {};");for(const C of m.keys){const S=x[C],T=ey(C);h.write(`const ${S} = ${g(C)};`),h.write(`
418
+ if (${S}.issues.length) {
419
+ payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
415
420
  ...iss,
416
421
  path: iss.path ? [${T}, ...iss.path] : [${T}]
417
422
  })));
418
423
  }
419
424
 
420
425
 
421
- if (${C}.value === undefined) {
426
+ if (${S}.value === undefined) {
422
427
  if (${T} in input) {
423
428
  newResult[${T}] = undefined;
424
429
  }
425
430
  } else {
426
- newResult[${T}] = ${C}.value;
431
+ newResult[${T}] = ${S}.value;
427
432
  }
428
433
 
429
- `)}p.write("payload.value = newResult;"),p.write("return payload;");const $=p.compile();return(S,C)=>$(h,S,C)};let i;const s=da,a=!gy.jitless,c=a&&a6.value,u=t.catchall;let d;e._zod.parse=(h,p)=>{d??(d=n.value);const g=h.value;return s(g)?a&&c&&p?.async===!1&&p.jitless!==!0?(i||(i=o(t.shape)),h=i(h,p),u?Dy([],g,h,p,d,e):h):r(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function Ay(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Io(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>On(s,n,Mn())))}),t)}const B9=G("$ZodUnion",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),He(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),He(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),He(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Gc(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(l=>Ay(l,o,e,i)):Ay(a,o,e,i)}}),R9=G("$ZodIntersection",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>Oy(r,l,c)):Oy(r,i,s)}});function Jc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vi(e)&&vi(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=Jc(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=Jc(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Oy(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Io(e))return e;const n=Jc(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const K9=G("$ZodEnum",(e,t)=>{mt.init(e,t);const r=s6(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>l6.has(typeof o)).map(o=>typeof o=="string"?fa(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),W9=G("$ZodTransform",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new my(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ko;return r.value=o,r}});function Ny(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const U9=G("$ZodOptional",(e,t)=>{mt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Gc(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Ny(i,r.value)):Ny(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),H9=G("$ZodNullable",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Gc(r.source)}|null)$`):void 0}),He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),G9=G("$ZodDefault",(e,t)=>{mt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Ly(i,t)):Ly(o,t)}});function Ly(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Z9=G("$ZodPrefault",(e,t)=>{mt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),q9=G("$ZodNonOptional",(e,t)=>{mt.init(e,t),He(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Fy(i,e)):Fy(o,e)}});function Fy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Y9=G("$ZodCatch",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>On(s,n,Mn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>On(i,n,Mn()))},input:r.value}),r.issues=[]),r)}}),X9=G("$ZodPipe",(e,t)=>{mt.init(e,t),He(e._zod,"values",()=>t.in._zod.values),He(e._zod,"optin",()=>t.in._zod.optin),He(e._zod,"optout",()=>t.out._zod.optout),He(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>ba(s,t.in,n)):ba(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>ba(i,t.out,n)):ba(o,t.out,n)}});function ba(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const J9=G("$ZodReadonly",(e,t)=>{mt.init(e,t),He(e._zod,"propValues",()=>t.innerType._zod.propValues),He(e._zod,"values",()=>t.innerType._zod.values),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Vy):Vy(o)}});function Vy(e){return e.value=Object.freeze(e.value),e}const Q9=G("$ZodCustom",(e,t)=>{yr.init(e,t),mt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>jy(i,r,n,e));jy(o,r,n,e)}});function jy(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(bi(o))}}class e7{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function t7(){return new e7}const ya=t7();function r7(e,t){return new e({type:"string",...ye(t)})}function n7(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ye(t)})}function zy(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ye(t)})}function o7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ye(t)})}function i7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ye(t)})}function s7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ye(t)})}function a7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ye(t)})}function l7(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ye(t)})}function u7(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ye(t)})}function c7(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ye(t)})}function d7(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ye(t)})}function f7(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ye(t)})}function p7(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ye(t)})}function h7(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ye(t)})}function m7(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ye(t)})}function g7(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ye(t)})}function v7(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ye(t)})}function b7(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ye(t)})}function y7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ye(t)})}function x7(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ye(t)})}function w7(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ye(t)})}function $7(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ye(t)})}function E7(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ye(t)})}function P7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ye(t)})}function S7(e,t){return new e({type:"string",format:"date",check:"string_format",...ye(t)})}function C7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ye(t)})}function T7(e,t){return new e({type:"string",format:"duration",check:"string_format",...ye(t)})}function k7(e){return new e({type:"unknown"})}function I7(e,t){return new e({type:"never",...ye(t)})}function By(e,t){return new Q6({check:"max_length",...ye(t),maximum:e})}function xa(e,t){return new e9({check:"min_length",...ye(t),minimum:e})}function Ry(e,t){return new t9({check:"length_equals",...ye(t),length:e})}function _7(e,t){return new r9({check:"string_format",format:"regex",...ye(t),pattern:e})}function M7(e){return new n9({check:"string_format",format:"lowercase",...ye(e)})}function D7(e){return new o9({check:"string_format",format:"uppercase",...ye(e)})}function A7(e,t){return new i9({check:"string_format",format:"includes",...ye(t),includes:e})}function O7(e,t){return new s9({check:"string_format",format:"starts_with",...ye(t),prefix:e})}function N7(e,t){return new a9({check:"string_format",format:"ends_with",...ye(t),suffix:e})}function yi(e){return new l9({check:"overwrite",tx:e})}function L7(e){return yi(t=>t.normalize(e))}function F7(){return yi(e=>e.trim())}function V7(){return yi(e=>e.toLowerCase())}function j7(){return yi(e=>e.toUpperCase())}function z7(e,t,r){return new e({type:"array",element:t,...ye(r)})}function B7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ye(r)})}function R7(e){const t=K7(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(bi(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(bi(o))}},e(r.value,r)));return t}function K7(e,t){const r=new yr({check:"custom",...ye(t)});return r._zod.check=e,r}const W7=G("ZodISODateTime",(e,t)=>{$9.init(e,t),et.init(e,t)});function U7(e){return P7(W7,e)}const H7=G("ZodISODate",(e,t)=>{E9.init(e,t),et.init(e,t)});function G7(e){return S7(H7,e)}const Z7=G("ZodISOTime",(e,t)=>{P9.init(e,t),et.init(e,t)});function q7(e){return C7(Z7,e)}const Y7=G("ZodISODuration",(e,t)=>{S9.init(e,t),et.init(e,t)});function X7(e){return T7(Y7,e)}const or=G("ZodError",(e,t)=>{Ey.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>b6(e,r)},flatten:{value:r=>v6(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Wc,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Wc,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),J7=qc(or),Q7=Yc(or),eI=ha(or),tI=ma(or),rI=w6(or),nI=$6(or),oI=E6(or),iI=P6(or),sI=S6(or),aI=C6(or),lI=T6(or),uI=k6(or),xt=G("ZodType",(e,t)=>(mt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(An(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>qr(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>J7(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>eI(e,r,n),e.parseAsync=async(r,n)=>Q7(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>tI(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>rI(e,r,n),e.decode=(r,n)=>nI(e,r,n),e.encodeAsync=async(r,n)=>oI(e,r,n),e.decodeAsync=async(r,n)=>iI(e,r,n),e.safeEncode=(r,n)=>sI(e,r,n),e.safeDecode=(r,n)=>aI(e,r,n),e.safeEncodeAsync=async(r,n)=>lI(e,r,n),e.safeDecodeAsync=async(r,n)=>uI(e,r,n),e.refine=(r,n)=>e.check(e_(r,n)),e.superRefine=r=>e.check(t_(r)),e.overwrite=r=>e.check(yi(r)),e.optional=()=>Gy(e),e.nullable=()=>Zy(e),e.nullish=()=>Gy(Zy(e)),e.nonoptional=r=>GI(e,r),e.array=()=>DI(e),e.or=r=>LI([e,r]),e.and=r=>VI(e,r),e.transform=r=>Yy(e,BI(r)),e.default=r=>WI(e,r),e.prefault=r=>HI(e,r),e.catch=r=>qI(e,r),e.pipe=r=>Yy(e,r),e.readonly=()=>JI(e),e.describe=r=>{const n=e.clone();return ya.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return ya.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ya.get(e);const n=e.clone();return ya.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ky=G("_ZodString",(e,t)=>{Xc.init(e,t),xt.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(_7(...n)),e.includes=(...n)=>e.check(A7(...n)),e.startsWith=(...n)=>e.check(O7(...n)),e.endsWith=(...n)=>e.check(N7(...n)),e.min=(...n)=>e.check(xa(...n)),e.max=(...n)=>e.check(By(...n)),e.length=(...n)=>e.check(Ry(...n)),e.nonempty=(...n)=>e.check(xa(1,...n)),e.lowercase=n=>e.check(M7(n)),e.uppercase=n=>e.check(D7(n)),e.trim=()=>e.check(F7()),e.normalize=(...n)=>e.check(L7(...n)),e.toLowerCase=()=>e.check(V7()),e.toUpperCase=()=>e.check(j7())}),cI=G("ZodString",(e,t)=>{Xc.init(e,t),Ky.init(e,t),e.email=r=>e.check(n7(dI,r)),e.url=r=>e.check(l7(fI,r)),e.jwt=r=>e.check(E7(TI,r)),e.emoji=r=>e.check(u7(pI,r)),e.guid=r=>e.check(zy(Wy,r)),e.uuid=r=>e.check(o7(wa,r)),e.uuidv4=r=>e.check(i7(wa,r)),e.uuidv6=r=>e.check(s7(wa,r)),e.uuidv7=r=>e.check(a7(wa,r)),e.nanoid=r=>e.check(c7(hI,r)),e.guid=r=>e.check(zy(Wy,r)),e.cuid=r=>e.check(d7(mI,r)),e.cuid2=r=>e.check(f7(gI,r)),e.ulid=r=>e.check(p7(vI,r)),e.base64=r=>e.check(x7(PI,r)),e.base64url=r=>e.check(w7(SI,r)),e.xid=r=>e.check(h7(bI,r)),e.ksuid=r=>e.check(m7(yI,r)),e.ipv4=r=>e.check(g7(xI,r)),e.ipv6=r=>e.check(v7(wI,r)),e.cidrv4=r=>e.check(b7($I,r)),e.cidrv6=r=>e.check(y7(EI,r)),e.e164=r=>e.check($7(CI,r)),e.datetime=r=>e.check(U7(r)),e.date=r=>e.check(G7(r)),e.time=r=>e.check(q7(r)),e.duration=r=>e.check(X7(r))});function xi(e){return r7(cI,e)}const et=G("ZodStringFormat",(e,t)=>{Je.init(e,t),Ky.init(e,t)}),dI=G("ZodEmail",(e,t)=>{p9.init(e,t),et.init(e,t)}),Wy=G("ZodGUID",(e,t)=>{d9.init(e,t),et.init(e,t)}),wa=G("ZodUUID",(e,t)=>{f9.init(e,t),et.init(e,t)}),fI=G("ZodURL",(e,t)=>{h9.init(e,t),et.init(e,t)}),pI=G("ZodEmoji",(e,t)=>{m9.init(e,t),et.init(e,t)}),hI=G("ZodNanoID",(e,t)=>{g9.init(e,t),et.init(e,t)}),mI=G("ZodCUID",(e,t)=>{v9.init(e,t),et.init(e,t)}),gI=G("ZodCUID2",(e,t)=>{b9.init(e,t),et.init(e,t)}),vI=G("ZodULID",(e,t)=>{y9.init(e,t),et.init(e,t)}),bI=G("ZodXID",(e,t)=>{x9.init(e,t),et.init(e,t)}),yI=G("ZodKSUID",(e,t)=>{w9.init(e,t),et.init(e,t)}),xI=G("ZodIPv4",(e,t)=>{C9.init(e,t),et.init(e,t)}),wI=G("ZodIPv6",(e,t)=>{T9.init(e,t),et.init(e,t)}),$I=G("ZodCIDRv4",(e,t)=>{k9.init(e,t),et.init(e,t)}),EI=G("ZodCIDRv6",(e,t)=>{I9.init(e,t),et.init(e,t)}),PI=G("ZodBase64",(e,t)=>{_9.init(e,t),et.init(e,t)}),SI=G("ZodBase64URL",(e,t)=>{D9.init(e,t),et.init(e,t)}),CI=G("ZodE164",(e,t)=>{A9.init(e,t),et.init(e,t)}),TI=G("ZodJWT",(e,t)=>{N9.init(e,t),et.init(e,t)}),kI=G("ZodUnknown",(e,t)=>{L9.init(e,t),xt.init(e,t)});function Uy(){return k7(kI)}const II=G("ZodNever",(e,t)=>{F9.init(e,t),xt.init(e,t)});function _I(e){return I7(II,e)}const MI=G("ZodArray",(e,t)=>{V9.init(e,t),xt.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(xa(r,n)),e.nonempty=r=>e.check(xa(1,r)),e.max=(r,n)=>e.check(By(r,n)),e.length=(r,n)=>e.check(Ry(r,n)),e.unwrap=()=>e.element});function DI(e,t){return z7(MI,e,t)}const AI=G("ZodObject",(e,t)=>{z9.init(e,t),xt.init(e,t),He(e,"shape",()=>t.shape),e.keyof=()=>jI(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Uy()}),e.loose=()=>e.clone({...e._zod.def,catchall:Uy()}),e.strict=()=>e.clone({...e._zod.def,catchall:_I()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>f6(e,r),e.safeExtend=r=>p6(e,r),e.merge=r=>h6(e,r),e.pick=r=>c6(e,r),e.omit=r=>d6(e,r),e.partial=(...r)=>m6(Hy,e,r[0]),e.required=(...r)=>g6(qy,e,r[0])});function OI(e,t){const r={type:"object",shape:e??{},...ye(t)};return new AI(r)}const NI=G("ZodUnion",(e,t)=>{B9.init(e,t),xt.init(e,t),e.options=t.options});function LI(e,t){return new NI({type:"union",options:e,...ye(t)})}const FI=G("ZodIntersection",(e,t)=>{R9.init(e,t),xt.init(e,t)});function VI(e,t){return new FI({type:"intersection",left:e,right:t})}const Qc=G("ZodEnum",(e,t)=>{K9.init(e,t),xt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Qc({...t,checks:[],...ye(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Qc({...t,checks:[],...ye(o),entries:i})}});function jI(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Qc({type:"enum",entries:r,...ye(t)})}const zI=G("ZodTransform",(e,t)=>{W9.init(e,t),xt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new my(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(bi(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(bi(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function BI(e){return new zI({type:"transform",transform:e})}const Hy=G("ZodOptional",(e,t)=>{U9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gy(e){return new Hy({type:"optional",innerType:e})}const RI=G("ZodNullable",(e,t)=>{H9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zy(e){return new RI({type:"nullable",innerType:e})}const KI=G("ZodDefault",(e,t)=>{G9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WI(e,t){return new KI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():xy(t)}})}const UI=G("ZodPrefault",(e,t)=>{Z9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function HI(e,t){return new UI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():xy(t)}})}const qy=G("ZodNonOptional",(e,t)=>{q9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function GI(e,t){return new qy({type:"nonoptional",innerType:e,...ye(t)})}const ZI=G("ZodCatch",(e,t)=>{Y9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qI(e,t){return new ZI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const YI=G("ZodPipe",(e,t)=>{X9.init(e,t),xt.init(e,t),e.in=t.in,e.out=t.out});function Yy(e,t){return new YI({type:"pipe",in:e,out:t})}const XI=G("ZodReadonly",(e,t)=>{J9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function JI(e){return new XI({type:"readonly",innerType:e})}const QI=G("ZodCustom",(e,t)=>{Q9.init(e,t),xt.init(e,t)});function e_(e,t={}){return B7(QI,e,t)}function t_(e){return R7(e)}const r_=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,n_=OI({postcode:xi().trim().min(1,{message:"Dit is een verplicht veld."}).regex(r_,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:xi().min(1,{message:"Dit is een verplicht veld."}),numberAddon:xi().optional().transform(e=>e??void 0),street:xi().min(1,{message:"Vul de straat in."}),city:xi().min(1,{message:"Vul de woonplaats in."})});function o_({classNames:e,options:t,selectedValue:r,handleFilterChange:n}){const{popoverContent:o,listbox:i,...s}=e||{};return y.jsx(ca,{placeholder:"Sorteren",selectionMode:"single",disallowEmptySelection:!0,onChange:a=>n({id:"sorteren",value:a.target.value}),selectedKeys:[r],radius:"sm",popoverProps:{classNames:{...o,base:j("mobielnl-elements",o?.base),content:j("p-0 rounded-small border border-divider shadow-lg",o?.content)}},listboxProps:{itemClasses:{...i,base:j("data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small",i?.base)}},classNames:{...s,base:j("min-w-1/2 lg:min-w-auto lg:w-[180px]",s?.base),label:j("text-primary-500 group-data-[filled=true]:text-primary-500",s?.label),trigger:j("bg-white data-[hover=true]:text-primary-500 data-[hover=true]:bg-white border border-divider shadow-none cursor-pointer",s?.trigger),value:j("group-data-[has-value=true]:text-foreground",s?.value)},children:t.map(a=>y.jsx(Pt,{children:a.label},a.value))})}function i_(e,t){const r=f.useRef(!0);f.useEffect(()=>{r.current?r.current=!1:e()},t)}function s_(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function Yt(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Xy(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return Yt(r,{dashed:!0})}function $a(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`Van ${Yt(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Yt(t,{dashed:!0})} voor:`}function a_(e){return e.filter(t=>t.value.descriptiveText!==void 0&&t.value.descriptiveText!==null).map(t=>({title:t.value.descriptiveText}))}const wi=2147483647;function Jy(e){switch(e){case wi:return"Onbp";case 0:return"-";default:return e}}function ed(e,t){const r=e.minutes!==0?`${Jy(e.minutes)} ${e.minutes===wi?"min":"minuten"}`:void 0,n=e.sms!==0?`${Jy(e.sms)} sms`:void 0,o=e.minutes===wi&&e.sms===wi||["minutes","sms"].every(s=>e.sharedCredits?.includes(s)),i=o?" / ":" + ";return!r&&!n?"":o?[r,"sms"].join(i):[r,n].join(i)}function l_(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function Ea(e,t){return e===wi?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function u_(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Pa(e){const t=l_(e.planVariant.contractTerm);if(e.productType==="fixed"){const i=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} Mb/s`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"}];const s=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`,a=!e.content.receivers||e.content.receivers===0?"via TV app":`${e.content.receivers} TV-${e.content.receivers===1?"ontvanger":"ontvangers"}`;return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"},{title:s,slug:"channels"},{title:a,slug:"tv-receiver"}]}const r=`${e.content.dataSpeedDown/1e3} Mbps`,n=`${(e.provider.network||"").replace("-netwerk","")} ${u_(e.content.networkGeneration)}`,o=`${Ea(e.content.dataEu,"GB")} in EU`;return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function c_(e,t=500,r=7){const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e&&e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function Sa(e,t=!0){const r=e.filter(o=>c_(o));if(r.length===0)return;const n=Math.min(...r.map(o=>{const i=new Date,s=new Date(o.validUntil);return Math.ceil((s.getTime()-i.getTime())/(1440*60*1e3))}))+1;return n===1?"Laatste dag":`${t?"Nog":"Actie nog"} ${n} dagen`}function d_({size:e,height:t,width:r,className:n,style:o,...i}){return y.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...i,children:[y.jsx("title",{children:"Search Loading Icon"}),y.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),y.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),y.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),y.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),y.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function f_({classNames:e,address:t}){return y.jsxs("div",{className:j("flex flex-row items-center justify-center gap-8 rounded-lg bg-white p-4 shadow-md mb-4",e?.base),children:[y.jsx(d_,{className:j("animate-pulse",e?.icon)}),y.jsxs("div",{className:j("max-w-[215px] text-center flex flex-col items-center gap-2",e?.textWrapper),children:[y.jsx("div",{className:j("text-xl font-bold leading-none text-foreground",e?.heading),children:"Aan het zoeken naar de beste deals..."}),y.jsxs("div",{className:j("text-sm text-foreground leading-none",e?.addressText),children:[t.street," ",s_(t.number,t.numberAddon),", ",t.city]})]})]})}function p_(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function Ca(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}var Ta={exports:{}},td={};/**
434
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");const $=h.compile();return(C,S)=>$(p,C,S)};let i;const s=oa,a=!J0.jitless,c=a&&Bk.value,u=t.catchall;let d;e._zod.parse=(p,h)=>{d??(d=n.value);const m=p.value;return s(m)?a&&c&&h?.async===!1&&h.jitless!==!0?(i||(i=o(t.shape)),p=i(p,h),u?hy([],m,p,h,d,e):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function my(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ko(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>Ln(s,n,An())))}),t)}const w6=Z("$ZodUnion",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),He(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),He(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),He(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Fc(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(l=>my(l,o,e,i)):my(a,o,e,i)}}),$6=Z("$ZodIntersection",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>gy(r,l,c)):gy(r,i,s)}});function Rc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(pi(e)&&pi(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=Rc(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=Rc(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function gy(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ko(e))return e;const n=Rc(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const E6=Z("$ZodEnum",(e,t)=>{vt.init(e,t);const r=zk(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Rk.has(typeof o)).map(o=>typeof o=="string"?ia(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),P6=Z("$ZodTransform",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new X0(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new To;return r.value=o,r}});function vy(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const C6=Z("$ZodOptional",(e,t)=>{vt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Fc(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>vy(i,r.value)):vy(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),S6=Z("$ZodNullable",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Fc(r.source)}|null)$`):void 0}),He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),T6=Z("$ZodDefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>by(i,t)):by(o,t)}});function by(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const k6=Z("$ZodPrefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),I6=Z("$ZodNonOptional",(e,t)=>{vt.init(e,t),He(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>yy(i,e)):yy(o,e)}});function yy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const _6=Z("$ZodCatch",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>Ln(s,n,An()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Ln(i,n,An()))},input:r.value}),r.issues=[]),r)}}),M6=Z("$ZodPipe",(e,t)=>{vt.init(e,t),He(e._zod,"values",()=>t.in._zod.values),He(e._zod,"optin",()=>t.in._zod.optin),He(e._zod,"optout",()=>t.out._zod.optout),He(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>da(s,t.in,n)):da(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>da(i,t.out,n)):da(o,t.out,n)}});function da(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const D6=Z("$ZodReadonly",(e,t)=>{vt.init(e,t),He(e._zod,"propValues",()=>t.innerType._zod.propValues),He(e._zod,"values",()=>t.innerType._zod.values),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(xy):xy(o)}});function xy(e){return e.value=Object.freeze(e.value),e}const A6=Z("$ZodCustom",(e,t)=>{br.init(e,t),vt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>wy(i,r,n,e));wy(o,r,n,e)}});function wy(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(hi(o))}}class N6{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function O6(){return new N6}const fa=O6();function L6(e,t){return new e({type:"string",...$e(t)})}function F6(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function $y(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function V6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function j6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function z6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function B6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function R6(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function K6(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function W6(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function U6(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function H6(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function G6(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function Z6(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function q6(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function Y6(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function X6(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function J6(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function Q6(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function e7(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function t7(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function r7(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function n7(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}function o7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function i7(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function s7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function a7(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function l7(e){return new e({type:"unknown"})}function u7(e,t){return new e({type:"never",...$e(t)})}function Ey(e,t){return new A9({check:"max_length",...$e(t),maximum:e})}function pa(e,t){return new N9({check:"min_length",...$e(t),minimum:e})}function Py(e,t){return new O9({check:"length_equals",...$e(t),length:e})}function c7(e,t){return new L9({check:"string_format",format:"regex",...$e(t),pattern:e})}function d7(e){return new F9({check:"string_format",format:"lowercase",...$e(e)})}function f7(e){return new V9({check:"string_format",format:"uppercase",...$e(e)})}function p7(e,t){return new j9({check:"string_format",format:"includes",...$e(t),includes:e})}function h7(e,t){return new z9({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function m7(e,t){return new B9({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function mi(e){return new R9({check:"overwrite",tx:e})}function g7(e){return mi(t=>t.normalize(e))}function v7(){return mi(e=>e.trim())}function b7(){return mi(e=>e.toLowerCase())}function y7(){return mi(e=>e.toUpperCase())}function x7(e,t,r){return new e({type:"array",element:t,...$e(r)})}function w7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...$e(r)})}function $7(e){const t=E7(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(hi(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(hi(o))}},e(r.value,r)));return t}function E7(e,t){const r=new br({check:"custom",...$e(t)});return r._zod.check=e,r}const P7=Z("ZodISODateTime",(e,t)=>{r6.init(e,t),tt.init(e,t)});function C7(e){return o7(P7,e)}const S7=Z("ZodISODate",(e,t)=>{n6.init(e,t),tt.init(e,t)});function T7(e){return i7(S7,e)}const k7=Z("ZodISOTime",(e,t)=>{o6.init(e,t),tt.init(e,t)});function I7(e){return s7(k7,e)}const _7=Z("ZodISODuration",(e,t)=>{i6.init(e,t),tt.init(e,t)});function M7(e){return a7(_7,e)}const Qt=Z("ZodError",(e,t)=>{iy.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Jk(e,r)},flatten:{value:r=>Xk(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Nc,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Nc,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),D7=jc(Qt),A7=zc(Qt),N7=aa(Qt),O7=la(Qt),L7=t9(Qt),F7=r9(Qt),V7=n9(Qt),j7=o9(Qt),z7=i9(Qt),B7=s9(Qt),R7=a9(Qt),K7=l9(Qt),wt=Z("ZodType",(e,t)=>(vt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(On(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>qr(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>D7(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>N7(e,r,n),e.parseAsync=async(r,n)=>A7(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>O7(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>L7(e,r,n),e.decode=(r,n)=>F7(e,r,n),e.encodeAsync=async(r,n)=>V7(e,r,n),e.decodeAsync=async(r,n)=>j7(e,r,n),e.safeEncode=(r,n)=>z7(e,r,n),e.safeDecode=(r,n)=>B7(e,r,n),e.safeEncodeAsync=async(r,n)=>R7(e,r,n),e.safeDecodeAsync=async(r,n)=>K7(e,r,n),e.refine=(r,n)=>e.check(NI(r,n)),e.superRefine=r=>e.check(OI(r)),e.overwrite=r=>e.check(mi(r)),e.optional=()=>Iy(e),e.nullable=()=>_y(e),e.nullish=()=>Iy(_y(e)),e.nonoptional=r=>TI(e,r),e.array=()=>fI(e),e.or=r=>gI([e,r]),e.and=r=>bI(e,r),e.transform=r=>Dy(e,wI(r)),e.default=r=>PI(e,r),e.prefault=r=>SI(e,r),e.catch=r=>II(e,r),e.pipe=r=>Dy(e,r),e.readonly=()=>DI(e),e.describe=r=>{const n=e.clone();return fa.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return fa.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return fa.get(e);const n=e.clone();return fa.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Cy=Z("_ZodString",(e,t)=>{Bc.init(e,t),wt.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(c7(...n)),e.includes=(...n)=>e.check(p7(...n)),e.startsWith=(...n)=>e.check(h7(...n)),e.endsWith=(...n)=>e.check(m7(...n)),e.min=(...n)=>e.check(pa(...n)),e.max=(...n)=>e.check(Ey(...n)),e.length=(...n)=>e.check(Py(...n)),e.nonempty=(...n)=>e.check(pa(1,...n)),e.lowercase=n=>e.check(d7(n)),e.uppercase=n=>e.check(f7(n)),e.trim=()=>e.check(v7()),e.normalize=(...n)=>e.check(g7(...n)),e.toLowerCase=()=>e.check(b7()),e.toUpperCase=()=>e.check(y7())}),W7=Z("ZodString",(e,t)=>{Bc.init(e,t),Cy.init(e,t),e.email=r=>e.check(F6(U7,r)),e.url=r=>e.check(R6(H7,r)),e.jwt=r=>e.check(n7(aI,r)),e.emoji=r=>e.check(K6(G7,r)),e.guid=r=>e.check($y(Sy,r)),e.uuid=r=>e.check(V6(ha,r)),e.uuidv4=r=>e.check(j6(ha,r)),e.uuidv6=r=>e.check(z6(ha,r)),e.uuidv7=r=>e.check(B6(ha,r)),e.nanoid=r=>e.check(W6(Z7,r)),e.guid=r=>e.check($y(Sy,r)),e.cuid=r=>e.check(U6(q7,r)),e.cuid2=r=>e.check(H6(Y7,r)),e.ulid=r=>e.check(G6(X7,r)),e.base64=r=>e.check(e7(oI,r)),e.base64url=r=>e.check(t7(iI,r)),e.xid=r=>e.check(Z6(J7,r)),e.ksuid=r=>e.check(q6(Q7,r)),e.ipv4=r=>e.check(Y6(eI,r)),e.ipv6=r=>e.check(X6(tI,r)),e.cidrv4=r=>e.check(J6(rI,r)),e.cidrv6=r=>e.check(Q6(nI,r)),e.e164=r=>e.check(r7(sI,r)),e.datetime=r=>e.check(C7(r)),e.date=r=>e.check(T7(r)),e.time=r=>e.check(I7(r)),e.duration=r=>e.check(M7(r))});function gi(e){return L6(W7,e)}const tt=Z("ZodStringFormat",(e,t)=>{Qe.init(e,t),Cy.init(e,t)}),U7=Z("ZodEmail",(e,t)=>{G9.init(e,t),tt.init(e,t)}),Sy=Z("ZodGUID",(e,t)=>{U9.init(e,t),tt.init(e,t)}),ha=Z("ZodUUID",(e,t)=>{H9.init(e,t),tt.init(e,t)}),H7=Z("ZodURL",(e,t)=>{Z9.init(e,t),tt.init(e,t)}),G7=Z("ZodEmoji",(e,t)=>{q9.init(e,t),tt.init(e,t)}),Z7=Z("ZodNanoID",(e,t)=>{Y9.init(e,t),tt.init(e,t)}),q7=Z("ZodCUID",(e,t)=>{X9.init(e,t),tt.init(e,t)}),Y7=Z("ZodCUID2",(e,t)=>{J9.init(e,t),tt.init(e,t)}),X7=Z("ZodULID",(e,t)=>{Q9.init(e,t),tt.init(e,t)}),J7=Z("ZodXID",(e,t)=>{e6.init(e,t),tt.init(e,t)}),Q7=Z("ZodKSUID",(e,t)=>{t6.init(e,t),tt.init(e,t)}),eI=Z("ZodIPv4",(e,t)=>{s6.init(e,t),tt.init(e,t)}),tI=Z("ZodIPv6",(e,t)=>{a6.init(e,t),tt.init(e,t)}),rI=Z("ZodCIDRv4",(e,t)=>{l6.init(e,t),tt.init(e,t)}),nI=Z("ZodCIDRv6",(e,t)=>{u6.init(e,t),tt.init(e,t)}),oI=Z("ZodBase64",(e,t)=>{c6.init(e,t),tt.init(e,t)}),iI=Z("ZodBase64URL",(e,t)=>{f6.init(e,t),tt.init(e,t)}),sI=Z("ZodE164",(e,t)=>{p6.init(e,t),tt.init(e,t)}),aI=Z("ZodJWT",(e,t)=>{m6.init(e,t),tt.init(e,t)}),lI=Z("ZodUnknown",(e,t)=>{g6.init(e,t),wt.init(e,t)});function Ty(){return l7(lI)}const uI=Z("ZodNever",(e,t)=>{v6.init(e,t),wt.init(e,t)});function cI(e){return u7(uI,e)}const dI=Z("ZodArray",(e,t)=>{b6.init(e,t),wt.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(pa(r,n)),e.nonempty=r=>e.check(pa(1,r)),e.max=(r,n)=>e.check(Ey(r,n)),e.length=(r,n)=>e.check(Py(r,n)),e.unwrap=()=>e.element});function fI(e,t){return x7(dI,e,t)}const pI=Z("ZodObject",(e,t)=>{x6.init(e,t),wt.init(e,t),He(e,"shape",()=>t.shape),e.keyof=()=>yI(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ty()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ty()}),e.strict=()=>e.clone({...e._zod.def,catchall:cI()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Hk(e,r),e.safeExtend=r=>Gk(e,r),e.merge=r=>Zk(e,r),e.pick=r=>Wk(e,r),e.omit=r=>Uk(e,r),e.partial=(...r)=>qk(ky,e,r[0]),e.required=(...r)=>Yk(My,e,r[0])});function hI(e,t){const r={type:"object",shape:e??{},...$e(t)};return new pI(r)}const mI=Z("ZodUnion",(e,t)=>{w6.init(e,t),wt.init(e,t),e.options=t.options});function gI(e,t){return new mI({type:"union",options:e,...$e(t)})}const vI=Z("ZodIntersection",(e,t)=>{$6.init(e,t),wt.init(e,t)});function bI(e,t){return new vI({type:"intersection",left:e,right:t})}const Kc=Z("ZodEnum",(e,t)=>{E6.init(e,t),wt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Kc({...t,checks:[],...$e(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Kc({...t,checks:[],...$e(o),entries:i})}});function yI(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Kc({type:"enum",entries:r,...$e(t)})}const xI=Z("ZodTransform",(e,t)=>{P6.init(e,t),wt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new X0(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(hi(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(hi(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function wI(e){return new xI({type:"transform",transform:e})}const ky=Z("ZodOptional",(e,t)=>{C6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Iy(e){return new ky({type:"optional",innerType:e})}const $I=Z("ZodNullable",(e,t)=>{S6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _y(e){return new $I({type:"nullable",innerType:e})}const EI=Z("ZodDefault",(e,t)=>{T6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function PI(e,t){return new EI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ry(t)}})}const CI=Z("ZodPrefault",(e,t)=>{k6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function SI(e,t){return new CI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ry(t)}})}const My=Z("ZodNonOptional",(e,t)=>{I6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function TI(e,t){return new My({type:"nonoptional",innerType:e,...$e(t)})}const kI=Z("ZodCatch",(e,t)=>{_6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function II(e,t){return new kI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const _I=Z("ZodPipe",(e,t)=>{M6.init(e,t),wt.init(e,t),e.in=t.in,e.out=t.out});function Dy(e,t){return new _I({type:"pipe",in:e,out:t})}const MI=Z("ZodReadonly",(e,t)=>{D6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function DI(e){return new MI({type:"readonly",innerType:e})}const AI=Z("ZodCustom",(e,t)=>{A6.init(e,t),wt.init(e,t)});function NI(e,t={}){return w7(AI,e,t)}function OI(e){return $7(e)}const LI=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,FI=hI({postcode:gi().trim().min(1,{message:"Dit is een verplicht veld."}).regex(LI,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:gi().min(1,{message:"Dit is een verplicht veld."}),numberAddon:gi().optional().transform(e=>e??void 0),street:gi().min(1,{message:"Vul de straat in."}),city:gi().min(1,{message:"Vul de woonplaats in."})});function VI({classNames:e,options:t,selectedValue:r,handleFilterChange:n}){const{popoverContent:o,listbox:i,...s}=e||{};return b.jsx(na,{placeholder:"Sorteren",selectionMode:"single",disallowEmptySelection:!0,onChange:a=>n({id:"sorteren",value:a.target.value}),selectedKeys:[r],radius:"sm",popoverProps:{classNames:{...o,base:j("mobielnl-elements",o?.base),content:j("p-0 rounded-small border border-divider shadow-lg",o?.content)}},listboxProps:{itemClasses:{...i,base:j("data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small",i?.base)}},classNames:{...s,base:j("min-w-1/2 lg:min-w-auto lg:w-[180px]",s?.base),label:j("text-primary-500 group-data-[filled=true]:text-primary-500",s?.label),trigger:j("bg-white data-[hover=true]:text-primary-500 data-[hover=true]:bg-white border border-divider shadow-none cursor-pointer",s?.trigger),value:j("group-data-[has-value=true]:text-foreground",s?.value)},children:t.map(a=>b.jsx(Pt,{children:a.label},a.value))})}function jI(e,t){const r=f.useRef(!0);f.useEffect(()=>{r.current?r.current=!1:e()},t)}function zI(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function Gt(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Ay(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return Gt(r,{dashed:!0})}function ma(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`Van ${Gt(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Gt(t,{dashed:!0})} voor:`}function BI(e){return e.filter(t=>t.value.descriptiveText!==void 0&&t.value.descriptiveText!==null).map(t=>({title:t.value.descriptiveText}))}function Ny(e){switch(e){case Ur:return"Onbp";case 0:return"-";default:return e}}function Wc(e,t){const r=e.minutes!==0?`${Ny(e.minutes)} ${e.minutes===Ur?"min":"minuten"}`:void 0,n=e.sms!==0?`${Ny(e.sms)} sms`:void 0,o=e.minutes===Ur&&e.sms===Ur||["minutes","sms"].every(s=>e.sharedCredits?.includes(s)),i=o?" / ":" + ";return!r&&!n?"":o?[r,"sms"].join(i):[r,n].join(i)}function RI(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function ga(e,t){return e===Ur?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function KI(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function va(e){const t=RI(e.planVariant.contractTerm);if(e.productType==="fixed"){const i=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} Mb/s`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"}];const s=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`,a=!e.content.receivers||e.content.receivers===0?"via TV app":`${e.content.receivers} TV-${e.content.receivers===1?"ontvanger":"ontvangers"}`;return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"},{title:s,slug:"channels"},{title:a,slug:"tv-receiver"}]}const r=`${e.content.dataSpeedDown/1e3} Mbps`,n=`${(e.provider.network||"").replace("-netwerk","")} ${KI(e.content.networkGeneration)}`,o=`${ga(e.content.dataEu,"GB")} in EU`;return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function WI(e,t=500,r=7){const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e&&e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function ba(e,t=!0){const r=e.filter(o=>WI(o));if(r.length===0)return;const n=Math.min(...r.map(o=>{const i=new Date,s=new Date(o.validUntil);return Math.ceil((s.getTime()-i.getTime())/(1440*60*1e3))}))+1;return n===1?"Laatste dag":`${t?"Nog":"Actie nog"} ${n} dagen`}function UI({size:e,height:t,width:r,className:n,style:o,...i}){return b.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...i,children:[b.jsx("title",{children:"Search Loading Icon"}),b.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),b.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),b.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),b.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),b.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function HI({classNames:e,address:t}){return b.jsxs("div",{className:j("flex flex-row items-center justify-center gap-8 rounded-lg bg-white p-4 shadow-md mb-4",e?.base),children:[b.jsx(UI,{className:j("animate-pulse",e?.icon)}),b.jsxs("div",{className:j("max-w-[215px] text-center flex flex-col items-center gap-2",e?.textWrapper),children:[b.jsx("div",{className:j("text-xl font-bold leading-none text-foreground",e?.heading),children:"Aan het zoeken naar de beste deals..."}),b.jsxs("div",{className:j("text-sm text-foreground leading-none",e?.addressText),children:[t.street," ",zI(t.number,t.numberAddon),", ",t.city]})]})]})}function GI(e){const[t,r]=Bt(e,Zd.variantKeys),{as:n,title:o,children:i,description:s,onClose:a,isClosable:l,ref:c,icon:u,startContent:d,endContent:p,isVisible:h,isDefaultVisible:m,onVisibleChange:g,closeButtonProps:x={size:"sm"},className:v,classNames:$,...C}=t,[S,T]=Er(h,m??!0,g),D=typeof(n||"div")=="string",E=Rt(c),V=f.useCallback(()=>{T(!1),a?.()},[T,a]),F=Pe($?.base,v),y=f.useMemo(()=>Zd({hasContent:!In(s)||!In(i),...r}),[s,Zr(r)]),M=f.useCallback(()=>({"data-visible":he(S),"data-closeable":he(l),"data-has-title":he(!In(o)),"data-has-description":he(!In(s)),...Ve(ut(C,{enabled:D}),ut(t)),className:y.base({class:F})}),[y,F]),A=f.useCallback(()=>({className:y.mainWrapper({class:$?.mainWrapper})}),[y,$?.mainWrapper]),I=f.useCallback(()=>({className:y.description({class:$?.description})}),[y,$?.description]),N=f.useCallback(()=>({className:y.title({class:$?.title})}),[y,$?.title]),w=f.useCallback(()=>({...x,className:y.closeButton({class:$?.closeButton})}),[y,$?.closeButton]),P=f.useCallback(()=>({className:y.alertIcon({class:$?.alertIcon})}),[y,$?.alertIcon]),_=f.useCallback(()=>({className:y.iconWrapper({class:$?.iconWrapper})}),[y,$?.iconWrapper]);return{title:o,icon:u,children:i,description:s,isClosable:l,domRef:E,endContent:p,startContent:d,getBaseProps:M,getMainWrapperProps:A,getDescriptionProps:I,getTitleProps:N,color:r.color,getCloseButtonProps:w,handleClose:V,isVisible:S,onClose:a,getAlertIconProps:P,getIconWrapperProps:_}}var Oy={primary:Sm,secondary:Sm,success:sS,warning:aS,danger:lS},Ly=Re((e,t)=>{const{title:r,icon:n,children:o,description:i,endContent:s,startContent:a,isClosable:l,domRef:c,handleClose:u,getBaseProps:d,getMainWrapperProps:p,getDescriptionProps:h,getTitleProps:m,getCloseButtonProps:g,color:x,isVisible:v,onClose:$,getAlertIconProps:C,getIconWrapperProps:S}=GI({...e,ref:t});if(!v)return null;const T=n&&f.isValidElement(n)?f.cloneElement(n,C()):null,k=Oy[x]||Oy.primary;return b.jsxs("div",{ref:c,role:"alert",...d(),children:[a,b.jsx("div",{...S(),children:T||b.jsx(k,{...C()})}),b.jsxs("div",{...p(),children:[!In(r)&&b.jsx("div",{...m(),children:r}),!In(i)&&b.jsx("div",{...h(),children:i}),o]}),s,(l||$)&&b.jsx(Ok,{isIconOnly:!0,"aria-label":"Close",radius:"full",variant:"light",onPress:u,...g(),children:b.jsx(Tm,{height:20,width:20})})]})});Ly.displayName="HeroUI.Alert";var ZI=Ly;function ya({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){return b.jsxs("div",{children:[b.jsx("div",{className:j("text-base font-bold text-foreground mb-1 lg:hidden",n?.filterChips?.title),children:"Gekozen filters:"}),b.jsx(Qu,{activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:{container:j("mb-6 lg:hidden",n?.filterChips?.container),filterChip:n?.filterChips?.filterChip}}),b.jsx(ZI,{color:"warning",variant:"faded",title:"Geen resultaten gevonden",description:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",classNames:{base:j(n?.alert?.base),title:j(n?.alert?.title),description:j(n?.alert?.description),mainWrapper:j(n?.alert?.mainWrapper),closeButton:j(n?.alert?.closeButton),iconWrapper:j(n?.alert?.iconWrapper),alertIcon:j(n?.alert?.alertIcon)}})]})}function qI(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function xa(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}var wa={exports:{}},Uc={};/**
430
435
  * @license React
431
436
  * use-sync-external-store-shim.production.js
432
437
  *
@@ -434,7 +439,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
434
439
  *
435
440
  * This source code is licensed under the MIT license found in the
436
441
  * LICENSE file in the root directory of this source tree.
437
- */var Qy;function h_(){if(Qy)return td;Qy=1;var e=f;function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(d,h){var p=h(),g=n({inst:{value:p,getSnapshot:h}}),m=g[0].inst,x=g[1];return i(function(){m.value=p,m.getSnapshot=h,l(m)&&x({inst:m})},[d,p,h]),o(function(){return l(m)&&x({inst:m}),d(function(){l(m)&&x({inst:m})})},[d]),s(p),p}function l(d){var h=d.getSnapshot;d=d.value;try{var p=h();return!r(d,p)}catch{return!0}}function c(d,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return td.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,td}var rd={};/**
442
+ */var Fy;function YI(){if(Fy)return Uc;Fy=1;var e=f;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(d,p){var h=p(),m=n({inst:{value:h,getSnapshot:p}}),g=m[0].inst,x=m[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&x({inst:g})},[d,h,p]),o(function(){return l(g)&&x({inst:g}),d(function(){l(g)&&x({inst:g})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!r(d,h)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Uc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Uc}var Hc={};/**
438
443
  * @license React
439
444
  * use-sync-external-store-shim.development.js
440
445
  *
@@ -442,4 +447,4 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
442
447
  *
443
448
  * This source code is licensed under the MIT license found in the
444
449
  * LICENSE file in the root directory of this source tree.
445
- */var e1;function m_(){return e1||(e1=1,process.env.NODE_ENV!=="production"&&function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!d){var x=g();i(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:m,getSnapshot:g}});var v=x[0].inst,$=x[1];return l(function(){v.value=m,v.getSnapshot=g,r(v)&&$({inst:v})},[p,m,g]),a(function(){return r(v)&&$({inst:v}),p(function(){r(v)&&$({inst:v})})},[p]),c(m),m}function r(p){var g=p.getSnapshot;p=p.value;try{var m=g();return!i(p,m)}catch{return!0}}function n(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=f,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;rd.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),rd}var t1;function g_(){return t1||(t1=1,process.env.NODE_ENV==="production"?Ta.exports=h_():Ta.exports=m_()),Ta.exports}var v_=g_();const r1=0,n1=1,o1=2,i1=3;var s1=Object.prototype.hasOwnProperty;function nd(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&nd(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(s1.call(e,r)&&++n&&!s1.call(t,r)||!(r in t)||!nd(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const Dr=new WeakMap,Yr=()=>{},_t=Yr(),od=Object,Ae=e=>e===_t,xr=e=>typeof e=="function",Xr=(e,t)=>({...e,...t}),a1=e=>xr(e.then),id={},ka={},sd="undefined",$i=typeof window!=sd,ad=typeof document!=sd,b_=$i&&"Deno"in window,y_=()=>$i&&typeof window.requestAnimationFrame!=sd,l1=(e,t)=>{const r=Dr.get(e);return[()=>!Ae(t)&&e.get(t)||id,n=>{if(!Ae(t)){const o=e.get(t);t in ka||(ka[t]=o),r[5](t,Xr(o,n),o||id)}},r[6],()=>!Ae(t)&&t in ka?ka[t]:!Ae(t)&&e.get(t)||id]};let ld=!0;const x_=()=>ld,[ud,cd]=$i&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Yr,Yr],w_=()=>{const e=ad&&document.visibilityState;return Ae(e)||e!=="hidden"},$_=e=>(ad&&document.addEventListener("visibilitychange",e),ud("focus",e),()=>{ad&&document.removeEventListener("visibilitychange",e),cd("focus",e)}),E_=e=>{const t=()=>{ld=!0,e()},r=()=>{ld=!1};return ud("online",t),ud("offline",r),()=>{cd("online",t),cd("offline",r)}},P_={isOnline:x_,isVisible:w_},S_={initFocus:$_,initReconnect:E_},u1=!f.useId,Ei=!$i||b_,C_=e=>y_()?window.requestAnimationFrame(e):setTimeout(e,1),dd=Ei?f.useEffect:f.useLayoutEffect,fd=typeof navigator<"u"&&navigator.connection,c1=!Ei&&fd&&(["slow-2g","2g"].includes(fd.effectiveType)||fd.saveData),Ia=new WeakMap,T_=e=>od.prototype.toString.call(e),pd=(e,t)=>e===`[object ${t}]`;let k_=0;const hd=e=>{const t=typeof e,r=T_(e),n=pd(r,"Date"),o=pd(r,"RegExp"),i=pd(r,"Object");let s,a;if(od(e)===e&&!n&&!o){if(s=Ia.get(e),s)return s;if(s=++k_+"~",Ia.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=hd(e[a])+",";Ia.set(e,s)}if(i){s="#";const l=od.keys(e).sort();for(;!Ae(a=l.pop());)Ae(e[a])||(s+=a+":"+hd(e[a])+",");Ia.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},md=e=>{if(xr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?hd(e):"",[e,t]};let I_=0;const gd=()=>++I_;async function d1(...e){const[t,r,n,o]=e,i=Xr({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=h=>typeof a=="function"?a(h):a!==!1,u=i.throwOnError;if(xr(r)){const h=r,p=[],g=t.keys();for(const m of g)!/^\$(inf|sub)\$/.test(m)&&h(t.get(m)._k)&&p.push(m);return Promise.all(p.map(d))}return d(r);async function d(h){const[p]=md(h);if(!p)return;const[g,m]=l1(t,p),[x,v,$,S]=Dr.get(t),C=()=>{const I=x[p];return(xr(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete $[p],delete S[p],I&&I[0])?I[0](o1).then(()=>g().data):g().data};if(e.length<3)return C();let T=n,k,D=!1;const E=gd();v[p]=[E,0];const V=!Ae(l),F=g(),b=F.data,M=F._c,A=Ae(M)?b:M;if(V&&(l=xr(l)?l(A,b):l,m({data:l,_c:A})),xr(T))try{T=T(A)}catch(I){k=I,D=!0}if(T&&a1(T))if(T=await T.catch(I=>{k=I,D=!0}),E!==v[p][0]){if(D)throw k;return T}else D&&V&&c(k)&&(s=!0,m({data:A,_c:_t}));if(s&&!D)if(xr(s)){const I=s(T,A);m({data:I,error:_t,_c:_t})}else m({data:T,error:_t,_c:_t});if(v[p][1]=gd(),Promise.resolve(C()).then(()=>{m({_c:_t})}),D){if(u)throw k;return}return T}}const f1=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},__=(e,t)=>{if(!Dr.has(e)){const r=Xr(S_,t),n=Object.create(null),o=d1.bind(_t,e);let i=Yr;const s=Object.create(null),a=(u,d)=>{const h=s[u]||[];return s[u]=h,h.push(d),()=>h.splice(h.indexOf(d),1)},l=(u,d,h)=>{e.set(u,d);const p=s[u];if(p)for(const g of p)g(d,h)},c=()=>{if(!Dr.has(e)&&(Dr.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!Ei)){const u=r.initFocus(setTimeout.bind(_t,f1.bind(_t,n,r1))),d=r.initReconnect(setTimeout.bind(_t,f1.bind(_t,n,n1)));i=()=>{u&&u(),d&&d(),Dr.delete(e)}}};return c(),[e,o,c,i]}return[e,Dr.get(e)[4]]},M_=(e,t,r,n,o)=>{const i=r.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!Ae(i)&&s>i||setTimeout(n,a,o)},D_=nd,[p1,A_]=__(new Map),O_=Xr({onLoadingSlow:Yr,onSuccess:Yr,onError:Yr,onErrorRetry:M_,onDiscarded:Yr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:c1?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:c1?5e3:3e3,compare:D_,isPaused:()=>!1,cache:p1,mutate:A_,fallback:{}},P_),N_=(e,t)=>{const r=Xr(e,t);if(t){const{use:n,fallback:o}=e,{use:i,fallback:s}=t;n&&i&&(r.use=n.concat(i)),o&&s&&(r.fallback=Xr(o,s))}return r},L_=f.createContext({}),F_="$inf$",h1=$i&&window.__SWR_DEVTOOLS_USE__,V_=h1?window.__SWR_DEVTOOLS_USE__:[],j_=()=>{h1&&(window.__SWR_DEVTOOLS_REACT__=f)},m1=e=>xr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],z_=()=>{const e=f.useContext(L_);return f.useMemo(()=>Xr(O_,e),[e])},B_=e=>(t,r,n)=>e(t,r&&((...i)=>{const[s]=md(t),[,,,a]=Dr.get(p1);if(s.startsWith(F_))return r(...i);const l=a[s];return Ae(l)?r(...i):(delete a[s],l)}),n),R_=V_.concat(B_),K_=e=>function(...r){const n=z_(),[o,i,s]=m1(r),a=N_(n,s);let l=e;const{use:c}=a,u=(c||[]).concat(R_);for(let d=u.length;d--;)l=u[d](l);return l(o,i||a.fetcher||null,a)},W_=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},U_=(e,t)=>(...r)=>{const[n,o,i]=m1(r),s=(i.use||[]).concat(t);return e(n,o,{...i,use:s})};j_();const vd=f.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),bd={dedupe:!0},g1=Promise.resolve(_t),H_=K_((e,t,r)=>{const{cache:n,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:h}=r,[p,g,m,x]=Dr.get(n),[v,$]=md(e),S=f.useRef(!1),C=f.useRef(!1),T=f.useRef(v),k=f.useRef(t),D=f.useRef(r),E=()=>D.current,V=()=>E().isVisible()&&E().isOnline(),[F,b,M,A]=l1(n,v),I=f.useRef({}).current,N=Ae(s)?Ae(r.fallback)?_t:r.fallback[v]:s,w=(Y,de)=>{for(const ae in I){const ie=ae;if(ie==="data"){if(!o(Y[ie],de[ie])&&(!Ae(Y[ie])||!o(ee,de[ie])))return!1}else if(de[ie]!==Y[ie])return!1}return!0},P=f.useMemo(()=>{const Y=!v||!t?!1:Ae(a)?E().isPaused()||i?!1:l!==!1:a,de=te=>{const je=Xr(te);return delete je._k,Y?{isValidating:!0,isLoading:!0,...je}:je},ae=F(),ie=A(),we=de(ae),De=ae===ie?we:de(ie);let xe=we;return[()=>{const te=de(F());return w(te,xe)?(xe.data=te.data,xe.isLoading=te.isLoading,xe.isValidating=te.isValidating,xe.error=te.error,xe):(xe=te,te)},()=>De]},[n,v]),_=v_.useSyncExternalStore(f.useCallback(Y=>M(v,(de,ae)=>{w(ae,de)||Y()}),[n,v]),P[0],P[1]),B=!S.current,L=p[v]&&p[v].length>0,K=_.data,z=Ae(K)?N&&a1(N)?vd(N):N:K,W=_.error,U=f.useRef(z),ee=h?Ae(K)?Ae(U.current)?z:U.current:K:z,Z=L&&!Ae(W)?!1:B&&!Ae(a)?a:E().isPaused()?!1:i?Ae(z)?!1:l:Ae(z)||l,R=!!(v&&t&&B&&Z),he=Ae(_.isValidating)?R:_.isValidating,fe=Ae(_.isLoading)?R:_.isLoading,Q=f.useCallback(async Y=>{const de=k.current;if(!v||!de||C.current||E().isPaused())return!1;let ae,ie,we=!0;const De=Y||{},xe=!m[v]||!De.dedupe,te=()=>u1?!C.current&&v===T.current&&S.current:v===T.current,je={isValidating:!1,isLoading:!1},Ee=()=>{b(je)},Ke=()=>{const Te=m[v];Te&&Te[1]===ie&&delete m[v]},lt={isValidating:!0};Ae(F().data)&&(lt.isLoading=!0);try{if(xe&&(b(lt),r.loadingTimeout&&Ae(F().data)&&setTimeout(()=>{we&&te()&&E().onLoadingSlow(v,r)},r.loadingTimeout),m[v]=[de($),gd()]),[ae,ie]=m[v],ae=await ae,xe&&setTimeout(Ke,r.dedupingInterval),!m[v]||m[v][1]!==ie)return xe&&te()&&E().onDiscarded(v),!1;je.error=_t;const Te=g[v];if(!Ae(Te)&&(ie<=Te[0]||ie<=Te[1]||Te[1]===0))return Ee(),xe&&te()&&E().onDiscarded(v),!1;const Ge=F().data;je.data=o(Ge,ae)?Ge:ae,xe&&te()&&E().onSuccess(ae,v,r)}catch(Te){Ke();const Ge=E(),{shouldRetryOnError:ft}=Ge;Ge.isPaused()||(je.error=Te,xe&&te()&&(Ge.onError(Te,v,Ge),(ft===!0||xr(ft)&&ft(Te))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||V())&&Ge.onErrorRetry(Te,v,Ge,Ft=>{const Oe=p[v];Oe&&Oe[0]&&Oe[0](i1,Ft)},{retryCount:(De.retryCount||0)+1,dedupe:!0})))}return we=!1,Ee(),!0},[v,n]),se=f.useCallback((...Y)=>d1(n,T.current,...Y),[]);if(dd(()=>{k.current=t,D.current=r,Ae(K)||(U.current=K)}),dd(()=>{if(!v)return;const Y=Q.bind(_t,bd);let de=0;E().revalidateOnFocus&&(de=Date.now()+E().focusThrottleInterval);const ie=W_(v,p,(we,De={})=>{if(we==r1){const xe=Date.now();E().revalidateOnFocus&&xe>de&&V()&&(de=xe+E().focusThrottleInterval,Y())}else if(we==n1)E().revalidateOnReconnect&&V()&&Y();else{if(we==o1)return Q();if(we==i1)return Q(De)}});return C.current=!1,T.current=v,S.current=!0,b({_k:$}),Z&&(m[v]||(Ae(z)||Ei?Y():C_(Y))),()=>{C.current=!0,ie()}},[v]),dd(()=>{let Y;function de(){const ie=xr(c)?c(F().data):c;ie&&Y!==-1&&(Y=setTimeout(ae,ie))}function ae(){!F().error&&(u||E().isVisible())&&(d||E().isOnline())?Q(bd).then(de):de()}return de(),()=>{Y&&(clearTimeout(Y),Y=-1)}},[c,u,d,v]),f.useDebugValue(ee),i){const Y=v&&Ae(z);if(!u1&&Ei&&Y)throw new Error("Fallback data is required when using Suspense in SSR.");Y&&(k.current=t,D.current=r,C.current=!1);const de=x[v],ae=!Ae(de)&&Y?se(de):g1;if(vd(ae),!Ae(W)&&Y)throw W;const ie=Y?Q(bd):g1;!Ae(ee)&&Y&&(ie.status="fulfilled",ie.value=!0),vd(ie)}return{mutate:se,get data(){return I.data=!0,ee},get error(){return I.error=!0,W},get isValidating(){return I.isValidating=!0,he},get isLoading(){return I.isLoading=!0,fe}}}),_a=U_(H_,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));let v1;function G_(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return v1=new IC(t,{headers:e}),v1}function Z_(e,t={}){return G_().request(e,t)}function Ma([e,t]){return Z_(e,t)}function Da(e){return(t,r,n)=>{const o=f.useRef(void 0),i=e(t,r,n);f.useEffect(()=>{i.data!==void 0&&(o.current=i.data)},[i.data]);const s=f.useCallback(()=>{o.current=void 0},[]),a=i.data===void 0?o.current:i.data,l=i.data===void 0&&o.current!==void 0;return Object.assign({},i,{data:a,isSticky:l,resetSticky:s})}}function q_({query:e,modificationBlocks:t,address:r}){return _a([DC,{query:e,modificationBlocks:t,...r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:{}}],{use:[Da],fetcher:Ma})}function Y_({query:e,modificationBlocks:t}){return _a([AC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function X_({query:e,modificationBlocks:t}){return _a([OC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function J_({query:e,modificationBlocks:t}){return _a([NC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function Aa({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o}){const i=p_(n,o),s=zC({filterOptions:e,filterValues:t,limit:r,currentProvider:i});switch(n){case"sim-only-proposition":{const a=Kr(t,"provider");return s.groupBy(Array.isArray(a)&&a.length===1?"data_and_speed":"provider"),Y_({query:s.serialize(),modificationBlocks:Ca(n,o)})}case"fixed-proposition":return s.groupBy("provider_data_speed_down"),q_({query:s.serialize(),modificationBlocks:Ca(n,o),address:o.address});case"smartphone-proposition":{const a=Kr(t,"sorteren");return s.groupBy(a==="relevantie"?"product_provider_slug":"product_slug"),X_({query:s.serialize(),modificationBlocks:Ca(n,o)})}case"phone-and-subscription":{const a=Kr(t,"sorteren"),l=Kr(t,"provider");return s.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":a==="top"?"product_provider_slug":"product_slug"),J_({query:s.serialize(),modificationBlocks:Ca(n,o)})}default:return{data:void 0,isValidating:!1,mutate:async()=>{}}}}function Q_({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l,mutate:c}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),u=a?.search.records||[],{polling:d,validating:h}=a&&"fetchInfo"in a?a.fetchInfo:{polling:!1,validating:!1};return f.useEffect(()=>{if(!d)return;const p=setInterval(()=>c(),1e3);return()=>clearInterval(p)},[d]),i_(()=>{i.address&&c()},[i.address?.postcode,i.address?.number,i.address?.numberAddon]),y.jsxs("div",{children:[d&&i.address&&y.jsx(f_,{address:i.address,classNames:s?.postcodeCheckLoading}),y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",(l||h)&&!d&&"opacity-50 pointer-events-none",s?.resultsGrid),children:u.map(p=>y.jsx(hi,{disabled:i.currentFixedProviderScope?.includes(p.provider.slug),horizontal:o==="horizontal",monthlyFee:Yt(p.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(p.monthlyFees,p.baseMonthlyFee,p.lifetimeMonthlyFee),tcoPerMonth:Yt(p.tcoPerMonth,{dashed:!0}),propositionTitle:`${p.content.dataSpeedDown/1e3} Mb/s`,propositionSubtitle:p.tags.find(g=>g.type==="internet")?.label??"",propositionImageUrl:p.provider.imageUrl,propositionImageAlt:p.provider.name,propositionSpecifications:Pa(p),urgentText:Sa(p.specialPromotions),specialPromotions:p.specialPromotions.map(g=>g.publicTitle),modificationPromotions:p.modificationPromotions,href:`https://www.mobiel.nl/aanbieding/${p.key}`,classNames:s?.propositionCard},p.key))})]})}function eM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.deliveryPromise,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function tM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),deviceDiscount:Xy(u),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),productPrice:Yt(u.price,{dashed:!0}),productImageAlt:u.productVersion?.media.main?.altText||void 0,productImageUrl:u.productVersion?.media.main?.url||void 0,productReviewCount:u.productVersion?.product.reviews.numberOfReviews,productReviewScore:u.productVersion?.product.reviews.starsAverage,productSpecifications:a_(u.productVersion?.specifications||[]),productStockStatus:u.productVersion?.stock.status,productSubtitle:u.productVersion?.product.brand.name,productTitle:u.productVersion?.product.name,propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.productVersion?.stock.status==="in_stock"?u.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function rM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),deviceDiscount:Xy(u),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),productPrice:Yt(u.price,{dashed:!0}),propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.productVersion?.stock.status==="in_stock"?u.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function nM({...e}){switch(e.productCategory){case"fixed-proposition":return y.jsx(Q_,{...e});case"smartphone-proposition":return y.jsx(tM,{...e});case"phone-and-subscription":return y.jsx(rM,{...e});case"sim-only-proposition":return y.jsx(eM,{...e});default:return null}}function oM({productCategory:e,filterOptions:t=[],initialSelectedFilters:r=[],limit:n=12,propositionCardLayout:o="horizontal",classNames:i,profile:s={},onProfileChange:a}){const[l,c]=f.useState(r),u=f.useCallback(g=>{c(m=>{const x=m.filter($=>$.id!==g.id);let v=!1;return Array.isArray(g.value)?v=g.value.length>0:v=g.value!==""&&g.value!==void 0&&g.value!==null,v&&x.push(g),x})},[]),d=f.useCallback(g=>{c(m=>m.filter(x=>x.id!==g.id))},[]),h=f.useMemo(()=>[{value:e==="smartphone-proposition"?"relevantie":"top",label:"Relevantie"},{value:"meest-voordelig",label:"Prijs laag-hoog"},{value:"best-verkocht",label:"Best verkocht"}],[e]),p={inputWrapper:"bg-white border border-default-200",input:"placeholder:text-default-300"};return y.jsxs("div",{className:j("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",i?.base),children:[y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e==="phone-and-subscription"&&y.jsx(ca,{label:"Telefoon",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[l.find(g=>g.id==="product_slug")?.value??""],radius:"sm",onChange:g=>u({id:"product_slug",value:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:y.jsx(Pt,{children:"Apple iPhone 17"},"iphone-17")}),y.jsx("p",{className:"text-base font-bold text-foreground",children:"Profiel"}),y.jsxs(ca,{label:"Huidige mobiele provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentProviderSlug||""],radius:"sm",onChange:g=>a?.({currentProviderSlug:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[y.jsx(Pt,{children:"Geen"},""),y.jsx(Pt,{children:"Odido"},"odido"),y.jsx(Pt,{children:"KPN"},"kpn"),y.jsx(Pt,{children:"Hollandsnieuwe"},"hollandsnieuwe"),y.jsx(Pt,{children:"Lebara"},"lebara"),y.jsx(Pt,{children:"Ben"},"ben"),y.jsx(Pt,{children:"Vodafone"},"vodafone")]}),y.jsxs(ca,{label:"Huidige thuis internet provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentFixedProviderScope||"other"],radius:"sm",onChange:g=>a?.({currentFixedProviderScope:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[y.jsx(Pt,{children:"Geen i.v.m. verhuizing"},"other/moving"),y.jsx(Pt,{children:"KPN Internet"},"fixed/kpn/internet"),y.jsx(Pt,{children:"Ziggo Internet"},"fixed/ziggo/internet"),y.jsx(Pt,{children:"Odido Internet"},"fixed/odido/thuis"),y.jsx(Pt,{children:"Budget Internet"},"fixed/budget-internet"),y.jsx(Pt,{children:"Youfone Internet"},"fixed/youfone/internet"),y.jsx(Pt,{children:"Delta Internet"},"fixed/delta"),y.jsx(Pt,{children:"Andere / geen provider"},"other")]}),e==="fixed-proposition"&&y.jsxs("form",{className:"flex flex-col gap-2 my-4",onSubmit:g=>{g.preventDefault();const m=new FormData(g.target),x=Object.fromEntries(m.entries()),v=n_.safeParse(x);if(!v.success){console.error(v.error);return}a?.({address:v.data})},children:[y.jsx("p",{className:"text-base font-bold text-foreground",children:"Adres"}),y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx(mi,{placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",defaultValue:s.address?.postcode,classNames:p}),y.jsx(mi,{placeholder:"1",radius:"sm",type:"text",name:"number",defaultValue:s.address?.number,classNames:p}),y.jsx(mi,{placeholder:"A",radius:"sm",type:"text",name:"numberAddon",defaultValue:s.address?.numberAddon,classNames:p})]}),y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx(mi,{placeholder:"Kalverstraat",radius:"sm",type:"text",name:"street",defaultValue:s.address?.street,classNames:p}),y.jsx(mi,{placeholder:"Amsterdam",radius:"sm",type:"text",name:"city",defaultValue:s.address?.city,classNames:p}),y.jsx(ti,{color:"primary",type:"submit",children:"Bekijk"})]})]})]}),y.jsx(Ac,{filters:t,activeFilters:l,onFilterChange:u,classNames:{...i?.filters,base:j("hidden lg:block",i?.filters?.base)}})]}),y.jsxs("div",{className:j("col-span-1 lg:col-span-3 space-y-4",i?.resultsGrid),children:[y.jsxs("div",{className:"flex flex-row-reverse justify-between items-center gap-2",children:[y.jsx(o_,{handleFilterChange:u,selectedValue:l.find(g=>g.id==="sorteren")?.value??h[0].value,classNames:i?.sortSelect,options:h}),y.jsx(ob,{filters:t,activeFilters:l,onFilterChange:u,classNames:{modal:i?.modal,filters:i?.filters,button:j("lg:hidden",i?.filterButton)}}),y.jsx(Um,{activeFilters:l,filterOptions:t,onFilterRemove:d,classNames:{container:"hidden lg:flex",...i?.activeFilterChips}})]}),y.jsx(nM,{productCategory:e,filterOptions:t,activeFilters:l,limit:n,propositionCardLayout:o,profile:s,classNames:i})]})]})}var iM=SS;const Oa=Object.freeze(Object.defineProperty({__proto__:null,default:iM},Symbol.toStringTag,{value:"Module"}));$t.ActiveFilterChips=Um,$t.ElementsRoot=Rx,$t.FilterChip=Wm,$t.FilterModal=ob,$t.Filters=Ac,$t.ProductResults=oM,$t.PropositionCard=hi,$t.RadioFilter=bb,$t.RangeFilter=kb,$t.SelectFilter=jb,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})});
450
+ */var Vy;function XI(){return Vy||(Vy=1,process.env.NODE_ENV!=="production"&&function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!d){var x=m();i(g,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:g,getSnapshot:m}});var v=x[0].inst,$=x[1];return l(function(){v.value=g,v.getSnapshot=m,r(v)&&$({inst:v})},[h,g,m]),a(function(){return r(v)&&$({inst:v}),h(function(){r(v)&&$({inst:v})})},[h]),c(g),g}function r(h){var m=h.getSnapshot;h=h.value;try{var g=m();return!i(h,g)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=f,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Hc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Hc}var jy;function JI(){return jy||(jy=1,process.env.NODE_ENV==="production"?wa.exports=YI():wa.exports=XI()),wa.exports}var QI=JI();const zy=0,By=1,Ry=2,Ky=3;var Wy=Object.prototype.hasOwnProperty;function Gc(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Gc(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Wy.call(e,r)&&++n&&!Wy.call(t,r)||!(r in t)||!Gc(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const _r=new WeakMap,Yr=()=>{},kt=Yr(),Zc=Object,Ne=e=>e===kt,yr=e=>typeof e=="function",Xr=(e,t)=>({...e,...t}),Uy=e=>yr(e.then),qc={},$a={},Yc="undefined",vi=typeof window!=Yc,Xc=typeof document!=Yc,e8=vi&&"Deno"in window,t8=()=>vi&&typeof window.requestAnimationFrame!=Yc,Hy=(e,t)=>{const r=_r.get(e);return[()=>!Ne(t)&&e.get(t)||qc,n=>{if(!Ne(t)){const o=e.get(t);t in $a||($a[t]=o),r[5](t,Xr(o,n),o||qc)}},r[6],()=>!Ne(t)&&t in $a?$a[t]:!Ne(t)&&e.get(t)||qc]};let Jc=!0;const r8=()=>Jc,[Qc,ed]=vi&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Yr,Yr],n8=()=>{const e=Xc&&document.visibilityState;return Ne(e)||e!=="hidden"},o8=e=>(Xc&&document.addEventListener("visibilitychange",e),Qc("focus",e),()=>{Xc&&document.removeEventListener("visibilitychange",e),ed("focus",e)}),i8=e=>{const t=()=>{Jc=!0,e()},r=()=>{Jc=!1};return Qc("online",t),Qc("offline",r),()=>{ed("online",t),ed("offline",r)}},s8={isOnline:r8,isVisible:n8},a8={initFocus:o8,initReconnect:i8},Gy=!f.useId,bi=!vi||e8,l8=e=>t8()?window.requestAnimationFrame(e):setTimeout(e,1),td=bi?f.useEffect:f.useLayoutEffect,rd=typeof navigator<"u"&&navigator.connection,Zy=!bi&&rd&&(["slow-2g","2g"].includes(rd.effectiveType)||rd.saveData),Ea=new WeakMap,u8=e=>Zc.prototype.toString.call(e),nd=(e,t)=>e===`[object ${t}]`;let c8=0;const od=e=>{const t=typeof e,r=u8(e),n=nd(r,"Date"),o=nd(r,"RegExp"),i=nd(r,"Object");let s,a;if(Zc(e)===e&&!n&&!o){if(s=Ea.get(e),s)return s;if(s=++c8+"~",Ea.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=od(e[a])+",";Ea.set(e,s)}if(i){s="#";const l=Zc.keys(e).sort();for(;!Ne(a=l.pop());)Ne(e[a])||(s+=a+":"+od(e[a])+",");Ea.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},id=e=>{if(yr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?od(e):"",[e,t]};let d8=0;const sd=()=>++d8;async function qy(...e){const[t,r,n,o]=e,i=Xr({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=p=>typeof a=="function"?a(p):a!==!1,u=i.throwOnError;if(yr(r)){const p=r,h=[],m=t.keys();for(const g of m)!/^\$(inf|sub)\$/.test(g)&&p(t.get(g)._k)&&h.push(g);return Promise.all(h.map(d))}return d(r);async function d(p){const[h]=id(p);if(!h)return;const[m,g]=Hy(t,h),[x,v,$,C]=_r.get(t),S=()=>{const I=x[h];return(yr(i.revalidate)?i.revalidate(m().data,p):i.revalidate!==!1)&&(delete $[h],delete C[h],I&&I[0])?I[0](Ry).then(()=>m().data):m().data};if(e.length<3)return S();let T=n,k,D=!1;const E=sd();v[h]=[E,0];const V=!Ne(l),F=m(),y=F.data,M=F._c,A=Ne(M)?y:M;if(V&&(l=yr(l)?l(A,y):l,g({data:l,_c:A})),yr(T))try{T=T(A)}catch(I){k=I,D=!0}if(T&&Uy(T))if(T=await T.catch(I=>{k=I,D=!0}),E!==v[h][0]){if(D)throw k;return T}else D&&V&&c(k)&&(s=!0,g({data:A,_c:kt}));if(s&&!D)if(yr(s)){const I=s(T,A);g({data:I,error:kt,_c:kt})}else g({data:T,error:kt,_c:kt});if(v[h][1]=sd(),Promise.resolve(S()).then(()=>{g({_c:kt})}),D){if(u)throw k;return}return T}}const Yy=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},f8=(e,t)=>{if(!_r.has(e)){const r=Xr(a8,t),n=Object.create(null),o=qy.bind(kt,e);let i=Yr;const s=Object.create(null),a=(u,d)=>{const p=s[u]||[];return s[u]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(u,d,p)=>{e.set(u,d);const h=s[u];if(h)for(const m of h)m(d,p)},c=()=>{if(!_r.has(e)&&(_r.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!bi)){const u=r.initFocus(setTimeout.bind(kt,Yy.bind(kt,n,zy))),d=r.initReconnect(setTimeout.bind(kt,Yy.bind(kt,n,By)));i=()=>{u&&u(),d&&d(),_r.delete(e)}}};return c(),[e,o,c,i]}return[e,_r.get(e)[4]]},p8=(e,t,r,n,o)=>{const i=r.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!Ne(i)&&s>i||setTimeout(n,a,o)},h8=Gc,[Xy,m8]=f8(new Map),g8=Xr({onLoadingSlow:Yr,onSuccess:Yr,onError:Yr,onErrorRetry:p8,onDiscarded:Yr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Zy?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Zy?5e3:3e3,compare:h8,isPaused:()=>!1,cache:Xy,mutate:m8,fallback:{}},s8),v8=(e,t)=>{const r=Xr(e,t);if(t){const{use:n,fallback:o}=e,{use:i,fallback:s}=t;n&&i&&(r.use=n.concat(i)),o&&s&&(r.fallback=Xr(o,s))}return r},b8=f.createContext({}),y8="$inf$",Jy=vi&&window.__SWR_DEVTOOLS_USE__,x8=Jy?window.__SWR_DEVTOOLS_USE__:[],w8=()=>{Jy&&(window.__SWR_DEVTOOLS_REACT__=f)},Qy=e=>yr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],$8=()=>{const e=f.useContext(b8);return f.useMemo(()=>Xr(g8,e),[e])},E8=e=>(t,r,n)=>e(t,r&&((...i)=>{const[s]=id(t),[,,,a]=_r.get(Xy);if(s.startsWith(y8))return r(...i);const l=a[s];return Ne(l)?r(...i):(delete a[s],l)}),n),P8=x8.concat(E8),C8=e=>function(...r){const n=$8(),[o,i,s]=Qy(r),a=v8(n,s);let l=e;const{use:c}=a,u=(c||[]).concat(P8);for(let d=u.length;d--;)l=u[d](l);return l(o,i||a.fetcher||null,a)},S8=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},T8=(e,t)=>(...r)=>{const[n,o,i]=Qy(r),s=(i.use||[]).concat(t);return e(n,o,{...i,use:s})};w8();const ad=f.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),ld={dedupe:!0},e1=Promise.resolve(kt),k8=C8((e,t,r)=>{const{cache:n,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=r,[h,m,g,x]=_r.get(n),[v,$]=id(e),C=f.useRef(!1),S=f.useRef(!1),T=f.useRef(v),k=f.useRef(t),D=f.useRef(r),E=()=>D.current,V=()=>E().isVisible()&&E().isOnline(),[F,y,M,A]=Hy(n,v),I=f.useRef({}).current,N=Ne(s)?Ne(r.fallback)?kt:r.fallback[v]:s,w=(X,le)=>{for(const ae in I){const oe=ae;if(oe==="data"){if(!o(X[oe],le[oe])&&(!Ne(X[oe])||!o(ee,le[oe])))return!1}else if(le[oe]!==X[oe])return!1}return!0},P=f.useMemo(()=>{const X=!v||!t?!1:Ne(a)?E().isPaused()||i?!1:l!==!1:a,le=te=>{const je=Xr(te);return delete je._k,X?{isValidating:!0,isLoading:!0,...je}:je},ae=F(),oe=A(),be=le(ae),Me=ae===oe?be:le(oe);let ye=be;return[()=>{const te=le(F());return w(te,ye)?(ye.data=te.data,ye.isLoading=te.isLoading,ye.isValidating=te.isValidating,ye.error=te.error,ye):(ye=te,te)},()=>Me]},[n,v]),_=QI.useSyncExternalStore(f.useCallback(X=>M(v,(le,ae)=>{w(ae,le)||X()}),[n,v]),P[0],P[1]),B=!C.current,L=h[v]&&h[v].length>0,K=_.data,z=Ne(K)?N&&Uy(N)?ad(N):N:K,W=_.error,U=f.useRef(z),ee=p?Ne(K)?Ne(U.current)?z:U.current:K:z,G=L&&!Ne(W)?!1:B&&!Ne(a)?a:E().isPaused()?!1:i?Ne(z)?!1:l:Ne(z)||l,R=!!(v&&t&&B&&G),me=Ne(_.isValidating)?R:_.isValidating,ue=Ne(_.isLoading)?R:_.isLoading,Q=f.useCallback(async X=>{const le=k.current;if(!v||!le||S.current||E().isPaused())return!1;let ae,oe,be=!0;const Me=X||{},ye=!g[v]||!Me.dedupe,te=()=>Gy?!S.current&&v===T.current&&C.current:v===T.current,je={isValidating:!1,isLoading:!1},xe=()=>{y(je)},We=()=>{const Te=g[v];Te&&Te[1]===oe&&delete g[v]},lt={isValidating:!0};Ne(F().data)&&(lt.isLoading=!0);try{if(ye&&(y(lt),r.loadingTimeout&&Ne(F().data)&&setTimeout(()=>{be&&te()&&E().onLoadingSlow(v,r)},r.loadingTimeout),g[v]=[le($),sd()]),[ae,oe]=g[v],ae=await ae,ye&&setTimeout(We,r.dedupingInterval),!g[v]||g[v][1]!==oe)return ye&&te()&&E().onDiscarded(v),!1;je.error=kt;const Te=m[v];if(!Ne(Te)&&(oe<=Te[0]||oe<=Te[1]||Te[1]===0))return xe(),ye&&te()&&E().onDiscarded(v),!1;const Ge=F().data;je.data=o(Ge,ae)?Ge:ae,ye&&te()&&E().onSuccess(ae,v,r)}catch(Te){We();const Ge=E(),{shouldRetryOnError:pt}=Ge;Ge.isPaused()||(je.error=Te,ye&&te()&&(Ge.onError(Te,v,Ge),(pt===!0||yr(pt)&&pt(Te))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||V())&&Ge.onErrorRetry(Te,v,Ge,Ft=>{const Oe=h[v];Oe&&Oe[0]&&Oe[0](Ky,Ft)},{retryCount:(Me.retryCount||0)+1,dedupe:!0})))}return be=!1,xe(),!0},[v,n]),se=f.useCallback((...X)=>qy(n,T.current,...X),[]);if(td(()=>{k.current=t,D.current=r,Ne(K)||(U.current=K)}),td(()=>{if(!v)return;const X=Q.bind(kt,ld);let le=0;E().revalidateOnFocus&&(le=Date.now()+E().focusThrottleInterval);const oe=S8(v,h,(be,Me={})=>{if(be==zy){const ye=Date.now();E().revalidateOnFocus&&ye>le&&V()&&(le=ye+E().focusThrottleInterval,X())}else if(be==By)E().revalidateOnReconnect&&V()&&X();else{if(be==Ry)return Q();if(be==Ky)return Q(Me)}});return S.current=!1,T.current=v,C.current=!0,y({_k:$}),G&&(g[v]||(Ne(z)||bi?X():l8(X))),()=>{S.current=!0,oe()}},[v]),td(()=>{let X;function le(){const oe=yr(c)?c(F().data):c;oe&&X!==-1&&(X=setTimeout(ae,oe))}function ae(){!F().error&&(u||E().isVisible())&&(d||E().isOnline())?Q(ld).then(le):le()}return le(),()=>{X&&(clearTimeout(X),X=-1)}},[c,u,d,v]),f.useDebugValue(ee),i){const X=v&&Ne(z);if(!Gy&&bi&&X)throw new Error("Fallback data is required when using Suspense in SSR.");X&&(k.current=t,D.current=r,S.current=!1);const le=x[v],ae=!Ne(le)&&X?se(le):e1;if(ad(ae),!Ne(W)&&X)throw W;const oe=X?Q(ld):e1;!Ne(ee)&&X&&(oe.status="fulfilled",oe.value=!0),ad(oe)}return{mutate:se,get data(){return I.data=!0,ee},get error(){return I.error=!0,W},get isValidating(){return I.isValidating=!0,me},get isLoading(){return I.isLoading=!0,ue}}}),Pa=T8(k8,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));let t1;function I8(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return t1=new mT(t,{headers:e}),t1}function _8(e,t={}){return I8().request(e,t)}function Ca([e,t]){return _8(e,t)}function Sa(e){return(t,r,n)=>{const o=f.useRef(void 0),i=e(t,r,n);f.useEffect(()=>{i.data!==void 0&&(o.current=i.data)},[i.data]);const s=f.useCallback(()=>{o.current=void 0},[]),a=i.data===void 0?o.current:i.data,l=i.data===void 0&&o.current!==void 0;return Object.assign({},i,{data:a,isSticky:l,resetSticky:s})}}function M8({query:e,modificationBlocks:t,address:r}){return Pa([bT,{query:e,modificationBlocks:t,...r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:{}}],{use:[Sa],fetcher:Ca})}function D8({query:e,modificationBlocks:t}){return Pa([yT,{query:e,modificationBlocks:t}],{use:[Sa],fetcher:Ca})}function A8({query:e,modificationBlocks:t}){return Pa([xT,{query:e,modificationBlocks:t}],{use:[Sa],fetcher:Ca})}function N8({query:e,modificationBlocks:t}){return Pa([wT,{query:e,modificationBlocks:t}],{use:[Sa],fetcher:Ca})}function Ta({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o}){const i=qI(n,o),s=CT({filterOptions:e,filterValues:t,limit:r,currentProvider:i});switch(n){case"sim-only-proposition":{const a=vo(t,"provider");return s.groupBy(Array.isArray(a)&&a.length===1?"data_and_speed":"provider"),D8({query:s.serialize(),modificationBlocks:xa(n,o)})}case"fixed-proposition":return s.groupBy("provider_data_speed_down"),M8({query:s.serialize(),modificationBlocks:xa(n,o),address:o.address});case"smartphone-proposition":{const a=vo(t,"sorteren");return s.groupBy(a==="relevantie"?"product_provider_slug":"product_slug"),A8({query:s.serialize(),modificationBlocks:xa(n,o)})}case"phone-and-subscription":{const a=vo(t,"sorteren"),l=vo(t,"provider");return s.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":a==="top"?"product_provider_slug":"product_slug"),N8({query:s.serialize(),modificationBlocks:xa(n,o)})}default:return{data:void 0,isValidating:!1,mutate:async()=>{}}}}function O8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,onFilterRemove:s,classNames:a}){const{data:l,isValidating:c,mutate:u}=Ta({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),d=l?.search.records||[],{polling:p,validating:h}=l&&"fetchInfo"in l?l.fetchInfo:{polling:!1,validating:!1};return f.useEffect(()=>{if(!p)return;const m=setInterval(()=>u(),1e3);return()=>clearInterval(m)},[p]),jI(()=>{i.address&&u()},[i.address?.postcode,i.address?.number,i.address?.numberAddon]),!p&&!c&&d.length===0?b.jsx(ya,{filterOptions:t,activeFilters:r,onFilterRemove:s,classNames:a?.resultsNotFound}):b.jsxs("div",{children:[p&&i.address&&b.jsx(HI,{address:i.address,classNames:a?.postcodeCheckLoading}),b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",(c||h)&&!p&&"opacity-50 pointer-events-none",a?.resultsGrid),children:d.map(m=>b.jsx(ci,{disabled:i.currentFixedProviderScope?.includes(m.provider.slug),horizontal:o==="horizontal",monthlyFee:Gt(m.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:ma(m.monthlyFees,m.baseMonthlyFee,m.lifetimeMonthlyFee),tcoPerMonth:Gt(m.tcoPerMonth,{dashed:!0}),propositionTitle:`${m.content.dataSpeedDown/1e3} Mb/s`,propositionSubtitle:m.tags.find(g=>g.type==="internet")?.label??"",propositionImageUrl:m.provider.imageUrl,propositionImageAlt:m.provider.name,propositionSpecifications:va(m),urgentText:ba(m.specialPromotions),specialPromotions:m.specialPromotions.map(g=>g.publicTitle),modificationPromotions:m.modificationPromotions,href:`https://www.mobiel.nl/aanbieding/${m.key}`,classNames:a?.propositionCard},m.key))})]})}function L8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,onFilterRemove:s,classNames:a}){const{data:l,isValidating:c}=Ta({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(ya,{filterOptions:t,activeFilters:r,onFilterRemove:s,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(ci,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:ma(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),propositionTitle:ga(d.content.data,"GB"),propositionSubtitle:Wc(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:va(d),urgentText:ba(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.deliveryPromise,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function F8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,onFilterRemove:s,classNames:a}){const{data:l,isValidating:c}=Ta({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(ya,{filterOptions:t,activeFilters:r,onFilterRemove:s,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(ci,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:ma(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),deviceDiscount:Ay(d),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),productPrice:Gt(d.price,{dashed:!0}),productImageAlt:d.productVersion?.media.main?.altText||void 0,productImageUrl:d.productVersion?.media.main?.url||void 0,productReviewCount:d.productVersion?.product.reviews.numberOfReviews,productReviewScore:d.productVersion?.product.reviews.starsAverage,productSpecifications:BI(d.productVersion?.specifications||[]),productStockStatus:d.productVersion?.stock.status,productSubtitle:d.productVersion?.product.brand.name,productTitle:d.productVersion?.product.name,propositionTitle:ga(d.content.data,"GB"),propositionSubtitle:Wc(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:va(d),urgentText:ba(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.productVersion?.stock.status==="in_stock"?d.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function V8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,onFilterRemove:s,classNames:a}){const{data:l,isValidating:c}=Ta({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(ya,{filterOptions:t,activeFilters:r,onFilterRemove:s,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(ci,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:ma(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),deviceDiscount:Ay(d),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),productPrice:Gt(d.price,{dashed:!0}),propositionTitle:ga(d.content.data,"GB"),propositionSubtitle:Wc(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:va(d),urgentText:ba(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.productVersion?.stock.status==="in_stock"?d.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function j8({...e}){switch(e.productCategory){case"fixed-proposition":return b.jsx(O8,{...e});case"smartphone-proposition":return b.jsx(F8,{...e});case"phone-and-subscription":return b.jsx(V8,{...e});case"sim-only-proposition":return b.jsx(L8,{...e});default:return null}}function z8({productCategory:e,filterOptions:t=[],initialSelectedFilters:r=[],limit:n=12,propositionCardLayout:o="horizontal",classNames:i,profile:s={},onProfileChange:a}){const[l,c]=f.useState(r),u=f.useCallback(m=>{c(g=>{const x=g.filter($=>$.id!==m.id);let v=!1;return Array.isArray(m.value)?v=m.value.length>0:v=m.value!==""&&m.value!==void 0&&m.value!==null,v&&x.push(m),x})},[]),d=f.useCallback(m=>{c(g=>g.filter(x=>x.id!==m.id))},[]),p=f.useMemo(()=>[{value:e==="smartphone-proposition"?"relevantie":"top",label:"Relevantie"},{value:"meest-voordelig",label:"Prijs laag-hoog"},{value:"best-verkocht",label:"Best verkocht"}],[e]),h={inputWrapper:"bg-white border border-default-200",input:"placeholder:text-default-300"};return b.jsxs("div",{className:j("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",i?.base),children:[b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e==="phone-and-subscription"&&b.jsx(na,{label:"Telefoon",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[l.find(m=>m.id==="product_slug")?.value??""],radius:"sm",onChange:m=>u({id:"product_slug",value:m.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:b.jsx(Pt,{children:"Apple iPhone 17"},"iphone-17")}),b.jsx("p",{className:"text-base font-bold text-foreground",children:"Profiel"}),b.jsxs(na,{label:"Huidige mobiele provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentProviderSlug||""],radius:"sm",onChange:m=>a?.({currentProviderSlug:m.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[b.jsx(Pt,{children:"Geen"},""),b.jsx(Pt,{children:"Odido"},"odido"),b.jsx(Pt,{children:"KPN"},"kpn"),b.jsx(Pt,{children:"Hollandsnieuwe"},"hollandsnieuwe"),b.jsx(Pt,{children:"Lebara"},"lebara"),b.jsx(Pt,{children:"Ben"},"ben"),b.jsx(Pt,{children:"Vodafone"},"vodafone")]}),b.jsxs(na,{label:"Huidige thuis internet provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentFixedProviderScope||"other"],radius:"sm",onChange:m=>a?.({currentFixedProviderScope:m.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[b.jsx(Pt,{children:"Geen i.v.m. verhuizing"},"other/moving"),b.jsx(Pt,{children:"KPN Internet"},"fixed/kpn/internet"),b.jsx(Pt,{children:"Ziggo Internet"},"fixed/ziggo/internet"),b.jsx(Pt,{children:"Odido Internet"},"fixed/odido/thuis"),b.jsx(Pt,{children:"Budget Internet"},"fixed/budget-internet"),b.jsx(Pt,{children:"Youfone Internet"},"fixed/youfone/internet"),b.jsx(Pt,{children:"Delta Internet"},"fixed/delta"),b.jsx(Pt,{children:"Andere / geen provider"},"other")]}),e==="fixed-proposition"&&b.jsxs("form",{className:"flex flex-col gap-2 my-4",onSubmit:m=>{m.preventDefault();const g=new FormData(m.target),x=Object.fromEntries(g.entries()),v=FI.safeParse(x);if(!v.success){console.error(v.error);return}a?.({address:v.data})},children:[b.jsx("p",{className:"text-base font-bold text-foreground",children:"Adres"}),b.jsxs("div",{className:"flex flex-row gap-2",children:[b.jsx(di,{placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",defaultValue:s.address?.postcode,classNames:h}),b.jsx(di,{placeholder:"1",radius:"sm",type:"text",name:"number",defaultValue:s.address?.number,classNames:h}),b.jsx(di,{placeholder:"A",radius:"sm",type:"text",name:"numberAddon",defaultValue:s.address?.numberAddon,classNames:h})]}),b.jsxs("div",{className:"flex flex-row gap-2",children:[b.jsx(di,{placeholder:"Kalverstraat",radius:"sm",type:"text",name:"street",defaultValue:s.address?.street,classNames:h}),b.jsx(di,{placeholder:"Amsterdam",radius:"sm",type:"text",name:"city",defaultValue:s.address?.city,classNames:h}),b.jsx(ti,{color:"primary",type:"submit",children:"Bekijk"})]})]})]}),b.jsx(Ec,{filterOptions:t,activeFilters:l,onFilterChange:u,classNames:{...i?.filters,base:j("hidden lg:block",i?.filters?.base)}})]}),b.jsxs("div",{className:j("col-span-1 lg:col-span-3 space-y-4",i?.resultsGrid),children:[b.jsxs("div",{className:"flex flex-row-reverse justify-between items-center gap-2",children:[b.jsx(VI,{handleFilterChange:u,selectedValue:l.find(m=>m.id==="sorteren")?.value??p[0].value,classNames:i?.sortSelect,options:p}),b.jsx(Fv,{filterOptions:t,activeFilters:l,onFilterChange:u,classNames:{modal:i?.modal,filters:i?.filters,button:j("lg:hidden",i?.filterButton)}}),b.jsx(Qu,{filterOptions:t,activeFilters:l,onFilterRemove:d,classNames:{container:"hidden lg:flex",...i?.activeFilterChips}})]}),b.jsx(j8,{productCategory:e,filterOptions:t,activeFilters:l,onFilterRemove:d,limit:n,propositionCardLayout:o,profile:s,classNames:i})]})]})}var B8=wP;const yi=Object.freeze(Object.defineProperty({__proto__:null,default:B8},Symbol.toStringTag,{value:"Module"}));Et.ActiveFilterChips=Qu,Et.ElementsRoot=Cx,Et.FilterChip=dg,Et.FilterModal=Fv,Et.Filters=Ec,Et.ProductResults=z8,Et.PropositionCard=ci,Et.RadioFilter=sb,Et.RangeFilter=ab,Et.SelectFilter=bb,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})});