@mobielnl/elements 0.0.3 → 0.1.1

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(ot,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],h):(ot=typeof globalThis<"u"?globalThis:ot||self,h(ot.Elements={},ot.React,ot.ReactDOM))})(this,function(ot,h,Xo){"use strict";"use client";var process=typeof globalThis<"u"&&globalThis.process?globalThis.process:{env:{NODE_ENV:"production"}};function Wp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Kt=Wp(h);var Ir={exports:{}},Zn={};/**
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={};/**
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 Ra;function qp(){if(Ra)return Zn;Ra=1;var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,u){var c,d={},m=null,g=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:a,key:m,ref:g,props:d,_owner:o.current}}return Zn.Fragment=n,Zn.jsx=s,Zn.jsxs=s,Zn}var Qn={};/**
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={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,50 +14,44 @@
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 Ba;function Yp(){return Ba||(Ba=1,process.env.NODE_ENV!=="production"&&function(){var e=h,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,v="@@iterator";function x(T){if(T===null||typeof T!="object")return null;var R=y&&T[y]||T[v];return typeof R=="function"?R:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(T){{for(var R=arguments.length,G=new Array(R>1?R-1:0),re=1;re<R;re++)G[re-1]=arguments[re];A("error",T,G)}}function A(T,R,G){{var re=b.ReactDebugCurrentFrame,ve=re.getStackAddendum();ve!==""&&(R+="%s",G=G.concat([ve]));var Te=G.map(function(fe){return String(fe)});Te.unshift("Warning: "+R),Function.prototype.apply.call(console[T],console,Te)}}var M=!1,I=!1,O=!1,L=!1,S=!1,V;V=Symbol.for("react.module.reference");function j(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===i||S||T===o||T===u||T===c||L||T===g||M||I||O||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===d||T.$$typeof===s||T.$$typeof===a||T.$$typeof===l||T.$$typeof===V||T.getModuleId!==void 0))}function f(T,R,G){var re=T.displayName;if(re)return re;var ve=R.displayName||R.name||"";return ve!==""?G+"("+ve+")":G}function k(T){return T.displayName||"Context"}function D(T){if(T==null)return null;if(typeof T.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case a:var R=T;return k(R)+".Consumer";case s:var G=T;return k(G._context)+".Provider";case l:return f(T,T.render,"ForwardRef");case d:var re=T.displayName||null;return re!==null?re:D(T.type)||"Memo";case m:{var ve=T,Te=ve._payload,fe=ve._init;try{return D(fe(Te))}catch{return null}}}return null}var w=Object.assign,N=0,p,C,E,B,H,X,_;function z(){}z.__reactDisabledLog=!0;function K(){{if(N===0){p=console.log,C=console.info,E=console.warn,B=console.error,H=console.group,X=console.groupCollapsed,_=console.groupEnd;var T={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}N++}}function se(){{if(N--,N===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},T,{value:p}),info:w({},T,{value:C}),warn:w({},T,{value:E}),error:w({},T,{value:B}),group:w({},T,{value:H}),groupCollapsed:w({},T,{value:X}),groupEnd:w({},T,{value:_})})}N<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=b.ReactCurrentDispatcher,oe;function xe(T,R,G){{if(oe===void 0)try{throw Error()}catch(ve){var re=ve.stack.trim().match(/\n( *(at )?)/);oe=re&&re[1]||""}return`
18
- `+oe+T}}var ye=!1,J;{var Se=typeof WeakMap=="function"?WeakMap:Map;J=new Se}function Ee(T,R){if(!T||ye)return"";{var G=J.get(T);if(G!==void 0)return G}var re;ye=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Te;Te=ee.current,ee.current=null,K();try{if(R){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(rt){re=rt}Reflect.construct(T,[],fe)}else{try{fe.call()}catch(rt){re=rt}T.call(fe.prototype)}}else{try{throw Error()}catch(rt){re=rt}T()}}catch(rt){if(rt&&re&&typeof rt.stack=="string"){for(var de=rt.stack.split(`
19
- `),et=re.stack.split(`
20
- `),Ve=de.length-1,je=et.length-1;Ve>=1&&je>=0&&de[Ve]!==et[je];)je--;for(;Ve>=1&&je>=0;Ve--,je--)if(de[Ve]!==et[je]){if(Ve!==1||je!==1)do if(Ve--,je--,je<0||de[Ve]!==et[je]){var ft=`
21
- `+de[Ve].replace(" at new "," at ");return T.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",T.displayName)),typeof T=="function"&&J.set(T,ft),ft}while(Ve>=1&&je>=0);break}}}finally{ye=!1,ee.current=Te,se(),Error.prepareStackTrace=ve}var Jn=T?T.displayName||T.name:"",dn=Jn?xe(Jn):"";return typeof T=="function"&&J.set(T,dn),dn}function Z(T,R,G){return Ee(T,!1)}function ce(T){var R=T.prototype;return!!(R&&R.isReactComponent)}function ge(T,R,G){if(T==null)return"";if(typeof T=="function")return Ee(T,ce(T));if(typeof T=="string")return xe(T);switch(T){case u:return xe("Suspense");case c:return xe("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case l:return Z(T.render);case d:return ge(T.type,R,G);case m:{var re=T,ve=re._payload,Te=re._init;try{return ge(Te(ve),R,G)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,$e={},Ae=b.ReactDebugCurrentFrame;function ue(T){if(T){var R=T._owner,G=ge(T.type,T._source,R?R.type:null);Ae.setExtraStackFrame(G)}else Ae.setExtraStackFrame(null)}function ke(T,R,G,re,ve){{var Te=Function.call.bind(ie);for(var fe in T)if(Te(T,fe)){var de=void 0;try{if(typeof T[fe]!="function"){var et=Error((re||"React class")+": "+G+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}de=T[fe](R,fe,re,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ve){de=Ve}de&&!(de instanceof Error)&&(ue(ve),$("%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).",re||"React class",G,fe,typeof de),ue(null)),de instanceof Error&&!(de.message in $e)&&($e[de.message]=!0,ue(ve),$("Failed %s type: %s",G,de.message),ue(null))}}}var Le=Array.isArray;function be(T){return Le(T)}function qe(T){{var R=typeof Symbol=="function"&&Symbol.toStringTag,G=R&&T[Symbol.toStringTag]||T.constructor.name||"Object";return G}}function nt(T){try{return we(T),!1}catch{return!0}}function we(T){return""+T}function Ge(T){if(nt(T))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(T)),we(T)}var Et=b.ReactCurrentOwner,un={key:!0,ref:!0,__self:!0,__source:!0},Ot,Sr;function Go(T){if(ie.call(T,"ref")){var R=Object.getOwnPropertyDescriptor(T,"ref").get;if(R&&R.isReactWarning)return!1}return T.ref!==void 0}function Wo(T){if(ie.call(T,"key")){var R=Object.getOwnPropertyDescriptor(T,"key").get;if(R&&R.isReactWarning)return!1}return T.key!==void 0}function qo(T,R){typeof T.ref=="string"&&Et.current}function dt(T,R){{var G=function(){Ot||(Ot=!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)",R))};G.isReactWarning=!0,Object.defineProperty(T,"key",{get:G,configurable:!0})}}function jp(T,R){{var G=function(){Sr||(Sr=!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)",R))};G.isReactWarning=!0,Object.defineProperty(T,"ref",{get:G,configurable:!0})}}var Rp=function(T,R,G,re,ve,Te,fe){var de={$$typeof:t,type:T,key:R,ref:G,props:fe,_owner:Te};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function Bp(T,R,G,re,ve){{var Te,fe={},de=null,et=null;G!==void 0&&(Ge(G),de=""+G),Wo(R)&&(Ge(R.key),de=""+R.key),Go(R)&&(et=R.ref,qo(R,ve));for(Te in R)ie.call(R,Te)&&!un.hasOwnProperty(Te)&&(fe[Te]=R[Te]);if(T&&T.defaultProps){var Ve=T.defaultProps;for(Te in Ve)fe[Te]===void 0&&(fe[Te]=Ve[Te])}if(de||et){var je=typeof T=="function"?T.displayName||T.name||"Unknown":T;de&&dt(fe,je),et&&jp(fe,je)}return Rp(T,de,et,ve,re,Et.current,fe)}}var Yo=b.ReactCurrentOwner,me=b.ReactDebugCurrentFrame;function Oe(T){if(T){var R=T._owner,G=ge(T.type,T._source,R?R.type:null);me.setExtraStackFrame(G)}else me.setExtraStackFrame(null)}var Mt;Mt=!1;function Xn(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function kr(){{if(Yo.current){var T=D(Yo.current.type);if(T)return`
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`
22
22
 
23
- Check the render method of \``+T+"`."}return""}}function gT(T){return""}var zp={};function bT(T){{var R=kr();if(!R){var G=typeof T=="string"?T:T.displayName||T.name;G&&(R=`
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=`
24
24
 
25
- Check the top-level render call using <`+G+">.")}return R}}function Up(T,R){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var G=bT(R);if(zp[G])return;zp[G]=!0;var re="";T&&T._owner&&T._owner!==Yo.current&&(re=" It was passed a child from "+D(T._owner.type)+"."),Oe(T),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,re),Oe(null)}}function Kp(T,R){{if(typeof T!="object")return;if(be(T))for(var G=0;G<T.length;G++){var re=T[G];Xn(re)&&Up(re,R)}else if(Xn(T))T._store&&(T._store.validated=!0);else if(T){var ve=x(T);if(typeof ve=="function"&&ve!==T.entries)for(var Te=ve.call(T),fe;!(fe=Te.next()).done;)Xn(fe.value)&&Up(fe.value,R)}}}function vT(T){{var R=T.type;if(R==null||typeof R=="string")return;var G;if(typeof R=="function")G=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===d))G=R.propTypes;else return;if(G){var re=D(R);ke(G,T.props,"prop",re,T)}else if(R.PropTypes!==void 0&&!Mt){Mt=!0;var ve=D(R);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yT(T){{for(var R=Object.keys(T.props),G=0;G<R.length;G++){var re=R[G];if(re!=="children"&&re!=="key"){Oe(T),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),Oe(null);break}}T.ref!==null&&(Oe(T),$("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}}var Hp={};function Gp(T,R,G,re,ve,Te){{var fe=j(T);if(!fe){var de="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(de+=" 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 et=gT();et?de+=et:de+=kr();var Ve;T===null?Ve="null":be(T)?Ve="array":T!==void 0&&T.$$typeof===t?(Ve="<"+(D(T.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof T,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,de)}var je=Bp(T,R,G,ve,Te);if(je==null)return je;if(fe){var ft=R.children;if(ft!==void 0)if(re)if(be(ft)){for(var Jn=0;Jn<ft.length;Jn++)Kp(ft[Jn],T);Object.freeze&&Object.freeze(ft)}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 Kp(ft,T)}if(ie.call(R,"key")){var dn=D(T),rt=Object.keys(R).filter(function(CT){return CT!=="key"}),ja=rt.length>0?"{key: someKey, "+rt.join(": ..., ")+": ...}":"{key: someKey}";if(!Hp[dn+ja]){var $T=rt.length>0?"{"+rt.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
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:
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} />`,ja,dn,$T,dn),Hp[dn+ja]=!0}}return T===r?yT(je):vT(je),je}}function wT(T,R,G){return Gp(T,R,G,!0)}function xT(T,R,G){return Gp(T,R,G,!1)}var ET=xT,TT=wT;Qn.Fragment=r,Qn.jsx=ET,Qn.jsxs=TT}()),Qn}var za;function Xp(){return za||(za=1,process.env.NODE_ENV==="production"?Ir.exports=qp():Ir.exports=Yp()),Ir.exports}var P=Xp(),Jp={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"},Zp={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"},Qp={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"},eh={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"},th={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"},nh={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"},rh={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"},U={solid:Jp,shadow:Zp,bordered:Qp,flat:eh,faded:th,light:nh,ghost:rh},oh={".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))"}},ih={".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"}}},sh={".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"}}},ah={".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)"}},mt="250ms",lh={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":mt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":mt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":mt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":mt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":mt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":mt},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":mt},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":mt},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":mt},".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":mt}},ch={...ih,...lh,...sh,...ah,...oh},Ar=["small","medium","large"],Jo={theme:{spacing:["divider"],radius:Ar},classGroups:{shadow:[{shadow:Ar}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Ar]}],"border-w":[{border:Ar}],"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(ch).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},Ua=e=>e===!1?"false":e===!0?"true":e===0?"0":e,tt=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},uh=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!r.includes(i)||e[i]!==t[i])return!1}return!0};function Ka(e,t){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?Ka(r,t):t.push(r)}}var Ha=(...e)=>{let t=[];Ka(e,t);let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},Ga=(e,t)=>{let n={};for(let r in e){let o=e[r];if(r in t){let i=t[r];Array.isArray(o)||Array.isArray(i)?n[r]=Ha(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?n[r]=Ga(o,i):n[r]=i+" "+o}else n[r]=o}for(let r in t)r in e||(n[r]=t[r]);return n},dh=/\s+/g,Wa=e=>!e||typeof e!="string"?e:e.replace(dh," ").trim();const Zo="-",fh=e=>{const t=hh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Zo);return a[0]===""&&a.length!==1&&a.shift(),qa(a,t)||ph(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},qa=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qa(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Zo);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ya=/^\[(.+)\]$/,ph=e=>{if(Ya.test(e)){const t=Ya.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hh=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qo(n[o],r,o,t);return r},Qo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Xa(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(mh(o)){Qo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Qo(s,Xa(t,i),n,r)})})},Xa=(e,t)=>{let n=e;return t.split(Zo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},mh=e=>e.isThemeGetter,gh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},ei="!",ti=":",bh=ti.length,vh=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,u;for(let y=0;y<o.length;y++){let v=o[y];if(s===0&&a===0){if(v===ti){i.push(o.slice(l,y)),l=y+bh;continue}if(v==="/"){u=y;continue}}v==="["?s++:v==="]"?s--:v==="("?a++:v===")"&&a--}const c=i.length===0?o:o.substring(l),d=yh(c),m=d!==c,g=u&&u>l?u-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:g}};if(t){const o=t+ti,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},yh=e=>e.endsWith(ei)?e.substring(0,e.length-1):e.startsWith(ei)?e.substring(1):e,wh=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},xh=e=>({cache:gh(e.cacheSize),parseClassName:vh(e),sortModifiers:wh(e),...fh(e)}),Eh=/\s+/,Th=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Eh);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:m,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:v}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let x=!!v,b=r(x?y.substring(0,v):y);if(!b){if(!x){l=c+(l.length>0?" "+l:l);continue}if(b=r(y),!b){l=c+(l.length>0?" "+l:l);continue}x=!1}const $=i(m).join(":"),A=g?$+ei:$,M=A+b;if(s.includes(M))continue;s.push(M);const I=o(b,x);for(let O=0;O<I.length;++O){const L=I[O];s.push(A+L)}l=c+(l.length>0?" "+l:l)}return l};function $h(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ja(t))&&(r&&(r+=" "),r+=n);return r}const Ja=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ja(e[r]))&&(n&&(n+=" "),n+=t);return n};function ni(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=xh(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Th(l,n);return o(l,c),c}return function(){return i($h.apply(null,arguments))}}const Re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Za=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ch=/^\d+\/\d+$/,Ph=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sh=/\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$/,kh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ih=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ah=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=e=>Ch.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dt=e=>!!e&&Number.isInteger(Number(e)),ri=e=>e.endsWith("%")&&ae(e.slice(0,-1)),Tt=e=>Ph.test(e),Oh=()=>!0,Mh=e=>Sh.test(e)&&!kh.test(e),el=()=>!1,Dh=e=>Ih.test(e),Nh=e=>Ah.test(e),Lh=e=>!W(e)&&!q(e),Vh=e=>pn(e,il,el),W=e=>Za.test(e),Ht=e=>pn(e,sl,Mh),oi=e=>pn(e,Bh,ae),tl=e=>pn(e,rl,el),_h=e=>pn(e,ol,Nh),Or=e=>pn(e,al,Dh),q=e=>Qa.test(e),er=e=>hn(e,sl),Fh=e=>hn(e,zh),nl=e=>hn(e,rl),jh=e=>hn(e,il),Rh=e=>hn(e,ol),Mr=e=>hn(e,al,!0),pn=(e,t,n)=>{const r=Za.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},hn=(e,t,n=!1)=>{const r=Qa.exec(e);return r?r[1]?t(r[1]):n:!1},rl=e=>e==="position"||e==="percentage",ol=e=>e==="image"||e==="url",il=e=>e==="length"||e==="size"||e==="bg-size",sl=e=>e==="length",Bh=e=>e==="number",zh=e=>e==="family-name",al=e=>e==="shadow",ii=()=>{const e=Re("color"),t=Re("font"),n=Re("text"),r=Re("font-weight"),o=Re("tracking"),i=Re("leading"),s=Re("breakpoint"),a=Re("container"),l=Re("spacing"),u=Re("radius"),c=Re("shadow"),d=Re("inset-shadow"),m=Re("text-shadow"),g=Re("drop-shadow"),y=Re("blur"),v=Re("perspective"),x=Re("aspect"),b=Re("ease"),$=Re("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...M(),q,W],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],S=()=>[q,W,l],V=()=>[fn,"full","auto",...S()],j=()=>[Dt,"none","subgrid",q,W],f=()=>["auto",{span:["full",Dt,q,W]},Dt,q,W],k=()=>[Dt,"auto",q,W],D=()=>["auto","min","max","fr",q,W],w=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...S()],C=()=>[fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],E=()=>[e,q,W],B=()=>[...M(),nl,tl,{position:[q,W]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",jh,Vh,{size:[q,W]}],_=()=>[ri,er,Ht],z=()=>["","none","full",u,q,W],K=()=>["",ae,er,Ht],se=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[ae,ri,nl,tl],xe=()=>["","none",y,q,W],ye=()=>["none",ae,q,W],J=()=>["none",ae,q,W],Se=()=>[ae,q,W],Ee=()=>[fn,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tt],breakpoint:[Tt],color:[Oh],container:[Tt],"drop-shadow":[Tt],ease:["in","out","in-out"],font:[Lh],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tt],shadow:[Tt],spacing:["px",ae],text:[Tt],"text-shadow":[Tt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fn,W,q,x]}],container:["container"],columns:[{columns:[ae,W,q,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:I()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],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:[Dt,"auto",q,W]}],basis:[{basis:[fn,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,fn,"auto","initial","none",W]}],grow:[{grow:["",ae,q,W]}],shrink:[{shrink:["",ae,q,W]}],order:[{order:[Dt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:f()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:f()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...w(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...w()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[a,"screen",...C()]}],"min-w":[{"min-w":[a,"screen","none",...C()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,er,Ht]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,oi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ri,W]}],"font-family":[{font:[Fh,W,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,q,W]}],"line-clamp":[{"line-clamp":[ae,"none",q,oi]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",q,Ht]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[ae,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],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",q,W]}],"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:H()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dt,q,W],radial:["",q,W],conic:[Dt,q,W]},Rh,_h]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,q,W]}],"outline-w":[{outline:["",ae,er,Ht]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",c,Mr,Or]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,Mr,Or]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[ae,Ht]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Mr,Or]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[ae,q,W]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:xe()}],brightness:[{brightness:[ae,q,W]}],contrast:[{contrast:[ae,q,W]}],"drop-shadow":[{"drop-shadow":["","none",g,Mr,Or]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",ae,q,W]}],"hue-rotate":[{"hue-rotate":[ae,q,W]}],invert:[{invert:["",ae,q,W]}],saturate:[{saturate:[ae,q,W]}],sepia:[{sepia:["",ae,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[ae,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[ae,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,q,W]}],"backdrop-invert":[{"backdrop-invert":["",ae,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[ae,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[ae,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",q,W]}],ease:[{ease:["linear","initial",b,q,W]}],delay:[{delay:[ae,q,W]}],animate:[{animate:["none",$,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,q,W]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",q,W]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,W]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[ae,er,Ht,oi]}],stroke:[{stroke:["none",...E()]}],"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"]}},Uh=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(tr(e,"cacheSize",t),tr(e,"prefix",n),tr(e,"experimentalParseClassName",r),Dr(e.theme,i.theme),Dr(e.classGroups,i.classGroups),Dr(e.conflictingClassGroups,i.conflictingClassGroups),Dr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),tr(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Nr(e.theme,o.theme),Nr(e.classGroups,o.classGroups),Nr(e.conflictingClassGroups,o.conflictingClassGroups),Nr(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ll(e,o,"orderSensitiveModifiers"),e),tr=(e,t,n)=>{n!==void 0&&(e[t]=n)},Dr=(e,t)=>{if(t)for(const n in t)tr(e,n,t[n])},Nr=(e,t)=>{if(t)for(const n in t)ll(e,t,n)},ll=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},cl=(e,...t)=>typeof e=="function"?ni(ii,e,...t):ni(()=>Uh(ii(),e),...t),Kh=ni(ii);var Hh=e=>tt(e)?Kh:cl({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Gh={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Lr=(...e)=>{let t=[];ul(e,t);let n="";for(let r=0;r<t.length;r++)t[r]&&(n&&(n+=" "),n+=t[r]);return n||void 0};function ul(e,t){for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?ul(r,t):r&&t.push(r)}}var si=null,ai={},li=!1,Vr=(...e)=>t=>{let n=Lr(e);return!n||!t.twMerge?n:((!si||li)&&(li=!1,si=Hh(ai)),si(n)||void 0)},dl=(e,t)=>{for(let n in t)n in e?e[n]=Lr(e[n],t[n]):e[n]=t[n];return e},Wh=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...Gh,...t},u=n?.base?Lr(n.base,e?.base):e?.base,c=n?.variants&&!tt(n.variants)?Ga(o,n.variants):o,d=n?.defaultVariants&&!tt(n.defaultVariants)?{...n.defaultVariants,...a}:a;!tt(l.twMergeConfig)&&!uh(l.twMergeConfig,ai)&&(li=!0,ai=l.twMergeConfig);let m=tt(n?.slots),g=tt(r)?{}:{base:Lr(e?.base,m&&n?.base),...r},y=m?g:dl({...n?.slots},tt(g)?{base:e?.base}:g),v=tt(n?.compoundVariants)?i:Ha(n?.compoundVariants,i),x=$=>{if(tt(c)&&tt(r)&&m)return Vr(u,$?.class,$?.className)(l);if(v&&!Array.isArray(v))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof v}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let A=(k,D,w=[],N)=>{let p=w;if(typeof D=="string"){let C=Wa(D).split(" ");for(let E=0;E<C.length;E++)p.push(`${k}:${C[E]}`)}else if(Array.isArray(D))for(let C=0;C<D.length;C++)p.push(`${k}:${D[C]}`);else if(typeof D=="object"&&typeof N=="string"&&N in D){let C=D[N];if(C&&typeof C=="string"){let E=Wa(C).split(" "),B=[];for(let H=0;H<E.length;H++)B.push(`${k}:${E[H]}`);p[N]=p[N]?p[N].concat(B):B}else if(Array.isArray(C)&&C.length>0){let E=[];for(let B=0;B<C.length;B++)E.push(`${k}:${C[B]}`);p[N]=E}}return p},M=(k,D=c,w=null,N=null)=>{let p=D[k];if(!p||tt(p))return null;let C=N?.[k]??$?.[k];if(C===null)return null;let E=Ua(C),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,H=d?.[k],X=[];if(typeof E=="object"&&B)for(let[K,se]of Object.entries(E)){let ee=p[se];if(K==="initial"){H=se;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(K)||(X=A(K,ee,X,w))}let _=E!=null&&typeof E!="object"?E:Ua(H),z=p[_||"false"];return typeof X=="object"&&typeof w=="string"&&X[w]?dl(X,z):X.length>0?(X.push(z),w==="base"?X.join(" "):X):z},I=()=>{if(!c)return null;let k=Object.keys(c),D=[];for(let w=0;w<k.length;w++){let N=M(k[w],c);N&&D.push(N)}return D},O=(k,D)=>{if(!c||typeof c!="object")return null;let w=[];for(let N in c){let p=M(N,c,k,D),C=k==="base"&&typeof p=="string"?p:p&&p[k];C&&w.push(C)}return w},L={};for(let k in $){let D=$[k];D!==void 0&&(L[k]=D)}let S=(k,D)=>{let w=typeof $?.[k]=="object"?{[k]:$[k]?.initial}:{};return{...d,...L,...w,...D}},V=(k=[],D)=>{let w=[],N=k.length;for(let p=0;p<N;p++){let{class:C,className:E,...B}=k[p],H=!0,X=S(null,D);for(let _ in B){let z=B[_],K=X[_];if(Array.isArray(z)){if(!z.includes(K)){H=!1;break}}else{if((z==null||z===!1)&&(K==null||K===!1))continue;if(K!==z){H=!1;break}}}H&&(C&&w.push(C),E&&w.push(E))}return w},j=k=>{let D=V(v,k);if(!Array.isArray(D))return D;let w={},N=Vr;for(let p=0;p<D.length;p++){let C=D[p];if(typeof C=="string")w.base=N(w.base,C)(l);else if(typeof C=="object")for(let E in C)w[E]=N(w[E],C[E])(l)}return w},f=k=>{if(s.length<1)return null;let D={},w=S(null,k);for(let N=0;N<s.length;N++){let{slots:p=[],class:C,className:E,...B}=s[N];if(!tt(B)){let H=!0;for(let X in B){let _=w[X],z=B[X];if(_===void 0||(Array.isArray(z)?!z.includes(_):z!==_)){H=!1;break}}if(!H)continue}for(let H=0;H<p.length;H++){let X=p[H];D[X]||(D[X]=[]),D[X].push([C,E])}}return D};if(!tt(r)||!m){let k={};if(typeof y=="object"&&!tt(y)){let D=Vr;for(let w in y)k[w]=N=>{let p=j(N),C=f(N);return D(y[w],O(w,N),p?p[w]:void 0,C?C[w]:void 0,N?.class,N?.className)(l)}}return k}return Vr(u,I(),V(v),$?.class,$?.className)(l)},b=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return x.variantKeys=b(),x.extend=n,x.base=u,x.slots=y,x.variants=c,x.defaultVariants=d,x.compoundSlots=s,x.compoundVariants=v,x},it=(e,t)=>{var n,r,o;return Wh(e,{...t,twMerge:(n=void 0)!=null?n:!0,twMergeConfig:{theme:{...(r=void 0)==null?void 0:r.theme,...Jo.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...Jo.classGroups}}})},fl=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"}}]}),nr=["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"],qh=["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"],Yh=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],mn={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)]"]},Xh=["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"],pl=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",...nr],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:U.solid.foreground},primary:{base:"before:bg-primary",content:U.solid.primary},secondary:{base:"before:bg-secondary",content:U.solid.secondary},success:{base:"before:bg-success",content:U.solid.success},warning:{base:"before:bg-warning",content:U.solid.warning},danger:{base:"before:bg-danger",content:U.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"}}]}),ci=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",nr],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}}),hl=it({base:["relative inline-flex items-center outline-solid outline-transparent tap-highlight-transparent",...nr],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-hover active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),Jh="flex mx-1 text-current self-center",Zh=it({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),Qh=it({base:"flex flex-col gap-2 items-start"}),ml=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"}]}),em=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",...nr],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:U.solid.default},{variant:"solid",color:"primary",class:U.solid.primary},{variant:"solid",color:"secondary",class:U.solid.secondary},{variant:"solid",color:"success",class:U.solid.success},{variant:"solid",color:"warning",class:U.solid.warning},{variant:"solid",color:"danger",class:U.solid.danger},{variant:"shadow",color:"default",class:U.shadow.default},{variant:"shadow",color:"primary",class:U.shadow.primary},{variant:"shadow",color:"secondary",class:U.shadow.secondary},{variant:"shadow",color:"success",class:U.shadow.success},{variant:"shadow",color:"warning",class:U.shadow.warning},{variant:"shadow",color:"danger",class:U.shadow.danger},{variant:"bordered",color:"default",class:U.bordered.default},{variant:"bordered",color:"primary",class:U.bordered.primary},{variant:"bordered",color:"secondary",class:U.bordered.secondary},{variant:"bordered",color:"success",class:U.bordered.success},{variant:"bordered",color:"warning",class:U.bordered.warning},{variant:"bordered",color:"danger",class:U.bordered.danger},{variant:"flat",color:"default",class:U.flat.default},{variant:"flat",color:"primary",class:U.flat.primary},{variant:"flat",color:"secondary",class:U.flat.secondary},{variant:"flat",color:"success",class:U.flat.success},{variant:"flat",color:"warning",class:U.flat.warning},{variant:"flat",color:"danger",class:U.flat.danger},{variant:"faded",color:"default",class:U.faded.default},{variant:"faded",color:"primary",class:U.faded.primary},{variant:"faded",color:"secondary",class:U.faded.secondary},{variant:"faded",color:"success",class:U.faded.success},{variant:"faded",color:"warning",class:U.faded.warning},{variant:"faded",color:"danger",class:U.faded.danger},{variant:"light",color:"default",class:[U.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[U.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[U.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[U.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[U.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[U.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[U.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[U.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[U.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[U.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[U.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[U.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:mn.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:mn.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:mn.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:mn.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:mn.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:mn.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 gl=it({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...nr],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}}),tm=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",...qh],hiddenInput:Xh,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}}),nm=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}}),bl=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:[...Yh,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:U.solid.default}},{variant:"solid",color:"primary",class:{base:U.solid.primary}},{variant:"solid",color:"secondary",class:{base:U.solid.secondary}},{variant:"solid",color:"success",class:{base:U.solid.success}},{variant:"solid",color:"warning",class:{base:U.solid.warning}},{variant:"solid",color:"danger",class:{base:U.solid.danger}},{variant:"shadow",color:"default",class:{base:U.shadow.default}},{variant:"shadow",color:"primary",class:{base:U.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:U.shadow.secondary}},{variant:"shadow",color:"success",class:{base:U.shadow.success}},{variant:"shadow",color:"warning",class:{base:U.shadow.warning}},{variant:"shadow",color:"danger",class:{base:U.shadow.danger}},{variant:"bordered",color:"default",class:{base:U.bordered.default}},{variant:"bordered",color:"primary",class:{base:U.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:U.bordered.secondary}},{variant:"bordered",color:"success",class:{base:U.bordered.success}},{variant:"bordered",color:"warning",class:{base:U.bordered.warning}},{variant:"bordered",color:"danger",class:{base:U.bordered.danger}},{variant:"flat",color:"default",class:{base:U.flat.default}},{variant:"flat",color:"primary",class:{base:U.flat.primary}},{variant:"flat",color:"secondary",class:{base:U.flat.secondary}},{variant:"flat",color:"success",class:{base:U.flat.success}},{variant:"flat",color:"warning",class:{base:U.flat.warning}},{variant:"flat",color:"danger",class:{base:U.flat.danger}},{variant:"faded",color:"default",class:{base:U.faded.default}},{variant:"faded",color:"primary",class:{base:U.faded.primary}},{variant:"faded",color:"secondary",class:{base:U.faded.secondary}},{variant:"faded",color:"success",class:{base:U.faded.success}},{variant:"faded",color:"warning",class:{base:U.faded.warning}},{variant:"faded",color:"danger",class:{base:U.faded.danger}},{variant:"light",color:"default",class:{base:U.light.default}},{variant:"light",color:"primary",class:{base:U.light.primary}},{variant:"light",color:"secondary",class:{base:U.light.secondary}},{variant:"light",color:"success",class:{base:U.light.success}},{variant:"light",color:"warning",class:{base:U.light.warning}},{variant:"light",color:"danger",class:{base:U.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"}}]}),rm=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function om(e){return typeof e=="function"}var pe=e=>e?"true":void 0;function vl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=vl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ze(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=vl(n))&&(o&&(o+=" "),o+=r);return o}var yl=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function im(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function gn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function sm(e,t,n){return Math.min(Math.max(e,t),n)}var wl={};function _r(e,t,...n){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!wl[o]&&(wl[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,n)}function bn(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var xl=new Map;function am(e,t){if(e===t)return e;let n=xl.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=xl.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Xe(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=bn(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=ze(i,s):o==="id"&&i&&s?t.id=am(i,s):t[o]=s!==void 0?s:i}}return t}function lm(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=El(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o?.():El(e[i],null)})}}}function El(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function Tl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function cm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Tl(e))&&(r&&(r+=" "),r+=t);return r}var um=cl({extend:Jo});function te(...e){return um(cm(e))}function dm({children:e,classNames:t}){return P.jsx("div",{className:te("mobielnl-elements",t?.root),children:e})}const ui=typeof document<"u"?h.useLayoutEffect:()=>{};var di;const fm=(di=h.useInsertionEffect)!==null&&di!==void 0?di:ui;function Nt(e){const t=h.useRef(null);return fm(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}const Fr={prefix:String(Math.round(Math.random()*1e10)),current:0},$l=h.createContext(Fr),pm=h.createContext(!1);let hm=!!(typeof window<"u"&&window.document&&window.document.createElement),fi=new WeakMap;function mm(e=!1){let t=h.useContext($l),n=h.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=fi.get(i);s==null?fi.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,fi.delete(i))}n.current=++t.current}return n.current}function gm(e){let t=h.useContext($l);t===Fr&&!hm&&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 n=mm(!!e),r=t===Fr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function bm(e){let t=h.useId(),[n]=h.useState(pi()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fr.prefix}`;return e||`${r}-${t}`}const vm=typeof h.useId=="function"?bm:gm;function ym(){return!1}function wm(){return!0}function xm(e){return()=>{}}function pi(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(xm,ym,wm):h.useContext(pm)}let hi=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{hi.delete(e)});function Em(e,t){if(e===t)return e;let n=hi.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=hi.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Cl(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Je=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},st=e=>e&&"window"in e&&e.window===e?e:Je(e).defaultView||window;function Tm(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $m(e){return Tm(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Cm=!1;function vn(){return Cm}function De(e,t){if(!vn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:$m(n)?n=n.host:n=n.parentNode}return!1}const rr=(e=document)=>{var t;if(!vn())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Ce(e){return vn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Pl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pl(e))&&(r&&(r+=" "),r+=t);return r}function yn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Cl(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Sl(i,s):o==="id"&&i&&s?t.id=Em(i,s):t[o]=s!==void 0?s:i}}return t}const Pm=new Set(["id"]),Sm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),km=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Im=new Set(["dir","lang","hidden","inert","translate"]),kl=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"]),Am=/^(data-.*)$/;function Om(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(Pm.has(l)||n&&Sm.has(l)||r&&km.has(l)||o&&Im.has(l)||i&&kl.has(l)||l.endsWith("Capture")&&kl.has(l.slice(0,-7))||s?.has(l)||Am.test(l))&&(a[l]=e[l]);return a}function wn(e){if(Mm())e.focus({preventScroll:!0});else{let t=Dm(e);e.focus(),Nm(t)}}let jr=null;function Mm(){if(jr==null){jr=!1;try{document.createElement("div").focus({get preventScroll(){return jr=!0,!0}})}catch{}}return jr}function Dm(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Nm(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Rr(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function mi(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 $t(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const xn=$t(function(){return mi(/^Mac/i)}),Lm=$t(function(){return mi(/^iPhone/i)}),Il=$t(function(){return mi(/^iPad/i)||xn()&&navigator.maxTouchPoints>1}),gi=$t(function(){return Lm()||Il()});$t(function(){return xn()||gi()});const Vm=$t(function(){return Rr(/AppleWebKit/i)&&!_m()}),_m=$t(function(){return Rr(/Chrome/i)}),Al=$t(function(){return Rr(/Android/i)}),Fm=$t(function(){return Rr(/Firefox/i)}),jm=h.createContext({isNative:!0,open:zm,useHref:e=>e});function Ol(){return h.useContext(jm)}function Rm(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function En(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Fm()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(xn()?i=!0:s=!0);let u=Vm()&&xn()&&!Il()&&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});En.isOpening=n,wn(e),e.dispatchEvent(u),En.isOpening=!1}En.isOpening=!1;function Bm(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function zm(e,t){Bm(e,n=>En(n,t))}function Um(e){let t=Ol();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Km(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Rm(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}let Lt=new Map,bi=new Set;function Ml(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Lt.get(r.target);o||(o=new Set,Lt.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Lt.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Lt.delete(r.target)),Lt.size===0)){for(let i of bi)i();bi.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Ml():document.addEventListener("DOMContentLoaded",Ml));function Hm(){for(const[e]of Lt)"isConnected"in e&&!e.isConnected&&Lt.delete(e)}function Dl(e){requestAnimationFrame(()=>{Hm(),Lt.size===0?e():bi.add(e)})}function Nl(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a?.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ll(e,t){ui(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vi(e){return e.pointerType===""&&e.isTrusted?!0:Al()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Gm(e){return!Al()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const Wm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function qm(e){const t=st(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="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 Ym(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 Vl(e,t){return Wm?e.checkVisibility()&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&qm(e)&&Ym(e,t)&&(!e.parentElement||Vl(e.parentElement,e))}const _l=["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"],Xm=_l.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_l.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Jm(e){return e.matches(Xm)&&Vl(e)&&!Zm(e)}function Zm(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Br(e,t,n){let[r,o]=h.useState(e||t),i=h.useRef(e!==void 0),s=e!==void 0;h.useEffect(()=>{let u=i.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=h.useCallback((u,...c)=>{let d=(m,...g)=>{n&&(Object.is(a,m)||n(m,...g)),s||(a=m)};typeof u=="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((g,...y)=>{let v=u(s?a:g,...y);return d(v,...c),s?g:v})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function Tn(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function zr(e,t){let n=e,r=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let s=o.indexOf(".");s>=0&&(r=o.length-s)}if(r>0){let s=Math.pow(10,r);n=Math.round(n*s)/s}return n}function or(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=zr(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(zr(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(zr((n-t)/r,r))*r),i=zr(i,r),i}function yi(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Fl(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function jl(e){let t=h.useRef({isFocused:!1,observer:null});ui(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Nt(r=>{e?.(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=yi(s);n(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"]})}},[n])}let Ur=!1;function Rl(e){for(;e&&!Jm(e);)e=e.parentElement;let t=st(e),n=t.document.activeElement;if(!n||n===e)return;Ur=!0;let r=!1,o=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,wn(n),l()))},s=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,wn(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),Ur=!1,r=!1},u=requestAnimationFrame(l);return l}let $n="default",wi="",Kr=new WeakMap;function Bl(e){if(gi()){if($n==="default"){const t=Je(e);wi=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}$n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Kr.set(e,e.style[t]),e.style[t]="none"}}function xi(e){if(gi()){if($n!=="disabled")return;$n="restoring",setTimeout(()=>{Dl(()=>{if($n==="restoring"){const t=Je(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=wi||""),wi="",$n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Kr.has(e)){let t=Kr.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Kr.delete(e)}}const zl=h.createContext({register:()=>{}});zl.displayName="PressResponderContext";function Qm(e,t){return t.get?t.get.call(e):t.value}function Ul(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Kl(e,t){var n=Ul(e,t,"get");return Qm(e,n)}function eg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hl(e,t,n){eg(e,t),t.set(e,n)}function tg(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Hr(e,t,n){var r=Ul(e,t,"set");return tg(e,r,n),n}function ng(e){let t=h.useContext(zl);if(t){let{register:n,...r}=t;e=yn(r,e),n()}return Ll(t,e.ref),e}var Gr=new WeakMap;let Wr=class{continuePropagation(){Hr(this,Gr,!1)}get shouldStopPropagation(){return Kl(this,Gr)}constructor(t,n,r,o){Hl(this,Gr,{writable:!0,value:void 0}),Hr(this,Gr,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}};const Gl=Symbol("linkClicked"),Wl="react-aria-pressable-style",ql="data-react-aria-pressable";function rg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...g}=ng(e),[y,v]=h.useState(!1),x=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:$}=Nl(),A=Nt((f,k)=>{let D=x.current;if(a||D.didFirePressStart)return!1;let w=!0;if(D.isTriggeringEvent=!0,r){let N=new Wr("pressstart",k,f);r(N),w=N.shouldStopPropagation}return n&&n(!0),D.isTriggeringEvent=!1,D.didFirePressStart=!0,v(!0),w}),M=Nt((f,k,D=!0)=>{let w=x.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let N=!0;if(o){let p=new Wr("pressend",k,f);o(p),N=p.shouldStopPropagation}if(n&&n(!1),v(!1),t&&D&&!a){let p=new Wr("press",k,f);t(p),N&&(N=p.shouldStopPropagation)}return w.isTriggeringEvent=!1,N}),I=Nt((f,k)=>{let D=x.current;if(a)return!1;if(i){D.isTriggeringEvent=!0;let w=new Wr("pressup",k,f);return i(w),D.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),O=Nt(f=>{let k=x.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&M(Gt(k.target,f),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,$(),d||xi(k.target);for(let D of k.disposables)D();k.disposables=[]}}),L=Nt(f=>{c&&O(f)}),S=Nt(f=>{s?.(f)}),V=Nt((f,k)=>{if(s){let D=new MouseEvent("click",f);Fl(D,k),s(yi(D))}}),j=h.useMemo(()=>{let f=x.current,k={onKeyDown(w){if(Ti(w.nativeEvent,w.currentTarget)&&De(w.currentTarget,Ce(w.nativeEvent))){var N;Jl(Ce(w.nativeEvent),w.key)&&w.preventDefault();let p=!0;if(!f.isPressed&&!w.repeat){f.target=w.currentTarget,f.isPressed=!0,f.pointerType="keyboard",p=A(w,"keyboard");let C=w.currentTarget,E=B=>{Ti(B,C)&&!B.repeat&&De(C,Ce(B))&&f.target&&I(Gt(f.target,B),"keyboard")};b(Je(w.currentTarget),"keyup",Cl(E,D),!0)}p&&w.stopPropagation(),w.metaKey&&xn()&&((N=f.metaKeyEvents)===null||N===void 0||N.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!De(w.currentTarget,Ce(w.nativeEvent)))&&w&&w.button===0&&!f.isTriggeringEvent&&!En.isOpening){let N=!0;if(a&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||vi(w.nativeEvent))){let p=A(w,"virtual"),C=I(w,"virtual"),E=M(w,"virtual");S(w),N=p&&C&&E}else if(f.isPressed&&f.pointerType!=="keyboard"){let p=f.pointerType||w.nativeEvent.pointerType||"virtual",C=I(Gt(w.currentTarget,w),p),E=M(Gt(w.currentTarget,w),p,!0);N=C&&E,f.isOverTarget=!1,S(w),O(w)}f.ignoreEmulatedMouseEvents=!1,N&&w.stopPropagation()}}},D=w=>{var N;if(f.isPressed&&f.target&&Ti(w,f.target)){var p;Jl(Ce(w),w.key)&&w.preventDefault();let E=Ce(w),B=De(f.target,Ce(w));M(Gt(f.target,w),"keyboard",B),B&&V(w,f.target),$(),w.key!=="Enter"&&Ei(f.target)&&De(f.target,E)&&!w[Gl]&&(w[Gl]=!0,En(f.target,w,!1)),f.isPressed=!1,(p=f.metaKeyEvents)===null||p===void 0||p.delete(w.key)}else if(w.key==="Meta"&&(!((N=f.metaKeyEvents)===null||N===void 0)&&N.size)){var C;let E=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let B of E.values())(C=f.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){k.onPointerDown=p=>{if(p.button!==0||!De(p.currentTarget,Ce(p.nativeEvent)))return;if(Gm(p.nativeEvent)){f.pointerType="virtual";return}f.pointerType=p.pointerType;let C=!0;if(!f.isPressed){f.isPressed=!0,f.isOverTarget=!0,f.activePointerId=p.pointerId,f.target=p.currentTarget,d||Bl(f.target),C=A(p,f.pointerType);let E=Ce(p.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(p.pointerId),b(Je(p.currentTarget),"pointerup",w,!1),b(Je(p.currentTarget),"pointercancel",N,!1)}C&&p.stopPropagation()},k.onMouseDown=p=>{if(De(p.currentTarget,Ce(p.nativeEvent))&&p.button===0){if(u){let C=Rl(p.target);C&&f.disposables.push(C)}p.stopPropagation()}},k.onPointerUp=p=>{!De(p.currentTarget,Ce(p.nativeEvent))||f.pointerType==="virtual"||p.button===0&&!f.isPressed&&I(p,f.pointerType||p.pointerType)},k.onPointerEnter=p=>{p.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,A(Gt(f.target,p),f.pointerType))},k.onPointerLeave=p=>{p.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,M(Gt(f.target,p),f.pointerType,!1),L(p))};let w=p=>{if(p.pointerId===f.activePointerId&&f.isPressed&&p.button===0&&f.target){if(De(f.target,Ce(p))&&f.pointerType!=null){let C=!1,E=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(C?O(p):(wn(f.target),f.target.click()))},80);b(p.currentTarget,"click",()=>C=!0,!0),f.disposables.push(()=>clearTimeout(E))}else O(p);f.isOverTarget=!1}},N=p=>{O(p)};k.onDragStart=p=>{De(p.currentTarget,Ce(p.nativeEvent))&&O(p)}}else if(process.env.NODE_ENV==="test"){k.onMouseDown=p=>{if(p.button!==0||!De(p.currentTarget,Ce(p.nativeEvent)))return;if(f.ignoreEmulatedMouseEvents){p.stopPropagation();return}if(f.isPressed=!0,f.isOverTarget=!0,f.target=p.currentTarget,f.pointerType=vi(p.nativeEvent)?"virtual":"mouse",Xo.flushSync(()=>A(p,f.pointerType))&&p.stopPropagation(),u){let E=Rl(p.target);E&&f.disposables.push(E)}b(Je(p.currentTarget),"mouseup",w,!1)},k.onMouseEnter=p=>{if(!De(p.currentTarget,Ce(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,C=A(p,f.pointerType)),C&&p.stopPropagation()},k.onMouseLeave=p=>{if(!De(p.currentTarget,Ce(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,C=M(p,f.pointerType,!1),L(p)),C&&p.stopPropagation()},k.onMouseUp=p=>{De(p.currentTarget,Ce(p.nativeEvent))&&!f.ignoreEmulatedMouseEvents&&p.button===0&&!f.isPressed&&I(p,f.pointerType||"mouse")};let w=p=>{if(p.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&f.target.contains(p.target)&&f.pointerType!=null||O(p),f.isOverTarget=!1}};k.onTouchStart=p=>{if(!De(p.currentTarget,Ce(p.nativeEvent)))return;let C=og(p.nativeEvent);if(!C)return;f.activePointerId=C.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,f.target=p.currentTarget,f.pointerType="touch",d||Bl(f.target),A(Vt(f.target,p),f.pointerType)&&p.stopPropagation(),b(st(p.currentTarget),"scroll",N,!0)},k.onTouchMove=p=>{if(!De(p.currentTarget,Ce(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Yl(p.nativeEvent,f.activePointerId),E=!0;C&&Xl(C,p.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,E=A(Vt(f.target,p),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,E=M(Vt(f.target,p),f.pointerType,!1),L(Vt(f.target,p))),E&&p.stopPropagation()},k.onTouchEnd=p=>{if(!De(p.currentTarget,Ce(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Yl(p.nativeEvent,f.activePointerId),E=!0;C&&Xl(C,p.currentTarget)&&f.pointerType!=null?(I(Vt(f.target,p),f.pointerType),E=M(Vt(f.target,p),f.pointerType),V(p.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(E=M(Vt(f.target,p),f.pointerType,!1)),E&&p.stopPropagation(),f.isPressed=!1,f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!d&&xi(f.target),$()},k.onTouchCancel=p=>{De(p.currentTarget,Ce(p.nativeEvent))&&(p.stopPropagation(),f.isPressed&&O(Vt(f.target,p)))};let N=p=>{f.isPressed&&De(Ce(p),f.target)&&O({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=p=>{De(p.currentTarget,Ce(p.nativeEvent))&&O(p)}}return k},[b,a,u,$,d,O,L,M,A,I,S,V]);return h.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const f=Je(m.current);if(!f||!f.head||f.getElementById(Wl))return;const k=f.createElement("style");k.id=Wl,k.textContent=`
31
- @layer {
32
- [${ql}] {
33
- touch-action: pan-x pan-y pinch-zoom;
34
- }
35
- }
36
- `.trim(),f.head.prepend(k)},[m]),h.useEffect(()=>{let f=x.current;return()=>{var k;d||xi((k=f.target)!==null&&k!==void 0?k:void 0);for(let D of f.disposables)D();f.disposables=[]}},[d]),{isPressed:l||y,pressProps:yn(g,j,{[ql]:!0})}}function Ei(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ti(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof st(o).HTMLInputElement&&!Zl(o,n)||o instanceof st(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Ei(o))&&n!=="Enter")}function og(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Yl(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Vt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Gt(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ig(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function sg(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Xl(e,t){let n=t.getBoundingClientRect(),r=ig(e);return sg(n,r)}function ag(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ei(e)}function Jl(e,t){return e instanceof HTMLInputElement?!Zl(e,t):ag(e)}const lg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zl(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":lg.has(e.type)}let Cn=null,$i=new Set,ir=new Map,Wt=!1,Ci=!1;const cg={Tab:!0,Escape:!0};function Pi(e,t){for(let n of $i)n(e,t)}function ug(e){return!(e.metaKey||!xn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qr(e){Wt=!0,ug(e)&&(Cn="keyboard",Pi("keyboard",e))}function at(e){Cn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Wt=!0,Pi("pointer",e))}function Ql(e){vi(e)&&(Wt=!0,Cn="virtual")}function ec(e){e.target===window||e.target===document||Ur||!e.isTrusted||(!Wt&&!Ci&&(Cn="virtual",Pi("virtual",e)),Wt=!1,Ci=!1)}function tc(){Ur||(Wt=!1,Ci=!0)}function Si(e){if(typeof window>"u"||typeof document>"u"||ir.get(st(e)))return;const t=st(e),n=Je(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Wt=!0,r.apply(this,arguments)},n.addEventListener("keydown",qr,!0),n.addEventListener("keyup",qr,!0),n.addEventListener("click",Ql,!0),t.addEventListener("focus",ec,!0),t.addEventListener("blur",tc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",at,!0),n.addEventListener("pointermove",at,!0),n.addEventListener("pointerup",at,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",at,!0),n.addEventListener("mousemove",at,!0),n.addEventListener("mouseup",at,!0)),t.addEventListener("beforeunload",()=>{nc(e)},{once:!0}),ir.set(t,{focus:r})}const nc=(e,t)=>{const n=st(e),r=Je(e);t&&r.removeEventListener("DOMContentLoaded",t),ir.has(n)&&(n.HTMLElement.prototype.focus=ir.get(n).focus,r.removeEventListener("keydown",qr,!0),r.removeEventListener("keyup",qr,!0),r.removeEventListener("click",Ql,!0),n.removeEventListener("focus",ec,!0),n.removeEventListener("blur",tc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",at,!0),r.removeEventListener("pointermove",at,!0),r.removeEventListener("pointerup",at,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",at,!0),r.removeEventListener("mousemove",at,!0),r.removeEventListener("mouseup",at,!0)),ir.delete(n))};function dg(e){const t=Je(e);let n;return t.readyState!=="loading"?Si(e):(n=()=>{Si(e)},t.addEventListener("DOMContentLoaded",n)),()=>nc(e,n)}typeof document<"u"&&dg();function rc(){return Cn!=="pointer"}function fg(){return Cn}const pg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hg(e,t,n){let r=Je(n?.target);const o=typeof window<"u"?st(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?st(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?st(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?st(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!pg.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!cg[n.key])}function mg(e,t,n){Si(),h.useEffect(()=>{let r=(o,i)=>{hg(!!n?.isTextInput,o,i)&&e(rc())};return $i.add(r),()=>{$i.delete(r)}},t)}function gg(e){const t=Je(e),n=rr(t);if(fg()==="virtual"){let r=n;Dl(()=>{rr(t)===r&&e.isConnected&&wn(e)})}else wn(e)}function oc(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=jl(i),a=h.useCallback(l=>{const u=Je(l.target),c=u?rr(u):rr();l.target===l.currentTarget&&c===Ce(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function ic(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.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(r),t&&n.stopPropagation()}}function bg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ic(e.onKeyDown),onKeyUp:ic(e.onKeyUp)}}}let vg=h.createContext(null);function yg(e){let t=h.useContext(vg)||{};Ll(t,e);let{ref:n,...r}=t;return r}function wg(e,t){let{focusProps:n}=oc(e),{keyboardProps:r}=bg(e),o=yn(n,r),i=yg(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);h.useEffect(()=>{a.current&&t.current&&gg(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:yn({...o,tabIndex:l},s)}}function xg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Nl(),l=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(d),o&&o(!1))},[n,o,i,a]),u=jl(l),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const m=Je(d.target),g=rr(m);if(!i.current.isFocusWithin&&g===Ce(d.nativeEvent)){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let y=d.currentTarget;s(m,"focus",v=>{if(i.current.isFocusWithin&&!De(y,v.target)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:v.target});Fl(x,y);let b=yi(x);l(b)}},{capture:!0})}},[r,o,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function Eg(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||rc()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(g=>{o.current.isFocused=g,s(g),u()},[u]);mg(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:d}=oc({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=xg({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?m:d}}function Tg(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:s,isDisabled:a,...l}=e,u={};n!=="a"&&(u={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=wg(e,t),{pressProps:d,isPressed:m}=rg({onClick:s,onPress:r,onPressStart:o,onPressEnd:i,isDisabled:a,ref:t}),g=Om(l,{labelable:!0,isLink:n==="a"}),y=yn(c,d),v=Ol(),x=Um(e);return{isPressed:m,linkProps:yn(g,x,{...y,...u,"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:b=>{var $;($=d.onClick)==null||$.call(d,b),Km(b,v,e.href,e.routerOptions)}})}}function Yr(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=Kt.createContext(void 0);o.displayName=r;function i(){var s;const a=Kt.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function $g(e){return{UNSAFE_getDOMNode(){return e.current}}}function gt(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}function Cg(e,t){if(e!=null){if(om(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function sc(...e){return t=>{e.forEach(n=>Cg(n,t))}}function Pg(){const e=()=>()=>{};return Kt.useSyncExternalStore(e,()=>!0,()=>!1)}var Sg=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"]),kg=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"]),ac=/^(data-.*)$/,Ig=/^(aria-.*)$/,Xr=/^(on[A-Z].*)$/;function _t(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:s,omitDataProps:a,omitEventProps:l}=t,u={};if(!r)return e;for(const c in e)i?.has(c)||s?.has(c)&&Xr.test(c)||Xr.test(c)&&!kg.has(c)||a&&ac.test(c)||l&&Xr.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(Sg.has(c)||n&&Ig.test(c)||o?.has(c)||ac.test(c))||Xr.test(c))&&(u[c]=e[c]);return u}function ki({Component:e,props:t,renderCustom:n}){return n&&typeof n=="function"?n(t):Kt.createElement(e,t)}var[PT,Ct]=Yr({name:"ProviderContext",strict:!1});const Ag=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Og=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Mg(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Ag.has(n.script)}let t=e.split("-")[0];return Og.has(t)}const Dg=Symbol.for("react-aria.i18n.locale");function lc(){let e=typeof window<"u"&&window[Dg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Mg(e)?"rtl":"ltr"}}let Ii=lc(),sr=new Set;function cc(){Ii=lc();for(let e of sr)e(Ii)}function Ng(){let e=pi(),[t,n]=h.useState(Ii);return h.useEffect(()=>(sr.size===0&&window.addEventListener("languagechange",cc),sr.add(n),()=>{sr.delete(n),sr.size===0&&window.removeEventListener("languagechange",cc)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Lg=h.createContext(null);function ar(){let e=Ng();return h.useContext(Lg)||e}const bt=typeof document<"u"?h.useLayoutEffect:()=>{};var Ai;const Vg=(Ai=h.useInsertionEffect)!==null&&Ai!==void 0?Ai:bt;function Ue(e){const t=h.useRef(null);return Vg(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function _g(e){let[t,n]=h.useState(e),r=h.useRef(null),o=Ue(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?o():n(s.value)});bt(()=>{r.current&&o()});let i=Ue(s=>{r.current=s(t),o()});return[t,i]}let Fg=!!(typeof window<"u"&&window.document&&window.document.createElement),Pn=new Map,lr;typeof FinalizationRegistry<"u"&&(lr=new FinalizationRegistry(e=>{Pn.delete(e)}));function cr(e){let[t,n]=h.useState(e),r=h.useRef(null),o=vm(t),i=h.useRef(null);if(lr&&lr.register(i,o),Fg){const s=Pn.get(o);s&&!s.includes(r)?s.push(r):Pn.set(o,[r])}return bt(()=>{let s=o;return()=>{lr&&lr.unregister(i),Pn.delete(s)}},[o]),h.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),o}function jg(e,t){if(e===t)return e;let n=Pn.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Pn.get(t);return r?(r.forEach(o=>o.current=e),e):t}function uc(e=[]){let t=cr(),[n,r]=_g(t),o=h.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return bt(o,[t,o,...e]),n}function dc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const We=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},lt=e=>e&&"window"in e&&e.window===e?e:We(e).defaultView||window;function Rg(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Bg(e){return Rg(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Me(e,t){if(!vn())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Bg(n)?n=n.host:n=n.parentNode}return!1}const ur=(e=document)=>{var t;if(!vn())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Pe(e){return vn()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Be(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=dc(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Sl(i,s):o==="id"&&i&&s?t.id=jg(i,s):t[o]=s!==void 0?s:i}}return t}const zg=new Set(["id"]),Ug=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Hg=new Set(["dir","lang","hidden","inert","translate"]),fc=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"]),Gg=/^(data-.*)$/;function Jr(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(zg.has(l)||n&&Ug.has(l)||r&&Kg.has(l)||o&&Hg.has(l)||i&&fc.has(l)||l.endsWith("Capture")&&fc.has(l.slice(0,-7))||s?.has(l)||Gg.test(l))&&(a[l]=e[l]);return a}function qt(e){if(Wg())e.focus({preventScroll:!0});else{let t=qg(e);e.focus(),Yg(t)}}let Zr=null;function Wg(){if(Zr==null){Zr=!1;try{document.createElement("div").focus({get preventScroll(){return Zr=!0,!0}})}catch{}}return Zr}function qg(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Yg(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qr(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Oi(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 Pt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Sn=Pt(function(){return Oi(/^Mac/i)}),Xg=Pt(function(){return Oi(/^iPhone/i)}),pc=Pt(function(){return Oi(/^iPad/i)||Sn()&&navigator.maxTouchPoints>1}),Mi=Pt(function(){return Xg()||pc()});Pt(function(){return Sn()||Mi()});const hc=Pt(function(){return Qr(/AppleWebKit/i)&&!Jg()}),Jg=Pt(function(){return Qr(/Chrome/i)}),mc=Pt(function(){return Qr(/Android/i)}),Zg=Pt(function(){return Qr(/Firefox/i)});function dr(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Zg()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Sn()?i=!0:s=!0);let u=hc()&&Sn()&&!pc()&&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});dr.isOpening=n,qt(e),e.dispatchEvent(u),dr.isOpening=!1}dr.isOpening=!1;let Ft=new Map,Di=new Set;function gc(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Ft.get(r.target);o||(o=new Set,Ft.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Ft.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Ft.delete(r.target)),Ft.size===0)){for(let i of Di)i();Di.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gc():document.addEventListener("DOMContentLoaded",gc));function Qg(){for(const[e]of Ft)"isConnected"in e&&!e.isConnected&&Ft.delete(e)}function bc(e){requestAnimationFrame(()=>{Qg(),Ft.size===0?e():Di.add(e)})}function kn(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a?.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function eb(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=cr(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function tb(){return typeof window.ResizeObserver<"u"}function vc(e){const{ref:t,box:n,onResize:r}=e;h.useEffect(()=>{let o=t?.current;if(o)if(tb()){const i=new window.ResizeObserver(s=>{s.length&&r()});return i.observe(o,{box:n}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function yc(e,t){bt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ni(e){return e.mozInputSource===0&&e.isTrusted?!0:mc()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nb(e){return!mc()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function wc(e,t,n){let r=Ue(()=>{n&&n(t)});h.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",r),()=>{i?.removeEventListener("reset",r)}},[e,r])}const rb=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ob(e){const t=lt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="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 ib(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 xc(e,t){return rb?e.checkVisibility():e.nodeName!=="#comment"&&ob(e)&&ib(e,t)&&(!e.parentElement||xc(e.parentElement,e))}const Ec=["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"],sb=Ec.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ec.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function ab(e){return e.matches(sb)&&xc(e)&&!lb(e)}function lb(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}let Li=new Map,Vi=!1;try{Vi=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let eo=!1;try{eo=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Tc={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cb{format(t){let n="";if(!Vi&&this.options.signDisplay!=null?n=db(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!eo){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=Tc[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Vi&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!eo&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=ub(t,n),this.options=n}}function ub(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!eo){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Tc[s])===null||r===void 0)&&r[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(Li.has(o))return Li.get(o);let i=new Intl.NumberFormat(e,t);return Li.set(o,i),i}function db(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),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(n)}}function $c(e={}){let{locale:t}=ar();return h.useMemo(()=>new cb(t,e),[t,e])}const Cc=h.createContext({});function _i(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fi=typeof window<"u",Pc=Fi?h.useLayoutEffect:h.useEffect,to=h.createContext(null);function fb(e,t){e.indexOf(t)===-1&&e.push(t)}function pb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yt=(e,t,n)=>n>t?t:n<e?e:n;function ji(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let In=()=>{},jt=()=>{};process.env.NODE_ENV!=="production"&&(In=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(ji(t,n))},jt=(e,t,n)=>{if(!e)throw new Error(ji(t,n))});const St={},Sc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hb(e){return typeof e=="object"&&e!==null}const kc=e=>/^0[^.\s]+$/u.test(e);function Ri(e){let t;return()=>(t===void 0&&(t=e()),t)}const An=e=>e,mb=(e,t)=>n=>t(e(n)),no=(...e)=>e.reduce(mb),Ic=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ac{constructor(){this.subscriptions=[]}add(t){return fb(this.subscriptions,t),()=>pb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vt=e=>e*1e3,kt=e=>e/1e3;function Oc(e,t){return t?e*(1e3/t):0}const Mc=new Set;function Bi(e,t,n){e||Mc.has(t)||(console.warn(ji(t,n)),Mc.add(t))}const Dc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gb=1e-7,bb=12;function vb(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Dc(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>gb&&++a<bb);return s}function fr(e,t,n,r){if(e===t&&n===r)return An;const o=i=>vb(i,0,1,e,n);return i=>i===0||i===1?i:Dc(o(i),t,r)}const Nc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lc=e=>t=>1-e(1-t),Vc=fr(.33,1.53,.69,.99),zi=Lc(Vc),_c=Nc(zi),Fc=e=>(e*=2)<1?.5*zi(e):.5*(2-Math.pow(2,-10*(e-1))),Ui=e=>1-Math.sin(Math.acos(e)),yb=Lc(Ui),jc=Nc(Ui),wb=fr(.42,0,1,1),xb=fr(0,0,.58,1),Rc=fr(.42,0,.58,1),Eb=e=>Array.isArray(e)&&typeof e[0]!="number",Bc=e=>Array.isArray(e)&&typeof e[0]=="number",zc={linear:An,easeIn:wb,easeInOut:Rc,easeOut:xb,circIn:Ui,circInOut:jc,circOut:yb,backIn:zi,backInOut:_c,backOut:Vc,anticipate:Fc},Tb=e=>typeof e=="string",Uc=e=>{if(Bc(e)){jt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return fr(t,n,r,o)}else if(Tb(e))return jt(zc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zc[e];return e},ro=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $b(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,m=!1)=>{const y=m&&o?n:r;return d&&s.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,u.process(c))}};return u}const Cb=40;function Kc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ro.reduce((A,M)=>(A[M]=$b(i),A),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:m,render:g,postRender:y}=s,v=()=>{const A=St.useManualTiming?o.timestamp:performance.now();n=!1,St.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(A-o.timestamp,Cb),1)),o.timestamp=A,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),m.process(o),g.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:ro.reduce((A,M)=>{const I=s[M];return A[M]=(O,L=!1,S=!1)=>(n||x(),I.schedule(O,L,S)),A},{}),cancel:A=>{for(let M=0;M<ro.length;M++)s[ro[M]].cancel(A)},state:o,steps:s}}const{schedule:pt,cancel:Ki,state:oo}=Kc(typeof requestAnimationFrame<"u"?requestAnimationFrame:An,!0);let io;function Pb(){io=void 0}const ct={now:()=>(io===void 0&&ct.set(oo.isProcessing||St.useManualTiming?oo.timestamp:performance.now()),io),set:e=>{io=e,queueMicrotask(Pb)}},Hc=e=>t=>typeof t=="string"&&t.startsWith(e),Gc=Hc("--"),Sb=Hc("var(--"),Hi=e=>Sb(e)?kb.test(e.split("/*")[0].trim()):!1,kb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,On={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pr={...On,transform:e=>Yt(0,1,e)},so={...On,default:1},hr=e=>Math.round(e*1e5)/1e5,Gi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ib(e){return e==null}const Ab=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wi=(e,t)=>n=>!!(typeof n=="string"&&Ab.test(n)&&n.startsWith(e)||t&&!Ib(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Gi);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ob=e=>Yt(0,255,e),qi={...On,transform:e=>Math.round(Ob(e))},Xt={test:Wi("rgb","red"),parse:Wc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qi.transform(e)+", "+qi.transform(t)+", "+qi.transform(n)+", "+hr(pr.transform(r))+")"};function Mb(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Yi={test:Wi("#"),parse:Mb,transform:Xt.transform},mr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rt=mr("deg"),Mn=mr("%"),ne=mr("px"),Db=mr("vh"),Nb=mr("vw"),qc={...Mn,parse:e=>Mn.parse(e)/100,transform:e=>Mn.transform(e*100)},Dn={test:Wi("hsl","hue"),parse:Wc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mn.transform(hr(t))+", "+Mn.transform(hr(n))+", "+hr(pr.transform(r))+")"},_e={test:e=>Xt.test(e)||Yi.test(e)||Dn.test(e),parse:e=>Xt.test(e)?Xt.parse(e):Dn.test(e)?Dn.parse(e):Yi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xt.transform(e):Dn.transform(e),getAnimatableNone:e=>{const t=_e.parse(e);return t.alpha=0,_e.transform(t)}},Lb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vb(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gi)?.length||0)+(e.match(Lb)?.length||0)>0}const Yc="number",Xc="color",_b="var",Fb="var(",Jc="${}",jb=/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 gr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(jb,l=>(_e.test(l)?(r.color.push(i),o.push(Xc),n.push(_e.parse(l))):l.startsWith(Fb)?(r.var.push(i),o.push(_b),n.push(l)):(r.number.push(i),o.push(Yc),n.push(parseFloat(l))),++i,Jc)).split(Jc);return{values:n,split:a,indexes:r,types:o}}function Zc(e){return gr(e).values}function Qc(e){const{split:t,types:n}=gr(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Yc?i+=hr(o[s]):a===Xc?i+=_e.transform(o[s]):i+=o[s]}return i}}const Rb=e=>typeof e=="number"?0:_e.test(e)?_e.getAnimatableNone(e):e;function Bb(e){const t=Zc(e);return Qc(e)(t.map(Rb))}const Nn={test:Vb,parse:Zc,createTransformer:Qc,getAnimatableNone:Bb};function Xi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Xi(l,a,e+1/3),i=Xi(l,a,e),s=Xi(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ao(e,t){return n=>n>0?t:e}const lo=(e,t,n)=>e+(t-e)*n,Ji=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Ub=[Yi,Xt,Dn],Kb=e=>Ub.find(t=>t.test(e));function eu(e){const t=Kb(e);if(In(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Dn&&(n=zb(n)),n}const tu=(e,t)=>{const n=eu(e),r=eu(t);if(!n||!r)return ao(e,t);const o={...n};return i=>(o.red=Ji(n.red,r.red,i),o.green=Ji(n.green,r.green,i),o.blue=Ji(n.blue,r.blue,i),o.alpha=lo(n.alpha,r.alpha,i),Xt.transform(o))},Zi=new Set(["none","hidden"]);function Hb(e,t){return Zi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Gb(e,t){return n=>lo(e,t,n)}function Qi(e){return typeof e=="number"?Gb:typeof e=="string"?Hi(e)?ao:_e.test(e)?tu:Yb:Array.isArray(e)?nu:typeof e=="object"?_e.test(e)?tu:Wb:ao}function nu(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Qi(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Wb(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Qi(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function qb(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Yb=(e,t)=>{const n=Nn.createTransformer(t),r=gr(e),o=gr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Zi.has(e)&&!o.values.length||Zi.has(t)&&!r.values.length?Hb(e,t):no(nu(qb(r,o),o.values),n):(In(!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"),ao(e,t))};function ru(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lo(e,t,n):Qi(e)(e,t)}const Xb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>pt.update(t,n),stop:()=>Ki(t),now:()=>oo.isProcessing?oo.timestamp:ct.now()}},ou=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},co=2e4;function es(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<co;)t+=n,r=e.next(t);return t>=co?1/0:t}function Jb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(es(r),co);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:kt(o)}}const Zb=5;function iu(e,t,n){const r=Math.max(t-Zb,0);return Oc(n-e(r),t-r)}const Ie={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},ts=.001;function Qb({duration:e=Ie.duration,bounce:t=Ie.bounce,velocity:n=Ie.velocity,mass:r=Ie.mass}){let o,i;In(e<=vt(Ie.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Yt(Ie.minDamping,Ie.maxDamping,s),e=Yt(Ie.minDuration,Ie.maxDuration,kt(e)),s<1?(o=u=>{const c=u*s,d=c*e,m=c-n,g=ns(u,s),y=Math.exp(-d);return ts-m/g*y},i=u=>{const d=u*s*e,m=d*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),v=ns(Math.pow(u,2),s);return(-o(u)+ts>0?-1:1)*((m-g)*y)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ts+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=tv(o,i,a);if(e=vt(e),isNaN(l))return{stiffness:Ie.stiffness,damping:Ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const ev=12;function tv(e,t,n){let r=n;for(let o=1;o<ev;o++)r=r-e(r)/t(r);return r}function ns(e,t){return e*Math.sqrt(1-t*t)}const nv=["duration","bounce"],rv=["stiffness","damping","mass"];function su(e,t){return t.some(n=>e[n]!==void 0)}function ov(e){let t={velocity:Ie.velocity,stiffness:Ie.stiffness,damping:Ie.damping,mass:Ie.mass,isResolvedFromDuration:!1,...e};if(!su(e,rv)&&su(e,nv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Yt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ie.mass,stiffness:o,damping:i}}else{const n=Qb(e);t={...t,...n,mass:Ie.mass},t.isResolvedFromDuration=!0}return t}function uo(e=Ie.visualDuration,t=Ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:m,isResolvedFromDuration:g}=ov({...n,velocity:-kt(n.velocity||0)}),y=m||0,v=u/(2*Math.sqrt(l*c)),x=s-i,b=kt(Math.sqrt(l/c)),$=Math.abs(x)<5;r||(r=$?Ie.restSpeed.granular:Ie.restSpeed.default),o||(o=$?Ie.restDelta.granular:Ie.restDelta.default);let A;if(v<1){const I=ns(b,v);A=O=>{const L=Math.exp(-v*b*O);return s-L*((y+v*b*x)/I*Math.sin(I*O)+x*Math.cos(I*O))}}else if(v===1)A=I=>s-Math.exp(-b*I)*(x+(y+b*x)*I);else{const I=b*Math.sqrt(v*v-1);A=O=>{const L=Math.exp(-v*b*O),S=Math.min(I*O,300);return s-L*((y+v*b*x)*Math.sinh(S)+I*x*Math.cosh(S))/I}}const M={calculatedDuration:g&&d||null,next:I=>{const O=A(I);if(g)a.done=I>=d;else{let L=I===0?y:0;v<1&&(L=I===0?vt(y):iu(A,I,O));const S=Math.abs(L)<=r,V=Math.abs(s-O)<=o;a.done=S&&V}return a.value=a.done?s:O,a},toString:()=>{const I=Math.min(es(M),co),O=ou(L=>M.next(I*L).value,I,30);return I+"ms "+O},toTransition:()=>{}};return M}uo.applyToOptions=e=>{const t=Jb(e,100,uo);return e.ease=t.ease,e.duration=vt(t.duration),e.type="keyframes",e};function rs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},g=S=>a!==void 0&&S<a||l!==void 0&&S>l,y=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let v=n*t;const x=d+v,b=s===void 0?x:s(x);b!==x&&(v=b-d);const $=S=>-v*Math.exp(-S/r),A=S=>b+$(S),M=S=>{const V=$(S),j=A(S);m.done=Math.abs(V)<=u,m.value=m.done?b:j};let I,O;const L=S=>{g(m.value)&&(I=S,O=uo({keyframes:[m.value,y(m.value)],velocity:iu(A,S,m.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:S=>{let V=!1;return!O&&I===void 0&&(V=!0,M(S),L(S)),I!==void 0&&S>=I?O.next(S-I):(!V&&M(S),m)}}}function iv(e,t,n){const r=[],o=n||St.mix||ru,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]||An:t;a=no(l,a)}r.push(a)}return r}function sv(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(jt(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=iv(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const m=Ic(e[d],e[d+1],c);return a[d](m)};return n?c=>u(Yt(e[0],e[i-1],c)):u}function av(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ic(0,t,r);e.push(lo(n,1,o))}}function lv(e){const t=[0];return av(t,e.length-1),t}function cv(e,t){return e.map(n=>n*t)}function uv(e,t){return e.map(()=>t||Rc).splice(0,e.length-1)}function Ln({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Eb(r)?r.map(Uc):Uc(r),i={done:!1,value:t[0]},s=cv(n&&n.length===t.length?n:lv(t),e),a=sv(s,t,{ease:Array.isArray(o)?o:uv(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const dv=e=>e!==null;function os(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(dv),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const fv={decay:rs,inertia:rs,tween:Ln,keyframes:Ln,spring:uo};function au(e){typeof e.type=="string"&&(e.type=fv[e.type])}class is{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const pv=e=>e/100;class ss extends is{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:n}=this.options;n&&n.updatedAt!==ct.now()&&this.tick(ct.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;au(t);const{type:n=Ln,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Ln;process.env.NODE_ENV!=="production"&&l!==Ln&&jt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Ln&&typeof a[0]!="number"&&(this.mixKeyframes=no(pv,ru(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=es(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:g,type:y,onUpdate:v,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)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,M=r;if(d){const S=Math.min(this.currentTime,o)/a;let V=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(m==="reverse"?(j=1-j,g&&(j-=g/a)):m==="mirror"&&(M=s)),A=Yt(0,1,j)*a}const I=$?{done:!1,value:c[0]}:M.next(A);i&&(I.value=i(I.value));let{done:O}=I;!$&&l!==null&&(O=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return L&&y!==rs&&(I.value=os(c,this.options,x,this.speed)),v&&v(I.value),L&&this.finish(),I}then(t,n){return this.finished.then(t,n)}get duration(){return kt(this.calculatedDuration)}get time(){return kt(this.currentTime)}set time(t){t=vt(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(ct.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=kt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Xb,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(ct.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 hv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Jt=e=>e*180/Math.PI,as=e=>{const t=Jt(Math.atan2(e[1],e[0]));return ls(t)},mv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:as,rotateZ:as,skewX:e=>Jt(Math.atan(e[1])),skewY:e=>Jt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ls=e=>(e=e%360,e<0&&(e+=360),e),lu=as,cu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),gv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cu,scaleY:uu,scale:e=>(cu(e)+uu(e))/2,rotateX:e=>ls(Jt(Math.atan2(e[6],e[5]))),rotateY:e=>ls(Jt(Math.atan2(-e[2],e[0]))),rotateZ:lu,rotate:lu,skewX:e=>Jt(Math.atan(e[4])),skewY:e=>Jt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cs(e){return e.includes("scale")?1:0}function us(e,t){if(!e||e==="none")return cs(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=gv,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=mv,o=a}if(!o)return cs(t);const i=r[t],s=o[1].split(",").map(vv);return typeof i=="function"?i(s):s[i]}const bv=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return us(n,t)};function vv(e){return parseFloat(e.trim())}const Vn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_n=new Set(Vn),du=e=>e===On||e===ne,yv=new Set(["x","y","z"]),wv=Vn.filter(e=>!yv.has(e));function xv(e){const t=[];return wv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Zt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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})=>us(t,"x"),y:(e,{transform:t})=>us(t,"y")};Zt.translateX=Zt.x,Zt.translateY=Zt.y;const Qt=new Set;let ds=!1,fs=!1,ps=!1;function fu(){if(fs){const e=Array.from(Qt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=xv(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}fs=!1,ds=!1,Qt.forEach(e=>e.complete(ps)),Qt.clear()}function pu(){Qt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fs=!0)})}function Ev(){ps=!0,pu(),fu(),ps=!1}class hs{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Qt.add(this),ds||(ds=!0,pt.read(pu),pt.resolveKeyframes(fu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,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(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}hv(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qt.delete(this)}cancel(){this.state==="scheduled"&&(Qt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tv=e=>e.startsWith("--");function $v(e,t,n){Tv(t)?e.style.setProperty(t,n):e.style[t]=n}const Cv=Ri(()=>window.ScrollTimeline!==void 0),Pv={};function Sv(e,t){const n=Ri(e);return()=>Pv[t]??n()}const hu=Sv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),br=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:br([0,.65,.55,1]),circOut:br([.55,0,1,.45]),backIn:br([.31,.01,.66,-.59]),backOut:br([.33,1.53,.69,.99])};function gu(e,t){if(e)return typeof e=="function"?hu()?ou(e,t):"ease-out":Bc(e)?br(e):Array.isArray(e)?e.map(n=>gu(n,t)||mu.easeOut):mu[e]}function kv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=gu(a,o);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),e.animate(c,m)}function bu(e){return typeof e=="function"&&"applyToOptions"in e}function Iv({type:e,...t}){return bu(e)&&hu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Av extends is{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,jt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Iv(t);this.animation=kv(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=os(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):$v(n,r,c),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 kt(Number(t))}get time(){return kt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=vt(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:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Cv()?(this.animation.timeline=t,An):n(this)}}const vu={anticipate:Fc,backInOut:_c,circInOut:jc};function Ov(e){return e in vu}function Mv(e){typeof e.ease=="string"&&Ov(e.ease)&&(e.ease=vu[e.ease])}const yu=10;class Dv extends Av{constructor(t){Mv(t),au(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ss({...s,autoplay:!1}),l=vt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-yu).value,a.sample(l).value,yu),a.stop()}}const wu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nn.test(e)||e==="0")&&!e.startsWith("url("));function Nv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Lv(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=wu(o,t),a=wu(i,t);return In(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:Nv(e)||(n==="spring"||bu(n))&&r}function ms(e){e.duration=0,e.type}const Vv=new Set(["opacity","clipPath","filter","transform"]),_v=Ri(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Fv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _v()&&n&&Vv.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const jv=40;class Rv extends is{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ct.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:u,element:c,...d},g=c?.KeyframeResolver||hs;this.keyframeResolver=new g(a,(y,v,x)=>this.onKeyframesResolved(y,v,m,!x),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=ct.now(),Lv(t,i,s,a)||((St.instantAnimations||!l)&&c?.(os(t,r,n)),t[0]=t[t.length-1],ms(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>jv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!u&&Fv(m)?new Dv({...m,element:m.motionValue.owner.current}):new ss(m);g.finished.then(()=>this.notifyFinished()).catch(An),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ev()),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 Bv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zv(e){const t=Bv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Uv=4;function xu(e,t,n=1){jt(n<=Uv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=zv(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Sc(s)?parseFloat(s):s}return Hi(o)?xu(o,t,n+1):o}function Eu(e,t){return e?.[t]??e?.default??e}const Tu=new Set(["width","height","top","left","right","bottom",...Vn]),Kv={test:e=>e==="auto",parse:e=>e},$u=e=>t=>t.test(e),Cu=[On,ne,Mn,Rt,Nb,Db,Kv],Pu=e=>Cu.find($u(e));function Hv(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kc(e):!0}const Gv=new Set(["brightness","contrast","saturate","opacity"]);function Wv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Gi)||[];if(!r)return e;const o=n.replace(r,"");let i=Gv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const qv=/\b([a-z-]*)\(.*?\)/gu,gs={...Nn,getAnimatableNone:e=>{const t=e.match(qv);return t?t.map(Wv).join(" "):e}},Su={...On,transform:Math.round},bs={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne,...{rotate:Rt,rotateX:Rt,rotateY:Rt,rotateZ:Rt,scale:so,scaleX:so,scaleY:so,scaleZ:so,skew:Rt,skewX:Rt,skewY:Rt,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:pr,originX:qc,originY:qc,originZ:ne},zIndex:Su,fillOpacity:pr,strokeOpacity:pr,numOctaves:Su},Yv={...bs,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:gs,WebkitFilter:gs},ku=e=>Yv[e];function Iu(e,t){let n=ku(e);return n!==gs&&(n=Nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xv=new Set(["auto","none","0"]);function Jv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Xv.has(i)&&gr(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Iu(n,o)}class Zv extends hs{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Hi(u))){const c=xu(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Tu.has(r)||t.length!==2)return;const[o,i]=t,s=Pu(o),a=Pu(i);if(s!==a)if(du(s)&&du(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Zt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Hv(t[o]))&&r.push(o);r.length&&Jv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Zt[n](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 Qv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Au=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ou(e){return hb(e)&&"offsetHeight"in e}const Mu=30,e0=e=>!isNaN(parseFloat(e));class t0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ct.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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=n.owner}setCurrent(t){this.current=t,this.updatedAt=ct.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=e0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Bi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ac);const r=this.events[t].add(n);return t==="change"?()=>{r(),pt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&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=ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mu);return Oc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 fo(e,t){return new t0(e,t)}const{schedule:n0}=Kc(queueMicrotask,!1),r0={y:!1};function o0(){return r0.y}function Du(e,t){const n=Qv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Nu(e){return!(e.pointerType==="touch"||o0())}function i0(e,t,n={}){const[r,o,i]=Du(e,n),s=a=>{if(!Nu(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Nu(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Lu=(e,t)=>t?e===t?!0:Lu(e,t.parentElement):!1,s0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,a0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function l0(e){return a0.has(e.tagName)||e.tabIndex!==-1}const po=new WeakSet;function Vu(e){return t=>{t.key==="Enter"&&e(t)}}function vs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const c0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vu(()=>{if(po.has(n))return;vs(n,"down");const o=Vu(()=>{vs(n,"up")}),i=()=>vs(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _u(e){return s0(e)&&!0}function u0(e,t,n={}){const[r,o,i]=Du(e,n),s=a=>{const l=a.currentTarget;if(!_u(a))return;po.add(l);const u=t(l,a),c=(g,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),po.has(l)&&po.delete(l),_u(g)&&typeof u=="function"&&u(g,{success:y})},d=g=>{c(g,l===window||l===document||n.useGlobalTarget||Lu(l,g.target))},m=g=>{c(g,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",m,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Ou(a)&&(a.addEventListener("focus",u=>c0(u,o)),!l0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Ze=e=>!!(e&&e.getVelocity),d0=[...Cu,_e,Nn],f0=e=>d0.find($u(e)),ys=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p0 extends Kt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Ou(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h0({children:e,isPresent:t,anchorX:n,root:r}){const o=h.useId(),i=h.useRef(null),s=h.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=h.useContext(ys);return h.useInsertionEffect(()=>{const{width:l,height:u,top:c,left:d,right:m}=s.current;if(t||!i.current||!l||!u)return;const g=n==="left"?`left: ${d}`:`right: ${m}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const v=r??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
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(`
37
31
  [data-motion-pop-id="${o}"] {
38
32
  position: absolute !important;
39
33
  width: ${l}px !important;
40
- height: ${u}px !important;
41
- ${g}px !important;
42
- top: ${c}px !important;
34
+ height: ${c}px !important;
35
+ ${p}px !important;
36
+ top: ${u}px !important;
43
37
  }
44
- `),()=>{v.contains(y)&&v.removeChild(y)}},[t]),P.jsx(p0,{isPresent:t,childRef:i,sizeRef:s,children:Kt.cloneElement(e,{ref:i})})}const m0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const u=_i(g0),c=h.useId();let d=!0,m=h.useMemo(()=>(d=!1,{id:c,initial:t,isPresent:n,custom:o,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,r]);return i&&d&&(m={...m}),h.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Kt.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(h0,{isPresent:n,anchorX:a,root:l,children:e})),P.jsx(to.Provider,{value:m,children:e})};function g0(){return new Map}function b0(e=!0){const t=h.useContext(to);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=h.useId();h.useEffect(()=>{if(e)return o(i)},[e]);const s=h.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const ho=e=>e.key||"";function Fu(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const ju=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=b0(s),d=h.useMemo(()=>Fu(e),[e]),m=s&&!u?[]:d.map(ho),g=h.useRef(!0),y=h.useRef(d),v=_i(()=>new Map),[x,b]=h.useState(d),[$,A]=h.useState(d);Pc(()=>{g.current=!1,y.current=d;for(let O=0;O<$.length;O++){const L=ho($[O]);m.includes(L)?v.delete(L):v.get(L)!==!0&&v.set(L,!1)}},[$,m.length,m.join("-")]);const M=[];if(d!==x){let O=[...d];for(let L=0;L<$.length;L++){const S=$[L],V=ho(S);m.includes(V)||(O.splice(L,0,S),M.push(S))}return i==="wait"&&M.length&&(O=M),A(Fu(O)),b(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:I}=h.useContext(Cc);return P.jsx(P.Fragment,{children:$.map(O=>{const L=ho(O),S=s&&!u?!1:d===$||m.includes(L),V=()=>{if(v.has(L))v.set(L,!0);else return;let j=!0;v.forEach(f=>{f||(j=!1)}),j&&(I?.(),A(y.current),s&&c?.(),r&&r())};return P.jsx(m0,{isPresent:S,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:S?void 0:V,anchorX:a,children:O},L)})})},ws=h.createContext({strict:!1}),Ru={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"]},Fn={};for(const e in Ru)Fn[e]={isEnabled:t=>Ru[e].some(n=>!!t[n])};function xs(e){for(const t in e)Fn[t]={...Fn[t],...e[t]}}function Bu({children:e,features:t,strict:n=!1}){const[,r]=h.useState(!Es(t)),o=h.useRef(void 0);if(!Es(t)){const{renderer:i,...s}=t;o.current=i,xs(s)}return h.useEffect(()=>{Es(t)&&t().then(({renderer:i,...s})=>{xs(s),o.current=i,r(!0)})},[]),P.jsx(ws.Provider,{value:{renderer:o.current,strict:n},children:e})}function Es(e){return typeof e=="function"}const v0=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 mo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v0.has(e)}let zu=e=>!mo(e);function y0(e){typeof e=="function"&&(zu=t=>t.startsWith("on")?!mo(t):e(t))}try{y0(require("@emotion/is-prop-valid").default)}catch{}function w0(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(zu(o)||n===!0&&mo(o)||!t&&!mo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const go=h.createContext({});function bo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vr(e){return typeof e=="string"||Array.isArray(e)}const Ts=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$s=["initial",...Ts];function vo(e){return bo(e.animate)||$s.some(t=>vr(e[t]))}function Uu(e){return!!(vo(e)||e.variants)}function x0(e,t){if(vo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vr(n)?n:void 0,animate:vr(r)?r:void 0}}return e.inherit!==!1?t:{}}function E0(e){const{initial:t,animate:n}=x0(e,h.useContext(go));return h.useMemo(()=>({initial:t,animate:n}),[Ku(t),Ku(n)])}function Ku(e){return Array.isArray(e)?e.join(" "):e}const T0={};function Hu(e,{layout:t,layoutId:n}){return _n.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!T0[e]||e==="opacity")}const $0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},C0=Vn.length;function P0(e,t,n){let r="",o=!0;for(let i=0;i<C0;i++){const s=Vn[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||n){const u=Au(a,bs[s]);if(!l){o=!1;const c=$0[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Cs(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(_n.has(l)){s=!0;continue}else if(Gc(l)){o[l]=u;continue}else{const c=Au(u,bs[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=P0(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const Ps=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gu(e,t,n){for(const r in t)!Ze(t[r])&&!Hu(r,n)&&(e[r]=t[r])}function S0({transformTemplate:e},t){return h.useMemo(()=>{const n=Ps();return Cs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function k0(e,t){const n=e.style||{},r={};return Gu(r,n,e),Object.assign(r,S0(e,t)),r}function I0(e,t){const n={},r=k0(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const A0={offset:"stroke-dashoffset",array:"stroke-dasharray"},O0={offset:"strokeDashoffset",array:"strokeDasharray"};function M0(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?A0:O0;e[i.offset]=ne.transform(-r);const s=ne.transform(t),a=ne.transform(n);e[i.array]=`${s} ${a}`}function Wu(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,u,c){if(Cs(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&M0(d,o,i,s,!1)}const qu=()=>({...Ps(),attrs:{}}),Yu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D0(e,t,n,r){const o=h.useMemo(()=>{const i=qu();return Wu(i,t,Yu(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gu(i,e.style,e),o.style={...i,...o.style}}return o}const N0=["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 Ss(e){return typeof e!="string"||e.includes("-")?!1:!!(N0.indexOf(e)>-1||/[A-Z]/u.test(e))}function L0(e,t,n,{latestValues:r},o,i=!1){const a=(Ss(e)?D0:I0)(t,r,o,e),l=w0(t,typeof e=="string",i),u=e!==h.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=h.useMemo(()=>Ze(c)?c.get():c,[c]);return h.createElement(e,{...u,children:d})}function Xu(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ks(e,t,n,r){if(typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Xu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function V0(e){return Ze(e)?e.get():e}function _0({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:F0(n,r,o,e),renderState:t()}}function F0(e,t,n,r){const o={},i=r(e,{});for(const m in i)o[m]=V0(i[m]);let{initial:s,animate:a}=e;const l=vo(e),u=Uu(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!bo(d)){const m=Array.isArray(d)?d:[d];for(let g=0;g<m.length;g++){const y=ks(e,m[g]);if(y){const{transitionEnd:v,transition:x,...b}=y;for(const $ in b){let A=b[$];if(Array.isArray(A)){const M=c?A.length-1:0;A=A[M]}A!==null&&(o[$]=A)}for(const $ in v)o[$]=v[$]}}}return o}const Ju=e=>(t,n)=>{const r=h.useContext(go),o=h.useContext(to),i=()=>_0(e,t,r,o);return n?i():_i(i)};function Is(e,t,n){const{style:r}=e,o={};for(const i in r)(Ze(r[i])||t.style&&Ze(t.style[i])||Hu(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const j0=Ju({scrapeMotionValuesFromProps:Is,createRenderState:Ps});function Zu(e,t,n){const r=Is(e,t,n);for(const o in e)if(Ze(e[o])||Ze(t[o])){const i=Vn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const R0=Ju({scrapeMotionValuesFromProps:Zu,createRenderState:qu}),B0=Symbol.for("motionComponentSymbol");function Qu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function z0(e,t,n){return h.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qu(n)&&(n.current=r))},[t])}const As=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ed="data-"+As("framerAppearId"),U0=h.createContext({});function K0(e,t,n,r,o){const{visualElement:i}=h.useContext(go),s=h.useContext(ws),a=h.useContext(to),l=h.useContext(ys).reducedMotion,u=h.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=h.useContext(U0);c&&!c.projection&&o&&(c.type==="html"||c.type==="svg")&&H0(u.current,n,o,d);const m=h.useRef(!1);h.useInsertionEffect(()=>{c&&m.current&&c.update(n,a)});const g=n[ed],y=h.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Pc(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),y.current&&c.animationState&&c.animationState.animateChanges())}),h.useEffect(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),c.enteringChildren=void 0)}),c}function H0(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:td(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Qu(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function td(e){if(e)return e.options.allowProjection!==!1?e.projection:td(e.parent)}function Os(e,{forwardMotionProps:t=!1}={},n,r){n&&xs(n);const o=Ss(e)?R0:j0;function i(a,l){let u;const c={...h.useContext(ys),...a,layoutId:G0(a)},{isStatic:d}=c,m=E0(a),g=o(a,d);if(!d&&Fi){W0(c,n);const y=q0(c);u=y.MeasureLayout,m.visualElement=K0(e,g,c,r,y.ProjectionNode)}return P.jsxs(go.Provider,{value:m,children:[u&&m.visualElement?P.jsx(u,{visualElement:m.visualElement,...c}):null,L0(e,a,z0(g,m.visualElement,l),g,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=h.forwardRef(i);return s[B0]=e,s}function G0({layoutId:e}){const t=h.useContext(Cc).id;return t&&e!==void 0?t+"-"+e:e}function W0(e,t){const n=h.useContext(ws).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?In(!1,r,"lazy-strict-mode"):jt(!1,r,"lazy-strict-mode")}}function q0(e){const{drag:t,layout:n}=Fn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Y0(e,t){if(typeof Proxy>"u")return Os;const n=new Map,r=(i,s)=>Os(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Bi(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,Os(s,void 0,e,t)),n.get(s))})}const nd=Y0();function X0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J0(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Z0(e,t){return X0(J0(e.getBoundingClientRect(),t))}const rd=()=>({min:0,max:0}),od=()=>({x:rd(),y:rd()}),Ms={current:null},id={current:!1};function Q0(){if(id.current=!0,!!Fi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ms.current=e.matches;e.addEventListener("change",t),t()}else Ms.current=!1}const ey=new WeakMap;function ty(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ze(o))e.addValue(r,o);else if(Ze(i))e.addValue(r,fo(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,fo(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const sd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ny{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,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=hs,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 m=ct.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,pt.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=vo(n),this.isVariantNode=Uu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in d){const g=d[m];l[m]!==void 0&&Ze(g)&&g.set(l[m])}}mount(t){this.current=t,ey.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((n,r)=>this.bindToMotionValue(r,n)),id.current||Q0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ms.current,process.env.NODE_ENV!=="production"&&Bi(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(),Ki(this.notifyUpdate),Ki(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 n=this.features[t];n&&(n.unmount(),n.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,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_n.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&pt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.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 Fn){const n=Fn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(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):od()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<sd.length;r++){const o=sd[r];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=ty(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Sc(r)||kc(r))?r=parseFloat(r):!f0(r)&&Nn.test(n)&&(r=Iu(t,n)),this.setBaseTarget(t,Ze(r)?r.get():r)),Ze(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=ks(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ze(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ac),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){n0.render(this.render)}}class ad extends ny{constructor(){super(...arguments),this.KeyframeResolver=Zv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ze(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ld(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function ry(e){return window.getComputedStyle(e)}class oy extends ad{constructor(){super(...arguments),this.type="html",this.renderInstance=ld}readValueFromInstance(t,n){if(_n.has(n))return this.projection?.isProjecting?cs(n):bv(t,n);{const r=ry(t),o=(Gc(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Z0(t,n)}build(t,n,r){Cs(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Is(t,n,r)}}const cd=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 iy(e,t,n,r){ld(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(cd.has(o)?o:As(o),t.attrs[o])}class sy extends ad{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=od}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_n.has(n)){const r=ku(n);return r&&r.default||0}return n=cd.has(n)?n:As(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zu(t,n,r)}build(t,n,r){Wu(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){iy(t,n,r,o)}mount(t){this.isSVGTag=Yu(t.tagName),super.mount(t)}}const ay=(e,t)=>Ss(e)?new sy(t):new oy(t,{allowProjection:e!==h.Fragment});function jn(e,t,n){const r=e.getProps();return ks(r,t,n!==void 0?n:r.custom,e)}const Ds=e=>Array.isArray(e);function ly(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fo(n))}function cy(e){return Ds(e)?e[e.length-1]||0:e}function uy(e,t){const n=jn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=cy(i[s]);ly(e,s,a)}}function dy(e){return!!(Ze(e)&&e.add)}function fy(e,t){const n=e.getValue("willChange");if(dy(n))return n.add(t);if(!n&&St.WillChange){const r=new St.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function py(e){return e.props[ed]}const hy=e=>e!==null;function my(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(hy),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const gy={type:"spring",stiffness:500,damping:25,restSpeed:10},by=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vy={type:"keyframes",duration:.8},yy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wy=(e,{keyframes:t})=>t.length>2?vy:_n.has(e)?e.startsWith("scale")?by(t[1]):gy:yy;function xy({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ey=(e,t,n,r={},o,i)=>s=>{const a=Eu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-vt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};xy(a)||Object.assign(c,wy(e,c)),c.duration&&(c.duration=vt(c.duration)),c.repeatDelay&&(c.repeatDelay=vt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ms(c),c.delay===0&&(d=!0)),(St.instantAnimations||St.skipAnimations)&&(d=!0,ms(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const m=my(c.keyframes,a);if(m!==void 0){pt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return a.isSync?new ss(c):new Rv(c)};function Ty({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ud(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),m=a[c];if(m===void 0||u&&Ty(u,c))continue;const g={delay:n,...Eu(i||{},c)},y=d.get();if(y!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===y&&!g.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const b=py(e);if(b){const $=window.MotionHandoffAnimation(b,c,pt);$!==null&&(g.startTime=$,v=!0)}}fy(e,c),d.start(Ey(c,d,m,e.shouldReduceMotion&&Tu.has(c)?{type:!1}:g,e,v));const x=d.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{pt.update(()=>{s&&uy(e,s)})}),l}function dd(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Ns(e,t,n={}){const r=jn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ud(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return $y(e,t,l,u,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function $y(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ns(l,t,{...s,delay:n+(typeof r=="function"?0:r)+dd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Cy(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ns(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ns(e,t,n);else{const o=typeof t=="function"?jn(e,t,n.custom):t;r=Promise.all(ud(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function fd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Py=$s.length;function pd(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pd(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Py;n++){const r=$s[n],o=e.props[r];(vr(o)||o===!1)&&(t[r]=o)}return t}const Sy=[...Ts].reverse(),ky=Ts.length;function Iy(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Cy(e,n,r)))}function Ay(e){let t=Iy(e),n=hd(),r=!0;const o=l=>(u,c)=>{const d=jn(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:g,...y}=d;u={...u,...y,...g}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=pd(e.parent)||{},d=[],m=new Set;let g={},y=1/0;for(let x=0;x<ky;x++){const b=Sy[x],$=n[b],A=u[b]!==void 0?u[b]:c[b],M=vr(A),I=b===l?$.isActive:null;I===!1&&(y=x);let O=A===c[b]&&A!==u[b]&&M;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),$.protectedKeys={...g},!$.isActive&&I===null||!A&&!$.prevProp||bo(A)||typeof A=="boolean")continue;const L=Oy($.prevProp,A);let S=L||b===l&&$.isActive&&!O&&M||x>y&&M,V=!1;const j=Array.isArray(A)?A:[A];let f=j.reduce(o(b),{});I===!1&&(f={});const{prevResolvedValues:k={}}=$,D={...k,...f},w=C=>{S=!0,m.has(C)&&(V=!0,m.delete(C)),$.needsAnimating[C]=!0;const E=e.getValue(C);E&&(E.liveStyle=!1)};for(const C in D){const E=f[C],B=k[C];if(g.hasOwnProperty(C))continue;let H=!1;Ds(E)&&Ds(B)?H=!fd(E,B):H=E!==B,H?E!=null?w(C):m.add(C):E!==void 0&&m.has(C)?w(C):$.protectedKeys[C]=!0}$.prevProp=A,$.prevResolvedValues=f,$.isActive&&(g={...g,...f}),r&&e.blockInitialAnimation&&(S=!1);const N=O&&L;S&&(!N||V)&&d.push(...j.map(C=>{const E={type:b};if(typeof C=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,H=jn(B,C);if(B.enteringChildren&&H){const{delayChildren:X}=H.transition||{};E.delay=dd(B.enteringChildren,e,X)}}return{animation:C,options:E}}))}if(m.size){const x={};if(typeof u.initial!="boolean"){const b=jn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(x.transition=b.transition)}m.forEach(b=>{const $=e.getBaseTarget(b),A=e.getValue(b);A&&(A.liveStyle=!0),x[b]=$??null}),d.push({animation:x})}let v=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=hd(),r=!0}}}function Oy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fd(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hd(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class Rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class My extends Rn{constructor(t){super(t),t.animationState||(t.animationState=Ay(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Dy=0;class Ny extends Rn{constructor(){super(...arguments),this.id=Dy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Ly={animation:{Feature:My},exit:{Feature:Ny}};function md(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}function bd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&pt.postRender(()=>i(t,gd(t)))}class Vy extends Rn{mount(){const{current:t}=this.node;t&&(this.unmount=i0(t,(n,r)=>(bd(this.node,r,"Start"),o=>bd(this.node,o,"End"))))}unmount(){}}class _y extends Rn{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=no(md(this.node.current,"focus",()=>this.onFocus()),md(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&pt.postRender(()=>i(t,gd(t)))}class Fy extends Rn{mount(){const{current:t}=this.node;t&&(this.unmount=u0(t,(n,r)=>(vd(this.node,r,"Start"),(o,{success:i})=>vd(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ls=new WeakMap,Vs=new WeakMap,jy=e=>{const t=Ls.get(e.target);t&&t(e)},Ry=e=>{e.forEach(jy)};function By({root:e,...t}){const n=e||document;Vs.has(n)||Vs.set(n,{});const r=Vs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ry,{root:e,...t})),r[o]}function zy(e,t,n){const r=By(t);return Ls.set(e,n),r.observe(e),()=>{Ls.delete(e),r.unobserve(e)}}const Uy={some:0,all:1};class Ky extends Rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Uy[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=u?c:d;m&&m(l)};return zy(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Hy(t,n))&&this.startObserver()}unmount(){}}function Hy({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Gy={renderer:ay,...Ly,...{inView:{Feature:Ky},tap:{Feature:Fy},focus:{Feature:_y},hover:{Feature:Vy}}},yt={top:"top",bottom:"top",left:"left",right:"left"},yo={top:"bottom",bottom:"top",left:"right",right:"left"},Wy={top:"left",left:"top"},_s={top:"height",left:"width"},yd={width:"totalWidth",height:"totalHeight"},wo={};let Ke=typeof document<"u"?window.visualViewport:null;function wd(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={};var l;let u=((l=Ke?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,o=y.clientHeight;var c;t=(c=Ke?.width)!==null&&c!==void 0?c:r;var d;n=(d=Ke?.height)!==null&&d!==void 0?d:o,a.top=y.scrollTop||e.scrollTop,a.left=y.scrollLeft||e.scrollLeft,Ke&&(i=Ke.offsetTop,s=Ke.offsetLeft)}else({width:t,height:n,top:i,left:s}=Bn(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;if(hc()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){a.top=0,a.left=0;var m;i=(m=Ke?.pageTop)!==null&&m!==void 0?m:0;var g;s=(g=Ke?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function qy(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function xd(e,t,n,r,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,u=r[_s[e]],c=r.scroll[yt[e]]+i,d=u+r.scroll[yt[e]]-i,m=t-l+s[e]-r[yt[e]],g=t-l+n+s[e]-r[yt[e]];return m<c?c-m:g>d?Math.max(d-g,c-m):0}function Yy(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 Ed(e){if(wo[e])return wo[e];let[t,n]=e.split(" "),r=yt[t]||"right",o=Wy[r];yt[n]||(n="center");let i=_s[r],s=_s[o];return wo[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},wo[e]}function Fs(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:m,crossAxis:g,size:y,crossSize:v}=r,x={};var b;x[g]=(b=e[g])!==null&&b!==void 0?b:0;var $,A,M,I;d==="center"?x[g]+=((($=e[v])!==null&&$!==void 0?$:0)-((A=n[v])!==null&&A!==void 0?A:0))/2:d!==g&&(x[g]+=((M=e[v])!==null&&M!==void 0?M:0)-((I=n[v])!==null&&I!==void 0?I:0)),x[g]+=i;const O=e[g]-n[v]+l+u,L=e[g]+e[v]-l-u;if(x[g]=Tn(x[g],O,L),c===m){const S=a?s[y]:t[yd[y]];x[yo[m]]=Math.floor(S-e[m]+o)}else x[m]=Math.floor(e[m]+e[y]+o);return x}function Xy(e,t,n,r,o,i,s,a){const l=r?n.height:t[yd.height];var u;let c=e.top!=null?n.top+e.top:n.top+(l-((u=e.bottom)!==null&&u!==void 0?u:0)-s);var d,m,g,y,v,x;let b=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((m=o.top)!==null&&m!==void 0?m:0)+((g=o.bottom)!==null&&g!==void 0?g:0)+i)):Math.max(0,c+s-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((v=o.top)!==null&&v!==void 0?v:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,b)}function Td(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;var u,c;if(s===a)return Math.max(0,n[a]-e[a]-((u=e.scroll[a])!==null&&u!==void 0?u:0)+t[a]-((c=r[a])!==null&&c!==void 0?c:0)-r[yo[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-((d=r[a])!==null&&d!==void 0?d:0)-r[yo[a]]-o)}function Jy(e,t,n,r,o,i,s,a,l,u,c,d,m,g,y,v){let x=Ed(e),{size:b,crossAxis:$,crossSize:A,placement:M,crossPlacement:I}=x,O=Fs(t,a,n,x,c,d,u,m,y,v),L=c,S=Td(a,u,t,o,i+c,x);if(s&&r[b]>S){let K=Ed(`${yo[M]} ${I}`),se=Fs(t,a,n,K,c,d,u,m,y,v);Td(a,u,t,o,i+c,K)>S&&(x=K,O=se,L=c)}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 j=xd($,O[$],n[A],a,l,i,u);O[$]+=j;let f=Xy(O,a,u,m,o,i,n.height,V);g&&g<f&&(f=g),n.height=Math.min(n.height,f),O=Fs(t,a,n,x,L,d,u,m,y,v),j=xd($,O[$],n[A],a,l,i,u),O[$]+=j;let k={},D=t[$]+.5*t[A]-O[$]-o[yt[$]];const w=y/2+v;var N,p,C,E;const B=yt[$]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((p=o.right)!==null&&p!==void 0?p:0):((C=o.top)!==null&&C!==void 0?C:0)+((E=o.bottom)!==null&&E!==void 0?E:0),H=n[A]-B-y/2-v,X=t[$]+y/2-(O[$]+o[yt[$]]),_=t[$]+t[A]-y/2-(O[$]+o[yt[$]]),z=Tn(D,X,_);return k[$]=Tn(z,w,H),{position:O,maxHeight:f,arrowOffsetLeft:k.left,arrowOffsetTop:k.top,placement:x.placement}}function Zy(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?Qy(r):document.documentElement,y=g===document.documentElement;const v=window.getComputedStyle(g).position;let x=!!v&&v!=="static",b=y?Bn(n):$d(n,g);if(!y){let{marginTop:k,marginLeft:D}=window.getComputedStyle(n);b.top+=parseInt(k,10)||0,b.left+=parseInt(D,10)||0}let $=Bn(r),A=Yy(r);var M,I;$.width+=((M=A.left)!==null&&M!==void 0?M:0)+((I=A.right)!==null&&I!==void 0?I:0);var O,L;$.height+=((O=A.top)!==null&&O!==void 0?O:0)+((L=A.bottom)!==null&&L!==void 0?L:0);let S=qy(o),V=wd(a),j=wd(g),f=a.tagName==="BODY"?Bn(g):$d(g,a);return g.tagName==="HTML"&&a.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),Jy(t,b,$,S,A,i,s,V,j,f,l,u,x,c,d,m)}function Bn(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:n+s-l,width:r,height:o}}function $d(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:o,left:i,width:s,height:a}=e.getBoundingClientRect();r={top:o,left:i,width:s,height:a}}else{r=Bn(e);let o=Bn(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=o.top,r.left-=o.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Qy(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Cd(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Cd(t);)t=t.parentElement;return t||document.documentElement}function Cd(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 e1=new WeakMap;function t1(e){let{triggerRef:t,isOpen:n,onClose:r}=e;h.useEffect(()=>{if(!n||r===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=r||e1.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Ne=typeof document<"u"?window.visualViewport:null;function n1(e){let{direction:t}=ar(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:x=0}=e,[b,$]=h.useState(null),A=[m,s,o.current,r.current,i.current,a,l,u,c,d,g,t,v,x,n],M=h.useRef(Ne?.scale);h.useEffect(()=>{g&&(M.current=Ne?.scale)},[g]);let I=h.useCallback(()=>{if(m===!1||!g||!o.current||!r.current||!u||Ne?.scale!==M.current)return;let j=null;if(i.current&&i.current.contains(document.activeElement)){var f;let E=(f=document.activeElement)===null||f===void 0?void 0:f.getBoundingClientRect(),B=i.current.getBoundingClientRect();var k;if(j={type:"top",offset:((k=E?.top)!==null&&k!==void 0?k:0)-B.top},j.offset>B.height/2){j.type="bottom";var D;j.offset=((D=E?.bottom)!==null&&D!==void 0?D:0)-B.bottom}}let w=o.current;if(!v&&o.current){var N;w.style.top="0px",w.style.bottom="";var p;w.style.maxHeight=((p=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&p!==void 0?p:window.innerHeight)+"px"}let C=Zy({placement:o1(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current||o.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:v,arrowSize:n,arrowBoundaryOffset:x});if(C.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(C.position).forEach(E=>w.style[E]=C.position[E]+"px"),w.style.maxHeight=C.maxHeight!=null?C.maxHeight+"px":"",j&&document.activeElement&&i.current){let E=document.activeElement.getBoundingClientRect(),B=i.current.getBoundingClientRect(),H=E[j.type]-B[j.type];i.current.scrollTop+=H-j.offset}$(C)}},A);bt(I,A),r1(I),vc({ref:o,onResize:I}),vc({ref:r,onResize:I});let O=h.useRef(!1);bt(()=>{let j,f=()=>{O.current=!0,clearTimeout(j),j=setTimeout(()=>{O.current=!1},500),I()},k=()=>{O.current&&f()};return Ne?.addEventListener("resize",f),Ne?.addEventListener("scroll",k),()=>{Ne?.removeEventListener("resize",f),Ne?.removeEventListener("scroll",k)}},[I]);let L=h.useCallback(()=>{O.current||y?.()},[y,O]);t1({triggerRef:r,isOpen:g,onClose:y&&L});var S,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...b?.position,maxHeight:(S=b?.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(V=b?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b?.arrowOffsetLeft,top:b?.arrowOffsetTop}},updatePosition:I}}function r1(e){bt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function o1(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function js(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Pd(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Sd(e){let t=h.useRef({isFocused:!1,observer:null});bt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ue(r=>{e?.(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=js(s);n(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"]})}},[n])}let xo=!1;function kd(e){for(;e&&!ab(e);)e=e.parentElement;let t=lt(e),n=t.document.activeElement;if(!n||n===e)return;xo=!0;let r=!1,o=c=>{(c.target===n||r)&&c.stopImmediatePropagation()},i=c=>{(c.target===n||r)&&(c.stopImmediatePropagation(),!e&&!r&&(r=!0,qt(n),l()))},s=c=>{(c.target===e||r)&&c.stopImmediatePropagation()},a=c=>{(c.target===e||r)&&(c.stopImmediatePropagation(),r||(r=!0,qt(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),xo=!1,r=!1},u=requestAnimationFrame(l);return l}let zn="default",Rs="",Eo=new WeakMap;function Bs(e){if(Mi()){if(zn==="default"){const t=We(e);Rs=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}zn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Eo.set(e,e.style[t]),e.style[t]="none"}}function To(e){if(Mi()){if(zn!=="disabled")return;zn="restoring",setTimeout(()=>{bc(()=>{if(zn==="restoring"){const t=We(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Rs||""),Rs="",zn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Eo.has(e)){let t=Eo.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Eo.delete(e)}}const Id=h.createContext({register:()=>{}});Id.displayName="PressResponderContext";function i1(e){let t=h.useContext(Id);if(t){let{register:n,...r}=t;e=Be(r,e),n()}return yc(t,e.ref),e}var $o=new WeakMap;class Co{continuePropagation(){Hr(this,$o,!1)}get shouldStopPropagation(){return Kl(this,$o)}constructor(t,n,r,o){Hl(this,$o,{writable:!0,value:void 0}),Hr(this,$o,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Ad=Symbol("linkClicked"),Od="react-aria-pressable-style",Md="data-react-aria-pressable";function Un(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:m,...g}=i1(e),[y,v]=h.useState(!1),x=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:$}=kn(),A=Ue((f,k)=>{let D=x.current;if(a||D.didFirePressStart)return!1;let w=!0;if(D.isTriggeringEvent=!0,r){let N=new Co("pressstart",k,f);r(N),w=N.shouldStopPropagation}return n&&n(!0),D.isTriggeringEvent=!1,D.didFirePressStart=!0,v(!0),w}),M=Ue((f,k,D=!0)=>{let w=x.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let N=!0;if(o){let p=new Co("pressend",k,f);o(p),N=p.shouldStopPropagation}if(n&&n(!1),v(!1),t&&D&&!a){let p=new Co("press",k,f);t(p),N&&(N=p.shouldStopPropagation)}return w.isTriggeringEvent=!1,N}),I=Ue((f,k)=>{let D=x.current;if(a)return!1;if(i){D.isTriggeringEvent=!0;let w=new Co("pressup",k,f);return i(w),D.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),O=Ue(f=>{let k=x.current;if(k.isPressed&&k.target){k.didFirePressStart&&k.pointerType!=null&&M(tn(k.target,f),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,$(),d||To(k.target);for(let D of k.disposables)D();k.disposables=[]}}),L=Ue(f=>{c&&O(f)}),S=Ue(f=>{s?.(f)}),V=Ue((f,k)=>{if(s){let D=new MouseEvent("click",f);Pd(D,k),s(js(D))}}),j=h.useMemo(()=>{let f=x.current,k={onKeyDown(w){if(Us(w.nativeEvent,w.currentTarget)&&Me(w.currentTarget,Pe(w.nativeEvent))){var N;Ld(Pe(w.nativeEvent),w.key)&&w.preventDefault();let p=!0;if(!f.isPressed&&!w.repeat){f.target=w.currentTarget,f.isPressed=!0,f.pointerType="keyboard",p=A(w,"keyboard");let C=w.currentTarget,E=B=>{Us(B,C)&&!B.repeat&&Me(C,Pe(B))&&f.target&&I(tn(f.target,B),"keyboard")};b(We(w.currentTarget),"keyup",dc(E,D),!0)}p&&w.stopPropagation(),w.metaKey&&Sn()&&((N=f.metaKeyEvents)===null||N===void 0||N.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick(w){if(!(w&&!Me(w.currentTarget,Pe(w.nativeEvent)))&&w&&w.button===0&&!f.isTriggeringEvent&&!dr.isOpening){let N=!0;if(a&&w.preventDefault(),!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||Ni(w.nativeEvent))){let p=A(w,"virtual"),C=I(w,"virtual"),E=M(w,"virtual");S(w),N=p&&C&&E}else if(f.isPressed&&f.pointerType!=="keyboard"){let p=f.pointerType||w.nativeEvent.pointerType||"virtual",C=I(tn(w.currentTarget,w),p),E=M(tn(w.currentTarget,w),p,!0);N=C&&E,f.isOverTarget=!1,S(w),O(w)}f.ignoreEmulatedMouseEvents=!1,N&&w.stopPropagation()}}},D=w=>{var N;if(f.isPressed&&f.target&&Us(w,f.target)){var p;Ld(Pe(w),w.key)&&w.preventDefault();let E=Pe(w),B=Me(f.target,Pe(w));M(tn(f.target,w),"keyboard",B),B&&V(w,f.target),$(),w.key!=="Enter"&&zs(f.target)&&Me(f.target,E)&&!w[Ad]&&(w[Ad]=!0,dr(f.target,w,!1)),f.isPressed=!1,(p=f.metaKeyEvents)===null||p===void 0||p.delete(w.key)}else if(w.key==="Meta"&&(!((N=f.metaKeyEvents)===null||N===void 0)&&N.size)){var C;let E=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let B of E.values())(C=f.target)===null||C===void 0||C.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){k.onPointerDown=p=>{if(p.button!==0||!Me(p.currentTarget,Pe(p.nativeEvent)))return;if(nb(p.nativeEvent)){f.pointerType="virtual";return}f.pointerType=p.pointerType;let C=!0;if(!f.isPressed){f.isPressed=!0,f.isOverTarget=!0,f.activePointerId=p.pointerId,f.target=p.currentTarget,d||Bs(f.target),C=A(p,f.pointerType);let E=Pe(p.nativeEvent);"releasePointerCapture"in E&&E.releasePointerCapture(p.pointerId),b(We(p.currentTarget),"pointerup",w,!1),b(We(p.currentTarget),"pointercancel",N,!1)}C&&p.stopPropagation()},k.onMouseDown=p=>{if(Me(p.currentTarget,Pe(p.nativeEvent))&&p.button===0){if(u){let C=kd(p.target);C&&f.disposables.push(C)}p.stopPropagation()}},k.onPointerUp=p=>{!Me(p.currentTarget,Pe(p.nativeEvent))||f.pointerType==="virtual"||p.button===0&&!f.isPressed&&I(p,f.pointerType||p.pointerType)},k.onPointerEnter=p=>{p.pointerId===f.activePointerId&&f.target&&!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,A(tn(f.target,p),f.pointerType))},k.onPointerLeave=p=>{p.pointerId===f.activePointerId&&f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,M(tn(f.target,p),f.pointerType,!1),L(p))};let w=p=>{if(p.pointerId===f.activePointerId&&f.isPressed&&p.button===0&&f.target){if(Me(f.target,Pe(p))&&f.pointerType!=null){let C=!1,E=setTimeout(()=>{f.isPressed&&f.target instanceof HTMLElement&&(C?O(p):(qt(f.target),f.target.click()))},80);b(p.currentTarget,"click",()=>C=!0,!0),f.disposables.push(()=>clearTimeout(E))}else O(p);f.isOverTarget=!1}},N=p=>{O(p)};k.onDragStart=p=>{Me(p.currentTarget,Pe(p.nativeEvent))&&O(p)}}else if(process.env.NODE_ENV==="test"){k.onMouseDown=p=>{if(p.button!==0||!Me(p.currentTarget,Pe(p.nativeEvent)))return;if(f.ignoreEmulatedMouseEvents){p.stopPropagation();return}if(f.isPressed=!0,f.isOverTarget=!0,f.target=p.currentTarget,f.pointerType=Ni(p.nativeEvent)?"virtual":"mouse",Xo.flushSync(()=>A(p,f.pointerType))&&p.stopPropagation(),u){let E=kd(p.target);E&&f.disposables.push(E)}b(We(p.currentTarget),"mouseup",w,!1)},k.onMouseEnter=p=>{if(!Me(p.currentTarget,Pe(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,C=A(p,f.pointerType)),C&&p.stopPropagation()},k.onMouseLeave=p=>{if(!Me(p.currentTarget,Pe(p.nativeEvent)))return;let C=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,C=M(p,f.pointerType,!1),L(p)),C&&p.stopPropagation()},k.onMouseUp=p=>{Me(p.currentTarget,Pe(p.nativeEvent))&&!f.ignoreEmulatedMouseEvents&&p.button===0&&!f.isPressed&&I(p,f.pointerType||"mouse")};let w=p=>{if(p.button===0){if(f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&f.target.contains(p.target)&&f.pointerType!=null||O(p),f.isOverTarget=!1}};k.onTouchStart=p=>{if(!Me(p.currentTarget,Pe(p.nativeEvent)))return;let C=s1(p.nativeEvent);if(!C)return;f.activePointerId=C.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,f.target=p.currentTarget,f.pointerType="touch",d||Bs(f.target),A(Bt(f.target,p),f.pointerType)&&p.stopPropagation(),b(lt(p.currentTarget),"scroll",N,!0)},k.onTouchMove=p=>{if(!Me(p.currentTarget,Pe(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Dd(p.nativeEvent,f.activePointerId),E=!0;C&&Nd(C,p.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,E=A(Bt(f.target,p),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,E=M(Bt(f.target,p),f.pointerType,!1),L(Bt(f.target,p))),E&&p.stopPropagation()},k.onTouchEnd=p=>{if(!Me(p.currentTarget,Pe(p.nativeEvent)))return;if(!f.isPressed){p.stopPropagation();return}let C=Dd(p.nativeEvent,f.activePointerId),E=!0;C&&Nd(C,p.currentTarget)&&f.pointerType!=null?(I(Bt(f.target,p),f.pointerType),E=M(Bt(f.target,p),f.pointerType),V(p.nativeEvent,f.target)):f.isOverTarget&&f.pointerType!=null&&(E=M(Bt(f.target,p),f.pointerType,!1)),E&&p.stopPropagation(),f.isPressed=!1,f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!d&&To(f.target),$()},k.onTouchCancel=p=>{Me(p.currentTarget,Pe(p.nativeEvent))&&(p.stopPropagation(),f.isPressed&&O(Bt(f.target,p)))};let N=p=>{f.isPressed&&Me(Pe(p),f.target)&&O({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=p=>{Me(p.currentTarget,Pe(p.nativeEvent))&&O(p)}}return k},[b,a,u,$,d,O,L,M,A,I,S,V]);return h.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const f=We(m.current);if(!f||!f.head||f.getElementById(Od))return;const k=f.createElement("style");k.id=Od,k.textContent=`
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=`
45
39
  @layer {
46
- [${Md}] {
40
+ [${Bh}] {
47
41
  touch-action: pan-x pan-y pinch-zoom;
48
42
  }
49
43
  }
50
- `.trim(),f.head.prepend(k)},[m]),h.useEffect(()=>{let f=x.current;return()=>{var k;d||To((k=f.target)!==null&&k!==void 0?k:void 0);for(let D of f.disposables)D();f.disposables=[]}},[d]),{isPressed:l||y,pressProps:Be(g,j,{[Md]:!0})}}function zs(e){return e.tagName==="A"&&e.hasAttribute("href")}function Us(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof lt(o).HTMLInputElement&&!Vd(o,n)||o instanceof lt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&zs(o))&&n!=="Enter")}function s1(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Dd(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Bt(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function tn(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function a1(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function l1(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Nd(e,t){let n=t.getBoundingClientRect(),r=a1(e);return l1(n,r)}function c1(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!zs(e)}function Ld(e,t){return e instanceof HTMLInputElement?!Vd(e,t):c1(e)}const u1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Vd(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":u1.has(e.type)}let nn=null,Ks=new Set,yr=new Map,rn=!1,Hs=!1;const d1={Tab:!0,Escape:!0};function Po(e,t){for(let n of Ks)n(e,t)}function f1(e){return!(e.metaKey||!Sn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function So(e){rn=!0,f1(e)&&(nn="keyboard",Po("keyboard",e))}function ut(e){nn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(rn=!0,Po("pointer",e))}function _d(e){Ni(e)&&(rn=!0,nn="virtual")}function Fd(e){e.target===window||e.target===document||xo||!e.isTrusted||(!rn&&!Hs&&(nn="virtual",Po("virtual",e)),rn=!1,Hs=!1)}function jd(){xo||(rn=!1,Hs=!0)}function Gs(e){if(typeof window>"u"||typeof document>"u"||yr.get(lt(e)))return;const t=lt(e),n=We(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){rn=!0,r.apply(this,arguments)},n.addEventListener("keydown",So,!0),n.addEventListener("keyup",So,!0),n.addEventListener("click",_d,!0),t.addEventListener("focus",Fd,!0),t.addEventListener("blur",jd,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ut,!0),n.addEventListener("pointermove",ut,!0),n.addEventListener("pointerup",ut,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ut,!0),n.addEventListener("mousemove",ut,!0),n.addEventListener("mouseup",ut,!0)),t.addEventListener("beforeunload",()=>{Rd(e)},{once:!0}),yr.set(t,{focus:r})}const Rd=(e,t)=>{const n=lt(e),r=We(e);t&&r.removeEventListener("DOMContentLoaded",t),yr.has(n)&&(n.HTMLElement.prototype.focus=yr.get(n).focus,r.removeEventListener("keydown",So,!0),r.removeEventListener("keyup",So,!0),r.removeEventListener("click",_d,!0),n.removeEventListener("focus",Fd,!0),n.removeEventListener("blur",jd,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ut,!0),r.removeEventListener("pointermove",ut,!0),r.removeEventListener("pointerup",ut,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ut,!0),r.removeEventListener("mousemove",ut,!0),r.removeEventListener("mouseup",ut,!0)),yr.delete(n))};function p1(e){const t=We(e);let n;return t.readyState!=="loading"?Gs(e):(n=()=>{Gs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Rd(e,n)}typeof document<"u"&&p1();function Ws(){return nn!=="pointer"}function Bd(){return nn}function zd(e){nn=e,Po(e,null)}const h1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function m1(e,t,n){let r=We(n?.target);const o=typeof window<"u"?lt(n?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?lt(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?lt(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?lt(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!h1.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!d1[n.key])}function g1(e,t,n){Gs(),h.useEffect(()=>{let r=(o,i)=>{m1(!!n?.isTextInput,o,i)&&e(Ws())};return Ks.add(r),()=>{Ks.delete(r)}},t)}function b1(e){const t=We(e),n=ur(t);if(Bd()==="virtual"){let r=n;bc(()=>{ur(t)===r&&e.isConnected&&qt(e)})}else qt(e)}function Ud(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Sd(i),a=h.useCallback(l=>{const u=We(l.target),c=u?ur(u):ur();l.target===l.currentTarget&&c===Pe(l.nativeEvent)&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}function Kd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.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(r),t&&n.stopPropagation()}}function Hd(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Kd(e.onKeyDown),onKeyUp:Kd(e.onKeyUp)}}}let v1=h.createContext(null);function y1(e){let t=h.useContext(v1)||{};yc(t,e);let{ref:n,...r}=t;return r}function ko(e,t){let{focusProps:n}=Ud(e),{keyboardProps:r}=Hd(e),o=Be(n,r),i=y1(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);h.useEffect(()=>{a.current&&t.current&&b1(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Be({...o,tabIndex:l},s)}}function Io(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=kn(),l=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(d),o&&o(!1))},[n,o,i,a]),u=Sd(l),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const m=We(d.target),g=ur(m);if(!i.current.isFocusWithin&&g===Pe(d.nativeEvent)){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let y=d.currentTarget;s(m,"focus",v=>{if(i.current.isFocusWithin&&!Me(y,v.target)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:v.target});Pd(x,y);let b=js(x);l(b)}},{capture:!0})}},[r,o,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let Ao=!1,Oo=0;function qs(){Ao=!0,setTimeout(()=>{Ao=!1},50)}function Gd(e){e.pointerType==="touch"&&qs()}function w1(){if(!(typeof document>"u"))return Oo===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qs)),Oo++,()=>{Oo--,!(Oo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qs))}}function on(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=h.useState(!1),a=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect(w1,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=kn(),{hoverProps:c,triggerHoverEnd:d}=h.useMemo(()=>{let m=(v,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!v.currentTarget.contains(v.target))return;a.isHovered=!0;let b=v.currentTarget;a.target=b,l(We(v.target),"pointerover",$=>{a.isHovered&&a.target&&!Me(a.target,$.target)&&g($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:x}),n&&n(!0),s(!0)},g=(v,x)=>{let b=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!b)&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:b,pointerType:x}),n&&n(!1),s(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=v=>{Ao&&v.pointerType==="mouse"||m(v,v.pointerType)},y.onPointerLeave=v=>{!o&&v.currentTarget.contains(v.target)&&g(v,v.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=v=>{!a.ignoreEmulatedMouseEvents&&!Ao&&m(v,"mouse"),a.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=v=>{!o&&v.currentTarget.contains(v.target)&&g(v,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[t,n,r,o,a,l,u]);return h.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:c,isHovered:i}}function x1(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Ue(l=>{n&&Mo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Ue(l=>{n&&n(l)});h.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=We(u);if(typeof PointerEvent<"u"){let d=m=>{l.isPointerDown&&Mo(m,t)&&a(m),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Mo(g,t)&&a(g),l.isPointerDown=!1},m=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Mo(g,t)&&a(g),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",m,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",m,!0)}}},[t,r,s,a])}function Mo(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function Wd(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=h.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=kn(),a=Ue((c,d,m,g)=>{m===0&&g===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n?.({type:"move",pointerType:d,deltaX:m,deltaY:g,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Ue((c,d)=>{To(),o.current.didMove&&r?.({type:"moveend",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})});return{moveProps:h.useMemo(()=>{let c={},d=()=>{Bs(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let g=b=>{if(b.button===0){var $,A,M,I;a(b,"mouse",b.pageX-((M=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&M!==void 0?M:0),b.pageY-((I=(A=o.current.lastPosition)===null||A===void 0?void 0:A.pageY)!==null&&I!==void 0?I:0)),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{b.button===0&&(l(b,"mouse"),s(window,"mousemove",g,!1),s(window,"mouseup",y,!1))};c.onMouseDown=b=>{b.button===0&&(d(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:b.pageX,pageY:b.pageY},i(window,"mousemove",g,!1),i(window,"mouseup",y,!1))};let v=b=>{let $=[...b.changedTouches].findIndex(({identifier:L})=>L===o.current.id);if($>=0){var A,M;let{pageX:L,pageY:S}=b.changedTouches[$];var I,O;a(b,"touch",L-((I=(A=o.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&I!==void 0?I:0),S-((O=(M=o.current.lastPosition)===null||M===void 0?void 0:M.pageY)!==null&&O!==void 0?O:0)),o.current.lastPosition={pageX:L,pageY:S}}},x=b=>{[...b.changedTouches].findIndex(({identifier:A})=>A===o.current.id)>=0&&(l(b,"touch"),o.current.id=null,s(window,"touchmove",v),s(window,"touchend",x),s(window,"touchcancel",x))};c.onTouchStart=b=>{if(b.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:A,identifier:M}=b.changedTouches[0];d(),b.stopPropagation(),b.preventDefault(),o.current.lastPosition={pageX:$,pageY:A},o.current.id=M,i(window,"touchmove",v,!1),i(window,"touchend",x,!1),i(window,"touchcancel",x,!1)}}else{let g=v=>{if(v.pointerId===o.current.id){var x,b;let M=v.pointerType||"mouse";var $,A;a(v,M,v.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),v.pageY-((A=(b=o.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&A!==void 0?A:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},y=v=>{if(v.pointerId===o.current.id){let x=v.pointerType||"mouse";l(v,x),o.current.id=null,s(window,"pointermove",g,!1),s(window,"pointerup",y,!1),s(window,"pointercancel",y,!1)}};c.onPointerDown=v=>{v.button===0&&o.current.id==null&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},o.current.id=v.pointerId,i(window,"pointermove",g,!1),i(window,"pointerup",y,!1),i(window,"pointercancel",y,!1))}}let m=(g,y,v)=>{d(),a(g,"keyboard",y,v),l(g,"keyboard")};return c.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},c},[o,i,s,a,l])}}let E1=null;function qd(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function T1(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xd.traverse(Xd.getTreeNode(t)))if(n&&qd(e,n.current))return!0;return!1}function $1(e){return T1(e,E1)}class Ys{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new Yd({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&qd(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Ys;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Yd({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yd{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 Xd=new Ys;function wr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Ws()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(g=>{o.current.isFocused=g,s(g),u()},[u]);g1(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:d}=Ud({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=Io({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?m:d}}const C1=h.createContext({});function P1(){var e;return(e=h.useContext(C1))!==null&&e!==void 0?e:{}}const Xs=h.createContext(null);function S1(e){let{children:t}=e,n=h.useContext(Xs),[r,o]=h.useState(0),i=h.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return h.createElement(Xs.Provider,{value:i},t)}function k1(){let e=h.useContext(Xs);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function I1(e){let{modalProviderProps:t}=k1();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function A1(e){return h.createElement(S1,null,h.createElement(I1,e))}function Jd(e){let t=pi(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:o}=P1();if(!e.portalContainer&&o&&(n=o()),h.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let i=h.createElement(A1,r);return Xo.createPortal(i,n)}const Zd={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 O1(e={}){let{style:t,isFocusable:n}=e,[r,o]=h.useState(!1),{focusWithinProps:i}=Io({isDisabled:!n,onFocusWithinChange:a=>o(a)}),s=h.useMemo(()=>r?t:t?{...Zd,...t}:Zd,[r]);return{visuallyHiddenProps:{...i,style:s}}}function M1(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:s}=O1(e);return h.createElement(n,Be(i,s),t)}function Qe(e){return h.forwardRef(e)}var sn=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]};function D1(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}process.env.NODE_ENV,process.env.NODE_ENV;var Js=e=>e?"true":void 0;function Qd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function N1(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=Qd(n))&&(o&&(o+=" "),o+=r);return o}function L1(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function V1(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var ef=new Map;function _1(e,t){if(e===t)return e;let n=ef.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=ef.get(t);return r?(r.forEach(o=>o.current=e),e):t}function F1(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=V1(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=N1(i,s):o==="id"&&i&&s?t.id=_1(i,s):t[o]=s!==void 0?s:i}}return t}function j1(e){var t,n,r,o;const i=Ct(),[s,a]=sn(e,hl.variantKeys),{ref:l,as:u,children:c,anchorIcon:d,isExternal:m=!1,showAnchorIcon:g=!1,autoFocus:y=!1,className:v,onPress:x,onPressStart:b,onPressEnd:$,onClick:A,...M}=s,I=u||"a",O=D1(l),L=(n=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,{linkProps:S}=Tg({...M,onPress:x,onPressStart:b,onPressEnd:$,onClick:A,isDisabled:e.isDisabled,elementType:`${u}`},O),{isFocused:V,isFocusVisible:j,focusProps:f}=Eg({autoFocus:y});m&&(M.rel=(r=M.rel)!=null?r:"noopener noreferrer",M.target=(o=M.target)!=null?o:"_blank");const k=h.useMemo(()=>hl({...a,disableAnimation:L,className:v}),[L1(a),L,v]),D=h.useCallback(()=>({ref:O,className:k,"data-focus":Js(V),"data-disabled":Js(e.isDisabled),"data-focus-visible":Js(j),...F1(f,S,M)}),[k,V,j,f,S,M]);return{Component:I,children:c,anchorIcon:d,showAnchorIcon:g,getLinkProps:D}}var R1=e=>P.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[P.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),P.jsx("path",{d:"M15 3h6v6"}),P.jsx("path",{d:"M10 14L21 3"})]}),B1=e=>P.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:P.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"})}),tf=Qe((e,t)=>{const{Component:n,children:r,showAnchorIcon:o,anchorIcon:i=P.jsx(R1,{className:Jh}),getLinkProps:s}=j1({ref:t,...e});return P.jsx(n,{...s(),children:P.jsxs(P.Fragment,{children:[r,o&&i]})})});tf.displayName="HeroUI.Link";var z1=tf;function U1(e,t){return e.find(n=>n.id===t)}function Zs(e,t){return e.find(n=>n.id===t)?.value}class Kn extends Error{response;request;constructor(t,n){const r=`${Kn.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,Kn.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Kn)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const nf=e=>e.toUpperCase(),Qs=e=>typeof e=="function"?e():e,rf=(e,t)=>e.map((n,r)=>[n,t[r]]),Hn=e=>{let t={};return e instanceof Headers?t=K1(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):e&&(t=e),t},K1=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},H1=e=>{try{const t=e();return G1(t)?t.catch(n=>of(n)):t}catch(t){return of(t)}},of=e=>e instanceof Error?e:new Error(String(e)),G1=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",ea=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Do=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),W1=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},q1=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};function No(e,t){if(!!!e)throw new Error(t)}function Y1(e){return typeof e=="object"&&e!==null}function X1(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const J1=/\r\n|[\n\r]/g;function ta(e,t){let n=0,r=1;for(const o of e.body.matchAll(J1)){if(typeof o.index=="number"||X1(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Z1(e){return sf(e.source,ta(e.source,e.start))}function sf(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?n:0,l=t.column+a,u=`${e.name}:${s}:${l}
51
- `,c=r.split(/\r\n|[\n\r]/g),d=c[o];if(d.length>120){const m=Math.floor(l/80),g=l%80,y=[];for(let v=0;v<d.length;v+=80)y.push(d.slice(v,v+80));return u+af([[`${s} |`,y[0]],...y.slice(1,m+1).map(v=>["|",v]),["|","^".padStart(g)],["|",y[m+1]]])}return u+af([[`${s-1} |`,c[o-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,c[o+1]]])}function af(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(`
52
- `)}function Q1(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 na extends Error{constructor(t,...n){var r,o,i;const{nodes:s,source:a,positions:l,path:u,originalError:c,extensions:d}=Q1(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=c??void 0,this.nodes=lf(Array.isArray(s)?s:s?[s]:void 0);const m=lf((r=this.nodes)===null||r===void 0?void 0:r.map(y=>y.loc).filter(y=>y!=null));this.source=a??(m==null||(o=m[0])===null||o===void 0?void 0:o.source),this.positions=l??m?.map(y=>y.start),this.locations=l&&a?l.map(y=>ta(a,y)):m?.map(y=>ta(y.source,y.start));const g=Y1(c?.extensions)?c?.extensions:void 0;this.extensions=(i=d??g)!==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}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,na):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 n of this.nodes)n.loc&&(t+=`
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+=`
53
47
 
54
- `+Z1(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
48
+ `+L2(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
55
49
 
56
- `+sf(this.source,n);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 lf(e){return e===void 0||e.length===0?void 0:e}function He(e,t,n){return new na(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ew{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class cf{constructor(t,n,r,o,i,s){this.kind=t,this.start=n,this.end=r,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 uf={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"]},tw=new Set(Object.keys(uf));function df(e){const t=e?.kind;return typeof t=="string"&&tw.has(t)}var Gn;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Gn||(Gn={}));var ra;(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"})(ra||(ra={}));var Q;(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"})(Q||(Q={}));function oa(e){return e===9||e===32}function xr(e){return e>=48&&e<=57}function ff(e){return e>=97&&e<=122||e>=65&&e<=90}function pf(e){return ff(e)||e===95}function nw(e){return ff(e)||xr(e)||e===95}function rw(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let s=0;s<e.length;++s){var i;const a=e[s],l=ow(a);l!==a.length&&(r=(i=r)!==null&&i!==void 0?i:s,o=s,s!==0&&l<n&&(n=l))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function ow(e){let t=0;for(;t<e.length&&oa(e.charCodeAt(t));)++t;return t}function iw(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=r.length===1,i=r.length>1&&r.slice(1).every(g=>g.length===0||oa(g.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=a||l,c=!o||e.length>70||u||i||s;let d="";const m=o&&oa(e.charCodeAt(0));return(c&&!m||i)&&(d+=`
57
- `),d+=n,(c||u)&&(d+=`
58
- `),'"""'+d+'"""'}var F;(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"})(F||(F={}));class sw{constructor(t){const n=new cf(F.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,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!==F.EOF)do if(t.next)t=t.next;else{const n=lw(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===F.COMMENT);return t}}function aw(e){return e===F.BANG||e===F.DOLLAR||e===F.AMP||e===F.PAREN_L||e===F.PAREN_R||e===F.SPREAD||e===F.COLON||e===F.EQUALS||e===F.AT||e===F.BRACKET_L||e===F.BRACKET_R||e===F.BRACE_L||e===F.PIPE||e===F.BRACE_R}function Wn(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Lo(e,t){return hf(e.charCodeAt(t))&&mf(e.charCodeAt(t+1))}function hf(e){return e>=55296&&e<=56319}function mf(e){return e>=56320&&e<=57343}function an(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return F.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Fe(e,t,n,r,o){const i=e.line,s=1+n-e.lineStart;return new cf(t,n,r,i,s,o)}function lw(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const i=n.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:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return cw(e,o);case 33:return Fe(e,F.BANG,o,o+1);case 36:return Fe(e,F.DOLLAR,o,o+1);case 38:return Fe(e,F.AMP,o,o+1);case 40:return Fe(e,F.PAREN_L,o,o+1);case 41:return Fe(e,F.PAREN_R,o,o+1);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return Fe(e,F.SPREAD,o,o+3);break;case 58:return Fe(e,F.COLON,o,o+1);case 61:return Fe(e,F.EQUALS,o,o+1);case 64:return Fe(e,F.AT,o,o+1);case 91:return Fe(e,F.BRACKET_L,o,o+1);case 93:return Fe(e,F.BRACKET_R,o,o+1);case 123:return Fe(e,F.BRACE_L,o,o+1);case 124:return Fe(e,F.PIPE,o,o+1);case 125:return Fe(e,F.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?mw(e,o):dw(e,o)}if(xr(i)||i===45)return uw(e,o,i);if(pf(i))return gw(e,o);throw He(e.source,o,i===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Wn(i)||Lo(n,o)?`Unexpected character: ${an(e,o)}.`:`Invalid character: ${an(e,o)}.`)}return Fe(e,F.EOF,r,r)}function cw(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const i=n.charCodeAt(o);if(i===10||i===13)break;if(Wn(i))++o;else if(Lo(n,o))o+=2;else break}return Fe(e,F.COMMENT,t,o,n.slice(t+1,o))}function uw(e,t,n){const r=e.source.body;let o=t,i=n,s=!1;if(i===45&&(i=r.charCodeAt(++o)),i===48){if(i=r.charCodeAt(++o),xr(i))throw He(e.source,o,`Invalid number, unexpected digit after 0: ${an(e,o)}.`)}else o=ia(e,o,i),i=r.charCodeAt(o);if(i===46&&(s=!0,i=r.charCodeAt(++o),o=ia(e,o,i),i=r.charCodeAt(o)),(i===69||i===101)&&(s=!0,i=r.charCodeAt(++o),(i===43||i===45)&&(i=r.charCodeAt(++o)),o=ia(e,o,i),i=r.charCodeAt(o)),i===46||pf(i))throw He(e.source,o,`Invalid number, expected digit but got: ${an(e,o)}.`);return Fe(e,s?F.FLOAT:F.INT,t,o,r.slice(t,o))}function ia(e,t,n){if(!xr(n))throw He(e.source,t,`Invalid number, expected digit but got: ${an(e,t)}.`);const r=e.source.body;let o=t+1;for(;xr(r.charCodeAt(o));)++o;return o}function dw(e,t){const n=e.source.body,r=n.length;let o=t+1,i=o,s="";for(;o<r;){const a=n.charCodeAt(o);if(a===34)return s+=n.slice(i,o),Fe(e,F.STRING,t,o+1,s);if(a===92){s+=n.slice(i,o);const l=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?fw(e,o):pw(e,o):hw(e,o);s+=l.value,o+=l.size,i=o;continue}if(a===10||a===13)break;if(Wn(a))++o;else if(Lo(n,o))o+=2;else throw He(e.source,o,`Invalid character within String: ${an(e,o)}.`)}throw He(e.source,o,"Unterminated string.")}function fw(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const i=n.charCodeAt(t+o++);if(i===125){if(o<5||!Wn(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Er(i),r<0)break}throw He(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function pw(e,t){const n=e.source.body,r=gf(n,t+2);if(Wn(r))return{value:String.fromCodePoint(r),size:6};if(hf(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const o=gf(n,t+8);if(mf(o))return{value:String.fromCodePoint(r,o),size:12}}throw He(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function gf(e,t){return Er(e.charCodeAt(t))<<12|Er(e.charCodeAt(t+1))<<8|Er(e.charCodeAt(t+2))<<4|Er(e.charCodeAt(t+3))}function Er(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function hw(e,t){const n=e.source.body;switch(n.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:`
59
- `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw He(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function mw(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,i=t+3,s=i,a="";const l=[];for(;i<r;){const u=n.charCodeAt(i);if(u===34&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34){a+=n.slice(s,i),l.push(a);const c=Fe(e,F.BLOCK_STRING,t,i+3,rw(l).join(`
60
- `));return e.line+=l.length-1,e.lineStart=o,c}if(u===92&&n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34&&n.charCodeAt(i+3)===34){a+=n.slice(s,i),s=i+1,i+=4;continue}if(u===10||u===13){a+=n.slice(s,i),l.push(a),u===13&&n.charCodeAt(i+1)===10?i+=2:++i,a="",s=i,o=i;continue}if(Wn(u))++i;else if(Lo(n,i))i+=2;else throw He(e.source,i,`Invalid character within String: ${an(e,i)}.`)}throw He(e.source,i,"Unterminated string.")}function gw(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const i=n.charCodeAt(o);if(nw(i))++o;else break}return Fe(e,F.NAME,t,o,n.slice(t,o))}const bw=10,bf=2;function sa(e){return Vo(e,[])}function Vo(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return vw(e,t);default:return String(e)}}function vw(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(yw(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Vo(r,n)}else if(Array.isArray(e))return xw(e,n);return ww(e,n)}function yw(e){return typeof e.toJSON=="function"}function ww(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>bf?"["+Ew(e)+"]":"{ "+n.map(([o,i])=>o+": "+Vo(i,t)).join(", ")+" }"}function xw(e,t){if(e.length===0)return"[]";if(t.length>bf)return"[Array]";const n=Math.min(bw,e.length),r=e.length-n,o=[];for(let i=0;i<n;++i)o.push(Vo(e[i],t));return r===1?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function Ew(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const Tw=globalThis.process&&process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],i=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===i){const s=sa(t);throw new Error(`Cannot use ${o} "${s}" from another module or realm.
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+=`
51
+ `),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.
61
55
 
62
56
  Ensure that there is only one instance of "graphql" in the node_modules
63
57
  directory. If different versions of "graphql" are the dependencies of other
@@ -68,36 +62,122 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
68
62
  Duplicate "graphql" modules cannot be used at the same time since different
69
63
  versions may have different capabilities and behavior. The data from one
70
64
  version used in the function from another could produce confusing and
71
- spurious results.`)}}return!1};class vf{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||No(!1,`Body must be a string. Received: ${sa(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||No(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||No(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function $w(e){return Tw(e,vf)}function Cw(e,t){const n=new Pw(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class Pw{constructor(t,n={}){const r=$w(t)?t:new vf(t);this._lexer=new sw(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(F.NAME);return this.node(t,{kind:Q.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(F.SOF,this.parseDefinition,F.EOF)})}parseDefinition(){if(this.peek(F.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===F.NAME){switch(n.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 He(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(F.BRACE_L))return this.node(t,{kind:Q.OPERATION_DEFINITION,operation:Gn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(F.NAME)&&(r=this.parseName()),this.node(t,{kind:Q.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(F.NAME);switch(t.value){case"query":return Gn.QUERY;case"mutation":return Gn.MUTATION;case"subscription":return Gn.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(F.PAREN_L,this.parseVariableDefinition,F.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(F.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(F.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(F.DOLLAR),this.node(t,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(F.BRACE_L,this.parseSelection,F.BRACE_R)})}parseSelection(){return this.peek(F.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(F.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Q.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(F.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(F.PAREN_L,n,F.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(n,{kind:Q.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(F.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(F.NAME)?this.node(t,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Q.INLINE_FRAGMENT,typeCondition:n?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:Q.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:Q.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 n=this._lexer.token;switch(n.kind){case F.BRACKET_L:return this.parseList(t);case F.BRACE_L:return this.parseObject(t);case F.INT:return this.advanceLexer(),this.node(n,{kind:Q.INT,value:n.value});case F.FLOAT:return this.advanceLexer(),this.node(n,{kind:Q.FLOAT,value:n.value});case F.STRING:case F.BLOCK_STRING:return this.parseStringLiteral();case F.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Q.NULL});default:return this.node(n,{kind:Q.ENUM,value:n.value})}case F.DOLLAR:if(t)if(this.expectToken(F.DOLLAR),this._lexer.token.kind===F.NAME){const r=this._lexer.token.value;throw He(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);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:Q.STRING,value:t.value,block:t.kind===F.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(F.BRACKET_L,n,F.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(F.BRACE_L,n,F.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(F.COLON),this.node(n,{kind:Q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(F.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(F.AT),this.node(n,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(F.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(F.BRACKET_R),n=this.node(t,{kind:Q.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(F.BANG)?this.node(t,{kind:Q.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(F.STRING)||this.peek(F.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);return this.node(t,{kind:Q.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(F.COLON);const r=this.parseNamedType();return this.node(t,{kind:Q.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Q.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:Q.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(F.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseFieldDefinition,F.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(F.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:Q.FIELD_DEFINITION,description:n,name:r,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(F.PAREN_L,this.parseInputValueDef,F.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(F.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(F.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:Q.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:Q.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:Q.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(F.EQUALS)?this.delimitedMany(F.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:Q.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(F.BRACE_L,this.parseEnumValueDefinition,F.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Q.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw He(this._lexer.source,this._lexer.token.start,`${_o(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseInputValueDef,F.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===F.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 n=this.parseConstDirectives(),r=this.optionalMany(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(F.AT);const r=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:Q.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(F.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ra,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new ew(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw He(this._lexer.source,n.start,`Expected ${yf(t)}, found ${_o(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===F.NAME&&n.value===t)this.advanceLexer();else throw He(this._lexer.source,n.start,`Expected "${t}", found ${_o(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===F.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return He(this._lexer.source,n.start,`Unexpected ${_o(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==F.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw He(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _o(e){const t=e.value;return yf(e.kind)+(t!=null?` "${t}"`:"")}function yf(e){return aw(e)?`"${e}"`:e}function Sw(e){return`"${e.replace(kw,Iw)}"`}const kw=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Iw(e){return Aw[e.charCodeAt(0)]}const Aw=["\\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"],Ow=Object.freeze({});function Mw(e,t,n=uf){const r=new Map;for(const b of Object.values(Q))r.set(b,Dw(t,b));let o,i=Array.isArray(e),s=[e],a=-1,l=[],u=e,c,d;const m=[],g=[];do{a++;const b=a===s.length,$=b&&l.length!==0;if(b){if(c=g.length===0?void 0:m[m.length-1],u=d,d=g.pop(),$)if(i){u=u.slice();let M=0;for(const[I,O]of l){const L=I-M;O===null?(u.splice(L,1),M++):u[L]=O}}else{u={...u};for(const[M,I]of l)u[M]=I}a=o.index,s=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(d){if(c=i?a:s[a],u=d[c],u==null)continue;m.push(c)}let A;if(!Array.isArray(u)){var y,v;df(u)||No(!1,`Invalid AST Node: ${sa(u)}.`);const M=b?(y=r.get(u.kind))===null||y===void 0?void 0:y.leave:(v=r.get(u.kind))===null||v===void 0?void 0:v.enter;if(A=M?.call(t,u,c,d,m,g),A===Ow)break;if(A===!1){if(!b){m.pop();continue}}else if(A!==void 0&&(l.push([c,A]),!b))if(df(A))u=A;else{m.pop();continue}}if(A===void 0&&$&&l.push([c,u]),b)m.pop();else{var x;o={inArray:i,index:a,keys:s,edits:l,prev:o},i=Array.isArray(u),s=i?u:(x=n[u.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&g.push(d),d=u}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function Dw(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Nw(e){return Mw(e,Vw)}const Lw=80,Vw={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Y(e.definitions,`
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,`
72
66
 
73
- `)},OperationDefinition:{leave(e){const t=le("(",Y(e.variableDefinitions,", "),")"),n=Y([e.operation,Y([e.name,t]),Y(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+le(" = ",n)+le(" ",Y(r," "))},SelectionSet:{leave:({selections:e})=>ht(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=le("",e,": ")+t;let s=i+le("(",Y(n,", "),")");return s.length>Lw&&(s=i+le(`(
74
- `,Fo(Y(n,`
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,`
75
69
  `)),`
76
- )`)),Y([s,Y(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+le(" ",Y(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Y(["...",le("on ",e),Y(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${le("(",Y(n,", "),")")} on ${t} ${le("",Y(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?iw(e):Sw(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Y(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Y(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+le("(",Y(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>le("",e,`
77
- `)+Y(["schema",Y(t," "),ht(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>le("",e,`
78
- `)+Y(["scalar",t,Y(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>le("",e,`
79
- `)+Y(["type",t,le("implements ",Y(n," & ")),Y(r," "),ht(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>le("",e,`
80
- `)+t+(wf(n)?le(`(
81
- `,Fo(Y(n,`
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,`
82
76
  `)),`
83
- )`):le("(",Y(n,", "),")"))+": "+r+le(" ",Y(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>le("",e,`
84
- `)+Y([t+": "+n,le("= ",r),Y(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>le("",e,`
85
- `)+Y(["interface",t,le("implements ",Y(n," & ")),Y(r," "),ht(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>le("",e,`
86
- `)+Y(["union",t,Y(n," "),le("= ",Y(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>le("",e,`
87
- `)+Y(["enum",t,Y(n," "),ht(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>le("",e,`
88
- `)+Y([t,Y(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>le("",e,`
89
- `)+Y(["input",t,Y(n," "),ht(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>le("",e,`
90
- `)+"directive @"+t+(wf(n)?le(`(
91
- `,Fo(Y(n,`
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,`
92
86
  `)),`
93
- )`):le("(",Y(n,", "),")"))+(r?" repeatable":"")+" on "+Y(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Y(["extend schema",Y(e," "),ht(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Y(["extend scalar",e,Y(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend type",e,le("implements ",Y(t," & ")),Y(n," "),ht(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend interface",e,le("implements ",Y(t," & ")),Y(n," "),ht(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Y(["extend union",e,Y(t," "),le("= ",Y(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Y(["extend enum",e,Y(t," "),ht(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Y(["extend input",e,Y(t," "),ht(n)]," ")}};function Y(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ht(e){return le(`{
94
- `,Fo(Y(e,`
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,`
95
89
  `)),`
96
- }`)}function le(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Fo(e){return le(" ",e.replace(/\n/g,`
97
- `))}function wf(e){var t;return(t=e?.some(n=>n.includes(`
98
- `)))!==null&&t!==void 0?t:!1}const xf="Accept",aa="Content-Type",la="application/json",Ef="application/graphql-response+json",Tf=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),_w=e=>{const t=e.toLowerCase();return t.includes(Ef)||t.includes(la)},$f=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Cf)};if(Do(e))return{_tag:"Single",executionResult:Cf(e)};throw new Error(`Invalid execution result: result is not object or array.
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.
99
93
  Got:
100
- ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,r;if("errors"in e){if(!Do(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(!Do(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!Do(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");r=e.extensions}return{data:n,errors:t,extensions:r}},Fw=e=>e._tag==="Batch"?e.executionResults.some(Pf):Pf(e.executionResult),Pf=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Sf=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===Q.OPERATION_DEFINITION,jw=e=>{let t;const n=e.definitions.filter(Sf);return n.length===1&&(t=n[0].name?.value),t},Rw=e=>{let t=!1;const n=e.definitions.filter(Sf);return n.length===1&&(t=n[0].operation==="mutation"),t},ca=(e,t)=>{const n=typeof e=="string"?e:Nw(e);let r=!1,o;if(t)return{expression:n,isMutation:r,operationName:o};const i=H1(()=>typeof e=="string"?Cw(e):e);return i instanceof Error?{expression:n,isMutation:r,operationName:o}:(o=jw(i),r=Rw(i),{expression:n,operationName:o,isMutation:r})},ua=JSON,da=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":nf(e.method??"post"):e.request.hasMutations?"POST":nf(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},r=await zw(t.method)(t);if(!r.ok)return new Kn({status:r.status,headers:r.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await Bw(r,e.fetchOptions.jsonSerializer??ua);if(o instanceof Error)throw o;const i={status:r.status,headers:r.headers};if(Fw(o)&&t.fetchOptions.errorPolicy==="none"){const s=o._tag==="Batch"?{...o.executionResults,...i}:{...o.executionResult,...i};return new Kn(s,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...kf(t)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(kf(t))};default:ea(o)}},kf=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),Bw=async(e,t)=>{const n=e.headers.get(aa),r=await e.text();return n&&_w(n)?$f(t.parse(r)):$f(r)},zw=e=>async t=>{const n=new Headers(t.headers);let r=null,o;n.has(xf)||n.set(xf,[Ef,la].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??ua).stringify(Uw(t)),typeof o=="string"&&!n.has(aa)&&n.set(aa,la)):r=Kw(t);const i={method:e,headers:n,body:o,...t.fetchOptions};let s=new URL(t.url),a=i;if(t.middleware){const u=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:c,...d}=u;s=new URL(c),a=d}return r&&r.forEach((u,c)=>{s.searchParams.append(c,u)}),await(t.fetch??fetch)(s,a)},Uw=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 rf(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw ea(e.request)}},Kw=e=>{const t=e.fetchOptions.jsonSerializer??ua,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Tf(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const r=e.request.variables?.map(s=>t.stringify(s))??[],o=e.request.query.map(Tf),i=rf(o,r).map(([s,a])=>({query:s,variables:a}));return n.append("query",t.stringify(i)),n}default:throw ea(e.request)}};class Hw{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,r,o]=t,i=q1(n,r,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...m}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(m.signal=i.signal);const y=ca(i.query,d),v=await da({url:g,request:{_tag:"Single",document:y,variables:i.variables},headers:{...Hn(Qs(s)),...Hn(i.requestHeaders)},fetch:a,method:l,fetchOptions:m,middleware:u});if(c&&await c(v,{operationName:y.operationName,variables:r,url:this.url}),v instanceof Error)throw v;return v};async request(t,...n){const[r,o]=n,i=Gw(t,r,o),{headers:s,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:u,responseMiddleware:c,excludeOperationName:d,...m}=this.requestConfig,{url:g}=this;i.signal!==void 0&&(m.signal=i.signal);const y=ca(i.document,d),v=await da({url:g,request:{_tag:"Single",document:y,variables:i.variables},headers:{...Hn(Qs(s)),...Hn(i.requestHeaders)},fetch:a,method:l,fetchOptions:m,middleware:u});if(c&&await c(v,{operationName:y.operationName,variables:i.variables,url:this.url}),v instanceof Error)throw v;return v.data}async batchRequests(t,n){const r=W1(t,n),{headers:o,excludeOperationName:i,...s}=this.requestConfig;r.signal!==void 0&&(s.signal=r.signal);const a=r.documents.map(({document:m})=>ca(m,i)),l=a.map(({expression:m})=>m),u=a.some(({isMutation:m})=>m),c=r.documents.map(({variables:m})=>m),d=await da({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:u,variables:c},headers:{...Hn(Qs(o)),...Hn(r.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:c,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const Gw=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},If=(e,...t)=>e.reduce((n,r,o)=>`${n}${r}${o in t?String(t[o]):""}`,"");var qn=(e=>(e.Avg="AVG",e.Cardinality="CARDINALITY",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e))(qn||{});const Ww=If`
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`
95
+ fragment ProductCardProduct on ProductVersion {
96
+ id
97
+ slug
98
+ deliveryPromise
99
+ stock {
100
+ status
101
+ backInStockExpectation
102
+ expectedDeliveryDate
103
+ lowOnStock
104
+ }
105
+ pricing {
106
+ sellingPriceInclVat
107
+ suggestedRetailPrice
108
+ crossSellSellingPriceInclVat
109
+ }
110
+ media {
111
+ main {
112
+ url
113
+ altText
114
+ }
115
+ }
116
+ distinctProperties(active: true) {
117
+ key
118
+ label
119
+ option {
120
+ key
121
+ slug
122
+ label
123
+ }
124
+ }
125
+ specifications(highlighted: true) {
126
+ value {
127
+ descriptiveText
128
+ }
129
+ }
130
+ specialPromotions {
131
+ type
132
+ visualType
133
+ slideOutDescription
134
+ publicTitle
135
+ description
136
+ weight
137
+ validUntil
138
+ showBanner
139
+ shortDescription
140
+ stickerImageUrl
141
+ }
142
+ product(combined: true) {
143
+ fullName
144
+ name
145
+ slug
146
+ accessory
147
+ brand {
148
+ name
149
+ slug
150
+ }
151
+ hasAvpTag: hasTag(slug: "actieprijs")
152
+ distinctProperties(keys: ["color"], active: true) {
153
+ key
154
+ label
155
+ options {
156
+ key
157
+ slug
158
+ label
159
+ }
160
+ }
161
+ reviews {
162
+ numberOfReviews
163
+ starsAverage
164
+ }
165
+ productVersions {
166
+ status
167
+ distinctProperties(active: true) {
168
+ key
169
+ label
170
+ option {
171
+ key
172
+ slug
173
+ label
174
+ hex
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ `,Ds=bo`
101
181
  fragment ProductCardProposition on Proposition {
102
182
  key
103
183
  creditFee
@@ -147,6 +227,9 @@ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw
147
227
  slug
148
228
  network
149
229
  }
230
+ productVersion {
231
+ ...ProductCardProduct
232
+ }
150
233
  specialPromotions {
151
234
  type
152
235
  visualType
@@ -159,7 +242,53 @@ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw
159
242
  stickerImageUrl
160
243
  }
161
244
  }
162
- `,qw=If`
245
+ ${MC}`,DC=bo`
246
+ query resultsFixedPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock], $postcode: String, $number: Int, $numberAddon: String) {
247
+ fetchInfo(
248
+ productCategory: "fixed-proposition"
249
+ postcode: $postcode
250
+ number: $number
251
+ numberAddon: $numberAddon
252
+ ) {
253
+ validating
254
+ polling
255
+ }
256
+ search: searchPropositions(
257
+ query: $query
258
+ type: "fixed"
259
+ modificationBlocks: $modificationBlocks
260
+ postcode: $postcode
261
+ number: $number
262
+ numberAddon: $numberAddon
263
+ ignorePostcodeError: true
264
+ ) {
265
+ count
266
+ pageInfo {
267
+ cheapestProposition {
268
+ key
269
+ }
270
+ populairPropositions
271
+ }
272
+ aggs {
273
+ metrics {
274
+ key
275
+ value
276
+ }
277
+ terms {
278
+ key
279
+ values {
280
+ value
281
+ count
282
+ }
283
+ }
284
+ }
285
+ records {
286
+ labels
287
+ ...ProductCardProposition
288
+ }
289
+ }
290
+ }
291
+ ${Ds}`,AC=bo`
163
292
  query resultsSimOnlyPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
164
293
  search: searchPropositions(
165
294
  query: $query
@@ -194,7 +323,110 @@ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw
194
323
  }
195
324
  }
196
325
  }
197
- ${Ww}`;function Yw(e){return["ja","nee","0","1"].includes(e)}function Af(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function Of(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function Mf(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function Df(e){return parseFloat(e)||0}function Nf(e){const[t,n]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:n}:Number.isNaN(n)?{from:t}:{from:t,to:n}}function Lf(e){const{col:t,ranges:n,values:r}=Xw(e),o=e.operator==="and";if(o&&n)return n.map(i=>({col:t,ranges:[i]}));if(o&&r){if(r.length===0)return[{col:t,values:r}];const i=r[0];if(typeof i=="string")return r.map(s=>({col:t,values:[s]}));if(typeof i=="number")return r.map(s=>({col:t,values:[s]}));if(typeof i=="boolean")return r.map(s=>({col:t,values:[s]}))}return[{col:t,ranges:n,values:r}]}function Xw({col:e,values:t,valueType:n}){return t.length===0?{col:e,values:t}:n==="boolean"?{col:e,values:Mf(t)}:(n==="integer"||n==="decimal")&&t.every(Of)?{col:e,ranges:t.map(Nf)}:(n==="integer"||n==="decimal")&&t.every(Af)?{col:e,values:t.map(Df)}:n==="string"?{col:e,values:t}:t.every(Yw)?{col:e,values:Mf(t)}:t.every(Of)?{col:e,ranges:t.map(Nf)}:t.every(Af)?{col:e,values:t.map(Df)}:{col:e,values:t}}function Jw({key:e,col:t,type:n,filter:r=!1,options:o=[]}){const[{values:i,ranges:s}]=Lf({col:t,values:o});switch(n){case"max":return[{key:`max_${e}`,metric:qn.Max,col:t}];case"min":return[{key:`min_${e}`,metric:qn.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:qn.Min,col:t},{key:`max_${e}`,metric:qn.Max,col:t}];case"values":return s?[{key:e,col:t,filter:r,ranges:s}]:i&&i.length>0?[{key:e,col:t,filter:r,include:i}]:[{key:e,col:t,filter:r}]}}class Zw{_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,...Lf(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...Jw(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:qn.Cardinality,col:this._groupBy}]:this._aggregations}}}function Qw({filterOptions:e,filterValues:t,limit:n=10}){const r=new Zw;r.limit(n),t.forEach(i=>{const s=U1(e,i.id);s&&r.where({col:i.id,values:(Array.isArray(i.value)?i.value:[i.value]).map(a=>String(a)),valueType:s.type})});const o=Zs(t,"provider");return r.groupBy(Array.isArray(o)&&o.length===1?"data_and_speed":"provider"),r}const fa=new WeakMap;function pa(e,t){let n=fa.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ha(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=cr(t);let s=cr(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!r&&!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=eb({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function ex(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:s}=ha(e),a=uc([!!t,!!n,r,o]),l=uc([!!t,!!n,r,o]);return s=Be(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function tx(e,t,n){let{labelProps:r,fieldProps:o}=ha(e),i=e.orientation==="vertical";var s;fa.set(t,{id:(s=r.id)!==null&&s!==void 0?s:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=ar(),{addGlobalListener:l,removeGlobalListener:u}=kn();const c=h.useRef(null),d=a==="rtl",m=h.useRef(null),{moveProps:g}=Wd({onMoveStart(){m.current=null},onMove({deltaX:b,deltaY:$}){if(!n.current)return;let{height:A,width:M}=n.current.getBoundingClientRect(),I=i?A:M;m.current==null&&c.current!=null&&(m.current=t.getThumbPercent(c.current)*I);let O=i?$:b;if((i||d)&&(O=-O),m.current+=O,c.current!=null&&n.current){const L=Tn(m.current/I,0,1);t.setThumbPercent(c.current,L)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let y=h.useRef(void 0),v=(b,$,A,M)=>{if(n.current&&!e.isDisabled&&t.values.every((I,O)=>!t.isThumbDragging(O))){let{height:I,width:O,top:L,left:S}=n.current.getBoundingClientRect(),V=i?I:O,D=((i?M:A)-(i?L:S))/V;(a==="rtl"||i)&&(D=1-D);let w=t.getPercentValue(D),N,p=t.values.findIndex(C=>w-C<0);if(p===0)N=p;else if(p===-1)N=t.values.length-1;else{let C=t.values[p-1],E=t.values[p];Math.abs(C-w)<Math.abs(E-w)?N=p-1:N=p}N>=0&&t.isThumbEditable(N)?(b.preventDefault(),c.current=N,t.setFocusedThumb(N),y.current=$,t.setThumbDragging(c.current,!0),t.setThumbValue(N,w),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):c.current=null}},x=b=>{var $,A;((A=b.pointerId)!==null&&A!==void 0?A:($=b.changedTouches)===null||$===void 0?void 0:$[0].identifier)===y.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",x,!1),u(window,"touchend",x,!1),u(window,"pointerup",x,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var b;(b=document.getElementById(pa(t,0)))===null||b===void 0||b.focus(),zd("keyboard")}),{labelProps:r,groupProps:{role:"group",...o},trackProps:Be({onMouseDown(b){b.button!==0||b.altKey||b.ctrlKey||b.metaKey||v(b,void 0,b.clientX,b.clientY)},onPointerDown(b){b.pointerType==="mouse"&&(b.button!==0||b.altKey||b.ctrlKey||b.metaKey)||v(b,b.pointerId,b.clientX,b.clientY)},onTouchStart(b){v(b,b.changedTouches[0].identifier,b.changedTouches[0].clientX,b.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((b,$)=>pa(t,$)).join(" "),"aria-live":"off"}}}function nx(e,t){let{index:n=0,isRequired:r,validationState:o,isInvalid:i,trackRef:s,inputRef:a,orientation:l=t.orientation,name:u,form:c}=e,d=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=ar(),{addGlobalListener:y,removeGlobalListener:v}=kn(),x=fa.get(t);var b;const{labelProps:$,fieldProps:A}=ha({...e,id:pa(t,n),"aria-labelledby":`${x.id} ${(b=e["aria-labelledby"])!==null&&b!==void 0?b:""}`.trim()}),M=t.values[n],I=h.useCallback(()=>{a.current&&qt(a.current)},[a]),O=t.focusedThumb===n;h.useEffect(()=>{O&&I()},[O,I]);let L=g==="rtl",S=h.useRef(null),{keyboardProps:V}=Hd({onKeyDown(C){let{getThumbMaxValue:E,getThumbMinValue:B,decrementThumb:H,incrementThumb:X,setThumbValue:_,setThumbDragging:z,pageSize:K}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(C.key)){C.continuePropagation();return}switch(C.preventDefault(),z(n,!0),C.key){case"PageUp":X(n,K);break;case"PageDown":H(n,K);break;case"Home":_(n,B(n));break;case"End":_(n,E(n));break}z(n,!1)}}),{moveProps:j}=Wd({onMoveStart(){S.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:C,deltaY:E,pointerType:B,shiftKey:H}){const{getThumbPercent:X,setThumbPercent:_,decrementThumb:z,incrementThumb:K,step:se,pageSize:ee}=t;if(!s.current)return;let{width:oe,height:xe}=s.current.getBoundingClientRect(),ye=m?xe:oe;if(S.current==null&&(S.current=X(n)*ye),B==="keyboard")C>0&&L||C<0&&!L||E>0?z(n,H?ee:se):K(n,H?ee:se);else{let J=m?E:C;(m||L)&&(J=-J),S.current+=J,_(n,Tn(S.current/ye,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:f}=ko(Be(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),a);let k=h.useRef(void 0),D=C=>{I(),k.current=C,t.setThumbDragging(n,!0),y(window,"mouseup",w,!1),y(window,"touchend",w,!1),y(window,"pointerup",w,!1)},w=C=>{var E,B;((B=C.pointerId)!==null&&B!==void 0?B:(E=C.changedTouches)===null||E===void 0?void 0:E[0].identifier)===k.current&&(I(),t.setThumbDragging(n,!1),v(window,"mouseup",w,!1),v(window,"touchend",w,!1),v(window,"pointerup",w,!1))},N=t.getThumbPercent(n);(m||g==="rtl")&&(N=1-N);let p=d?{}:Be(V,j,{onMouseDown:C=>{C.button!==0||C.altKey||C.ctrlKey||C.metaKey||D()},onPointerDown:C=>{C.button!==0||C.altKey||C.ctrlKey||C.metaKey||D(C.pointerId)},onTouchStart:C=>{D(C.changedTouches[0].identifier)}});return wc(a,t.defaultValues[n],C=>{t.setThumbValue(n,C)}),{inputProps:Be(f,A,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:M,name:u,form:c,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||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:C=>{t.setThumbValue(n,parseFloat(C.target.value))}}),thumbProps:{...p,style:{position:"absolute",[m?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:O}}function rx(e){const{ref:t,as:n,state:r,index:o,name:i,trackRef:s,className:a,tooltipProps:l,isVertical:u,showTooltip:c,getTooltipValue:d,formatOptions:m,renderThumb:g,...y}=e,v=n||"div",x=gt(t),b=h.useRef(null),$=$c(m),{thumbProps:A,inputProps:M,isDragging:I,isFocused:O}=nx({index:o,trackRef:s,inputRef:b,name:i,...y},r),{hoverProps:L,isHovered:S}=on({isDisabled:r.isDisabled}),{focusProps:V,isFocusVisible:j}=wr(),{pressProps:f,isPressed:k}=Un({isDisabled:r.isDisabled});return{Component:v,index:o,showTooltip:c,renderThumb:g,getThumbProps:(p={})=>({ref:x,"data-slot":"thumb","data-hover":pe(S),"data-pressed":pe(k),"data-dragging":pe(I),"data-focused":pe(O),"data-focus-visible":pe(j),"aria-label":p["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...Xe(A,f,L,y),className:a,...p}),getTooltipProps:()=>{const p=l?.content?l.content:d?r.values.length===1?d(r.values[o??0]):d(r.values,o??0):r.values[o??0],C=$&&typeof p=="number"?$.format(p):p;return{...l,placement:l?.placement?l?.placement:u?"right":"top",content:l?.content?l?.content:C,updatePositionDeps:[I,S,O,j,C],isOpen:l?.isOpen!==void 0?l?.isOpen:S||I||O||j,role:"tooltip","aria-label":`Current value: ${C}`}},getInputProps:(p={})=>({ref:b,...Xe(M,V),...p})}}function ox(e){let[t,n]=Br(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h.useCallback(()=>{n(!0)},[n]),o=h.useCallback(()=>{n(!1)},[n]),i=h.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const ix=1500,Vf=500;let ln={},sx=0,Tr=!1,It=null,cn=null;function ax(e={}){let{delay:t=ix,closeDelay:n=Vf}=e,{isOpen:r,open:o,close:i}=ox(e),s=h.useMemo(()=>`${++sx}`,[]),a=h.useRef(null),l=h.useRef(i),u=()=>{ln[s]=m},c=()=>{for(let y in ln)y!==s&&(ln[y](!0),delete ln[y])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,c(),u(),Tr=!0,o(),It&&(clearTimeout(It),It=null),cn&&(clearTimeout(cn),cn=null)},m=y=>{y||n<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},n)),It&&(clearTimeout(It),It=null),Tr&&(cn&&clearTimeout(cn),cn=setTimeout(()=>{delete ln[s],cn=null,Tr=!1},Math.max(Vf,n)))},g=()=>{c(),u(),!r&&!It&&!Tr?It=setTimeout(()=>{It=null,Tr=!0,d()},t):r||d()};return h.useEffect(()=>{l.current=i},[i]),h.useEffect(()=>()=>{a.current&&clearTimeout(a.current),ln[s]&&delete ln[s]},[s]),{isOpen:r,open:y=>{!y&&t>0&&!a.current?g():d()},close:m}}function lx(e,t){let n=Jr(e,{labelable:!0}),{hoverProps:r}=on({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Be(n,r,{role:"tooltip"})}}function cx(e,t,n){let{isDisabled:r,trigger:o}=e,i=cr(),s=h.useRef(!1),a=h.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=b=>{!s.current&&!a.current&&t.close(b)};h.useEffect(()=>{let b=$=>{n&&n.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[n,t]);let c=()=>{o!=="focus"&&(Bd()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},m=()=>{a.current=!1,s.current=!1,u(!0)},g=()=>{Ws()&&(a.current=!0,l())},y=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:v}=on({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:x}=ko({isDisabled:r,onFocus:g,onBlur:y},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Be(x,v,{onPointerDown:m,onKeyDown:m,tabIndex:void 0})},tooltipProps:{id:i}}}var ux=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]||{}},dx=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],_f=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},jo=globalThis?.document?h.useLayoutEffect:h.useEffect,wt=[];function fx(e,t){const{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>{if(i&&!wt.includes(t))return wt.push(t),()=>{let v=wt.indexOf(t);v>=0&&wt.splice(v,1)}},[i,t]);const u=()=>{wt[wt.length-1]===t&&s&&s()},c=v=>{(!l||l(v.target))&&(wt[wt.length-1]===t&&n&&(v.stopPropagation(),v.preventDefault()),u())},d=v=>{(!l||l(v.target))&&(wt[wt.length-1]===t&&n&&(v.stopPropagation(),v.preventDefault()),u())},m=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),u())};x1({isDisabled:!(r&&i),onInteractOutside:r&&i?d:void 0,onInteractOutsideStart:c,ref:t});const{focusWithinProps:g}=Io({isDisabled:!a,onBlurWithin:v=>{!v.relatedTarget||$1(v.relatedTarget)||(!l||l(v.relatedTarget))&&u()}}),y=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:y}}}function px(e){var t,n;const r=Ct(),[o,i]=sn(e,pl.variantKeys),{ref:s,as:a,isOpen:l,content:u,children:c,defaultOpen:d,onOpenChange:m,isDisabled:g,trigger:y,shouldFlip:v=!0,containerPadding:x=12,placement:b="top",delay:$=0,closeDelay:A=500,showArrow:M=!1,offset:I=7,crossOffset:O=0,isDismissable:L,shouldCloseOnBlur:S=!0,portalContainer:V,isKeyboardDismissDisabled:j=!1,updatePositionDeps:f=[],shouldCloseOnInteractOutside:k,className:D,onClose:w,motionProps:N,classNames:p,...C}=o,E=a||"div",B=(n=(t=e?.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,H=ax({delay:$,closeDelay:A,isDisabled:g,defaultOpen:d,isOpen:l,onOpenChange:ie=>{m?.(ie),ie||w?.()}}),X=h.useRef(null),_=h.useRef(null),z=h.useId(),K=H.isOpen&&!g;h.useImperativeHandle(s,()=>$g(_));const{triggerProps:se,tooltipProps:ee}=cx({isDisabled:g,trigger:y},H,X),{tooltipProps:oe}=lx({isOpen:K,...Xe(o,ee)},H),{overlayProps:xe,placement:ye,updatePosition:J}=n1({isOpen:K,targetRef:X,placement:dx(b),overlayRef:_,offset:M?I+3:I,crossOffset:O,shouldFlip:v,containerPadding:x});jo(()=>{f.length&&J()},f);const{overlayProps:Se}=fx({isOpen:K,onClose:H.close,isDismissable:L,shouldCloseOnBlur:S,isKeyboardDismissDisabled:j,shouldCloseOnInteractOutside:k},_),Ee=h.useMemo(()=>{var ie,$e,Ae;return pl({...i,disableAnimation:B,radius:(ie=e?.radius)!=null?ie:"md",size:($e=e?.size)!=null?$e:"md",shadow:(Ae=e?.shadow)!=null?Ae:"sm"})},[gn(i),B,e?.radius,e?.size,e?.shadow]),Z=h.useCallback((ie={},$e=null)=>({...Xe(se,ie),ref:sc($e,X),"aria-describedby":K?z:void 0}),[se,K,z,H]),ce=h.useCallback(()=>({ref:_,"data-slot":"base","data-open":pe(K),"data-arrow":pe(M),"data-disabled":pe(g),"data-placement":_f(ye||"top",b),...Xe(oe,Se,C),style:Xe(xe.style,C.style,o.style),className:Ee.base({class:p?.base}),id:z}),[Ee,K,M,g,ye,b,oe,Se,C,xe,o,z]),ge=h.useCallback(()=>({"data-slot":"content","data-open":pe(K),"data-arrow":pe(M),"data-disabled":pe(g),"data-placement":_f(ye||"top",b),className:Ee.content({class:ze(p?.content,D)})}),[Ee,K,M,g,ye,b,p]);return{Component:E,content:u,children:c,isOpen:K,triggerRef:X,showArrow:M,portalContainer:V,placement:b,disableAnimation:B,isDisabled:g,motionProps:N,getTooltipContentProps:ge,getTriggerProps:Z,getTooltipProps:ce}}var hx={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}}}},mx=()=>Promise.resolve().then(()=>Fp).then(e=>e.default),Ff=Qe((e,t)=>{var n;const{Component:r,children:o,content:i,isOpen:s,portalContainer:a,placement:l,disableAnimation:u,motionProps:c,getTriggerProps:d,getTooltipProps:m,getTooltipContentProps:g}=px({...e,ref:t});let y;try{if(h.Children.count(o)!==1)throw new Error;if(!h.isValidElement(o))y=P.jsx("p",{...d(),children:o});else{const I=o,O=(n=I.props.ref)!=null?n:I.ref;y=h.cloneElement(I,d(I.props,O))}}catch{y=P.jsx("span",{}),_r("Tooltip must have only one child node. Please, check your code.")}const{ref:v,id:x,style:b,...$}=m(),A=P.jsx("div",{ref:v,id:x,style:b,children:P.jsx(nd.div,{animate:"enter",exit:"exit",initial:"exit",variants:hx.scaleSpring,...Xe(c,$),style:{...ux(l)},children:P.jsx(r,{...g(),children:i})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return P.jsxs(P.Fragment,{children:[y,u?s&&P.jsx(Jd,{portalContainer:a,children:P.jsx("div",{ref:v,id:x,style:b,...$,children:P.jsx(r,{...g(),children:i})})}):P.jsx(Bu,{features:mx,children:P.jsx(ju,{children:s&&P.jsx(Jd,{portalContainer:a,children:A})})})]})});Ff.displayName="HeroUI.Tooltip";var gx=Ff,jf=Qe((e,t)=>{const{Component:n,index:r,renderThumb:o,showTooltip:i,getTooltipProps:s,getThumbProps:a,getInputProps:l}=rx({...e,ref:t}),u={...a(),index:r,children:P.jsx(M1,{children:P.jsx("input",{...l()})})},c=ki({Component:n,props:u,renderCustom:o});return i?P.jsx(gx,{...s(),children:c}):c});jf.displayName="HeroUI.SliderThumb";var bx=jf;const vx=0,yx=100,wx=1;function xx(e){const{isDisabled:t=!1,minValue:n=vx,maxValue:r=yx,numberFormatter:o,step:i=wx,orientation:s="horizontal"}=e;let a=h.useMemo(()=>{let _=(r-n)/10;return _=or(_,0,_+i,i),Math.max(_,i)},[i,r,n]),l=h.useCallback(_=>_?.map((z,K)=>{let se=K===0?n:_[K-1],ee=K===_.length-1?r:_[K+1];return or(z,se,ee,i)}),[n,r,i]),u=h.useMemo(()=>l(Bf(e.value)),[e.value,l]),c=h.useMemo(()=>{var _;return l((_=Bf(e.defaultValue))!==null&&_!==void 0?_:[n])},[e.defaultValue,n,l]),d=zf(e.value,e.defaultValue,e.onChange),m=zf(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=Br(u,c,d);let[v]=h.useState(g);const[x,b]=h.useState(new Array(g.length).fill(!1)),$=h.useRef(new Array(g.length).fill(!0)),[A,M]=h.useState(void 0),I=h.useRef(g),O=h.useRef(x);let L=_=>{I.current=_,y(_)},S=_=>{O.current=_,b(_)};function V(_){return(_-n)/(r-n)}function j(_){return _===0?n:g[_-1]}function f(_){return _===g.length-1?r:g[_+1]}function k(_){return $.current[_]}function D(_,z){$.current[_]=z}function w(_,z){if(t||!k(_))return;const K=j(_),se=f(_);z=or(z,K,se,i);let ee=Rf(I.current,_,z);L(ee)}function N(_,z){if(t||!k(_))return;z&&(I.current=g);const K=O.current[_];O.current=Rf(O.current,_,z),S(O.current),m&&K&&!O.current.some(Boolean)&&m(I.current)}function p(_){return o.format(_)}function C(_,z){w(_,B(z))}function E(_){return Math.round((_-n)/i)*i+n}function B(_){const z=_*(r-n)+n;return Tn(E(z),n,r)}function H(_,z=1){let K=Math.max(z,i);w(_,or(g[_]+K,n,r,i))}function X(_,z=1){let K=Math.max(z,i);w(_,or(g[_]-K,n,r,i))}return{values:g,defaultValues:e.defaultValue!==void 0?c:v,getThumbValue:_=>g[_],setThumbValue:w,setThumbPercent:C,isThumbDragging:_=>x[_],setThumbDragging:N,focusedThumb:A,setFocusedThumb:M,getThumbPercent:_=>V(g[_]),getValuePercent:V,getThumbValueLabel:_=>p(g[_]),getFormattedValue:p,getThumbMinValue:j,getThumbMaxValue:f,getPercentValue:B,isThumbEditable:k,setThumbEditable:D,incrementThumb:H,decrementThumb:X,step:i,pageSize:a,orientation:s,isDisabled:t}}function Rf(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Bf(e){if(e!=null)return Array.isArray(e)?e:[e]}function zf(e,t,n){return r=>{n?.(typeof e=="number"||typeof t=="number"?r[0]:r)}}function Ex(e){var t,n,r,o;const i=Ct(),[s,a]=sn(e,ci.variantKeys),{ref:l,as:u,name:c,label:d,formatOptions:m,value:g,maxValue:y=100,minValue:v=0,step:x=1,showSteps:b=!1,showTooltip:$=!1,orientation:A="horizontal",marks:M=[],startContent:I,endContent:O,fillOffset:L,className:S,classNames:V,renderThumb:j,renderLabel:f,renderValue:k,onChange:D,onChangeEnd:w,getValue:N,getTooltipValue:p,tooltipValueFormatOptions:C=m,tooltipProps:E={},...B}=s,H=v===y;H&&_r("Min and max values should not be the same. This may cause unexpected behavior.");const X=u||"div",_=typeof X=="string",z=(n=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,K=gt(l),se=h.useRef(null),ee=$c(m),{direction:oe}=ar(),xe=h.useCallback(me=>Math.min(Math.max(me,v),y),[v,y]),ye=h.useMemo(()=>{if(H)return v;if(g!==void 0)return Array.isArray(g)?g.map(xe):xe(g)},[g,xe,H,v]),J=xx({...B,value:ye,isDisabled:(r=e?.isDisabled)!=null?r:!1,orientation:A,step:x,minValue:v,maxValue:y,numberFormatter:ee,onChange:D,onChangeEnd:w}),Se={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=ci.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,...E},{groupProps:Ee,trackProps:Z,labelProps:ce,outputProps:ge}=tx(e,J,se),{isHovered:ie,hoverProps:$e}=on({isDisabled:e.isDisabled}),Ae=ze(V?.base,S),ue=A==="vertical",ke=M?.length>0,Le=L===void 0?J.values.length===1:!1,be=h.useMemo(()=>ci({...a,hasMarks:ke,disableAnimation:z,hasSingleThumb:Le,isVertical:ue}),[gn(a),ue,z,Le,ke]),[qe,nt]=[J.values.length>1?J.getThumbPercent(0):L!==void 0?J.getValuePercent(L):0,J.getThumbPercent(J.values.length-1)].sort(),we=J.values.length===1?ee.format(J.values[0]):ee.formatRange(J.values[0],J.values[J.values.length-1]),Ge=b?Math.floor((y-v)/x)+1:0;return{Component:X,state:J,value:we,domRef:K,label:d,steps:Ge,marks:M,startContent:I,endContent:O,getStepProps:me=>{const Oe=J.getValuePercent(me*x+v);return{className:be.step({class:V?.step}),"data-slot":"step","data-in-range":Oe<=nt&&Oe>=qe,style:{[ue?"bottom":oe==="rtl"?"right":"left"]:`${Oe*100}%`}}},getBaseProps:(me={})=>({ref:K,"data-orientation":J.orientation,"data-slot":"base","data-hover":ie,className:be.base({class:Ae}),...Xe(Ee,$e,_t(B,{enabled:_}),_t(me))}),getValue:N,renderLabel:f,renderValue:k,getTrackWrapperProps:(me={})=>({"data-slot":"track-wrapper",className:be.trackWrapper({class:V?.trackWrapper}),...me}),getLabelWrapperProps:(me={})=>({className:be.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...me}),getLabelProps:(me={})=>({"data-slot":"label",className:be.label({class:V?.label}),children:d,...ce,...me}),getValueProps:(me={})=>({"data-slot":"value",className:be.value({class:V?.value}),children:N&&typeof N=="function"?N(J.values):we,...ge,...me}),getTrackProps:(me={})=>{const Oe=(nt-qe)*100;return{ref:se,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":ue,...Le?{"data-fill-start":Oe>0,"data-fill-end":Oe==100}:{"data-fill-start":qe==0,"data-fill-end":qe*100+Oe==100},className:be.track({class:V?.track}),...Z,...me}},getFillerProps:(me={})=>({"data-slot":"filler",className:be.filler({class:V?.filler}),...me,style:{...me.style,[ue?"bottom":oe==="rtl"?"right":"left"]:`${qe*100}%`,...ue?{height:`${(nt-qe)*100}%`}:{width:`${(nt-qe)*100}%`}}}),getThumbProps:me=>({name:c,index:me,state:J,trackRef:se,orientation:A,isVertical:ue,tooltipProps:Se,getTooltipValue:p,showTooltip:$,renderThumb:j,formatOptions:C,className:be.thumb({class:V?.thumb})}),getMarkProps:me=>{const Oe=J.getValuePercent(me.value);return{className:be.mark({class:V?.mark}),"data-slot":"mark","data-in-range":Oe<=nt&&Oe>=qe,style:{[ue?"bottom":oe==="rtl"?"right":"left"]:`${Oe*100}%`},onMouseDown:Mt=>Mt.stopPropagation(),onPointerDown:Mt=>Mt.stopPropagation(),onClick:Mt=>{if(Mt.stopPropagation(),!H)if(J.values.length===1)J.setThumbPercent(0,Oe);else{const Xn=J.values[0],kr=J.values[1];me.value<Xn?J.setThumbPercent(0,Oe):me.value>kr?J.setThumbPercent(1,Oe):Math.abs(me.value-Xn)<Math.abs(me.value-kr)?J.setThumbPercent(0,Oe):J.setThumbPercent(1,Oe)}}}},getStartContentProps:(me={})=>({"data-slot":"startContent",className:be.startContent({class:V?.startContent}),...me}),getEndContentProps:(me={})=>({"data-slot":"endContent",className:be.endContent({class:V?.endContent}),...me})}}var Uf=Qe((e,t)=>{const{Component:n,state:r,label:o,steps:i,marks:s,startContent:a,endContent:l,getStepProps:u,getBaseProps:c,renderValue:d,renderLabel:m,getTrackWrapperProps:g,getLabelWrapperProps:y,getLabelProps:v,getValueProps:x,getTrackProps:b,getFillerProps:$,getThumbProps:A,getMarkProps:M,getStartContentProps:I,getEndContentProps:O}=Ex({...e,ref:t});return P.jsxs(n,{...c(),children:[o&&P.jsxs("div",{...y(),children:[ki({Component:"label",props:v(),renderCustom:m}),ki({Component:"output",props:x(),renderCustom:d})]}),P.jsxs("div",{...g(),children:[a&&P.jsx("div",{...I(),children:a}),P.jsxs("div",{...b(),children:[P.jsx("div",{...$()}),Number.isFinite(i)&&Array.from({length:i},(L,S)=>P.jsx("div",{...u(S)},S)),r.values.map((L,S)=>P.jsx(bx,{...A(S)},S)),s?.length>0&&s.map((L,S)=>P.jsx("div",{...M(L),children:L.label},S))]}),l&&P.jsx("div",{...O(),children:l})]})]})});Uf.displayName="HeroUI.Slider";var Tx=Uf;function Kf({min:e,max:t,step:n=1,unit:r="",value:o,onChange:i,classNames:s}){const a=l=>{if(Array.isArray(l)){const u=[l[0],l[1]];i(u)}};return P.jsx("div",{className:te(s?.base),children:P.jsx(Tx,{className:te("w-full",s?.slider),size:"sm",step:n,hideValue:!0,label:`${r} ${e} - ${r} ${t}`,minValue:e,maxValue:t,value:o||[e,t],onChange:a,marks:[{value:e,label:e.toString()},{value:t,label:t.toString()}],classNames:{label:s?.label,mark:s?.marks}})})}const ma={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Hf={...ma,customError:!0,valid:!1},Yn={isInvalid:!1,validationDetails:ma,validationErrors:[]},Gf=h.createContext({}),Ro="__formValidationState"+Date.now();function ga(e){if(e[Ro]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Ro];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return $x(e)}function $x(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Hf}:null,u=h.useMemo(()=>{if(!s||o==null)return null;let j=Cx(s,o);return Wf(j)},[s,o]);i?.validationDetails.valid&&(i=void 0);let c=h.useContext(Gf),d=h.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>ba(c[j])):ba(c[r]):[],[c,r]),[m,g]=h.useState(c),[y,v]=h.useState(!1);c!==m&&(g(c),v(!1));let x=h.useMemo(()=>Wf(y?[]:d),[y,d]),b=h.useRef(Yn),[$,A]=h.useState(Yn),M=h.useRef(Yn),I=()=>{if(!O)return;L(!1);let j=u||i||b.current;va(j,M.current)||(M.current=j,A(j))},[O,L]=h.useState(!1);return h.useEffect(I),{realtimeValidation:l||x||u||i||Yn,displayValidation:a==="native"?l||x||$:l||x||u||i||$,updateValidation(j){a==="aria"&&!va($,j)?A(j):b.current=j},resetValidation(){let j=Yn;va(j,M.current)||(M.current=j,A(j)),a==="native"&&L(!1),v(!0)},commitValidation(){a==="native"&&L(!0),v(!0)}}}function ba(e){return e?Array.isArray(e)?e:[e]:[]}function Cx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ba(n)}return[]}function Wf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Hf}:null}function va(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Px(...e){let t=new Set,n=!1,r={...ma};for(let s of e){var o,i;for(let a of s.validationErrors)t.add(a);n||(n=s.isInvalid);for(let a in r)(o=r)[i=a]||(o[i]=s.validationDetails[a])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Sx(e,t,n){let{validationBehavior:r,focus:o}=e;bt(()=>{if(r==="native"&&n?.current&&!n.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(u),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Ix(n.current))}});let i=h.useRef(!1),s=Ue(()=>{i.current||t.resetValidation()}),a=Ue(u=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!u.defaultPrevented&&n&&d&&Ax(d)===n.current){var m;o?o():(m=n.current)===null||m===void 0||m.focus(),zd("keyboard")}u.preventDefault()}),l=Ue(()=>{t.commitValidation()});h.useEffect(()=>{let u=n?.current;if(!u)return;let c=u.form,d=c?.reset;return c&&(c.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(c),i.current=!1}),u.addEventListener("invalid",a),u.addEventListener("change",l),c?.addEventListener("reset",s),()=>{u.removeEventListener("invalid",a),u.removeEventListener("change",l),c?.removeEventListener("reset",s),c&&(c.reset=d)}},[n,a,l,s,r])}function kx(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 Ix(e){return{isInvalid:!e.validity.valid,validationDetails:kx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Ax(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Ox(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:s,form:a,children:l,"aria-label":u,"aria-labelledby":c,validationState:d="valid",isInvalid:m,onPressStart:g,onPressEnd:y,onPressChange:v,onPress:x,onPressUp:b,onClick:$}=e,A=D=>{D.stopPropagation(),t.setSelected(D.target.checked)},M=l!=null,I=u!=null||c!=null;!M&&!I&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:O,isPressed:L}=Un({onPressStart:g,onPressEnd:y,onPressChange:v,onPress:x,onPressUp:b,onClick:$,isDisabled:r}),{pressProps:S,isPressed:V}=Un({onPressStart:g,onPressEnd:y,onPressChange:v,onPressUp:b,onClick:$,onPress(D){var w;x?.(D),t.toggle(),(w=n.current)===null||w===void 0||w.focus()},isDisabled:r||o}),{focusableProps:j}=ko(e,n),f=Be(O,j),k=Jr(e,{labelable:!0});return wc(n,t.defaultSelected,t.setSelected),{labelProps:Be(S,{onClick:D=>D.preventDefault()}),inputProps:Be(k,{"aria-invalid":m||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:A,disabled:r,...i==null?{}:{value:i},name:s,form:a,type:"checkbox",...f}),isSelected:t.isSelected,isPressed:L||V,isDisabled:r,isReadOnly:o,isInvalid:m||d==="invalid"}}function qf(e,t,n){let r=ga({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:s}=r.displayValidation,{labelProps:a,inputProps:l,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:m}=Ox({...e,isInvalid:o},t,n);Sx(e,r,n);let{isIndeterminate:g,isRequired:y,validationBehavior:v="aria"}=e;h.useEffect(()=>{n.current&&(n.current.indeterminate=!!g)});let{pressProps:x}=Un({isDisabled:d||m,onPress(){let{[Ro]:b}=e,{commitValidation:$}=b||r;$()}});return{labelProps:Be(a,x),inputProps:{...l,checked:u,"aria-required":y&&v==="aria"||void 0,required:y&&v==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:m,isInvalid:o,validationErrors:i,validationDetails:s}}const Yf=new WeakMap;function Mx(e,t){let{isDisabled:n,name:r,form:o,validationBehavior:i="aria"}=e,{isInvalid:s,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:m}=ex({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||a});Yf.set(t,{name:r,form:o,descriptionId:d.id,errorMessageId:m.id,validationBehavior:i});let g=Jr(e,{labelable:!0}),{focusWithinProps:y}=Io({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Be(g,{role:"group","aria-disabled":n||void 0,...c,...y}),labelProps:u,descriptionProps:d,errorMessageProps:m,isInvalid:s,validationErrors:a,validationDetails:l}}function Xf(e={}){let{isReadOnly:t}=e,[n,r]=Br(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=h.useState(n);function i(l){t||r(l)}function s(){t||r(!n)}var a;return{isSelected:n,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:i,toggle:s}}function Dx(e,t,n){const r=Xf({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(b){b?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(b)}});let{name:o,form:i,descriptionId:s,errorMessageId:a,validationBehavior:l}=Yf.get(t);var u;l=(u=e.validationBehavior)!==null&&u!==void 0?u:l;let{realtimeValidation:c}=ga({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),d=h.useRef(Yn),m=()=>{t.setInvalid(e.value,c.isInvalid?c:d.current)};h.useEffect(m);let g=t.realtimeValidation.isInvalid?t.realtimeValidation:c,y=l==="native"?t.displayValidation:g;var v;let x=qf({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(v=e.isRequired)!==null&&v!==void 0?v:t.isRequired,validationBehavior:l,[Ro]:{realtimeValidation:g,displayValidation:y,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(b){d.current=b,m()}}},r,n);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}function Nx(e={}){let[t,n]=Br(e.value,e.defaultValue||[],e.onChange),[r]=h.useState(t),o=!!e.isRequired&&t.length===0,i=h.useRef(new Map),s=ga({...e,value:t}),a=s.displayValidation.isInvalid;var l,u;return{...s,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:r,setValue(d){e.isReadOnly||e.isDisabled||n(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),n(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&n(t.filter(m=>m!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?n(t.filter(m=>m!==d)):n(t.concat(d)))},setInvalid(d,m){let g=new Map(i.current);m.isInvalid?g.set(d,m):g.delete(d),i.current=g,s.updateValidation(Px(...g.values()))},validationState:(u=e.validationState)!==null&&u!==void 0?u:a?"invalid":null,isInvalid:a,isRequired:o}}var Jf=Symbol("default");function Lx(e){const t=h.useRef(null),n=h.useRef(void 0),r=h.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 h.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}function ya(e,t){let n=h.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`));if(!t&&!n.slots[Jf])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let o=t||Jf;if(!n.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[o]}return n}function Vx(e,t,n){let r=ya(n,e.slot)||{},{ref:o,...i}=r,s=Lx(h.useMemo(()=>lm(t,o),[t,o])),a=Xe(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 u=typeof i.style=="function"?i.style(l):i.style,c={...l.defaultStyle,...u},d=typeof e.style=="function"?e.style({...l,defaultStyle:c}):e.style;return{...c,...d}}:a.style={...i.style,...e.style}),[a,s]}var Bo=h.createContext(null);h.forwardRef(function(t,n){[t,n]=Vx(t,n,Bo);let{validationErrors:r,validationBehavior:o="native",children:i,className:s,...a}=t;const l=h.useMemo(()=>Qh({className:s}),[s]);return P.jsx("form",{noValidate:o!=="native",...a,ref:n,className:l,children:P.jsx(Bo.Provider,{value:{...t,validationBehavior:o},children:P.jsx(Gf.Provider,{value:r??{},children:i})})})});function _x(e){var t,n;const r=Ct(),{validationBehavior:o}=ya(Bo)||{},{as:i,ref:s,classNames:a,children:l,label:u,radius:c,value:d,name:m,defaultValue:g,isInvalid:y,validationState:v,size:x="md",color:b="primary",orientation:$="vertical",lineThrough:A=!1,isDisabled:M=!1,validationBehavior:I=(t=o??r?.validationBehavior)!=null?t:"native",disableAnimation:O=(n=r?.disableAnimation)!=null?n:!1,isReadOnly:L,isRequired:S,onValueChange:V,description:j,errorMessage:f,className:k,...D}=e,w=i||"div",N=typeof w=="string",p=gt(s),C=h.useMemo(()=>({...D,value:d,name:m,"aria-label":yl(D["aria-label"],u),defaultValue:g,isRequired:S,isReadOnly:L,orientation:$,validationBehavior:I,isInvalid:v==="invalid"||y,onChange:bn(e.onChange,V)}),[d,m,u,g,S,L,$,V,y,v,I,D["aria-label"],D]),E=Nx(C),{labelProps:B,groupProps:H,descriptionProps:X,errorMessageProps:_,validationErrors:z,validationDetails:K}=Mx(C,E),se=h.useMemo(()=>({size:x,color:b,radius:c,lineThrough:A,isInvalid:E.isInvalid,isDisabled:M,disableAnimation:O,validationBehavior:I,groupState:E}),[x,b,c,A,M,O,I,E.value,E.isDisabled,E.isReadOnly,E.isInvalid,E.isSelected]),ee=h.useMemo(()=>nm({isRequired:S,isInvalid:E.isInvalid,disableAnimation:O}),[S,E.isInvalid,,O]),oe=ze(a?.base,k),xe=h.useCallback(()=>({ref:p,className:ee.base({class:oe}),...Xe(H,_t(D,{enabled:N}))}),[ee,p,oe,H,D]),ye=h.useCallback(()=>({className:ee.label({class:a?.label}),...B}),[ee,B,a?.label]),J=h.useCallback(()=>({className:ee.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[ee,$,a?.wrapper]),Se=h.useCallback((Z={})=>({...Z,...X,className:ee.description({class:ze(a?.description,Z?.className)})}),[ee,X,a?.description]),Ee=h.useCallback((Z={})=>({...Z,..._,className:ee.errorMessage({class:ze(a?.errorMessage,Z?.className)})}),[ee,_,a?.errorMessage]);return{Component:w,children:l,label:u,context:se,description:j,isInvalid:E.isInvalid,errorMessage:typeof f=="function"?f({isInvalid:E.isInvalid,validationErrors:z,validationDetails:K}):f||z?.join(" "),getGroupProps:xe,getLabelProps:ye,getWrapperProps:J,getDescriptionProps:Se,getErrorMessageProps:Ee}}var[Fx,jx]=Yr({name:"CheckboxGroupContext",strict:!1}),Zf=Qe((e,t)=>{const{children:n,context:r,label:o,description:i,isInvalid:s,errorMessage:a,getGroupProps:l,getLabelProps:u,getWrapperProps:c,getDescriptionProps:d,getErrorMessageProps:m}=_x({...e,ref:t});return P.jsxs("div",{...l(),children:[o&&P.jsx("span",{...u(),children:o}),P.jsx("div",{...c(),children:P.jsx(Fx,{value:r,children:n})}),s&&a?P.jsx("div",{...m(),children:a}):i?P.jsx("div",{...d(),children:i}):null]})});Zf.displayName="HeroUI.CheckboxGroup";var Rx=Zf;function Bx(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{points:"1 9 7 14 15 4"})})}function zx(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:P.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Ux(e){const{isIndeterminate:t,...n}=e,r=t?zx:Bx;return P.jsx(r,{...n})}function Kx(e,t=[]){const n=h.useRef(e);return jo(()=>{n.current=e}),h.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Hx(e={}){var t,n,r,o,i,s,a,l;const u=Ct(),c=jx(),{validationBehavior:d}=ya(Bo)||{},m=!!c,{as:g,ref:y,value:v="",children:x,icon:b,name:$,isRequired:A,isReadOnly:M=!1,autoFocus:I=!1,isSelected:O,size:L=(t=c?.size)!=null?t:"md",color:S=(n=c?.color)!=null?n:"primary",radius:V=c?.radius,lineThrough:j=(r=c?.lineThrough)!=null?r:!1,isDisabled:f=(o=c?.isDisabled)!=null?o:!1,disableAnimation:k=(s=(i=c?.disableAnimation)!=null?i:u?.disableAnimation)!=null?s:!1,validationState:D,isInvalid:w=D?D==="invalid":(a=c?.isInvalid)!=null?a:!1,isIndeterminate:N=!1,validationBehavior:p=m?c.validationBehavior:(l=d??u?.validationBehavior)!=null?l:"native",defaultSelected:C,classNames:E,className:B,onValueChange:H,validate:X,..._}=e;c&&rm&&(O&&_r("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),C&&_r("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const z=g||"label",K=h.useRef(null),se=h.useRef(null);let ee=e.onChange;m&&(ee=bn(()=>{c.groupState.resetValidation()},ee));const oe=h.useId(),xe=h.useMemo(()=>({name:$,value:v,children:x,autoFocus:I,defaultSelected:C,isIndeterminate:N,isRequired:A,isInvalid:w,isSelected:O,isDisabled:f,isReadOnly:M,"aria-label":yl(_["aria-label"],x),"aria-labelledby":_["aria-labelledby"]||oe,onChange:H}),[$,v,x,I,C,N,A,w,O,f,M,_["aria-label"],_["aria-labelledby"],oe,H]),ye=Xf(xe),J={isInvalid:w,isRequired:A,validate:X,validationState:D,validationBehavior:p},{inputProps:Se,isSelected:Ee,isDisabled:Z,isReadOnly:ce,isPressed:ge,isInvalid:ie}=m?Dx({...xe,...J},c.groupState,se):qf({...xe,...J},ye,se),$e=Z||ce,Ae=D==="invalid"||w||ie,ue=$e?!1:ge,{hoverProps:ke,isHovered:Le}=on({isDisabled:Se.disabled}),{focusProps:be,isFocused:qe,isFocusVisible:nt}=wr({autoFocus:Se.autoFocus}),we=h.useMemo(()=>tm({color:S,size:L,radius:V,isInvalid:Ae,lineThrough:j,isDisabled:Z,disableAnimation:k}),[S,L,V,Ae,j,Z,k]);jo(()=>{if(!se.current)return;const dt=!!se.current.checked;ye.setSelected(dt)},[se.current]);const Ge=Kx(ee),Et=h.useCallback(dt=>{if(ce||Z){dt.preventDefault();return}Ge?.(dt)},[ce,Z,Ge]),un=ze(E?.base,B),Ot=h.useCallback(()=>({ref:K,className:we.base({class:un}),"data-disabled":pe(Z),"data-selected":pe(Ee||N),"data-invalid":pe(Ae),"data-hover":pe(Le),"data-focus":pe(qe),"data-pressed":pe(ue),"data-readonly":pe(Se.readOnly),"data-focus-visible":pe(nt),"data-indeterminate":pe(N),...Xe(ke,_)}),[we,un,Z,Ee,N,Ae,Le,qe,ue,Se.readOnly,nt,ke,_]),Sr=h.useCallback((dt={})=>({...dt,"aria-hidden":!0,className:ze(we.wrapper({class:ze(E?.wrapper,dt?.className)}))}),[we,E?.wrapper]),Go=h.useCallback(()=>({ref:sc(se,y),...Xe(Se,be),className:we.hiddenInput({class:E?.hiddenInput}),onChange:bn(Se.onChange,Et)}),[Se,be,Et,E?.hiddenInput]),Wo=h.useCallback(()=>({id:oe,className:we.label({class:E?.label})}),[we,E?.label,Z,Ee,Ae]),qo=h.useCallback(()=>({isSelected:Ee,isIndeterminate:N,disableAnimation:k,className:we.icon({class:E?.icon})}),[we,E?.icon,Ee,N,k]);return{Component:z,icon:b,children:x,isSelected:Ee,isDisabled:Z,isInvalid:Ae,isFocused:qe,isHovered:Le,isFocusVisible:nt,getBaseProps:Ot,getWrapperProps:Sr,getInputProps:Go,getLabelProps:Wo,getIconProps:qo}}var Qf=Qe((e,t)=>{const{Component:n,children:r,icon:o=P.jsx(Ux,{}),getBaseProps:i,getWrapperProps:s,getInputProps:a,getIconProps:l,getLabelProps:u}=Hx({...e,ref:t}),c=typeof o=="function"?o(l()):h.cloneElement(o,l());return P.jsxs(n,{...i(),children:[P.jsx("input",{...a()}),P.jsx("span",{...s(),children:c}),r&&P.jsx("span",{...u(),children:r})]})});Qf.displayName="HeroUI.Checkbox";var Gx=Qf;function ep({options:e,values:t=[],onChange:n,classNames:r}){return P.jsx("div",{className:te(r?.base),children:P.jsx(Rx,{size:"sm",radius:"none",value:t,onValueChange:n,children:e.map(o=>P.jsx(Gx,{color:"primary",value:o,classNames:{base:te("max-w-full",r?.checkbox),label:te("text-sm text-foreground",r?.label),wrapper:te("before:border-secondary-200 before:border-1 group-data-[hover=true]:before:bg-secondary-50 after:bg-transparent",r?.wrapper),icon:te("text-primary-500",r?.icon)},children:o},o))})})}function tp({filters:e,activeFilters:t,onFilterChange:n,onClearAll:r,className:o,classNames:i}){const s=t.length>0;function a(l,u){n({id:l,value:u})}return P.jsxs("div",{className:te("w-60 shrink-0",o,i?.base),children:[s&&P.jsx(z1,{size:"sm",color:"primary",underline:"always",onPress:r,className:te("mb-4 cursor-pointer text-primary-500",i?.clearButton),children:"Wis alle filters"}),P.jsx("div",{className:te("flex flex-col gap-6",i?.filtersContainer),children:e.map(l=>P.jsxs("div",{className:te(i?.filterGroup),children:[P.jsx("div",{className:te("font-bold text-base mb-1",i?.filterLabel),children:l.label}),P.jsxs("div",{className:"flex flex-col gap-3",children:[l.type==="range"&&P.jsx(Kf,{id:l.id,min:l.min||0,max:l.max||100,step:l.step,unit:l.unit,value:Zs(t,l.id),onChange:u=>a(l.id,u)}),l.type==="select"&&l.options&&P.jsx(ep,{id:l.id,options:l.options,values:Zs(t,l.id),onChange:u=>a(l.id,u)})]})]},l.id))})]})}var[OT,Wx]=Yr({name:"ButtonGroupContext",strict:!1});function np(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:m,target:g,rel:y,type:v="button",allowTextSelectionOnPress:x}=e,b;n==="button"?b={type:v,disabled:r}:b={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?v:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:$,isPressed:A}=Un({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:r,preventFocusOnPress:u,allowTextSelectionOnPress:x,ref:t}),{focusableProps:M}=ko(e,t);c&&(M.tabIndex=r?-1:M.tabIndex);let I=Be(M,$,Jr(e,{labelable:!0}));return{isPressed:A,buttonProps:Be(b,I,{"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 qx=()=>Promise.resolve().then(()=>Fp).then(e=>e.default),rp=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return P.jsx(P.Fragment,{children:t.map(s=>{const a=sm(.01*s.size,.2,s.size>100?.75:.5);return P.jsx(Bu,{features:qx,children:P.jsx(ju,{mode:"popLayout",children:P.jsx(nd.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,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)},...n})})},s.key)})})};rp.displayName="HeroUI.Ripple";var op=rp;function ip(e={}){const[t,n]=h.useState([]),r=h.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);n(l=>[...l,{key:im(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=h.useCallback(i=>{n(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:r,...e}}function Yx(e){var t,n,r,o,i,s,a,l,u;const c=Wx(),d=Ct(),m=!!c,{ref:g,as:y,children:v,startContent:x,endContent:b,autoFocus:$,className:A,spinner:M,isLoading:I=!1,disableRipple:O=!1,fullWidth:L=(t=c?.fullWidth)!=null?t:!1,radius:S=c?.radius,size:V=(n=c?.size)!=null?n:"md",color:j=(r=c?.color)!=null?r:"default",variant:f=(o=c?.variant)!=null?o:"solid",disableAnimation:k=(s=(i=c?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:D=(a=c?.isDisabled)!=null?a:!1,isIconOnly:w=(l=c?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:p,onClick:C,...E}=e,B=y||"button",H=typeof B=="string",X=gt(g),_=(u=O||d?.disableRipple)!=null?u:k,{isFocusVisible:z,isFocused:K,focusProps:se}=wr({autoFocus:$}),ee=D||I,oe=h.useMemo(()=>em({size:V,color:j,variant:f,radius:S,fullWidth:L,isDisabled:ee,isInGroup:m,disableAnimation:k,isIconOnly:w,className:A}),[V,j,f,S,L,ee,m,w,k,A]),{onPress:xe,onClear:ye,ripples:J}=ip(),Se=h.useCallback(be=>{_||ee||k||X.current&&xe(be)},[_,ee,k,X,xe]),{buttonProps:Ee,isPressed:Z}=np({elementType:y,isDisabled:ee,onPress:bn(p,Se),onClick:C,...E},X),{isHovered:ce,hoverProps:ge}=on({isDisabled:ee}),ie=h.useCallback((be={})=>({"data-disabled":pe(ee),"data-focus":pe(K),"data-pressed":pe(Z),"data-focus-visible":pe(z),"data-hover":pe(ce),"data-loading":pe(I),...Xe(Ee,se,ge,_t(E,{enabled:H}),_t(be)),className:oe}),[I,ee,K,Z,H,z,ce,Ee,se,ge,E,oe]),$e=be=>h.isValidElement(be)?h.cloneElement(be,{"aria-hidden":!0,focusable:!1}):null,Ae=$e(x),ue=$e(b),ke=h.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),Le=h.useCallback(()=>({ripples:J,onClear:ye}),[J,ye]);return{Component:B,children:v,domRef:X,spinner:M,styles:oe,startContent:Ae,endContent:ue,isLoading:I,spinnerPlacement:N,spinnerSize:ke,disableRipple:_,getButtonProps:ie,getRippleProps:Le,isIconOnly:w}}function Xx(e){var t,n;const[r,o]=sn(e,fl.variantKeys),i=Ct(),s=(n=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?n:"default",{children:a,className:l,classNames:u,label:c,...d}=r,m=h.useMemo(()=>fl({...o}),[gn(o)]),g=ze(u?.base,l),y=c||a,v=h.useMemo(()=>y&&typeof y=="string"?y:d["aria-label"]?"":"Loading",[a,y,d["aria-label"]]),x=h.useCallback(()=>({"aria-label":v,className:m.base({class:g}),...d}),[v,m,g,d]);return{label:y,slots:m,classNames:u,variant:s,getSpinnerProps:x}}var sp=Qe((e,t)=>{const{slots:n,classNames:r,label:o,variant:i,getSpinnerProps:s}=Xx({...e});return i==="wave"||i==="dots"?P.jsxs("div",{ref:t,...s(),children:[P.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(3)].map((a,l)=>P.jsx("i",{className:n.dots({class:r?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):i==="simple"?P.jsxs("div",{ref:t,...s(),children:[P.jsxs("svg",{className:n.wrapper({class:r?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:n.circle1({class:r?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:n.circle2({class:r?.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&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):i==="spinner"?P.jsxs("div",{ref:t,...s(),children:[P.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(12)].map((a,l)=>P.jsx("i",{className:n.spinnerBars({class:r?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]}):P.jsxs("div",{ref:t,...s(),children:[P.jsxs("div",{className:n.wrapper({class:r?.wrapper}),children:[P.jsx("i",{className:n.circle1({class:r?.circle1})}),P.jsx("i",{className:n.circle2({class:r?.circle2})})]}),o&&P.jsx("span",{className:n.label({class:r?.label}),children:o})]})});sp.displayName="HeroUI.Spinner";var Jx=sp,ap=Qe((e,t)=>{const{Component:n,domRef:r,children:o,spinnerSize:i,spinner:s=P.jsx(Jx,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:u,isLoading:c,disableRipple:d,getButtonProps:m,getRippleProps:g,isIconOnly:y}=Yx({...e,ref:t});return P.jsxs(n,{ref:r,...m(),children:[l,c&&a==="start"&&s,c&&y?null:o,c&&a==="end"&&s,u,!d&&P.jsx(op,{...g()})]})});ap.displayName="HeroUI.Button";var Zx=ap,[Qx,wa]=Yr({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),lp=Qe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=gt(t),{slots:u,classNames:c}=wa(),d=ze(c?.body,o);return P.jsx(a,{ref:l,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...s,children:i})});lp.displayName="HeroUI.CardBody";var eE=lp,cp=Qe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=gt(t),{slots:u,classNames:c}=wa(),d=ze(c?.footer,o);return P.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:i})});cp.displayName="HeroUI.CardFooter";var tE=cp,up=Qe((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=gt(t),{slots:u,classNames:c}=wa(),d=ze(c?.header,o);return P.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:i})});up.displayName="HeroUI.CardHeader";var nE=up;function rE(e){var t,n,r,o;const i=Ct(),[s,a]=sn(e,gl.variantKeys),{ref:l,as:u,children:c,onClick:d,onPress:m,autoFocus:g,className:y,classNames:v,allowTextSelectionOnPress:x=!0,...b}=s,$=gt(l),A=u||(e.isPressable?"button":"div"),M=typeof A=="string",I=(n=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,O=(o=(r=e.disableRipple)!=null?r:i?.disableRipple)!=null?o:!1,L=ze(v?.base,y),{onClear:S,onPress:V,ripples:j}=ip(),f=h.useCallback(z=>{O||I||$.current&&V(z)},[O,I,$,V]),{buttonProps:k,isPressed:D}=np({onPress:bn(m,f),elementType:u,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...b},$),{hoverProps:w,isHovered:N}=on({isDisabled:!e.isHoverable,...b}),{isFocusVisible:p,isFocused:C,focusProps:E}=wr({autoFocus:g}),B=h.useMemo(()=>gl({...a,disableAnimation:I}),[gn(a),I]),H=h.useMemo(()=>({slots:B,classNames:v,disableAnimation:I,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,v,e.isDisabled,e.isFooterBlurred,I,e.fullWidth]),X=h.useCallback((z={})=>({ref:$,className:B.base({class:L}),tabIndex:e.isPressable?0:-1,"data-hover":pe(N),"data-pressed":pe(D),"data-focus":pe(C),"data-focus-visible":pe(p),"data-disabled":pe(e.isDisabled),...Xe(e.isPressable?{...k,...E,role:"button"}:{},e.isHoverable?w:{},_t(b,{enabled:M}),_t(z))}),[$,B,L,M,e.isPressable,e.isHoverable,e.isDisabled,N,D,p,k,E,w,b]),_=h.useCallback(()=>({ripples:j,onClear:S}),[j,S]);return{context:H,domRef:$,Component:A,classNames:v,children:c,isHovered:N,isPressed:D,disableAnimation:I,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:O,handlePress:f,isFocusVisible:p,getCardProps:X,getRippleProps:_}}var dp=Qe((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:u}=rE({...e,ref:t});return P.jsxs(o,{...l(),children:[P.jsx(Qx,{value:r,children:n}),i&&!s&&!a&&P.jsx(op,{...u()})]})});dp.displayName="HeroUI.Card";var oE=dp;function iE(e){const[t,n]=sn(e,bl.variantKeys),{ref:r,as:o,children:i,avatar:s,startContent:a,endContent:l,onClose:u,classNames:c,className:d,...m}=t,g=o||"div",y=gt(r),v=ze(c?.base,d),x=!!u,b=e.variant==="dot",{focusProps:$,isFocusVisible:A}=wr(),M=h.useMemo(()=>typeof i=="string"&&i?.length===1,[i]),I=h.useMemo(()=>!!s||!!a,[s,a]),O=h.useMemo(()=>!!l||x,[l,x]),L=h.useMemo(()=>bl({...n,hasStartContent:I,hasEndContent:O,isOneChar:M,isCloseable:x,isCloseButtonFocusVisible:A}),[gn(n),A,I,O,M,x]),{pressProps:S}=Un({isDisabled:!!e?.isDisabled,onPress:u}),V=()=>({ref:y,className:L.base({class:v}),...m}),j=()=>({role:"button",tabIndex:0,className:L.closeButton({class:c?.closeButton}),"aria-label":"close chip",...Xe(S,$)}),f=D=>h.isValidElement(D)?h.cloneElement(D,{className:L.avatar({class:c?.avatar})}):null,k=D=>h.isValidElement(D)?h.cloneElement(D,{className:ze("max-h-[80%]",D.props.className)}):null;return{Component:g,children:i,slots:L,classNames:c,isDot:b,isCloseable:x,startContent:f(s)||k(a),endContent:k(l),getCloseButtonProps:j,getChipProps:V}}var fp=Qe((e,t)=>{const{Component:n,children:r,slots:o,classNames:i,isDot:s,isCloseable:a,startContent:l,endContent:u,getCloseButtonProps:c,getChipProps:d}=iE({...e,ref:t}),m=h.useMemo(()=>s&&!l?P.jsx("span",{className:o.dot({class:i?.dot})}):l,[o,l,s]),g=h.useMemo(()=>a?P.jsx("span",{...c(),children:u||P.jsx(B1,{})}):u,[u,a,c]);return P.jsxs(n,{...d(),children:[m,P.jsx("span",{className:o.content({class:i?.content}),children:r}),g]})});fp.displayName="HeroUI.Chip";var sE=fp;function aE(e){let t=_t(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function lE(e){const{as:t,className:n,orientation:r,...o}=e;let i=t||"hr";i==="hr"&&r==="vertical"&&(i="div");const{separatorProps:s}=aE({elementType:typeof i=="string"?i:"hr",orientation:r}),a=h.useMemo(()=>Zh({orientation:r,className:n}),[r,n]),l=h.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...s,...o,...u}),[a,r,s,o]);return{Component:i,getDividerProps:l}}var pp=Qe((e,t)=>{const{Component:n,getDividerProps:r}=lE({...e});return P.jsx(n,{ref:t,...r()})});pp.displayName="HeroUI.Divider";var cE=pp;function uE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Broadcast Icon"}),P.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 dE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Calculator Icon"}),P.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 fE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Chevron Right Icon"}),P.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function pE({fill:e="currentColor",filled:t=!0,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Circle Check Filled Icon"}),P.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 hE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Clock Hour Icon"}),P.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 mE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Discount Icon"}),P.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 gE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Gauge Icon"}),P.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 bE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"Star Icon"}),P.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 vE({fill:e="currentColor",filled:t=!1,size:n,height:r,width:o,className:i,style:s,...a}){return P.jsxs("svg",{fill:t?e:"none",height:n||r||24,width:n||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[P.jsx("title",{children:"World Icon"}),P.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 yE({deviceDiscount:e,tcoPerMonth:t,classNames:n}){return P.jsxs("div",{className:te("px-3 py-2 bg-primary-50 text-xs font-semibold text-primary-500 flex items-center gap-3",n?.base),children:[e&&P.jsxs("div",{className:te("flex items-center gap-1",n?.deviceDiscount),children:[P.jsx(mE,{size:16}),e,",- toestelkorting"]}),P.jsxs("div",{className:te("flex items-center gap-1",n?.averagePrice),children:[P.jsx(dE,{size:16}),"gem. ",t," /mnd"]})]})}function wE({monthlyFeePromotionText:e,monthlyFee:t,productPrice:n,classNames:r}){return P.jsxs("div",{className:te(r?.base),children:[e&&P.jsx("div",{className:te("text-sm text-secondary-400",r?.promotionText),children:e}),P.jsxs("div",{className:te("flex items-end gap-1",r?.monthlyFee),children:[P.jsx("div",{className:te("text-3xl font-extrabold tracking-tighter text-foreground",r?.monthlyFeeValue),children:t}),P.jsx("div",{className:te("text-sm text-foreground",r?.monthlyFeeLabel),children:"/mnd"})]}),n&&P.jsxs("div",{className:te("text-sm text-foreground",r?.productPrice),children:["+ ",P.jsxs("b",{children:[n,",-"]})," eenmalig"]})]})}function xE(e={}){const{onLoad:t,onError:n,ignoreFallback:r,src:o,crossOrigin:i,srcSet:s,sizes:a,loading:l,shouldBypassImageLoad:u=!1}=e,c=Pg(),d=h.useRef(c?new Image:null),[m,g]=h.useState("pending");h.useEffect(()=>{d.current&&(d.current.onload=x=>{y(),g("loaded"),t?.(x)},d.current.onerror=x=>{y(),g("failed"),n?.(x)})},[d.current]);const y=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},v=h.useCallback(()=>{if(!o)return"pending";if(r||u)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,n,l,u]);return jo(()=>{c&&g(v())},[c,v]),r?"loaded":m}function EE(e){var t,n;const r=Ct(),[o,i]=sn(e,ml.variantKeys),{ref:s,as:a,src:l,className:u,classNames:c,loading:d,isBlurred:m,fallbackSrc:g,isLoading:y,disableSkeleton:v=!!g,removeWrapper:x=!1,onError:b,onLoad:$,srcSet:A,sizes:M,crossOrigin:I,...O}=o,L=xE({src:l,loading:d,onError:b,onLoad:$,ignoreFallback:!1,srcSet:A,sizes:M,crossOrigin:I,shouldBypassImageLoad:a!==void 0}),S=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,V=L==="loaded"&&!y,j=L==="loading"||y,f=e.isZoomed,k=a||"img",D=gt(s),{w,h:N}=h.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]),p=(!l||!V)&&!!g,C=j&&!v,E=h.useMemo(()=>ml({...i,disableAnimation:S,showSkeleton:C}),[gn(i),S,C]),B=ze(u,c?.img),H=(z={})=>{const K=ze(B,z?.className);return{src:l,ref:D,"data-loaded":pe(V),className:E.img({class:K}),loading:d,srcSet:A,sizes:M,crossOrigin:I,...O,style:{...O?.height&&{height:N},...z.style,...O.style}}},X=h.useCallback(()=>{const z=p?{backgroundImage:`url(${g})`}:{};return{className:E.wrapper({class:c?.wrapper}),style:{...z,maxWidth:w}}},[E,p,g,c?.wrapper,w]),_=h.useCallback(()=>({src:l,"aria-hidden":pe(!0),className:E.blurredImg({class:c?.blurredImg})}),[E,l,c?.blurredImg]);return{Component:k,domRef:D,slots:E,classNames:c,isBlurred:m,disableSkeleton:v,fallbackSrc:g,removeWrapper:x,isZoomed:f,isLoading:j,getImgProps:H,getWrapperProps:X,getBlurredImgProps:_}}var hp=Qe((e,t)=>{const{Component:n,domRef:r,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:m,getBlurredImgProps:g}=EE({...e,ref:t}),y=P.jsx(n,{ref:r,...d()});if(u)return y;const v=P.jsx("div",{className:o.zoomedWrapper({class:i?.zoomedWrapper}),children:y});return s?P.jsxs("div",{...m(),children:[a?v:y,h.cloneElement(y,g())]}):a||!c||l?P.jsxs("div",{...m(),children:[" ",a?v:y]}):y});hp.displayName="HeroUI.Image";var mp=hp;function TE({title:e,subtitle:t,imageUrl:n,imageAlt:r,specifications:o,stockStatus:i,reviewCount:s,reviewScore:a,classNames:l}){return P.jsxs("div",{className:te("w-full mb-3",l?.base),children:[P.jsx("div",{className:"flex justify-center mb-6 mt-3 w-full",children:P.jsx(mp,{alt:r,height:200,src:n,width:200,classNames:{img:l?.image}})}),P.jsx("div",{className:te("text-lg font-semibold text-foreground leading-none",l?.subtitle),children:t}),P.jsx("div",{className:te("text-2xl font-bold text-foreground",l?.title),children:e}),P.jsxs("div",{className:"flex gap-2",children:[P.jsx("div",{className:te("text-sm",i==="in_stock"?"text-success":"text-foreground",l?.stockStatus),children:i==="in_stock"?"Op voorraad":"Niet leverbaar"}),P.jsxs("div",{className:"text-sm flex items-center gap-1",children:[P.jsx(bE,{size:16,filled:!0,className:"text-default"}),P.jsx("div",{className:te("font-semibold text-foreground",l?.reviewScore),children:a}),P.jsxs("span",{className:te("text-secondary-400",l?.reviewCount),children:["(",s,")"]})]})]}),o&&P.jsx("div",{className:te("flex text-sm",l?.specifications),children:o.map((u,c)=>P.jsxs("div",{className:"text-secondary-400",children:[u.title,c<o.length-1&&P.jsx("span",{className:"mx-1",children:"•"})]},u.title))})]})}function $E({promotions:e,className:t,classNames:n}){return P.jsx("div",{className:te(n?.base),children:e.map(r=>P.jsxs("div",{className:te("flex items-center gap-1 text-foreground text-base",n?.item),children:[P.jsx(pE,{size:24,className:te("shrink-0",t,n?.icon)}),r]},r))})}function CE({title:e,subtitle:t,imageUrl:n,imageAlt:r,hasProduct:o,classNames:i}){return P.jsxs("div",{className:te("flex justify-between w-full",i?.base),children:[P.jsxs("div",{children:[P.jsx("div",{className:te(o?"text-2xl font-extrabold":"text-3xl font-extrabold","text-foreground",i?.title),children:e}),P.jsx("div",{className:te(o?"text-base":"text-lg","leading-none text-foreground",i?.subtitle),children:t})]}),P.jsx(mp,{alt:r,height:o?35:50,src:n,width:o?75:100,classNames:{img:i?.image}})]})}function gp({className:e,href:t,productTitle:n,productSubtitle:r,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:u,propositionSpecifications:c,monthlyFee:d,tcoPerMonth:m,specialPromotions:g,modificationPromotions:y,monthlyFeePromotionText:v,deliveryText:x,urgentText:b,productSpecifications:$,productStockStatus:A,productReviewCount:M,productReviewScore:I,productPrice:O,deviceDiscount:L,classNames:S,...V}){const j=!!(n&&r&&o&&i);return P.jsxs(oE,{...V,as:"a",href:t,className:te(e,S?.card),children:[P.jsxs(nE,{className:te("flex-col items-start text-start z-1",S?.header),children:[j&&P.jsx(TE,{imageAlt:i||"",imageUrl:o||"",reviewCount:M,reviewScore:I,specifications:$,stockStatus:A,subtitle:r||"",title:n||"",classNames:S?.productSection}),P.jsx(CE,{hasProduct:j,imageAlt:u,imageUrl:l,subtitle:a,title:s,classNames:S?.propositionHeader})]}),P.jsxs(eE,{className:te("py-0",S?.body),children:[!j&&c&&P.jsx("div",{className:te("grid grid-cols-2 text-secondary-400 mb-3",S?.specifications),children:c.map(f=>P.jsxs("div",{className:"text-sm flex items-center gap-1",children:[f.icon,f.title]},f.title))}),b&&P.jsx(sE,{className:te("mb-1 text-default",S?.urgentChip),color:"default",size:"sm",variant:"bordered",children:b}),P.jsx($E,{promotions:[...g,...y],className:"text-success",classNames:S?.promotionsList})]}),P.jsx(cE,{className:"mt-3"}),P.jsxs(tE,{className:te("flex-col justify-between items-start text-start",S?.footer),children:[x&&P.jsx("div",{className:te("text-success text-base mb-3 lg:text-sm",S?.deliveryText),children:x}),P.jsxs("div",{className:"flex justify-between items-end w-full",children:[P.jsx(wE,{monthlyFeePromotionText:v,productPrice:O,monthlyFee:d,classNames:S?.pricingSection}),P.jsxs(Zx,{color:"default",size:"lg",radius:"full",className:te("gap-1 pl-6",S?.button),disableRipple:!0,children:["Bekijk ",P.jsx(fE,{size:24})]})]})]}),P.jsx(yE,{deviceDiscount:L,tcoPerMonth:Number(m),classNames:S?.footerInfo})]})}var zo={exports:{}},xa={};/**
326
+ ${Ds}`,OC=bo`
327
+ query resultsSmartphonePropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
328
+ search: searchPropositions(
329
+ query: $query
330
+ type: "smartphone"
331
+ modificationBlocks: $modificationBlocks
332
+ ) {
333
+ count
334
+ pageInfo {
335
+ cheapestProposition {
336
+ key
337
+ }
338
+ cheapestPhoneProposition {
339
+ key
340
+ }
341
+ populairPropositions
342
+ }
343
+ aggs {
344
+ metrics {
345
+ key
346
+ value
347
+ }
348
+ terms {
349
+ key
350
+ values {
351
+ value
352
+ count
353
+ }
354
+ }
355
+ }
356
+ records {
357
+ weight
358
+ labels
359
+ provider {
360
+ mobileRank
361
+ includeInLabels
362
+ }
363
+ planVariant {
364
+ contractType
365
+ }
366
+ ...ProductCardProposition
367
+ }
368
+ }
369
+ }
370
+ ${Ds}`,NC=bo`
371
+ query resultsSmartphonePropositionsExtended($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
372
+ search: searchPropositions(
373
+ query: $query
374
+ type: "smartphone-extended"
375
+ modificationBlocks: $modificationBlocks
376
+ ) {
377
+ count
378
+ aggs {
379
+ metrics {
380
+ key
381
+ value
382
+ }
383
+ terms {
384
+ key
385
+ values {
386
+ value
387
+ count
388
+ }
389
+ }
390
+ }
391
+ records {
392
+ ...ProductCardProposition
393
+ }
394
+ }
395
+ }
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=`
403
+ @layer {
404
+ * {
405
+ overscroll-behavior: contain;
406
+ }
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`,`
408
+ font-size: .6rem;
409
+ 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(`
411
+ `).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 => ({
415
+ ...iss,
416
+ path: iss.path ? [${T}, ...iss.path] : [${T}]
417
+ })));
418
+ }
419
+
420
+
421
+ if (${C}.value === undefined) {
422
+ if (${T} in input) {
423
+ newResult[${T}] = undefined;
424
+ }
425
+ } else {
426
+ newResult[${T}] = ${C}.value;
427
+ }
428
+
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={};/**
198
430
  * @license React
199
431
  * use-sync-external-store-shim.production.js
200
432
  *
@@ -202,7 +434,7 @@ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw
202
434
  *
203
435
  * This source code is licensed under the MIT license found in the
204
436
  * LICENSE file in the root directory of this source tree.
205
- */var bp;function PE(){if(bp)return xa;bp=1;var e=h;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(d,m){var g=m(),y=r({inst:{value:g,getSnapshot:m}}),v=y[0].inst,x=y[1];return i(function(){v.value=g,v.getSnapshot=m,l(v)&&x({inst:v})},[d,g,m]),o(function(){return l(v)&&x({inst:v}),d(function(){l(v)&&x({inst:v})})},[d]),s(g),g}function l(d){var m=d.getSnapshot;d=d.value;try{var g=m();return!n(d,g)}catch{return!0}}function u(d,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return xa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,xa}var Ea={};/**
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={};/**
206
438
  * @license React
207
439
  * use-sync-external-store-shim.development.js
208
440
  *
@@ -210,4 +442,4 @@ ${String(e)}`)}catch(t){return t}},Cf=e=>{if(typeof e!="object"||e===null)throw
210
442
  *
211
443
  * This source code is licensed under the MIT license found in the
212
444
  * LICENSE file in the root directory of this source tree.
213
- */var vp;function SE(){return vp||(vp=1,process.env.NODE_ENV!=="production"&&function(){function e(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}function t(g,y){c||o.startTransition===void 0||(c=!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 v=y();if(!d){var x=y();i(v,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:v,getSnapshot:y}});var b=x[0].inst,$=x[1];return l(function(){b.value=v,b.getSnapshot=y,n(b)&&$({inst:b})},[g,v,y]),a(function(){return n(b)&&$({inst:b}),g(function(){n(b)&&$({inst:b})})},[g]),u(v),v}function n(g){var y=g.getSnapshot;g=g.value;try{var v=y();return!i(g,v)}catch{return!0}}function r(g,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,c=!1,d=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Ea.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ea}var yp;function kE(){return yp||(yp=1,process.env.NODE_ENV==="production"?zo.exports=PE():zo.exports=SE()),zo.exports}var IE=kE();const wp=0,xp=1,Ep=2,Tp=3;var $p=Object.prototype.hasOwnProperty;function Ta(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ta(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if($p.call(e,n)&&++r&&!$p.call(t,n)||!(n in t)||!Ta(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const At=new WeakMap,zt=()=>{},Ye=zt(),$a=Object,he=e=>e===Ye,xt=e=>typeof e=="function",Ut=(e,t)=>({...e,...t}),Cp=e=>xt(e.then),Ca={},Uo={},Pa="undefined",$r=typeof window!=Pa,Sa=typeof document!=Pa,AE=$r&&"Deno"in window,OE=()=>$r&&typeof window.requestAnimationFrame!=Pa,Pp=(e,t)=>{const n=At.get(e);return[()=>!he(t)&&e.get(t)||Ca,r=>{if(!he(t)){const o=e.get(t);t in Uo||(Uo[t]=o),n[5](t,Ut(o,r),o||Ca)}},n[6],()=>!he(t)&&t in Uo?Uo[t]:!he(t)&&e.get(t)||Ca]};let ka=!0;const ME=()=>ka,[Ia,Aa]=$r&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zt,zt],DE=()=>{const e=Sa&&document.visibilityState;return he(e)||e!=="hidden"},NE=e=>(Sa&&document.addEventListener("visibilitychange",e),Ia("focus",e),()=>{Sa&&document.removeEventListener("visibilitychange",e),Aa("focus",e)}),LE=e=>{const t=()=>{ka=!0,e()},n=()=>{ka=!1};return Ia("online",t),Ia("offline",n),()=>{Aa("online",t),Aa("offline",n)}},VE={isOnline:ME,isVisible:DE},_E={initFocus:NE,initReconnect:LE},Sp=!h.useId,Cr=!$r||AE,FE=e=>OE()?window.requestAnimationFrame(e):setTimeout(e,1),Oa=Cr?h.useEffect:h.useLayoutEffect,Ma=typeof navigator<"u"&&navigator.connection,kp=!Cr&&Ma&&(["slow-2g","2g"].includes(Ma.effectiveType)||Ma.saveData),Ko=new WeakMap,jE=e=>$a.prototype.toString.call(e),Da=(e,t)=>e===`[object ${t}]`;let RE=0;const Na=e=>{const t=typeof e,n=jE(e),r=Da(n,"Date"),o=Da(n,"RegExp"),i=Da(n,"Object");let s,a;if($a(e)===e&&!r&&!o){if(s=Ko.get(e),s)return s;if(s=++RE+"~",Ko.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=Na(e[a])+",";Ko.set(e,s)}if(i){s="#";const l=$a.keys(e).sort();for(;!he(a=l.pop());)he(e[a])||(s+=a+":"+Na(e[a])+",");Ko.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},La=e=>{if(xt(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Na(e):"",[e,t]};let BE=0;const Va=()=>++BE;async function Ip(...e){const[t,n,r,o]=e,i=Ut({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=m=>typeof a=="function"?a(m):a!==!1,c=i.throwOnError;if(xt(n)){const m=n,g=[],y=t.keys();for(const v of y)!/^\$(inf|sub)\$/.test(v)&&m(t.get(v)._k)&&g.push(v);return Promise.all(g.map(d))}return d(n);async function d(m){const[g]=La(m);if(!g)return;const[y,v]=Pp(t,g),[x,b,$,A]=At.get(t),M=()=>{const w=x[g];return(xt(i.revalidate)?i.revalidate(y().data,m):i.revalidate!==!1)&&(delete $[g],delete A[g],w&&w[0])?w[0](Ep).then(()=>y().data):y().data};if(e.length<3)return M();let I=r,O,L=!1;const S=Va();b[g]=[S,0];const V=!he(l),j=y(),f=j.data,k=j._c,D=he(k)?f:k;if(V&&(l=xt(l)?l(D,f):l,v({data:l,_c:D})),xt(I))try{I=I(D)}catch(w){O=w,L=!0}if(I&&Cp(I))if(I=await I.catch(w=>{O=w,L=!0}),S!==b[g][0]){if(L)throw O;return I}else L&&V&&u(O)&&(s=!0,v({data:D,_c:Ye}));if(s&&!L)if(xt(s)){const w=s(I,D);v({data:w,error:Ye,_c:Ye})}else v({data:I,error:Ye,_c:Ye});if(b[g][1]=Va(),Promise.resolve(M()).then(()=>{v({_c:Ye})}),L){if(c)throw O;return}return I}}const Ap=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zE=(e,t)=>{if(!At.has(e)){const n=Ut(_E,t),r=Object.create(null),o=Ip.bind(Ye,e);let i=zt;const s=Object.create(null),a=(c,d)=>{const m=s[c]||[];return s[c]=m,m.push(d),()=>m.splice(m.indexOf(d),1)},l=(c,d,m)=>{e.set(c,d);const g=s[c];if(g)for(const y of g)y(d,m)},u=()=>{if(!At.has(e)&&(At.set(e,[r,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!Cr)){const c=n.initFocus(setTimeout.bind(Ye,Ap.bind(Ye,r,wp))),d=n.initReconnect(setTimeout.bind(Ye,Ap.bind(Ye,r,xp)));i=()=>{c&&c(),d&&d(),At.delete(e)}}};return u(),[e,o,u,i]}return[e,At.get(e)[4]]},UE=(e,t,n,r,o)=>{const i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!he(i)&&s>i||setTimeout(r,a,o)},KE=Ta,[Op,HE]=zE(new Map),GE=Ut({onLoadingSlow:zt,onSuccess:zt,onError:zt,onErrorRetry:UE,onDiscarded:zt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:kp?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:kp?5e3:3e3,compare:KE,isPaused:()=>!1,cache:Op,mutate:HE,fallback:{}},VE),WE=(e,t)=>{const n=Ut(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=Ut(o,s))}return n},qE=h.createContext({}),YE="$inf$",Mp=$r&&window.__SWR_DEVTOOLS_USE__,XE=Mp?window.__SWR_DEVTOOLS_USE__:[],JE=()=>{Mp&&(window.__SWR_DEVTOOLS_REACT__=h)},Dp=e=>xt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ZE=()=>{const e=h.useContext(qE);return h.useMemo(()=>Ut(GE,e),[e])},QE=e=>(t,n,r)=>e(t,n&&((...i)=>{const[s]=La(t),[,,,a]=At.get(Op);if(s.startsWith(YE))return n(...i);const l=a[s];return he(l)?n(...i):(delete a[s],l)}),r),eT=XE.concat(QE),tT=e=>function(...n){const r=ZE(),[o,i,s]=Dp(n),a=WE(r,s);let l=e;const{use:u}=a,c=(u||[]).concat(eT);for(let d=c.length;d--;)l=c[d](l);return l(o,i||a.fetcher||null,a)},nT=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},rT=(e,t)=>(...n)=>{const[r,o,i]=Dp(n),s=(i.use||[]).concat(t);return e(r,o,{...i,use:s})};JE();const _a=h.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}}),Fa={dedupe:!0},Np=Promise.resolve(Ye),oT=tT((e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:m}=n,[g,y,v,x]=At.get(r),[b,$]=La(e),A=h.useRef(!1),M=h.useRef(!1),I=h.useRef(b),O=h.useRef(t),L=h.useRef(n),S=()=>L.current,V=()=>S().isVisible()&&S().isOnline(),[j,f,k,D]=Pp(r,b),w=h.useRef({}).current,N=he(s)?he(n.fallback)?Ye:n.fallback[b]:s,p=(Z,ce)=>{for(const ge in w){const ie=ge;if(ie==="data"){if(!o(Z[ie],ce[ie])&&(!he(Z[ie])||!o(se,ce[ie])))return!1}else if(ce[ie]!==Z[ie])return!1}return!0},C=h.useMemo(()=>{const Z=!b||!t?!1:he(a)?S().isPaused()||i?!1:l!==!1:a,ce=ke=>{const Le=Ut(ke);return delete Le._k,Z?{isValidating:!0,isLoading:!0,...Le}:Le},ge=j(),ie=D(),$e=ce(ge),Ae=ge===ie?$e:ce(ie);let ue=$e;return[()=>{const ke=ce(j());return p(ke,ue)?(ue.data=ke.data,ue.isLoading=ke.isLoading,ue.isValidating=ke.isValidating,ue.error=ke.error,ue):(ue=ke,ke)},()=>Ae]},[r,b]),E=IE.useSyncExternalStore(h.useCallback(Z=>k(b,(ce,ge)=>{p(ge,ce)||Z()}),[r,b]),C[0],C[1]),B=!A.current,H=g[b]&&g[b].length>0,X=E.data,_=he(X)?N&&Cp(N)?_a(N):N:X,z=E.error,K=h.useRef(_),se=m?he(X)?he(K.current)?_:K.current:X:_,ee=H&&!he(z)?!1:B&&!he(a)?a:S().isPaused()?!1:i?he(_)?!1:l:he(_)||l,oe=!!(b&&t&&B&&ee),xe=he(E.isValidating)?oe:E.isValidating,ye=he(E.isLoading)?oe:E.isLoading,J=h.useCallback(async Z=>{const ce=O.current;if(!b||!ce||M.current||S().isPaused())return!1;let ge,ie,$e=!0;const Ae=Z||{},ue=!v[b]||!Ae.dedupe,ke=()=>Sp?!M.current&&b===I.current&&A.current:b===I.current,Le={isValidating:!1,isLoading:!1},be=()=>{f(Le)},qe=()=>{const we=v[b];we&&we[1]===ie&&delete v[b]},nt={isValidating:!0};he(j().data)&&(nt.isLoading=!0);try{if(ue&&(f(nt),n.loadingTimeout&&he(j().data)&&setTimeout(()=>{$e&&ke()&&S().onLoadingSlow(b,n)},n.loadingTimeout),v[b]=[ce($),Va()]),[ge,ie]=v[b],ge=await ge,ue&&setTimeout(qe,n.dedupingInterval),!v[b]||v[b][1]!==ie)return ue&&ke()&&S().onDiscarded(b),!1;Le.error=Ye;const we=y[b];if(!he(we)&&(ie<=we[0]||ie<=we[1]||we[1]===0))return be(),ue&&ke()&&S().onDiscarded(b),!1;const Ge=j().data;Le.data=o(Ge,ge)?Ge:ge,ue&&ke()&&S().onSuccess(ge,b,n)}catch(we){qe();const Ge=S(),{shouldRetryOnError:Et}=Ge;Ge.isPaused()||(Le.error=we,ue&&ke()&&(Ge.onError(we,b,Ge),(Et===!0||xt(Et)&&Et(we))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||V())&&Ge.onErrorRetry(we,b,Ge,un=>{const Ot=g[b];Ot&&Ot[0]&&Ot[0](Tp,un)},{retryCount:(Ae.retryCount||0)+1,dedupe:!0})))}return $e=!1,be(),!0},[b,r]),Se=h.useCallback((...Z)=>Ip(r,I.current,...Z),[]);if(Oa(()=>{O.current=t,L.current=n,he(X)||(K.current=X)}),Oa(()=>{if(!b)return;const Z=J.bind(Ye,Fa);let ce=0;S().revalidateOnFocus&&(ce=Date.now()+S().focusThrottleInterval);const ie=nT(b,g,($e,Ae={})=>{if($e==wp){const ue=Date.now();S().revalidateOnFocus&&ue>ce&&V()&&(ce=ue+S().focusThrottleInterval,Z())}else if($e==xp)S().revalidateOnReconnect&&V()&&Z();else{if($e==Ep)return J();if($e==Tp)return J(Ae)}});return M.current=!1,I.current=b,A.current=!0,f({_k:$}),ee&&(v[b]||(he(_)||Cr?Z():FE(Z))),()=>{M.current=!0,ie()}},[b]),Oa(()=>{let Z;function ce(){const ie=xt(u)?u(j().data):u;ie&&Z!==-1&&(Z=setTimeout(ge,ie))}function ge(){!j().error&&(c||S().isVisible())&&(d||S().isOnline())?J(Fa).then(ce):ce()}return ce(),()=>{Z&&(clearTimeout(Z),Z=-1)}},[u,c,d,b]),h.useDebugValue(se),i){const Z=b&&he(_);if(!Sp&&Cr&&Z)throw new Error("Fallback data is required when using Suspense in SSR.");Z&&(O.current=t,L.current=n,M.current=!1);const ce=x[b],ge=!he(ce)&&Z?Se(ce):Np;if(_a(ge),!he(z)&&Z)throw z;const ie=Z?J(Fa):Np;!he(se)&&Z&&(ie.status="fulfilled",ie.value=!0),_a(ie)}return{mutate:Se,get data(){return w.data=!0,se},get error(){return w.error=!0,z},get isValidating(){return w.isValidating=!0,xe},get isLoading(){return w.isLoading=!0,ye}}}),iT=rT(oT,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)));function Ho(e,t){if(e===void 0)return"";const n=e.toFixed(2).toString().replace(".",","),r=t?.symbol?`${t.symbol} ${n}`:n;return t?.dashed?r.replace(/,00$/,",-"):r}function sT(e,t,n){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>n?`Van ${Ho(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Ho(t,{dashed:!0})} voor:`}const Pr=2147483647;function Lp(e){switch(e){case Pr:return"Onbp";case 0:return"-";default:return e}}function aT(e,t){const n=e.minutes!==0?`${Lp(e.minutes)} ${e.minutes===Pr?"min":"minuten"}`:void 0,r=e.sms!==0?`${Lp(e.sms)} sms`:void 0,o=e.minutes===Pr&&e.sms===Pr||["minutes","sms"].every(s=>e.sharedCredits?.includes(s)),i=o?" / ":" + ";return!n&&!r?"":o?[n,"sms"].join(i):[n,r].join(i)}function lT(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function Vp(e,t){return e===Pr?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function cT(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""}}let _p;function uT(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return _p=new Hw(t,{headers:e}),_p}function dT(e,t={}){return uT().request(e,t)}function fT([e,t]){return dT(e,t)}function pT(e){return(t,n,r)=>{const o=h.useRef(void 0),i=e(t,n,r);h.useEffect(()=>{i.data!==void 0&&(o.current=i.data)},[i.data]);const s=h.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 hT({filterOptions:e=[],limit:t=3,classNames:n}){const[r,o]=h.useState([]),i=Qw({filterOptions:e,filterValues:r,limit:t}),{data:s,isValidating:a}=iT([qw,{query:i.serialize()}],{use:[pT],fetcher:fT}),l=s?.search.records||[],u=d=>{const m=r.filter(y=>y.id!==d.id);let g=!1;Array.isArray(d.value)?g=d.value.length>0:g=d.value!==""&&d.value!==void 0&&d.value!==null,g&&m.push(d),o(m)},c=()=>o([]);return P.jsxs("div",{className:te("grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",n?.base),children:[P.jsx(tp,{className:te("col-span-1",n?.filterSidebarWrapper),filters:e,activeFilters:r,onFilterChange:u,onClearAll:c,classNames:n?.filterSidebar}),P.jsx("div",{className:te("gap-4 grid grid-cols-1 col-span-1 lg:grid-cols-3 lg:col-span-3",a&&"opacity-50 pointer-none",n?.resultsGrid),children:l.map(d=>P.jsx(gp,{classNames:n?.propositionCard,monthlyFee:Ho(d.monthlyFees[0].fee,{dashed:!0}),monthlyFeePromotionText:sT(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),tcoPerMonth:Ho(d.tcoPerMonth,{dashed:!0}),propositionTitle:Vp(d.content.data,"GB"),propositionSubtitle:aT(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:[{title:lT(d.planVariant.contractTerm),icon:P.jsx(hE,{size:16})},{title:`${d.content.dataSpeedDown/1e3} Mbps`,icon:P.jsx(gE,{size:16})},{title:`${d.provider.network?.replace("-netwerk","")} ${cT(d.content.networkGeneration)}`,icon:P.jsx(uE,{size:16})},{title:`${Vp(d.content.dataEu,"GB")} in EU`,icon:P.jsx(vE,{size:16})}],specialPromotions:d.specialPromotions.map(m=>m.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.deliveryPromise??void 0,href:`https://www.mobiel.nl/aanbieding/${d.key}`},d.key))})]})}var mT=Gy;const Fp=Object.freeze(Object.defineProperty({__proto__:null,default:mT},Symbol.toStringTag,{value:"Module"}));ot.ElementsRoot=dm,ot.FilterSidebar=tp,ot.ProductResults=hT,ot.PropositionCard=gp,ot.RangeFilter=Kf,ot.SelectFilter=ep,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
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"})});