@reactfast/nav 0.2.9 → 0.2.10

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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),D=require("@headlessui/react");function jn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=jn(H);function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ft={exports:{}},Me={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),er=require("react-dom");function gs(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 S=gs(f),Mr=gs(er);function hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vo={exports:{}},Xt={};/**
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 Qt;function Tn(){if(Qt)return Me;Qt=1;var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,f=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(d,i,l){var p,_={},u=null,g=null;l!==void 0&&(u=""+l),i.key!==void 0&&(u=""+i.key),i.ref!==void 0&&(g=i.ref);for(p in i)s.call(i,p)&&!c.hasOwnProperty(p)&&(_[p]=i[p]);if(d&&d.defaultProps)for(p in i=d.defaultProps,i)_[p]===void 0&&(_[p]=i[p]);return{$$typeof:t,type:d,key:u,ref:g,props:_,_owner:f.current}}return Me.Fragment=n,Me.jsx=a,Me.jsxs=a,Me}var Ie={};/**
9
+ */var Ta;function gu(){if(Ta)return Xt;Ta=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,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var u,h={},d=null,p=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(h[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:p,props:h,_owner:o.current}}return Xt.Fragment=r,Xt.jsx=i,Xt.jsxs=i,Xt}var Yt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,24 +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 Jt;function Sn(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),d=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,h="@@iterator";function m(o){if(o===null||typeof o!="object")return null;var R=y&&o[y]||o[h];return typeof R=="function"?R:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(o){{for(var R=arguments.length,T=new Array(R>1?R-1:0),I=1;I<R;I++)T[I-1]=arguments[I];w("error",o,T)}}function w(o,R,T){{var I=v.ReactDebugCurrentFrame,V=I.getStackAddendum();V!==""&&(R+="%s",T=T.concat([V]));var Y=T.map(function(B){return String(B)});Y.unshift("Warning: "+R),Function.prototype.apply.call(console[o],console,Y)}}var x=!1,b=!1,j=!1,O=!1,L=!1,k;k=Symbol.for("react.module.reference");function N(o){return!!(typeof o=="string"||typeof o=="function"||o===s||o===c||L||o===f||o===l||o===p||O||o===g||x||b||j||typeof o=="object"&&o!==null&&(o.$$typeof===u||o.$$typeof===_||o.$$typeof===a||o.$$typeof===d||o.$$typeof===i||o.$$typeof===k||o.getModuleId!==void 0))}function A(o,R,T){var I=o.displayName;if(I)return I;var V=R.displayName||R.name||"";return V!==""?T+"("+V+")":T}function S(o){return o.displayName||"Context"}function C(o){if(o==null)return null;if(typeof o.tag=="number"&&E("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 s:return"Fragment";case n:return"Portal";case c:return"Profiler";case f:return"StrictMode";case l:return"Suspense";case p:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case d:var R=o;return S(R)+".Consumer";case a:var T=o;return S(T._context)+".Provider";case i:return A(o,o.render,"ForwardRef");case _:var I=o.displayName||null;return I!==null?I:C(o.type)||"Memo";case u:{var V=o,Y=V._payload,B=V._init;try{return C(B(Y))}catch{return null}}}return null}var F=Object.assign,M=0,$,J,K,X,ae,ce,ee;function se(){}se.__reactDisabledLog=!0;function oe(){{if(M===0){$=console.log,J=console.info,K=console.warn,X=console.error,ae=console.group,ce=console.groupCollapsed,ee=console.groupEnd;var o={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}M++}}function Z(){{if(M--,M===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},o,{value:$}),info:F({},o,{value:J}),warn:F({},o,{value:K}),error:F({},o,{value:X}),group:F({},o,{value:ae}),groupCollapsed:F({},o,{value:ce}),groupEnd:F({},o,{value:ee})})}M<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=v.ReactCurrentDispatcher,te;function ge(o,R,T){{if(te===void 0)try{throw Error()}catch(V){var I=V.stack.trim().match(/\n( *(at )?)/);te=I&&I[1]||""}return`
18
- `+te+o}}var U=!1,ve;{var pe=typeof WeakMap=="function"?WeakMap:Map;ve=new pe}function le(o,R){if(!o||U)return"";{var T=ve.get(o);if(T!==void 0)return T}var I;U=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=ie.current,ie.current=null,oe();try{if(R){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(fe){I=fe}Reflect.construct(o,[],B)}else{try{B.call()}catch(fe){I=fe}o.call(B.prototype)}}else{try{throw Error()}catch(fe){I=fe}o()}}catch(fe){if(fe&&I&&typeof fe.stack=="string"){for(var z=fe.stack.split(`
19
- `),ue=I.stack.split(`
20
- `),re=z.length-1,ne=ue.length-1;re>=1&&ne>=0&&z[re]!==ue[ne];)ne--;for(;re>=1&&ne>=0;re--,ne--)if(z[re]!==ue[ne]){if(re!==1||ne!==1)do if(re--,ne--,ne<0||z[re]!==ue[ne]){var he=`
21
- `+z[re].replace(" at new "," at ");return o.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",o.displayName)),typeof o=="function"&&ve.set(o,he),he}while(re>=1&&ne>=0);break}}}finally{U=!1,ie.current=Y,Z(),Error.prepareStackTrace=V}var Se=o?o.displayName||o.name:"",Ne=Se?ge(Se):"";return typeof o=="function"&&ve.set(o,Ne),Ne}function Pe(o,R,T){return le(o,!1)}function we(o){var R=o.prototype;return!!(R&&R.isReactComponent)}function Q(o,R,T){if(o==null)return"";if(typeof o=="function")return le(o,we(o));if(typeof o=="string")return ge(o);switch(o){case l:return ge("Suspense");case p:return ge("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case i:return Pe(o.render);case _:return Q(o.type,R,T);case u:{var I=o,V=I._payload,Y=I._init;try{return Q(Y(V),R,T)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,Ee={},Re=v.ReactDebugCurrentFrame;function xe(o){if(o){var R=o._owner,T=Q(o.type,o._source,R?R.type:null);Re.setExtraStackFrame(T)}else Re.setExtraStackFrame(null)}function ke(o,R,T,I,V){{var Y=Function.call.bind(_e);for(var B in o)if(Y(o,B)){var z=void 0;try{if(typeof o[B]!="function"){var ue=Error((I||"React class")+": "+T+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ue.name="Invariant Violation",ue}z=o[B](R,B,I,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){z=re}z&&!(z instanceof Error)&&(xe(V),E("%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).",I||"React class",T,B,typeof z),xe(null)),z instanceof Error&&!(z.message in Ee)&&(Ee[z.message]=!0,xe(V),E("Failed %s type: %s",T,z.message),xe(null))}}}var Ce=Array.isArray;function W(o){return Ce(o)}function G(o){{var R=typeof Symbol=="function"&&Symbol.toStringTag,T=R&&o[Symbol.toStringTag]||o.constructor.name||"Object";return T}}function me(o){try{return ye(o),!1}catch{return!0}}function ye(o){return""+o}function je(o){if(me(o))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",G(o)),ye(o)}var Oe=v.ReactCurrentOwner,q={key:!0,ref:!0,__self:!0,__source:!0},de,Ht;function un(o){if(_e.call(o,"ref")){var R=Object.getOwnPropertyDescriptor(o,"ref").get;if(R&&R.isReactWarning)return!1}return o.ref!==void 0}function dn(o){if(_e.call(o,"key")){var R=Object.getOwnPropertyDescriptor(o,"key").get;if(R&&R.isReactWarning)return!1}return o.key!==void 0}function fn(o,R){typeof o.ref=="string"&&Oe.current}function pn(o,R){{var T=function(){de||(de=!0,E("%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))};T.isReactWarning=!0,Object.defineProperty(o,"key",{get:T,configurable:!0})}}function hn(o,R){{var T=function(){Ht||(Ht=!0,E("%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))};T.isReactWarning=!0,Object.defineProperty(o,"ref",{get:T,configurable:!0})}}var mn=function(o,R,T,I,V,Y,B){var z={$$typeof:t,type:o,key:R,ref:T,props:B,_owner:Y};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function gn(o,R,T,I,V){{var Y,B={},z=null,ue=null;T!==void 0&&(je(T),z=""+T),dn(R)&&(je(R.key),z=""+R.key),un(R)&&(ue=R.ref,fn(R,V));for(Y in R)_e.call(R,Y)&&!q.hasOwnProperty(Y)&&(B[Y]=R[Y]);if(o&&o.defaultProps){var re=o.defaultProps;for(Y in re)B[Y]===void 0&&(B[Y]=re[Y])}if(z||ue){var ne=typeof o=="function"?o.displayName||o.name||"Unknown":o;z&&pn(B,ne),ue&&hn(B,ne)}return mn(o,z,ue,V,I,Oe.current,B)}}var Ze=v.ReactCurrentOwner,Wt=v.ReactDebugCurrentFrame;function Te(o){if(o){var R=o._owner,T=Q(o.type,o._source,R?R.type:null);Wt.setExtraStackFrame(T)}else Wt.setExtraStackFrame(null)}var Qe;Qe=!1;function Je(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function Vt(){{if(Ze.current){var o=C(Ze.current.type);if(o)return`
17
+ */var Oa;function vu(){return Oa||(Oa=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"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function v(x){if(x===null||typeof x!="object")return null;var I=g&&x[g]||x[m];return typeof I=="function"?I:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(x){{for(var I=arguments.length,W=new Array(I>1?I-1:0),X=1;X<I;X++)W[X-1]=arguments[X];w("error",x,W)}}function w(x,I,W){{var X=b.ReactDebugCurrentFrame,oe=X.getStackAddendum();oe!==""&&(I+="%s",W=W.concat([oe]));var le=W.map(function(te){return String(te)});le.unshift("Warning: "+I),Function.prototype.apply.call(console[x],console,le)}}var _=!1,R=!1,T=!1,O=!1,M=!1,k;k=Symbol.for("react.module.reference");function P(x){return!!(typeof x=="string"||typeof x=="function"||x===n||x===a||M||x===o||x===c||x===u||O||x===p||_||R||T||typeof x=="object"&&x!==null&&(x.$$typeof===d||x.$$typeof===h||x.$$typeof===i||x.$$typeof===s||x.$$typeof===l||x.$$typeof===k||x.getModuleId!==void 0))}function N(x,I,W){var X=x.displayName;if(X)return X;var oe=I.displayName||I.name||"";return oe!==""?W+"("+oe+")":W}function j(x){return x.displayName||"Context"}function $(x){if(x==null)return null;if(typeof x.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case s:var I=x;return j(I)+".Consumer";case i:var W=x;return j(W._context)+".Provider";case l:return N(x,x.render,"ForwardRef");case h:var X=x.displayName||null;return X!==null?X:$(x.type)||"Memo";case d:{var oe=x,le=oe._payload,te=oe._init;try{return $(te(le))}catch{return null}}}return null}var A=Object.assign,D=0,U,q,C,L,z,K,J;function F(){}F.__reactDisabledLog=!0;function B(){{if(D===0){U=console.log,q=console.info,C=console.warn,L=console.error,z=console.group,K=console.groupCollapsed,J=console.groupEnd;var x={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:x,log:x,warn:x,error:x,group:x,groupCollapsed:x,groupEnd:x})}D++}}function V(){{if(D--,D===0){var x={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},x,{value:U}),info:A({},x,{value:q}),warn:A({},x,{value:C}),error:A({},x,{value:L}),group:A({},x,{value:z}),groupCollapsed:A({},x,{value:K}),groupEnd:A({},x,{value:J})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=b.ReactCurrentDispatcher,Q;function fe(x,I,W){{if(Q===void 0)try{throw Error()}catch(oe){var X=oe.stack.trim().match(/\n( *(at )?)/);Q=X&&X[1]||""}return`
18
+ `+Q+x}}var G=!1,Ce;{var Re=typeof WeakMap=="function"?WeakMap:Map;Ce=new Re}function he(x,I){if(!x||G)return"";{var W=Ce.get(x);if(W!==void 0)return W}var X;G=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=ee.current,ee.current=null,B();try{if(I){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(je){X=je}Reflect.construct(x,[],te)}else{try{te.call()}catch(je){X=je}x.call(te.prototype)}}else{try{throw Error()}catch(je){X=je}x()}}catch(je){if(je&&X&&typeof je.stack=="string"){for(var Z=je.stack.split(`
19
+ `),Ne=X.stack.split(`
20
+ `),ge=Z.length-1,ve=Ne.length-1;ge>=1&&ve>=0&&Z[ge]!==Ne[ve];)ve--;for(;ge>=1&&ve>=0;ge--,ve--)if(Z[ge]!==Ne[ve]){if(ge!==1||ve!==1)do if(ge--,ve--,ve<0||Z[ge]!==Ne[ve]){var De=`
21
+ `+Z[ge].replace(" at new "," at ");return x.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",x.displayName)),typeof x=="function"&&Ce.set(x,De),De}while(ge>=1&&ve>=0);break}}}finally{G=!1,ee.current=le,V(),Error.prepareStackTrace=oe}var kt=x?x.displayName||x.name:"",gt=kt?fe(kt):"";return typeof x=="function"&&Ce.set(x,gt),gt}function Ot(x,I,W){return he(x,!1)}function Nt(x){var I=x.prototype;return!!(I&&I.isReactComponent)}function pe(x,I,W){if(x==null)return"";if(typeof x=="function")return he(x,Nt(x));if(typeof x=="string")return fe(x);switch(x){case c:return fe("Suspense");case u:return fe("SuspenseList")}if(typeof x=="object")switch(x.$$typeof){case l:return Ot(x.render);case h:return pe(x.type,I,W);case d:{var X=x,oe=X._payload,le=X._init;try{return pe(le(oe),I,W)}catch{}}}return""}var Qe=Object.prototype.hasOwnProperty,mt={},ht=b.ReactDebugCurrentFrame;function Ze(x){if(x){var I=x._owner,W=pe(x.type,x._source,I?I.type:null);ht.setExtraStackFrame(W)}else ht.setExtraStackFrame(null)}function Gt(x,I,W,X,oe){{var le=Function.call.bind(Qe);for(var te in x)if(le(x,te)){var Z=void 0;try{if(typeof x[te]!="function"){var Ne=Error((X||"React class")+": "+W+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ne.name="Invariant Violation",Ne}Z=x[te](I,te,X,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){Z=ge}Z&&!(Z instanceof Error)&&(Ze(oe),E("%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).",X||"React class",W,te,typeof Z),Ze(null)),Z instanceof Error&&!(Z.message in mt)&&(mt[Z.message]=!0,Ze(oe),E("Failed %s type: %s",W,Z.message),Ze(null))}}}var zt=Array.isArray;function re(x){return zt(x)}function ie(x){{var I=typeof Symbol=="function"&&Symbol.toStringTag,W=I&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W}}function We(x){try{return ot(x),!1}catch{return!0}}function ot(x){return""+x}function Ct(x){if(We(x))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ie(x)),ot(x)}var At=b.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0},Ae,ya;function Zl(x){if(Qe.call(x,"ref")){var I=Object.getOwnPropertyDescriptor(x,"ref").get;if(I&&I.isReactWarning)return!1}return x.ref!==void 0}function Jl(x){if(Qe.call(x,"key")){var I=Object.getOwnPropertyDescriptor(x,"key").get;if(I&&I.isReactWarning)return!1}return x.key!==void 0}function eu(x,I){typeof x.ref=="string"&&At.current}function tu(x,I){{var W=function(){Ae||(Ae=!0,E("%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)",I))};W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}}function ru(x,I){{var W=function(){ya||(ya=!0,E("%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)",I))};W.isReactWarning=!0,Object.defineProperty(x,"ref",{get:W,configurable:!0})}}var nu=function(x,I,W,X,oe,le,te){var Z={$$typeof:t,type:x,key:I,ref:W,props:te,_owner:le};return Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(Z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z};function ou(x,I,W,X,oe){{var le,te={},Z=null,Ne=null;W!==void 0&&(Ct(W),Z=""+W),Jl(I)&&(Ct(I.key),Z=""+I.key),Zl(I)&&(Ne=I.ref,eu(I,oe));for(le in I)Qe.call(I,le)&&!Y.hasOwnProperty(le)&&(te[le]=I[le]);if(x&&x.defaultProps){var ge=x.defaultProps;for(le in ge)te[le]===void 0&&(te[le]=ge[le])}if(Z||Ne){var ve=typeof x=="function"?x.displayName||x.name||"Unknown":x;Z&&tu(te,ve),Ne&&ru(te,ve)}return nu(x,Z,Ne,oe,X,At.current,te)}}var bn=b.ReactCurrentOwner,Ea=b.ReactDebugCurrentFrame;function jt(x){if(x){var I=x._owner,W=pe(x.type,x._source,I?I.type:null);Ea.setExtraStackFrame(W)}else Ea.setExtraStackFrame(null)}var yn;yn=!1;function En(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function xa(){{if(bn.current){var x=$(bn.current.type);if(x)return`
22
22
 
23
- Check the render method of \``+o+"`."}return""}}function vn(o){return""}var Gt={};function _n(o){{var R=Vt();if(!R){var T=typeof o=="string"?o:o.displayName||o.name;T&&(R=`
23
+ Check the render method of \``+x+"`."}return""}}function au(x){return""}var wa={};function iu(x){{var I=xa();if(!I){var W=typeof x=="string"?x:x.displayName||x.name;W&&(I=`
24
24
 
25
- Check the top-level render call using <`+T+">.")}return R}}function $t(o,R){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var T=_n(R);if(Gt[T])return;Gt[T]=!0;var I="";o&&o._owner&&o._owner!==Ze.current&&(I=" It was passed a child from "+C(o._owner.type)+"."),Te(o),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,I),Te(null)}}function Yt(o,R){{if(typeof o!="object")return;if(W(o))for(var T=0;T<o.length;T++){var I=o[T];Je(I)&&$t(I,R)}else if(Je(o))o._store&&(o._store.validated=!0);else if(o){var V=m(o);if(typeof V=="function"&&V!==o.entries)for(var Y=V.call(o),B;!(B=Y.next()).done;)Je(B.value)&&$t(B.value,R)}}}function xn(o){{var R=o.type;if(R==null||typeof R=="string")return;var T;if(typeof R=="function")T=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===i||R.$$typeof===_))T=R.propTypes;else return;if(T){var I=C(R);ke(T,o.props,"prop",I,o)}else if(R.PropTypes!==void 0&&!Qe){Qe=!0;var V=C(R);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yn(o){{for(var R=Object.keys(o.props),T=0;T<R.length;T++){var I=R[T];if(I!=="children"&&I!=="key"){Te(o),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Te(null);break}}o.ref!==null&&(Te(o),E("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var Kt={};function Zt(o,R,T,I,V,Y){{var B=N(o);if(!B){var z="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(z+=" 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 ue=vn();ue?z+=ue:z+=Vt();var re;o===null?re="null":W(o)?re="array":o!==void 0&&o.$$typeof===t?(re="<"+(C(o.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):re=typeof o,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,z)}var ne=gn(o,R,T,V,Y);if(ne==null)return ne;if(B){var he=R.children;if(he!==void 0)if(I)if(W(he)){for(var Se=0;Se<he.length;Se++)Yt(he[Se],o);Object.freeze&&Object.freeze(he)}else E("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 Yt(he,o)}if(_e.call(R,"key")){var Ne=C(o),fe=Object.keys(R).filter(function(wn){return wn!=="key"}),et=fe.length>0?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}";if(!Kt[Ne+et]){var Pn=fe.length>0?"{"+fe.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+W+">.")}return I}}function _a(x,I){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=iu(I);if(wa[W])return;wa[W]=!0;var X="";x&&x._owner&&x._owner!==bn.current&&(X=" It was passed a child from "+$(x._owner.type)+"."),jt(x),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,X),jt(null)}}function Ra(x,I){{if(typeof x!="object")return;if(re(x))for(var W=0;W<x.length;W++){var X=x[W];En(X)&&_a(X,I)}else if(En(x))x._store&&(x._store.validated=!0);else if(x){var oe=v(x);if(typeof oe=="function"&&oe!==x.entries)for(var le=oe.call(x),te;!(te=le.next()).done;)En(te.value)&&_a(te.value,I)}}}function su(x){{var I=x.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===l||I.$$typeof===h))W=I.propTypes;else return;if(W){var X=$(I);Gt(W,x.props,"prop",X,x)}else if(I.PropTypes!==void 0&&!yn){yn=!0;var oe=$(I);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lu(x){{for(var I=Object.keys(x.props),W=0;W<I.length;W++){var X=I[W];if(X!=="children"&&X!=="key"){jt(x),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),jt(null);break}}x.ref!==null&&(jt(x),E("Invalid attribute `ref` supplied to `React.Fragment`."),jt(null))}}var Pa={};function Sa(x,I,W,X,oe,le){{var te=P(x);if(!te){var Z="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(Z+=" 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 Ne=au();Ne?Z+=Ne:Z+=xa();var ge;x===null?ge="null":re(x)?ge="array":x!==void 0&&x.$$typeof===t?(ge="<"+($(x.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof x,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Z)}var ve=ou(x,I,W,oe,le);if(ve==null)return ve;if(te){var De=I.children;if(De!==void 0)if(X)if(re(De)){for(var kt=0;kt<De.length;kt++)Ra(De[kt],x);Object.freeze&&Object.freeze(De)}else E("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 Ra(De,x)}if(Qe.call(I,"key")){var gt=$(x),je=Object.keys(I).filter(function(mu){return mu!=="key"}),xn=je.length>0?"{key: someKey, "+je.join(": ..., ")+": ...}":"{key: someKey}";if(!Pa[gt+xn]){var pu=je.length>0?"{"+je.join(": ..., ")+": ...}":"{}";E(`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} />`,et,Ne,Pn,Ne),Kt[Ne+et]=!0}}return o===s?yn(ne):xn(ne),ne}}function bn(o,R,T){return Zt(o,R,T,!0)}function En(o,R,T){return Zt(o,R,T,!1)}var Rn=En,Nn=bn;Ie.Fragment=s,Ie.jsx=Rn,Ie.jsxs=Nn}()),Ie}process.env.NODE_ENV==="production"?Ft.exports=Tn():Ft.exports=Sn();var r=Ft.exports;function An({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const kn=P.forwardRef(An);function Cn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Ut=P.forwardRef(Cn);function Mn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"}))}const er=P.forwardRef(Mn);function In({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"}))}const Ln=P.forwardRef(In);function Dn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"}),P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"}))}const Fn=P.forwardRef(Dn);function qn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"}))}const Un=P.forwardRef(qn);function zn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"}))}const Xn=P.forwardRef(zn);function Bn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const tr=P.forwardRef(Bn);function Hn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Wn=P.forwardRef(Hn);function Vn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"}))}const Gn=P.forwardRef(Vn);function $n({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Yn=P.forwardRef($n);function Kn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const Zn=P.forwardRef(Kn);function Qn({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Jn=P.forwardRef(Qn);function ea({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Ge=P.forwardRef(ea);function ta({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Ae=P.forwardRef(ta);function ra({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2h1.148a1.5 1.5 0 0 1 1.465 1.175l.716 3.223a1.5 1.5 0 0 1-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 0 0 6.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 0 1 1.767-1.052l3.223.716A1.5 1.5 0 0 1 18 15.352V16.5a1.5 1.5 0 0 1-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 0 1 2.43 8.326 13.019 13.019 0 0 1 2 5V3.5Z",clipRule:"evenodd"}))}const na=P.forwardRef(ra);function aa({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const oa=P.forwardRef(aa);function ia({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const sa=P.forwardRef(ia);function la({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M14.5 10a4.5 4.5 0 0 0 4.284-5.882c-.105-.324-.51-.391-.752-.15L15.34 6.66a.454.454 0 0 1-.493.11 3.01 3.01 0 0 1-1.618-1.616.455.455 0 0 1 .11-.494l2.694-2.692c.24-.241.174-.647-.15-.752a4.5 4.5 0 0 0-5.873 4.575c.055.873-.128 1.808-.8 2.368l-7.23 6.024a2.724 2.724 0 1 0 3.837 3.837l6.024-7.23c.56-.672 1.495-.855 2.368-.8.096.007.193.01.291.01ZM5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}),P.createElement("path",{d:"M14.5 11.5c.173 0 .345-.007.514-.022l3.754 3.754a2.5 2.5 0 0 1-3.536 3.536l-4.41-4.41 2.172-2.607c.052-.063.147-.138.342-.196.202-.06.469-.087.777-.067.128.008.257.012.387.012ZM6 4.586l2.33 2.33a.452.452 0 0 1-.08.09L6.8 8.214 4.586 6H3.309a.5.5 0 0 1-.447-.276l-1.7-3.402a.5.5 0 0 1 .093-.577l.49-.49a.5.5 0 0 1 .577-.094l3.402 1.7A.5.5 0 0 1 6 3.31v1.277Z"}))}const ca=P.forwardRef(la),rr=[{name:"Analytics",description:"Get a better understanding of your traffic",href:"#",icon:Fn},{name:"Engagement",description:"Speak directly to your customers",href:"#",icon:Un},{name:"Security",description:"Your customers’ data will be safe and secure",href:"#",icon:Xn},{name:"Integrations",description:"Connect with third-party tools",href:"#",icon:Jn},{name:"Automations",description:"Build strategic funnels that will convert",href:"#",icon:kn}],ua=[{name:"Watch demo",href:"#",icon:oa},{name:"Contact sales",href:"#",icon:na}],nr=[{name:"About us",href:"#",description:"Learn more about our company values and mission to empower others"},{name:"Careers",href:"#",description:"Looking for you next career opportunity? See all of our open positions"},{name:"Support",href:"#",description:"Get in touch with our dedicated support team or reach out on our community forums"},{name:"Blog",href:"#",description:"Read our latest announcements and get perspectives from our team"}];function da(){const[e,t]=H.useState(!1);return r.jsxs("header",{className:"bg-white dark:bg-gray-900",children:[r.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[r.jsx("div",{className:"flex lg:flex-1",children:r.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[r.jsx("span",{className:"sr-only",children:"Your Company"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]})}),r.jsx("div",{className:"flex lg:hidden",children:r.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Ut,{"aria-hidden":"true",className:"size-6"})]})}),r.jsxs(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:[r.jsxs(D.Popover,{className:"relative",children:[r.jsxs(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Product",r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx("div",{className:"p-4",children:rr.map(n=>r.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:r.jsx(n.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-400 dark:group-hover:text-white"})}),r.jsxs("div",{className:"flex-auto",children:[r.jsxs("a",{href:n.href,className:"block font-semibold text-gray-900 dark:text-white",children:[n.name,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:n.description})]})]},n.name))}),r.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:ua.map(n=>r.jsxs("a",{href:n.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[r.jsx(n.icon,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"}),n.name]},n.name))})]})]}),r.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Features"}),r.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Marketplace"}),r.jsxs(D.Popover,{className:"relative",children:[r.jsxs(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Company",r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),r.jsx(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-96 -translate-x-1/2 rounded-3xl bg-white p-4 shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:-outline-offset-1 dark:outline-white/10",children:nr.map(n=>r.jsxs("div",{className:"relative rounded-lg p-4 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsxs("a",{href:n.href,className:"block text-sm/6 font-semibold text-gray-900 dark:text-white",children:[n.name,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-sm/6 text-gray-600 dark:text-gray-400",children:n.description})]},n.name))})]})]}),r.jsx("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:r.jsxs("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]})})]}),r.jsxs(D.Dialog,{open:e,onClose:t,className:"lg:hidden",children:[r.jsx("div",{className:"fixed inset-0 z-10"}),r.jsxs(D.DialogPanel,{className:"fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10",children:[r.jsxs("div",{className:"p-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[r.jsx("span",{className:"sr-only",children:"Your Company"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),r.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[r.jsx("span",{className:"sr-only",children:"Close menu"}),r.jsx(Ge,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsx("div",{className:"mt-6 flow-root",children:r.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10 dark:divide-white/10",children:[r.jsx("div",{className:"space-y-2 py-6",children:rr.map(n=>r.jsxs("a",{href:n.href,className:"group -mx-3 flex items-center gap-x-6 rounded-lg p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-700",children:r.jsx(n.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-300 dark:group-hover:text-white"})}),n.name]},n.name))}),r.jsxs("div",{className:"space-y-2 py-6",children:[r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Features"}),r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Marketplace"}),nr.map(n=>r.jsx("a",{href:n.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:n.name},n.name))]}),r.jsx("div",{className:"py-6",children:r.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Log in"})})]})})]}),r.jsx("div",{className:"sticky bottom-0 grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 text-center dark:divide-white/5 dark:bg-gray-800/50",children:item.ctas.map(n=>r.jsx("a",{href:n.href,className:"p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-800",children:n.title},n.title))})]})]})]})}function fa(){return r.jsxs(D.Disclosure,{as:"nav",className:"relative bg-white shadow dark:bg-gray-800/50 dark:shadow-none dark:after:pointer-events-none dark:after:absolute dark:after:inset-x-0 dark:after:bottom-0 dark:after:h-px dark:after:bg-white/10",children:[r.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:r.jsxs("div",{className:"flex h-16 justify-between",children:[r.jsxs("div",{className:"flex",children:[r.jsx("div",{className:"-ml-2 mr-2 flex items-center md:hidden",children:r.jsxs(D.DisclosureButton,{className:"group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white",children:[r.jsx("span",{className:"absolute -inset-0.5"}),r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Ut,{"aria-hidden":"true",className:"block size-6 group-data-[open]:hidden"}),r.jsx(Ge,{"aria-hidden":"true",className:"hidden size-6 group-data-[open]:block"})]})}),r.jsxs("div",{className:"flex shrink-0 items-center",children:[r.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),r.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),r.jsxs("div",{className:"hidden md:ml-6 md:flex md:space-x-8",children:[r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-indigo-600 px-1 pt-1 text-sm font-medium text-gray-900 dark:border-indigo-500 dark:text-white",children:"Dashboard"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Team"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Projects"}),r.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Calendar"})]})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"shrink-0",children:r.jsxs("button",{type:"button",className:"relative inline-flex items-center gap-x-1.5 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:shadow-none dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500",children:[r.jsx(sa,{"aria-hidden":"true",className:"-ml-0.5 size-5"}),"New Job"]})}),r.jsxs("div",{className:"hidden md:ml-4 md:flex md:shrink-0 md:items-center",children:[r.jsxs("button",{type:"button",className:"relative rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"View notifications"}),r.jsx(er,{"aria-hidden":"true",className:"size-6"})]}),r.jsxs(D.Menu,{as:"div",className:"relative ml-3",children:[r.jsxs(D.MenuButton,{className:"relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"Open user menu"}),r.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-8 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})]}),r.jsxs(D.MenuItems,{transition:!0,className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg outline outline-1 outline-black/5 transition data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Your profile"})}),r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Settings"})}),r.jsx(D.MenuItem,{children:r.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Sign out"})})]})]})]})]})]})}),r.jsxs(D.DisclosurePanel,{className:"md:hidden",children:[r.jsxs("div",{className:"space-y-1 pb-3 pt-2",children:[r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-indigo-600 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700 sm:pl-5 sm:pr-6 dark:border-indigo-500 dark:bg-indigo-600/10 dark:text-indigo-400",children:"Dashboard"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Team"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Projects"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Calendar"})]}),r.jsxs("div",{className:"border-t border-gray-200 pb-3 pt-4 dark:border-white/10",children:[r.jsxs("div",{className:"flex items-center px-4 sm:px-6",children:[r.jsx("div",{className:"shrink-0",children:r.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-10 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})}),r.jsxs("div",{className:"ml-3",children:[r.jsx("div",{className:"text-base font-medium text-gray-800 dark:text-white",children:"Tom Cook"}),r.jsx("div",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"tom@example.com"})]}),r.jsxs("button",{type:"button",className:"relative ml-auto shrink-0 rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[r.jsx("span",{className:"absolute -inset-1.5"}),r.jsx("span",{className:"sr-only",children:"View notifications"}),r.jsx(er,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsxs("div",{className:"mt-3 space-y-1",children:[r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Your profile"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Settings"}),r.jsx(D.DisclosureButton,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Sign out"})]})]})]})]})}var qt={exports:{}},zt={};function Jr(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Jr=function(s){return s?n:t})(e)}function pa(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Jr(t);if(n&&n.has(e))return n.get(e);var s={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(c!=="default"&&Object.prototype.hasOwnProperty.call(e,c)){var a=f?Object.getOwnPropertyDescriptor(e,c):null;a&&(a.get||a.set)?Object.defineProperty(s,c,a):s[c]=e[c]}return s.default=e,n&&n.set(e,s),s}zt._=pa;var Le={exports:{}},tt={},ar;function en(){return ar||(ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{assign:function(){return c},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return f}});function n(a){const d={};for(const[i,l]of a.entries()){const p=d[i];typeof p>"u"?d[i]=l:Array.isArray(p)?p.push(l):d[i]=[p,l]}return d}function s(a){return typeof a=="string"?a:typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function f(a){const d=new URLSearchParams;for(const[i,l]of Object.entries(a))if(Array.isArray(l))for(const p of l)d.append(i,s(p));else d.set(i,s(l));return d}function c(a,...d){for(const i of d){for(const l of i.keys())a.delete(l);for(const[l,p]of i.entries())a.append(l,p)}return a}}(tt)),tt}var rt={},or;function tn(){return or||(or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{formatUrl:function(){return c},formatWithValidation:function(){return d},urlObjectKeys:function(){return a}});const s=zt._(en()),f=/https?|ftp|gopher|file/;function c(i){let{auth:l,hostname:p}=i,_=i.protocol||"",u=i.pathname||"",g=i.hash||"",y=i.query||"",h=!1;l=l?encodeURIComponent(l).replace(/%3A/i,":")+"@":"",i.host?h=l+i.host:p&&(h=l+(~p.indexOf(":")?`[${p}]`:p),i.port&&(h+=":"+i.port)),y&&typeof y=="object"&&(y=String(s.urlQueryToSearchParams(y)));let m=i.search||y&&`?${y}`||"";return _&&!_.endsWith(":")&&(_+=":"),i.slashes||(!_||f.test(_))&&h!==!1?(h="//"+(h||""),u&&u[0]!=="/"&&(u="/"+u)):h||(h=""),g&&g[0]!=="#"&&(g="#"+g),m&&m[0]!=="?"&&(m="?"+m),u=u.replace(/[?#]/g,encodeURIComponent),m=m.replace("#","%23"),`${_}${h}${u}${m}${g}`}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(i){return process.env.NODE_ENV==="development"&&i!==null&&typeof i=="object"&&Object.keys(i).forEach(l=>{a.includes(l)||console.warn(`Unknown key passed via urlObject into url.format: ${l}`)}),c(i)}}(rt)),rt}var nt={},ir;function ha(){return ir||(ir=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,s){const f={};return Object.keys(n).forEach(c=>{s.includes(c)||(f[c]=n[c])}),f}}(nt)),nt}var at={},sr;function $e(){return sr||(sr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,b){for(var j in b)Object.defineProperty(x,j,{enumerable:!0,get:b[j]})}t(e,{DecodeError:function(){return y},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return v},NormalizeError:function(){return h},PageNotFoundError:function(){return m},SP:function(){return u},ST:function(){return g},WEB_VITALS:function(){return n},execOnce:function(){return s},getDisplayName:function(){return i},getLocationOrigin:function(){return a},getURL:function(){return d},isAbsoluteUrl:function(){return c},isResSent:function(){return l},loadGetInitialProps:function(){return _},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function s(x){let b=!1,j;return(...O)=>(b||(b=!0,j=x(...O)),j)}const f=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=x=>f.test(x);function a(){const{protocol:x,hostname:b,port:j}=window.location;return`${x}//${b}${j?":"+j:""}`}function d(){const{href:x}=window.location,b=a();return x.substring(b.length)}function i(x){return typeof x=="string"?x:x.displayName||x.name||"Unknown"}function l(x){return x.finished||x.headersSent}function p(x){const b=x.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?`?${b.slice(1).join("?")}`:"")}async function _(x,b){var L;if(process.env.NODE_ENV!=="production"&&(L=x.prototype)!=null&&L.getInitialProps){const k=`"${i(x)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const j=b.res||b.ctx&&b.ctx.res;if(!x.getInitialProps)return b.ctx&&b.Component?{pageProps:await _(b.Component,b.ctx)}:{};const O=await x.getInitialProps(b);if(j&&l(j))return O;if(!O){const k=`"${i(x)}.getInitialProps()" should resolve to an object. But found "${O}" instead.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return process.env.NODE_ENV!=="production"&&Object.keys(O).length===0&&!b.ctx&&console.warn(`${i(x)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`),O}const u=typeof performance<"u",g=u&&["mark","measure","getEntriesByName"].every(x=>typeof performance[x]=="function");class y extends Error{}class h extends Error{}class m extends Error{constructor(b){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${b}`}}class v extends Error{constructor(b,j){super(),this.message=`Failed to load static file for page: ${b} ${j}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(x){return JSON.stringify({message:x.message,stack:x.stack})}}(at)),at}var De={exports:{}},ot={},lr;function rn(){return lr||(lr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}}(ot)),ot}var it={},cr;function Xt(){return cr||(cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const s=n.indexOf("#"),f=n.indexOf("?"),c=f>-1&&(s<0||f<s);return c||s>-1?{pathname:n.substring(0,c?f:s),query:c?n.substring(f,s>-1?s:void 0):"",hash:s>-1?n.slice(s):""}:{pathname:n,query:"",hash:""}}}(it)),it}var ur;function Ye(){return ur||(ur=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});const n=rn(),s=Xt(),f=c=>{if(!c.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return c;const{pathname:a,query:d,hash:i}=(0,s.parsePath)(c);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(a)?`${(0,n.removeTrailingSlash)(a)}${d}${i}`:a.endsWith("/")?`${a}${d}${i}`:`${a}/${d}${i}`:`${(0,n.removeTrailingSlash)(a)}${d}${i}`};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(De,De.exports)),De.exports}var st={},Fe={exports:{}},lt={},dr;function nn(){return dr||(dr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=Xt();function n(s,f){if(typeof s!="string")return!1;const{pathname:c}=(0,t.parsePath)(s);return c===f||c.startsWith(f+"/")}}(lt)),lt}var fr;function ma(){return fr||(fr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return f}});const n=nn(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function f(c){return(0,n.pathHasPrefix)(c,s)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Fe,Fe.exports)),Fe.exports}var pr;function an(){return pr||(pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});const t=$e(),n=ma();function s(f){if(!(0,t.isAbsoluteUrl)(f))return!0;try{const c=(0,t.getLocationOrigin)(),a=new URL(f,c);return a.origin===c&&(0,n.hasBasePath)(a.pathname)}catch{return!1}}}(st)),st}var ct={},ut={},hr;function ga(){return hr||(hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,a){for(var d in a)Object.defineProperty(c,d,{enumerable:!0,get:a[d]})}t(e,{getSortedRouteObjects:function(){return f},getSortedRoutes:function(){return s}});class n{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a="/"){const d=[...this.children.keys()].sort();this.slugName!==null&&d.splice(d.indexOf("[]"),1),this.restSlugName!==null&&d.splice(d.indexOf("[...]"),1),this.optionalRestSlugName!==null&&d.splice(d.indexOf("[[...]]"),1);const i=d.map(l=>this.children.get(l)._smoosh(`${a}${l}/`)).reduce((l,p)=>[...l,...p],[]);if(this.slugName!==null&&i.push(...this.children.get("[]")._smoosh(`${a}[${this.slugName}]/`)),!this.placeholder){const l=a==="/"?"/":a.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${l}" and "${l}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});i.unshift(l)}return this.restSlugName!==null&&i.push(...this.children.get("[...]")._smoosh(`${a}[...${this.restSlugName}]/`)),this.optionalRestSlugName!==null&&i.push(...this.children.get("[[...]]")._smoosh(`${a}[[...${this.optionalRestSlugName}]]/`)),i}_insert(a,d,i){if(a.length===0){this.placeholder=!1;return}if(i)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let l=a[0];if(l.startsWith("[")&&l.endsWith("]")){let u=function(g,y){if(g!==null&&g!==y)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${g}' !== '${y}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});d.forEach(h=>{if(h===y)throw Object.defineProperty(new Error(`You cannot have the same slug name "${y}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(h.replace(/\W/g,"")===l.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${h}" and "${y}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),d.push(y)},p=l.slice(1,-1),_=!1;if(p.startsWith("[")&&p.endsWith("]")&&(p=p.slice(1,-1),_=!0),p.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${p}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(p.startsWith("...")&&(p=p.substring(3),i=!0),p.startsWith("[")||p.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${p}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(p.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${p}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(i)if(_){if(this.restSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${a[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});u(this.optionalRestSlugName,p),this.optionalRestSlugName=p,l="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${a[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});u(this.restSlugName,p),this.restSlugName=p,l="[...]"}else{if(_)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${a[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});u(this.slugName,p),this.slugName=p,l="[]"}}this.children.has(l)||this.children.set(l,new n),this.children.get(l)._insert(a.slice(1),d,i)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(c){const a=new n;return c.forEach(d=>a.insert(d)),a.smoosh()}function f(c,a){const d={},i=[];for(let p=0;p<c.length;p++){const _=a(c[p]);d[_]=p,i[p]=_}return s(i).map(p=>c[d[p]])}}(ut)),ut}var dt={},ft={},pt={},ht={},mr;function va(){return mr||(mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:`/${n}`}}(ht)),ht}var mt={},gr;function on(){return gr||(gr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,u){for(var g in u)Object.defineProperty(_,g,{enumerable:!0,get:u[g]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return p},PAGE_SEGMENT_KEY:function(){return i},addSearchParamsIfPageSegment:function(){return c},computeSelectedLayoutSegment:function(){return a},getSegmentValue:function(){return n},getSelectedLayoutSegmentPath:function(){return d},isGroupSegment:function(){return s},isParallelRouteSegment:function(){return f}});function n(_){return Array.isArray(_)?_[1]:_}function s(_){return _[0]==="("&&_.endsWith(")")}function f(_){return _.startsWith("@")&&_!=="@children"}function c(_,u){if(_.includes(i)){const y=JSON.stringify(u);return y!=="{}"?i+"?"+y:i}return _}function a(_,u){if(!_||_.length===0)return null;const g=u==="children"?_[0]:_[_.length-1];return g===l?null:g}function d(_,u,g=!0,y=[]){let h;if(g)h=_[1][u];else{const E=_[1];h=E.children??Object.values(E)[0]}if(!h)return y;const m=h[0];let v=n(m);return!v||v.startsWith(i)?y:(y.push(v),d(h,u,!1,y))}const i="__PAGE__",l="__DEFAULT__",p="/_not-found"}(mt)),mt}var vr;function _a(){return vr||(vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{normalizeAppPath:function(){return f},normalizeRscURL:function(){return c}});const n=va(),s=on();function f(a){return(0,n.ensureLeadingSlash)(a.split("/").reduce((d,i,l,p)=>!i||(0,s.isGroupSegment)(i)||i[0]==="@"||(i==="page"||i==="route")&&l===p.length-1?d:`${d}/${i}`,""))}function c(a){return a.replace(/\.rsc($|\?)/,"$1")}}(pt)),pt}var _r;function Ke(){return _r||(_r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return s},extractInterceptionRouteInformation:function(){return c},isInterceptionRouteAppPath:function(){return f}});const n=_a(),s=["(..)(..)","(.)","(..)","(...)"];function f(a){return a.split("/").find(d=>s.find(i=>d.startsWith(i)))!==void 0}function c(a){let d,i,l;for(const p of a.split("/"))if(i=s.find(_=>p.startsWith(_)),i){[d,l]=a.split(i,2);break}if(!d||!i||!l)throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(d=(0,n.normalizeAppPath)(d),i){case"(.)":d==="/"?l=`/${l}`:l=d+"/"+l;break;case"(..)":if(d==="/")throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});l=d.split("/").slice(0,-1).concat(l).join("/");break;case"(...)":l="/"+l;break;case"(..)(..)":const p=d.split("/");if(p.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});l=p.slice(0,-2).concat(l).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:d,interceptedRoute:l}}}(ft)),ft}var xr;function xa(){return xr||(xr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return f}});const t=Ke(),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,s=/\/\[[^/]+\](?=\/|$)/;function f(c,a=!0){return(0,t.isInterceptionRouteAppPath)(c)&&(c=(0,t.extractInterceptionRouteInformation)(c).interceptedRoute),a?s.test(c):n.test(c)}}(dt)),dt}var yr;function ya(){return yr||(yr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var a in c)Object.defineProperty(f,a,{enumerable:!0,get:c[a]})}t(e,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}});const n=ga(),s=xa()}(ct)),ct}var gt={},vt={},_t={},xt={exports:{}},br;function ba(){return br||(br=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0;function n(h){for(var m=[],v=0;v<h.length;){var E=h[v];if(E==="*"||E==="+"||E==="?"){m.push({type:"MODIFIER",index:v,value:h[v++]});continue}if(E==="\\"){m.push({type:"ESCAPED_CHAR",index:v++,value:h[v++]});continue}if(E==="{"){m.push({type:"OPEN",index:v,value:h[v++]});continue}if(E==="}"){m.push({type:"CLOSE",index:v,value:h[v++]});continue}if(E===":"){for(var w="",x=v+1;x<h.length;){var b=h.charCodeAt(x);if(b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||b===95){w+=h[x++];continue}break}if(!w)throw new TypeError("Missing parameter name at ".concat(v));m.push({type:"NAME",index:v,value:w}),v=x;continue}if(E==="("){var j=1,O="",x=v+1;if(h[x]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(x));for(;x<h.length;){if(h[x]==="\\"){O+=h[x++]+h[x++];continue}if(h[x]===")"){if(j--,j===0){x++;break}}else if(h[x]==="("&&(j++,h[x+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(x));O+=h[x++]}if(j)throw new TypeError("Unbalanced pattern at ".concat(v));if(!O)throw new TypeError("Missing pattern at ".concat(v));m.push({type:"PATTERN",index:v,value:O}),v=x;continue}m.push({type:"CHAR",index:v,value:h[v++]})}return m.push({type:"END",index:v,value:""}),m}function s(h,m){m===void 0&&(m={});for(var v=n(h),E=m.prefixes,w=E===void 0?"./":E,x=m.delimiter,b=x===void 0?"/#?":x,j=[],O=0,L=0,k="",N=function(oe){if(L<v.length&&v[L].type===oe)return v[L++].value},A=function(oe){var Z=N(oe);if(Z!==void 0)return Z;var ie=v[L],te=ie.type,ge=ie.index;throw new TypeError("Unexpected ".concat(te," at ").concat(ge,", expected ").concat(oe))},S=function(){for(var oe="",Z;Z=N("CHAR")||N("ESCAPED_CHAR");)oe+=Z;return oe},C=function(oe){for(var Z=0,ie=b;Z<ie.length;Z++){var te=ie[Z];if(oe.indexOf(te)>-1)return!0}return!1},F=function(oe){var Z=j[j.length-1],ie=oe||(Z&&typeof Z=="string"?Z:"");if(Z&&!ie)throw new TypeError('Must have text between two parameters, missing text after "'.concat(Z.name,'"'));return!ie||C(ie)?"[^".concat(i(b),"]+?"):"(?:(?!".concat(i(ie),")[^").concat(i(b),"])+?")};L<v.length;){var M=N("CHAR"),$=N("NAME"),J=N("PATTERN");if($||J){var K=M||"";w.indexOf(K)===-1&&(k+=K,K=""),k&&(j.push(k),k=""),j.push({name:$||O++,prefix:K,suffix:"",pattern:J||F(K),modifier:N("MODIFIER")||""});continue}var X=M||N("ESCAPED_CHAR");if(X){k+=X;continue}k&&(j.push(k),k="");var ae=N("OPEN");if(ae){var K=S(),ce=N("NAME")||"",ee=N("PATTERN")||"",se=S();A("CLOSE"),j.push({name:ce||(ee?O++:""),pattern:ce&&!ee?F(K):ee,prefix:K,suffix:se,modifier:N("MODIFIER")||""});continue}A("END")}return j}t.parse=s;function f(h,m){return c(s(h,m),m)}t.compile=f;function c(h,m){m===void 0&&(m={});var v=l(m),E=m.encode,w=E===void 0?function(O){return O}:E,x=m.validate,b=x===void 0?!0:x,j=h.map(function(O){if(typeof O=="object")return new RegExp("^(?:".concat(O.pattern,")$"),v)});return function(O){for(var L="",k=0;k<h.length;k++){var N=h[k];if(typeof N=="string"){L+=N;continue}var A=O?O[N.name]:void 0,S=N.modifier==="?"||N.modifier==="*",C=N.modifier==="*"||N.modifier==="+";if(Array.isArray(A)){if(!C)throw new TypeError('Expected "'.concat(N.name,'" to not repeat, but got an array'));if(A.length===0){if(S)continue;throw new TypeError('Expected "'.concat(N.name,'" to not be empty'))}for(var F=0;F<A.length;F++){var M=w(A[F],N);if(b&&!j[k].test(M))throw new TypeError('Expected all "'.concat(N.name,'" to match "').concat(N.pattern,'", but got "').concat(M,'"'));L+=N.prefix+M+N.suffix}continue}if(typeof A=="string"||typeof A=="number"){var M=w(String(A),N);if(b&&!j[k].test(M))throw new TypeError('Expected "'.concat(N.name,'" to match "').concat(N.pattern,'", but got "').concat(M,'"'));L+=N.prefix+M+N.suffix;continue}if(!S){var $=C?"an array":"a string";throw new TypeError('Expected "'.concat(N.name,'" to be ').concat($))}}return L}}t.tokensToFunction=c;function a(h,m){var v=[],E=y(h,v,m);return d(E,v,m)}t.match=a;function d(h,m,v){v===void 0&&(v={});var E=v.decode,w=E===void 0?function(x){return x}:E;return function(x){var b=h.exec(x);if(!b)return!1;for(var j=b[0],O=b.index,L=Object.create(null),k=function(A){if(b[A]===void 0)return"continue";var S=m[A-1];S.modifier==="*"||S.modifier==="+"?L[S.name]=b[A].split(S.prefix+S.suffix).map(function(C){return w(C,S)}):L[S.name]=w(b[A],S)},N=1;N<b.length;N++)k(N);return{path:j,index:O,params:L}}}t.regexpToFunction=d;function i(h){return h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(h){return h&&h.sensitive?"":"i"}function p(h,m){if(!m)return h;for(var v=/\((?:\?<(.*?)>)?(?!\?)/g,E=0,w=v.exec(h.source);w;)m.push({name:w[1]||E++,prefix:"",suffix:"",modifier:"",pattern:""}),w=v.exec(h.source);return h}function _(h,m,v){var E=h.map(function(w){return y(w,m,v).source});return new RegExp("(?:".concat(E.join("|"),")"),l(v))}function u(h,m,v){return g(s(h,v),m,v)}function g(h,m,v){v===void 0&&(v={});for(var E=v.strict,w=E===void 0?!1:E,x=v.start,b=x===void 0?!0:x,j=v.end,O=j===void 0?!0:j,L=v.encode,k=L===void 0?function(Z){return Z}:L,N=v.delimiter,A=N===void 0?"/#?":N,S=v.endsWith,C=S===void 0?"":S,F="[".concat(i(C),"]|$"),M="[".concat(i(A),"]"),$=b?"^":"",J=0,K=h;J<K.length;J++){var X=K[J];if(typeof X=="string")$+=i(k(X));else{var ae=i(k(X.prefix)),ce=i(k(X.suffix));if(X.pattern)if(m&&m.push(X),ae||ce)if(X.modifier==="+"||X.modifier==="*"){var ee=X.modifier==="*"?"?":"";$+="(?:".concat(ae,"((?:").concat(X.pattern,")(?:").concat(ce).concat(ae,"(?:").concat(X.pattern,"))*)").concat(ce,")").concat(ee)}else $+="(?:".concat(ae,"(").concat(X.pattern,")").concat(ce,")").concat(X.modifier);else{if(X.modifier==="+"||X.modifier==="*")throw new TypeError('Can not repeat "'.concat(X.name,'" without a prefix and suffix'));$+="(".concat(X.pattern,")").concat(X.modifier)}else $+="(?:".concat(ae).concat(ce,")").concat(X.modifier)}}if(O)w||($+="".concat(M,"?")),$+=v.endsWith?"(?=".concat(F,")"):"$";else{var se=h[h.length-1],oe=typeof se=="string"?M.indexOf(se[se.length-1])>-1:se===void 0;w||($+="(?:".concat(M,"(?=").concat(F,"))?")),oe||($+="(?=".concat(M,"|").concat(F,")"))}return new RegExp($,l(v))}t.tokensToRegexp=g;function y(h,m,v){return h instanceof RegExp?p(h,m):Array.isArray(h)?_(h,m,v):u(h,m,v)}t.pathToRegexp=y})(),xt.exports=e})()),xt.exports}var yt={},Er;function Ea(){return Er||(Er=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{PARAM_SEPARATOR:function(){return n},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return f},normalizeTokensForRegexp:function(){return c},stripNormalizedSeparators:function(){return a},stripParameterSeparators:function(){return d}});const n="_NEXTSEP_";function s(i){return typeof i!="string"?!1:!!(/\/\(\.{1,3}\):[^/\s]+/.test(i)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(i))}function f(i){let l=i;return l=l.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${n}:$2`),l=l.replace(/:([^:/\s)]+)(?=:)/g,`:$1${n}`),l}function c(i){return i.map(l=>typeof l=="object"&&l!==null&&"modifier"in l&&(l.modifier==="*"||l.modifier==="+")&&"prefix"in l&&"suffix"in l&&l.prefix===""&&l.suffix===""?{...l,prefix:"/"}:l)}function a(i){return i.replace(new RegExp(`\\)${n}`,"g"),")")}function d(i){const l={};for(const[p,_]of Object.entries(i))typeof _=="string"?l[p]=_.replace(new RegExp(`^${n}`),""):Array.isArray(_)?l[p]=_.map(u=>typeof u=="string"?u.replace(new RegExp(`^${n}`),""):u):l[p]=_;return l}}(yt)),yt}var Rr;function Ra(){return Rr||(Rr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,l){for(var p in l)Object.defineProperty(i,p,{enumerable:!0,get:l[p]})}t(e,{safeCompile:function(){return c},safePathToRegexp:function(){return f},safeRegexpToFunction:function(){return a},safeRouteMatcher:function(){return d}});const n=ba(),s=Ea();function f(i,l,p){if(typeof i!="string")return(0,n.pathToRegexp)(i,l,p);const _=(0,s.hasAdjacentParameterIssues)(i),u=_?(0,s.normalizeAdjacentParameters)(i):i;try{return(0,n.pathToRegexp)(u,l,p)}catch(g){if(!_)try{const y=(0,s.normalizeAdjacentParameters)(i);return(0,n.pathToRegexp)(y,l,p)}catch{throw g}throw g}}function c(i,l){const p=(0,s.hasAdjacentParameterIssues)(i),_=p?(0,s.normalizeAdjacentParameters)(i):i;try{const u=(0,n.compile)(_,l);return p?g=>(0,s.stripNormalizedSeparators)(u(g)):u}catch(u){if(!p)try{const g=(0,s.normalizeAdjacentParameters)(i),y=(0,n.compile)(g,l);return h=>(0,s.stripNormalizedSeparators)(y(h))}catch{throw u}throw u}}function a(i,l){const p=(0,n.regexpToFunction)(i,l||[]);return _=>{const u=p(_);return u?{...u,params:(0,s.stripParameterSeparators)(u.params)}:!1}}function d(i){return l=>{const p=i(l);return p?(0,s.stripParameterSeparators)(p):!1}}}(_t)),_t}var Nr;function sn(){return Nr||(Nr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return s}});const t=$e(),n=Ra();function s({re:f,groups:c}){const a=d=>{const i=f.exec(d);if(!i)return!1;const l=_=>{try{return decodeURIComponent(_)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},p={};for(const[_,u]of Object.entries(c)){const g=i[u.pos];g!==void 0&&(u.repeat?p[_]=g.split("/").map(y=>l(y)):p[_]=l(g))}return p};return(0,n.safeRouteMatcher)(a)}}(vt)),vt}var bt={},Et={},Pr;function Na(){return Pr||(Pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ye,je){for(var Oe in je)Object.defineProperty(ye,Oe,{enumerable:!0,get:je[Oe]})}t(e,{ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return X},CACHE_ONE_YEAR:function(){return k},DOT_NEXT_ALIAS:function(){return J},ESLINT_DEFAULT_DIRS:function(){return xe},GSP_NO_RETURNED_VALUE:function(){return Pe},GSSP_COMPONENT_MEMBER_ERROR:function(){return _e},GSSP_NO_RETURNED_VALUE:function(){return we},HTML_CONTENT_TYPE_HEADER:function(){return s},INFINITE_CACHE:function(){return N},INSTRUMENTATION_HOOK_FILENAME:function(){return M},JSON_CONTENT_TYPE_HEADER:function(){return f},MATCHED_PATH_HEADER:function(){return d},MIDDLEWARE_FILENAME:function(){return A},MIDDLEWARE_LOCATION_REGEXP:function(){return S},NEXT_BODY_SUFFIX:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return L},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return E},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return v},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return j},NEXT_DATA_SUFFIX:function(){return y},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return h},NEXT_QUERY_PARAM_PREFIX:function(){return c},NEXT_RESUME_HEADER:function(){return x},NON_STANDARD_NODE_ENV:function(){return Ee},PAGES_DIR_ALIAS:function(){return $},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return l},PROXY_FILENAME:function(){return C},PROXY_LOCATION_REGEXP:function(){return F},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return te},ROOT_DIR_ALIAS:function(){return K},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return ie},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Z},RSC_ACTION_PROXY_ALIAS:function(){return ee},RSC_ACTION_VALIDATE_ALIAS:function(){return ce},RSC_CACHE_WRAPPER_ALIAS:function(){return se},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return oe},RSC_MOD_REF_PROXY_ALIAS:function(){return ae},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return _},RSC_SUFFIX:function(){return u},SERVER_PROPS_EXPORT_ERROR:function(){return le},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return U},SERVER_PROPS_SSG_CONFLICT:function(){return ve},SERVER_RUNTIME:function(){return ke},SSG_FALLBACK_EXPORT_ERROR:function(){return Re},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return ge},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return pe},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return n},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Q},WEBPACK_LAYERS:function(){return G},WEBPACK_RESOURCE_QUERIES:function(){return me},WEB_SOCKET_MAX_RECONNECTIONS:function(){return Ce}});const n="text/plain",s="text/html; charset=utf-8",f="application/json; charset=utf-8",c="nxtP",a="nxtI",d="x-matched-path",i="x-prerender-revalidate",l="x-prerender-revalidate-if-generated",p=".segments",_=".segment.rsc",u=".rsc",g=".action",y=".json",h=".meta",m=".body",v="x-next-cache-tags",E="x-next-revalidated-tags",w="x-next-revalidate-tag-token",x="next-resume",b=128,j=256,O=1024,L="_N_T_",k=31536e3,N=4294967294,A="middleware",S=`(?:src/)?${A}`,C="proxy",F=`(?:src/)?${C}`,M="instrumentation",$="private-next-pages",J="private-dot-next",K="private-next-root-dir",X="private-next-app-dir",ae="private-next-rsc-mod-ref-proxy",ce="private-next-rsc-action-validate",ee="private-next-rsc-server-reference",se="private-next-rsc-cache-wrapper",oe="private-next-rsc-track-dynamic-import",Z="private-next-rsc-action-encryption",ie="private-next-rsc-action-client-wrapper",te="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",ge="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",U="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ve="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",pe="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",le="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Pe="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",we="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Q="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",_e="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Ee='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Re="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",xe=["app","pages","components","lib","src"],ke={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Ce=12,W={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},G={...W,GROUP:{builtinReact:[W.reactServerComponents,W.actionBrowser],serverOnly:[W.reactServerComponents,W.actionBrowser,W.instrument,W.middleware],neutralTarget:[W.apiNode,W.apiEdge],clientOnly:[W.serverSideRendering,W.appPagesBrowser],bundled:[W.reactServerComponents,W.actionBrowser,W.serverSideRendering,W.appPagesBrowser,W.shared,W.instrument,W.middleware],appPages:[W.reactServerComponents,W.serverSideRendering,W.appPagesBrowser,W.actionBrowser]}},me={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(Et)),Et}var Rt={},wr;function Pa(){return wr||(wr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return s}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function s(f){return t.test(f)?f.replace(n,"\\$&"):f}}(Rt)),Rt}var Nt={},Pt={},jr;function Bt(){return jr||(jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(s,f){super(`Invariant: ${s.endsWith(".")?s:s+"."} This is a bug in Next.js.`,f),this.name="InvariantError"}}}(Pt)),Pt}var wt={},Or;function wa(){return Or||(Or=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return n}});const t=on();function n(s){const[f,c,a]=s,{layout:d,template:i}=a;let{page:l}=a;l=f===t.DEFAULT_SEGMENT_KEY?a.defaultPage:l;const p=(d==null?void 0:d[1])||(i==null?void 0:i[1])||(l==null?void 0:l[1]);return{page:l,segment:f,modules:a,conventionPath:p,parallelRoutes:c}}}(wt)),wt}var jt={},Ot={},Tr;function ja(){return Tr||(Tr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,d){for(var i in d)Object.defineProperty(a,i,{enumerable:!0,get:d[i]})}t(e,{getParamProperties:function(){return c},getSegmentParam:function(){return s},isCatchAll:function(){return f}});const n=Ke();function s(a){const d=n.INTERCEPTION_ROUTE_MARKERS.find(i=>a.startsWith(i));return d&&(a=a.slice(d.length)),a.startsWith("[[...")&&a.endsWith("]]")?{paramType:"optional-catchall",paramName:a.slice(5,-2)}:a.startsWith("[...")&&a.endsWith("]")?{paramType:d?`catchall-intercepted-${d}`:"catchall",paramName:a.slice(4,-1)}:a.startsWith("[")&&a.endsWith("]")?{paramType:d?`dynamic-intercepted-${d}`:"dynamic",paramName:a.slice(1,-1)}:null}function f(a){return a==="catchall"||a==="catchall-intercepted-(..)(..)"||a==="catchall-intercepted-(.)"||a==="catchall-intercepted-(..)"||a==="catchall-intercepted-(...)"||a==="optional-catchall"}function c(a){let d=!1,i=!1;switch(a){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":d=!0;break;case"optional-catchall":d=!0,i=!0;break}return{repeat:d,optional:i}}}(Ot)),Ot}var Sr;function Oa(){return Sr||(Sr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,p){for(var _ in p)Object.defineProperty(l,_,{enumerable:!0,get:p[_]})}t(e,{isInterceptionAppRoute:function(){return d},isNormalizedAppRoute:function(){return a},parseAppRoute:function(){return i},parseAppRouteSegment:function(){return c}});const n=Bt(),s=ja(),f=Ke();function c(l){if(l==="")return null;const p=f.INTERCEPTION_ROUTE_MARKERS.find(u=>l.startsWith(u)),_=(0,s.getSegmentParam)(l);return _?{type:"dynamic",name:l,param:_,interceptionMarker:p}:l.startsWith("(")&&l.endsWith(")")?{type:"route-group",name:l,interceptionMarker:p}:l.startsWith("@")?{type:"parallel-route",name:l,interceptionMarker:p}:{type:"static",name:l,interceptionMarker:p}}function a(l){return l.normalized}function d(l){return l.interceptionMarker!==void 0&&l.interceptingRoute!==void 0&&l.interceptedRoute!==void 0}function i(l,p){const _=l.split("/").filter(Boolean),u=[];let g,y,h;for(const v of _){const E=c(v);if(E){if(p&&(E.type==="route-group"||E.type==="parallel-route"))throw Object.defineProperty(new n.InvariantError(`${l} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(u.push(E),E.interceptionMarker){const w=l.split(E.interceptionMarker);if(w.length!==2)throw Object.defineProperty(new Error(`Invalid interception route: ${l}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});y=p?i(w[0],!0):i(w[0],!1),h=p?i(w[1],!0):i(w[1],!1),g=E.interceptionMarker}}}const m=u.filter(v=>v.type==="dynamic");return{normalized:p,pathname:l,segments:u,dynamicSegments:m,interceptionMarker:g,interceptingRoute:y,interceptedRoute:h}}}(jt)),jt}var Tt={},St={},Ar;function Ta(){return Ar||(Ar=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}});function t(n){switch(n){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";case"catchall":case"dynamic":case"optional-catchall":default:return null}}}(St)),St}var kr;function Sa(){return kr||(kr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return f}});const t=Bt(),n=Ta();function s(c,a,d){return c.type==="dynamic"?a[c.param.paramName]:(0,n.interceptionPrefixFromParamType)(d)===c.interceptionMarker?c.name.replace(c.interceptionMarker,""):c.name}function f(c,a,d,i,l){switch(a){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const p=[];for(let _=d;_<i.segments.length;_++){const u=i.segments[_];if(u.type==="static"){let g=u.name;const y=(0,n.interceptionPrefixFromParamType)(a);y&&_===d&&y===u.interceptionMarker&&(g=g.replace(u.interceptionMarker,"")),p.push(g)}else{if(!l.hasOwnProperty(u.param.paramName)){if(u.param.paramType==="optional-catchall")break;return}const g=l[u.param.paramName];Array.isArray(g)?p.push(...g):p.push(g)}}if(p.length>0)return p;if(a==="optional-catchall")return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${c}" of type "${a}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(d<i.segments.length){const _=i.segments[d];return _.type==="dynamic"&&!l.hasOwnProperty(_.param.paramName)?void 0:s(_,l,a)}return}}}(Tt)),Tt}var Cr;function Aa(){return Cr||(Cr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,g){for(var y in g)Object.defineProperty(u,y,{enumerable:!0,get:g[y]})}t(e,{PARAMETER_PATTERN:function(){return l},getDynamicParam:function(){return i},interpolateParallelRouteParams:function(){return d},parseMatchedParameter:function(){return _},parseParameter:function(){return p}});const n=Bt(),s=wa(),f=Oa(),c=Sa();function a(u,g,y){let h=u[g];if(y!=null&&y.has(g)){const[m]=y.get(g);h=m}else Array.isArray(h)?h=h.map(m=>encodeURIComponent(m)):typeof h=="string"&&(h=encodeURIComponent(h));return h}function d(u,g,y,h){const m=structuredClone(g),v=[{tree:u,depth:0}],E=(0,f.parseAppRoute)(y,!0);for(;v.length>0;){const{tree:w,depth:x}=v.pop(),{segment:b,parallelRoutes:j}=(0,s.parseLoaderTree)(w),O=(0,f.parseAppRouteSegment)(b);if((O==null?void 0:O.type)==="dynamic"&&!m.hasOwnProperty(O.param.paramName)&&!(h!=null&&h.has(O.param.paramName))){const{paramName:k,paramType:N}=O.param,A=(0,c.resolveParamValue)(k,N,x,E,m);if(A!==void 0)m[k]=A;else if(N!=="optional-catchall")throw Object.defineProperty(new n.InvariantError(`Could not resolve param value for segment: ${k}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let L=x;O&&O.type!=="route-group"&&O.type!=="parallel-route"&&L++;for(const k of Object.values(j))v.push({tree:k,depth:L})}return m}function i(u,g,y,h){let m=a(u,g,h);if(!m||m.length===0){if(y==="oc")return{param:g,value:null,type:y,treeSegment:[g,"",y]};throw Object.defineProperty(new n.InvariantError(`Missing value for segment key: "${g}" with dynamic param type: ${y}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:g,value:m,treeSegment:[g,Array.isArray(m)?m.join("/"):m,y],type:y}}const l=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(u){const g=u.match(l);return _(g?g[2]:u)}function _(u){const g=u.startsWith("[")&&u.endsWith("]");g&&(u=u.slice(1,-1));const y=u.startsWith("...");return y&&(u=u.slice(3)),{key:u,repeat:y,optional:g}}}(Nt)),Nt}var Mr;function ln(){return Mr||(Mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,h){for(var m in h)Object.defineProperty(y,m,{enumerable:!0,get:h[m]})}t(e,{getNamedMiddlewareRegex:function(){return g},getNamedRouteRegex:function(){return u},getRouteRegex:function(){return i}});const n=Na(),s=Ke(),f=Pa(),c=rn(),a=Aa();function d(y,h,m){const v={};let E=1;const w=[];for(const x of(0,c.removeTrailingSlash)(y).slice(1).split("/")){const b=s.INTERCEPTION_ROUTE_MARKERS.find(O=>x.startsWith(O)),j=x.match(a.PARAMETER_PATTERN);if(b&&j&&j[2]){const{key:O,optional:L,repeat:k}=(0,a.parseMatchedParameter)(j[2]);v[O]={pos:E++,repeat:k,optional:L},w.push(`/${(0,f.escapeStringRegexp)(b)}([^/]+?)`)}else if(j&&j[2]){const{key:O,repeat:L,optional:k}=(0,a.parseMatchedParameter)(j[2]);v[O]={pos:E++,repeat:L,optional:k},m&&j[1]&&w.push(`/${(0,f.escapeStringRegexp)(j[1])}`);let N=L?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";m&&j[1]&&(N=N.substring(1)),w.push(N)}else w.push(`/${(0,f.escapeStringRegexp)(x)}`);h&&j&&j[3]&&w.push((0,f.escapeStringRegexp)(j[3]))}return{parameterizedRoute:w.join(""),groups:v}}function i(y,{includeSuffix:h=!1,includePrefix:m=!1,excludeOptionalTrailingSlash:v=!1}={}){const{parameterizedRoute:E,groups:w}=d(y,h,m);let x=E;return v||(x+="(?:/)?"),{re:new RegExp(`^${x}$`),groups:w}}function l(){let y=0;return()=>{let h="",m=++y;for(;m>0;)h+=String.fromCharCode(97+(m-1)%26),m=Math.floor((m-1)/26);return h}}function p({interceptionMarker:y,getSafeRouteKey:h,segment:m,routeKeys:v,keyPrefix:E,backreferenceDuplicateKeys:w}){const{key:x,optional:b,repeat:j}=(0,a.parseMatchedParameter)(m);let O=x.replace(/\W/g,"");E&&(O=`${E}${O}`);let L=!1;(O.length===0||O.length>30)&&(L=!0),isNaN(parseInt(O.slice(0,1)))||(L=!0),L&&(O=h());const k=O in v;E?v[O]=`${E}${x}`:v[O]=x;const N=y?(0,f.escapeStringRegexp)(y):"";let A;return k&&w?A=`\\k<${O}>`:j?A=`(?<${O}>.+?)`:A=`(?<${O}>[^/]+?)`,{key:x,pattern:b?`(?:/${N}${A})?`:`/${N}${A}`,cleanedKey:O,optional:b,repeat:j}}function _(y,h,m,v,E,w={names:{},intercepted:{}}){var L,k;const x=l(),b={},j=[],O=[];w=structuredClone(w);for(const N of(0,c.removeTrailingSlash)(y).slice(1).split("/")){const A=s.INTERCEPTION_ROUTE_MARKERS.some(M=>N.startsWith(M)),S=N.match(a.PARAMETER_PATTERN),C=A?S==null?void 0:S[1]:void 0;let F;if(C&&(S!=null&&S[2])?(F=h?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,w.intercepted[S[2]]=C):S!=null&&S[2]&&w.intercepted[S[2]]?F=h?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:F=h?n.NEXT_QUERY_PARAM_PREFIX:void 0,C&&S&&S[2]){const{key:M,pattern:$,cleanedKey:J,repeat:K,optional:X}=p({getSafeRouteKey:x,interceptionMarker:C,segment:S[2],routeKeys:b,keyPrefix:F,backreferenceDuplicateKeys:E});j.push($),O.push(`/${S[1]}:${w.names[M]??J}${K?X?"*":"+":""}`),(L=w.names)[M]??(L[M]=J)}else if(S&&S[2]){v&&S[1]&&(j.push(`/${(0,f.escapeStringRegexp)(S[1])}`),O.push(`/${S[1]}`));const{key:M,pattern:$,cleanedKey:J,repeat:K,optional:X}=p({getSafeRouteKey:x,segment:S[2],routeKeys:b,keyPrefix:F,backreferenceDuplicateKeys:E});let ae=$;v&&S[1]&&(ae=ae.substring(1)),j.push(ae),O.push(`/:${w.names[M]??J}${K?X?"*":"+":""}`),(k=w.names)[M]??(k[M]=J)}else j.push(`/${(0,f.escapeStringRegexp)(N)}`),O.push(`/${N}`);m&&S&&S[3]&&(j.push((0,f.escapeStringRegexp)(S[3])),O.push(S[3]))}return{namedParameterizedRoute:j.join(""),routeKeys:b,pathToRegexpPattern:O.join(""),reference:w}}function u(y,h){const m=_(y,h.prefixRouteKeys,h.includeSuffix??!1,h.includePrefix??!1,h.backreferenceDuplicateKeys??!1,h.reference);let v=m.namedParameterizedRoute;return h.excludeOptionalTrailingSlash||(v+="(?:/)?"),{...i(y,h),namedRegex:`^${v}$`,routeKeys:m.routeKeys,pathToRegexpPattern:m.pathToRegexpPattern,reference:m.reference}}function g(y,h){const{parameterizedRoute:m}=d(y,!1,!1),{catchAll:v=!0}=h;if(m==="/")return{namedRegex:`^/${v?".*":""}$`};const{namedParameterizedRoute:E}=_(y,!1,!1,!1,!1,void 0);return{namedRegex:`^${E}${v?"(?:(/.*)?)":""}$`}}}(bt)),bt}var Ir;function ka(){return Ir||(Ir=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});const t=sn(),n=ln();function s(f,c,a){let d="";const i=(0,n.getRouteRegex)(f),l=i.groups,p=(c!==f?(0,t.getRouteMatcher)(i)(c):"")||a;d=f;const _=Object.keys(l);return _.every(u=>{let g=p[u]||"";const{repeat:y,optional:h}=l[u];let m=`[${y?"...":""}${u}]`;return h&&(m=`${g?"":"/"}[${m}]`),y&&!Array.isArray(g)&&(g=[g]),(h||u in p)&&(d=d.replace(m,y?g.map(v=>encodeURIComponent(v)).join("/"):encodeURIComponent(g))||"/")})||(d=""),{params:_,result:d}}}(gt)),gt}var Lr;function Ca(){return Lr||(Lr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return u}});const n=en(),s=tn(),f=ha(),c=$e(),a=Ye(),d=an(),i=ya(),l=ka(),p=ln(),_=sn();function u(g,y,h){let m,v=typeof y=="string"?y:(0,s.formatWithValidation)(y);const E=v.match(/^[a-z][a-z0-9+.-]*:\/\//i),w=E?v.slice(E[0].length):v;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${v}' passed to next/router in page: '${g.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const b=(0,c.normalizeRepeatedSlashes)(w);v=(E?E[0]:"")+b}if(!(0,d.isLocalURL)(v))return h?[v]:v;try{let b=v.startsWith("#")?g.asPath:g.pathname;if(v.startsWith("?")&&(b=g.asPath,(0,i.isDynamicRoute)(g.pathname))){b=g.pathname;const j=(0,p.getRouteRegex)(g.pathname);(0,_.getRouteMatcher)(j)(g.asPath)||(b=g.asPath)}m=new URL(b,"http://n")}catch{m=new URL("/","http://n")}try{const b=new URL(v,m);b.pathname=(0,a.normalizePathTrailingSlash)(b.pathname);let j="";if((0,i.isDynamicRoute)(b.pathname)&&b.searchParams&&h){const L=(0,n.searchParamsToUrlQuery)(b.searchParams),{result:k,params:N}=(0,l.interpolateAs)(b.pathname,b.pathname,L);k&&(j=(0,s.formatWithValidation)({pathname:k,hash:b.hash,query:(0,f.omit)(L,N)}))}const O=b.origin===m.origin?b.href.slice(b.origin.length):b.href;return h?[O,j||O]:O}catch{return h?[v]:v}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Le,Le.exports)),Le.exports}var qe={exports:{}},At={},kt={},Dr;function cn(){return Dr||(Dr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=Xt();function n(s,f){if(!s.startsWith("/")||!f)return s;const{pathname:c,query:a,hash:d}=(0,t.parsePath)(s);return`${f}${c}${a}${d}`}}(kt)),kt}var Fr;function Ma(){return Fr||(Fr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return s}});const t=cn(),n=nn();function s(f,c,a,d){if(!c||c===a)return f;const i=f.toLowerCase();return!d&&((0,n.pathHasPrefix)(i,"/api")||(0,n.pathHasPrefix)(i,`/${c.toLowerCase()}`))?f:(0,t.addPathPrefix)(f,`/${c}`)}}(At)),At}var qr;function Ia(){return qr||(qr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return s}});const n=Ye(),s=(f,...c)=>process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(Ma().addLocale(f,...c)):f;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(qe,qe.exports)),qe.exports}var Ct={},Mt={},Ur;function La(){if(Ur)return Mt;Ur=1;function e(t){return t&&t.__esModule?t:{default:t}}return Mt._=e,Mt}var zr;function Da(){return zr||(zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return s}});const s=La()._(H).default.createContext(null);process.env.NODE_ENV!=="production"&&(s.displayName="RouterContext")}(Ct)),Ct}var Ue={exports:{}},ze={exports:{}},Xr;function Fa(){return Xr||(Xr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(c,a){for(var d in a)Object.defineProperty(c,d,{enumerable:!0,get:a[d]})}n(t,{cancelIdleCallback:function(){return f},requestIdleCallback:function(){return s}});const s=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(c){let a=Date.now();return self.setTimeout(function(){c({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},f=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(c){return clearTimeout(c)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(ze,ze.exports)),ze.exports}var Br;function qa(){return Br||(Br=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});const n=H,s=Fa(),f=typeof IntersectionObserver=="function",c=new Map,a=[];function d(p){const _={root:p.root||null,margin:p.rootMargin||""},u=a.find(m=>m.root===_.root&&m.margin===_.margin);let g;if(u&&(g=c.get(u),g))return g;const y=new Map,h=new IntersectionObserver(m=>{m.forEach(v=>{const E=y.get(v.target),w=v.isIntersecting||v.intersectionRatio>0;E&&w&&E(w)})},p);return g={id:_,observer:h,elements:y},a.push(_),c.set(_,g),g}function i(p,_,u){const{id:g,observer:y,elements:h}=d(u);return h.set(p,_),y.observe(p),function(){if(h.delete(p),y.unobserve(p),h.size===0){y.disconnect(),c.delete(g);const v=a.findIndex(E=>E.root===g.root&&E.margin===g.margin);v>-1&&a.splice(v,1)}}}function l({rootRef:p,rootMargin:_,disabled:u}){const g=u||!f,[y,h]=(0,n.useState)(!1),m=(0,n.useRef)(null),v=(0,n.useCallback)(w=>{m.current=w},[]);(0,n.useEffect)(()=>{if(f){if(g||y)return;const w=m.current;if(w&&w.tagName)return i(w,b=>b&&h(b),{root:p==null?void 0:p.current,rootMargin:_})}else if(!y){const w=(0,s.requestIdleCallback)(()=>h(!0));return()=>(0,s.cancelIdleCallback)(w)}},[g,_,p,y,m.current]);const E=(0,n.useCallback)(()=>{h(!1)},[]);return[v,y,E]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ue,Ue.exports)),Ue.exports}var Xe={exports:{}},Be={exports:{}},It={},Hr;function Ua(){return Hr||(Hr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(s,f){if(!f)return{pathname:s};let c=t.get(f);c||(c=f.map(p=>p.toLowerCase()),t.set(f,c));let a;const d=s.split("/",2);if(!d[1])return{pathname:s};const i=d[1].toLowerCase(),l=c.indexOf(i);return l<0?{pathname:s}:(a=f[l],s=s.slice(a.length+1)||"/",{pathname:s,detectedLocale:a})}}(It)),It}var Wr;function za(){return Wr||(Wr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(s,f)=>process.env.__NEXT_I18N_SUPPORT?Ua().normalizeLocalePath(s,f):{pathname:s,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Be,Be.exports)),Be.exports}var He={exports:{}},Lt={},Vr;function Xa(){return Vr||(Vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,s,f){var c,a;if(n){f&&(f=f.toLowerCase());for(const d of n){const i=(c=d.domain)==null?void 0:c.split(":",1)[0].toLowerCase();if(s===i||f===d.defaultLocale.toLowerCase()||(a=d.locales)!=null&&a.some(l=>l.toLowerCase()===f))return d}}}}(Lt)),Lt}var Gr;function Ba(){return Gr||(Gr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=(...s)=>{if(process.env.__NEXT_I18N_SUPPORT)return Xa().detectDomainLocale(...s)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(He,He.exports)),He.exports}var $r;function Ha(){return $r||($r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return f}});const n=Ye(),s=process.env.__NEXT_ROUTER_BASEPATH||"";function f(c,a,d,i){if(process.env.__NEXT_I18N_SUPPORT){const l=za().normalizeLocalePath,p=Ba().detectDomainLocale,_=a||l(c,d).detectedLocale,u=p(i,void 0,_);if(u){const g=`http${u.http?"":"s"}://`,y=_===u.defaultLocale?"":`/${_}`;return`${g}${u.domain}${(0,n.normalizePathTrailingSlash)(`${s}${y}${c}`)}`}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Xe,Xe.exports)),Xe.exports}var We={exports:{}},Yr;function Wa(){return Yr||(Yr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return c}});const n=cn(),s=Ye(),f=process.env.__NEXT_ROUTER_BASEPATH||"";function c(a,d){return(0,s.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!d?a:(0,n.addPathPrefix)(a,f))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(We,We.exports)),We.exports}var Ve={exports:{}},Kr;function Va(){return Kr||(Kr=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return s}});const n=H;function s(c,a){const d=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(l=>{if(l===null){const p=d.current;p&&(d.current=null,p());const _=i.current;_&&(i.current=null,_())}else c&&(d.current=f(c,l)),a&&(i.current=f(a,l))},[c,a])}function f(c,a){if(typeof c=="function"){const d=c(a);return typeof d=="function"?d:()=>c(null)}else return c.current=a,()=>{c.current=null}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ve,Ve.exports)),Ve.exports}var Dt={},Zr;function Ga(){return Zr||(Zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=n=>{};if(process.env.NODE_ENV!=="production"){const n=new Set;t=s=>{n.has(s)||console.error(s),n.add(s)}}}(Dt)),Dt}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(N,A){for(var S in A)Object.defineProperty(N,S,{enumerable:!0,get:A[S]})}n(t,{default:function(){return k},useLinkStatus:function(){return L}});const s=zt,f=r,c=s._(H),a=Ca(),d=an(),i=tn(),l=$e(),p=Ia(),_=Da(),u=qa(),g=Ha(),y=Wa(),h=Va(),m=Ga(),v=new Set;function E(N,A,S,C){if(!(typeof window>"u")&&(0,d.isLocalURL)(A)){if(!C.bypassPrefetchedCheck){const F=typeof C.locale<"u"?C.locale:"locale"in N?N.locale:void 0,M=A+"%"+S+"%"+F;if(v.has(M))return;v.add(M)}N.prefetch(A,S,C).catch(F=>{if(process.env.NODE_ENV!=="production")throw F})}}function w(N){const S=N.currentTarget.getAttribute("target");return S&&S!=="_self"||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey||N.nativeEvent&&N.nativeEvent.which===2}function x(N,A,S,C,F,M,$,J,K){const{nodeName:X}=N.currentTarget;if(X.toUpperCase()==="A"&&w(N)||N.currentTarget.hasAttribute("download"))return;if(!(0,d.isLocalURL)(S)){F&&(N.preventDefault(),location.replace(S));return}N.preventDefault(),(()=>{if(K){let se=!1;if(K({preventDefault:()=>{se=!0}}),se)return}const ee=$??!0;"beforePopState"in A?A[F?"replace":"push"](S,C,{shallow:M,locale:J,scroll:ee}):A[F?"replace":"push"](C||S,{scroll:ee})})()}function b(N){return typeof N=="string"?N:(0,i.formatUrl)(N)}const j=c.default.forwardRef(function(A,S){let C;const{href:F,as:M,children:$,prefetch:J=null,passHref:K,replace:X,shallow:ae,scroll:ce,locale:ee,onClick:se,onNavigate:oe,onMouseEnter:Z,onTouchStart:ie,legacyBehavior:te=!1,...ge}=A;C=$,te&&(typeof C=="string"||typeof C=="number")&&(C=(0,f.jsx)("a",{children:C}));const U=c.default.useContext(_.RouterContext),ve=J!==!1;if(process.env.NODE_ENV!=="production"){let G=function(q){return Object.defineProperty(new Error(`Failed prop type: The prop \`${q.key}\` expects a ${q.expected} in \`<Link>\`, but got \`${q.actual}\` instead.`+(typeof window<"u"?`
31
- Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E319",enumerable:!1,configurable:!0})};Object.keys({href:!0}).forEach(q=>{if(q==="href"&&(A[q]==null||typeof A[q]!="string"&&typeof A[q]!="object"))throw G({key:q,expected:"`string` or `object`",actual:A[q]===null?"null":typeof A[q]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0,onNavigate:!0}).forEach(q=>{const de=typeof A[q];if(q==="as"){if(A[q]&&de!=="string"&&de!=="object")throw G({key:q,expected:"`string` or `object`",actual:de})}else if(q==="locale"){if(A[q]&&de!=="string")throw G({key:q,expected:"`string`",actual:de})}else if(q==="onClick"||q==="onMouseEnter"||q==="onTouchStart"||q==="onNavigate"){if(A[q]&&de!=="function")throw G({key:q,expected:"`function`",actual:de})}else if(q==="replace"||q==="scroll"||q==="shallow"||q==="passHref"||q==="legacyBehavior"){if(A[q]!=null&&de!=="boolean")throw G({key:q,expected:"`boolean`",actual:de})}else if(q==="prefetch"&&A[q]!=null&&de!=="boolean"&&A[q]!=="auto")throw G({key:q,expected:'`boolean | "auto"`',actual:de})})}const{href:pe,as:le}=c.default.useMemo(()=>{if(!U){const ye=b(F);return{href:ye,as:M?b(M):ye}}const[G,me]=(0,a.resolveHref)(U,F,!0);return{href:G,as:M?(0,a.resolveHref)(U,M):me||G}},[U,F,M]),Pe=c.default.useRef(pe),we=c.default.useRef(le);let Q;if(te)if(process.env.NODE_ENV==="development"){se&&console.warn(`"onClick" was passed to <Link> with \`href\` of \`${F}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`),Z&&console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${F}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);try{Q=c.default.Children.only(C)}catch{throw C?Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${F}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children`+(typeof window<"u"?`
32
- Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E266",enumerable:!1,configurable:!0}):Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${F}\` but one child is required https://nextjs.org/docs/messages/link-no-children`),"__NEXT_ERROR_CODE",{value:"E320",enumerable:!1,configurable:!0})}}else Q=c.default.Children.only(C);else if(process.env.NODE_ENV==="development"&&(C==null?void 0:C.type)==="a")throw Object.defineProperty(new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
33
- Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const _e=te?Q&&typeof Q=="object"&&Q.ref:S,[Ee,Re,xe]=(0,u.useIntersection)({rootMargin:"200px"}),ke=c.default.useCallback(G=>{(we.current!==le||Pe.current!==pe)&&(xe(),we.current=le,Pe.current=pe),Ee(G)},[le,pe,xe,Ee]),Ce=(0,h.useMergedRef)(ke,_e);c.default.useEffect(()=>{process.env.NODE_ENV==="production"&&U&&(!Re||!ve||E(U,pe,le,{locale:ee}))},[le,pe,Re,ee,ve,U==null?void 0:U.locale,U]);const W={ref:Ce,onClick(G){if(process.env.NODE_ENV!=="production"&&!G)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});!te&&typeof se=="function"&&se(G),te&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(G),U&&(G.defaultPrevented||x(G,U,pe,le,X,ae,ce,ee,oe))},onMouseEnter(G){!te&&typeof Z=="function"&&Z(G),te&&Q.props&&typeof Q.props.onMouseEnter=="function"&&Q.props.onMouseEnter(G),U&&E(U,pe,le,{locale:ee,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(me){!te&&typeof ie=="function"&&ie(me),te&&Q.props&&typeof Q.props.onTouchStart=="function"&&Q.props.onTouchStart(me),U&&E(U,pe,le,{locale:ee,priority:!0,bypassPrefetchedCheck:!0})}};if((0,l.isAbsoluteUrl)(le))W.href=le;else if(!te||K||Q.type==="a"&&!("href"in Q.props)){const G=typeof ee<"u"?ee:U==null?void 0:U.locale,me=(U==null?void 0:U.isLocaleDomain)&&(0,g.getDomainLocale)(le,G,U==null?void 0:U.locales,U==null?void 0:U.domainLocales);W.href=me||(0,y.addBasePath)((0,p.addLocale)(le,G,U==null?void 0:U.defaultLocale))}return te?(process.env.NODE_ENV==="development"&&(0,m.errorOnce)(`\`legacyBehavior\` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:
30
+ <%s key={someKey} {...props} />`,xn,gt,pu,gt),Pa[gt+xn]=!0}}return x===n?lu(ve):su(ve),ve}}function uu(x,I,W){return Sa(x,I,W,!0)}function cu(x,I,W){return Sa(x,I,W,!1)}var du=cu,fu=uu;Yt.Fragment=n,Yt.jsx=du,Yt.jsxs=fu}()),Yt}process.env.NODE_ENV==="production"?vo.exports=gu():vo.exports=vu();var y=vo.exports;const bu=typeof document<"u"?f.useLayoutEffect:()=>{},ft=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},yt=e=>e&&"window"in e&&e.window===e?e:ft(e).defaultView||window;function yu(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Eu(e){return yu(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let xu=!1;function ko(){return xu}function vs(e,t){if(!ko())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:Eu(r)?r=r.host:r=r.parentNode}return!1}const bo=(e=document)=>{var t;if(!ko())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 bs(e){return ko()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function wu(e){if(_u())e.focus({preventScroll:!0});else{let t=Ru(e);e.focus(),Pu(t)}}let gr=null;function _u(){if(gr==null){gr=!1;try{document.createElement("div").focus({get preventScroll(){return gr=!0,!0}})}catch{}}return gr}function Ru(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 Pu(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function zr(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 Io(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 rt(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const tr=rt(function(){return Io(/^Mac/i)}),Su=rt(function(){return Io(/^iPhone/i)}),ys=rt(function(){return Io(/^iPad/i)||tr()&&navigator.maxTouchPoints>1}),Tu=rt(function(){return Su()||ys()});rt(function(){return tr()||Tu()});const Ou=rt(function(){return zr(/AppleWebKit/i)&&!Nu()}),Nu=rt(function(){return zr(/Chrome/i)}),Cu=rt(function(){return zr(/Android/i)}),Au=rt(function(){return zr(/Firefox/i)});function rr(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=t;Au()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(tr()?a=!0:i=!0);let c=Ou()&&tr()&&!ys()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});rr.isOpening=r,wu(e),e.dispatchEvent(c),rr.isOpening=!1}rr.isOpening=!1;function Es(){let e=f.useRef(new Map),t=f.useCallback((o,a,i,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:a,eventTarget:o,fn:l,options:s}),o.addEventListener(a,l,s)},[]),r=f.useCallback((o,a,i,s)=>{var l;let c=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(a,c,s),e.current.delete(i)},[]),n=f.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ju(e){return e.pointerType===""&&e.isTrusted?!0:Cu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function xs(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ku(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ws(e){let t=f.useRef({isFocused:!1,observer:null});return bu(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),f.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=a=>{if(t.current.isFocused=!1,n.disabled){let i=xs(a);e==null||e(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let i=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Iu=!1,lr=null,yo=new Set,Zt=new Map,xt=!1,Eo=!1;const $u={Tab:!0,Escape:!0};function $o(e,t){for(let r of yo)r(e,t)}function Mu(e){return!(e.metaKey||!tr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Lr(e){xt=!0,!rr.isOpening&&Mu(e)&&(lr="keyboard",$o("keyboard",e))}function He(e){lr="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(xt=!0,$o("pointer",e))}function _s(e){!rr.isOpening&&ju(e)&&(xt=!0,lr="virtual")}function Rs(e){e.target===window||e.target===document||Iu||!e.isTrusted||(!xt&&!Eo&&(lr="virtual",$o("virtual",e)),xt=!1,Eo=!1)}function Ps(){xt=!1,Eo=!0}function xo(e){if(typeof window>"u"||typeof document>"u"||Zt.get(yt(e)))return;const t=yt(e),r=ft(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xt=!0,n.apply(this,arguments)},r.addEventListener("keydown",Lr,!0),r.addEventListener("keyup",Lr,!0),r.addEventListener("click",_s,!0),t.addEventListener("focus",Rs,!0),t.addEventListener("blur",Ps,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",He,!0),r.addEventListener("pointermove",He,!0),r.addEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",He,!0),r.addEventListener("mousemove",He,!0),r.addEventListener("mouseup",He,!0)),t.addEventListener("beforeunload",()=>{Ss(e)},{once:!0}),Zt.set(t,{focus:n})}const Ss=(e,t)=>{const r=yt(e),n=ft(e);t&&n.removeEventListener("DOMContentLoaded",t),Zt.has(r)&&(r.HTMLElement.prototype.focus=Zt.get(r).focus,n.removeEventListener("keydown",Lr,!0),n.removeEventListener("keyup",Lr,!0),n.removeEventListener("click",_s,!0),r.removeEventListener("focus",Rs,!0),r.removeEventListener("blur",Ps,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",He,!0),n.removeEventListener("pointermove",He,!0),n.removeEventListener("pointerup",He,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",He,!0),n.removeEventListener("mousemove",He,!0),n.removeEventListener("mouseup",He,!0)),Zt.delete(r))};function Lu(e){const t=ft(e);let r;return t.readyState!=="loading"?xo(e):(r=()=>{xo(e)},t.addEventListener("DOMContentLoaded",r)),()=>Ss(e,r)}typeof document<"u"&&Lu();function Ts(){return lr!=="pointer"}const Du=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fu(e,t,r){let n=ft(r==null?void 0:r.target);const o=typeof window<"u"?yt(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?yt(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?yt(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?yt(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!Du.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof s&&!$u[r.key])}function Hu(e,t,r){xo(),f.useEffect(()=>{let n=(o,a)=>{Fu(!!(r!=null&&r.isTextInput),o,a)&&e(Ts())};return yo.add(n),()=>{yo.delete(n)}},t)}function Bu(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const a=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),i=ws(a),s=f.useCallback(l=>{const c=ft(l.target),u=c?bo(c):bo();l.target===l.currentTarget&&u===bs(l.nativeEvent)&&(r&&r(l),o&&o(!0),i(l))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?a:void 0}}}function Wu(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=f.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=Es(),l=f.useCallback(h=>{h.currentTarget.contains(h.target)&&a.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(a.current.isFocusWithin=!1,s(),r&&r(h),o&&o(!1))},[r,o,a,s]),c=ws(l),u=f.useCallback(h=>{if(!h.currentTarget.contains(h.target))return;const d=ft(h.target),p=bo(d);if(!a.current.isFocusWithin&&p===bs(h.nativeEvent)){n&&n(h),o&&o(!0),a.current.isFocusWithin=!0,c(h);let g=h.currentTarget;i(d,"focus",m=>{if(a.current.isFocusWithin&&!vs(g,m.target)){let v=new d.defaultView.FocusEvent("blur",{relatedTarget:m.target});ku(v,g);let b=xs(v);l(b)}},{capture:!0})}},[n,o,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Dr=!1,vr=0;function wo(){Dr=!0,setTimeout(()=>{Dr=!1},50)}function Na(e){e.pointerType==="touch"&&wo()}function Uu(){if(!(typeof document>"u"))return vr===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Na):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",wo)),vr++,()=>{vr--,!(vr>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Na):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",wo))}}function Mo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=f.useState(!1),s=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(Uu,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Es(),{hoverProps:u,triggerHoverEnd:h}=f.useMemo(()=>{let d=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let b=m.currentTarget;s.target=b,l(ft(m.target),"pointerover",E=>{s.isHovered&&s.target&&!vs(s.target,E.target)&&p(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),r&&r(!0),i(!0)},p=(m,v)=>{let b=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,c(),n&&n({type:"hoverend",target:b,pointerType:v}),r&&r(!1),i(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{Dr&&m.pointerType==="mouse"||d(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!s.ignoreEmulatedMouseEvents&&!Dr&&d(m,"mouse"),s.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,s,l,c]);return f.useEffect(()=>{o&&h({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:u,isHovered:a}}function Lo(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Ts()}),[a,i]=f.useState(!1),[s,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,i(p),c()},[c]);Hu(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:h}=Bu({isDisabled:n,onFocusChange:u}),{focusWithinProps:d}=Wu({isDisabled:!n,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:n?d:h}}var Vu=Object.defineProperty,qu=(e,t,r)=>t in e?Vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t,r)=>(qu(e,typeof t!="symbol"?t+"":t,r),r);let Gu=class{constructor(){wn(this,"current",this.detect()),wn(this,"handoffState","pending"),wn(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ge=new Gu;function nt(e){var t;return Ge.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function lt(e){var t,r;return Ge.isServer?null:e==null?document:(r=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?r:document}function ut(e){var t,r;return(r=(t=lt(e))==null?void 0:t.activeElement)!=null?r:null}function Os(e){return ut(e)===e}function Xr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ke(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Xr(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=ke();return r(n),this.add(()=>n.dispose())},add(r){return e.includes(r)||e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function Tt(){let[e]=f.useState(ke);return f.useEffect(()=>()=>e.dispose(),[e]),e}let ce=(e,t)=>{Ge.isServer?f.useEffect(e,t):f.useLayoutEffect(e,t)};function tt(e){let t=f.useRef(e);return ce(()=>{t.current=e},[e]),t}let H=function(e){let t=tt(e);return f.useCallback((...r)=>t.current(...r),[t])};function zu(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Xu(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Do({disabled:e=!1}={}){let t=f.useRef(null),[r,n]=f.useState(!1),o=Tt(),a=H(()=>{t.current=null,n(!1),o.dispose()}),i=H(s=>{if(o.dispose(),t.current===null){t.current=s.currentTarget,n(!0);{let l=nt(s.currentTarget);o.addEventListener(l,"pointerup",a,!1),o.addEventListener(l,"pointermove",c=>{if(t.current){let u=zu(c);n(Xu(u,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",a,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}function _e(e){return f.useMemo(()=>e,Object.values(e))}let Yu=f.createContext(void 0);function Ns(){return f.useContext(Yu)}function _o(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ee(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ee),n}var Be=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Be||{}),it=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(it||{});function se(){let e=Qu();return f.useCallback(t=>Ku({mergeRefs:e,...t}),[e])}function Ku({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:i,mergeRefs:s}){s=s??Zu;let l=Cs(t,e);if(a)return br(l,r,n,i,s);let c=o??0;if(c&2){let{static:u=!1,...h}=l;if(u)return br(h,r,n,i,s)}if(c&1){let{unmount:u=!0,...h}=l;return Ee(u?0:1,{0(){return null},1(){return br({...h,hidden:!0,style:{display:"none"}},r,n,i,s)}})}return br(l,r,n,i,s)}function br(e,t={},r,n,o){let{as:a=r,children:i,refName:s="ref",...l}=_n(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let h={};if(t){let d=!1,p=[];for(let[g,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(g.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(d){h["data-headlessui-state"]=p.join(" ");for(let g of p)h[`data-${g}`]=""}}if($t(a)&&(Object.keys(vt(l)).length>0||Object.keys(vt(h)).length>0))if(!f.isValidElement(u)||Array.isArray(u)&&u.length>1||ec(u)){if(Object.keys(vt(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(vt(l)).concat(Object.keys(vt(h))).map(d=>` - ${d}`).join(`
31
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
32
+ `)].join(`
33
+ `))}else{let d=u.props,p=d==null?void 0:d.className,g=typeof p=="function"?(...b)=>_o(p(...b),l.className):_o(p,l.className),m=g?{className:g}:{},v=Cs(u.props,vt(_n(l,["ref"])));for(let b in h)b in v&&delete h[b];return f.cloneElement(u,Object.assign({},v,h,c,{ref:o(Ju(u),c.ref)},m))}return f.createElement(a,Object.assign({},_n(l,["ref"]),!$t(a)&&c,!$t(a)&&h),u)}function Qu(){let e=f.useRef([]),t=f.useCallback(r=>{for(let n of e.current)n!=null&&(typeof n=="function"?n(r):n.current=r)},[]);return(...r)=>{if(!r.every(n=>n==null))return e.current=r,t}}function Zu(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Cs(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let n in r)Object.assign(t,{[n](o,...a){let i=r[n];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return t}function wt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];for(let n in r)Object.assign(t,{[n](...o){let a=r[n];for(let i of a)i==null||i(...o)}});return t}function ne(e){var t;return Object.assign(f.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vt(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function _n(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Ju(e){return f.version.split(".")[0]>="19"?e.props.ref:e.ref}function $t(e){return e===f.Fragment||e===Symbol.for("react.fragment")}function ec(e){return $t(e.type)}let tc="span";var _t=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_t||{});function rc(e,t){var r;let{features:n=1,...o}=e,a={ref:t,"aria-hidden":(n&2)===2?!0:(r=o["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return se()({ourProps:a,theirProps:o,slot:{},defaultTag:tc,name:"Hidden"})}let Lt=ne(rc),nc=f.createContext(void 0);function oc(){return f.useContext(nc)}function As(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function et(e){return As(e)&&"tagName"in e}function Oe(e){return et(e)&&"accessKey"in e}function Ie(e){return et(e)&&"tabIndex"in e}function ac(e){return et(e)&&"style"in e}function ic(e){return Oe(e)&&e.nodeName==="IFRAME"}function js(e){return Oe(e)&&e.nodeName==="INPUT"}function Ca(e){return Oe(e)&&e.nodeName==="LABEL"}function sc(e){return Oe(e)&&e.nodeName==="FIELDSET"}function ks(e){return Oe(e)&&e.nodeName==="LEGEND"}function lc(e){return et(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function nr(e){let t=e.parentElement,r=null;for(;t&&!sc(t);)ks(t)&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&uc(r)?!1:n}function uc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(ks(t))return!1;t=t.previousElementSibling}return!0}let Is=Symbol();function Fo(e,t=!0){return Object.assign(e,{[Is]:t})}function me(...e){let t=f.useRef(e);f.useEffect(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Is]))?void 0:r}let Ho=f.createContext(null);Ho.displayName="DescriptionContext";function $s(){let e=f.useContext(Ho);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,$s),t}return e}function Ms(){let[e,t]=f.useState([]);return[e.length>0?e.join(" "):void 0,f.useMemo(()=>function(r){let n=H(a=>(t(i=>[...i,a]),()=>t(i=>{let s=i.slice(),l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}))),o=f.useMemo(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return f.createElement(Ho.Provider,{value:o},r.children)},[t])]}let cc="p";function dc(e,t){let r=f.useId(),n=Ns(),{id:o=`headlessui-description-${r}`,...a}=e,i=$s(),s=me(t);ce(()=>i.register(o),[o,i.register]);let l=_e({...i.slot,disabled:n||!1}),c={ref:s,...i.props,id:o};return se()({ourProps:c,theirProps:a,slot:l,defaultTag:cc,name:i.name||"Description"})}let fc=ne(dc),pc=Object.assign(fc,{});var ae=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ae||{});let Yr=f.createContext(null);Yr.displayName="LabelContext";function Bo(){let e=f.useContext(Yr);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Bo),t}return e}function mc(e){var t,r,n;let o=(r=(t=f.useContext(Yr))==null?void 0:t.value)!=null?r:void 0;return((n=void 0)!=null?n:0)>0?[o,...e].filter(Boolean).join(" "):o}function Ls({inherit:e=!1}={}){let t=mc(),[r,n]=f.useState([]),o=e?[t,...r].filter(Boolean):r;return[o.length>0?o.join(" "):void 0,f.useMemo(()=>function(a){let i=H(l=>(n(c=>[...c,l]),()=>n(c=>{let u=c.slice(),h=u.indexOf(l);return h!==-1&&u.splice(h,1),u}))),s=f.useMemo(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return f.createElement(Yr.Provider,{value:s},a.children)},[n])]}let hc="label";function gc(e,t){var r;let n=f.useId(),o=Bo(),a=oc(),i=Ns(),{id:s=`headlessui-label-${n}`,htmlFor:l=a??((r=o.props)==null?void 0:r.htmlFor),passive:c=!1,...u}=e,h=me(t);ce(()=>o.register(s),[s,o.register]);let d=H(m=>{let v=m.currentTarget;if(!(m.target!==m.currentTarget&&lc(m.target))&&(Ca(v)&&m.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(m),Ca(v))){let b=document.getElementById(v.htmlFor);if(b){let E=b.getAttribute("disabled");if(E==="true"||E==="")return;let w=b.getAttribute("aria-disabled");if(w==="true"||w==="")return;(js(b)&&(b.type==="file"||b.type==="radio"||b.type==="checkbox")||b.role==="radio"||b.role==="checkbox"||b.role==="switch")&&b.click(),b.focus({preventScroll:!0})}}}),p=_e({...o.slot,disabled:i||!1}),g={ref:h,...o.props,id:s,htmlFor:l,onClick:d};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in u&&delete u.onClick),se()({ourProps:g,theirProps:u,slot:p,defaultTag:l?hc:"div",name:o.name||"Label"})}let vc=ne(gc);Object.assign(vc,{});let bc=f.createContext(()=>{});function Kr({value:e,children:t}){return f.createElement(bc.Provider,{value:e},t)}function Aa(e){if(e===null)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function Ds(e,t,r=!1){let[n,o]=f.useState(()=>Aa(t));return ce(()=>{if(!t||!e)return;let a=ke();return a.requestAnimationFrame(function i(){a.requestAnimationFrame(i),o(s=>{let l=Aa(t);return l.width===s.width&&l.height===s.height?s:l})}),()=>{a.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}var Fs=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Fs||{});function yc(e){let t=f.useRef(null),r=H(o=>{t.current=o.pointerType,!nr(o.currentTarget)&&o.pointerType==="mouse"&&o.button===Fs.Left&&(o.preventDefault(),e(o))}),n=H(o=>{t.current!=="mouse"&&(nr(o.currentTarget)||e(o))});return{onPointerDown:r,onClick:n}}let Hs=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};var Ec=Object.defineProperty,xc=(e,t,r)=>t in e?Ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wc=(e,t,r)=>(xc(e,t+"",r),r),Bs=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Fe=(e,t,r)=>(Bs(e,t,"read from private field"),r?r.call(e):t.get(e)),Rn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ja=(e,t,r,n)=>(Bs(e,t,"write to private field"),t.set(e,r),r),qe,Kt,Qt;let Wo=class{constructor(t){Rn(this,qe,{}),Rn(this,Kt,new Hs(()=>new Set)),Rn(this,Qt,new Set),wc(this,"disposables",ke()),ja(this,qe,t),Ge.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Fe(this,qe)}subscribe(t,r){if(Ge.isServer)return()=>{};let n={selector:t,callback:r,current:t(Fe(this,qe))};return Fe(this,Qt).add(n),this.disposables.add(()=>{Fe(this,Qt).delete(n)})}on(t,r){return Ge.isServer?()=>{}:(Fe(this,Kt).get(t).add(r),this.disposables.add(()=>{Fe(this,Kt).get(t).delete(r)}))}send(t){let r=this.reduce(Fe(this,qe),t);if(r!==Fe(this,qe)){ja(this,qe,r);for(let n of Fe(this,Qt)){let o=n.selector(Fe(this,qe));Ws(n.current,o)||(n.current=o,n.callback(o))}for(let n of Fe(this,Kt).get(t.type))n(Fe(this,qe),t)}}};qe=new WeakMap,Kt=new WeakMap,Qt=new WeakMap;function Ws(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Pn(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Pn(e.entries(),t.entries()):ka(e)&&ka(t)?Pn(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Pn(e,t){do{let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}while(!0)}function ka(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Ia(e){let[t,r]=e(),n=ke();return(...o)=>{t(...o),n.dispose(),n.microTask(r)}}var _c=Object.defineProperty,Rc=(e,t,r)=>t in e?_c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$a=(e,t,r)=>(Rc(e,typeof t!="symbol"?t+"":t,r),r),Us=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Us||{});let Pc={0(e,t){let r=t.id,n=e.stack,o=e.stack.indexOf(r);if(o!==-1){let a=e.stack.slice();return a.splice(o,1),a.push(r),n=a,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(n===-1)return e;let o=e.stack.slice();return o.splice(n,1),{...e,stack:o}}},Sc=class Vs extends Wo{constructor(){super(...arguments),$a(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),$a(this,"selectors",{isTop:(t,r)=>t.stack[t.stack.length-1]===r,inStack:(t,r)=>t.stack.includes(r)})}static new(){return new Vs({stack:[]})}reduce(t,r){return Ee(r.type,Pc,t,r)}};const ur=new Hs(()=>Sc.new());var Ro={exports:{}},Sn={};/**
34
+ * @license React
35
+ * use-sync-external-store-with-selector.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Ma;function Tc(){if(Ma)return Sn;Ma=1;var e=f;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return Sn.useSyncExternalStoreWithSelector=function(l,c,u,h,d){var p=o(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=i(function(){function v(R){if(!b){if(b=!0,E=R,R=h(R),d!==void 0&&g.hasValue){var T=g.value;if(d(T,R))return w=T}return w=R}if(T=w,r(E,R))return T;var O=h(R);return d!==void 0&&d(T,O)?(E=R,T):(E=R,w=O)}var b=!1,E,w,_=u===void 0?null:u;return[function(){return v(c())},_===null?void 0:function(){return v(_())}]},[c,u,h,d]);var m=n(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},Sn}var Tn={};/**
42
+ * @license React
43
+ * use-sync-external-store-with-selector.development.js
44
+ *
45
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */var La;function Oc(){return La||(La=1,process.env.NODE_ENV!=="production"&&function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=f,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,a=t.useEffect,i=t.useMemo,s=t.useDebugValue;Tn.useSyncExternalStoreWithSelector=function(l,c,u,h,d){var p=o(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=i(function(){function v(R){if(!b){if(b=!0,E=R,R=h(R),d!==void 0&&g.hasValue){var T=g.value;if(d(T,R))return w=T}return w=R}if(T=w,r(E,R))return T;var O=h(R);return d!==void 0&&d(T,O)?(E=R,T):(E=R,w=O)}var b=!1,E,w,_=u===void 0?null:u;return[function(){return v(c())},_===null?void 0:function(){return v(_())}]},[c,u,h,d]);var m=n(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Tn}process.env.NODE_ENV==="production"?Ro.exports=Tc():Ro.exports=Oc();var Nc=Ro.exports;function we(e,t,r=Ws){return Nc.useSyncExternalStoreWithSelector(H(n=>e.subscribe(Cc,n)),H(()=>e.state),H(()=>e.state),H(t),r)}function Cc(e){return e}function cr(e,t){let r=f.useId(),n=ur.get(t),[o,a]=we(n,f.useCallback(i=>[n.selectors.isTop(i,r),n.selectors.inStack(i,r)],[n,r]));return ce(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),e?a?o:!0:!1}let Po=new Map,Jt=new Map;function Da(e){var t;let r=(t=Jt.get(e))!=null?t:0;return Jt.set(e,r+1),r!==0?()=>Fa(e):(Po.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Fa(e))}function Fa(e){var t;let r=(t=Jt.get(e))!=null?t:1;if(r===1?Jt.delete(e):Jt.set(e,r-1),r!==1)return;let n=Po.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,Po.delete(e))}function qs(e,{allowed:t,disallowed:r}={}){let n=cr(e,"inert-others");ce(()=>{var o,a;if(!n)return;let i=ke();for(let l of(o=r==null?void 0:r())!=null?o:[])l&&i.add(Da(l));let s=(a=t==null?void 0:t())!=null?a:[];for(let l of s){if(!l)continue;let c=nt(l);if(!c)continue;let u=l.parentElement;for(;u&&u!==c.body;){for(let h of u.children)s.some(d=>h.contains(d))||i.add(Da(h));u=u.parentElement}}return i.dispose},[n,t,r])}function Uo(e,t,r){let n=tt(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&r()});f.useEffect(()=>{if(!e)return;let o=t===null?null:Oe(t)?t:t.current;if(!o)return;let a=ke();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>n.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[t,n,e])}let Fr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Ac=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var xe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(xe||{}),Dt=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Dt||{}),jc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(jc||{});function dr(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Fr)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function kc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ac)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Qr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Qr||{});function Zr(e,t=0){var r;return e===((r=nt(e))==null?void 0:r.body)?!1:Ee(t,{0(){return e.matches(Fr)},1(){let n=e;for(;n!==null;){if(n.matches(Fr))return!0;n=n.parentElement}return!1}})}function Gs(e){ke().nextFrame(()=>{let t=ut(e);t&&Ie(t)&&!Zr(t,0)&&ze(e)})}var Ic=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ic||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ze(e){e==null||e.focus({preventScroll:!0})}let $c=["textarea","input"].join(",");function Mc(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,$c))!=null?r:!1}function zs(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),a=t(n);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Lc(e,t,r=e===null?document.body:lt(e)){return $e(dr(r),t,{relativeTo:e})}function $e(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}={}){let a=Array.isArray(e)?e.length>0?lt(e[0]):document:lt(e),i=Array.isArray(e)?r?zs(e):e:t&64?kc(e):dr(e);o.length>0&&i.length>1&&(i=i.filter(p=>!o.some(g=>g!=null&&"current"in g?(g==null?void 0:g.current)===p:g===p))),n=n??(a==null?void 0:a.activeElement);let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(n))-1;if(t&4)return Math.max(0,i.indexOf(n))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},u=0,h=i.length,d;do{if(u>=h||u+h<=0)return 0;let p=l+u;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}d=i[p],d==null||d.focus(c),u+=s}while(d!==ut(d));return t&6&&Mc(d)&&d.select(),2}function Xs(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Dc(){return/Android/gi.test(window.navigator.userAgent)}function Ha(){return Xs()||Dc()}function It(e,t,r,n){let o=tt(r);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return document.addEventListener(t,a,n),()=>document.removeEventListener(t,a,n)},[e,t,n])}function Ys(e,t,r,n){let o=tt(r);f.useEffect(()=>{if(!e)return;function a(i){o.current(i)}return window.addEventListener(t,a,n),()=>window.removeEventListener(t,a,n)},[e,t,n])}const Ba=30;function Vo(e,t,r){let n=tt(r),o=f.useCallback(function(s,l){if(s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function h(d){return typeof d=="function"?h(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let h of u)if(h!==null&&(h.contains(c)||s.composed&&s.composedPath().includes(h)))return;return!Zr(c,Qr.Loose)&&c.tabIndex!==-1&&s.preventDefault(),n.current(s,c)},[n,t]),a=f.useRef(null);It(e,"pointerdown",s=>{var l,c;Ha()||(a.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),It(e,"pointerup",s=>{if(Ha()||!a.current)return;let l=a.current;return a.current=null,o(s,()=>l)},!0);let i=f.useRef({x:0,y:0});It(e,"touchstart",s=>{i.current.x=s.touches[0].clientX,i.current.y=s.touches[0].clientY},!0),It(e,"touchend",s=>{let l={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(l.x-i.current.x)>=Ba||Math.abs(l.y-i.current.y)>=Ba))return o(s,()=>Ie(s.target)?s.target:null)},!0),Ys(e,"blur",s=>o(s,()=>ic(window.document.activeElement)?window.document.activeElement:null),!0)}function Rt(...e){return f.useMemo(()=>nt(...e),[...e])}function Fc(...e){return f.useMemo(()=>lt(...e),[...e])}var Hc=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Hc||{});const yr={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},Bc=200,Wa=5;function Wc(e,{trigger:t,action:r,close:n,select:o}){let a=f.useRef(null),i=f.useRef(null),s=f.useRef(null);It(e&&t!==null,"pointerdown",l=>{As(l==null?void 0:l.target)&&t!=null&&t.contains(l.target)&&(i.current=l.x,s.current=l.y,a.current=l.timeStamp)}),It(e&&t!==null,"pointerup",l=>{var c,u;let h=a.current;if(h===null||(a.current=null,!Ie(l.target))||Math.abs(l.x-((c=i.current)!=null?c:l.x))<Wa&&Math.abs(l.y-((u=s.current)!=null?u:l.y))<Wa)return;let d=r(l);switch(d.kind){case 0:return;case 1:{l.timeStamp-h>Bc&&(o(d.target),n());break}case 2:{n();break}}},{capture:!0})}function qo(e,t,r,n){let o=tt(r);f.useEffect(()=>{e=e??window;function a(i){o.current(i)}return e.addEventListener(t,a,n),()=>e.removeEventListener(t,a,n)},[e,t,n])}function Go(e,t){return f.useMemo(()=>{var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Uc(e){return f.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function Vc(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(o){return n.add(o),()=>n.delete(o)},dispatch(o,...a){let i=t[o].call(r,...a);i&&(r=i,n.forEach(s=>s()))}}}function qc(){let e;return{before({doc:t}){var r;let n=t.documentElement,o=(r=t.defaultView)!=null?r:window;e=Math.max(0,o.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),a=Math.max(0,e-o);r.style(n,"paddingRight",`${a}px`)}}}function Gc(){return Xs()?{before({doc:e,d:t,meta:r}){function n(o){for(let a of r().containers)for(let i of a())if(i.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=ke();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",s=>{if(Ie(s.target))try{let l=s.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);Ie(u)&&!n(u)&&(i=u)}catch{}},!0),t.group(s=>{t.addEventListener(e,"touchstart",l=>{if(s.dispose(),Ie(l.target)&&ac(l.target))if(n(l.target)){let c=l.target;for(;c.parentElement&&n(c.parentElement);)c=c.parentElement;s.style(c,"overscrollBehavior","contain")}else s.style(l.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",s=>{if(Ie(s.target)){if(js(s.target))return;if(n(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;a!==l&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function zc(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ua(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let Et=Vc(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:ke(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=Ua(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=Ua(r.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},r=[Gc(),qc(),zc()];r.forEach(({before:n})=>n==null?void 0:n(t)),r.forEach(({after:n})=>n==null?void 0:n(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Et.subscribe(()=>{let e=Et.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",o=r.count!==0;(o&&!n||!o&&n)&&Et.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&Et.dispatch("TEARDOWN",r)}});function Xc(e,t,r=()=>({containers:[]})){let n=Uc(Et),o=t?n.get(t):void 0,a=o?o.count>0:!1;return ce(()=>{if(!(!t||!e))return Et.dispatch("PUSH",t,r),()=>Et.dispatch("POP",t,r)},[e,t]),a}function zo(e,t,r=()=>[document.body]){let n=cr(e,"scroll-lock");Xc(n,t,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],r]}})}function Va(e){return[e.screenX,e.screenY]}function Yc(){let e=f.useRef([-1,-1]);return{wasMoved(t){let r=Va(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=Va(t)}}}function Kc(e=0){let[t,r]=f.useState(e),n=f.useCallback(l=>r(l),[]),o=f.useCallback(l=>r(c=>c|l),[]),a=f.useCallback(l=>(t&l)===l,[t]),i=f.useCallback(l=>r(c=>c&~l),[]),s=f.useCallback(l=>r(c=>c^l),[]);return{flags:t,setFlag:n,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:s}}var qa,Ga;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qa=process==null?void 0:process.env)==null?void 0:qa.NODE_ENV)==="test"&&typeof((Ga=Element==null?void 0:Element.prototype)==null?void 0:Ga.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
50
+ `)),[]});var Qc=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Qc||{});function fr(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function pr(e,t,r,n){let[o,a]=f.useState(r),{hasFlag:i,addFlag:s,removeFlag:l}=Kc(e&&o?3:0),c=f.useRef(!1),u=f.useRef(!1),h=Tt();return ce(()=>{var d;if(e){if(r&&a(!0),!t){r&&s(3);return}return(d=n==null?void 0:n.start)==null||d.call(n,r),Zc(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var p;u.current&&td(t)||(c.current=!1,l(7),r||a(!1),(p=n==null?void 0:n.end)==null||p.call(n,r))}})}},[e,r,t,h]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Zc(e,{prepare:t,run:r,done:n,inFlight:o}){let a=ke();return ed(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{r(),a.requestAnimationFrame(()=>{a.add(Jc(e,n))})}),a.dispose}function Jc(e,t){var r,n;let o=ke();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(s=>s instanceof CSSTransition))!=null?n:[];return i.length===0?(t(),o.dispose):(Promise.allSettled(i.map(s=>s.finished)).then(()=>{a||t()}),o.dispose)}function ed(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function td(e){var t,r;return((r=(t=e.getAnimations)==null?void 0:t.call(e))!=null?r:[]).some(n=>n instanceof CSSTransition&&n.playState!=="finished")}function rd(e,{container:t,accept:r,walk:n}){let o=f.useRef(r),a=f.useRef(n);f.useEffect(()=>{o.current=r,a.current=n},[r,n]),ce(()=>{if(!t||!e)return;let i=nt(t);if(!i)return;let s=o.current,l=a.current,c=Object.assign(h=>s(h),{acceptNode:s}),u=i.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,c,!1);for(;u.nextNode();)l(u.currentNode)},[t,e,o,a])}function Xo(e,t){let r=f.useRef([]),n=H(e);f.useEffect(()=>{let o=[...r.current];for(let[a,i]of t.entries())if(r.current[a]!==i){let s=n(t,o);return r.current=t,s}},[n,...t])}function Jr(){return typeof window<"u"}function Ut(e){return Ks(e)?(e.nodeName||"").toLowerCase():"#document"}function Le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ke(e){var t;return(t=(Ks(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ks(e){return Jr()?e instanceof Node||e instanceof Le(e).Node:!1}function Te(e){return Jr()?e instanceof Element||e instanceof Le(e).Element:!1}function Ye(e){return Jr()?e instanceof HTMLElement||e instanceof Le(e).HTMLElement:!1}function za(e){return!Jr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Le(e).ShadowRoot}const nd=new Set(["inline","contents"]);function mr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!nd.has(o)}const od=new Set(["table","td","th"]);function ad(e){return od.has(Ut(e))}const id=[":popover-open",":modal"];function en(e){return id.some(t=>{try{return e.matches(t)}catch{return!1}})}const sd=["transform","translate","scale","rotate","perspective"],ld=["transform","translate","scale","rotate","perspective","filter"],ud=["paint","layout","strict","content"];function Yo(e){const t=Ko(),r=Te(e)?Ve(e):e;return sd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ld.some(n=>(r.willChange||"").includes(n))||ud.some(n=>(r.contain||"").includes(n))}function cd(e){let t=ct(e);for(;Ye(t)&&!Ft(t);){if(Yo(t))return t;if(en(t))return null;t=ct(t)}return null}function Ko(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dd=new Set(["html","body","#document"]);function Ft(e){return dd.has(Ut(e))}function Ve(e){return Le(e).getComputedStyle(e)}function tn(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(Ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||Ke(e);return za(t)?t.host:t}function Qs(e){const t=ct(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&mr(t)?t:Qs(t)}function or(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Qs(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Le(o);if(a){const s=So(i);return t.concat(i,i.visualViewport||[],mr(o)?o:[],s&&r?or(s):[])}return t.concat(o,or(o,[],r))}function So(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fd(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}const Pt=Math.min,Se=Math.max,ar=Math.round,Er=Math.floor,Xe=e=>({x:e,y:e}),pd={left:"right",right:"left",bottom:"top",top:"bottom"},md={start:"end",end:"start"};function Xa(e,t,r){return Se(e,Pt(t,r))}function Vt(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function hr(e){return e.split("-")[1]}function Zs(e){return e==="x"?"y":"x"}function Js(e){return e==="y"?"height":"width"}const hd=new Set(["top","bottom"]);function Je(e){return hd.has(dt(e))?"y":"x"}function el(e){return Zs(Je(e))}function gd(e,t,r){r===void 0&&(r=!1);const n=hr(e),o=el(e),a=Js(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Hr(i)),[i,Hr(i)]}function vd(e){const t=Hr(e);return[To(e),t,To(t)]}function To(e){return e.replace(/start|end/g,t=>md[t])}const Ya=["left","right"],Ka=["right","left"],bd=["top","bottom"],yd=["bottom","top"];function Ed(e,t,r){switch(e){case"top":case"bottom":return r?t?Ka:Ya:t?Ya:Ka;case"left":case"right":return t?bd:yd;default:return[]}}function xd(e,t,r,n){const o=hr(e);let a=Ed(dt(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(To)))),a}function Hr(e){return e.replace(/left|right|bottom|top/g,t=>pd[t])}function wd(e){return{top:0,right:0,bottom:0,left:0,...e}}function _d(e){return typeof e!="number"?wd(e):{top:e,right:e,bottom:e,left:e}}function Br(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Qa(e,t,r){let{reference:n,floating:o}=e;const a=Je(t),i=el(t),s=Js(i),l=dt(t),c=a==="y",u=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-o.width,y:h};break;default:p={x:n.x,y:n.y}}switch(hr(t)){case"start":p[i]-=d*(r&&c?-1:1);break;case"end":p[i]+=d*(r&&c?-1:1);break}return p}const Rd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:h}=Qa(c,n,l),d=n,p={},g=0;for(let m=0;m<s.length;m++){const{name:v,fn:b}=s[m],{x:E,y:w,data:_,reset:R}=await b({x:u,y:h,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=E??u,h=w??h,p={...p,[v]:{...p[v],..._}},R&&g<=50&&(g++,typeof R=="object"&&(R.placement&&(d=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:u,y:h}=Qa(c,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:o,middlewareData:p}};async function rn(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=Vt(t,e),g=_d(p),v=s[d?h==="floating"?"reference":"floating":h],b=Br(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),_=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},R=Br(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:w,strategy:l}):E);return{top:(b.top-R.top+g.top)/_.y,bottom:(R.bottom-b.bottom+g.bottom)/_.y,left:(b.left-R.left+g.left)/_.x,right:(R.right-b.right+g.right)/_.x}}const Pd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...v}=Vt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=dt(o),E=Je(s),w=dt(s)===s,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),R=d||(w||!m?[Hr(s)]:vd(s)),T=g!=="none";!d&&T&&R.push(...xd(s,m,g,_));const O=[s,...R],M=await rn(t,v),k=[];let P=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&k.push(M[b]),h){const A=gd(o,i,_);k.push(M[A[0]],M[A[1]])}if(P=[...P,{placement:o,overflows:k}],!k.every(A=>A<=0)){var N,j;const A=(((N=a.flip)==null?void 0:N.index)||0)+1,D=O[A];if(D&&(!(h==="alignment"?E!==Je(D):!1)||P.every(C=>Je(C.placement)===E?C.overflows[0]>0:!0)))return{data:{index:A,overflows:P},reset:{placement:D}};let U=(j=P.filter(q=>q.overflows[0]<=0).sort((q,C)=>q.overflows[1]-C.overflows[1])[0])==null?void 0:j.placement;if(!U)switch(p){case"bestFit":{var $;const q=($=P.filter(C=>{if(T){const L=Je(C.placement);return L===E||L==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(L=>L>0).reduce((L,z)=>L+z,0)]).sort((C,L)=>C[1]-L[1])[0])==null?void 0:$[0];q&&(U=q);break}case"initialPlacement":U=s;break}if(o!==U)return{reset:{placement:U}}}return{}}}},Sd=new Set(["left","top"]);async function Td(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=dt(r),s=hr(r),l=Je(r)==="y",c=Sd.has(i)?-1:1,u=a&&l?-1:1,h=Vt(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const Od=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await Td(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Nd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:b,y:E}=v;return{x:b,y:E}}},...l}=Vt(e,t),c={x:r,y:n},u=await rn(t,l),h=Je(dt(o)),d=Zs(h);let p=c[d],g=c[h];if(a){const v=d==="y"?"top":"left",b=d==="y"?"bottom":"right",E=p+u[v],w=p-u[b];p=Xa(E,p,w)}if(i){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",E=g+u[v],w=g-u[b];g=Xa(E,g,w)}const m=s.fn({...t,[d]:p,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:a,[h]:i}}}}}},Cd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=Vt(e,t),u=await rn(t,c),h=dt(o),d=hr(o),p=Je(o)==="y",{width:g,height:m}=a.floating;let v,b;h==="top"||h==="bottom"?(v=h,b=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=h,v=d==="end"?"top":"bottom");const E=m-u.top-u.bottom,w=g-u.left-u.right,_=Pt(m-u[v],E),R=Pt(g-u[b],w),T=!t.middlewareData.shift;let O=_,M=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=E),T&&!d){const P=Se(u.left,0),N=Se(u.right,0),j=Se(u.top,0),$=Se(u.bottom,0);p?M=g-2*(P!==0||N!==0?P+N:Se(u.left,u.right)):O=m-2*(j!==0||$!==0?j+$:Se(u.top,u.bottom))}await l({...t,availableWidth:M,availableHeight:O});const k=await i.getDimensions(s.floating);return g!==k.width||m!==k.height?{reset:{rects:!0}}:{}}}};function tl(e){const t=Ve(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ye(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=ar(r)!==a||ar(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Qo(e){return Te(e)?e:e.contextElement}function Mt(e){const t=Qo(e);if(!Ye(t))return Xe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=tl(t);let i=(a?ar(r.width):r.width)/n,s=(a?ar(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Ad=Xe(0);function rl(e){const t=Le(e);return!Ko()||!t.visualViewport?Ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Le(e)?!1:t}function St(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Qo(e);let i=Xe(1);t&&(n?Te(n)&&(i=Mt(n)):i=Mt(e));const s=jd(a,r,n)?rl(a):Xe(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,h=o.height/i.y;if(a){const d=Le(a),p=n&&Te(n)?Le(n):n;let g=d,m=So(g);for(;m&&n&&p!==g;){const v=Mt(m),b=m.getBoundingClientRect(),E=Ve(m),w=b.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,_=b.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,h*=v.y,l+=w,c+=_,g=Le(m),m=So(g)}}return Br({width:u,height:h,x:l,y:c})}function nn(e,t){const r=tn(e).scrollLeft;return t?t.left+r:St(Ke(e)).left+r}function nl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-nn(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function kd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ke(n),s=t?en(t.floating):!1;if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Xe(1);const u=Xe(0),h=Ye(n);if((h||!h&&!a)&&((Ut(n)!=="body"||mr(i))&&(l=tn(n)),Ye(n))){const p=St(n);c=Mt(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=i&&!h&&!a?nl(i,l):Xe(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}}function Id(e){return Array.from(e.getClientRects())}function $d(e){const t=Ke(e),r=tn(e),n=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+nn(e);const s=-r.scrollTop;return Ve(n).direction==="rtl"&&(i+=Se(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Za=25;function Md(e,t){const r=Le(e),n=Ke(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=Ko();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=nn(n);if(c<=0){const u=n.ownerDocument,h=u.body,d=getComputedStyle(h),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-p);g<=Za&&(a-=g)}else c<=Za&&(a+=c);return{width:a,height:i,x:s,y:l}}const Ld=new Set(["absolute","fixed"]);function Dd(e,t){const r=St(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ye(e)?Mt(e):Xe(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:i,height:s,x:l,y:c}}function Ja(e,t,r){let n;if(t==="viewport")n=Md(e,r);else if(t==="document")n=$d(Ke(e));else if(Te(t))n=Dd(t,r);else{const o=rl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Br(n)}function ol(e,t){const r=ct(e);return r===t||!Te(r)||Ft(r)?!1:Ve(r).position==="fixed"||ol(r,t)}function Fd(e,t){const r=t.get(e);if(r)return r;let n=or(e,[],!1).filter(s=>Te(s)&&Ut(s)!=="body"),o=null;const a=Ve(e).position==="fixed";let i=a?ct(e):e;for(;Te(i)&&!Ft(i);){const s=Ve(i),l=Yo(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&Ld.has(o.position)||mr(i)&&!l&&ol(e,i))?n=n.filter(u=>u!==i):o=s,i=ct(i)}return t.set(e,n),n}function Hd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?en(t)?[]:Fd(t,this._c):[].concat(r),n],s=i[0],l=i.reduce((c,u)=>{const h=Ja(t,u,o);return c.top=Se(h.top,c.top),c.right=Pt(h.right,c.right),c.bottom=Pt(h.bottom,c.bottom),c.left=Se(h.left,c.left),c},Ja(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bd(e){const{width:t,height:r}=tl(e);return{width:t,height:r}}function Wd(e,t,r){const n=Ye(t),o=Ke(t),a=r==="fixed",i=St(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Xe(0);function c(){l.x=nn(o)}if(n||!n&&!a)if((Ut(t)!=="body"||mr(o))&&(s=tn(t)),n){const p=St(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();a&&!n&&o&&c();const u=o&&!n&&!a?nl(o,s):Xe(0),h=i.left+s.scrollLeft-l.x-u.x,d=i.top+s.scrollTop-l.y-u.y;return{x:h,y:d,width:i.width,height:i.height}}function On(e){return Ve(e).position==="static"}function ei(e,t){if(!Ye(e)||Ve(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ke(e)===r&&(r=r.ownerDocument.body),r}function al(e,t){const r=Le(e);if(en(e))return r;if(!Ye(e)){let o=ct(e);for(;o&&!Ft(o);){if(Te(o)&&!On(o))return o;o=ct(o)}return r}let n=ei(e,t);for(;n&&ad(n)&&On(n);)n=ei(n,t);return n&&Ft(n)&&On(n)&&!Yo(n)?r:n||cd(e)||r}const Ud=async function(e){const t=this.getOffsetParent||al,r=this.getDimensions,n=await r(e.floating);return{reference:Wd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vd(e){return Ve(e).direction==="rtl"}const qd={convertOffsetParentRelativeRectToViewportRelativeRect:kd,getDocumentElement:Ke,getClippingRect:Hd,getOffsetParent:al,getElementRects:Ud,getClientRects:Id,getDimensions:Bd,getScale:Mt,isElement:Te,isRTL:Vd};function il(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Gd(e,t){let r=null,n;const o=Ke(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:h,width:d,height:p}=c;if(s||t(),!d||!p)return;const g=Er(h),m=Er(o.clientWidth-(u+d)),v=Er(o.clientHeight-(h+p)),b=Er(u),w={rootMargin:-g+"px "+-m+"px "+-v+"px "+-b+"px",threshold:Se(0,Pt(1,l))||1};let _=!0;function R(T){const O=T[0].intersectionRatio;if(O!==l){if(!_)return i();O?i(!1,O):n=setTimeout(()=>{i(!1,1e-7)},1e3)}O===1&&!il(c,e.getBoundingClientRect())&&i(),_=!1}try{r=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,w)}r.observe(e)}return i(!0),a}function zd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Qo(e),u=o||a?[...c?or(c):[],...or(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const h=c&&s?Gd(c,r):null;let d=-1,p=null;i&&(p=new ResizeObserver(b=>{let[E]=b;E&&E.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let g,m=l?St(e):null;l&&v();function v(){const b=St(e);m&&!il(m,b)&&r(),m=b,g=requestAnimationFrame(v)}return r(),()=>{var b;u.forEach(E=>{o&&E.removeEventListener("scroll",r),a&&E.removeEventListener("resize",r)}),h==null||h(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const Nn=rn,Xd=Od,Yd=Nd,Kd=Pd,Qd=Cd,Zd=(e,t,r)=>{const n=new Map,o={platform:qd,...r},a={...o.platform,_c:n};return Rd(e,t,{...o,platform:a})};var Jd=typeof document<"u",ef=function(){},kr=Jd?f.useLayoutEffect:ef;function Wr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Wr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Wr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ti(e,t){const r=sl(e);return Math.round(t*r)/r}function Cn(e){const t=S.useRef(e);return kr(()=>{t.current=e}),t}function tf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,h]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=S.useState(n);Wr(d,n)||p(n);const[g,m]=S.useState(null),[v,b]=S.useState(null),E=S.useCallback(C=>{C!==T.current&&(T.current=C,m(C))},[]),w=S.useCallback(C=>{C!==O.current&&(O.current=C,b(C))},[]),_=a||g,R=i||v,T=S.useRef(null),O=S.useRef(null),M=S.useRef(u),k=l!=null,P=Cn(l),N=Cn(o),j=Cn(c),$=S.useCallback(()=>{if(!T.current||!O.current)return;const C={placement:t,strategy:r,middleware:d};N.current&&(C.platform=N.current),Zd(T.current,O.current,C).then(L=>{const z={...L,isPositioned:j.current!==!1};A.current&&!Wr(M.current,z)&&(M.current=z,Mr.flushSync(()=>{h(z)}))})},[d,t,r,N,j]);kr(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(C=>({...C,isPositioned:!1})))},[c]);const A=S.useRef(!1);kr(()=>(A.current=!0,()=>{A.current=!1}),[]),kr(()=>{if(_&&(T.current=_),R&&(O.current=R),_&&R){if(P.current)return P.current(_,R,$);$()}},[_,R,$,P,k]);const D=S.useMemo(()=>({reference:T,floating:O,setReference:E,setFloating:w}),[E,w]),U=S.useMemo(()=>({reference:_,floating:R}),[_,R]),q=S.useMemo(()=>{const C={position:r,left:0,top:0};if(!U.floating)return C;const L=ti(U.floating,u.x),z=ti(U.floating,u.y);return s?{...C,transform:"translate("+L+"px, "+z+"px)",...sl(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:z}},[r,s,U.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:$,refs:D,elements:U,floatingStyles:q}),[u,$,D,U,q])}const ll=(e,t)=>({...Xd(e),options:[e,t]}),rf=(e,t)=>({...Yd(e),options:[e,t]}),nf=(e,t)=>({...Kd(e),options:[e,t]}),of=(e,t)=>({...Qd(e),options:[e,t]}),ul={...S},af=ul.useInsertionEffect,sf=af||(e=>e());function cl(e){const t=S.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return sf(()=>{t.current=e}),S.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var Oo=typeof document<"u"?f.useLayoutEffect:f.useEffect;let ri=!1,lf=0;const ni=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lf++;function uf(){const[e,t]=S.useState(()=>ri?ni():void 0);return Oo(()=>{e==null&&t(ni())},[]),S.useEffect(()=>{ri=!0},[]),e}const cf=ul.useId,df=cf||uf;let ir;process.env.NODE_ENV!=="production"&&(ir=new Set);function ff(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=ir)!=null&&e.has(o))){var a;(a=ir)==null||a.add(o),console.warn(o)}}function pf(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o="Floating UI: "+r.join(" ");if(!((e=ir)!=null&&e.has(o))){var a;(a=ir)==null||a.add(o),console.error(o)}}function mf(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const hf=S.createContext(null),gf=S.createContext(null),vf=()=>{var e;return((e=S.useContext(hf))==null?void 0:e.id)||null},bf=()=>S.useContext(gf),yf="data-floating-ui-focusable";function Ef(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=df(),a=S.useRef({}),[i]=S.useState(()=>mf()),s=vf()!=null;if(process.env.NODE_ENV!=="production"){const p=n.reference;p&&!Te(p)&&pf("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=S.useState(n.reference),u=cl((p,g,m)=>{a.current.openEvent=p?g:void 0,i.emit("openchange",{open:p,event:g,reason:m,nested:s}),r==null||r(p,g,m)}),h=S.useMemo(()=>({setPositionReference:c}),[]),d=S.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return S.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:d,events:i,floatingId:o,refs:h}),[t,u,d,i,o,h])}function xf(e){e===void 0&&(e={});const{nodeId:t}=e,r=Ef({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[a,i]=S.useState(null),[s,l]=S.useState(null),u=(o==null?void 0:o.domReference)||a,h=S.useRef(null),d=bf();Oo(()=>{u&&(h.current=u)},[u]);const p=tf({...e,elements:{...o,...s&&{reference:s}}}),g=S.useCallback(w=>{const _=Te(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(_),p.refs.setReference(_)},[p.refs]),m=S.useCallback(w=>{(Te(w)||w===null)&&(h.current=w,i(w)),(Te(p.refs.reference.current)||p.refs.reference.current===null||w!==null&&!Te(w))&&p.refs.setReference(w)},[p.refs]),v=S.useMemo(()=>({...p.refs,setReference:m,setPositionReference:g,domReference:h}),[p.refs,m,g]),b=S.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),E=S.useMemo(()=>({...p,...n,refs:v,elements:b,nodeId:t}),[p,v,b,t,n]);return Oo(()=>{n.dataRef.current.floatingContext=E;const w=d==null?void 0:d.nodesRef.current.find(_=>_.id===t);w&&(w.context=E)}),S.useMemo(()=>({...p,context:E,refs:v,elements:b}),[p,v,b,E])}const oi="active",ai="selected";function An(e,t,r){const n=new Map,o=r==="item";let a=e;if(o&&e){const{[oi]:i,[ai]:s,...l}=e;a=l}return{...r==="floating"&&{tabIndex:-1,[yf]:""},...a,...t.map(i=>{const s=i?i[r]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[c,u]=l;if(!(o&&[oi,ai].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof u=="function"){var h;(h=n.get(c))==null||h.push(u),i[c]=function(){for(var d,p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return(d=n.get(c))==null?void 0:d.map(v=>v(...g)).find(v=>v!==void 0)}}}else i[c]=u}),i),{})}}function wf(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),r=e.map(s=>s==null?void 0:s.floating),n=e.map(s=>s==null?void 0:s.item),o=S.useCallback(s=>An(s,e,"reference"),t),a=S.useCallback(s=>An(s,e,"floating"),r),i=S.useCallback(s=>An(s,e,"item"),n);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function ii(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const _f=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=Vt(e,t),{rects:h,elements:{floating:d}}=t,p=r.current[i],g=(c==null?void 0:c.current)||d,m=d.clientTop||g.clientTop,v=d.clientTop!==0,b=g.clientTop!==0,E=d===g;if(process.env.NODE_ENV!=="production"&&(t.placement.startsWith("bottom")||ff('`placement` side must be "bottom" when using the `inner`',"middleware.")),!p)return{};const w={...t,...await ll(-p.offsetTop-d.clientTop-h.reference.height/2-p.offsetHeight/2-a).fn(t)},_=await Nn(ii(w,g.scrollHeight+m+d.clientTop),u),R=await Nn(w,{...u,elementContext:"reference"}),T=Se(0,_.top),O=w.y+T,P=(g.scrollHeight>g.clientHeight?N=>N:ar)(Se(0,g.scrollHeight+(v&&E||b?m*2:0)-T-Se(0,_.bottom)));if(g.style.maxHeight=P+"px",g.scrollTop=T,o){const N=g.offsetHeight<p.offsetHeight*Pt(s,r.current.length)-1||R.top>=-l||R.bottom>=-l;Mr.flushSync(()=>o(N))}return n&&(n.current=await Nn(ii({...w,y:O},g.offsetHeight+m+d.clientTop),u)),{y:O}}});function Rf(e,t){const{open:r,elements:n}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t,l=cl(s),c=S.useRef(!1),u=S.useRef(null),h=S.useRef(null);S.useEffect(()=>{if(!o)return;function p(m){if(m.ctrlKey||!g||a.current==null)return;const v=m.deltaY,b=a.current.top>=-.5,E=a.current.bottom>=-.5,w=g.scrollHeight-g.clientHeight,_=v<0?-1:1,R=v<0?"max":"min";g.scrollHeight<=g.clientHeight||(!b&&v>0||!E&&v<0?(m.preventDefault(),Mr.flushSync(()=>{l(T=>T+Math[R](v,w*_))})):/firefox/i.test(fd())&&(g.scrollTop+=v))}const g=(i==null?void 0:i.current)||n.floating;if(r&&g)return g.addEventListener("wheel",p),requestAnimationFrame(()=>{u.current=g.scrollTop,a.current!=null&&(h.current={...a.current})}),()=>{u.current=null,h.current=null,g.removeEventListener("wheel",p)}},[o,r,n.floating,a,i,l]);const d=S.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const p=(i==null?void 0:i.current)||n.floating;if(!(!a.current||!p||!c.current)){if(u.current!==null){const g=p.scrollTop-u.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&Mr.flushSync(()=>l(m=>m+g))}requestAnimationFrame(()=>{u.current=p.scrollTop})}}}),[n.floating,l,a,i]);return S.useMemo(()=>o?{floating:d}:{},[o,d])}let qt=f.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});qt.displayName="FloatingContext";let Zo=f.createContext(null);Zo.displayName="PlacementContext";function dl(e){return f.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function fl(){return f.useContext(qt).setReference}function Pf(){return f.useContext(qt).getReferenceProps}function pl(){let{getFloatingProps:e,slot:t}=f.useContext(qt);return f.useCallback((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function ml(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=f.useContext(Zo),r=f.useMemo(()=>e,[JSON.stringify(e,(o,a)=>{var i;return(i=a==null?void 0:a.outerHTML)!=null?i:a})]);ce(()=>{t==null||t(r??null)},[t,r]);let n=f.useContext(qt);return f.useMemo(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}let si=4;function hl({children:e,enabled:t=!0}){let[r,n]=f.useState(null),[o,a]=f.useState(0),i=f.useRef(null),[s,l]=f.useState(null);Sf(s);let c=t&&r!==null&&s!==null,{to:u="bottom",gap:h=0,offset:d=0,padding:p=0,inner:g}=Tf(r,s),[m,v="center"]=u.split(" ");ce(()=>{c&&a(0)},[c]);let{refs:b,floatingStyles:E,context:w}=xf({open:c,placement:m==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${m}`:`${m}-${v}`,strategy:"absolute",transform:!1,middleware:[ll({mainAxis:m==="selection"?0:h,crossAxis:d}),rf({padding:p}),m!=="selection"&&nf({padding:p}),m==="selection"&&g?_f({...g,padding:p,overflowRef:i,offset:o,minItemsVisible:si,referenceOverflowThreshold:p,onFallbackChange(N){var j,$;if(!N)return;let A=w.elements.floating;if(!A)return;let D=parseFloat(getComputedStyle(A).scrollPaddingBottom)||0,U=Math.min(si,A.childElementCount),q=0,C=0;for(let L of($=(j=w.elements.floating)==null?void 0:j.childNodes)!=null?$:[])if(Oe(L)){let z=L.offsetTop,K=z+L.clientHeight+D,J=A.scrollTop,F=J+A.clientHeight;if(z>=J&&K<=F)U--;else{C=Math.max(0,Math.min(K,F)-Math.max(z,J)),q=L.clientHeight;break}}U>=1&&a(L=>{let z=q*U-C+D;return L>=z?L:z})}}):null,of({padding:p,apply({availableWidth:N,availableHeight:j,elements:$}){Object.assign($.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${j}px)`})}})].filter(Boolean),whileElementsMounted:zd}),[_=m,R=v]=w.placement.split("-");m==="selection"&&(_="selection");let T=f.useMemo(()=>({anchor:[_,R].filter(Boolean).join(" ")}),[_,R]),O=Rf(w,{overflowRef:i,onChange:a}),{getReferenceProps:M,getFloatingProps:k}=wf([O]),P=H(N=>{l(N),b.setFloating(N)});return S.createElement(Zo.Provider,{value:n},S.createElement(qt.Provider,{value:{setFloating:P,setReference:b.setReference,styles:E,getReferenceProps:M,getFloatingProps:k,slot:T}},e))}function Sf(e){ce(()=>{if(!e)return;let t=new MutationObserver(()=>{let r=window.getComputedStyle(e).maxHeight,n=parseFloat(r);if(isNaN(n))return;let o=parseInt(r);isNaN(o)||n!==o&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Tf(e,t){var r,n,o;let a=jn((r=e==null?void 0:e.gap)!=null?r:"var(--anchor-gap, 0)",t),i=jn((n=e==null?void 0:e.offset)!=null?n:"var(--anchor-offset, 0)",t),s=jn((o=e==null?void 0:e.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:i,padding:s}}function jn(e,t,r=void 0){let n=Tt(),o=H((l,c)=>{if(l==null)return[r,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[r,null];let u=li(l,c);return[u,h=>{let d=gl(l);{let p=d.map(g=>window.getComputedStyle(c).getPropertyValue(g));n.requestAnimationFrame(function g(){n.nextFrame(g);let m=!1;for(let[b,E]of d.entries()){let w=window.getComputedStyle(c).getPropertyValue(E);if(p[b]!==w){p[b]=w,m=!0;break}}if(!m)return;let v=li(l,c);u!==v&&(h(v),u=v)})}return n.dispose}]}return[r,null]}),a=f.useMemo(()=>o(e,t)[0],[e,t]),[i=a,s]=f.useState();return ce(()=>{let[l,c]=o(e,t);if(s(l),!!c)return c(s)},[e,t]),i}function gl(e){let t=/var\((.*)\)/.exec(e);if(t){let r=t[1].indexOf(",");if(r===-1)return[t[1]];let n=t[1].slice(0,r).trim(),o=t[1].slice(r+1).trim();return o?[n,...gl(o)]:[n]}return[]}function li(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}let on=f.createContext(null);on.displayName="OpenClosedContext";var de=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(de||{});function pt(){return f.useContext(on)}function an({value:e,children:t}){return f.createElement(on.Provider,{value:e},t)}function Jo({children:e}){return f.createElement(on.Provider,{value:null},e)}function Of(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let at=[];Of(()=>{function e(t){if(!Ie(t.target)||t.target===document.body||at[0]===t.target)return;let r=t.target;r=r.closest(Fr),at.unshift(r??t.target),at=at.filter(n=>n!=null&&n.isConnected),at.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Nf(e){throw new Error("Unexpected object: "+e)}var be=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(be||{});function xr(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1;switch(e.focus){case 0:{for(let a=0;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 1:{o===-1&&(o=r.length);for(let a=o-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 2:{for(let a=o+1;a<r.length;++a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 3:{for(let a=r.length-1;a>=0;--a)if(!t.resolveDisabled(r[a],a,r))return a;return n}case 4:{for(let a=0;a<r.length;++a)if(t.resolveId(r[a],a,r)===e.id)return a;return n}case 5:return null;default:Nf(e)}}function sn(e){let t=H(e),r=f.useRef(!1);f.useEffect(()=>(r.current=!1,()=>{r.current=!0,Xr(()=>{r.current&&t()})}),[t])}let vl=f.createContext(!1);function Cf(){return f.useContext(vl)}function ui(e){return f.createElement(vl.Provider,{value:e.force},e.children)}function Af(e){let t=Cf(),r=f.useContext(yl),[n,o]=f.useState(()=>{var a;if(!t&&r!==null)return(a=r.current)!=null?a:null;if(Ge.isServer)return null;let i=e==null?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let s=e.createElement("div");return s.setAttribute("id","headlessui-portal-root"),e.body.appendChild(s)});return f.useEffect(()=>{n!==null&&(e!=null&&e.body.contains(n)||e==null||e.body.appendChild(n))},[n,e]),f.useEffect(()=>{t||r!==null&&o(r.current)},[r,o,t]),n}let bl=f.Fragment,jf=ne(function(e,t){let{ownerDocument:r=null,...n}=e,o=f.useRef(null),a=me(Fo(d=>{o.current=d}),t),i=Rt(o.current),s=r??i,l=Af(s),c=f.useContext(No),u=Tt(),h=se();return sn(()=>{var d;l&&l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l))}),l?er.createPortal(f.createElement("div",{"data-headlessui-portal":"",ref:d=>{u.dispose(),c&&d&&u.add(c.register(d))}},h({ourProps:{ref:a},theirProps:n,slot:{},defaultTag:bl,name:"Portal"})),l):null});function kf(e,t){let r=me(t),{enabled:n=!0,ownerDocument:o,...a}=e,i=se();return n?f.createElement(jf,{...a,ownerDocument:o,ref:r}):i({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:bl,name:"Portal"})}let If=f.Fragment,yl=f.createContext(null);function $f(e,t){let{target:r,...n}=e,o={ref:me(t)},a=se();return f.createElement(yl.Provider,{value:r},a({ourProps:o,theirProps:n,defaultTag:If,name:"Popover.Group"}))}let No=f.createContext(null);function El(){let e=f.useContext(No),t=f.useRef([]),r=H(a=>(t.current.push(a),e&&e.register(a),()=>n(a))),n=H(a=>{let i=t.current.indexOf(a);i!==-1&&t.current.splice(i,1),e&&e.unregister(a)}),o=f.useMemo(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,f.useMemo(()=>function({children:a}){return f.createElement(No.Provider,{value:o},a)},[o])]}let Mf=ne(kf),xl=ne($f),ea=Object.assign(Mf,{Group:xl});const Ir={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function wl(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function Lf(e,t,r){let n=ke();if(t.kind==="Tracked"){let o=function(){a!==wl(e)&&(n.dispose(),r())},{position:a}=t,i=new ResizeObserver(o);i.observe(e),n.add(()=>i.disconnect()),n.addEventListener(window,"scroll",o,{passive:!0}),n.addEventListener(window,"resize",o)}return()=>n.dispose()}function Df(e,t=typeof document<"u"?document.defaultView:null,r){let n=cr(e,"escape");qo(t,"keydown",o=>{n&&(o.defaultPrevented||o.key===ae.Escape&&r(o))})}function Ff(){var e;let[t]=f.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=f.useState((e=t==null?void 0:t.matches)!=null?e:!1);return ce(()=>{if(!t)return;function o(a){n(a.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),r}function _l({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=H(()=>{var o,a;let i=nt(r),s=[];for(let l of e)l!==null&&(et(l)?s.push(l):"current"in l&&et(l.current)&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&et(l)&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((a=r==null?void 0:r.getRootNode())==null?void 0:a.host))||s.some(c=>l.contains(c))||s.push(l));return s});return{resolveContainers:n,contains:H(o=>n().some(a=>a.contains(o)))}}let Rl=f.createContext(null);function Ur({children:e,node:t}){let[r,n]=f.useState(null),o=ta(t??r);return f.createElement(Rl.Provider,{value:o},e,o===null&&f.createElement(Lt,{features:_t.Hidden,ref:a=>{var i,s;if(a){for(let l of(s=(i=nt(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&et(l)&&l!=null&&l.contains(a)){n(l);break}}}}))}function ta(e=null){var t;return(t=f.useContext(Rl))!=null?t:e}function Hf(){let e=typeof document>"u";return"useSyncExternalStore"in S?(t=>t.useSyncExternalStore)(S)(()=>()=>{},()=>!1,()=>!e):!1}function ln(){let e=Hf(),[t,r]=S.useState(Ge.isHandoffComplete);return t&&Ge.isHandoffComplete===!1&&r(!1),S.useEffect(()=>{t!==!0&&r(!0)},[t]),S.useEffect(()=>Ge.handoff(),[]),e?!1:t}function ra(){let e=f.useRef(!1);return ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Me=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Me||{});function na(){let e=f.useRef(0);return Ys(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Pl(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)et(r.current)&&t.add(r.current);return t}let Bf="div";var bt=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(bt||{});function Wf(e,t){let r=f.useRef(null),n=me(r,t),{initialFocus:o,initialFocusFallback:a,containers:i,features:s=15,...l}=e;ln()||(s=0);let c=Rt(r.current);Gf(s,{ownerDocument:c});let u=zf(s,{ownerDocument:c,container:r,initialFocus:o,initialFocusFallback:a});Xf(s,{ownerDocument:c,container:r,containers:i,previousActiveElement:u});let h=na(),d=H(E=>{if(!Oe(r.current))return;let w=r.current;(_=>_())(()=>{Ee(h.current,{[Me.Forwards]:()=>{$e(w,xe.First,{skipElements:[E.relatedTarget,a]})},[Me.Backwards]:()=>{$e(w,xe.Last,{skipElements:[E.relatedTarget,a]})}})})}),p=cr(!!(s&2),"focus-trap#tab-lock"),g=Tt(),m=f.useRef(!1),v={ref:n,onKeyDown(E){E.key=="Tab"&&(m.current=!0,g.requestAnimationFrame(()=>{m.current=!1}))},onBlur(E){if(!(s&4))return;let w=Pl(i);Oe(r.current)&&w.add(r.current);let _=E.relatedTarget;Ie(_)&&_.dataset.headlessuiFocusGuard!=="true"&&(Sl(w,_)||(m.current?$e(r.current,Ee(h.current,{[Me.Forwards]:()=>xe.Next,[Me.Backwards]:()=>xe.Previous})|xe.WrapAround,{relativeTo:E.target}):Ie(E.target)&&ze(E.target)))}},b=se();return f.createElement(f.Fragment,null,p&&f.createElement(Lt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_t.Focusable}),b({ourProps:v,theirProps:l,defaultTag:Bf,name:"FocusTrap"}),p&&f.createElement(Lt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_t.Focusable}))}let Uf=ne(Wf),Vf=Object.assign(Uf,{features:bt});function qf(e=!0){let t=f.useRef(at.slice());return Xo(([r],[n])=>{n===!0&&r===!1&&Xr(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=at.slice())},[e,at,t]),H(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function Gf(e,{ownerDocument:t}){let r=!!(e&8),n=qf(r);Xo(()=>{r||Os(t==null?void 0:t.body)&&ze(n())},[r]),sn(()=>{r&&ze(n())})}function zf(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:o}){let a=f.useRef(null),i=cr(!!(e&1),"focus-trap#initial-focus"),s=ra();return Xo(()=>{if(e===0)return;if(!i){o!=null&&o.current&&ze(o.current);return}let l=r.current;l&&Xr(()=>{if(!s.current)return;let c=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){a.current=c;return}}else if(l.contains(c)){a.current=c;return}if(n!=null&&n.current)ze(n.current);else{if(e&16){if($e(l,xe.First|xe.AutoFocus)!==Dt.Error)return}else if($e(l,xe.First)!==Dt.Error)return;if(o!=null&&o.current&&(ze(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t==null?void 0:t.activeElement})},[o,i,e]),a}function Xf(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:o}){let a=ra(),i=!!(e&4);qo(t==null?void 0:t.defaultView,"focus",s=>{if(!i||!a.current)return;let l=Pl(n);Oe(r.current)&&l.add(r.current);let c=o.current;if(!c)return;let u=s.target;Oe(u)?Sl(l,u)?(o.current=u,ze(u)):(s.preventDefault(),s.stopPropagation(),ze(c)):ze(o.current)},!0)}function Sl(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function Tl(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!$t((t=e.as)!=null?t:Nl)||f.Children.count(e.children)===1}let un=f.createContext(null);un.displayName="TransitionContext";var Yf=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Yf||{});function Kf(){let e=f.useContext(un);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Qf(){let e=f.useContext(cn);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let cn=f.createContext(null);cn.displayName="NestingContext";function dn(e){return"children"in e?dn(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ol(e,t){let r=tt(e),n=f.useRef([]),o=ra(),a=Tt(),i=H((p,g=it.Hidden)=>{let m=n.current.findIndex(({el:v})=>v===p);m!==-1&&(Ee(g,{[it.Unmount](){n.current.splice(m,1)},[it.Hidden](){n.current[m].state="hidden"}}),a.microTask(()=>{var v;!dn(n)&&o.current&&((v=r.current)==null||v.call(r))}))}),s=H(p=>{let g=n.current.find(({el:m})=>m===p);return g?g.state!=="visible"&&(g.state="visible"):n.current.push({el:p,state:"visible"}),()=>i(p,it.Unmount)}),l=f.useRef([]),c=f.useRef(Promise.resolve()),u=f.useRef({enter:[],leave:[]}),h=H((p,g,m)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([v])=>v!==p)),t==null||t.chains.current[g].push([p,new Promise(v=>{l.current.push(v)})]),t==null||t.chains.current[g].push([p,new Promise(v=>{Promise.all(u.current[g].map(([b,E])=>E)).then(()=>v())})]),g==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(g)):m(g)}),d=H((p,g,m)=>{Promise.all(u.current[g].splice(0).map(([v,b])=>b)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>m(g))});return f.useMemo(()=>({children:n,register:s,unregister:i,onStart:h,onStop:d,wait:c,chains:u}),[s,i,n,h,d,u,c])}let Nl=f.Fragment,Cl=Be.RenderStrategy;function Zf(e,t){var r,n;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:h,entered:d,leave:p,leaveFrom:g,leaveTo:m,...v}=e,[b,E]=f.useState(null),w=f.useRef(null),_=Tl(e),R=me(..._?[w,t,E]:t===null?[]:[t]),T=(r=v.unmount)==null||r?it.Unmount:it.Hidden,{show:O,appear:M,initial:k}=Kf(),[P,N]=f.useState(O?"visible":"hidden"),j=Qf(),{register:$,unregister:A}=j;ce(()=>$(w),[$,w]),ce(()=>{if(T===it.Hidden&&w.current){if(O&&P!=="visible"){N("visible");return}return Ee(P,{hidden:()=>A(w),visible:()=>$(w)})}},[P,w,$,A,O,T]);let D=ln();ce(()=>{if(_&&D&&P==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,P,D,_]);let U=k&&!M,q=M&&O&&k,C=f.useRef(!1),L=Ol(()=>{C.current||(N("hidden"),A(w))},j),z=H(Q=>{C.current=!0;let fe=Q?"enter":"leave";L.onStart(w,fe,G=>{G==="enter"?a==null||a():G==="leave"&&(s==null||s())})}),K=H(Q=>{let fe=Q?"enter":"leave";C.current=!1,L.onStop(w,fe,G=>{G==="enter"?i==null||i():G==="leave"&&(l==null||l())}),fe==="leave"&&!dn(L)&&(N("hidden"),A(w))});f.useEffect(()=>{_&&o||(z(O),K(O))},[O,_,o]);let J=!(!o||!_||!D||U),[,F]=pr(J,b,O,{start:z,end:K}),B=vt({ref:R,className:((n=_o(v.className,q&&c,q&&u,F.enter&&c,F.enter&&F.closed&&u,F.enter&&!F.closed&&h,F.leave&&p,F.leave&&!F.closed&&g,F.leave&&F.closed&&m,!F.transition&&O&&d))==null?void 0:n.trim())||void 0,...fr(F)}),V=0;P==="visible"&&(V|=de.Open),P==="hidden"&&(V|=de.Closed),O&&P==="hidden"&&(V|=de.Opening),!O&&P==="visible"&&(V|=de.Closing);let ee=se();return f.createElement(cn.Provider,{value:L},f.createElement(an,{value:V},ee({ourProps:B,theirProps:v,defaultTag:Nl,features:Cl,visible:P==="visible",name:"Transition.Child"})))}function Jf(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,i=f.useRef(null),s=Tl(e),l=me(...s?[i,t]:t===null?[]:[t]);ln();let c=pt();if(r===void 0&&c!==null&&(r=(c&de.Open)===de.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=f.useState(r?"visible":"hidden"),d=Ol(()=>{r||h("hidden")}),[p,g]=f.useState(!0),m=f.useRef([r]);ce(()=>{p!==!1&&m.current[m.current.length-1]!==r&&(m.current.push(r),g(!1))},[m,r]);let v=f.useMemo(()=>({show:r,appear:n,initial:p}),[r,n,p]);ce(()=>{r?h("visible"):!dn(d)&&i.current!==null&&h("hidden")},[r,d]);let b={unmount:o},E=H(()=>{var R;p&&g(!1),(R=e.beforeEnter)==null||R.call(e)}),w=H(()=>{var R;p&&g(!1),(R=e.beforeLeave)==null||R.call(e)}),_=se();return f.createElement(cn.Provider,{value:d},f.createElement(un.Provider,{value:v},_({ourProps:{...b,as:f.Fragment,children:f.createElement(Al,{ref:l,...b,...a,beforeEnter:E,beforeLeave:w})},theirProps:{},defaultTag:f.Fragment,features:Cl,visible:u==="visible",name:"Transition"})))}function ep(e,t){let r=f.useContext(un)!==null,n=pt()!==null;return f.createElement(f.Fragment,null,!r&&n?f.createElement(Co,{ref:t,...e}):f.createElement(Al,{ref:t,...e}))}let Co=ne(Jf),Al=ne(Zf),oa=ne(ep),tp=Object.assign(Co,{Child:oa,Root:Co});var rp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rp||{}),np=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(np||{});let op={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},aa=f.createContext(null);aa.displayName="DialogContext";function fn(e){let t=f.useContext(aa);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,fn),r}return t}function ap(e,t){return Ee(t.type,op,e,t)}let ci=ne(function(e,t){let r=f.useId(),{id:n=`headlessui-dialog-${r}`,open:o,onClose:a,initialFocus:i,role:s="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:u=!1,...h}=e,d=f.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(d.current||(d.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=pt();o===void 0&&p!==null&&(o=(p&de.Open)===de.Open);let g=f.useRef(null),m=me(g,t),v=Rt(g.current),b=o?0:1,[E,w]=f.useReducer(ap,{titleId:null,descriptionId:null,panelRef:f.createRef()}),_=H(()=>a(!1)),R=H(F=>w({type:0,id:F})),T=ln()?b===0:!1,[O,M]=El(),k={get current(){var F;return(F=E.panelRef.current)!=null?F:g.current}},P=ta(),{resolveContainers:N}=_l({mainTreeNode:P,portals:O,defaultContainers:[k]}),j=p!==null?(p&de.Closing)===de.Closing:!1;qs(c||j?!1:T,{allowed:H(()=>{var F,B;return[(B=(F=g.current)==null?void 0:F.closest("[data-headlessui-portal]"))!=null?B:null]}),disallowed:H(()=>{var F;return[(F=P==null?void 0:P.closest("body > *:not(#headlessui-portal-root)"))!=null?F:null]})});let $=ur.get(null);ce(()=>{if(T)return $.actions.push(n),()=>$.actions.pop(n)},[$,n,T]);let A=we($,f.useCallback(F=>$.selectors.isTop(F,n),[$,n]));Vo(A,N,F=>{F.preventDefault(),_()}),Df(A,v==null?void 0:v.defaultView,F=>{F.preventDefault(),F.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),_()}),zo(c||j?!1:T,v,N),Uo(T,g,_);let[D,U]=Ms(),q=f.useMemo(()=>[{dialogState:b,close:_,setTitleId:R,unmount:u},E],[b,_,R,u,E]),C=_e({open:b===0}),L={ref:m,id:n,role:s,tabIndex:-1,"aria-modal":c?void 0:b===0?!0:void 0,"aria-labelledby":E.titleId,"aria-describedby":D,unmount:u},z=!Ff(),K=bt.None;T&&!c&&(K|=bt.RestoreFocus,K|=bt.TabLock,l&&(K|=bt.AutoFocus),z&&(K|=bt.InitialFocus));let J=se();return f.createElement(Jo,null,f.createElement(ui,{force:!0},f.createElement(ea,null,f.createElement(aa.Provider,{value:q},f.createElement(xl,{target:g},f.createElement(ui,{force:!1},f.createElement(U,{slot:C},f.createElement(M,null,f.createElement(Vf,{initialFocus:i,initialFocusFallback:g,containers:N,features:K},f.createElement(Kr,{value:_},J({ourProps:L,theirProps:h,slot:C,defaultTag:ip,features:sp,visible:b===0,name:"Dialog"})))))))))))}),ip="div",sp=Be.RenderStrategy|Be.Static;function lp(e,t){let{transition:r=!1,open:n,...o}=e,a=pt(),i=e.hasOwnProperty("open")||a!==null,s=e.hasOwnProperty("onClose");if(!i&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!o.static?f.createElement(Ur,null,f.createElement(tp,{show:n,transition:r,unmount:o.unmount},f.createElement(ci,{ref:t,...o}))):f.createElement(Ur,null,f.createElement(ci,{ref:t,open:n,...o}))}let up="div";function cp(e,t){let r=f.useId(),{id:n=`headlessui-dialog-panel-${r}`,transition:o=!1,...a}=e,[{dialogState:i,unmount:s},l]=fn("Dialog.Panel"),c=me(t,l.panelRef),u=_e({open:i===0}),h=H(v=>{v.stopPropagation()}),d={ref:c,id:n,onClick:h},p=o?oa:f.Fragment,g=o?{unmount:s}:{},m=se();return f.createElement(p,{...g},m({ourProps:d,theirProps:a,slot:u,defaultTag:up,name:"Dialog.Panel"}))}let dp="div";function fp(e,t){let{transition:r=!1,...n}=e,[{dialogState:o,unmount:a}]=fn("Dialog.Backdrop"),i=_e({open:o===0}),s={ref:t,"aria-hidden":!0},l=r?oa:f.Fragment,c=r?{unmount:a}:{},u=se();return f.createElement(l,{...c},u({ourProps:s,theirProps:n,slot:i,defaultTag:dp,name:"Dialog.Backdrop"}))}let pp="h2";function mp(e,t){let r=f.useId(),{id:n=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:a,setTitleId:i}]=fn("Dialog.Title"),s=me(t);f.useEffect(()=>(i(n),()=>i(null)),[n,i]);let l=_e({open:a===0}),c={ref:s,id:n};return se()({ourProps:c,theirProps:o,slot:l,defaultTag:pp,name:"Dialog.Title"})}let hp=ne(lp),Vr=ne(cp);ne(fp);let gp=ne(mp),Ao=Object.assign(hp,{Panel:Vr,Title:gp,Description:pc});var di;let vp=(di=f.startTransition)!=null?di:function(e){e()};var bp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bp||{}),yp=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(yp||{});let Ep={0:e=>({...e,disclosureState:Ee(e.disclosureState,{0:1,1:0})}),1:e=>e.disclosureState===1?e:{...e,disclosureState:1},2(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},3(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}},4(e,t){return e.buttonElement===t.element?e:{...e,buttonElement:t.element}},5(e,t){return e.panelElement===t.element?e:{...e,panelElement:t.element}}},ia=f.createContext(null);ia.displayName="DisclosureContext";function sa(e){let t=f.useContext(ia);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,sa),r}return t}let la=f.createContext(null);la.displayName="DisclosureAPIContext";function jl(e){let t=f.useContext(la);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jl),r}return t}let ua=f.createContext(null);ua.displayName="DisclosurePanelContext";function xp(){return f.useContext(ua)}function wp(e,t){return Ee(t.type,Ep,e,t)}let _p=f.Fragment;function Rp(e,t){let{defaultOpen:r=!1,...n}=e,o=f.useRef(null),a=me(t,Fo(m=>{o.current=m},e.as===void 0||$t(e.as))),i=f.useReducer(wp,{disclosureState:r?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:l},c]=i,u=H(m=>{c({type:1});let v=nt(o.current);if(!v||!l)return;let b=m?Ie(m)?m:"current"in m&&Ie(m.current)?m.current:v.getElementById(l):v.getElementById(l);b==null||b.focus()}),h=f.useMemo(()=>({close:u}),[u]),d=_e({open:s===0,close:u}),p={ref:a},g=se();return f.createElement(ia.Provider,{value:i},f.createElement(la.Provider,{value:h},f.createElement(Kr,{value:u},f.createElement(an,{value:Ee(s,{0:de.Open,1:de.Closed})},g({ourProps:p,theirProps:n,slot:d,defaultTag:_p,name:"Disclosure"})))))}let Pp="button";function Sp(e,t){let r=f.useId(),{id:n=`headlessui-disclosure-button-${r}`,disabled:o=!1,autoFocus:a=!1,...i}=e,[s,l]=sa("Disclosure.Button"),c=xp(),u=c===null?!1:c===s.panelId,h=f.useRef(null),d=me(h,t,H(k=>{if(!u)return l({type:4,element:k})}));f.useEffect(()=>{if(!u)return l({type:2,buttonId:n}),()=>{l({type:2,buttonId:null})}},[n,l,u]);let p=H(k=>{var P;if(u){if(s.disclosureState===1)return;switch(k.key){case ae.Space:case ae.Enter:k.preventDefault(),k.stopPropagation(),l({type:0}),(P=s.buttonElement)==null||P.focus();break}}else switch(k.key){case ae.Space:case ae.Enter:k.preventDefault(),k.stopPropagation(),l({type:0});break}}),g=H(k=>{switch(k.key){case ae.Space:k.preventDefault();break}}),m=H(k=>{var P;nr(k.currentTarget)||o||(u?(l({type:0}),(P=s.buttonElement)==null||P.focus()):l({type:0}))}),{isFocusVisible:v,focusProps:b}=Lo({autoFocus:a}),{isHovered:E,hoverProps:w}=Mo({isDisabled:o}),{pressed:_,pressProps:R}=Do({disabled:o}),T=_e({open:s.disclosureState===0,hover:E,active:_,disabled:o,focus:v,autofocus:a}),O=Go(e,s.buttonElement),M=wt(u?{ref:d,type:O,disabled:o||void 0,autoFocus:a,onKeyDown:p,onClick:m}:{ref:d,id:n,type:O,"aria-expanded":s.disclosureState===0,"aria-controls":s.panelElement?s.panelId:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:g,onClick:m},b,w,R);return se()({ourProps:M,theirProps:i,slot:T,defaultTag:Pp,name:"Disclosure.Button"})}let Tp="div",Op=Be.RenderStrategy|Be.Static;function Np(e,t){let r=f.useId(),{id:n=`headlessui-disclosure-panel-${r}`,transition:o=!1,...a}=e,[i,s]=sa("Disclosure.Panel"),{close:l}=jl("Disclosure.Panel"),[c,u]=f.useState(null),h=me(t,H(E=>{vp(()=>s({type:5,element:E}))}),u);f.useEffect(()=>(s({type:3,panelId:n}),()=>{s({type:3,panelId:null})}),[n,s]);let d=pt(),[p,g]=pr(o,c,d!==null?(d&de.Open)===de.Open:i.disclosureState===0),m=_e({open:i.disclosureState===0,close:l}),v={ref:h,id:n,...fr(g)},b=se();return f.createElement(Jo,null,f.createElement(ua.Provider,{value:i.panelId},b({ourProps:v,theirProps:a,slot:m,defaultTag:Tp,features:Op,visible:p,name:"Disclosure.Panel"})))}let Cp=ne(Rp),Ue=ne(Sp),ca=ne(Np),kl=Object.assign(Cp,{Button:Ue,Panel:ca}),fi=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function pi(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!Oe(o))return n;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(r=o.innerText)!=null?r:"":n;return fi.test(i)&&(i=i.replace(fi,"")),i}function Ap(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():pi(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return pi(e).trim()}function jp(e){let t=f.useRef(""),r=f.useRef("");return H(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let a=Ap(n).trim().toLowerCase();return t.current=o,r.current=a,a})}var kp=Object.defineProperty,Ip=(e,t,r)=>t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mi=(e,t,r)=>(Ip(e,typeof t!="symbol"?t+"":t,r),r),Pe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Pe||{}),qr=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(qr||{}),ue=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(ue||{});function hi(e,t=r=>r){let r=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,n=zs(t(e.items.slice()),a=>a.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{items:n,activeItemIndex:o}}let $p={1(e){if(e.menuState===1)return e;let t=e.buttonElement?Ir.Tracked(wl(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:be.Nothing},menuState:1,buttonPositionState:t}},0(e,t){return e.menuState===0?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:Ir.Idle}},2:(e,t)=>{var r,n,o,a,i;if(e.menuState===1)return e;let s={...e,searchQuery:"",activationTrigger:(r=t.trigger)!=null?r:1,__demoMode:!1};if(t.focus===be.Nothing)return{...s,activeItemIndex:null};if(t.focus===be.Specific)return{...s,activeItemIndex:e.items.findIndex(u=>u.id===t.id)};if(t.focus===be.Previous){let u=e.activeItemIndex;if(u!==null){let h=e.items[u].dataRef.current.domRef,d=xr(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((n=h.current)==null?void 0:n.previousElementSibling)===p.current||((o=p.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeItemIndex:d}}}}else if(t.focus===be.Next){let u=e.activeItemIndex;if(u!==null){let h=e.items[u].dataRef.current.domRef,d=xr(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((a=h.current)==null?void 0:a.nextElementSibling)===p.current||((i=p.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeItemIndex:d}}}}let l=hi(e),c=xr(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(i=>{var s;return((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(n))&&!i.dataRef.current.disabled}),a=o?e.items.indexOf(o):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let r=e.items.concat(t.items.map(o=>o)),n=e.activeItemIndex;return e.pendingFocus.focus!==be.Nothing&&(n=xr(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:be.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],o=new Set(t.items);for(let[a,i]of r.entries())if(o.has(i.id)&&(n.push(a),o.delete(i.id),o.size===0))break;if(n.length>0){r=r.slice();for(let a of n.reverse())r.splice(a,1)}return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...hi(e),pendingShouldSort:!1}:e,10(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:Ir.Moved}}},Mp=class Il extends Wo{constructor(t){super(t),mi(this,"actions",{registerItem:Ia(()=>{let r=[],n=new Set;return[(o,a)=>{n.has(a)||(n.add(a),r.push({id:o,dataRef:a}))},()=>(n.clear(),this.send({type:5,items:r.splice(0)}))]}),unregisterItem:Ia(()=>{let r=[];return[n=>r.push(n),()=>this.send({type:6,items:r.splice(0)})]})}),mi(this,"selectors",{activeDescendantId(r){var n;let o=r.activeItemIndex,a=r.items;return o===null||(n=a[o])==null?void 0:n.id},isActive(r,n){var o;let a=r.activeItemIndex,i=r.items;return a!==null?((o=i[a])==null?void 0:o.id)===n:!1},shouldScrollIntoView(r,n){return r.__demoMode||r.menuState!==0||r.activationTrigger===0?!1:this.isActive(r,n)},didButtonMove(r){return r.buttonPositionState.kind==="Moved"}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let r=this.state.id,n=ur.get(null);this.disposables.add(n.on(Us.Push,o=>{!n.selectors.isTop(o,r)&&this.state.menuState===0&&this.send({type:1})})),this.on(0,()=>n.actions.push(r)),this.on(1,()=>n.actions.pop(r))}this.disposables.group(r=>{this.on(1,n=>{n.buttonElement&&(r.dispose(),r.add(Lf(n.buttonElement,n.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:r=!1}){return new Il({id:t,__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:be.Nothing},buttonPositionState:Ir.Idle})}reduce(t,r){return Ee(r.type,$p,t,r)}};const $l=f.createContext(null);function da(e){let t=f.useContext($l);if(t===null){let r=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ml),r}return t}function Ml({id:e,__demoMode:t=!1}){let r=f.useMemo(()=>Mp.new({id:e,__demoMode:t}),[]);return sn(()=>r.dispose()),r}let Lp=f.Fragment;function Dp(e,t){let r=f.useId(),{__demoMode:n=!1,...o}=e,a=Ml({id:r,__demoMode:n}),[i,s,l]=we(a,v=>[v.menuState,v.itemsElement,v.buttonElement]),c=me(t),u=ur.get(null),h=we(u,f.useCallback(v=>u.selectors.isTop(v,r),[u,r]));Vo(h,[l,s],(v,b)=>{var E;a.send({type:ue.CloseMenu}),Zr(b,Qr.Loose)||(v.preventDefault(),(E=a.state.buttonElement)==null||E.focus())});let d=H(()=>{a.send({type:ue.CloseMenu})}),p=_e({open:i===Pe.Open,close:d}),g={ref:c},m=se();return f.createElement(hl,null,f.createElement($l.Provider,{value:a},f.createElement(an,{value:Ee(i,{[Pe.Open]:de.Open,[Pe.Closed]:de.Closed})},m({ourProps:g,theirProps:o,slot:p,defaultTag:Lp,name:"Menu"}))))}let Fp="button";function Hp(e,t){let r=da("Menu.Button"),n=f.useId(),{id:o=`headlessui-menu-button-${n}`,disabled:a=!1,autoFocus:i=!1,...s}=e,l=f.useRef(null),c=Pf(),u=me(t,l,fl(),H(P=>r.send({type:ue.SetButtonElement,element:P}))),h=H(P=>{switch(P.key){case ae.Space:case ae.Enter:case ae.ArrowDown:P.preventDefault(),P.stopPropagation(),r.send({type:ue.OpenMenu,focus:{focus:be.First}});break;case ae.ArrowUp:P.preventDefault(),P.stopPropagation(),r.send({type:ue.OpenMenu,focus:{focus:be.Last}});break}}),d=H(P=>{switch(P.key){case ae.Space:P.preventDefault();break}}),[p,g,m]=we(r,P=>[P.menuState,P.buttonElement,P.itemsElement]),v=p===Pe.Open;Wc(v,{trigger:g,action:f.useCallback(P=>{if(g!=null&&g.contains(P.target))return yr.Ignore;let N=P.target.closest('[role="menuitem"]:not([data-disabled])');return Oe(N)?yr.Select(N):m!=null&&m.contains(P.target)?yr.Ignore:yr.Close},[g,m]),close:f.useCallback(()=>r.send({type:ue.CloseMenu}),[]),select:f.useCallback(P=>P.click(),[])});let b=yc(P=>{var N;a||(p===Pe.Open?(er.flushSync(()=>r.send({type:ue.CloseMenu})),(N=l.current)==null||N.focus({preventScroll:!0})):(P.preventDefault(),r.send({type:ue.OpenMenu,focus:{focus:be.Nothing},trigger:qr.Pointer})))}),{isFocusVisible:E,focusProps:w}=Lo({autoFocus:i}),{isHovered:_,hoverProps:R}=Mo({isDisabled:a}),{pressed:T,pressProps:O}=Do({disabled:a}),M=_e({open:p===Pe.Open,active:T||p===Pe.Open,disabled:a,hover:_,focus:E,autofocus:i}),k=wt(c(),{ref:u,id:o,type:Go(e,l.current),"aria-haspopup":"menu","aria-controls":m==null?void 0:m.id,"aria-expanded":p===Pe.Open,disabled:a||void 0,autoFocus:i,onKeyDown:h,onKeyUp:d},b,w,R,O);return se()({ourProps:k,theirProps:s,slot:M,defaultTag:Fp,name:"Menu.Button"})}let Bp="div",Wp=Be.RenderStrategy|Be.Static;function Up(e,t){let r=f.useId(),{id:n=`headlessui-menu-items-${r}`,anchor:o,portal:a=!1,modal:i=!0,transition:s=!1,...l}=e,c=dl(o),u=da("Menu.Items"),[h,d]=ml(c),p=pl(),[g,m]=f.useState(null),v=me(t,c?h:null,H(C=>u.send({type:ue.SetItemsElement,element:C})),m),[b,E]=we(u,C=>[C.menuState,C.buttonElement]),w=Rt(E),_=Rt(g);c&&(a=!0);let R=pt(),[T,O]=pr(s,g,R!==null?(R&de.Open)===de.Open:b===Pe.Open);Uo(T,E,()=>{u.send({type:ue.CloseMenu})});let M=we(u,C=>C.__demoMode),k=M?!1:i&&b===Pe.Open;zo(k,_);let P=M?!1:i&&b===Pe.Open;qs(P,{allowed:f.useCallback(()=>[E,g],[E,g])});let N=we(u,u.selectors.didButtonMove)?!1:T;f.useEffect(()=>{let C=g;C&&b===Pe.Open&&(Os(C)||C.focus({preventScroll:!0}))},[b,g]),rd(b===Pe.Open,{container:g,accept(C){return C.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:C.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(C){C.setAttribute("role","none")}});let j=Tt(),$=H(C=>{var L,z,K;switch(j.dispose(),C.key){case ae.Space:if(u.state.searchQuery!=="")return C.preventDefault(),C.stopPropagation(),u.send({type:ue.Search,value:C.key});case ae.Enter:if(C.preventDefault(),C.stopPropagation(),u.state.activeItemIndex!==null){let{dataRef:J}=u.state.items[u.state.activeItemIndex];(z=(L=J.current)==null?void 0:L.domRef.current)==null||z.click()}u.send({type:ue.CloseMenu}),Gs(u.state.buttonElement);break;case ae.ArrowDown:return C.preventDefault(),C.stopPropagation(),u.send({type:ue.GoToItem,focus:be.Next});case ae.ArrowUp:return C.preventDefault(),C.stopPropagation(),u.send({type:ue.GoToItem,focus:be.Previous});case ae.Home:case ae.PageUp:return C.preventDefault(),C.stopPropagation(),u.send({type:ue.GoToItem,focus:be.First});case ae.End:case ae.PageDown:return C.preventDefault(),C.stopPropagation(),u.send({type:ue.GoToItem,focus:be.Last});case ae.Escape:C.preventDefault(),C.stopPropagation(),er.flushSync(()=>u.send({type:ue.CloseMenu})),(K=u.state.buttonElement)==null||K.focus({preventScroll:!0});break;case ae.Tab:C.preventDefault(),C.stopPropagation(),er.flushSync(()=>u.send({type:ue.CloseMenu})),Lc(u.state.buttonElement,C.shiftKey?xe.Previous:xe.Next);break;default:C.key.length===1&&(u.send({type:ue.Search,value:C.key}),j.setTimeout(()=>u.send({type:ue.ClearSearch}),350));break}}),A=H(C=>{switch(C.key){case ae.Space:C.preventDefault();break}}),D=_e({open:b===Pe.Open}),U=wt(c?p():{},{"aria-activedescendant":we(u,u.selectors.activeDescendantId),"aria-labelledby":we(u,C=>{var L;return(L=C.buttonElement)==null?void 0:L.id}),id:n,onKeyDown:$,onKeyUp:A,role:"menu",tabIndex:b===Pe.Open?0:void 0,ref:v,style:{...l.style,...d,"--button-width":Ds(T,E,!0).width},...fr(O)}),q=se();return f.createElement(ea,{enabled:a?e.static||T:!1,ownerDocument:w},q({ourProps:U,theirProps:l,slot:D,defaultTag:Bp,features:Wp,visible:N,name:"Menu.Items"}))}let Vp=f.Fragment;function qp(e,t){let r=f.useId(),{id:n=`headlessui-menu-item-${r}`,disabled:o=!1,...a}=e,i=da("Menu.Item"),s=we(i,N=>i.selectors.isActive(N,n)),l=f.useRef(null),c=me(t,l),u=we(i,N=>i.selectors.shouldScrollIntoView(N,n));ce(()=>{if(u)return ke().requestAnimationFrame(()=>{var N,j;(j=(N=l.current)==null?void 0:N.scrollIntoView)==null||j.call(N,{block:"nearest"})})},[u,l]);let h=jp(l),d=f.useRef({disabled:o,domRef:l,get textValue(){return h()}});ce(()=>{d.current.disabled=o},[d,o]),ce(()=>(i.actions.registerItem(n,d),()=>i.actions.unregisterItem(n)),[d,n]);let p=H(()=>{i.send({type:ue.CloseMenu})}),g=H(N=>{if(o)return N.preventDefault();i.send({type:ue.CloseMenu}),Gs(i.state.buttonElement)}),m=H(()=>{if(o)return i.send({type:ue.GoToItem,focus:be.Nothing});i.send({type:ue.GoToItem,focus:be.Specific,id:n})}),v=Yc(),b=H(N=>v.update(N)),E=H(N=>{v.wasMoved(N)&&(o||s||i.send({type:ue.GoToItem,focus:be.Specific,id:n,trigger:qr.Pointer}))}),w=H(N=>{v.wasMoved(N)&&(o||s&&i.state.activationTrigger===qr.Pointer&&i.send({type:ue.GoToItem,focus:be.Nothing}))}),[_,R]=Ls(),[T,O]=Ms(),M=_e({active:s,focus:s,disabled:o,close:p}),k={id:n,ref:c,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-labelledby":_,"aria-describedby":T,disabled:void 0,onClick:g,onFocus:m,onPointerEnter:b,onMouseEnter:b,onPointerMove:E,onMouseMove:E,onPointerLeave:w,onMouseLeave:w},P=se();return f.createElement(R,null,f.createElement(O,null,P({ourProps:k,theirProps:a,slot:M,defaultTag:Vp,name:"Menu.Item"})))}let Gp="div";function zp(e,t){let[r,n]=Ls(),o=e,a={ref:t,"aria-labelledby":r,role:"group"},i=se();return f.createElement(n,null,i({ourProps:a,theirProps:o,slot:{},defaultTag:Gp,name:"Menu.Section"}))}let Xp="header";function Yp(e,t){let r=f.useId(),{id:n=`headlessui-menu-heading-${r}`,...o}=e,a=Bo();ce(()=>a.register(n),[n,a.register]);let i={id:n,ref:t,role:"presentation",...a.props};return se()({ourProps:i,theirProps:o,slot:{},defaultTag:Xp,name:"Menu.Heading"})}let Kp="div";function Qp(e,t){let r=e,n={ref:t,role:"separator"};return se()({ourProps:n,theirProps:r,slot:{},defaultTag:Kp,name:"Menu.Separator"})}let Zp=ne(Dp),Ll=ne(Hp),Dl=ne(Up),$r=ne(qp),Jp=ne(zp),em=ne(Yp),tm=ne(Qp),rm=Object.assign(Zp,{Button:Ll,Items:Dl,Item:$r,Section:Jp,Heading:em,Separator:tm});var nm=Object.defineProperty,om=(e,t,r)=>t in e?nm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gi=(e,t,r)=>(om(e,typeof t!="symbol"?t+"":t,r),r),ye=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ye||{}),am=(e=>(e[e.OpenPopover=0]="OpenPopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(am||{});let im={0:e=>e.popoverState===0?e:{...e,popoverState:0,__demoMode:!1},1(e){return e.popoverState===1?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}};class fa extends Wo{constructor(t){super(t),gi(this,"actions",{close:()=>this.send({type:1}),refocusableClose:r=>{this.actions.close();let n=r?Oe(r)?r:"current"in r&&Oe(r.current)?r.current:this.state.button:this.state.button;n==null||n.focus()},open:()=>this.send({type:0}),setButtonId:r=>this.send({type:3,buttonId:r}),setButton:r=>this.send({type:2,button:r}),setPanelId:r=>this.send({type:5,panelId:r}),setPanel:r=>this.send({type:4,panel:r})}),gi(this,"selectors",{isPortalled:r=>{var n;if(!r.button||!r.panel)return!1;let o=(n=nt(r.button))!=null?n:document;for(let h of o.querySelectorAll("body > *"))if(Number(h==null?void 0:h.contains(r.button))^Number(h==null?void 0:h.contains(r.panel)))return!0;let a=dr(o),i=a.indexOf(r.button),s=(i+a.length-1)%a.length,l=(i+1)%a.length,c=a[s],u=a[l];return!r.panel.contains(c)&&!r.panel.contains(u)}});{let r=this.state.id,n=ur.get(null);this.on(0,()=>n.actions.push(r)),this.on(1,()=>n.actions.pop(r))}}static new({id:t,__demoMode:r=!1}){return new fa({id:t,__demoMode:r,popoverState:r?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(t,r){return Ee(r.type,im,t,r)}}const Fl=f.createContext(null);function pn(e){let t=f.useContext(Fl);if(t===null){let r=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,pn),r}return t}function sm({id:e,__demoMode:t=!1}){let r=f.useMemo(()=>fa.new({id:e,__demoMode:t}),[]);return sn(()=>r.dispose()),r}let pa=f.createContext(null);pa.displayName="PopoverGroupContext";function Hl(){return f.useContext(pa)}let mn=f.createContext(null);mn.displayName="PopoverPanelContext";function lm(){return f.useContext(mn)}let um="div";function cm(e,t){var r;let n=f.useId(),{__demoMode:o=!1,...a}=e,i=sm({id:n,__demoMode:o}),s=f.useRef(null),l=me(t,Fo(A=>{s.current=A})),[c,u,h,d,p]=we(i,f.useCallback(A=>[A.popoverState,A.button,A.panel,A.buttonId,A.panelId],[])),g=Fc((r=s.current)!=null?r:u),m=tt(d),v=tt(p),b=f.useMemo(()=>({buttonId:m,panelId:v,close:i.actions.close}),[m,v,i]),E=Hl(),w=E==null?void 0:E.registerPopover,_=H(()=>{var A,D;let U=ut((A=s.current)!=null?A:u);return(D=E==null?void 0:E.isFocusWithinPopoverGroup())!=null?D:U&&((u==null?void 0:u.contains(U))||(h==null?void 0:h.contains(U)))});f.useEffect(()=>w==null?void 0:w(b),[w,b]);let[R,T]=El(),O=ta(u),M=_l({mainTreeNode:O,portals:R,defaultContainers:[{get current(){return i.state.button}},{get current(){return i.state.panel}}]});qo(g,"focus",A=>{var D,U,q,C,L,z;A.target!==window&&Ie(A.target)&&i.state.popoverState===ye.Open&&(_()||i.state.button&&i.state.panel&&(M.contains(A.target)||(U=(D=i.state.beforePanelSentinel.current)==null?void 0:D.contains)!=null&&U.call(D,A.target)||(C=(q=i.state.afterPanelSentinel.current)==null?void 0:q.contains)!=null&&C.call(q,A.target)||(z=(L=i.state.afterButtonSentinel.current)==null?void 0:L.contains)!=null&&z.call(L,A.target)||i.actions.close()))},!0);let k=c===ye.Open;Vo(k,M.resolveContainers,(A,D)=>{i.actions.close(),Zr(D,Qr.Loose)||(A.preventDefault(),u==null||u.focus())});let P=_e({open:c===ye.Open,close:i.actions.refocusableClose}),N=we(i,f.useCallback(A=>Ee(A.popoverState,{[ye.Open]:de.Open,[ye.Closed]:de.Closed}),[])),j={ref:l},$=se();return f.createElement(Ur,{node:O},f.createElement(hl,null,f.createElement(mn.Provider,{value:null},f.createElement(Fl.Provider,{value:i},f.createElement(Kr,{value:i.actions.refocusableClose},f.createElement(an,{value:N},f.createElement(T,null,$({ourProps:j,theirProps:a,slot:P,defaultTag:um,name:"Popover"}))))))))}let dm="button";function fm(e,t){let r=f.useId(),{id:n=`headlessui-popover-button-${r}`,disabled:o=!1,autoFocus:a=!1,...i}=e,s=pn("Popover.Button"),[l,c,u,h,d,p,g]=we(s,f.useCallback(B=>[B.popoverState,s.selectors.isPortalled(B),B.button,B.buttonId,B.panel,B.panelId,B.afterButtonSentinel],[])),m=f.useRef(null),v=`headlessui-focus-sentinel-${f.useId()}`,b=Hl(),E=b==null?void 0:b.closeOthers,w=lm()!==null;f.useEffect(()=>{if(!w)return s.actions.setButtonId(n),()=>s.actions.setButtonId(null)},[w,n,s]);let[_]=f.useState(()=>Symbol()),R=me(m,t,fl(),H(B=>{if(!w){if(B)s.state.buttons.current.push(_);else{let V=s.state.buttons.current.indexOf(_);V!==-1&&s.state.buttons.current.splice(V,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),B&&s.actions.setButton(B)}})),T=me(m,t),O=H(B=>{var V,ee,Q;if(w){if(s.state.popoverState===ye.Closed)return;switch(B.key){case ae.Space:case ae.Enter:B.preventDefault(),(ee=(V=B.target).click)==null||ee.call(V),s.actions.close(),(Q=s.state.button)==null||Q.focus();break}}else switch(B.key){case ae.Space:case ae.Enter:B.preventDefault(),B.stopPropagation(),s.state.popoverState===ye.Closed?(E==null||E(s.state.buttonId),s.actions.open()):s.actions.close();break;case ae.Escape:if(s.state.popoverState!==ye.Open)return E==null?void 0:E(s.state.buttonId);if(!m.current)return;let fe=ut(m.current);if(fe&&!m.current.contains(fe))return;B.preventDefault(),B.stopPropagation(),s.actions.close();break}}),M=H(B=>{w||B.key===ae.Space&&B.preventDefault()}),k=H(B=>{var V,ee;nr(B.currentTarget)||o||(w?(s.actions.close(),(V=s.state.button)==null||V.focus()):(B.preventDefault(),B.stopPropagation(),s.state.popoverState===ye.Closed?(E==null||E(s.state.buttonId),s.actions.open()):s.actions.close(),(ee=s.state.button)==null||ee.focus()))}),P=H(B=>{B.preventDefault(),B.stopPropagation()}),{isFocusVisible:N,focusProps:j}=Lo({autoFocus:a}),{isHovered:$,hoverProps:A}=Mo({isDisabled:o}),{pressed:D,pressProps:U}=Do({disabled:o}),q=l===ye.Open,C=_e({open:q,active:D||q,disabled:o,hover:$,focus:N,autofocus:a}),L=Go(e,u),z=wt(w?{ref:T,type:L,onKeyDown:O,onClick:k,disabled:o||void 0,autoFocus:a}:{ref:R,id:h,type:L,"aria-expanded":l===ye.Open,"aria-controls":d?p:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:O,onKeyUp:M,onClick:k,onMouseDown:P},j,A,U),K=na(),J=H(()=>{if(!Oe(s.state.panel))return;let B=s.state.panel;function V(){Ee(K.current,{[Me.Forwards]:()=>$e(B,xe.First),[Me.Backwards]:()=>$e(B,xe.Last)})===Dt.Error&&$e(dr(lt(s.state.button)).filter(ee=>ee.dataset.headlessuiFocusGuard!=="true"),Ee(K.current,{[Me.Forwards]:xe.Next,[Me.Backwards]:xe.Previous}),{relativeTo:s.state.button})}V()}),F=se();return f.createElement(f.Fragment,null,F({ourProps:z,theirProps:i,slot:C,defaultTag:dm,name:"Popover.Button"}),q&&!w&&c&&f.createElement(Lt,{id:v,ref:g,features:_t.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:J}))}let pm="div",mm=Be.RenderStrategy|Be.Static;function Bl(e,t){let r=f.useId(),{id:n=`headlessui-popover-backdrop-${r}`,transition:o=!1,...a}=e,i=pn("Popover.Backdrop"),s=we(i,f.useCallback(b=>b.popoverState,[])),[l,c]=f.useState(null),u=me(t,c),h=pt(),[d,p]=pr(o,l,h!==null?(h&de.Open)===de.Open:s===ye.Open),g=H(b=>{if(nr(b.currentTarget))return b.preventDefault();i.actions.close()}),m=_e({open:s===ye.Open}),v={ref:u,id:n,"aria-hidden":!0,onClick:g,...fr(p)};return se()({ourProps:v,theirProps:a,slot:m,defaultTag:pm,features:mm,visible:d,name:"Popover.Backdrop"})}let hm="div",gm=Be.RenderStrategy|Be.Static;function vm(e,t){let r=f.useId(),{id:n=`headlessui-popover-panel-${r}`,focus:o=!1,anchor:a,portal:i=!1,modal:s=!1,transition:l=!1,...c}=e,u=pn("Popover.Panel"),h=we(u,u.selectors.isPortalled),[d,p,g,m,v]=we(u,f.useCallback(F=>[F.popoverState,F.button,F.__demoMode,F.beforePanelSentinel,F.afterPanelSentinel],[])),b=`headlessui-focus-sentinel-before-${r}`,E=`headlessui-focus-sentinel-after-${r}`,w=f.useRef(null),_=dl(a),[R,T]=ml(_),O=pl();_&&(i=!0);let[M,k]=f.useState(null),P=me(w,t,_?R:null,u.actions.setPanel,k),N=Rt(p),j=Rt(w.current);ce(()=>(u.actions.setPanelId(n),()=>u.actions.setPanelId(null)),[n,u]);let $=pt(),[A,D]=pr(l,M,$!==null?($&de.Open)===de.Open:d===ye.Open);Uo(A,p,u.actions.close),zo(g?!1:s&&A,j);let U=H(F=>{var B;switch(F.key){case ae.Escape:if(u.state.popoverState!==ye.Open||!w.current)return;let V=ut(w.current);if(V&&!w.current.contains(V))return;F.preventDefault(),F.stopPropagation(),u.actions.close(),(B=u.state.button)==null||B.focus();break}});f.useEffect(()=>{var F;e.static||d===ye.Closed&&((F=e.unmount)==null||F)&&u.actions.setPanel(null)},[d,e.unmount,e.static,u]),f.useEffect(()=>{if(g||!o||d!==ye.Open||!w.current)return;let F=ut(w.current);w.current.contains(F)||$e(w.current,xe.First)},[g,o,w.current,d]);let q=_e({open:d===ye.Open,close:u.actions.refocusableClose}),C=wt(_?O():{},{ref:P,id:n,onKeyDown:U,onBlur:o&&d===ye.Open?F=>{var B,V,ee,Q,fe;let G=F.relatedTarget;G&&w.current&&((B=w.current)!=null&&B.contains(G)||(u.actions.close(),((ee=(V=m.current)==null?void 0:V.contains)!=null&&ee.call(V,G)||(fe=(Q=v.current)==null?void 0:Q.contains)!=null&&fe.call(Q,G))&&G.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...c.style,...T,"--button-width":Ds(A,p,!0).width},...fr(D)}),L=na(),z=H(()=>{let F=w.current;if(!F)return;function B(){Ee(L.current,{[Me.Forwards]:()=>{var V;$e(F,xe.First)===Dt.Error&&((V=u.state.afterPanelSentinel.current)==null||V.focus())},[Me.Backwards]:()=>{var V;(V=u.state.button)==null||V.focus({preventScroll:!0})}})}B()}),K=H(()=>{let F=w.current;if(!F)return;function B(){Ee(L.current,{[Me.Forwards]:()=>{var V;if(!u.state.button)return;let ee=(V=lt(u.state.button))!=null?V:document.body,Q=dr(ee),fe=Q.indexOf(u.state.button),G=Q.slice(0,fe+1),Ce=[...Q.slice(fe+1),...G];for(let Re of Ce.slice())if(Re.dataset.headlessuiFocusGuard==="true"||M!=null&&M.contains(Re)){let he=Ce.indexOf(Re);he!==-1&&Ce.splice(he,1)}$e(Ce,xe.First,{sorted:!1})},[Me.Backwards]:()=>{var V;$e(F,xe.Previous)===Dt.Error&&((V=u.state.button)==null||V.focus())}})}B()}),J=se();return f.createElement(Jo,null,f.createElement(mn.Provider,{value:n},f.createElement(Kr,{value:u.actions.refocusableClose},f.createElement(ea,{enabled:i?e.static||A:!1,ownerDocument:N},A&&h&&f.createElement(Lt,{id:b,ref:m,features:_t.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:z}),J({ourProps:C,theirProps:c,slot:q,defaultTag:hm,features:gm,visible:A,name:"Popover.Panel"}),A&&h&&f.createElement(Lt,{id:E,ref:v,features:_t.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:K})))))}let bm="div";function ym(e,t){let r=f.useRef(null),n=me(r,t),[o,a]=f.useState([]),i=H(m=>{a(v=>{let b=v.indexOf(m);if(b!==-1){let E=v.slice();return E.splice(b,1),E}return v})}),s=H(m=>(a(v=>[...v,m]),()=>i(m))),l=H(()=>{var m;let v=lt(r.current);if(!v)return!1;let b=ut(r.current);return(m=r.current)!=null&&m.contains(b)?!0:o.some(E=>{var w,_;return((w=v.getElementById(E.buttonId.current))==null?void 0:w.contains(b))||((_=v.getElementById(E.panelId.current))==null?void 0:_.contains(b))})}),c=H(m=>{for(let v of o)v.buttonId.current!==m&&v.close()}),u=f.useMemo(()=>({registerPopover:s,unregisterPopover:i,isFocusWithinPopoverGroup:l,closeOthers:c}),[s,i,l,c]),h=_e({}),d=e,p={ref:n},g=se();return f.createElement(Ur,null,f.createElement(pa.Provider,{value:u},g({ourProps:p,theirProps:d,slot:h,defaultTag:bm,name:"Popover.Group"})))}let Em=ne(cm),Ht=ne(fm),xm=ne(Bl),wm=ne(Bl),Bt=ne(vm),ma=ne(ym),sr=Object.assign(Em,{Button:Ht,Backdrop:wm,Overlay:xm,Panel:Bt,Group:ma});function _m({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Rm=S.forwardRef(_m);function Pm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const ha=S.forwardRef(Pm);function Sm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"}))}const vi=S.forwardRef(Sm);function Tm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 14.15v4.25c0 1.094-.787 2.036-1.872 2.18-2.087.277-4.216.42-6.378.42s-4.291-.143-6.378-.42c-1.085-.144-1.872-1.086-1.872-2.18v-4.25m16.5 0a2.18 2.18 0 0 0 .75-1.661V8.706c0-1.081-.768-2.015-1.837-2.175a48.114 48.114 0 0 0-3.413-.387m4.5 8.006c-.194.165-.42.295-.673.38A23.978 23.978 0 0 1 12 15.75c-2.648 0-5.195-.429-7.577-1.22a2.016 2.016 0 0 1-.673-.38m0 0A2.18 2.18 0 0 1 3 12.489V8.706c0-1.081.768-2.015 1.837-2.175a48.111 48.111 0 0 1 3.413-.387m7.5 0V5.25A2.25 2.25 0 0 0 13.5 3h-3a2.25 2.25 0 0 0-2.25 2.25v.894m7.5 0a48.667 48.667 0 0 0-7.5 0M12 12.75h.008v.008H12v-.008Z"}))}const Om=S.forwardRef(Tm);function Nm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"}),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"}))}const Cm=S.forwardRef(Nm);function Am({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59"}))}const jm=S.forwardRef(Am);function km({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"}))}const Im=S.forwardRef(km);function $m({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const bi=S.forwardRef($m);function Mm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Lm=S.forwardRef(Mm);function Dm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"}))}const Fm=S.forwardRef(Dm);function Hm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Bm=S.forwardRef(Hm);function Wm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const Um=S.forwardRef(Wm);function Vm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"}))}const qm=S.forwardRef(Vm);function Gm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Gr=S.forwardRef(Gm);function zm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Wt=S.forwardRef(zm);function Xm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{fillRule:"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2h1.148a1.5 1.5 0 0 1 1.465 1.175l.716 3.223a1.5 1.5 0 0 1-1.052 1.767l-.933.267c-.41.117-.643.555-.48.95a11.542 11.542 0 0 0 6.254 6.254c.395.163.833-.07.95-.48l.267-.933a1.5 1.5 0 0 1 1.767-1.052l3.223.716A1.5 1.5 0 0 1 18 15.352V16.5a1.5 1.5 0 0 1-1.5 1.5H15c-1.149 0-2.263-.15-3.326-.43A13.022 13.022 0 0 1 2.43 8.326 13.019 13.019 0 0 1 2 5V3.5Z",clipRule:"evenodd"}))}const Ym=S.forwardRef(Xm);function Km({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{fillRule:"evenodd",d:"M2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm6.39-2.908a.75.75 0 0 1 .766.027l3.5 2.25a.75.75 0 0 1 0 1.262l-3.5 2.25A.75.75 0 0 1 8 12.25v-4.5a.75.75 0 0 1 .39-.658Z",clipRule:"evenodd"}))}const Qm=S.forwardRef(Km);function Zm({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{d:"M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"}))}const Jm=S.forwardRef(Zm);function eh({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{fillRule:"evenodd",d:"M14.5 10a4.5 4.5 0 0 0 4.284-5.882c-.105-.324-.51-.391-.752-.15L15.34 6.66a.454.454 0 0 1-.493.11 3.01 3.01 0 0 1-1.618-1.616.455.455 0 0 1 .11-.494l2.694-2.692c.24-.241.174-.647-.15-.752a4.5 4.5 0 0 0-5.873 4.575c.055.873-.128 1.808-.8 2.368l-7.23 6.024a2.724 2.724 0 1 0 3.837 3.837l6.024-7.23c.56-.672 1.495-.855 2.368-.8.096.007.193.01.291.01ZM5 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}),S.createElement("path",{d:"M14.5 11.5c.173 0 .345-.007.514-.022l3.754 3.754a2.5 2.5 0 0 1-3.536 3.536l-4.41-4.41 2.172-2.607c.052-.063.147-.138.342-.196.202-.06.469-.087.777-.067.128.008.257.012.387.012ZM6 4.586l2.33 2.33a.452.452 0 0 1-.08.09L6.8 8.214 4.586 6H3.309a.5.5 0 0 1-.447-.276l-1.7-3.402a.5.5 0 0 1 .093-.577l.49-.49a.5.5 0 0 1 .577-.094l3.402 1.7A.5.5 0 0 1 6 3.31v1.277Z"}))}const th=S.forwardRef(eh),yi=[{name:"Analytics",description:"Get a better understanding of your traffic",href:"#",icon:Cm},{name:"Engagement",description:"Speak directly to your customers",href:"#",icon:jm},{name:"Security",description:"Your customers’ data will be safe and secure",href:"#",icon:Im},{name:"Integrations",description:"Connect with third-party tools",href:"#",icon:qm},{name:"Automations",description:"Build strategic funnels that will convert",href:"#",icon:Rm}],rh=[{name:"Watch demo",href:"#",icon:Qm},{name:"Contact sales",href:"#",icon:Ym}],Ei=[{name:"About us",href:"#",description:"Learn more about our company values and mission to empower others"},{name:"Careers",href:"#",description:"Looking for you next career opportunity? See all of our open positions"},{name:"Support",href:"#",description:"Get in touch with our dedicated support team or reach out on our community forums"},{name:"Blog",href:"#",description:"Read our latest announcements and get perspectives from our team"}];function nh(){const[e,t]=f.useState(!1);return y.jsxs("header",{className:"bg-white dark:bg-gray-900",children:[y.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[y.jsx("div",{className:"flex lg:flex-1",children:y.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[y.jsx("span",{className:"sr-only",children:"Your Company"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]})}),y.jsx("div",{className:"flex lg:hidden",children:y.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(ha,{"aria-hidden":"true",className:"size-6"})]})}),y.jsxs(ma,{className:"hidden lg:flex lg:gap-x-12",children:[y.jsxs(sr,{className:"relative",children:[y.jsxs(Ht,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Product",y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),y.jsxs(Bt,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx("div",{className:"p-4",children:yi.map(r=>y.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:y.jsx(r.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-400 dark:group-hover:text-white"})}),y.jsxs("div",{className:"flex-auto",children:[y.jsxs("a",{href:r.href,className:"block font-semibold text-gray-900 dark:text-white",children:[r.name,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:r.description})]})]},r.name))}),y.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:rh.map(r=>y.jsxs("a",{href:r.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[y.jsx(r.icon,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"}),r.name]},r.name))})]})]}),y.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Features"}),y.jsx("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:"Marketplace"}),y.jsxs(sr,{className:"relative",children:[y.jsxs(Ht,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Company",y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none text-gray-400 dark:text-gray-500"})]}),y.jsx(Bt,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-96 -translate-x-1/2 rounded-3xl bg-white p-4 shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:-outline-offset-1 dark:outline-white/10",children:Ei.map(r=>y.jsxs("div",{className:"relative rounded-lg p-4 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsxs("a",{href:r.href,className:"block text-sm/6 font-semibold text-gray-900 dark:text-white",children:[r.name,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-sm/6 text-gray-600 dark:text-gray-400",children:r.description})]},r.name))})]})]}),y.jsx("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:y.jsxs("a",{href:"#",className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]})})]}),y.jsxs(Ao,{open:e,onClose:t,className:"lg:hidden",children:[y.jsx("div",{className:"fixed inset-0 z-10"}),y.jsxs(Vr,{className:"fixed inset-y-0 right-0 z-10 flex w-full flex-col justify-between overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-gray-900 dark:sm:ring-white/10",children:[y.jsxs("div",{className:"p-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("a",{href:"#",className:"-m-1.5 p-1.5",children:[y.jsx("span",{className:"sr-only",children:"Your Company"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),y.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-gray-400",children:[y.jsx("span",{className:"sr-only",children:"Close menu"}),y.jsx(Gr,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsx("div",{className:"mt-6 flow-root",children:y.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10 dark:divide-white/10",children:[y.jsx("div",{className:"space-y-2 py-6",children:yi.map(r=>y.jsxs("a",{href:r.href,className:"group -mx-3 flex items-center gap-x-6 rounded-lg p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-700",children:y.jsx(r.icon,{"aria-hidden":"true",className:"size-6 text-gray-600 group-hover:text-indigo-600 dark:text-gray-300 dark:group-hover:text-white"})}),r.name]},r.name))}),y.jsxs("div",{className:"space-y-2 py-6",children:[y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Features"}),y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Marketplace"}),Ei.map(r=>y.jsx("a",{href:r.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:r.name},r.name))]}),y.jsx("div",{className:"py-6",children:y.jsx("a",{href:"#",className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50 dark:text-white dark:hover:bg-white/5",children:"Log in"})})]})})]}),y.jsx("div",{className:"sticky bottom-0 grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 text-center dark:divide-white/5 dark:bg-gray-800/50",children:item.ctas.map(r=>y.jsx("a",{href:r.href,className:"p-3 text-base/7 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-800",children:r.title},r.title))})]})]})]})}function oh(){return y.jsxs(kl,{as:"nav",className:"relative bg-white shadow dark:bg-gray-800/50 dark:shadow-none dark:after:pointer-events-none dark:after:absolute dark:after:inset-x-0 dark:after:bottom-0 dark:after:h-px dark:after:bg-white/10",children:[y.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:y.jsxs("div",{className:"flex h-16 justify-between",children:[y.jsxs("div",{className:"flex",children:[y.jsx("div",{className:"-ml-2 mr-2 flex items-center md:hidden",children:y.jsxs(Ue,{className:"group relative inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-600 dark:hover:bg-white/5 dark:hover:text-white dark:focus:ring-white",children:[y.jsx("span",{className:"absolute -inset-0.5"}),y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(ha,{"aria-hidden":"true",className:"block size-6 group-data-[open]:hidden"}),y.jsx(Gr,{"aria-hidden":"true",className:"hidden size-6 group-data-[open]:block"})]})}),y.jsxs("div",{className:"flex shrink-0 items-center",children:[y.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=600",className:"h-8 w-auto dark:hidden"}),y.jsx("img",{alt:"Your Company",src:"https://tailwindcss.com/plus-assets/img/logos/mark.svg?color=indigo&shade=500",className:"hidden h-8 w-auto dark:block"})]}),y.jsxs("div",{className:"hidden md:ml-6 md:flex md:space-x-8",children:[y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-indigo-600 px-1 pt-1 text-sm font-medium text-gray-900 dark:border-indigo-500 dark:text-white",children:"Dashboard"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Team"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Projects"}),y.jsx("a",{href:"#",className:"inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-300 dark:hover:border-white/20 dark:hover:text-white",children:"Calendar"})]})]}),y.jsxs("div",{className:"flex items-center",children:[y.jsx("div",{className:"shrink-0",children:y.jsxs("button",{type:"button",className:"relative inline-flex items-center gap-x-1.5 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:bg-indigo-500 dark:shadow-none dark:hover:bg-indigo-400 dark:focus-visible:outline-indigo-500",children:[y.jsx(Jm,{"aria-hidden":"true",className:"-ml-0.5 size-5"}),"New Job"]})}),y.jsxs("div",{className:"hidden md:ml-4 md:flex md:shrink-0 md:items-center",children:[y.jsxs("button",{type:"button",className:"relative rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"View notifications"}),y.jsx(vi,{"aria-hidden":"true",className:"size-6"})]}),y.jsxs(rm,{as:"div",className:"relative ml-3",children:[y.jsxs(Ll,{className:"relative flex rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"Open user menu"}),y.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-8 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})]}),y.jsxs(Dl,{transition:!0,className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg outline outline-1 outline-black/5 transition data-[closed]:scale-95 data-[closed]:transform data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-75 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx($r,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Your profile"})}),y.jsx($r,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Settings"})}),y.jsx($r,{children:y.jsx("a",{href:"#",className:"block px-4 py-2 text-sm text-gray-700 data-[focus]:bg-gray-100 data-[focus]:outline-none dark:text-gray-300 dark:data-[focus]:bg-white/5",children:"Sign out"})})]})]})]})]})]})}),y.jsxs(ca,{className:"md:hidden",children:[y.jsxs("div",{className:"space-y-1 pb-3 pt-2",children:[y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-indigo-600 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700 sm:pl-5 sm:pr-6 dark:border-indigo-500 dark:bg-indigo-600/10 dark:text-indigo-400",children:"Dashboard"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Team"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Projects"}),y.jsx(Ue,{as:"a",href:"#",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 sm:pl-5 sm:pr-6 dark:text-gray-300 dark:hover:border-white/20 dark:hover:bg-white/5 dark:hover:text-white",children:"Calendar"})]}),y.jsxs("div",{className:"border-t border-gray-200 pb-3 pt-4 dark:border-white/10",children:[y.jsxs("div",{className:"flex items-center px-4 sm:px-6",children:[y.jsx("div",{className:"shrink-0",children:y.jsx("img",{alt:"",src:"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",className:"size-10 rounded-full bg-gray-100 outline outline-1 -outline-offset-1 outline-black/5 dark:bg-gray-800 dark:outline-white/10"})}),y.jsxs("div",{className:"ml-3",children:[y.jsx("div",{className:"text-base font-medium text-gray-800 dark:text-white",children:"Tom Cook"}),y.jsx("div",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"tom@example.com"})]}),y.jsxs("button",{type:"button",className:"relative ml-auto shrink-0 rounded-full p-1 text-gray-400 hover:text-gray-500 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-indigo-600 dark:hover:text-white dark:focus:outline-indigo-500",children:[y.jsx("span",{className:"absolute -inset-1.5"}),y.jsx("span",{className:"sr-only",children:"View notifications"}),y.jsx(vi,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsxs("div",{className:"mt-3 space-y-1",children:[y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Your profile"}),y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Settings"}),y.jsx(Ue,{as:"a",href:"#",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800 dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",children:"Sign out"})]})]})]})]})}var jo={exports:{}},ga={};function Wl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Wl=function(n){return n?r:t})(e)}function ah(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Wl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}ga._=ah;var wr={exports:{}},kn={},xi;function Ul(){return xi||(xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}});function r(i){const s={};for(const[l,c]of i.entries()){const u=s[l];typeof u>"u"?s[l]=c:Array.isArray(u)?u.push(c):s[l]=[u,c]}return s}function n(i){return typeof i=="string"?i:typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function o(i){const s=new URLSearchParams;for(const[l,c]of Object.entries(i))if(Array.isArray(c))for(const u of c)s.append(l,n(u));else s.set(l,n(c));return s}function a(i,...s){for(const l of s){for(const c of l.keys())i.delete(c);for(const[c,u]of l.entries())i.append(c,u)}return i}}(kn)),kn}var In={},wi;function Vl(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}});const n=ga._(Ul()),o=/https?|ftp|gopher|file/;function a(l){let{auth:c,hostname:u}=l,h=l.protocol||"",d=l.pathname||"",p=l.hash||"",g=l.query||"",m=!1;c=c?encodeURIComponent(c).replace(/%3A/i,":")+"@":"",l.host?m=c+l.host:u&&(m=c+(~u.indexOf(":")?`[${u}]`:u),l.port&&(m+=":"+l.port)),g&&typeof g=="object"&&(g=String(n.urlQueryToSearchParams(g)));let v=l.search||g&&`?${g}`||"";return h&&!h.endsWith(":")&&(h+=":"),l.slashes||(!h||o.test(h))&&m!==!1?(m="//"+(m||""),d&&d[0]!=="/"&&(d="/"+d)):m||(m=""),p&&p[0]!=="#"&&(p="#"+p),v&&v[0]!=="?"&&(v="?"+v),d=d.replace(/[?#]/g,encodeURIComponent),v=v.replace("#","%23"),`${h}${m}${d}${v}${p}`}const i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(l){return process.env.NODE_ENV==="development"&&l!==null&&typeof l=="object"&&Object.keys(l).forEach(c=>{i.includes(c)||console.warn(`Unknown key passed via urlObject into url.format: ${c}`)}),a(l)}}(In)),In}var $n={},_i;function ih(){return _i||(_i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(r,n){const o={};return Object.keys(r).forEach(a=>{n.includes(a)||(o[a]=r[a])}),o}}($n)),$n}var Mn={},Ri;function hn(){return Ri||(Ri=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,R){for(var T in R)Object.defineProperty(_,T,{enumerable:!0,get:R[T]})}t(e,{DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return b},NormalizeError:function(){return m},PageNotFoundError:function(){return v},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return w}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(_){let R=!1,T;return(...O)=>(R||(R=!0,T=_(...O)),T)}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=_=>o.test(_);function i(){const{protocol:_,hostname:R,port:T}=window.location;return`${_}//${R}${T?":"+T:""}`}function s(){const{href:_}=window.location,R=i();return _.substring(R.length)}function l(_){return typeof _=="string"?_:_.displayName||_.name||"Unknown"}function c(_){return _.finished||_.headersSent}function u(_){const R=_.split("?");return R[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(R[1]?`?${R.slice(1).join("?")}`:"")}async function h(_,R){var M;if(process.env.NODE_ENV!=="production"&&(M=_.prototype)!=null&&M.getInitialProps){const k=`"${l(_)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}const T=R.res||R.ctx&&R.ctx.res;if(!_.getInitialProps)return R.ctx&&R.Component?{pageProps:await h(R.Component,R.ctx)}:{};const O=await _.getInitialProps(R);if(T&&c(T))return O;if(!O){const k=`"${l(_)}.getInitialProps()" should resolve to an object. But found "${O}" instead.`;throw Object.defineProperty(new Error(k),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}return process.env.NODE_ENV!=="production"&&Object.keys(O).length===0&&!R.ctx&&console.warn(`${l(_)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`),O}const d=typeof performance<"u",p=d&&["mark","measure","getEntriesByName"].every(_=>typeof performance[_]=="function");class g extends Error{}class m extends Error{}class v extends Error{constructor(R){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${R}`}}class b extends Error{constructor(R,T){super(),this.message=`Failed to load static file for page: ${R} ${T}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(_){return JSON.stringify({message:_.message,stack:_.stack})}}(Mn)),Mn}var _r={exports:{}},Ln={},Pi;function ql(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.replace(/\/$/,"")||"/"}}(Ln)),Ln}var Dn={},Si;function va(){return Si||(Si=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(r){const n=r.indexOf("#"),o=r.indexOf("?"),a=o>-1&&(n<0||o<n);return a||n>-1?{pathname:r.substring(0,a?o:n),query:a?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}}(Dn)),Dn}var Ti;function gn(){return Ti||(Ti=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=ql(),n=va(),o=a=>{if(!a.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:s,hash:l}=(0,n.parsePath)(a);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?`${(0,r.removeTrailingSlash)(i)}${s}${l}`:i.endsWith("/")?`${i}${s}${l}`:`${i}/${s}${l}`:`${(0,r.removeTrailingSlash)(i)}${s}${l}`};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(_r,_r.exports)),_r.exports}var Fn={},Rr={exports:{}},Hn={},Oi;function Gl(){return Oi||(Oi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const t=va();function r(n,o){if(typeof n!="string")return!1;const{pathname:a}=(0,t.parsePath)(n);return a===o||a.startsWith(o+"/")}}(Hn)),Hn}var Ni;function sh(){return Ni||(Ni=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=Gl(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a){return(0,r.pathHasPrefix)(a,n)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Rr,Rr.exports)),Rr.exports}var Ci;function zl(){return Ci||(Ci=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});const t=hn(),r=sh();function n(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(o,a);return i.origin===a&&(0,r.hasBasePath)(i.pathname)}catch{return!1}}}(Fn)),Fn}var Bn={},Wn={},Ai;function lh(){return Ai||(Ai=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i="/"){const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const l=s.map(c=>this.children.get(c)._smoosh(`${i}${c}/`)).reduce((c,u)=>[...c,...u],[]);if(this.slugName!==null&&l.push(...this.children.get("[]")._smoosh(`${i}[${this.slugName}]/`)),!this.placeholder){const c=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${c}" and "${c}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});l.unshift(c)}return this.restSlugName!==null&&l.push(...this.children.get("[...]")._smoosh(`${i}[...${this.restSlugName}]/`)),this.optionalRestSlugName!==null&&l.push(...this.children.get("[[...]]")._smoosh(`${i}[[...${this.optionalRestSlugName}]]/`)),l}_insert(i,s,l){if(i.length===0){this.placeholder=!1;return}if(l)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let c=i[0];if(c.startsWith("[")&&c.endsWith("]")){let d=function(p,g){if(p!==null&&p!==g)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${p}' !== '${g}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});s.forEach(m=>{if(m===g)throw Object.defineProperty(new Error(`You cannot have the same slug name "${g}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(m.replace(/\W/g,"")===c.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${m}" and "${g}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),s.push(g)},u=c.slice(1,-1),h=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),h=!0),u.startsWith("…"))throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${u}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(u.startsWith("...")&&(u=u.substring(3),l=!0),u.startsWith("[")||u.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${u}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(u.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${u}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(l)if(h){if(this.restSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${i[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});d(this.optionalRestSlugName,u),this.optionalRestSlugName=u,c="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});d(this.restSlugName,u),this.restSlugName=u,c="[...]"}else{if(h)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});d(this.slugName,u),this.slugName=u,c="[]"}}this.children.has(c)||this.children.set(c,new r),this.children.get(c)._insert(i.slice(1),s,l)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(a){const i=new r;return a.forEach(s=>i.insert(s)),i.smoosh()}function o(a,i){const s={},l=[];for(let u=0;u<a.length;u++){const h=i(a[u]);s[h]=u,l[u]=h}return n(l).map(u=>a[s[u]])}}(Wn)),Wn}var Un={},Vn={},qn={},Gn={},ji;function uh(){return ji||(ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(r){return r.startsWith("/")?r:`/${r}`}}(Gn)),Gn}var zn={},ki;function Xl(){return ki||(ki=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,d){for(var p in d)Object.defineProperty(h,p,{enumerable:!0,get:d[p]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return c},NOT_FOUND_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return l},addSearchParamsIfPageSegment:function(){return a},computeSelectedLayoutSegment:function(){return i},getSegmentValue:function(){return r},getSelectedLayoutSegmentPath:function(){return s},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return o}});function r(h){return Array.isArray(h)?h[1]:h}function n(h){return h[0]==="("&&h.endsWith(")")}function o(h){return h.startsWith("@")&&h!=="@children"}function a(h,d){if(h.includes(l)){const g=JSON.stringify(d);return g!=="{}"?l+"?"+g:l}return h}function i(h,d){if(!h||h.length===0)return null;const p=d==="children"?h[0]:h[h.length-1];return p===c?null:p}function s(h,d,p=!0,g=[]){let m;if(p)m=h[1][d];else{const E=h[1];m=E.children??Object.values(E)[0]}if(!m)return g;const v=m[0];let b=r(v);return!b||b.startsWith(l)?g:(g.push(b),s(m,d,!1,g))}const l="__PAGE__",c="__DEFAULT__",u="/_not-found"}(zn)),zn}var Ii;function ch(){return Ii||(Ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return a}});const r=uh(),n=Xl();function o(i){return(0,r.ensureLeadingSlash)(i.split("/").reduce((s,l,c,u)=>!l||(0,n.isGroupSegment)(l)||l[0]==="@"||(l==="page"||l==="route")&&c===u.length-1?s:`${s}/${l}`,""))}function a(i){return i.replace(/\.rsc($|\?)/,"$1")}}(qn)),qn}var $i;function vn(){return $i||($i=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return o}});const r=ch(),n=["(..)(..)","(.)","(..)","(...)"];function o(i){return i.split("/").find(s=>n.find(l=>s.startsWith(l)))!==void 0}function a(i){let s,l,c;for(const u of i.split("/"))if(l=n.find(h=>u.startsWith(h)),l){[s,c]=i.split(l,2);break}if(!s||!l||!c)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(s=(0,r.normalizeAppPath)(s),l){case"(.)":s==="/"?c=`/${c}`:c=s+"/"+c;break;case"(..)":if(s==="/")throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});c=s.split("/").slice(0,-1).concat(c).join("/");break;case"(...)":c="/"+c;break;case"(..)(..)":const u=s.split("/");if(u.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});c=u.slice(0,-2).concat(c).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:s,interceptedRoute:c}}}(Vn)),Vn}var Mi;function dh(){return Mi||(Mi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});const t=vn(),r=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,n=/\/\[[^/]+\](?=\/|$)/;function o(a,i=!0){return(0,t.isInterceptionRouteAppPath)(a)&&(a=(0,t.extractInterceptionRouteInformation)(a).interceptedRoute),i?n.test(a):r.test(a)}}(Un)),Un}var Li;function fh(){return Li||(Li=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var i in a)Object.defineProperty(o,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRouteObjects:function(){return r.getSortedRouteObjects},getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const r=lh(),n=dh()}(Bn)),Bn}var Xn={},Yn={},Kn={},Qn={exports:{}},Di;function ph(){return Di||(Di=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0;function r(m){for(var v=[],b=0;b<m.length;){var E=m[b];if(E==="*"||E==="+"||E==="?"){v.push({type:"MODIFIER",index:b,value:m[b++]});continue}if(E==="\\"){v.push({type:"ESCAPED_CHAR",index:b++,value:m[b++]});continue}if(E==="{"){v.push({type:"OPEN",index:b,value:m[b++]});continue}if(E==="}"){v.push({type:"CLOSE",index:b,value:m[b++]});continue}if(E===":"){for(var w="",_=b+1;_<m.length;){var R=m.charCodeAt(_);if(R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||R===95){w+=m[_++];continue}break}if(!w)throw new TypeError("Missing parameter name at ".concat(b));v.push({type:"NAME",index:b,value:w}),b=_;continue}if(E==="("){var T=1,O="",_=b+1;if(m[_]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(_));for(;_<m.length;){if(m[_]==="\\"){O+=m[_++]+m[_++];continue}if(m[_]===")"){if(T--,T===0){_++;break}}else if(m[_]==="("&&(T++,m[_+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(_));O+=m[_++]}if(T)throw new TypeError("Unbalanced pattern at ".concat(b));if(!O)throw new TypeError("Missing pattern at ".concat(b));v.push({type:"PATTERN",index:b,value:O}),b=_;continue}v.push({type:"CHAR",index:b,value:m[b++]})}return v.push({type:"END",index:b,value:""}),v}function n(m,v){v===void 0&&(v={});for(var b=r(m),E=v.prefixes,w=E===void 0?"./":E,_=v.delimiter,R=_===void 0?"/#?":_,T=[],O=0,M=0,k="",P=function(B){if(M<b.length&&b[M].type===B)return b[M++].value},N=function(B){var V=P(B);if(V!==void 0)return V;var ee=b[M],Q=ee.type,fe=ee.index;throw new TypeError("Unexpected ".concat(Q," at ").concat(fe,", expected ").concat(B))},j=function(){for(var B="",V;V=P("CHAR")||P("ESCAPED_CHAR");)B+=V;return B},$=function(B){for(var V=0,ee=R;V<ee.length;V++){var Q=ee[V];if(B.indexOf(Q)>-1)return!0}return!1},A=function(B){var V=T[T.length-1],ee=B||(V&&typeof V=="string"?V:"");if(V&&!ee)throw new TypeError('Must have text between two parameters, missing text after "'.concat(V.name,'"'));return!ee||$(ee)?"[^".concat(l(R),"]+?"):"(?:(?!".concat(l(ee),")[^").concat(l(R),"])+?")};M<b.length;){var D=P("CHAR"),U=P("NAME"),q=P("PATTERN");if(U||q){var C=D||"";w.indexOf(C)===-1&&(k+=C,C=""),k&&(T.push(k),k=""),T.push({name:U||O++,prefix:C,suffix:"",pattern:q||A(C),modifier:P("MODIFIER")||""});continue}var L=D||P("ESCAPED_CHAR");if(L){k+=L;continue}k&&(T.push(k),k="");var z=P("OPEN");if(z){var C=j(),K=P("NAME")||"",J=P("PATTERN")||"",F=j();N("CLOSE"),T.push({name:K||(J?O++:""),pattern:K&&!J?A(C):J,prefix:C,suffix:F,modifier:P("MODIFIER")||""});continue}N("END")}return T}t.parse=n;function o(m,v){return a(n(m,v),v)}t.compile=o;function a(m,v){v===void 0&&(v={});var b=c(v),E=v.encode,w=E===void 0?function(O){return O}:E,_=v.validate,R=_===void 0?!0:_,T=m.map(function(O){if(typeof O=="object")return new RegExp("^(?:".concat(O.pattern,")$"),b)});return function(O){for(var M="",k=0;k<m.length;k++){var P=m[k];if(typeof P=="string"){M+=P;continue}var N=O?O[P.name]:void 0,j=P.modifier==="?"||P.modifier==="*",$=P.modifier==="*"||P.modifier==="+";if(Array.isArray(N)){if(!$)throw new TypeError('Expected "'.concat(P.name,'" to not repeat, but got an array'));if(N.length===0){if(j)continue;throw new TypeError('Expected "'.concat(P.name,'" to not be empty'))}for(var A=0;A<N.length;A++){var D=w(N[A],P);if(R&&!T[k].test(D))throw new TypeError('Expected all "'.concat(P.name,'" to match "').concat(P.pattern,'", but got "').concat(D,'"'));M+=P.prefix+D+P.suffix}continue}if(typeof N=="string"||typeof N=="number"){var D=w(String(N),P);if(R&&!T[k].test(D))throw new TypeError('Expected "'.concat(P.name,'" to match "').concat(P.pattern,'", but got "').concat(D,'"'));M+=P.prefix+D+P.suffix;continue}if(!j){var U=$?"an array":"a string";throw new TypeError('Expected "'.concat(P.name,'" to be ').concat(U))}}return M}}t.tokensToFunction=a;function i(m,v){var b=[],E=g(m,b,v);return s(E,b,v)}t.match=i;function s(m,v,b){b===void 0&&(b={});var E=b.decode,w=E===void 0?function(_){return _}:E;return function(_){var R=m.exec(_);if(!R)return!1;for(var T=R[0],O=R.index,M=Object.create(null),k=function(N){if(R[N]===void 0)return"continue";var j=v[N-1];j.modifier==="*"||j.modifier==="+"?M[j.name]=R[N].split(j.prefix+j.suffix).map(function($){return w($,j)}):M[j.name]=w(R[N],j)},P=1;P<R.length;P++)k(P);return{path:T,index:O,params:M}}}t.regexpToFunction=s;function l(m){return m.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function c(m){return m&&m.sensitive?"":"i"}function u(m,v){if(!v)return m;for(var b=/\((?:\?<(.*?)>)?(?!\?)/g,E=0,w=b.exec(m.source);w;)v.push({name:w[1]||E++,prefix:"",suffix:"",modifier:"",pattern:""}),w=b.exec(m.source);return m}function h(m,v,b){var E=m.map(function(w){return g(w,v,b).source});return new RegExp("(?:".concat(E.join("|"),")"),c(b))}function d(m,v,b){return p(n(m,b),v,b)}function p(m,v,b){b===void 0&&(b={});for(var E=b.strict,w=E===void 0?!1:E,_=b.start,R=_===void 0?!0:_,T=b.end,O=T===void 0?!0:T,M=b.encode,k=M===void 0?function(V){return V}:M,P=b.delimiter,N=P===void 0?"/#?":P,j=b.endsWith,$=j===void 0?"":j,A="[".concat(l($),"]|$"),D="[".concat(l(N),"]"),U=R?"^":"",q=0,C=m;q<C.length;q++){var L=C[q];if(typeof L=="string")U+=l(k(L));else{var z=l(k(L.prefix)),K=l(k(L.suffix));if(L.pattern)if(v&&v.push(L),z||K)if(L.modifier==="+"||L.modifier==="*"){var J=L.modifier==="*"?"?":"";U+="(?:".concat(z,"((?:").concat(L.pattern,")(?:").concat(K).concat(z,"(?:").concat(L.pattern,"))*)").concat(K,")").concat(J)}else U+="(?:".concat(z,"(").concat(L.pattern,")").concat(K,")").concat(L.modifier);else{if(L.modifier==="+"||L.modifier==="*")throw new TypeError('Can not repeat "'.concat(L.name,'" without a prefix and suffix'));U+="(".concat(L.pattern,")").concat(L.modifier)}else U+="(?:".concat(z).concat(K,")").concat(L.modifier)}}if(O)w||(U+="".concat(D,"?")),U+=b.endsWith?"(?=".concat(A,")"):"$";else{var F=m[m.length-1],B=typeof F=="string"?D.indexOf(F[F.length-1])>-1:F===void 0;w||(U+="(?:".concat(D,"(?=").concat(A,"))?")),B||(U+="(?=".concat(D,"|").concat(A,")"))}return new RegExp(U,c(b))}t.tokensToRegexp=p;function g(m,v,b){return m instanceof RegExp?u(m,v):Array.isArray(m)?h(m,v,b):d(m,v,b)}t.pathToRegexp=g})(),Qn.exports=e})()),Qn.exports}var Zn={},Fi;function mh(){return Fi||(Fi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{PARAM_SEPARATOR:function(){return r},hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return a},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return s}});const r="_NEXTSEP_";function n(l){return typeof l!="string"?!1:!!(/\/\(\.{1,3}\):[^/\s]+/.test(l)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(l))}function o(l){let c=l;return c=c.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`),c=c.replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`),c}function a(l){return l.map(c=>typeof c=="object"&&c!==null&&"modifier"in c&&(c.modifier==="*"||c.modifier==="+")&&"prefix"in c&&"suffix"in c&&c.prefix===""&&c.suffix===""?{...c,prefix:"/"}:c)}function i(l){return l.replace(new RegExp(`\\)${r}`,"g"),")")}function s(l){const c={};for(const[u,h]of Object.entries(l))typeof h=="string"?c[u]=h.replace(new RegExp(`^${r}`),""):Array.isArray(h)?c[u]=h.map(d=>typeof d=="string"?d.replace(new RegExp(`^${r}`),""):d):c[u]=h;return c}}(Zn)),Zn}var Hi;function hh(){return Hi||(Hi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{safeCompile:function(){return a},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return i},safeRouteMatcher:function(){return s}});const r=ph(),n=mh();function o(l,c,u){if(typeof l!="string")return(0,r.pathToRegexp)(l,c,u);const h=(0,n.hasAdjacentParameterIssues)(l),d=h?(0,n.normalizeAdjacentParameters)(l):l;try{return(0,r.pathToRegexp)(d,c,u)}catch(p){if(!h)try{const g=(0,n.normalizeAdjacentParameters)(l);return(0,r.pathToRegexp)(g,c,u)}catch{throw p}throw p}}function a(l,c){const u=(0,n.hasAdjacentParameterIssues)(l),h=u?(0,n.normalizeAdjacentParameters)(l):l;try{const d=(0,r.compile)(h,c);return u?p=>(0,n.stripNormalizedSeparators)(d(p)):d}catch(d){if(!u)try{const p=(0,n.normalizeAdjacentParameters)(l),g=(0,r.compile)(p,c);return m=>(0,n.stripNormalizedSeparators)(g(m))}catch{throw d}throw d}}function i(l,c){const u=(0,r.regexpToFunction)(l,c||[]);return h=>{const d=u(h);return d?{...d,params:(0,n.stripParameterSeparators)(d.params)}:!1}}function s(l){return c=>{const u=l(c);return u?(0,n.stripParameterSeparators)(u):!1}}}(Kn)),Kn}var Bi;function Yl(){return Bi||(Bi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const t=hn(),r=hh();function n({re:o,groups:a}){const i=s=>{const l=o.exec(s);if(!l)return!1;const c=h=>{try{return decodeURIComponent(h)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},u={};for(const[h,d]of Object.entries(a)){const p=l[d.pos];p!==void 0&&(d.repeat?u[h]=p.split("/").map(g=>c(g)):u[h]=c(p))}return u};return(0,r.safeRouteMatcher)(i)}}(Yn)),Yn}var Jn={},eo={},Wi;function gh(){return Wi||(Wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(ot,Ct){for(var At in Ct)Object.defineProperty(ot,At,{enumerable:!0,get:Ct[At]})}t(e,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return L},CACHE_ONE_YEAR:function(){return k},DOT_NEXT_ALIAS:function(){return q},ESLINT_DEFAULT_DIRS:function(){return Ze},GSP_NO_RETURNED_VALUE:function(){return Ot},GSSP_COMPONENT_MEMBER_ERROR:function(){return Qe},GSSP_NO_RETURNED_VALUE:function(){return Nt},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return P},INSTRUMENTATION_HOOK_FILENAME:function(){return D},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return N},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return v},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return M},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return E},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return R},NEXT_CACHE_TAG_MAX_LENGTH:function(){return T},NEXT_DATA_SUFFIX:function(){return g},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return i},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return _},NON_STANDARD_NODE_ENV:function(){return mt},PAGES_DIR_ALIAS:function(){return U},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return c},PROXY_FILENAME:function(){return $},PROXY_LOCATION_REGEXP:function(){return A},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Q},ROOT_DIR_ALIAS:function(){return C},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return ee},RSC_ACTION_ENCRYPTION_ALIAS:function(){return V},RSC_ACTION_PROXY_ALIAS:function(){return J},RSC_ACTION_VALIDATE_ALIAS:function(){return K},RSC_CACHE_WRAPPER_ALIAS:function(){return F},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return B},RSC_MOD_REF_PROXY_ALIAS:function(){return z},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return h},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return he},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return G},SERVER_PROPS_SSG_CONFLICT:function(){return Ce},SERVER_RUNTIME:function(){return Gt},SSG_FALLBACK_EXPORT_ERROR:function(){return ht},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return fe},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Re},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return pe},WEBPACK_LAYERS:function(){return ie},WEBPACK_RESOURCE_QUERIES:function(){return We},WEB_SOCKET_MAX_RECONNECTIONS:function(){return zt}});const r="text/plain",n="text/html; charset=utf-8",o="application/json; charset=utf-8",a="nxtP",i="nxtI",s="x-matched-path",l="x-prerender-revalidate",c="x-prerender-revalidate-if-generated",u=".segments",h=".segment.rsc",d=".rsc",p=".action",g=".json",m=".meta",v=".body",b="x-next-cache-tags",E="x-next-revalidated-tags",w="x-next-revalidate-tag-token",_="next-resume",R=128,T=256,O=1024,M="_N_T_",k=31536e3,P=4294967294,N="middleware",j=`(?:src/)?${N}`,$="proxy",A=`(?:src/)?${$}`,D="instrumentation",U="private-next-pages",q="private-dot-next",C="private-next-root-dir",L="private-next-app-dir",z="private-next-rsc-mod-ref-proxy",K="private-next-rsc-action-validate",J="private-next-rsc-server-reference",F="private-next-rsc-cache-wrapper",B="private-next-rsc-track-dynamic-import",V="private-next-rsc-action-encryption",ee="private-next-rsc-action-client-wrapper",Q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",fe="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",G="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",Ce="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Re="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",he="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Ot="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Nt="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",pe="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Qe="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",mt='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ht="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Ze=["app","pages","components","lib","src"],Gt={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},zt=12,re={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ie={...re,GROUP:{builtinReact:[re.reactServerComponents,re.actionBrowser],serverOnly:[re.reactServerComponents,re.actionBrowser,re.instrument,re.middleware],neutralTarget:[re.apiNode,re.apiEdge],clientOnly:[re.serverSideRendering,re.appPagesBrowser],bundled:[re.reactServerComponents,re.actionBrowser,re.serverSideRendering,re.appPagesBrowser,re.shared,re.instrument,re.middleware],appPages:[re.reactServerComponents,re.serverSideRendering,re.appPagesBrowser,re.actionBrowser]}},We={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(eo)),eo}var to={},Ui;function vh(){return Ui||(Ui=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});const t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(o){return t.test(o)?o.replace(r,"\\$&"):o}}(to)),to}var ro={},no={},Vi;function ba(){return Vi||(Vi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(n,o){super(`Invariant: ${n.endsWith(".")?n:n+"."} This is a bug in Next.js.`,o),this.name="InvariantError"}}}(no)),no}var oo={},qi;function bh(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return r}});const t=Xl();function r(n){const[o,a,i]=n,{layout:s,template:l}=i;let{page:c}=i;c=o===t.DEFAULT_SEGMENT_KEY?i.defaultPage:c;const u=(s==null?void 0:s[1])||(l==null?void 0:l[1])||(c==null?void 0:c[1]);return{page:c,segment:o,modules:i,conventionPath:u,parallelRoutes:a}}}(oo)),oo}var ao={},io={},Gi;function yh(){return Gi||(Gi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var l in s)Object.defineProperty(i,l,{enumerable:!0,get:s[l]})}t(e,{getParamProperties:function(){return a},getSegmentParam:function(){return n},isCatchAll:function(){return o}});const r=vn();function n(i){const s=r.INTERCEPTION_ROUTE_MARKERS.find(l=>i.startsWith(l));return s&&(i=i.slice(s.length)),i.startsWith("[[...")&&i.endsWith("]]")?{paramType:"optional-catchall",paramName:i.slice(5,-2)}:i.startsWith("[...")&&i.endsWith("]")?{paramType:s?`catchall-intercepted-${s}`:"catchall",paramName:i.slice(4,-1)}:i.startsWith("[")&&i.endsWith("]")?{paramType:s?`dynamic-intercepted-${s}`:"dynamic",paramName:i.slice(1,-1)}:null}function o(i){return i==="catchall"||i==="catchall-intercepted-(..)(..)"||i==="catchall-intercepted-(.)"||i==="catchall-intercepted-(..)"||i==="catchall-intercepted-(...)"||i==="optional-catchall"}function a(i){let s=!1,l=!1;switch(i){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":s=!0;break;case"optional-catchall":s=!0,l=!0;break}return{repeat:s,optional:l}}}(io)),io}var zi;function Eh(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var h in u)Object.defineProperty(c,h,{enumerable:!0,get:u[h]})}t(e,{isInterceptionAppRoute:function(){return s},isNormalizedAppRoute:function(){return i},parseAppRoute:function(){return l},parseAppRouteSegment:function(){return a}});const r=ba(),n=yh(),o=vn();function a(c){if(c==="")return null;const u=o.INTERCEPTION_ROUTE_MARKERS.find(d=>c.startsWith(d)),h=(0,n.getSegmentParam)(c);return h?{type:"dynamic",name:c,param:h,interceptionMarker:u}:c.startsWith("(")&&c.endsWith(")")?{type:"route-group",name:c,interceptionMarker:u}:c.startsWith("@")?{type:"parallel-route",name:c,interceptionMarker:u}:{type:"static",name:c,interceptionMarker:u}}function i(c){return c.normalized}function s(c){return c.interceptionMarker!==void 0&&c.interceptingRoute!==void 0&&c.interceptedRoute!==void 0}function l(c,u){const h=c.split("/").filter(Boolean),d=[];let p,g,m;for(const b of h){const E=a(b);if(E){if(u&&(E.type==="route-group"||E.type==="parallel-route"))throw Object.defineProperty(new r.InvariantError(`${c} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(d.push(E),E.interceptionMarker){const w=c.split(E.interceptionMarker);if(w.length!==2)throw Object.defineProperty(new Error(`Invalid interception route: ${c}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});g=u?l(w[0],!0):l(w[0],!1),m=u?l(w[1],!0):l(w[1],!1),p=E.interceptionMarker}}}const v=d.filter(b=>b.type==="dynamic");return{normalized:u,pathname:c,segments:d,dynamicSegments:v,interceptionMarker:p,interceptingRoute:g,interceptedRoute:m}}}(ao)),ao}var so={},lo={},Xi;function xh(){return Xi||(Xi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}});function t(r){switch(r){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";case"catchall":case"dynamic":case"optional-catchall":default:return null}}}(lo)),lo}var Yi;function wh(){return Yi||(Yi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return o}});const t=ba(),r=xh();function n(a,i,s){return a.type==="dynamic"?i[a.param.paramName]:(0,r.interceptionPrefixFromParamType)(s)===a.interceptionMarker?a.name.replace(a.interceptionMarker,""):a.name}function o(a,i,s,l,c){switch(i){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const u=[];for(let h=s;h<l.segments.length;h++){const d=l.segments[h];if(d.type==="static"){let p=d.name;const g=(0,r.interceptionPrefixFromParamType)(i);g&&h===s&&g===d.interceptionMarker&&(p=p.replace(d.interceptionMarker,"")),u.push(p)}else{if(!c.hasOwnProperty(d.param.paramName)){if(d.param.paramType==="optional-catchall")break;return}const p=c[d.param.paramName];Array.isArray(p)?u.push(...p):u.push(p)}}if(u.length>0)return u;if(i==="optional-catchall")return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${l.pathname}" with param "${a}" of type "${i}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(s<l.segments.length){const h=l.segments[s];return h.type==="dynamic"&&!c.hasOwnProperty(h.param.paramName)?void 0:n(h,c,i)}return}}}(so)),so}var Ki;function _h(){return Ki||(Ki=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,p){for(var g in p)Object.defineProperty(d,g,{enumerable:!0,get:p[g]})}t(e,{PARAMETER_PATTERN:function(){return c},getDynamicParam:function(){return l},interpolateParallelRouteParams:function(){return s},parseMatchedParameter:function(){return h},parseParameter:function(){return u}});const r=ba(),n=bh(),o=Eh(),a=wh();function i(d,p,g){let m=d[p];if(g!=null&&g.has(p)){const[v]=g.get(p);m=v}else Array.isArray(m)?m=m.map(v=>encodeURIComponent(v)):typeof m=="string"&&(m=encodeURIComponent(m));return m}function s(d,p,g,m){const v=structuredClone(p),b=[{tree:d,depth:0}],E=(0,o.parseAppRoute)(g,!0);for(;b.length>0;){const{tree:w,depth:_}=b.pop(),{segment:R,parallelRoutes:T}=(0,n.parseLoaderTree)(w),O=(0,o.parseAppRouteSegment)(R);if((O==null?void 0:O.type)==="dynamic"&&!v.hasOwnProperty(O.param.paramName)&&!(m!=null&&m.has(O.param.paramName))){const{paramName:k,paramType:P}=O.param,N=(0,a.resolveParamValue)(k,P,_,E,v);if(N!==void 0)v[k]=N;else if(P!=="optional-catchall")throw Object.defineProperty(new r.InvariantError(`Could not resolve param value for segment: ${k}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let M=_;O&&O.type!=="route-group"&&O.type!=="parallel-route"&&M++;for(const k of Object.values(T))b.push({tree:k,depth:M})}return v}function l(d,p,g,m){let v=i(d,p,m);if(!v||v.length===0){if(g==="oc")return{param:p,value:null,type:g,treeSegment:[p,"",g]};throw Object.defineProperty(new r.InvariantError(`Missing value for segment key: "${p}" with dynamic param type: ${g}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:p,value:v,treeSegment:[p,Array.isArray(v)?v.join("/"):v,g],type:g}}const c=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function u(d){const p=d.match(c);return h(p?p[2]:d)}function h(d){const p=d.startsWith("[")&&d.endsWith("]");p&&(d=d.slice(1,-1));const g=d.startsWith("...");return g&&(d=d.slice(3)),{key:d,repeat:g,optional:p}}}(ro)),ro}var Qi;function Kl(){return Qi||(Qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var v in m)Object.defineProperty(g,v,{enumerable:!0,get:m[v]})}t(e,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l}});const r=gh(),n=vn(),o=vh(),a=ql(),i=_h();function s(g,m,v){const b={};let E=1;const w=[];for(const _ of(0,a.removeTrailingSlash)(g).slice(1).split("/")){const R=n.INTERCEPTION_ROUTE_MARKERS.find(O=>_.startsWith(O)),T=_.match(i.PARAMETER_PATTERN);if(R&&T&&T[2]){const{key:O,optional:M,repeat:k}=(0,i.parseMatchedParameter)(T[2]);b[O]={pos:E++,repeat:k,optional:M},w.push(`/${(0,o.escapeStringRegexp)(R)}([^/]+?)`)}else if(T&&T[2]){const{key:O,repeat:M,optional:k}=(0,i.parseMatchedParameter)(T[2]);b[O]={pos:E++,repeat:M,optional:k},v&&T[1]&&w.push(`/${(0,o.escapeStringRegexp)(T[1])}`);let P=M?k?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";v&&T[1]&&(P=P.substring(1)),w.push(P)}else w.push(`/${(0,o.escapeStringRegexp)(_)}`);m&&T&&T[3]&&w.push((0,o.escapeStringRegexp)(T[3]))}return{parameterizedRoute:w.join(""),groups:b}}function l(g,{includeSuffix:m=!1,includePrefix:v=!1,excludeOptionalTrailingSlash:b=!1}={}){const{parameterizedRoute:E,groups:w}=s(g,m,v);let _=E;return b||(_+="(?:/)?"),{re:new RegExp(`^${_}$`),groups:w}}function c(){let g=0;return()=>{let m="",v=++g;for(;v>0;)m+=String.fromCharCode(97+(v-1)%26),v=Math.floor((v-1)/26);return m}}function u({interceptionMarker:g,getSafeRouteKey:m,segment:v,routeKeys:b,keyPrefix:E,backreferenceDuplicateKeys:w}){const{key:_,optional:R,repeat:T}=(0,i.parseMatchedParameter)(v);let O=_.replace(/\W/g,"");E&&(O=`${E}${O}`);let M=!1;(O.length===0||O.length>30)&&(M=!0),isNaN(parseInt(O.slice(0,1)))||(M=!0),M&&(O=m());const k=O in b;E?b[O]=`${E}${_}`:b[O]=_;const P=g?(0,o.escapeStringRegexp)(g):"";let N;return k&&w?N=`\\k<${O}>`:T?N=`(?<${O}>.+?)`:N=`(?<${O}>[^/]+?)`,{key:_,pattern:R?`(?:/${P}${N})?`:`/${P}${N}`,cleanedKey:O,optional:R,repeat:T}}function h(g,m,v,b,E,w={names:{},intercepted:{}}){var M,k;const _=c(),R={},T=[],O=[];w=structuredClone(w);for(const P of(0,a.removeTrailingSlash)(g).slice(1).split("/")){const N=n.INTERCEPTION_ROUTE_MARKERS.some(D=>P.startsWith(D)),j=P.match(i.PARAMETER_PATTERN),$=N?j==null?void 0:j[1]:void 0;let A;if($&&(j!=null&&j[2])?(A=m?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,w.intercepted[j[2]]=$):j!=null&&j[2]&&w.intercepted[j[2]]?A=m?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:A=m?r.NEXT_QUERY_PARAM_PREFIX:void 0,$&&j&&j[2]){const{key:D,pattern:U,cleanedKey:q,repeat:C,optional:L}=u({getSafeRouteKey:_,interceptionMarker:$,segment:j[2],routeKeys:R,keyPrefix:A,backreferenceDuplicateKeys:E});T.push(U),O.push(`/${j[1]}:${w.names[D]??q}${C?L?"*":"+":""}`),(M=w.names)[D]??(M[D]=q)}else if(j&&j[2]){b&&j[1]&&(T.push(`/${(0,o.escapeStringRegexp)(j[1])}`),O.push(`/${j[1]}`));const{key:D,pattern:U,cleanedKey:q,repeat:C,optional:L}=u({getSafeRouteKey:_,segment:j[2],routeKeys:R,keyPrefix:A,backreferenceDuplicateKeys:E});let z=U;b&&j[1]&&(z=z.substring(1)),T.push(z),O.push(`/:${w.names[D]??q}${C?L?"*":"+":""}`),(k=w.names)[D]??(k[D]=q)}else T.push(`/${(0,o.escapeStringRegexp)(P)}`),O.push(`/${P}`);v&&j&&j[3]&&(T.push((0,o.escapeStringRegexp)(j[3])),O.push(j[3]))}return{namedParameterizedRoute:T.join(""),routeKeys:R,pathToRegexpPattern:O.join(""),reference:w}}function d(g,m){const v=h(g,m.prefixRouteKeys,m.includeSuffix??!1,m.includePrefix??!1,m.backreferenceDuplicateKeys??!1,m.reference);let b=v.namedParameterizedRoute;return m.excludeOptionalTrailingSlash||(b+="(?:/)?"),{...l(g,m),namedRegex:`^${b}$`,routeKeys:v.routeKeys,pathToRegexpPattern:v.pathToRegexpPattern,reference:v.reference}}function p(g,m){const{parameterizedRoute:v}=s(g,!1,!1),{catchAll:b=!0}=m;if(v==="/")return{namedRegex:`^/${b?".*":""}$`};const{namedParameterizedRoute:E}=h(g,!1,!1,!1,!1,void 0);return{namedRegex:`^${E}${b?"(?:(/.*)?)":""}$`}}}(Jn)),Jn}var Zi;function Rh(){return Zi||(Zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});const t=Yl(),r=Kl();function n(o,a,i){let s="";const l=(0,r.getRouteRegex)(o),c=l.groups,u=(a!==o?(0,t.getRouteMatcher)(l)(a):"")||i;s=o;const h=Object.keys(c);return h.every(d=>{let p=u[d]||"";const{repeat:g,optional:m}=c[d];let v=`[${g?"...":""}${d}]`;return m&&(v=`${p?"":"/"}[${v}]`),g&&!Array.isArray(p)&&(p=[p]),(m||d in u)&&(s=s.replace(v,g?p.map(b=>encodeURIComponent(b)).join("/"):encodeURIComponent(p))||"/")})||(s=""),{params:h,result:s}}}(Xn)),Xn}var Ji;function Ph(){return Ji||(Ji=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const r=Ul(),n=Vl(),o=ih(),a=hn(),i=gn(),s=zl(),l=fh(),c=Rh(),u=Kl(),h=Yl();function d(p,g,m){let v,b=typeof g=="string"?g:(0,n.formatWithValidation)(g);const E=b.match(/^[a-z][a-z0-9+.-]*:\/\//i),w=E?b.slice(E[0].length):b;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${b}' passed to next/router in page: '${p.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const R=(0,a.normalizeRepeatedSlashes)(w);b=(E?E[0]:"")+R}if(!(0,s.isLocalURL)(b))return m?[b]:b;try{let R=b.startsWith("#")?p.asPath:p.pathname;if(b.startsWith("?")&&(R=p.asPath,(0,l.isDynamicRoute)(p.pathname))){R=p.pathname;const T=(0,u.getRouteRegex)(p.pathname);(0,h.getRouteMatcher)(T)(p.asPath)||(R=p.asPath)}v=new URL(R,"http://n")}catch{v=new URL("/","http://n")}try{const R=new URL(b,v);R.pathname=(0,i.normalizePathTrailingSlash)(R.pathname);let T="";if((0,l.isDynamicRoute)(R.pathname)&&R.searchParams&&m){const M=(0,r.searchParamsToUrlQuery)(R.searchParams),{result:k,params:P}=(0,c.interpolateAs)(R.pathname,R.pathname,M);k&&(T=(0,n.formatWithValidation)({pathname:k,hash:R.hash,query:(0,o.omit)(M,P)}))}const O=R.origin===v.origin?R.href.slice(R.origin.length):R.href;return m?[O,T||O]:O}catch{return m?[b]:b}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(wr,wr.exports)),wr.exports}var Pr={exports:{}},uo={},co={},es;function Ql(){return es||(es=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const t=va();function r(n,o){if(!n.startsWith("/")||!o)return n;const{pathname:a,query:i,hash:s}=(0,t.parsePath)(n);return`${o}${a}${i}${s}`}}(co)),co}var ts;function Sh(){return ts||(ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});const t=Ql(),r=Gl();function n(o,a,i,s){if(!a||a===i)return o;const l=o.toLowerCase();return!s&&((0,r.pathHasPrefix)(l,"/api")||(0,r.pathHasPrefix)(l,`/${a.toLowerCase()}`))?o:(0,t.addPathPrefix)(o,`/${a}`)}}(uo)),uo}var rs;function Th(){return rs||(rs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}});const r=gn(),n=(o,...a)=>process.env.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(Sh().addLocale(o,...a)):o;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Pr,Pr.exports)),Pr.exports}var fo={},po={},ns;function Oh(){if(ns)return po;ns=1;function e(t){return t&&t.__esModule?t:{default:t}}return po._=e,po}var os;function Nh(){return os||(os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Oh()._(f).default.createContext(null);process.env.NODE_ENV!=="production"&&(n.displayName="RouterContext")}(fo)),fo}var Sr={exports:{}},Tr={exports:{}},as;function Ch(){return as||(as=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}r(t,{cancelIdleCallback:function(){return o},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Tr,Tr.exports)),Tr.exports}var is;function Ah(){return is||(is=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});const r=f,n=Ch(),o=typeof IntersectionObserver=="function",a=new Map,i=[];function s(u){const h={root:u.root||null,margin:u.rootMargin||""},d=i.find(v=>v.root===h.root&&v.margin===h.margin);let p;if(d&&(p=a.get(d),p))return p;const g=new Map,m=new IntersectionObserver(v=>{v.forEach(b=>{const E=g.get(b.target),w=b.isIntersecting||b.intersectionRatio>0;E&&w&&E(w)})},u);return p={id:h,observer:m,elements:g},i.push(h),a.set(h,p),p}function l(u,h,d){const{id:p,observer:g,elements:m}=s(d);return m.set(u,h),g.observe(u),function(){if(m.delete(u),g.unobserve(u),m.size===0){g.disconnect(),a.delete(p);const b=i.findIndex(E=>E.root===p.root&&E.margin===p.margin);b>-1&&i.splice(b,1)}}}function c({rootRef:u,rootMargin:h,disabled:d}){const p=d||!o,[g,m]=(0,r.useState)(!1),v=(0,r.useRef)(null),b=(0,r.useCallback)(w=>{v.current=w},[]);(0,r.useEffect)(()=>{if(o){if(p||g)return;const w=v.current;if(w&&w.tagName)return l(w,R=>R&&m(R),{root:u==null?void 0:u.current,rootMargin:h})}else if(!g){const w=(0,n.requestIdleCallback)(()=>m(!0));return()=>(0,n.cancelIdleCallback)(w)}},[p,h,u,g,v.current]);const E=(0,r.useCallback)(()=>{m(!1)},[]);return[b,g,E]}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Sr,Sr.exports)),Sr.exports}var Or={exports:{}},Nr={exports:{}},mo={},ss;function jh(){return ss||(ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const t=new WeakMap;function r(n,o){if(!o)return{pathname:n};let a=t.get(o);a||(a=o.map(u=>u.toLowerCase()),t.set(o,a));let i;const s=n.split("/",2);if(!s[1])return{pathname:n};const l=s[1].toLowerCase(),c=a.indexOf(l);return c<0?{pathname:n}:(i=o[c],n=n.slice(i.length+1)||"/",{pathname:n,detectedLocale:i})}}(mo)),mo}var ls;function kh(){return ls||(ls=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(n,o)=>process.env.__NEXT_I18N_SUPPORT?jh().normalizeLocalePath(n,o):{pathname:n,detectedLocale:void 0};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Nr,Nr.exports)),Nr.exports}var Cr={exports:{}},ho={},us;function Ih(){return us||(us=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(r,n,o){var a,i;if(r){o&&(o=o.toLowerCase());for(const s of r){const l=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(n===l||o===s.defaultLocale.toLowerCase()||(i=s.locales)!=null&&i.some(c=>c.toLowerCase()===o))return s}}}}(ho)),ho}var cs;function $h(){return cs||(cs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=(...n)=>{if(process.env.__NEXT_I18N_SUPPORT)return Ih().detectDomainLocale(...n)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Cr,Cr.exports)),Cr.exports}var ds;function Mh(){return ds||(ds=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=gn(),n=process.env.__NEXT_ROUTER_BASEPATH||"";function o(a,i,s,l){if(process.env.__NEXT_I18N_SUPPORT){const c=kh().normalizeLocalePath,u=$h().detectDomainLocale,h=i||c(a,s).detectedLocale,d=u(l,void 0,h);if(d){const p=`http${d.http?"":"s"}://`,g=h===d.defaultLocale?"":`/${h}`;return`${p}${d.domain}${(0,r.normalizePathTrailingSlash)(`${n}${g}${a}`)}`}return!1}else return!1}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Or,Or.exports)),Or.exports}var Ar={exports:{}},fs;function Lh(){return fs||(fs=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const r=Ql(),n=gn(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function a(i,s){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?i:(0,r.addPathPrefix)(i,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(Ar,Ar.exports)),Ar.exports}var jr={exports:{}},ps;function Dh(){return ps||(ps=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});const r=f;function n(a,i){const s=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,r.useCallback)(c=>{if(c===null){const u=s.current;u&&(s.current=null,u());const h=l.current;h&&(l.current=null,h())}else a&&(s.current=o(a,c)),i&&(l.current=o(i,c))},[a,i])}function o(a,i){if(typeof a=="function"){const s=a(i);return typeof s=="function"?s:()=>a(null)}else return a.current=i,()=>{a.current=null}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(jr,jr.exports)),jr.exports}var go={},ms;function Fh(){return ms||(ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=r=>{};if(process.env.NODE_ENV!=="production"){const r=new Set;t=n=>{r.has(n)||console.error(n),r.add(n)}}}(go)),go}(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function r(P,N){for(var j in N)Object.defineProperty(P,j,{enumerable:!0,get:N[j]})}r(t,{default:function(){return k},useLinkStatus:function(){return M}});const n=ga,o=y,a=n._(f),i=Ph(),s=zl(),l=Vl(),c=hn(),u=Th(),h=Nh(),d=Ah(),p=Mh(),g=Lh(),m=Dh(),v=Fh(),b=new Set;function E(P,N,j,$){if(!(typeof window>"u")&&(0,s.isLocalURL)(N)){if(!$.bypassPrefetchedCheck){const A=typeof $.locale<"u"?$.locale:"locale"in P?P.locale:void 0,D=N+"%"+j+"%"+A;if(b.has(D))return;b.add(D)}P.prefetch(N,j,$).catch(A=>{if(process.env.NODE_ENV!=="production")throw A})}}function w(P){const j=P.currentTarget.getAttribute("target");return j&&j!=="_self"||P.metaKey||P.ctrlKey||P.shiftKey||P.altKey||P.nativeEvent&&P.nativeEvent.which===2}function _(P,N,j,$,A,D,U,q,C){const{nodeName:L}=P.currentTarget;if(L.toUpperCase()==="A"&&w(P)||P.currentTarget.hasAttribute("download"))return;if(!(0,s.isLocalURL)(j)){A&&(P.preventDefault(),location.replace(j));return}P.preventDefault(),(()=>{if(C){let F=!1;if(C({preventDefault:()=>{F=!0}}),F)return}const J=U??!0;"beforePopState"in N?N[A?"replace":"push"](j,$,{shallow:D,locale:q,scroll:J}):N[A?"replace":"push"]($||j,{scroll:J})})()}function R(P){return typeof P=="string"?P:(0,l.formatUrl)(P)}const T=a.default.forwardRef(function(N,j){let $;const{href:A,as:D,children:U,prefetch:q=null,passHref:C,replace:L,shallow:z,scroll:K,locale:J,onClick:F,onNavigate:B,onMouseEnter:V,onTouchStart:ee,legacyBehavior:Q=!1,...fe}=N;$=U,Q&&(typeof $=="string"||typeof $=="number")&&($=(0,o.jsx)("a",{children:$}));const G=a.default.useContext(h.RouterContext),Ce=q!==!1;if(process.env.NODE_ENV!=="production"){let ie=function(Y){return Object.defineProperty(new Error(`Failed prop type: The prop \`${Y.key}\` expects a ${Y.expected} in \`<Link>\`, but got \`${Y.actual}\` instead.`+(typeof window<"u"?`
51
+ Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E319",enumerable:!1,configurable:!0})};Object.keys({href:!0}).forEach(Y=>{if(Y==="href"&&(N[Y]==null||typeof N[Y]!="string"&&typeof N[Y]!="object"))throw ie({key:Y,expected:"`string` or `object`",actual:N[Y]===null?"null":typeof N[Y]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0,onNavigate:!0}).forEach(Y=>{const Ae=typeof N[Y];if(Y==="as"){if(N[Y]&&Ae!=="string"&&Ae!=="object")throw ie({key:Y,expected:"`string` or `object`",actual:Ae})}else if(Y==="locale"){if(N[Y]&&Ae!=="string")throw ie({key:Y,expected:"`string`",actual:Ae})}else if(Y==="onClick"||Y==="onMouseEnter"||Y==="onTouchStart"||Y==="onNavigate"){if(N[Y]&&Ae!=="function")throw ie({key:Y,expected:"`function`",actual:Ae})}else if(Y==="replace"||Y==="scroll"||Y==="shallow"||Y==="passHref"||Y==="legacyBehavior"){if(N[Y]!=null&&Ae!=="boolean")throw ie({key:Y,expected:"`boolean`",actual:Ae})}else if(Y==="prefetch"&&N[Y]!=null&&Ae!=="boolean"&&N[Y]!=="auto")throw ie({key:Y,expected:'`boolean | "auto"`',actual:Ae})})}const{href:Re,as:he}=a.default.useMemo(()=>{if(!G){const ot=R(A);return{href:ot,as:D?R(D):ot}}const[ie,We]=(0,i.resolveHref)(G,A,!0);return{href:ie,as:D?(0,i.resolveHref)(G,D):We||ie}},[G,A,D]),Ot=a.default.useRef(Re),Nt=a.default.useRef(he);let pe;if(Q)if(process.env.NODE_ENV==="development"){F&&console.warn(`"onClick" was passed to <Link> with \`href\` of \`${A}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`),V&&console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${A}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);try{pe=a.default.Children.only($)}catch{throw $?Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${A}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children`+(typeof window<"u"?`
52
+ Open your browser's console to view the Component stack trace.`:"")),"__NEXT_ERROR_CODE",{value:"E266",enumerable:!1,configurable:!0}):Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${A}\` but one child is required https://nextjs.org/docs/messages/link-no-children`),"__NEXT_ERROR_CODE",{value:"E320",enumerable:!1,configurable:!0})}}else pe=a.default.Children.only($);else if(process.env.NODE_ENV==="development"&&($==null?void 0:$.type)==="a")throw Object.defineProperty(new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
53
+ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`),"__NEXT_ERROR_CODE",{value:"E209",enumerable:!1,configurable:!0});const Qe=Q?pe&&typeof pe=="object"&&pe.ref:j,[mt,ht,Ze]=(0,d.useIntersection)({rootMargin:"200px"}),Gt=a.default.useCallback(ie=>{(Nt.current!==he||Ot.current!==Re)&&(Ze(),Nt.current=he,Ot.current=Re),mt(ie)},[he,Re,Ze,mt]),zt=(0,m.useMergedRef)(Gt,Qe);a.default.useEffect(()=>{process.env.NODE_ENV==="production"&&G&&(!ht||!Ce||E(G,Re,he,{locale:J}))},[he,Re,ht,J,Ce,G==null?void 0:G.locale,G]);const re={ref:zt,onClick(ie){if(process.env.NODE_ENV!=="production"&&!ie)throw Object.defineProperty(new Error('Component rendered inside next/link has to pass click event to "onClick" prop.'),"__NEXT_ERROR_CODE",{value:"E312",enumerable:!1,configurable:!0});!Q&&typeof F=="function"&&F(ie),Q&&pe.props&&typeof pe.props.onClick=="function"&&pe.props.onClick(ie),G&&(ie.defaultPrevented||_(ie,G,Re,he,L,z,K,J,B))},onMouseEnter(ie){!Q&&typeof V=="function"&&V(ie),Q&&pe.props&&typeof pe.props.onMouseEnter=="function"&&pe.props.onMouseEnter(ie),G&&E(G,Re,he,{locale:J,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(We){!Q&&typeof ee=="function"&&ee(We),Q&&pe.props&&typeof pe.props.onTouchStart=="function"&&pe.props.onTouchStart(We),G&&E(G,Re,he,{locale:J,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(he))re.href=he;else if(!Q||C||pe.type==="a"&&!("href"in pe.props)){const ie=typeof J<"u"?J:G==null?void 0:G.locale,We=(G==null?void 0:G.isLocaleDomain)&&(0,p.getDomainLocale)(he,ie,G==null?void 0:G.locales,G==null?void 0:G.domainLocales);re.href=We||(0,g.addBasePath)((0,u.addLocale)(he,ie,G==null?void 0:G.defaultLocale))}return Q?(process.env.NODE_ENV==="development"&&(0,v.errorOnce)(`\`legacyBehavior\` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:
34
54
 
35
55
  npx @next/codemod@latest new-link .
36
56
 
37
- Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),c.default.cloneElement(Q,W)):(0,f.jsx)("a",{...ge,...W,children:C})}),O=(0,c.createContext)({pending:!1}),L=()=>(0,c.useContext)(O),k=j;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(qt,qt.exports);var $a=qt.exports,Ya=$a;const be=On(Ya);function Ka({item:e,onHover:t}){const n=H.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>r.jsxs("div",{className:"relative",onMouseEnter:()=>{var f;t&&!s&&((f=n.current)==null||f.click())},onMouseLeave:()=>{var f;t&&s&&((f=n.current)==null||f.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white","aria-label":`Open ${e.title} menu`,children:r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[r.jsx("div",{className:"p-4",children:e.subMenu.map(f=>r.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[r.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:(()=>{const c=f.icon;if(!c)return null;if(H.isValidElement(c))return H.cloneElement(c,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof c=="function"){const a=c;return r.jsx(a,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),r.jsxs("div",{className:"flex-auto",children:[r.jsxs("a",{href:f.href,className:"block font-semibold text-gray-900 dark:text-white",children:[f.title,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:f.description})]})]},f.title))}),r.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:e.ctas&&e.ctas.map(f=>r.jsxs("a",{href:f.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[(()=>{const c=f.icon;if(!c)return null;if(H.isValidElement(c))return H.cloneElement(c,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof c=="function"){const a=c;return r.jsx(a,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),f.title]},f.title))})]})]})})}function Za({item:e,onHover:t}){const n=H.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>r.jsxs("div",{onMouseEnter:()=>{var f;t&&!s&&((f=n.current)==null||f.click())},onMouseLeave:()=>{var f;t&&s&&((f=n.current)==null||f.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsxs(D.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-white pt-14 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[r.jsx("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8",children:e.subMenu.map(f=>r.jsxs("div",{className:"group relative rounded-lg p-6 text-sm/6 hover:bg-gray-50",children:[f.image?r.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-100",children:r.jsx("img",{alt:f.imageAlt||f.title,src:f.image,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"})}):r.jsx("div",{className:"flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white",children:(()=>{const c=f.icon;if(!c)return null;if(H.isValidElement(c))return H.cloneElement(c,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof c=="function"){const a=c;return r.jsx(a,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),r.jsxs("a",{href:f.href,className:`${f.image?"mt-4":"mt-6"} block font-semibold text-gray-900`,children:[f.title,r.jsx("span",{className:"absolute inset-0"})]}),r.jsx("p",{className:"mt-1 text-gray-600",children:f.description})]},f.title))}),r.jsx("div",{className:"bg-gray-50",children:e.ctas&&r.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:r.jsx("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:e.ctas.map(f=>r.jsxs("a",{href:f.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(()=>{const c=f.icon;if(!c)return null;if(H.isValidElement(c))return H.cloneElement(c,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof c=="function"){const a=c;return r.jsx(a,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),f.title]},f.title))})})})]})]})},e.id)}function Qa({title:e,titleId:t,...n},s){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const Qr=P.forwardRef(Qa);function Ja({item:e,onHover:t}){const n=H.useRef(null);return r.jsx(D.Popover,{children:({open:s})=>{var f,c;return r.jsxs("div",{className:"relative",onMouseEnter:()=>{var a;t&&!s&&((a=n.current)==null||a.click())},onMouseLeave:()=>{var a;t&&s&&((a=n.current)==null||a.click())},children:[r.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?r.jsx(be,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):r.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),r.jsx(D.PopoverButton,{ref:n,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),r.jsx(D.PopoverPanel,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-72 -translate-x-1/2 overflow-hidden rounded-2xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:r.jsxs("ul",{className:"space-y-1",children:[(f=e.subMenu)==null?void 0:f.map(a=>r.jsx("li",{className:"group",children:r.jsxs(be,{href:a.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const d=a.icon;if(!d)return r.jsx(Qr,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(H.isValidElement(d))return H.cloneElement(d,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof d=="function"){const i=d;return r.jsx(i,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),r.jsx("span",{children:a.title})]})},a.title)),(c=e.ctas)==null?void 0:c.map(a=>r.jsx("li",{className:"group",children:r.jsxs("a",{href:a.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const d=a.icon;if(!d)return r.jsx(Qr,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(H.isValidElement(d))return H.cloneElement(d,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof d=="function"){const i=d;return r.jsx(i,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),r.jsx("span",{children:a.title})]})},a.title))]})})]})}})}function eo({config:e,onScrolledChange:t,scrollThreshold:n=10,quickSearchResults:s=[]}){const[f,c]=H.useState(!1),[a,d]=H.useState(!1),[i,l]=H.useState(!1),[p,_]=H.useState("");return H.useEffect(()=>{typeof(e==null?void 0:e.onSearchOpenChange)=="function"&&e.onSearchOpenChange(i),i||(_(""),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults())},[i]),H.useEffect(()=>{const u=()=>{const g=window.scrollY>n;d(y=>(y!==g&&typeof t=="function"&&t(g),g))};return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[t,n]),r.jsxs("header",{className:`${e!=null&&e.sticky?"sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70":"relative z-10"} isolate bg-white`,children:[r.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[r.jsx("div",{className:"flex lg:flex-1",children:r.jsx(be,{href:"/","aria-label":e.logoAlt||"Home",children:e.logo?r.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:`w-auto transition-all duration-300 ${a?"h-8 md:h-14":"h-12 md:h-20"}`}):r.jsx("div",{className:`h-auto transition-all duration-300 ${a?"w-28":"w-32"}`,children:r.jsx("h1",{className:`transition-all duration-300 ${a?"text-xl":"text-2xl"}`,children:e.fallbackText||"<NovaNav>"})})})}),r.jsx("div",{className:"flex lg:hidden",children:r.jsxs("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",children:[r.jsx("span",{className:"sr-only",children:"Open main menu"}),r.jsx(Ut,{"aria-hidden":"true",className:"size-6"})]})}),r.jsx(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:e.menuItems.map(u=>{const g=u.type||(u.full?"full":"default");return u.subMenu?g==="full"?r.jsx(Za,{item:u,onHover:u.onHover},u.id||u.title):g==="simple"?r.jsx(Ja,{item:u,onHover:u.onHover},u.id||u.title):r.jsx(Ka,{item:u,onHover:u.onHover},u.id||u.title):u.useLink?r.jsx(be,{href:u.href,className:"text-sm/6 font-semibold text-gray-900",children:u.title},u.id):r.jsx("a",{href:u.href,className:"text-sm/6 font-semibold text-gray-900",children:u.title},u.id)})}),r.jsxs("div",{className:"hidden gap-4 lg:flex lg:flex-1 lg:justify-end",children:[e.search&&r.jsx("button",{type:"button",onClick:()=>l(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Open search",children:r.jsx(tr,{"aria-hidden":"true",className:"size-6"})}),e.login&&r.jsxs("a",{href:e.loginHref,className:"text-sm/6 font-semibold text-gray-900",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&r.jsx("a",{href:e.ctaBtnHref,className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:e.ctaTitle||"Sign up"})]})]}),r.jsxs(D.Dialog,{open:i,onClose:l,children:[r.jsx("div",{className:"fixed inset-0 z-50 bg-black/30"}),r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:r.jsxs(D.DialogPanel,{className:"w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10",children:[r.jsxs("div",{className:"flex items-center justify-between pb-2",children:[r.jsx("h2",{className:"text-base font-semibold text-gray-900",children:"Search"}),r.jsx("button",{type:"button",onClick:()=>l(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Close search",children:r.jsx(Ge,{"aria-hidden":"true",className:"size-5"})})]}),r.jsxs("form",{className:"mt-2",onSubmit:u=>{u.preventDefault(),typeof(e==null?void 0:e.onSearch)=="function"&&e.onSearch(p),l(!1)},children:[r.jsx("label",{htmlFor:"site-search",className:"sr-only",children:"Search"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{id:"site-search",type:"search",placeholder:"Search...",autoFocus:!0,value:p,onChange:u=>{const g=u.target.value;_(g),typeof(e==null?void 0:e.onSearchChange)=="function"&&e.onSearchChange(g)},className:"w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-gray-900 focus:outline-none focus:ring-2 focus:ring-gray-900"}),r.jsx("button",{type:"submit",className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:"Search"})]})]}),Array.isArray(s)&&s.length>0&&r.jsx("div",{className:"mt-4 divide-y divide-gray-200",children:s.map((u,g)=>{if(!u||typeof u!="object")return null;const y=u.title||u.q||u.name||"Result",h=u.desc||u.description||u.summary||u.a||"",m=typeof(e==null?void 0:e.searchTitleMax)=="number"?e.searchTitleMax:60,v=typeof(e==null?void 0:e.searchDescMax)=="number"?e.searchDescMax:100,E=typeof y=="string"&&y.length>m?`${y.slice(0,m-1)}…`:y,w=typeof h=="string"&&h.length>v?`${h.slice(0,v-1)}…`:h,x=typeof u.link=="string"?u.link:void 0,b=typeof x=="string"&&x.startsWith("/"),j=r.jsxs("div",{className:"flex items-start gap-3 py-3",children:[u!=null&&u.icon?r.jsx("div",{className:"mt-0.5 h-6 w-6 text-gray-500",children:u.icon}):u!=null&&u.image?r.jsx("img",{src:u.image,alt:y,className:"mt-0.5 h-6 w-6 rounded object-cover"}):r.jsx(tr,{"aria-hidden":"true",className:"mt-0.5 size-6 text-gray-400"}),r.jsxs("div",{children:[r.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:E}),w?r.jsx("div",{className:"text-sm text-gray-500 truncate",children:w}):null]})]});return x?b?r.jsx("a",{href:x,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),l(!1)},children:j},x||g):r.jsx("a",{href:x,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),l(!1)},children:j},x||g):r.jsx("div",{className:"block hover:bg-gray-50",children:j},g)})})]})})]}),r.jsxs(D.Dialog,{open:f,onClose:c,className:"lg:hidden",children:[r.jsx("div",{className:"fixed inset-0 z-50"}),r.jsxs(D.DialogPanel,{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(be,{href:"/",className:"-m-1.5 p-1.5","aria-label":e.logoAlt||"Home",children:e.logo?r.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:"h-8 w-auto"}):r.jsx("span",{className:"text-lg font-semibold",children:e.fallbackText||"NEXGEN Roofing Systems"})}),r.jsxs("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700",children:[r.jsx("span",{className:"sr-only",children:"Close menu"}),r.jsx(Ge,{"aria-hidden":"true",className:"size-6"})]})]}),r.jsx("div",{className:"mt-6 flow-root",children:r.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10",children:[r.jsx("div",{className:"space-y-2 py-6",children:e.menuItems.map(u=>u.subMenu?r.jsxs(D.Disclosure,{as:"div",className:"-mx-3",children:[r.jsxs(D.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:[u.title,r.jsx(Ae,{"aria-hidden":"true",className:"size-5 flex-none group-data-[open]:rotate-180"})]}),r.jsx(D.DisclosurePanel,{className:"mt-2 space-y-2",children:[...u.subMenu,...u.ctas||[]].map(g=>r.jsx(D.DisclosureButton,{as:"a",href:g.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",children:g.title},g.title))})]},u.id):u.useLink?r.jsx(be,{href:u.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:u.title},u.id):r.jsx("a",{href:u.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:u.title},u.id))}),r.jsxs("div",{className:"space-y-2 py-6",children:[e.login&&r.jsxs("a",{href:e.loginHref,className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:["Log in ",r.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&r.jsx("a",{href:e.ctaBtnHref,className:"-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",children:e.ctaTitle||"Sign up"})]})]})})]})]})]})}function to(){return r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/70",children:r.jsxs("svg",{className:"h-10 w-10 animate-spin text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})})}function ro({baseConfig:e}){const[t,n]=H.useState([]),[s,f]=H.useState(""),c=H.useRef(null),[a,d]=H.useState(!1),i=async g=>{const y=(g||"").trim();if(!y){n([]);return}try{const h=await fetch(`/api/search?q=${encodeURIComponent(y)}`);if(!h.ok)throw new Error("search failed");const m=await h.json(),v=[...Array.isArray(m==null?void 0:m.services)?m.services:[],...Array.isArray(m==null?void 0:m.faqs)?m.faqs:[],...Array.isArray(m==null?void 0:m.gallery)?m.gallery:[],...Array.isArray(m==null?void 0:m.posts)?m.posts:[],...Array.isArray(m==null?void 0:m.projects)?m.projects:[],...Array.isArray(m==null?void 0:m.locations)?m.locations:[]].filter(x=>x&&typeof x=="object"),E=new Set,w=v.filter(x=>{const b=`${(x.link||"").toLowerCase()}|${(x.title||x.q||"").toLowerCase()}`;return E.has(b)?!1:(E.add(b),!0)}).map(x=>{if(x!=null&&x.icon)return x;const b="h-6 w-6 text-gray-400";switch(x==null?void 0:x.kind){case"faq":return{...x,icon:r.jsx(Zn,{"aria-hidden":"true",className:b})};case"service":return{...x,icon:r.jsx(ca,{"aria-hidden":"true",className:b})};case"project":return{...x,icon:r.jsx(Ln,{"aria-hidden":"true",className:b})};case"post":return{...x,icon:r.jsx(Gn,{"aria-hidden":"true",className:b})};case"gallery":return{...x,icon:r.jsx(Yn,{"aria-hidden":"true",className:b})};case"location":return{...x,icon:r.jsx(Wn,{"aria-hidden":"true",className:b})};default:return x}});n(w)}catch{n([])}},l=g=>{f(g),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>i(g),300)},p=g=>{const y=(g||"").trim();y&&(d(!0),typeof window<"u"&&(window.location.href=`/search?q=${encodeURIComponent(y)}`))},_=g=>{g||(f(""),n([]),c.current&&clearTimeout(c.current))},u=H.useMemo(()=>({...e,search:!0,onSearchChange:l,onSearch:p,onSearchOpenChange:_,onClearQuickResults:()=>n([]),onBeginNavigate:()=>d(!0)}),[e]);return r.jsxs(r.Fragment,{children:[a&&r.jsx("div",{className:"fixed inset-0 z-[60]",children:r.jsx(to,{})}),r.jsx(eo,{config:u,quickSearchResults:t})]})}exports.NavController=ro;exports.SimpleLight=fa;exports.WithFlyout=da;
57
+ Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components`),a.default.cloneElement(pe,re)):(0,o.jsx)("a",{...fe,...re,children:$})}),O=(0,a.createContext)({pending:!1}),M=()=>(0,a.useContext)(O),k=T;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(jo,jo.exports);var Hh=jo.exports,Bh=Hh;const st=hu(Bh);function Wh({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(sr,{children:({open:n})=>y.jsxs("div",{className:"relative",onMouseEnter:()=>{var o;t&&!n&&((o=r.current)==null||o.click())},onMouseLeave:()=>{var o;t&&n&&((o=r.current)==null||o.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(st,{href:e.href,className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900 dark:text-white",children:e.title}),y.jsx(Ht,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white","aria-label":`Open ${e.title} menu`,children:y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsxs(Bt,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-screen max-w-md -translate-x-1/2 overflow-hidden rounded-3xl bg-white shadow-lg outline outline-1 outline-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in dark:bg-gray-800 dark:shadow-none dark:-outline-offset-1 dark:outline-white/10",children:[y.jsx("div",{className:"p-4",children:e.subMenu.map(o=>y.jsxs("div",{className:"group relative flex items-center gap-x-6 rounded-lg p-4 text-sm/6 hover:bg-gray-50 dark:hover:bg-white/5",children:[y.jsx("div",{className:"flex size-11 flex-none items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white dark:bg-gray-700/50 dark:group-hover:bg-gray-700",children:(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),y.jsxs("div",{className:"flex-auto",children:[y.jsxs("a",{href:o.href,className:"block font-semibold text-gray-900 dark:text-white",children:[o.title,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600 dark:text-gray-400",children:o.description})]})]},o.title))}),y.jsx("div",{className:"grid grid-cols-2 divide-x divide-gray-900/5 bg-gray-50 dark:divide-white/10 dark:bg-gray-700/50",children:e.ctas&&e.ctas.map(o=>y.jsxs("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700/50",children:[(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),o.title]},o.title))})]})]})})}function Uh({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(sr,{children:({open:n})=>y.jsxs("div",{onMouseEnter:()=>{var o;t&&!n&&((o=r.current)==null||o.click())},onMouseLeave:()=>{var o;t&&n&&((o=r.current)==null||o.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(st,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),y.jsx(Ht,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsxs(Bt,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-white pt-14 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[y.jsx("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8",children:e.subMenu.map(o=>y.jsxs("div",{className:"group relative rounded-lg p-6 text-sm/6 hover:bg-gray-50",children:[o.image?y.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden rounded-md bg-gray-100",children:y.jsx("img",{alt:o.imageAlt||o.title,src:o.image,className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-105"})}):y.jsx("div",{className:"flex size-11 items-center justify-center rounded-lg bg-gray-50 group-hover:bg-white",children:(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-6 text-gray-600 group-hover:text-primary","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-6 text-gray-600 group-hover:text-primary"})}return null})()}),y.jsxs("a",{href:o.href,className:`${o.image?"mt-4":"mt-6"} block font-semibold text-gray-900`,children:[o.title,y.jsx("span",{className:"absolute inset-0"})]}),y.jsx("p",{className:"mt-1 text-gray-600",children:o.description})]},o.title))}),y.jsx("div",{className:"bg-gray-50",children:e.ctas&&y.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:y.jsx("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:e.ctas.map(o=>y.jsxs("a",{href:o.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(()=>{const a=o.icon;if(!a)return null;if(f.isValidElement(a))return f.cloneElement(a,{className:"size-5 flex-none text-gray-400","aria-hidden":!0});if(typeof a=="function"){const i=a;return y.jsx(i,{"aria-hidden":!0,className:"size-5 flex-none text-gray-400"})}return null})(),o.title]},o.title))})})})]})]})},e.id)}function Vh({title:e,titleId:t,...r},n){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const hs=S.forwardRef(Vh);function qh({item:e,onHover:t}){const r=f.useRef(null);return y.jsx(sr,{children:({open:n})=>{var o,a;return y.jsxs("div",{className:"relative",onMouseEnter:()=>{var i;t&&!n&&((i=r.current)==null||i.click())},onMouseLeave:()=>{var i;t&&n&&((i=r.current)==null||i.click())},children:[y.jsxs("div",{className:"flex items-center gap-x-1",children:[e.useLink?y.jsx(st,{href:e.href,className:"text-sm/6 font-semibold text-gray-900",children:e.title}):y.jsx("span",{className:"text-sm/6 font-semibold text-gray-900",children:e.title}),y.jsx(Ht,{ref:r,className:"inline-flex items-center p-1 text-gray-700 hover:text-gray-900","aria-label":`Open ${e.title} menu`,children:y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none"})})]}),y.jsx(Bt,{transition:!0,className:"absolute left-1/2 z-10 mt-3 w-72 -translate-x-1/2 overflow-hidden rounded-2xl bg-white p-2 shadow-lg ring-1 ring-gray-900/5 transition data-[closed]:translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:y.jsxs("ul",{className:"space-y-1",children:[(o=e.subMenu)==null?void 0:o.map(i=>y.jsx("li",{className:"group",children:y.jsxs(st,{href:i.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const s=i.icon;if(!s)return y.jsx(hs,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(f.isValidElement(s))return f.cloneElement(s,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof s=="function"){const l=s;return y.jsx(l,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),y.jsx("span",{children:i.title})]})},i.title)),(a=e.ctas)==null?void 0:a.map(i=>y.jsx("li",{className:"group",children:y.jsxs("a",{href:i.href,className:"flex items-center rounded-md px-3 py-2 text-sm text-gray-400 transition-colors duration-300 group-hover:text-black",children:[(()=>{const s=i.icon;if(!s)return y.jsx(hs,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"});if(f.isValidElement(s))return f.cloneElement(s,{className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary","aria-hidden":!0});if(typeof s=="function"){const l=s;return y.jsx(l,{"aria-hidden":!0,className:"mr-2 h-5 w-5 text-gray-500 transition-all duration-300 group-hover:mr-3 group-hover:text-primary"})}return null})(),y.jsx("span",{children:i.title})]})},i.title))]})})]})}})}function Gh({config:e,onScrolledChange:t,scrollThreshold:r=10,quickSearchResults:n=[]}){const[o,a]=f.useState(!1),[i,s]=f.useState(!1),[l,c]=f.useState(!1),[u,h]=f.useState("");return f.useEffect(()=>{typeof(e==null?void 0:e.onSearchOpenChange)=="function"&&e.onSearchOpenChange(l),l||(h(""),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults())},[l]),f.useEffect(()=>{const d=()=>{const p=window.scrollY>r;s(g=>(g!==p&&typeof t=="function"&&t(p),p))};return d(),window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[t,r]),y.jsxs("header",{className:`${e!=null&&e.sticky?"sticky top-0 z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/70":"relative z-10"} isolate bg-white`,children:[y.jsxs("nav",{"aria-label":"Global",className:"mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8",children:[y.jsx("div",{className:"flex lg:flex-1",children:y.jsx(st,{href:"/","aria-label":e.logoAlt||"Home",children:e.logo?y.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:`w-auto transition-all duration-300 ${i?"h-8 md:h-14":"h-12 md:h-20"}`}):y.jsx("div",{className:`h-auto transition-all duration-300 ${i?"w-28":"w-32"}`,children:y.jsx("h1",{className:`transition-all duration-300 ${i?"text-xl":"text-2xl"}`,children:e.fallbackText||"<NovaNav>"})})})}),y.jsx("div",{className:"flex lg:hidden",children:y.jsxs("button",{type:"button",onClick:()=>a(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",children:[y.jsx("span",{className:"sr-only",children:"Open main menu"}),y.jsx(ha,{"aria-hidden":"true",className:"size-6"})]})}),y.jsx(ma,{className:"hidden lg:flex lg:gap-x-12",children:e.menuItems.map(d=>{const p=d.type||(d.full?"full":"default");return d.subMenu?p==="full"?y.jsx(Uh,{item:d,onHover:d.onHover},d.id||d.title):p==="simple"?y.jsx(qh,{item:d,onHover:d.onHover},d.id||d.title):y.jsx(Wh,{item:d,onHover:d.onHover},d.id||d.title):d.useLink?y.jsx(st,{href:d.href,className:"text-sm/6 font-semibold text-gray-900",children:d.title},d.id):y.jsx("a",{href:d.href,className:"text-sm/6 font-semibold text-gray-900",children:d.title},d.id)})}),y.jsxs("div",{className:"hidden gap-4 lg:flex lg:flex-1 lg:justify-end",children:[e.search&&y.jsx("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Open search",children:y.jsx(bi,{"aria-hidden":"true",className:"size-6"})}),e.login&&y.jsxs("a",{href:e.loginHref,className:"text-sm/6 font-semibold text-gray-900",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&y.jsx("a",{href:e.ctaBtnHref,className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:e.ctaTitle||"Sign up"})]})]}),y.jsxs(Ao,{open:l,onClose:c,children:[y.jsx("div",{className:"fixed inset-0 z-50 bg-black/30"}),y.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:y.jsxs(Vr,{className:"w-full max-w-lg rounded-lg bg-white p-6 shadow-lg ring-1 ring-gray-900/10",children:[y.jsxs("div",{className:"flex items-center justify-between pb-2",children:[y.jsx("h2",{className:"text-base font-semibold text-gray-900",children:"Search"}),y.jsx("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 hover:bg-gray-100","aria-label":"Close search",children:y.jsx(Gr,{"aria-hidden":"true",className:"size-5"})})]}),y.jsxs("form",{className:"mt-2",onSubmit:d=>{d.preventDefault(),typeof(e==null?void 0:e.onSearch)=="function"&&e.onSearch(u),c(!1)},children:[y.jsx("label",{htmlFor:"site-search",className:"sr-only",children:"Search"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("input",{id:"site-search",type:"search",placeholder:"Search...",autoFocus:!0,value:u,onChange:d=>{const p=d.target.value;h(p),typeof(e==null?void 0:e.onSearchChange)=="function"&&e.onSearchChange(p)},className:"w-full rounded-md border border-gray-300 px-3 py-2 text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-gray-900 focus:outline-none focus:ring-2 focus:ring-gray-900"}),y.jsx("button",{type:"submit",className:"rounded-md bg-gray-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900",children:"Search"})]})]}),Array.isArray(n)&&n.length>0&&y.jsx("div",{className:"mt-4 divide-y divide-gray-200",children:n.map((d,p)=>{if(!d||typeof d!="object")return null;const g=d.title||d.q||d.name||"Result",m=d.desc||d.description||d.summary||d.a||"",v=typeof(e==null?void 0:e.searchTitleMax)=="number"?e.searchTitleMax:60,b=typeof(e==null?void 0:e.searchDescMax)=="number"?e.searchDescMax:100,E=typeof g=="string"&&g.length>v?`${g.slice(0,v-1)}…`:g,w=typeof m=="string"&&m.length>b?`${m.slice(0,b-1)}…`:m,_=typeof d.link=="string"?d.link:void 0,R=typeof _=="string"&&_.startsWith("/"),T=y.jsxs("div",{className:"flex items-start gap-3 py-3",children:[d!=null&&d.icon?y.jsx("div",{className:"mt-0.5 h-6 w-6 text-gray-500",children:d.icon}):d!=null&&d.image?y.jsx("img",{src:d.image,alt:g,className:"mt-0.5 h-6 w-6 rounded object-cover"}):y.jsx(bi,{"aria-hidden":"true",className:"mt-0.5 size-6 text-gray-400"}),y.jsxs("div",{children:[y.jsx("div",{className:"text-sm font-medium text-gray-900 truncate",children:E}),w?y.jsx("div",{className:"text-sm text-gray-500 truncate",children:w}):null]})]});return _?R?y.jsx("a",{href:_,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),c(!1)},children:T},_||p):y.jsx("a",{href:_,className:"block hover:bg-gray-50",onClick:()=>{typeof(e==null?void 0:e.onBeginNavigate)=="function"&&e.onBeginNavigate(),typeof(e==null?void 0:e.onClearQuickResults)=="function"&&e.onClearQuickResults(),c(!1)},children:T},_||p):y.jsx("div",{className:"block hover:bg-gray-50",children:T},p)})})]})})]}),y.jsxs(Ao,{open:o,onClose:a,className:"lg:hidden",children:[y.jsx("div",{className:"fixed inset-0 z-50"}),y.jsxs(Vr,{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(st,{href:"/",className:"-m-1.5 p-1.5","aria-label":e.logoAlt||"Home",children:e.logo?y.jsx("img",{alt:e.logoAlt||"Logo",src:e.logo,className:"h-8 w-auto"}):y.jsx("span",{className:"text-lg font-semibold",children:e.fallbackText||"NEXGEN Roofing Systems"})}),y.jsxs("button",{type:"button",onClick:()=>a(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700",children:[y.jsx("span",{className:"sr-only",children:"Close menu"}),y.jsx(Gr,{"aria-hidden":"true",className:"size-6"})]})]}),y.jsx("div",{className:"mt-6 flow-root",children:y.jsxs("div",{className:"-my-6 divide-y divide-gray-500/10",children:[y.jsx("div",{className:"space-y-2 py-6",children:e.menuItems.map(d=>d.subMenu?y.jsxs(kl,{as:"div",className:"-mx-3",children:[y.jsxs(Ue,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:[d.title,y.jsx(Wt,{"aria-hidden":"true",className:"size-5 flex-none group-data-[open]:rotate-180"})]}),y.jsx(ca,{className:"mt-2 space-y-2",children:[...d.subMenu,...d.ctas||[]].map(p=>y.jsx(Ue,{as:"a",href:p.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm/7 font-semibold text-gray-900 hover:bg-gray-50",children:p.title},p.title))})]},d.id):d.useLink?y.jsx(st,{href:d.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:d.title},d.id):y.jsx("a",{href:d.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:d.title},d.id))}),y.jsxs("div",{className:"space-y-2 py-6",children:[e.login&&y.jsxs("a",{href:e.loginHref,className:"-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",children:["Log in ",y.jsx("span",{"aria-hidden":"true",children:"→"})]}),e.cta&&y.jsx("a",{href:e.ctaBtnHref,className:"-mx-3 block rounded-lg bg-gray-900 px-3 py-2.5 text-base/7 font-semibold text-white hover:bg-gray-800",children:e.ctaTitle||"Sign up"})]})]})})]})]})]})}function zh(){return y.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/70",children:y.jsxs("svg",{className:"h-10 w-10 animate-spin text-gray-900",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[y.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})})}function Xh({baseConfig:e}){const[t,r]=f.useState([]),[n,o]=f.useState(""),a=f.useRef(null),[i,s]=f.useState(!1),l=async p=>{const g=(p||"").trim();if(!g){r([]);return}try{const m=await fetch(`/api/search?q=${encodeURIComponent(g)}`);if(!m.ok)throw new Error("search failed");const v=await m.json(),b=[...Array.isArray(v==null?void 0:v.services)?v.services:[],...Array.isArray(v==null?void 0:v.faqs)?v.faqs:[],...Array.isArray(v==null?void 0:v.gallery)?v.gallery:[],...Array.isArray(v==null?void 0:v.posts)?v.posts:[],...Array.isArray(v==null?void 0:v.projects)?v.projects:[],...Array.isArray(v==null?void 0:v.locations)?v.locations:[]].filter(_=>_&&typeof _=="object"),E=new Set,w=b.filter(_=>{const R=`${(_.link||"").toLowerCase()}|${(_.title||_.q||"").toLowerCase()}`;return E.has(R)?!1:(E.add(R),!0)}).map(_=>{if(_!=null&&_.icon)return _;const R="h-6 w-6 text-gray-400";switch(_==null?void 0:_.kind){case"faq":return{..._,icon:y.jsx(Um,{"aria-hidden":"true",className:R})};case"service":return{..._,icon:y.jsx(th,{"aria-hidden":"true",className:R})};case"project":return{..._,icon:y.jsx(Om,{"aria-hidden":"true",className:R})};case"post":return{..._,icon:y.jsx(Fm,{"aria-hidden":"true",className:R})};case"gallery":return{..._,icon:y.jsx(Bm,{"aria-hidden":"true",className:R})};case"location":return{..._,icon:y.jsx(Lm,{"aria-hidden":"true",className:R})};default:return _}});r(w)}catch{r([])}},c=p=>{o(p),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>l(p),300)},u=p=>{const g=(p||"").trim();g&&(s(!0),typeof window<"u"&&(window.location.href=`/search?q=${encodeURIComponent(g)}`))},h=p=>{p||(o(""),r([]),a.current&&clearTimeout(a.current))},d=f.useMemo(()=>({...e,search:!0,onSearchChange:c,onSearch:u,onSearchOpenChange:h,onClearQuickResults:()=>r([]),onBeginNavigate:()=>s(!0)}),[e]);return y.jsxs(y.Fragment,{children:[i&&y.jsx("div",{className:"fixed inset-0 z-[60]",children:y.jsx(zh,{})}),y.jsx(Gh,{config:d,quickSearchResults:t})]})}exports.NavController=Xh;exports.SimpleLight=oh;exports.WithFlyout=nh;