lawgic-dev-kit 0.18.8 → 0.19.2

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.
Files changed (32) hide show
  1. package/dist/components/atoms/Button/Button.js +9 -8
  2. package/dist/components/atoms/FilterPill/FilterPill.d.ts +8 -0
  3. package/dist/components/atoms/FilterPill/index.d.ts +1 -0
  4. package/dist/components/atoms/IconButton/IconButton.js +11 -10
  5. package/dist/components/atoms/ProgressBar/ProgressBar.js +3 -2
  6. package/dist/components/atoms/SectionButton/desktop/SectionButton.js +11 -10
  7. package/dist/components/atoms/SectionButton/mobile/SectionButton.js +13 -12
  8. package/dist/components/atoms/SidebarButton/SidebarButton.js +3 -2
  9. package/dist/components/atoms/Switch/Switch.js +3 -2
  10. package/dist/components/atoms/TextButton/TextButton.js +1 -0
  11. package/dist/components/atoms/TextInput/TextInput.js +3 -2
  12. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +9 -8
  13. package/dist/components/molecules/AutocompleteInput/AutocompleteInput.js +1 -1
  14. package/dist/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +1 -1
  15. package/dist/components/molecules/DateInput/DateInput.d.ts +2 -1
  16. package/dist/components/molecules/DateInput/DateInput.js +40 -29
  17. package/dist/components/molecules/FiltersMenu/FiltersMenu.d.ts +13 -0
  18. package/dist/components/molecules/FiltersMenu/index.d.ts +1 -0
  19. package/dist/components/molecules/PillsContainer/PillsContainer.d.ts +5 -2
  20. package/dist/components/molecules/PillsContainer/PillsContainer.js +29 -23
  21. package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +2 -1
  22. package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.js +27 -25
  23. package/dist/hooks/index.d.ts +1 -0
  24. package/dist/hooks/useFilterToggler.d.ts +5 -0
  25. package/dist/hooks/useFilterToggler.js +56 -0
  26. package/dist/index.js +17 -15
  27. package/dist/lawgic-dev-kit.css +1 -1
  28. package/dist/lawgic-dev-kit.umd.js +40 -40
  29. package/dist/types/cycles.d.ts +103 -0
  30. package/dist/types/filters.d.ts +22 -0
  31. package/dist/utils/cycles.d.ts +2 -0
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- (function(re,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-hook-form"),require("fuse.js"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","fuse.js","react-dom"],I):(re=typeof globalThis<"u"?globalThis:re||self,I(re.lawgicDevKit={},re.React,re.reactHookForm,re.Fuse,re.ReactDOM))})(this,function(re,I,hr,hT,mT){"use strict";function Im(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=Im(I),pT=Im(mT);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},js={};/**
1
+ (function(re,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-hook-form"),require("fuse.js"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","fuse.js","react-dom"],_):(re=typeof globalThis<"u"?globalThis:re||self,_(re.lawgicDevKit={},re.React,re.reactHookForm,re.Fuse,re.ReactDOM))})(this,function(re,_,hr,hT,mT){"use strict";function Im(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=Im(_),pT=Im(mT);var ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},js={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -14,12 +14,12 @@
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 Nm;function yT(){return Nm||(Nm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===J?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case T:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList";case U:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case S:return"Portal";case C:return(O.displayName||"Context")+".Provider";case E:return(O._context.displayName||"Context")+".Consumer";case $:var R=O.render;return O=O.displayName,O||(O=R.displayName||R.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case j:return R=O.displayName||null,R!==null?R:e(O.type)||"Memo";case F:R=O._payload,O=O._init;try{return e(O(R))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var R=!1}catch{R=!0}if(R){R=console;var K=R.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var R=e(O);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(se.call(O,"key")){var R=Object.getOwnPropertyDescriptor(O,"key").get;if(R&&R.isReactWarning)return!1}return O.key!==void 0}function c(O,R){function K(){fe||(fe=!0,console.error("%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://react.dev/link/special-props)",R))}K.isReactWarning=!0,Object.defineProperty(O,"key",{get:K,configurable:!0})}function u(){var O=e(this.type);return he[O]||(he[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function d(O,R,K,ae,le,z,Z,oe){return K=z.ref,O={$$typeof:y,type:O,key:R,props:z,_owner:le},(K!==void 0?K:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:u}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,R,K,ae,le,z,Z,oe){var ne=R.children;if(ne!==void 0)if(ae)if(ge(ne)){for(ae=0;ae<ne.length;ae++)m(ne[ae]);Object.freeze&&Object.freeze(ne)}else console.error("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 m(ne);if(se.call(R,"key")){ne=e(O);var de=Object.keys(R).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",Y[ne+ae]||(de=0<de.length?"{"+de.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Nm;function yT(){return Nm||(Nm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case b:return"Fragment";case w:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList";case U:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case S:return"Portal";case E:return(O.displayName||"Context")+".Provider";case A:return(O._context.displayName||"Context")+".Consumer";case $:var R=O.render;return O=O.displayName,O||(O=R.displayName||R.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case j:return R=O.displayName||null,R!==null?R:e(O.type)||"Memo";case F:R=O._payload,O=O._init;try{return e(O(R))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var R=!1}catch{R=!0}if(R){R=console;var K=R.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var R=e(O);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(se.call(O,"key")){var R=Object.getOwnPropertyDescriptor(O,"key").get;if(R&&R.isReactWarning)return!1}return O.key!==void 0}function c(O,R){function K(){fe||(fe=!0,console.error("%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://react.dev/link/special-props)",R))}K.isReactWarning=!0,Object.defineProperty(O,"key",{get:K,configurable:!0})}function u(){var O=e(this.type);return he[O]||(he[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function d(O,R,K,ae,le,z,J,oe){return K=z.ref,O={$$typeof:y,type:O,key:R,props:z,_owner:le},(K!==void 0?K:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:u}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,R,K,ae,le,z,J,oe){var ne=R.children;if(ne!==void 0)if(ae)if(ge(ne)){for(ae=0;ae<ne.length;ae++)m(ne[ae]);Object.freeze&&Object.freeze(ne)}else console.error("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 m(ne);if(se.call(R,"key")){ne=e(O);var de=Object.keys(R).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",Y[ne+ae]||(de=0<de.length?"{"+de.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,ae,ne,de,ne),Y[ne+ae]=!0)}if(ne=null,K!==void 0&&(n(K),ne=""+K),a(R)&&(n(R.key),ne=""+R.key),"key"in R){K={};for(var Ce in R)Ce!=="key"&&(K[Ce]=R[Ce])}else K=R;return ne&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,ne,z,le,i(),K,Z,oe)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===y&&O._store&&(O._store.validated=1)}var p=I,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),C=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ge=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var fe,he={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=ue(r(o)),Y={};Fs.Fragment=b,Fs.jsx=function(O,R,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,R,K,!1,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)},Fs.jsxs=function(O,R,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,R,K,!0,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)}}()),Fs}var Rm;function vT(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?ta.exports=gT():ta.exports=yT()),ta.exports}var v=vT();/*!
22
+ <%s key={someKey} {...props} />`,ae,ne,de,ne),Y[ne+ae]=!0)}if(ne=null,K!==void 0&&(n(K),ne=""+K),a(R)&&(n(R.key),ne=""+R.key),"key"in R){K={};for(var Ce in R)Ce!=="key"&&(K[Ce]=R[Ce])}else K=R;return ne&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,ne,z,le,i(),K,J,oe)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===y&&O._store&&(O._store.validated=1)}var p=_,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ge=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var fe,he={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=ue(r(o)),Y={};Fs.Fragment=b,Fs.jsx=function(O,R,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,R,K,!1,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)},Fs.jsxs=function(O,R,K,ae,le){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,R,K,!0,ae,le,z?Error("react-stack-top-frame"):V,z?ue(r(O)):B)}}()),Fs}var Rm;function vT(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?ta.exports=gT():ta.exports=yT()),ta.exports}var v=vT();/*!
23
23
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
24
24
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
25
25
  * Copyright 2024 Fonticons, Inc.
@@ -576,29 +576,29 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
576
576
  .svg-inline--fa mask .fa-primary,
577
577
  .svg-inline--fa mask .fa-secondary {
578
578
  fill: black;
579
- }`;function sp(){const e=Xm,t=Zm,n=ve.cssPrefix,r=ve.replacementClass;let i=cE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let op=!1;function Cc(){ve.autoAddCss&&!op&&(iE(sp()),op=!0)}var uE={mixout(){return{dom:{css:sp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var Pn=qn[Hn];const ap=[],lp=function(){Ze.removeEventListener("DOMContentLoaded",lp),oa=1,ap.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",lp));function fE(e){Yn&&(oa?setTimeout(e,0):ap.push(e))}function zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?ip(e):"<".concat(t," ").concat(oE(n),">").concat(r.map(zs).join(""),"</").concat(t,">")}function cp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function dE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=dE(e);return t.length===1?t[0].toString(16):null}function hE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function up(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Mc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=up(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,up(t)):Pn.styles[e]=te(te({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Gs,shims:mE}=Pn,fp=Object.keys(xc),pE=fp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,dp={},hp={},mp={},pp={},gp={};function gE(e){return~eE.indexOf(e)}function yE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!gE(i)?i:null}const yp=()=>{const e=r=>Pc(Gs,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});dp=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),hp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),gp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Gs||ve.autoFetchSvg,n=Pc(mE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});mp=n.names,pp=n.unicodes,Oc=aa(ve.styleDefault,{family:ve.familyDefault})};rE(e=>{Oc=aa(e.styleDefault,{family:ve.familyDefault})}),yp();function _c(e,t){return(dp[e]||{})[t]}function vE(e,t){return(hp[e]||{})[t]}function Qr(e,t){return(gp[e]||{})[t]}function vp(e){return mp[e]||{prefix:null,iconName:null}}function bE(e){const t=pp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const bp=()=>({prefix:null,iconName:null,rest:[]});function xE(e){let t=wt;const n=fp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return Ym.forEach(r=>{(e.includes(n[r])||e.some(i=>pE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=KT[n][e];if(n===ra&&!e)return"fad";const i=tp[n][e]||tp[n][r],o=e in Pn.styles?e:null;return i||o||null}function wE(e){let t=[],n=null;return e.forEach(r=>{const i=yE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function xp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(kT),o=xp(e.filter(m=>i.includes(m))),a=xp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Gm.includes(m))),[u=null]=c,d=xE(o),h=te(te({},wE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),CE({values:e,family:d,styles:Gs,config:ve,canonical:h,givenPrefix:r})),SE(n,r,h))}function SE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?vp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Gs.far&&Gs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const TE=Ym.filter(e=>e!==wt||e!==ra),EE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function CE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&TE.includes(n)&&(Object.keys(o).find(p=>EE.includes(p))||a.autoFetchSvg)){const p=OT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class PE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),yp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let wp=[],ji={};const Fi={},AE=Object.keys(Fi);function ME(e,t){let{mixoutsTo:n}=t;return wp=e,ji={},Object.keys(Fi).forEach(r=>{AE.indexOf(r)===-1&&delete Fi[r]}),wp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ji[a]||(ji[a]=[]),ji[a].push(o[a])})}r.provides&&r.provides(Fi)}),n}function Ic(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(ji[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ji[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Fi[e]?Fi[e].apply(null,t):void 0}function $c(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,cp(Sp.definitions,n,t)||cp(Pn.styles,n,t)}const Sp=new PE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(ei("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,fE(()=>{OE({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=aa(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(XT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:Sp,findIconDefinition:$c,toHtml:zs},OE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>zs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function _E(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ec(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function IE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=NT.includes(r),b=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/y*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Us())},children:[c]}),delete T.attributes.title);const E=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},w),h.styles)}),{children:C,attributes:$}=n.found&&t.found?yr("generateAbstractMask",E)||{children:[],attributes:{}}:yr("generateAbstractIcon",E)||{children:[],attributes:{}};return E.children=C,E.attributes=$,a?IE(E):_E(E)}function Tp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Ec(i)&&(d.transform=lE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function $E(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Nc}=Pn;function Rc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const DE={found:!1,width:512,height:512};function NE(e,t){!Qm&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=vp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Nc[t]&&Nc[t][e]){const o=Nc[t][e];return r(Rc(o))}NE(e,t),r(te(te({},DE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Ep=()=>{},kc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Ep,measure:Ep},Ys='FA "6.7.2"',RE=e=>(kc.mark("".concat(Ys," ").concat(e," begins")),()=>Cp(e)),Cp=e=>{kc.mark("".concat(Ys," ").concat(e," ends")),kc.measure("".concat(Ys," ").concat(e),"".concat(Ys," ").concat(e," begins"),"".concat(Ys," ").concat(e," ends"))};var jc={begin:RE,end:Cp};const ua=()=>{};function Pp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function LE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function kE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function jE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function FE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function VE(e){return Ze.createElement(e)}function Ap(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?FE:VE}=t;if(typeof e=="string")return Ze.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Ap(o,{ceFn:n}))}),r}function BE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Ap(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(BE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Tc(t).indexOf(ve.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>zs(o)).join(`
580
- `);t.setAttribute(Jr,""),t.innerHTML=i}};function Mp(e){e()}function Op(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Mp;ve.mutateApproach===HT&&(r=mr.requestAnimationFrame||Mp),r(()=>{const i=jE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function _p(){Fc=!0}function Vc(){Fc=!1}let da=null;function Ip(e){if(!Wm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new Wm(o=>{if(Fc)return;const a=gr();ki(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Pp(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Pp(c.target)&&~QT.indexOf(c.attributeName))if(c.attributeName==="class"&&LE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else kE(c.target)&&n(c.target)})}),Yn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function WE(){da&&da.disconnect()}function UE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function zE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Tc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=vE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function GE(e){const t=ki(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||Us()):(t["aria-hidden"]="true",t.focusable="false")),t}function YE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function $p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=zE(e),o=GE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?UE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:HE}=Pn;function Dp(e){const t=ve.autoReplaceSvg==="nest"?$p(e,{styleParser:!1}):$p(e);return~t.extra.classes.indexOf(np)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function qE(){return[...IT,...hc]}function Np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Ze.documentElement.classList,r=h=>n.add("".concat(Jm,"-").concat(h)),i=h=>n.remove("".concat(Jm,"-").concat(h)),o=ve.autoFetchSvg?qE():Gm.concat(Object.keys(HE));o.includes("fa")||o.push("fa");const a=[".".concat(np,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=ki(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Dp(m);p&&h.push(p)}catch(p){Qm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Op(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function KE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Dp(e).then(n=>{n&&Op([n],t)})}function XE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:$c(i||{})),e(r,te(te({},n),{},{mask:i}))}}const ZE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||Us()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Rc(y),mask:i?Rc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:te(te({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var JE={mixout(){return{icon:XE(ZE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Np,e.nodeCallback=KE,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:r=()=>{}}=t;return Np(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,Dc({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Ec(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},QE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{ei("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},eC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ca({type:"counter",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),$E({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},tC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Tp({content:e,transform:te(te({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Um){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Tp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const nC=new RegExp('"',"ug"),Rp=[1105920,1112319],Lp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),MT),GT),jT),Bc=Object.keys(Lp).reduce((e,t)=>(e[t.toLowerCase()]=Lp[t],e),{}),rC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function iC(e){const t=e.replace(nC,""),n=hE(t,0),r=n>=Rp[0]&&n<=Rp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function sC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||rC[n]}function kp(e,t){const n="".concat(YT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ki(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(ZT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=sC(u,h);const{value:S,isSecondary:b}=iC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),E=w;if(T){const C=bE(S);C.iconName&&C.prefix&&(w=C.iconName,y=C.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==E)){e.setAttribute(n,E),a&&e.removeChild(a);const C=YE(),{extra:$}=C;$.attributes[pc]=t,Lc(w,y).then(A=>{const D=Dc(te(te({},C),{},{icons:{main:A,mask:bp()},prefix:y,iconName:E,extra:$,watchable:!0})),j=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=D.map(F=>zs(F)).join(`
581
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function oC(e){return Promise.all([kp(e,"::before"),kp(e,"::after")])}function aC(e){return e.parentNode!==document.head&&!~qT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jp(e){if(Yn)return new Promise((t,n)=>{const r=ki(e.querySelectorAll("*")).filter(aC).map(oC),i=jc.begin("searchPseudoElements");_p(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var lC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=jp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&jp(n)}}};let Fp=!1;var cC={mixout(){return{dom:{unwatch(){_p(),Fp=!0}}}},hooks(){return{bootstrap(){Ip(Ic("mutationObserverCallbacks",{}))},noAuto(){WE()},watch(e){const{observeMutationsRoot:t}=e;Fp?Vc():Ip(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Vp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var uC={mixout(){return{parse:{transform:e=>Vp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Vp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Bp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function fC(e){return e.tag==="g"?e.children:[e]}var dC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):bp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,p=aE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:te(te({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Bp)}:{},b={tag:"g",attributes:te({},p.inner),children:[Bp(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[b]},w="mask-".concat(a||Us()),E="clip-".concat(a||Us()),C={tag:"mask",attributes:te(te({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:fC(m)},C]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},hC={provides(e){let t=!1;mr.matchMedia&&(t=mr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},mC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},pC=[uE,JE,QE,eC,tC,lC,cC,uC,dC,hC,mC];ME(pC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const gC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @license React v16.13.1
579
+ }`;function sp(){const e=Xm,t=Zm,n=ve.cssPrefix,r=ve.replacementClass;let i=cE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let op=!1;function Cc(){ve.autoAddCss&&!op&&(iE(sp()),op=!0)}var uE={mixout(){return{dom:{css:sp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var Pn=qn[Hn];const ap=[],lp=function(){Ze.removeEventListener("DOMContentLoaded",lp),oa=1,ap.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",lp));function fE(e){Yn&&(oa?setTimeout(e,0):ap.push(e))}function zs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?ip(e):"<".concat(t," ").concat(oE(n),">").concat(r.map(zs).join(""),"</").concat(t,">")}function cp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function dE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Ac(e){const t=dE(e);return t.length===1?t[0].toString(16):null}function hE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function up(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Mc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=up(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,up(t)):Pn.styles[e]=te(te({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Gs,shims:mE}=Pn,fp=Object.keys(xc),pE=fp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,dp={},hp={},mp={},pp={},gp={};function gE(e){return~eE.indexOf(e)}function yE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!gE(i)?i:null}const yp=()=>{const e=r=>Pc(Gs,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});dp=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),hp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),gp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Gs||ve.autoFetchSvg,n=Pc(mE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});mp=n.names,pp=n.unicodes,Oc=aa(ve.styleDefault,{family:ve.familyDefault})};rE(e=>{Oc=aa(e.styleDefault,{family:ve.familyDefault})}),yp();function _c(e,t){return(dp[e]||{})[t]}function vE(e,t){return(hp[e]||{})[t]}function Qr(e,t){return(gp[e]||{})[t]}function vp(e){return mp[e]||{prefix:null,iconName:null}}function bE(e){const t=pp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const bp=()=>({prefix:null,iconName:null,rest:[]});function xE(e){let t=wt;const n=fp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return Ym.forEach(r=>{(e.includes(n[r])||e.some(i=>pE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=KT[n][e];if(n===ra&&!e)return"fad";const i=tp[n][e]||tp[n][r],o=e in Pn.styles?e:null;return i||o||null}function wE(e){let t=[],n=null;return e.forEach(r=>{const i=yE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function xp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=hc.concat(kT),o=xp(e.filter(m=>i.includes(m))),a=xp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Gm.includes(m))),[u=null]=c,d=xE(o),h=te(te({},wE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),CE({values:e,family:d,styles:Gs,config:ve,canonical:h,givenPrefix:r})),SE(n,r,h))}function SE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?vp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Gs.far&&Gs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const TE=Ym.filter(e=>e!==wt||e!==ra),EE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function CE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&TE.includes(n)&&(Object.keys(o).find(p=>EE.includes(p))||a.autoFetchSvg)){const p=OT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class PE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),yp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let wp=[],ji={};const Fi={},AE=Object.keys(Fi);function ME(e,t){let{mixoutsTo:n}=t;return wp=e,ji={},Object.keys(Fi).forEach(r=>{AE.indexOf(r)===-1&&delete Fi[r]}),wp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ji[a]||(ji[a]=[]),ji[a].push(o[a])})}r.provides&&r.provides(Fi)}),n}function Ic(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(ji[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ji[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Fi[e]?Fi[e].apply(null,t):void 0}function $c(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,cp(Sp.definitions,n,t)||cp(Pn.styles,n,t)}const Sp=new PE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(ei("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,fE(()=>{OE({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=aa(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(XT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:Sp,findIconDefinition:$c,toHtml:zs},OE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>zs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function _E(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ec(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function IE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:y}=n.found?n:t,S=NT.includes(r),b=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/y*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Us())},children:[c]}),delete T.attributes.title);const A=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},w),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",A)||{children:[],attributes:{}}:yr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=E,A.attributes=$,a?IE(A):_E(A)}function Tp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Ec(i)&&(d.transform=lE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function $E(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Nc}=Pn;function Rc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Sc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const DE={found:!1,width:512,height:512};function NE(e,t){!Qm&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=vp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Nc[t]&&Nc[t][e]){const o=Nc[t][e];return r(Rc(o))}NE(e,t),r(te(te({},DE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Ep=()=>{},kc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Ep,measure:Ep},Ys='FA "6.7.2"',RE=e=>(kc.mark("".concat(Ys," ").concat(e," begins")),()=>Cp(e)),Cp=e=>{kc.mark("".concat(Ys," ").concat(e," ends")),kc.measure("".concat(Ys," ").concat(e),"".concat(Ys," ").concat(e," begins"),"".concat(Ys," ").concat(e," ends"))};var jc={begin:RE,end:Cp};const ua=()=>{};function Pp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function LE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function kE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function jE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function FE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function VE(e){return Ze.createElement(e)}function Ap(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?FE:VE}=t;if(typeof e=="string")return Ze.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Ap(o,{ceFn:n}))}),r}function BE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Ap(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(BE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Tc(t).indexOf(ve.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>zs(o)).join(`
580
+ `);t.setAttribute(Jr,""),t.innerHTML=i}};function Mp(e){e()}function Op(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Mp;ve.mutateApproach===HT&&(r=mr.requestAnimationFrame||Mp),r(()=>{const i=jE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function _p(){Fc=!0}function Vc(){Fc=!1}let da=null;function Ip(e){if(!Wm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new Wm(o=>{if(Fc)return;const a=gr();ki(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Pp(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Pp(c.target)&&~QT.indexOf(c.attributeName))if(c.attributeName==="class"&&LE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else kE(c.target)&&n(c.target)})}),Yn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function WE(){da&&da.disconnect()}function UE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function zE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Tc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=vE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function GE(e){const t=ki(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||Us()):(t["aria-hidden"]="true",t.focusable="false")),t}function YE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function $p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=zE(e),o=GE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?UE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:HE}=Pn;function Dp(e){const t=ve.autoReplaceSvg==="nest"?$p(e,{styleParser:!1}):$p(e);return~t.extra.classes.indexOf(np)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function qE(){return[...IT,...hc]}function Np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Ze.documentElement.classList,r=h=>n.add("".concat(Jm,"-").concat(h)),i=h=>n.remove("".concat(Jm,"-").concat(h)),o=ve.autoFetchSvg?qE():Gm.concat(Object.keys(HE));o.includes("fa")||o.push("fa");const a=[".".concat(np,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=ki(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Dp(m);p&&h.push(p)}catch(p){Qm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Op(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function KE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Dp(e).then(n=>{n&&Op([n],t)})}function XE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:$c(i||{})),e(r,te(te({},n),{},{mask:i}))}}const ZE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:p,icon:y}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||Us()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Rc(y),mask:i?Rc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:te(te({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var JE={mixout(){return{icon:XE(ZE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Np,e.nodeCallback=KE,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:r=()=>{}}=t;return Np(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,Dc({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Ec(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},QE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{ei("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},eC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return ca({type:"counter",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),$E({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},tC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Tp({content:e,transform:te(te({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Um){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Tp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const nC=new RegExp('"',"ug"),Rp=[1105920,1112319],Lp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),MT),GT),jT),Bc=Object.keys(Lp).reduce((e,t)=>(e[t.toLowerCase()]=Lp[t],e),{}),rC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function iC(e){const t=e.replace(nC,""),n=hE(t,0),r=n>=Rp[0]&&n<=Rp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function sC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||rC[n]}function kp(e,t){const n="".concat(YT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ki(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(ZT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let y=sC(u,h);const{value:S,isSecondary:b}=iC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),A=w;if(T){const E=bE(S);E.iconName&&E.prefix&&(w=E.iconName,y=E.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const E=YE(),{extra:$}=E;$.attributes[pc]=t,Lc(w,y).then(P=>{const N=Dc(te(te({},E),{},{icons:{main:P,mask:bp()},prefix:y,iconName:A,extra:$,watchable:!0})),j=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=N.map(F=>zs(F)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function oC(e){return Promise.all([kp(e,"::before"),kp(e,"::after")])}function aC(e){return e.parentNode!==document.head&&!~qT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jp(e){if(Yn)return new Promise((t,n)=>{const r=ki(e.querySelectorAll("*")).filter(aC).map(oC),i=jc.begin("searchPseudoElements");_p(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var lC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=jp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&jp(n)}}};let Fp=!1;var cC={mixout(){return{dom:{unwatch(){_p(),Fp=!0}}}},hooks(){return{bootstrap(){Ip(Ic("mutationObserverCallbacks",{}))},noAuto(){WE()},watch(e){const{observeMutationsRoot:t}=e;Fp?Vc():Ip(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Vp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var uC={mixout(){return{parse:{transform:e=>Vp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Vp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Bp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function fC(e){return e.tag==="g"?e.children:[e]}var dC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):bp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,p=aE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:te(te({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Bp)}:{},b={tag:"g",attributes:te({},p.inner),children:[Bp(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[b]},w="mask-".concat(a||Us()),A="clip-".concat(a||Us()),E={tag:"mask",attributes:te(te({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:fC(m)},E]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},hC={provides(e){let t=!1;mr.matchMedia&&(t=mr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},mC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},pC=[uE,JE,QE,eC,tC,lC,cC,uC,dC,hC,mC];ME(pC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const gC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @license React v16.13.1
582
582
  * react-is.production.min.js
583
583
  *
584
584
  * Copyright (c) Facebook, Inc. and its affiliates.
585
585
  *
586
586
  * This source code is licensed under the MIT license found in the
587
587
  * LICENSE file in the root directory of this source tree.
588
- */var Wp;function yC(){if(Wp)return je;Wp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function C(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case u:case d:case r:case o:case i:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case S:case y:case a:return A;default:return D}}case n:return D}}}function $(A){return C(A)===d}return je.AsyncMode=u,je.ConcurrentMode=d,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=y,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(A){return $(A)||C(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return C(A)===c},je.isContextProvider=function(A){return C(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return C(A)===h},je.isFragment=function(A){return C(A)===r},je.isLazy=function(A){return C(A)===S},je.isMemo=function(A){return C(A)===y},je.isPortal=function(A){return C(A)===n},je.isProfiler=function(A){return C(A)===o},je.isStrictMode=function(A){return C(A)===i},je.isSuspense=function(A){return C(A)===m},je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===o||A===i||A===m||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===y||A.$$typeof===a||A.$$typeof===c||A.$$typeof===h||A.$$typeof===T||A.$$typeof===w||A.$$typeof===E||A.$$typeof===b)},je.typeOf=C,je}var Fe={};/** @license React v16.13.1
588
+ */var Wp;function yC(){if(Wp)return je;Wp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var N=P.$$typeof;switch(N){case t:switch(P=P.type,P){case u:case d:case r:case o:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case c:case h:case S:case y:case a:return P;default:return N}}case n:return N}}}function $(P){return E(P)===d}return je.AsyncMode=u,je.ConcurrentMode=d,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=y,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(P){return $(P)||E(P)===u},je.isConcurrentMode=$,je.isContextConsumer=function(P){return E(P)===c},je.isContextProvider=function(P){return E(P)===a},je.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},je.isForwardRef=function(P){return E(P)===h},je.isFragment=function(P){return E(P)===r},je.isLazy=function(P){return E(P)===S},je.isMemo=function(P){return E(P)===y},je.isPortal=function(P){return E(P)===n},je.isProfiler=function(P){return E(P)===o},je.isStrictMode=function(P){return E(P)===i},je.isSuspense=function(P){return E(P)===m},je.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===o||P===i||P===m||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===y||P.$$typeof===a||P.$$typeof===c||P.$$typeof===h||P.$$typeof===T||P.$$typeof===w||P.$$typeof===A||P.$$typeof===b)},je.typeOf=E,je}var Fe={};/** @license React v16.13.1
589
589
  * react-is.development.js
590
590
  *
591
591
  * Copyright (c) Facebook, Inc. and its affiliates.
592
592
  *
593
593
  * This source code is licensed under the MIT license found in the
594
594
  * LICENSE file in the root directory of this source tree.
595
- */var Up;function vC(){return Up||(Up=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===E||ie.$$typeof===b)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case i:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return pe}}case n:return pe}}}var A=u,D=d,j=c,F=a,U=t,J=h,ee=r,se=S,ge=y,ue=n,fe=o,he=i,V=m,B=!1;function Y(ie){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(ie)||$(ie)===u}function O(ie){return $(ie)===d}function R(ie){return $(ie)===c}function K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function le(ie){return $(ie)===h}function z(ie){return $(ie)===r}function Z(ie){return $(ie)===S}function oe(ie){return $(ie)===y}function ne(ie){return $(ie)===n}function de(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=D,Fe.ContextConsumer=j,Fe.ContextProvider=F,Fe.Element=U,Fe.ForwardRef=J,Fe.Fragment=ee,Fe.Lazy=se,Fe.Memo=ge,Fe.Portal=ue,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=Y,Fe.isConcurrentMode=O,Fe.isContextConsumer=R,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=le,Fe.isFragment=z,Fe.isLazy=Z,Fe.isMemo=oe,Fe.isPortal=ne,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=C,Fe.typeOf=$}()),Fe}var zp;function Gp(){return zp||(zp=1,process.env.NODE_ENV==="production"?ma.exports=yC():ma.exports=vC()),ma.exports}/*
595
+ */var Up;function vC(){return Up||(Up=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===y||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===w||ie.$$typeof===A||ie.$$typeof===b)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case i:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return pe}}case n:return pe}}}var P=u,N=d,j=c,F=a,U=t,Z=h,ee=r,se=S,ge=y,ue=n,fe=o,he=i,V=m,B=!1;function Y(ie){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(ie)||$(ie)===u}function O(ie){return $(ie)===d}function R(ie){return $(ie)===c}function K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function le(ie){return $(ie)===h}function z(ie){return $(ie)===r}function J(ie){return $(ie)===S}function oe(ie){return $(ie)===y}function ne(ie){return $(ie)===n}function de(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=P,Fe.ConcurrentMode=N,Fe.ContextConsumer=j,Fe.ContextProvider=F,Fe.Element=U,Fe.ForwardRef=Z,Fe.Fragment=ee,Fe.Lazy=se,Fe.Memo=ge,Fe.Portal=ue,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=Y,Fe.isConcurrentMode=O,Fe.isContextConsumer=R,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=le,Fe.isFragment=z,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=ne,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=E,Fe.typeOf=$}()),Fe}var zp;function Gp(){return zp||(zp=1,process.env.NODE_ENV==="production"?ma.exports=yC():ma.exports=vC()),ma.exports}/*
596
596
  object-assign
597
597
  (c) Sindre Sorhus
598
598
  @license MIT
599
- */var zc,Yp;function bC(){if(Yp)return zc;Yp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},zc}var Gc,Hp;function Yc(){if(Hp)return Gc;Hp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,qp;function Kp(){return qp||(qp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,Xp;function xC(){if(Xp)return qc;Xp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Kp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Kc,Zp;function wC(){if(Zp)return Kc;Zp=1;var e=Gp(),t=bC(),n=Yc(),r=Kp(),i=xC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var R=O&&(d&&O[d]||O[h]);if(typeof R=="function")return R}var p="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:E(),arrayOf:C,element:$(),elementType:A(),instanceOf:D,node:J(),objectOf:F,oneOf:j,oneOfType:U,shape:se,exact:ge};function S(O,R){return O===R?O!==0||1/O===1/R:O!==O&&R!==R}function b(O,R){this.message=O,this.data=R&&typeof R=="object"?R:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var R={},K=0;function ae(z,Z,oe,ne,de,Ce,Ve){if(ne=ne||p,Ce=Ce||oe,Ve!==n){if(u){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+oe;!R[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[pe]=!0,K++)}}return Z[oe]==null?z?Z[oe]===null?new b("The "+de+" `"+Ce+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+de+" `"+Ce+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:O(Z,oe,ne,de,Ce)}var le=ae.bind(null,!1);return le.isRequired=ae.bind(null,!0),le}function w(O){function R(K,ae,le,z,Z,oe){var ne=K[ae],de=he(ne);if(de!==O){var Ce=V(ne);return new b("Invalid "+z+" `"+Z+"` of type "+("`"+Ce+"` supplied to `"+le+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(R)}function E(){return T(a)}function C(O){function R(K,ae,le,z,Z){if(typeof O!="function")return new b("Property `"+Z+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var oe=K[ae];if(!Array.isArray(oe)){var ne=he(oe);return new b("Invalid "+z+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an array."))}for(var de=0;de<oe.length;de++){var Ce=O(oe,de,le,z,Z+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(R)}function $(){function O(R,K,ae,le,z){var Z=R[K];if(!c(Z)){var oe=he(Z);return new b("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(R,K,ae,le,z){var Z=R[K];if(!e.isValidElementType(Z)){var oe=he(Z);return new b("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function R(K,ae,le,z,Z){if(!(K[ae]instanceof O)){var oe=O.name||p,ne=Y(K[ae]);return new b("Invalid "+z+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(R)}function j(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function R(K,ae,le,z,Z){for(var oe=K[ae],ne=0;ne<O.length;ne++)if(S(oe,O[ne]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+z+" `"+Z+"` of value `"+String(oe)+"` "+("supplied to `"+le+"`, expected one of "+de+"."))}return T(R)}function F(O){function R(K,ae,le,z,Z){if(typeof O!="function")return new b("Property `"+Z+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an object."));for(var de in oe)if(r(oe,de)){var Ce=O(oe,de,le,z,Z+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(R)}function U(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<O.length;R++){var K=O[R];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+R+"."),a}function ae(le,z,Z,oe,ne){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(le,z,Z,oe,ne,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&de.push(ie.data.expectedType)}var pe=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new b("Invalid "+oe+" `"+ne+"` supplied to "+("`"+Z+"`"+pe+"."))}return T(ae)}function J(){function O(R,K,ae,le,z){return ue(R[K])?null:new b("Invalid "+le+" `"+z+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ee(O,R,K,ae,le){return new b((O||"React class")+": "+R+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function se(O){function R(K,ae,le,z,Z){var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+Z+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ee(le,z,Z,de,V(Ce));var Ve=Ce(oe,de,le,z,Z+"."+de,n);if(Ve)return Ve}return null}return T(R)}function ge(O){function R(K,ae,le,z,Z){var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+Z+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));var de=t({},K[ae],O);for(var Ce in de){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ee(le,z,Z,Ce,V(Ve));if(!Ve)return new b("Invalid "+z+" `"+Z+"` key `"+Ce+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
600
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,le,z,Z+"."+Ce,n);if(ie)return ie}return null}return T(R)}function ue(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(ue);if(O===null||c(O))return!0;var R=m(O);if(R){var K=R.call(O),ae;if(R!==O.entries){for(;!(ae=K.next()).done;)if(!ue(ae.value))return!1}else for(;!(ae=K.next()).done;){var le=ae.value;if(le&&!ue(le[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,R){return O==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function he(O){var R=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(R,O)?"symbol":R}function V(O){if(typeof O>"u"||O===null)return""+O;var R=he(O);if(R==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return R}function B(O){var R=V(O);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Y(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Kc}var Xc,Jp;function SC(){if(Jp)return Xc;Jp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Xc}var Qp;function TC(){if(Qp)return ha.exports;if(Qp=1,process.env.NODE_ENV!=="production"){var e=Gp(),t=!0;ha.exports=wC()(e.isElement,t)}else ha.exports=SC()();return ha.exports}var EC=TC();const $e=$m(EC);function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(r){Vi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(e)}function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PC(e,t){if(e==null)return{};var n=CC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return AC(e)||MC(e)||OC(e)||_C()}function AC(e){if(Array.isArray(e))return Jc(e)}function MC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(e,t){if(e){if(typeof e=="string")return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}}function Jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
601
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,y=e.inverse,S=e.border,b=e.listItem,T=e.flip,w=e.size,E=e.rotation,C=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":y,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Vi(t,"fa-".concat(w),typeof w<"u"&&w!==null),Vi(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Vi(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Vi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function $C(e){return e=e-0,e===e}function tg(e){return $C(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var DC=["style"];function NC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function RC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=tg(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[NC(i)]=o:t[i]=o,t},{})}function ng(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return ng(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=RC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[tg(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=PC(n,DC);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Zc(r)))}var rg=!1;try{rg=process.env.NODE_ENV==="production"}catch{}function LC(){if(!rg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ig(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&pa(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Qc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Vi({},e,t):{}}var sg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Me=I.forwardRef(function(e,t){var n=An(An({},sg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ig(r),m=Qc("classes",[].concat(Zc(IC(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ig(i)),S=gC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return LC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){sg.hasOwnProperty(w)||(T[w]=n[w])}),kC(b[0],T)});Me.displayName="FontAwesomeIcon",Me.propTypes={beat:$e.bool,border:$e.bool,beatFade:$e.bool,bounce:$e.bool,className:$e.string,fade:$e.bool,flash:$e.bool,mask:$e.oneOfType([$e.object,$e.array,$e.string]),maskId:$e.string,fixedWidth:$e.bool,inverse:$e.bool,flip:$e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$e.oneOfType([$e.object,$e.array,$e.string]),listItem:$e.bool,pull:$e.oneOf(["right","left"]),pulse:$e.bool,rotation:$e.oneOf([0,90,180,270]),shake:$e.bool,size:$e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$e.bool,spinPulse:$e.bool,spinReverse:$e.bool,symbol:$e.oneOfType([$e.bool,$e.string]),title:$e.string,titleId:$e.string,transform:$e.oneOfType([$e.string,$e.object]),swapOpacity:$e.bool};var kC=ng.bind(null,I.createElement);const jC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
599
+ */var zc,Yp;function bC(){if(Yp)return zc;Yp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},zc}var Gc,Hp;function Yc(){if(Hp)return Gc;Hp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,qp;function Kp(){return qp||(qp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,Xp;function xC(){if(Xp)return qc;Xp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Kp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},qc=i,qc}var Kc,Zp;function wC(){if(Zp)return Kc;Zp=1;var e=Gp(),t=bC(),n=Yc(),r=Kp(),i=xC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var R=O&&(d&&O[d]||O[h]);if(typeof R=="function")return R}var p="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:A(),arrayOf:E,element:$(),elementType:P(),instanceOf:N,node:Z(),objectOf:F,oneOf:j,oneOfType:U,shape:se,exact:ge};function S(O,R){return O===R?O!==0||1/O===1/R:O!==O&&R!==R}function b(O,R){this.message=O,this.data=R&&typeof R=="object"?R:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var R={},K=0;function ae(z,J,oe,ne,de,Ce,Ve){if(ne=ne||p,Ce=Ce||oe,Ve!==n){if(u){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+oe;!R[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[pe]=!0,K++)}}return J[oe]==null?z?J[oe]===null?new b("The "+de+" `"+Ce+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+de+" `"+Ce+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:O(J,oe,ne,de,Ce)}var le=ae.bind(null,!1);return le.isRequired=ae.bind(null,!0),le}function w(O){function R(K,ae,le,z,J,oe){var ne=K[ae],de=he(ne);if(de!==O){var Ce=V(ne);return new b("Invalid "+z+" `"+J+"` of type "+("`"+Ce+"` supplied to `"+le+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(R)}function A(){return T(a)}function E(O){function R(K,ae,le,z,J){if(typeof O!="function")return new b("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var oe=K[ae];if(!Array.isArray(oe)){var ne=he(oe);return new b("Invalid "+z+" `"+J+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an array."))}for(var de=0;de<oe.length;de++){var Ce=O(oe,de,le,z,J+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(R)}function $(){function O(R,K,ae,le,z){var J=R[K];if(!c(J)){var oe=he(J);return new b("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function P(){function O(R,K,ae,le,z){var J=R[K];if(!e.isValidElementType(J)){var oe=he(J);return new b("Invalid "+le+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function N(O){function R(K,ae,le,z,J){if(!(K[ae]instanceof O)){var oe=O.name||p,ne=Y(K[ae]);return new b("Invalid "+z+" `"+J+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(R)}function j(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function R(K,ae,le,z,J){for(var oe=K[ae],ne=0;ne<O.length;ne++)if(S(oe,O[ne]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+z+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+le+"`, expected one of "+de+"."))}return T(R)}function F(O){function R(K,ae,le,z,J){if(typeof O!="function")return new b("Property `"+J+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+J+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an object."));for(var de in oe)if(r(oe,de)){var Ce=O(oe,de,le,z,J+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(R)}function U(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<O.length;R++){var K=O[R];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+R+"."),a}function ae(le,z,J,oe,ne){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(le,z,J,oe,ne,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&de.push(ie.data.expectedType)}var pe=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new b("Invalid "+oe+" `"+ne+"` supplied to "+("`"+J+"`"+pe+"."))}return T(ae)}function Z(){function O(R,K,ae,le,z){return ue(R[K])?null:new b("Invalid "+le+" `"+z+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ee(O,R,K,ae,le){return new b((O||"React class")+": "+R+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function se(O){function R(K,ae,le,z,J){var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+J+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ee(le,z,J,de,V(Ce));var Ve=Ce(oe,de,le,z,J+"."+de,n);if(Ve)return Ve}return null}return T(R)}function ge(O){function R(K,ae,le,z,J){var oe=K[ae],ne=he(oe);if(ne!=="object")return new b("Invalid "+z+" `"+J+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));var de=t({},K[ae],O);for(var Ce in de){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ee(le,z,J,Ce,V(Ve));if(!Ve)return new b("Invalid "+z+" `"+J+"` key `"+Ce+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,le,z,J+"."+Ce,n);if(ie)return ie}return null}return T(R)}function ue(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(ue);if(O===null||c(O))return!0;var R=m(O);if(R){var K=R.call(O),ae;if(R!==O.entries){for(;!(ae=K.next()).done;)if(!ue(ae.value))return!1}else for(;!(ae=K.next()).done;){var le=ae.value;if(le&&!ue(le[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,R){return O==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function he(O){var R=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(R,O)?"symbol":R}function V(O){if(typeof O>"u"||O===null)return""+O;var R=he(O);if(R==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return R}function B(O){var R=V(O);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Y(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Kc}var Xc,Jp;function SC(){if(Jp)return Xc;Jp=1;var e=Yc();function t(){}function n(){}return n.resetWarningCache=t,Xc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Xc}var Qp;function TC(){if(Qp)return ha.exports;if(Qp=1,process.env.NODE_ENV!=="production"){var e=Gp(),t=!0;ha.exports=wC()(e.isElement,t)}else ha.exports=SC()();return ha.exports}var EC=TC();const $e=$m(EC);function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(r){Vi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(e)}function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PC(e,t){if(e==null)return{};var n=CC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zc(e){return AC(e)||MC(e)||OC(e)||_C()}function AC(e){if(Array.isArray(e))return Jc(e)}function MC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(e,t){if(e){if(typeof e=="string")return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}}function Jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
601
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,p=e.fixedWidth,y=e.inverse,S=e.border,b=e.listItem,T=e.flip,w=e.size,A=e.rotation,E=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":y,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Vi(t,"fa-".concat(w),typeof w<"u"&&w!==null),Vi(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Vi(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Vi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(P){return $[P]?P:null}).filter(function(P){return P})}function $C(e){return e=e-0,e===e}function tg(e){return $C(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var DC=["style"];function NC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function RC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=tg(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[NC(i)]=o:t[i]=o,t},{})}function ng(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return ng(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=RC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[tg(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=PC(n,DC);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Zc(r)))}var rg=!1;try{rg=process.env.NODE_ENV==="production"}catch{}function LC(){if(!rg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ig(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&pa(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Qc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Vi({},e,t):{}}var sg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Me=_.forwardRef(function(e,t){var n=An(An({},sg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ig(r),m=Qc("classes",[].concat(Zc(IC(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ig(i)),S=gC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return LC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){sg.hasOwnProperty(w)||(T[w]=n[w])}),kC(b[0],T)});Me.displayName="FontAwesomeIcon",Me.propTypes={beat:$e.bool,border:$e.bool,beatFade:$e.bool,bounce:$e.bool,className:$e.string,fade:$e.bool,flash:$e.bool,mask:$e.oneOfType([$e.object,$e.array,$e.string]),maskId:$e.string,fixedWidth:$e.bool,inverse:$e.bool,flip:$e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$e.oneOfType([$e.object,$e.array,$e.string]),listItem:$e.bool,pull:$e.oneOf(["right","left"]),pulse:$e.bool,rotation:$e.oneOf([0,90,180,270]),shake:$e.bool,size:$e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$e.bool,spinPulse:$e.bool,spinReverse:$e.bool,symbol:$e.oneOfType([$e.bool,$e.string]),title:$e.string,titleId:$e.string,transform:$e.oneOfType([$e.string,$e.object]),swapOpacity:$e.bool};var kC=ng.bind(null,_.createElement);const jC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
602
602
  flex flex-col items-center justify-center
603
603
  w-[180px] h-[87px] p-4 rounded-xl
604
604
  gap-2 transition-colors
@@ -610,7 +610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
610
610
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
611
611
  * License - https://fontawesome.com/license (Commercial License)
612
612
  * Copyright 2024 Fonticons, Inc.
613
- */const FC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},VC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},BC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},WC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},UC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},zC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},GC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},og={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},eu={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},YC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},HC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},qC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},ag={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},KC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},tu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},nu=I.createContext({});function ru(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",lg=iu?I.useLayoutEffect:I.useEffect,ga=I.createContext(null),su=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let XC=class extends Q.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function ZC({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(su);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
613
+ */const FC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},VC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},BC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},WC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},UC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},zC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},GC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},og={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},eu={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},YC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},HC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},qC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},ag={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},KC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},tu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},nu=_.createContext({});function ru(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const iu=typeof window<"u",lg=iu?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),su=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let XC=class extends Q.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function ZC({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(su);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
614
614
  [data-motion-pop-id="${r}"] {
615
615
  position: absolute !important;
616
616
  width: ${c}px !important;
@@ -618,21 +618,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
618
618
  ${p}px !important;
619
619
  top: ${d}px !important;
620
620
  }
621
- `),()=>{document.head.removeChild(y)}},[t]),v.jsx(XC,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const JC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(QC),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(ZC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function QC(){return new Map}function cg(e=!0){const t=I.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function ug(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const eP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=cg(a),h=I.useMemo(()=>ug(e),[e]),m=a&&!u?[]:h.map(ya),p=I.useRef(!0),y=I.useRef(h),S=ru(()=>new Map),[b,T]=I.useState(h),[w,E]=I.useState(h);lg(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ya(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const C=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const j=w[D],F=ya(j);m.includes(F)||(A.splice(D,0,j),C.push(j))}return o==="wait"&&C.length&&(A=C),E(ug(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(nu);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ya(A),j=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(J=>{J||(U=!1)}),U&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(JC,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:A},D)})})};function ou(e,t){e.indexOf(t)===-1&&e.push(t)}function au(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Bi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Bi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const tP={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Mn=e=>e*1e3,Kn=e=>e/1e3;function fg(e,t){return t?e*(1e3/t):0}const dg=new Set;function va(e,t,n){e||dg.has(t)||(console.warn(t),dg.add(t))}const nP=lu(()=>window.ScrollTimeline!==void 0);let rP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(nP()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},iP=class extends rP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function hg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function du(e){return typeof e=="function"}function mg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",sP={linearEasing:void 0};function oP(e,t){const n=lu(e);return()=>{var r;return(r=sP[t])!==null&&r!==void 0?r:n()}}const ba=oP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Wi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function gg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(gg))}const Hs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hs([0,.65,.55,1]),circOut:Hs([.55,0,1,.45]),backIn:Hs([.31,.01,.66,-.59]),backOut:Hs([.33,1.53,.69,.99])};function yg(e,t){if(e)return typeof e=="function"&&ba()?pg(e,t):hu(e)?Hs(e):Array.isArray(e)?e.map(n=>yg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],vg={value:null};function aP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&vg.value&&vg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const lP=40;function bg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,E)=>(w[E]=aP(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,lP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,E)=>{const C=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),C.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<xa.length;E++)a[xa[E]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=bg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:gu}=bg(queueMicrotask,!1);let wa;function cP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||tP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(cP)}},yn={x:!1,y:!1};function xg(){return yn.x||yn.y}function uP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function fP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function wg(e,t){const n=fP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Sg(e){return!(e.pointerType==="touch"||xg())}function dP(e,t,n={}){const[r,i,o]=wg(e,n),a=c=>{if(!Sg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{Sg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const Tg=(e,t)=>t?e===t?!0:Tg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mP(e){return hP.has(e.tagName)||e.tabIndex!==-1}const qs=new WeakSet;function Eg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Eg(()=>{if(qs.has(n))return;vu(n,"down");const i=Eg(()=>{vu(n,"up")}),o=()=>vu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Cg(e){return yu(e)&&!xg()}function gP(e,t,n={}){const[r,i,o]=wg(e,n),a=c=>{const u=c.currentTarget;if(!Cg(c)||qs.has(u))return;qs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Cg(y)||!qs.has(u))&&(qs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||Tg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>pP(d,i)),!mP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Pg=30,yP=e=>!isNaN(parseFloat(e));let vP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pg);return fg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ks(e,t){return new vP(e,t)}const Ag=I.createContext({strict:!1}),Mg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ui={};for(const e in Mg)Ui[e]={isEnabled:t=>Mg[e].some(n=>!!t[n])};function bP(e){for(const t in e)Ui[t]={...Ui[t],...e[t]}}const xP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xP.has(e)}let Og=e=>!Sa(e);function wP(e){e&&(Og=t=>t.startsWith("on")?!Sa(t):e(t))}try{wP(require("@emotion/is-prop-valid").default)}catch{}function SP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Og(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function TP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ta=I.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Ca(e){return Ea(e.animate)||xu.some(t=>Xs(e[t]))}function _g(e){return!!(Ca(e)||e.variants)}function EP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xs(n)?n:void 0,animate:Xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function CP(e){const{initial:t,animate:n}=EP(e,I.useContext(Ta));return I.useMemo(()=>({initial:t,animate:n}),[Ig(t),Ig(n)])}function Ig(e){return Array.isArray(e)?e.join(" "):e}const PP=Symbol.for("motionComponentSymbol");function zi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AP(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):zi(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$g="data-"+wu("framerAppearId"),Dg=I.createContext({});function MP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ta),u=I.useContext(Ag),d=I.useContext(ga),h=I.useContext(su).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(Dg);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&OP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[$g],T=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return lg(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function OP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ng(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&zi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Ng(e){if(e)return e.options.allowProjection!==!1?e.projection:Ng(e.parent)}function _P({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&bP(e);function c(d,h){let m;const p={...I.useContext(su),...d,layoutId:IP(d)},{isStatic:y}=p,S=CP(d),b=r(d,y);if(!y&&iu){$P(p,e);const T=DP(p);m=T.MeasureLayout,S.visualElement=MP(i,b,p,t,T.ProjectionNode)}return v.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,AP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[PP]=i,u}function IP({layoutId:e}){const t=I.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function $P(e,t){const n=I.useContext(Ag).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Bi(!1,r):vr(!1,r)}}function DP(e){const{drag:t,layout:n}=Ui;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Rg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Rg("--"),NP=Rg("var(--"),Tu=e=>NP(e)?RP.test(e.split("/*")[0].trim()):!1,RP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs={};function LP(e){for(const t in e)Zs[t]=e[t],Su(t)&&(Zs[t].isCSSVariable=!0)}const Gi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Gi);function Lg(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),kg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Yi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Yi,transform:e=>Xn(0,1,e)},Pa={...Yi,default:1},Qs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Qs("deg"),_n=Qs("%"),we=Qs("px"),kP=Qs("vh"),jP=Qs("vw"),jg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},FP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},VP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Js,originX:jg,originY:jg,originZ:we},Fg={...Yi,transform:Math.round},Eu={...FP,...VP,zIndex:Fg,size:we,fillOpacity:Js,strokeOpacity:Js,numOctaves:Fg},BP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WP=Gi.length;function UP(e,t,n){let r="",i=!0;for(let o=0;o<WP;o++){const a=Gi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=kg(c,Eu[a]);if(!u){i=!1;const h=BP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=kg(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=UP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vg(e,t,n){for(const r in t)!St(t[r])&&!Lg(r,n)&&(e[r]=t[r])}function zP({transformTemplate:e},t){return I.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GP(e,t){const n=e.style||{},r={};return Vg(r,n,e),Object.assign(r,zP(e,t)),r}function YP(e,t){const n={},r=GP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const HP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Au(e){return typeof e!="string"||e.includes("-")?!1:!!(HP.indexOf(e)>-1||/[A-Z]/u.test(e))}const qP={offset:"stroke-dashoffset",array:"stroke-dasharray"},KP={offset:"strokeDashoffset",array:"strokeDasharray"};function XP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?qP:KP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Bg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function ZP(e,t,n){const r=Bg(t,e.x,e.width),i=Bg(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=ZP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&XP(p,a,c,u,!1)}const Wg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JP(e,t,n,r){const i=I.useMemo(()=>{const o=Wg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Vg(o,e.style,e),i.style={...o,...i.style}}return i}function QP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?JP:YP)(r,o,a,n),d=SP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function Ug(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,o]=Ug(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ug(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),eA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tA=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return eA(t)?t.toValue():t}function nA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:rA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const zg=e=>(t,n)=>{const r=I.useContext(Ta),i=I.useContext(ga),o=()=>nA(e,t,r,i);return n?o():ru(o)};function rA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=_g(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let C=w[E];if(Array.isArray(C)){const $=h?C.length-1:0;C=C[$]}C!==null&&(i[E]=C)}for(const E in b)i[E]=b[E]}}}return i}function $u(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Lg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const iA={useVisualState:zg({scrapeMotionValuesFromProps:$u,createRenderState:Pu})};function Gg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Yg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Hg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qg(e,t,n,r){Yg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hg.has(i)?i:wu(i),t.attrs[i])}function Kg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Gi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Xg=["x","y","width","height","cx","cy","r"],sA={useVisualState:zg({scrapeMotionValuesFromProps:Kg,createRenderState:Wg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Xg.length;c++){const u=Xg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Gg(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),qg(n,r)})})}})};function oA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?sA:iA,preloadedFeatures:e,useRender:QP(i),createVisualElement:t,Component:r};return _P(a)}}function eo(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Zg=new Set(["width","height","top","left","right","bottom",...Gi]);function aA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ks(n))}function lA(e,t){const n=eo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=tA(o[a]);aA(e,a,c)}}function cA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(cA(n))return n.add(t)}function Jg(e){return e.props[$g]}const Qg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uA=1e-7,fA=12;function dA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Qg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>uA&&++c<fA);return a}function to(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>dA(o,0,1,e,n);return o=>o===0||o===1?o:Qg(i(o),t,r)}const e0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,t0=e=>t=>1-e(1-t),n0=to(.33,1.53,.69,.99),Nu=t0(n0),r0=e0(Nu),i0=e=>(e*=2)<1?.5*Nu(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),s0=t0(Ru),o0=e0(Ru),a0=e=>/^0[^.\s]+$/u.test(e);function hA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const no=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mA(e){return e==null}const pA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ku=(e,t)=>n=>!!(typeof n=="string"&&pA.test(n)&&n.startsWith(e)||t&&!mA(n)&&Object.prototype.hasOwnProperty.call(n,t)),l0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},gA=e=>Xn(0,255,e),ju={...Yi,transform:e=>Math.round(gA(e))},ni={test:ku("rgb","red"),parse:l0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+no(Js.transform(r))+")"};function yA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fu={test:ku("#"),parse:yA,transform:ni.transform},Hi={test:ku("hsl","hue"),parse:l0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(no(t))+", "+_n.transform(no(n))+", "+no(Js.transform(r))+")"},Tt={test:e=>ni.test(e)||Fu.test(e)||Hi.test(e),parse:e=>ni.test(e)?ni.parse(e):Hi.test(e)?Hi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Hi.transform(e)},vA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(vA))===null||n===void 0?void 0:n.length)||0)>0}const c0="number",u0="color",xA="var",wA="var(",f0="${}",SA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ro(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(SA,u=>(Tt.test(u)?(r.color.push(o),i.push(u0),n.push(Tt.parse(u))):u.startsWith(wA)?(r.var.push(o),i.push(xA),n.push(u)):(r.number.push(o),i.push(c0),n.push(parseFloat(u))),++o,f0)).split(f0);return{values:n,split:c,indexes:r,types:i}}function d0(e){return ro(e).values}function h0(e){const{split:t,types:n}=ro(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===c0?o+=no(i[a]):c===u0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const TA=e=>typeof e=="number"?0:e;function EA(e){const t=d0(e);return h0(e)(t.map(TA))}const wr={test:bA,parse:d0,createTransformer:h0,getAnimatableNone:EA},CA=new Set(["brightness","contrast","saturate","opacity"]);function PA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=CA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const AA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(AA);return t?t.map(PA).join(" "):e}},MA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},m0=e=>MA[e];function p0(e,t){let n=m0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OA=new Set(["auto","none","0"]);function _A(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!OA.has(o)&&ro(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=p0(n,i)}const ri=e=>e*180/Math.PI,Bu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Wu(t)},IA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bu,rotateZ:Bu,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),g0=Bu,y0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),v0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$A={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:y0,scaleY:v0,scale:e=>(y0(e)+v0(e))/2,rotateX:e=>Wu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(ri(Math.atan2(-e[2],e[0]))),rotateZ:g0,rotate:g0,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function b0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return b0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$A,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=IA,i=c}if(!i)return b0(t);const o=r[t],a=i[1].split(",").map(NA);return typeof o=="function"?o(a):a[o]}const DA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function NA(e){return parseFloat(e.trim())}const x0=e=>e===Yi||e===we,RA=new Set(["x","y","z"]),LA=Gi.filter(e=>!RA.has(e));function kA(e){const t=[];return LA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};qi.translateX=qi.x,qi.translateY=qi.y;const ii=new Set;let zu=!1,Gu=!1;function w0(){if(Gu){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,ii.forEach(e=>e.complete()),ii.clear()}function S0(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function jA(){S0(),w0()}let Yu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),zu||(zu=!0,Ye.read(S0),Ye.resolveKeyframes(w0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const T0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),FA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VA(e){const t=FA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const BA=4;function E0(e,t,n=1){vr(n<=BA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=VA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return T0(a)?parseFloat(a):a}return Tu(i)?E0(i,t,n+1):i}const C0=e=>t=>t.test(e),P0=[Yi,we,_n,xr,jP,kP,{test:e=>e==="auto",parse:e=>e}],A0=e=>P0.find(C0(e));let M0=class extends Yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=E0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Zg.has(r)||t.length!==2)return;const[i,o]=t,a=A0(i),c=A0(o);if(a!==c)if(x0(a)&&x0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)hA(t[i])&&r.push(i);r.length&&_A(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const O0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function WA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function UA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=O0(i,t),c=O0(o,t);return Bi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:WA(e)||(n==="spring"||du(n))&&r}const zA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(zA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const GA=40;let _0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=On.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>GA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!UA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),o=Hu(u,c,e),a=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},HA=[Fu,ni,Hi],qA=e=>HA.find(t=>t.test(e));function I0(e){const t=qA(e);if(Bi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Hi&&(n=YA(n)),n}const $0=(e,t)=>{const n=I0(e),r=I0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=qu(n.red,r.red,o),i.green=qu(n.green,r.green,o),i.blue=qu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},KA=(e,t)=>n=>t(e(n)),io=(...e)=>e.reduce(KA),Ku=new Set(["none","hidden"]);function XA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ZA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?ZA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?$0:eM:Array.isArray(e)?D0:typeof e=="object"?Tt.test(e)?$0:JA:Oa}function D0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function JA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function QA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const eM=(e,t)=>{const n=wr.createTransformer(t),r=ro(e),i=ro(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ku.has(e)&&!i.values.length||Ku.has(t)&&!r.values.length?XA(e,t):io(D0(QA(r,i),i.values),n):(Bi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function N0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const tM=5;function R0(e,t,n){const r=Math.max(t-tM,0);return fg(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},L0=.001;function nM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Bi(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return L0-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),a);return(-i(d)+L0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=iM(i,o,c);if(e=Mn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const rM=12;function iM(e,t,n){let r=n;for(let i=1;i<rM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const sM=["duration","bounce"],oM=["stiffness","damping","mass"];function k0(e,t){return t.some(n=>e[n]!==void 0)}function aM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!k0(e,oM)&&k0(e,sM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=nM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function j0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=aM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Kn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?nt.restSpeed.granular:nt.restSpeed.default),i||(i=E?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const A=Zu(w,b);C=D=>{const j=Math.exp(-b*w*D);return a-j*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)C=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);C=D=>{const j=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-j*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=C(A);if(y)c.done=A>=m;else{let j=0;b<1&&(j=A===0?Mn(S):R0(C,A,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(hg($),fu),D=pg(j=>$.next(A*j).value,A,30);return A+"ms "+D}};return $}function F0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const E=F=>-b*Math.exp(-F/r),C=F=>w+E(F),$=F=>{const U=E(F),J=C(F);p.done=Math.abs(U)<=d,p.value=p.done?w:J};let A,D;const j=F=>{y(p.value)&&(A=F,D=j0({keyframes:[p.value,S(p.value)],velocity:R0(C,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&A===void 0&&(U=!0,$(F),j(F)),A!==void 0&&F>=A?D.next(F-A):(!U&&$(F),p)}}}const lM=to(.42,0,1,1),cM=to(0,0,.58,1),V0=to(.42,0,.58,1),uM=e=>Array.isArray(e)&&typeof e[0]!="number",B0={linear:Nt,easeIn:lM,easeInOut:V0,easeOut:cM,circIn:Ru,circInOut:o0,circOut:s0,backIn:Nu,backInOut:r0,backOut:n0,anticipate:i0},W0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return to(t,n,r,i)}else if(typeof e=="string")return vr(B0[e]!==void 0,`Invalid easing type '${e}'`),B0[e];return e};function fM(e,t,n){const r=[],i=n||N0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=io(u,c)}r.push(c)}return r}function dM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=fM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Wi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function hM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wi(0,t,r);e.push(tt(n,1,i))}}function mM(e){const t=[0];return hM(t,e.length-1),t}function pM(e,t){return e.map(n=>n*t)}function gM(e,t){return e.map(()=>t||V0).splice(0,e.length-1)}function so({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=uM(r)?r.map(W0):W0(r),o={done:!1,value:t[0]},a=pM(n&&n.length===t.length?n:mM(t),e),c=dM(a,t,{ease:Array.isArray(i)?i:gM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const yM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},vM={decay:F0,inertia:F0,tween:so,keyframes:so,spring:j0},bM=e=>e/100;let Ju=class extends _0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=du(n)?n:vM[n]||so;let u,d;process.env.NODE_ENV!=="production"&&c!==so&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==so&&typeof t[0]!="number"&&(u=io(bM,N0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=hg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),C=Xn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(C);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),j&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=yM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const xM=new Set(["opacity","clipPath","filter","transform"]);function wM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=yg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const SM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,TM=2e4;function EM(e){return du(e.type)||e.type==="spring"||!gg(e.ease)}function CM(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<TM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const U0={anticipate:i0,backInOut:r0,circInOut:o0};function PM(e){return e in U0}let z0=class extends _0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new M0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ba()&&PM(o)&&(o=U0[o]),EM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=CM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=wM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(mg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;mg(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Mn(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return SM()&&r&&xM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const AM={type:"spring",stiffness:500,damping:25,restSpeed:10},MM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),OM={type:"keyframes",duration:.8},_M={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IM=(e,{keyframes:t})=>t.length>2?OM:ti.has(e)?e.startsWith("scale")?MM(t[1]):AM:_M;function $M({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,o)=>a=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Mn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};$M(c)||(h={...h,...IM(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new iP([])}return!o&&z0.supports(h)?new z0(h):new Ju(h)};function DM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function G0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&DM(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Jg(e);if(w){const E=window.MotionHandoffAnimation(w,m,Ye);E!==null&&(S.startTime=E,b=!0)}}Du(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Zg.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&lA(e,c)})}),d}function ef(e,t,n={}){var r;const i=eo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(G0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return NM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function NM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(RM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ef(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function RM(e,t){return e.sortNodePosition(t)}function LM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ef(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?eo(e,t,n.custom):t;r=Promise.all(G0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Y0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const kM=xu.length;function H0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?H0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kM;n++){const r=xu[n],i=e.props[r];(Xs(i)||i===!1)&&(t[r]=i)}return t}const jM=[...bu].reverse(),FM=bu.length;function VM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>LM(e,n,r)))}function BM(e){let t=VM(e),n=q0(),r=!0;const i=u=>(d,h)=>{var m;const p=eo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=H0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<FM;T++){const w=jM[T],E=n[w],C=d[w]!==void 0?d[w]:h[w],$=Xs(C),A=w===u?E.isActive:null;A===!1&&(S=T);let D=C===h[w]&&C!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!C&&!E.prevProp||Ea(C)||typeof C=="boolean")continue;const j=WM(E.prevProp,C);let F=j||w===u&&E.isActive&&!D&&$||T>S&&$,U=!1;const J=Array.isArray(C)?C:[C];let ee=J.reduce(i(w),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=E,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(B)&&Iu(Y)?O=!Y0(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):E.protectedKeys[V]=!0}E.prevProp=C,E.prevResolvedValues=ee,E.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=eo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),C=e.getValue(w);C&&(C.liveStyle=!0),T[w]=E??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=q0(),r=!0}}}function WM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Y0(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function q0(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},UM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=BM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},zM=0;const GM={animation:{Feature:UM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=zM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function oo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ao(e){return{point:{x:e.pageX,y:e.pageY}}}const YM=e=>t=>yu(t)&&e(t,ao(t));function lo(e,t,n,r){return oo(e,t,YM(n),r)}function K0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const X0=1e-4,KM=1-X0,XM=1+X0,Z0=.01,ZM=0-Z0,JM=0+Z0;function Ot(e){return e.max-e.min}function QM(e,t,n){return Math.abs(e-t)<=n}function J0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KM&&e.scale<=XM||isNaN(e.scale))&&(e.scale=1),(e.translate>=ZM&&e.translate<=JM||isNaN(e.translate))&&(e.translate=0)}function co(e,t,n,r){J0(e.x,t.x,n.x,r?r.originX:void 0),J0(e.y,t.y,n.y,r?r.originY:void 0)}function Q0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function eO(e,t,n){Q0(e.x,t.x,n.x),Q0(e.y,t.y,n.y)}function ey(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function uo(e,t,n){ey(e.x,t.x,n.x),ey(e.y,t.y,n.y)}const ty=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:ty(),y:ty()}),ny=()=>({min:0,max:0}),at=()=>({x:ny(),y:ny()});function tn(e){return[e("x"),e("y")]}function tf(e){return e===void 0||e===1}function nf({scale:e,scaleX:t,scaleY:n}){return!tf(e)||!tf(t)||!tf(n)}function oi(e){return nf(e)||ry(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ry(e){return iy(e.x)||iy(e.y)}function iy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function sy(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=sy(e.min,t,n,r,i),e.max=sy(e.max,t,n,r,i)}function oy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const ay=.999999999999,ly=1.0000000000001;function tO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Zi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,oy(e,a)),r&&oi(o.latestValues)&&Zi(e,o.latestValues))}t.x<ly&&t.x>ay&&(t.x=1),t.y<ly&&t.y>ay&&(t.y=1)}function Xi(e,t){e.min=e.min+t,e.max=e.max+t}function cy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function Zi(e,t){cy(e.x,t.x,t.scaleX,t.scale,t.originX),cy(e.y,t.y,t.scaleY,t.scale,t.originY)}function uy(e,t){return K0(qM(e.getBoundingClientRect(),t))}function nO(e,t,n){const r=uy(e,n),{scroll:i}=t;return i&&(Xi(r.x,i.offset.x),Xi(r.y,i.offset.y)),r}const fy=({current:e})=>e?e.ownerDocument.defaultView:null,dy=(e,t)=>Math.abs(e-t);function rO(e,t){const n=dy(e.x,t.x),r=dy(e.y,t.y);return Math.sqrt(n**2+r**2)}let hy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=rO(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:w}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sf(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!yu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ao(t),c=sf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=io(lo(this.contextWindow,"pointermove",this.handlePointerMove),lo(this.contextWindow,"pointerup",this.handlePointerUp),lo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function my(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:my(e,py(t)),offset:my(e,iO(t)),velocity:sO(t,.1)}}function iO(e){return e[0]}function py(e){return e[e.length-1]}function sO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=py(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function oO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function gy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function aO(e,{top:t,left:n,bottom:r,right:i}){return{x:gy(e.x,n,i),y:gy(e.y,t,r)}}function yy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lO(e,t){return{x:yy(e.x,t.x),y:yy(e.y,t.y)}}function cO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Wi(t.min,t.max-r,e.min):r>i&&(n=Wi(e.min,e.max-i,t.min)),Xn(0,1,n)}function uO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const af=.35;function fO(e=af){return e===!1?e=0:e===!0&&(e=af),{x:vy(e,"left","right"),y:vy(e,"top","bottom")}}function vy(e,t,n){return{min:by(e,t),max:by(e,n)}}function by(e,t){return typeof e=="number"?e:e[t]||0}const dO=new WeakMap;let hO=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ao(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const C=E.layout.layoutBox[T];C&&(w=Ot(C)*(parseFloat(w)/100))}}this.originPoint[T]=w}),S&&Ye.postRender(()=>S(h,m)),Du(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(y&&this.currentDirection===null){this.currentDirection=mO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new hy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:fy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=oO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&zi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=aO(i.layoutBox,n):this.constraints=!1,this.elastic=fO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=uO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zi(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=nO(r,i.root,this.visualElement.getTransformPagePoint());let a=lO(i.layout.layoutBox,o);if(n){const c=n(HM(a));this.hasMutatedConstraints=!!c,c&&(a=K0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Du(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!$a(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=cO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;dO.set(this.visualElement,this);const t=this.visualElement.current,n=lo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();zi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=oo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let pO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new hO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}};const xy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let gO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new hy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:xy(t),onStart:xy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=lo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=wy(e,t.target.x),r=wy(e,t.target.y);return`${n}% ${r}%`}},yO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let vO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;LP(bO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Sy(e){const[t,n]=cg(),r=I.useContext(nu);return v.jsx(vO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Dg),isPresent:t,safeToRemove:n})}const bO={borderRadius:{...fo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:yO};function xO(e,t,n){const r=St(e)?e:Ks(e);return r.start(Qu("",r,t,n)),r.animation}function wO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const SO=(e,t)=>e.depth-t.depth;let TO=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SO),this.isDirty=!1,this.children.forEach(t)}};function EO(e,t){const n=On.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const Ty=["TopLeft","TopRight","BottomLeft","BottomRight"],CO=Ty.length,Ey=e=>typeof e=="string"?parseFloat(e):e,Cy=e=>typeof e=="number"||we.test(e);function PO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,AO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,MO(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<CO;a++){const c=`border${Ty[a]}Radius`;let u=Py(t,c),d=Py(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Cy(u)===Cy(d)?(e[c]=Math.max(tt(Ey(u),Ey(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Py(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const AO=Ay(0,.5,s0),MO=Ay(.5,.95,Nt);function Ay(e,t,n){return r=>r<e?0:r>t?1:n(Wi(e,t,r))}function My(e,t){e.min=t.min,e.max=t.max}function nn(e,t){My(e.x,t.x),My(e.y,t.y)}function Oy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _y(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function OO(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=_y(e.min,t,n,c,i),e.max=_y(e.max,t,n,c,i)}function Iy(e,t,[n,r,i],o,a){OO(e,t[n],t[r],t[i],t.scale,o,a)}const _O=["x","scaleX","originX"],IO=["y","scaleY","originY"];function $y(e,t,n,r){Iy(e.x,t,_O,n?n.x:void 0,r?r.x:void 0),Iy(e.y,t,IO,n?n.y:void 0,r?r.y:void 0)}function Dy(e){return e.translate===0&&e.scale===1}function Ny(e){return Dy(e.x)&&Dy(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function $O(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ky(e,t){return Ly(e.x,t.x)&&Ly(e.y,t.y)}function jy(e){return Ot(e.x)/Ot(e.y)}function Fy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let DO=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function NO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],RO={visibility:"hidden"},Vy=1e3;let LO=0;function cf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function By(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Jg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&By(r)}function Wy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=LO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FO),this.nodes.forEach(zO),this.nodes.forEach(GO),this.nodes.forEach(VO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new TO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new cu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=wO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=EO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(zy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||XO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!ky(this.targetLayout,S),C=!p&&y;if(this.options.layoutRoot||this.resumeFrom||C||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const $={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||zy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&By(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Uy);return}this.isUpdating||this.nodes.forEach(WO),this.isUpdating=!1,this.nodes.forEach(UO),this.nodes.forEach(kO),this.nodes.forEach(jO),this.clearAllSnapshots();const c=On.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(BO),this.sharedNodes.forEach(HO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Ny(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),ZO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(JO))){const{scroll:h}=this.root;h&&(Xi(u.x,h.offset.x),Xi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Xi(u.x,m.offset.x),Xi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Zi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Zi(u,h.latestValues)}return oi(this.latestValues)&&Zi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;nf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),$y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&$y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),uo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),oy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),uo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nf(this.parent.latestValues)||ry(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;tO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Oy(this.prevProjectionDelta.x,this.projectionDelta.x),Oy(this.prevProjectionDelta.y,this.projectionDelta.y)),co(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!Fy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,T=this.getStack(),w=!T||T.members.length<=1,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(KO));this.animationProgress=0;let C;this.mixTargetDelta=$=>{const A=$/1e3;Gy(m.x,a.x,A),Gy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qO(this.relativeTarget,this.relativeTargetOrigin,p,A),C&&$O(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,PO(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=xO(0,Vy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&Xy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Zi(c,h),co(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new DO),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",a,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,a,d,this.animationValues),cf(`skew${lf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return RO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=NO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Zs){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=Zs[b],C=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=C}else E?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Uy),this.root.sharedNodes.clear()}}}function kO(e){e.updateLayout()}function jO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(p);p.min=r[m].min,p.max=p.min+y}):Xy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=Ki();co(c,r,n.layoutBox);const u=Ki();a?co(u,e.applyTransform(i,!0),n.measuredBox):co(u,r,n.layoutBox);const d=!Ny(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=at();uo(S,n.layoutBox,p.layoutBox);const b=at();uo(b,r,y.layoutBox),ky(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function FO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function BO(e){e.clearSnapshot()}function Uy(e){e.clearMeasurements()}function WO(e){e.isLayoutDirty=!1}function UO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zO(e){e.resolveTargetDelta()}function GO(e){e.calcProjection()}function YO(e){e.resetSkewAndRotation()}function HO(e){e.removeLeadSnapshot()}function Gy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function qO(e,t,n,r){Yy(e.x,t.x,n.x,r),Yy(e.y,t.y,n.y,r)}function KO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XO={duration:.45,ease:[.4,0,.1,1]},Hy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qy=Hy("applewebkit/")&&!Hy("chrome/")?Math.round:Nt;function Ky(e){e.min=qy(e.min),e.max=qy(e.max)}function ZO(e){Ky(e.x),Ky(e.y)}function Xy(e,t,n){return e==="position"||e==="preserve-aspect"&&!QM(jy(t),jy(n),.2)}function JO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const QO=Wy({attachResizeListener:(e,t)=>oo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Zy=Wy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new QO({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),e_={pan:{Feature:gO},drag:{Feature:pO,ProjectionNode:Zy,MeasureLayout:Sy}};function Jy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let t_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=dP(t,(n,r)=>(Jy(this.node,r,"Start"),i=>Jy(this.node,i,"End"))))}unmount(){}},n_=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=io(oo(this.node.current,"focus",()=>this.onFocus()),oo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Qy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let r_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=gP(t,(n,r)=>(Qy(this.node,r,"Start"),(i,{success:o})=>Qy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,i_=e=>{const t=ff.get(e.target);t&&t(e)},s_=e=>{e.forEach(i_)};function o_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(s_,{root:e,...t})),r[i]}function a_(e,t,n){const r=o_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const l_={some:0,all:1};let c_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:l_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return a_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u_(t,n))&&this.startObserver()}unmount(){}};function u_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const f_={inView:{Feature:c_},tap:{Feature:r_},focus:{Feature:n_},hover:{Feature:t_}},d_={layout:{ProjectionNode:Zy,MeasureLayout:Sy}},hf={current:null},ev={current:!1};function h_(){if(ev.current=!0,!!iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hf.current=e.matches;e.addListener(t),t()}else hf.current=!1}const m_=[...P0,Tt,wr],p_=e=>m_.find(C0(e)),g_=new WeakMap;function y_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Ks(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ks(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let v_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=_g(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,g_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ev.current||h_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hf.current,process.env.NODE_ENV!=="production"&&va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ui){const n=Ui[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<tv.length;r++){const i=tv[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=y_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ks(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(T0(i)||a0(i))?i=parseFloat(i):!p_(i)&&wr.test(n)&&(i=p0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},nv=class extends v_{constructor(){super(...arguments),this.KeyframeResolver=M0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function b_(e){return window.getComputedStyle(e)}let x_=class extends nv{constructor(){super(...arguments),this.type="html",this.renderInstance=Yg}readValueFromInstance(t,n){if(ti.has(n))return DA(t,n);{const r=b_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uy(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $u(t,n,r)}},w_=class extends nv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Gg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=m0(n);return r&&r.default||0}return n=Hg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Mu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){qg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const S_=(e,t)=>Au(e)?new w_(t):new x_(t,{allowProjection:e!==I.Fragment}),T_=oA({...GM,...f_,...e_,...d_},S_),mf=TP(T_),E_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=I.useState(!0);let c=eu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=WC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=KC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=FC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=eu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=eu}I.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),I.useEffect(()=>{if(!o){const p=setTimeout(i,E_);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(eP,{onExitComplete:i,children:o&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Me,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),v.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),v.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(Me,{icon:qC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},rv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[a,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
621
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(XC,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const JC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(QC),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(ZC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function QC(){return new Map}function cg(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function ug(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const eP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=cg(a),h=_.useMemo(()=>ug(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),y=_.useRef(h),S=ru(()=>new Map),[b,T]=_.useState(h),[w,A]=_.useState(h);lg(()=>{p.current=!1,y.current=h;for(let P=0;P<w.length;P++){const N=ya(w[P]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[w,m.length,m.join("-")]);const E=[];if(h!==b){let P=[...h];for(let N=0;N<w.length;N++){const j=w[N],F=ya(j);m.includes(F)||(P.splice(N,0,j),E.push(j))}return o==="wait"&&E.length&&(P=E),A(ug(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(nu);return v.jsx(v.Fragment,{children:w.map(P=>{const N=ya(P),j=a&&!u?!1:h===w||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(y.current),a&&(d==null||d()),r&&r())};return v.jsx(JC,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:P},N)})})};function ou(e,t){e.indexOf(t)===-1&&e.push(t)}function au(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Bi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Bi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const tP={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let cu=class{constructor(){this.subscriptions=[]}add(t){return ou(this.subscriptions,t),()=>au(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Mn=e=>e*1e3,Kn=e=>e/1e3;function fg(e,t){return t?e*(1e3/t):0}const dg=new Set;function va(e,t,n){e||dg.has(t)||(console.warn(t),dg.add(t))}const nP=lu(()=>window.ScrollTimeline!==void 0);let rP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(nP()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},iP=class extends rP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function uu(e,t){return e?e[t]||e.default||e:void 0}const fu=2e4;function hg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<fu;)t+=n,r=e.next(t);return t>=fu?1/0:t}function du(e){return typeof e=="function"}function mg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",sP={linearEasing:void 0};function oP(e,t){const n=lu(e);return()=>{var r;return(r=sP[t])!==null&&r!==void 0?r:n()}}const ba=oP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Wi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function gg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(gg))}const Hs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hs([0,.65,.55,1]),circOut:Hs([.55,0,1,.45]),backIn:Hs([.31,.01,.66,-.59]),backOut:Hs([.33,1.53,.69,.99])};function yg(e,t){if(e)return typeof e=="function"&&ba()?pg(e,t):hu(e)?Hs(e):Array.isArray(e)?e.map(n=>yg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],vg={value:null};function aP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&vg.value&&vg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const lP=40;function bg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,A)=>(w[A]=aP(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,lP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:xa.reduce((w,A)=>{const E=a[A];return w[A]=($,P=!1,N=!1)=>(n||S(),E.schedule($,P,N)),w},{}),cancel:w=>{for(let A=0;A<xa.length;A++)a[xa[A]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=bg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:gu}=bg(queueMicrotask,!1);let wa;function cP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||tP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(cP)}},yn={x:!1,y:!1};function xg(){return yn.x||yn.y}function uP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function fP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function wg(e,t){const n=fP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Sg(e){return!(e.pointerType==="touch"||xg())}function dP(e,t,n={}){const[r,i,o]=wg(e,n),a=c=>{if(!Sg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{Sg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const Tg=(e,t)=>t?e===t?!0:Tg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mP(e){return hP.has(e.tagName)||e.tabIndex!==-1}const qs=new WeakSet;function Eg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Eg(()=>{if(qs.has(n))return;vu(n,"down");const i=Eg(()=>{vu(n,"up")}),o=()=>vu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Cg(e){return yu(e)&&!xg()}function gP(e,t,n={}){const[r,i,o]=wg(e,n),a=c=>{const u=c.currentTarget;if(!Cg(c)||qs.has(u))return;qs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Cg(y)||!qs.has(u))&&(qs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||Tg(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>pP(d,i)),!mP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Pg=30,yP=e=>!isNaN(parseFloat(e));let vP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pg);return fg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ks(e,t){return new vP(e,t)}const Ag=_.createContext({strict:!1}),Mg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ui={};for(const e in Mg)Ui[e]={isEnabled:t=>Mg[e].some(n=>!!t[n])};function bP(e){for(const t in e)Ui[t]={...Ui[t],...e[t]}}const xP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xP.has(e)}let Og=e=>!Sa(e);function wP(e){e&&(Og=t=>t.startsWith("on")?!Sa(t):e(t))}try{wP(require("@emotion/is-prop-valid").default)}catch{}function SP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Og(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function TP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ta=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Ca(e){return Ea(e.animate)||xu.some(t=>Xs(e[t]))}function _g(e){return!!(Ca(e)||e.variants)}function EP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xs(n)?n:void 0,animate:Xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function CP(e){const{initial:t,animate:n}=EP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[Ig(t),Ig(n)])}function Ig(e){return Array.isArray(e)?e.join(" "):e}const PP=Symbol.for("motionComponentSymbol");function zi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function AP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):zi(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$g="data-"+wu("framerAppearId"),Dg=_.createContext({});function MP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(Ag),d=_.useContext(ga),h=_.useContext(su).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=_.useContext(Dg);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&OP(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[$g],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return lg(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),gu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function OP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ng(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&zi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Ng(e){if(e)return e.options.allowProjection!==!1?e.projection:Ng(e.parent)}function _P({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&bP(e);function c(d,h){let m;const p={..._.useContext(su),...d,layoutId:IP(d)},{isStatic:y}=p,S=CP(d),b=r(d,y);if(!y&&iu){$P(p,e);const T=DP(p);m=T.MeasureLayout,S.visualElement=MP(i,b,p,t,T.ProjectionNode)}return v.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,AP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[PP]=i,u}function IP({layoutId:e}){const t=_.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function $P(e,t){const n=_.useContext(Ag).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Bi(!1,r):vr(!1,r)}}function DP(e){const{drag:t,layout:n}=Ui;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Rg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Rg("--"),NP=Rg("var(--"),Tu=e=>NP(e)?RP.test(e.split("/*")[0].trim()):!1,RP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs={};function LP(e){for(const t in e)Zs[t]=e[t],Su(t)&&(Zs[t].isCSSVariable=!0)}const Gi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Gi);function Lg(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),kg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Yi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Yi,transform:e=>Xn(0,1,e)},Pa={...Yi,default:1},Qs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Qs("deg"),_n=Qs("%"),we=Qs("px"),kP=Qs("vh"),jP=Qs("vw"),jg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},FP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},VP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Js,originX:jg,originY:jg,originZ:we},Fg={...Yi,transform:Math.round},Eu={...FP,...VP,zIndex:Fg,size:we,fillOpacity:Js,strokeOpacity:Js,numOctaves:Fg},BP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WP=Gi.length;function UP(e,t,n){let r="",i=!0;for(let o=0;o<WP;o++){const a=Gi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=kg(c,Eu[a]);if(!u){i=!1;const h=BP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=kg(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=UP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vg(e,t,n){for(const r in t)!St(t[r])&&!Lg(r,n)&&(e[r]=t[r])}function zP({transformTemplate:e},t){return _.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GP(e,t){const n=e.style||{},r={};return Vg(r,n,e),Object.assign(r,zP(e,t)),r}function YP(e,t){const n={},r=GP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const HP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Au(e){return typeof e!="string"||e.includes("-")?!1:!!(HP.indexOf(e)>-1||/[A-Z]/u.test(e))}const qP={offset:"stroke-dashoffset",array:"stroke-dasharray"},KP={offset:"strokeDashoffset",array:"strokeDasharray"};function XP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?qP:KP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Bg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function ZP(e,t,n){const r=Bg(t,e.x,e.width),i=Bg(n,e.y,e.height);return`${r} ${i}`}function Mu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Cu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=ZP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&XP(p,a,c,u,!1)}const Wg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JP(e,t,n,r){const i=_.useMemo(()=>{const o=Wg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Vg(o,e.style,e),i.style={...o,...i.style}}return i}function QP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?JP:YP)(r,o,a,n),d=SP(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Ug(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[i,o]=Ug(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ug(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),eA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tA=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return eA(t)?t.toValue():t}function nA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:rA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const zg=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>nA(e,t,r,i);return n?o():ru(o)};function rA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=_g(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=_u(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const A in w){let E=w[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in b)i[A]=b[A]}}}return i}function $u(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Lg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const iA={useVisualState:zg({scrapeMotionValuesFromProps:$u,createRenderState:Pu})};function Gg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Yg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Hg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qg(e,t,n,r){Yg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Hg.has(i)?i:wu(i),t.attrs[i])}function Kg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Gi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Xg=["x","y","width","height","cx","cy","r"],sA={useVisualState:zg({scrapeMotionValuesFromProps:Kg,createRenderState:Wg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Xg.length;c++){const u=Xg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Gg(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),qg(n,r)})})}})};function oA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?sA:iA,preloadedFeatures:e,useRender:QP(i),createVisualElement:t,Component:r};return _P(a)}}function eo(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Zg=new Set(["width","height","top","left","right","bottom",...Gi]);function aA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ks(n))}function lA(e,t){const n=eo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=tA(o[a]);aA(e,a,c)}}function cA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(cA(n))return n.add(t)}function Jg(e){return e.props[$g]}const Qg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uA=1e-7,fA=12;function dA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Qg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>uA&&++c<fA);return a}function to(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>dA(o,0,1,e,n);return o=>o===0||o===1?o:Qg(i(o),t,r)}const e0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,t0=e=>t=>1-e(1-t),n0=to(.33,1.53,.69,.99),Nu=t0(n0),r0=e0(Nu),i0=e=>(e*=2)<1?.5*Nu(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),s0=t0(Ru),o0=e0(Ru),a0=e=>/^0[^.\s]+$/u.test(e);function hA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const no=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mA(e){return e==null}const pA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ku=(e,t)=>n=>!!(typeof n=="string"&&pA.test(n)&&n.startsWith(e)||t&&!mA(n)&&Object.prototype.hasOwnProperty.call(n,t)),l0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},gA=e=>Xn(0,255,e),ju={...Yi,transform:e=>Math.round(gA(e))},ni={test:ku("rgb","red"),parse:l0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+no(Js.transform(r))+")"};function yA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fu={test:ku("#"),parse:yA,transform:ni.transform},Hi={test:ku("hsl","hue"),parse:l0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(no(t))+", "+_n.transform(no(n))+", "+no(Js.transform(r))+")"},Tt={test:e=>ni.test(e)||Fu.test(e)||Hi.test(e),parse:e=>ni.test(e)?ni.parse(e):Hi.test(e)?Hi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Hi.transform(e)},vA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(vA))===null||n===void 0?void 0:n.length)||0)>0}const c0="number",u0="color",xA="var",wA="var(",f0="${}",SA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ro(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(SA,u=>(Tt.test(u)?(r.color.push(o),i.push(u0),n.push(Tt.parse(u))):u.startsWith(wA)?(r.var.push(o),i.push(xA),n.push(u)):(r.number.push(o),i.push(c0),n.push(parseFloat(u))),++o,f0)).split(f0);return{values:n,split:c,indexes:r,types:i}}function d0(e){return ro(e).values}function h0(e){const{split:t,types:n}=ro(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===c0?o+=no(i[a]):c===u0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const TA=e=>typeof e=="number"?0:e;function EA(e){const t=d0(e);return h0(e)(t.map(TA))}const wr={test:bA,parse:d0,createTransformer:h0,getAnimatableNone:EA},CA=new Set(["brightness","contrast","saturate","opacity"]);function PA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=CA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const AA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(AA);return t?t.map(PA).join(" "):e}},MA={...Eu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Vu,WebkitFilter:Vu},m0=e=>MA[e];function p0(e,t){let n=m0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OA=new Set(["auto","none","0"]);function _A(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!OA.has(o)&&ro(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=p0(n,i)}const ri=e=>e*180/Math.PI,Bu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Wu(t)},IA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bu,rotateZ:Bu,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),g0=Bu,y0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),v0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$A={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:y0,scaleY:v0,scale:e=>(y0(e)+v0(e))/2,rotateX:e=>Wu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(ri(Math.atan2(-e[2],e[0]))),rotateZ:g0,rotate:g0,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function b0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return b0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=$A,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=IA,i=c}if(!i)return b0(t);const o=r[t],a=i[1].split(",").map(NA);return typeof o=="function"?o(a):a[o]}const DA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function NA(e){return parseFloat(e.trim())}const x0=e=>e===Yi||e===we,RA=new Set(["x","y","z"]),LA=Gi.filter(e=>!RA.has(e));function kA(e){const t=[];return LA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};qi.translateX=qi.x,qi.translateY=qi.y;const ii=new Set;let zu=!1,Gu=!1;function w0(){if(Gu){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gu=!1,zu=!1,ii.forEach(e=>e.complete()),ii.clear()}function S0(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function jA(){S0(),w0()}let Yu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),zu||(zu=!0,Ye.read(S0),Ye.resolveKeyframes(w0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const T0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),FA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VA(e){const t=FA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const BA=4;function E0(e,t,n=1){vr(n<=BA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=VA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return T0(a)?parseFloat(a):a}return Tu(i)?E0(i,t,n+1):i}const C0=e=>t=>t.test(e),P0=[Yi,we,_n,xr,jP,kP,{test:e=>e==="auto",parse:e=>e}],A0=e=>P0.find(C0(e));let M0=class extends Yu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Tu(d))){const h=E0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Zg.has(r)||t.length!==2)return;const[i,o]=t,a=A0(i),c=A0(o);if(a!==c)if(x0(a)&&x0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)hA(t[i])&&r.push(i);r.length&&_A(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const O0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function WA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function UA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=O0(i,t),c=O0(o,t);return Bi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:WA(e)||(n==="spring"||du(n))&&r}const zA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(zA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const GA=40;let _0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=On.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>GA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!UA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Hu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Hu(u,c,e+1/3),o=Hu(u,c,e),a=Hu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const qu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},HA=[Fu,ni,Hi],qA=e=>HA.find(t=>t.test(e));function I0(e){const t=qA(e);if(Bi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Hi&&(n=YA(n)),n}const $0=(e,t)=>{const n=I0(e),r=I0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=qu(n.red,r.red,o),i.green=qu(n.green,r.green,o),i.blue=qu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},KA=(e,t)=>n=>t(e(n)),io=(...e)=>e.reduce(KA),Ku=new Set(["none","hidden"]);function XA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ZA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?ZA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?$0:eM:Array.isArray(e)?D0:typeof e=="object"?Tt.test(e)?$0:JA:Oa}function D0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Xu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function JA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function QA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const eM=(e,t)=>{const n=wr.createTransformer(t),r=ro(e),i=ro(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ku.has(e)&&!i.values.length||Ku.has(t)&&!r.values.length?XA(e,t):io(D0(QA(r,i),i.values),n):(Bi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function N0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const tM=5;function R0(e,t,n){const r=Math.max(t-tM,0);return fg(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},L0=.001;function nM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Bi(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return L0-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Zu(Math.pow(d,2),a);return(-i(d)+L0>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=iM(i,o,c);if(e=Mn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const rM=12;function iM(e,t,n){let r=n;for(let i=1;i<rM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const sM=["duration","bounce"],oM=["stiffness","damping","mass"];function k0(e,t){return t.some(n=>e[n]!==void 0)}function aM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!k0(e,oM)&&k0(e,sM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=nM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function j0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=aM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Kn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),i||(i=A?nt.restDelta.granular:nt.restDelta.default);let E;if(b<1){const P=Zu(w,b);E=N=>{const j=Math.exp(-b*w*N);return a-j*((S+b*w*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(b===1)E=P=>a-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);E=N=>{const j=Math.exp(-b*w*N),F=Math.min(P*N,300);return a-j*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const N=E(P);if(y)c.done=P>=m;else{let j=0;b<1&&(j=P===0?Mn(S):R0(E,P,N));const F=Math.abs(j)<=r,U=Math.abs(a-N)<=i;c.done=F&&U}return c.value=c.done?a:N,c},toString:()=>{const P=Math.min(hg($),fu),N=pg(j=>$.next(P*j).value,P,30);return P+"ms "+N}};return $}function F0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const A=F=>-b*Math.exp(-F/r),E=F=>w+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=d,p.value=p.done?w:Z};let P,N;const j=F=>{y(p.value)&&(P=F,N=j0({keyframes:[p.value,S(p.value)],velocity:R0(E,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!N&&P===void 0&&(U=!0,$(F),j(F)),P!==void 0&&F>=P?N.next(F-P):(!U&&$(F),p)}}}const lM=to(.42,0,1,1),cM=to(0,0,.58,1),V0=to(.42,0,.58,1),uM=e=>Array.isArray(e)&&typeof e[0]!="number",B0={linear:Nt,easeIn:lM,easeInOut:V0,easeOut:cM,circIn:Ru,circInOut:o0,circOut:s0,backIn:Nu,backInOut:r0,backOut:n0,anticipate:i0},W0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return to(t,n,r,i)}else if(typeof e=="string")return vr(B0[e]!==void 0,`Invalid easing type '${e}'`),B0[e];return e};function fM(e,t,n){const r=[],i=n||N0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=io(u,c)}r.push(c)}return r}function dM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=fM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Wi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function hM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Wi(0,t,r);e.push(tt(n,1,i))}}function mM(e){const t=[0];return hM(t,e.length-1),t}function pM(e,t){return e.map(n=>n*t)}function gM(e,t){return e.map(()=>t||V0).splice(0,e.length-1)}function so({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=uM(r)?r.map(W0):W0(r),o={done:!1,value:t[0]},a=pM(n&&n.length===t.length?n:mM(t),e),c=dM(a,t,{ease:Array.isArray(i)?i:gM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const yM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},vM={decay:F0,inertia:F0,tween:so,keyframes:so,spring:j0},bM=e=>e/100;let Ju=class extends _0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Yu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=du(n)?n:vM[n]||so;let u,d;process.env.NODE_ENV!=="production"&&c!==so&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==so&&typeof t[0]!="number"&&(u=io(bM,N0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=hg(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,b&&(Z-=b/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const P=A?{done:!1,value:u[0]}:$.next(E);c&&(P.value=c(P.value));let{done:N}=P;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return j&&i!==void 0&&(P.value=Ma(u,this.options,i)),T&&T(P.value),j&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=yM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const xM=new Set(["opacity","clipPath","filter","transform"]);function wM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=yg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const SM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,TM=2e4;function EM(e){return du(e.type)||e.type==="spring"||!gg(e.ease)}function CM(e,t){const n=new Ju({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<TM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const U0={anticipate:i0,backInOut:r0,circInOut:o0};function PM(e){return e in U0}let z0=class extends _0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new M0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ba()&&PM(o)&&(o=U0[o]),EM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=CM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=wM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(mg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;mg(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new Ju({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Mn(this.time);d.setWithVelocity(S.sample(b-_a).value,S.sample(b).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return SM()&&r&&xM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const AM={type:"spring",stiffness:500,damping:25,restSpeed:10},MM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),OM={type:"keyframes",duration:.8},_M={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IM=(e,{keyframes:t})=>t.length>2?OM:ti.has(e)?e.startsWith("scale")?MM(t[1]):AM:_M;function $M({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Qu=(e,t,n,r={},i,o)=>a=>{const c=uu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Mn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};$M(c)||(h={...h,...IM(e,h)}),h.duration&&(h.duration=Mn(h.duration)),h.repeatDelay&&(h.repeatDelay=Mn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new iP([])}return!o&&z0.supports(h)?new z0(h):new Ju(h)};function DM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function G0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&DM(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Jg(e);if(w){const A=window.MotionHandoffAnimation(w,m,Ye);A!==null&&(S.startTime=A,b=!0)}}Du(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Zg.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&lA(e,c)})}),d}function ef(e,t,n={}){var r;const i=eo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(G0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return NM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function NM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(RM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(ef(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function RM(e,t){return e.sortNodePosition(t)}function LM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ef(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ef(e,t,n);else{const i=typeof t=="function"?eo(e,t,n.custom):t;r=Promise.all(G0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Y0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const kM=xu.length;function H0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?H0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<kM;n++){const r=xu[n],i=e.props[r];(Xs(i)||i===!1)&&(t[r]=i)}return t}const jM=[...bu].reverse(),FM=bu.length;function VM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>LM(e,n,r)))}function BM(e){let t=VM(e),n=q0(),r=!0;const i=u=>(d,h)=>{var m;const p=eo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=H0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<FM;T++){const w=jM[T],A=n[w],E=d[w]!==void 0?d[w]:h[w],$=Xs(E),P=w===u?A.isActive:null;P===!1&&(S=T);let N=E===h[w]&&E!==d[w]&&$;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...y},!A.isActive&&P===null||!E&&!A.prevProp||Ea(E)||typeof E=="boolean")continue;const j=WM(A.prevProp,E);let F=j||w===u&&A.isActive&&!N&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(B)&&Iu(Y)?O=!Y0(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=eo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const A=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),T[w]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=q0(),r=!0}}}function WM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Y0(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function q0(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},UM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=BM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},zM=0;const GM={animation:{Feature:UM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=zM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function oo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ao(e){return{point:{x:e.pageX,y:e.pageY}}}const YM=e=>t=>yu(t)&&e(t,ao(t));function lo(e,t,n,r){return oo(e,t,YM(n),r)}function K0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const X0=1e-4,KM=1-X0,XM=1+X0,Z0=.01,ZM=0-Z0,JM=0+Z0;function Ot(e){return e.max-e.min}function QM(e,t,n){return Math.abs(e-t)<=n}function J0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KM&&e.scale<=XM||isNaN(e.scale))&&(e.scale=1),(e.translate>=ZM&&e.translate<=JM||isNaN(e.translate))&&(e.translate=0)}function co(e,t,n,r){J0(e.x,t.x,n.x,r?r.originX:void 0),J0(e.y,t.y,n.y,r?r.originY:void 0)}function Q0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function eO(e,t,n){Q0(e.x,t.x,n.x),Q0(e.y,t.y,n.y)}function ey(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function uo(e,t,n){ey(e.x,t.x,n.x),ey(e.y,t.y,n.y)}const ty=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:ty(),y:ty()}),ny=()=>({min:0,max:0}),at=()=>({x:ny(),y:ny()});function tn(e){return[e("x"),e("y")]}function tf(e){return e===void 0||e===1}function nf({scale:e,scaleX:t,scaleY:n}){return!tf(e)||!tf(t)||!tf(n)}function oi(e){return nf(e)||ry(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ry(e){return iy(e.x)||iy(e.y)}function iy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function sy(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function rf(e,t=0,n=1,r,i){e.min=sy(e.min,t,n,r,i),e.max=sy(e.max,t,n,r,i)}function oy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const ay=.999999999999,ly=1.0000000000001;function tO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Zi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,oy(e,a)),r&&oi(o.latestValues)&&Zi(e,o.latestValues))}t.x<ly&&t.x>ay&&(t.x=1),t.y<ly&&t.y>ay&&(t.y=1)}function Xi(e,t){e.min=e.min+t,e.max=e.max+t}function cy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function Zi(e,t){cy(e.x,t.x,t.scaleX,t.scale,t.originX),cy(e.y,t.y,t.scaleY,t.scale,t.originY)}function uy(e,t){return K0(qM(e.getBoundingClientRect(),t))}function nO(e,t,n){const r=uy(e,n),{scroll:i}=t;return i&&(Xi(r.x,i.offset.x),Xi(r.y,i.offset.y)),r}const fy=({current:e})=>e?e.ownerDocument.defaultView:null,dy=(e,t)=>Math.abs(e-t);function rO(e,t){const n=dy(e.x,t.x),r=dy(e.y,t.y);return Math.sqrt(n**2+r**2)}let hy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=of(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=rO(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:w}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sf(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=of(m.type==="pointercancel"?this.lastMoveEventInfo:sf(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!yu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ao(t),c=sf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,of(c,this.history)),this.removeListeners=io(lo(this.contextWindow,"pointermove",this.handlePointerMove),lo(this.contextWindow,"pointerup",this.handlePointerUp),lo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function my(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:my(e,py(t)),offset:my(e,iO(t)),velocity:sO(t,.1)}}function iO(e){return e[0]}function py(e){return e[e.length-1]}function sO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=py(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function oO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function gy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function aO(e,{top:t,left:n,bottom:r,right:i}){return{x:gy(e.x,n,i),y:gy(e.y,t,r)}}function yy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lO(e,t){return{x:yy(e.x,t.x),y:yy(e.y,t.y)}}function cO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Wi(t.min,t.max-r,e.min):r>i&&(n=Wi(e.min,e.max-i,t.min)),Xn(0,1,n)}function uO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const af=.35;function fO(e=af){return e===!1?e=0:e===!0&&(e=af),{x:vy(e,"left","right"),y:vy(e,"top","bottom")}}function vy(e,t,n){return{min:by(e,t),max:by(e,n)}}function by(e,t){return typeof e=="number"?e:e[t]||0}const dO=new WeakMap;let hO=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ao(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(_n.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(w=Ot(E)*(parseFloat(w)/100))}}this.originPoint[T]=w}),S&&Ye.postRender(()=>S(h,m)),Du(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(y&&this.currentDirection===null){this.currentDirection=mO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new hy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:fy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=oO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&zi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=aO(i.layoutBox,n):this.constraints=!1,this.elastic=fO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=uO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zi(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=nO(r,i.root,this.visualElement.getTransformPagePoint());let a=lO(i.layout.layoutBox,o);if(n){const c=n(HM(a));this.hasMutatedConstraints=!!c,c&&(a=K0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Du(this.visualElement,t),r.start(Qu(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!$a(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=cO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;dO.set(this.visualElement,this);const t=this.visualElement.current,n=lo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();zi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=oo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=af,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let pO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new hO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}};const xy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let gO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new hy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:xy(t),onStart:xy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=lo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=wy(e,t.target.x),r=wy(e,t.target.y);return`${n}% ${r}%`}},yO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let vO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;LP(bO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Sy(e){const[t,n]=cg(),r=_.useContext(nu);return v.jsx(vO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Dg),isPresent:t,safeToRemove:n})}const bO={borderRadius:{...fo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:yO};function xO(e,t,n){const r=St(e)?e:Ks(e);return r.start(Qu("",r,t,n)),r.animation}function wO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const SO=(e,t)=>e.depth-t.depth;let TO=class{constructor(){this.children=[],this.isDirty=!1}add(t){ou(this.children,t),this.isDirty=!0}remove(t){au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SO),this.isDirty=!1,this.children.forEach(t)}};function EO(e,t){const n=On.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const Ty=["TopLeft","TopRight","BottomLeft","BottomRight"],CO=Ty.length,Ey=e=>typeof e=="string"?parseFloat(e):e,Cy=e=>typeof e=="number"||we.test(e);function PO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,AO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,MO(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<CO;a++){const c=`border${Ty[a]}Radius`;let u=Py(t,c),d=Py(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Cy(u)===Cy(d)?(e[c]=Math.max(tt(Ey(u),Ey(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Py(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const AO=Ay(0,.5,s0),MO=Ay(.5,.95,Nt);function Ay(e,t,n){return r=>r<e?0:r>t?1:n(Wi(e,t,r))}function My(e,t){e.min=t.min,e.max=t.max}function nn(e,t){My(e.x,t.x),My(e.y,t.y)}function Oy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _y(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function OO(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=_y(e.min,t,n,c,i),e.max=_y(e.max,t,n,c,i)}function Iy(e,t,[n,r,i],o,a){OO(e,t[n],t[r],t[i],t.scale,o,a)}const _O=["x","scaleX","originX"],IO=["y","scaleY","originY"];function $y(e,t,n,r){Iy(e.x,t,_O,n?n.x:void 0,r?r.x:void 0),Iy(e.y,t,IO,n?n.y:void 0,r?r.y:void 0)}function Dy(e){return e.translate===0&&e.scale===1}function Ny(e){return Dy(e.x)&&Dy(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function $O(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ky(e,t){return Ly(e.x,t.x)&&Ly(e.y,t.y)}function jy(e){return Ot(e.x)/Ot(e.y)}function Fy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let DO=class{constructor(){this.members=[]}add(t){ou(this.members,t),t.scheduleRender()}remove(t){if(au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function NO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const lf=["","X","Y","Z"],RO={visibility:"hidden"},Vy=1e3;let LO=0;function cf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function By(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Jg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&By(r)}function Wy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=LO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FO),this.nodes.forEach(zO),this.nodes.forEach(GO),this.nodes.forEach(VO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new TO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new cu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=wO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=EO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(zy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||XO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!ky(this.targetLayout,S),E=!p&&y;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||zy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&By(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Uy);return}this.isUpdating||this.nodes.forEach(WO),this.isUpdating=!1,this.nodes.forEach(UO),this.nodes.forEach(kO),this.nodes.forEach(jO),this.clearAllSnapshots();const c=On.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,pu.update.process(yt),pu.preRender.process(yt),pu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(BO),this.sharedNodes.forEach(HO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Ny(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),ZO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(JO))){const{scroll:h}=this.root;h&&(Xi(u.x,h.offset.x),Xi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Xi(u.x,m.offset.x),Xi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Zi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Zi(u,h.latestValues)}return oi(this.latestValues)&&Zi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;nf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),$y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&$y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),uo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),oy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),uo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nf(this.parent.latestValues)||ry(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;tO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Oy(this.prevProjectionDelta.x,this.projectionDelta.x),Oy(this.prevProjectionDelta.y,this.projectionDelta.y)),co(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!Fy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,T=this.getStack(),w=!T||T.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(KO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const P=$/1e3;Gy(m.x,a.x,P),Gy(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qO(this.relativeTarget,this.relativeTargetOrigin,p,P),E&&$O(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),b&&(this.animationValues=h,PO(h,d,this.latestValues,P,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=xO(0,Vy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&Xy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Zi(c,h),co(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new DO),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&cf("z",a,d,this.animationValues);for(let h=0;h<lf.length;h++)cf(`rotate${lf[h]}`,a,d,this.animationValues),cf(`skew${lf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return RO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=NO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Zs){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:A}=Zs[b],E=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=E}else A?this.options.visualElement.renderState.vars[b]=E:d[b]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Uy),this.root.sharedNodes.clear()}}}function kO(e){e.updateLayout()}function jO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(p);p.min=r[m].min,p.max=p.min+y}):Xy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=Ot(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=Ki();co(c,r,n.layoutBox);const u=Ki();a?co(u,e.applyTransform(i,!0),n.measuredBox):co(u,r,n.layoutBox);const d=!Ny(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=at();uo(S,n.layoutBox,p.layoutBox);const b=at();uo(b,r,y.layoutBox),ky(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function FO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function BO(e){e.clearSnapshot()}function Uy(e){e.clearMeasurements()}function WO(e){e.isLayoutDirty=!1}function UO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zO(e){e.resolveTargetDelta()}function GO(e){e.calcProjection()}function YO(e){e.resetSkewAndRotation()}function HO(e){e.removeLeadSnapshot()}function Gy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function qO(e,t,n,r){Yy(e.x,t.x,n.x,r),Yy(e.y,t.y,n.y,r)}function KO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XO={duration:.45,ease:[.4,0,.1,1]},Hy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qy=Hy("applewebkit/")&&!Hy("chrome/")?Math.round:Nt;function Ky(e){e.min=qy(e.min),e.max=qy(e.max)}function ZO(e){Ky(e.x),Ky(e.y)}function Xy(e,t,n){return e==="position"||e==="preserve-aspect"&&!QM(jy(t),jy(n),.2)}function JO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const QO=Wy({attachResizeListener:(e,t)=>oo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Zy=Wy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new QO({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),e_={pan:{Feature:gO},drag:{Feature:pO,ProjectionNode:Zy,MeasureLayout:Sy}};function Jy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let t_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=dP(t,(n,r)=>(Jy(this.node,r,"Start"),i=>Jy(this.node,i,"End"))))}unmount(){}},n_=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=io(oo(this.node.current,"focus",()=>this.onFocus()),oo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Qy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ao(t)))}let r_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=gP(t,(n,r)=>(Qy(this.node,r,"Start"),(i,{success:o})=>Qy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,i_=e=>{const t=ff.get(e.target);t&&t(e)},s_=e=>{e.forEach(i_)};function o_({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const r=df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(s_,{root:e,...t})),r[i]}function a_(e,t,n){const r=o_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const l_={some:0,all:1};let c_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:l_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return a_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u_(t,n))&&this.startObserver()}unmount(){}};function u_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const f_={inView:{Feature:c_},tap:{Feature:r_},focus:{Feature:n_},hover:{Feature:t_}},d_={layout:{ProjectionNode:Zy,MeasureLayout:Sy}},hf={current:null},ev={current:!1};function h_(){if(ev.current=!0,!!iu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hf.current=e.matches;e.addListener(t),t()}else hf.current=!1}const m_=[...P0,Tt,wr],p_=e=>m_.find(C0(e)),g_=new WeakMap;function y_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Ks(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ks(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let v_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=On.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=_g(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,g_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ev.current||h_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hf.current,process.env.NODE_ENV!=="production"&&va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ui){const n=Ui[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<tv.length;r++){const i=tv[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=y_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ks(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(T0(i)||a0(i))?i=parseFloat(i):!p_(i)&&wr.test(n)&&(i=p0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},nv=class extends v_{constructor(){super(...arguments),this.KeyframeResolver=M0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function b_(e){return window.getComputedStyle(e)}let x_=class extends nv{constructor(){super(...arguments),this.type="html",this.renderInstance=Yg}readValueFromInstance(t,n){if(ti.has(n))return DA(t,n);{const r=b_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uy(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $u(t,n,r)}},w_=class extends nv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Gg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=m0(n);return r&&r.default||0}return n=Hg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Mu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){qg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const S_=(e,t)=>Au(e)?new w_(t):new x_(t,{allowProjection:e!==_.Fragment}),T_=oA({...GM,...f_,...e_,...d_},S_),mf=TP(T_),E_=500,pf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=eu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=WC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=KC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=FC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=eu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=eu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,E_);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return v.jsx(eP,{onExitComplete:i,children:o&&v.jsx(mf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:v.jsxs("div",{className:"flex justify-between items-center p-3",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Me,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),v.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),v.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:v.jsx(Me,{icon:qC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},rv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),v.jsx(pf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
622
622
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
623
623
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
624
624
  * Copyright 2024 Fonticons, Inc.
625
- */const C_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},P_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},iv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},sv=6048e5,A_=864e5,ov=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ov in e?e[ov](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function av(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let M_={};function ho(){return M_}function Ji(e,t){var c,u,d,h;const n=ho(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Na(e,t){return Ji(e,{...t,weekStartsOn:1})}function lv(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function cv(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ra(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function O_(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-cv(o),u=+a-cv(a);return Math.round((c-u)/A_)}function __(e,t){const n=lv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function I_(e){return Gt(e,Date.now())}function uv(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function $_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function D_(e){return!(!$_(e)&&typeof e!="number"||isNaN(+pt(e)))}function N_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function R_(e,t){const[n,r]=Ra(e,t.start,t.end);return{start:n,end:r}}function L_(e,t){const{start:n,end:r}=R_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function k_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function j_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function F_(e,t){var c,u;const n=ho(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const V_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},B_=(e,t,n)=>{let r;const i=V_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const W_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},U_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G_={date:Qi({formats:W_,defaultWidth:"full"}),time:Qi({formats:U_,defaultWidth:"full"}),dateTime:Qi({formats:z_,defaultWidth:"full"})},Y_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},H_=(e,t,n,r)=>Y_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const q_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},K_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},X_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Z_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Q_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},e4={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:q_,defaultWidth:"wide"}),quarter:In({values:K_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:X_,defaultWidth:"wide"}),day:In({values:Z_,defaultWidth:"wide"}),dayPeriod:In({values:J_,defaultWidth:"wide",formattingValues:Q_,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?n4(c,m=>m.test(a)):t4(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function t4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function n4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function fv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const r4=/^(\d+)(th|st|nd|rd)?/i,i4=/\d+/i,s4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},o4={any:[/^b/i,/^(a|c)/i]},a4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},l4={any:[/1/i,/2/i,/3/i,/4/i]},c4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},d4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},h4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p4={ordinalNumber:fv({matchPattern:r4,parsePattern:i4,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:s4,defaultMatchWidth:"wide",parsePatterns:o4,defaultParseWidth:"any"}),quarter:$n({matchPatterns:a4,defaultMatchWidth:"wide",parsePatterns:l4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:c4,defaultMatchWidth:"wide",parsePatterns:u4,defaultParseWidth:"any"}),day:$n({matchPatterns:f4,defaultMatchWidth:"wide",parsePatterns:d4,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:h4,defaultMatchWidth:"any",parsePatterns:m4,defaultParseWidth:"any"})},dv={code:"en-US",formatDistance:B_,formatLong:G_,formatRelative:H_,localize:e4,match:p4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g4(e,t){const n=pt(e,t==null?void 0:t.in);return O_(n,j_(n))+1}function y4(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+__(n);return Math.round(r/sv)+1}function hv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ho(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ji(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ji(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function v4(e,t){var c,u,d,h;const n=ho(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=hv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ji(o,t)}function b4(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ji(n,t)-+v4(n,t);return Math.round(r/sv)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},es={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=hv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=lv(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=b4(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=y4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=g4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=es.noon:r===0?i=es.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=es.evening:r>=12?i=es.afternoon:r>=4?i=es.morning:i=es.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pv(r,":");case"zzzz":default:return"GMT"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function pv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function gv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const yv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},vv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},x4={p:vv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",yv(r,t)).replace("{{time}}",vv(i,t))}},w4=/^D+$/,S4=/^Y+$/,T4=["D","DD","YY","YYYY"];function E4(e){return w4.test(e)}function C4(e){return S4.test(e)}function P4(e,t,n){const r=A4(e,t,n);if(console.warn(r),T4.includes(e))throw new RangeError(r)}function A4(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const M4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_4=/^'([^]*?)'?$/,I4=/''/g,$4=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=ho(),i=(n==null?void 0:n.locale)??r.locale??dv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(T=r.locale)==null?void 0:T.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!D_(c))throw new RangeError("Invalid time value");let u=t.match(O4).map(E=>{const C=E[0];if(C==="p"||C==="P"){const $=x4[C];return $(E,i.formatLong)}return E}).join("").match(M4).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const C=E[0];if(C==="'")return{isToken:!1,value:D4(E)};if(mv[C])return{isToken:!0,value:E};if(C.match($4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(E=>{if(!E.isToken)return E.value;const C=E.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&C4(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&E4(C))&&P4(C,t,String(e));const $=mv[C[0]];return $(c,C,i.localize,d)}).join("")}function D4(e){const t=e.match(_4);return t?t[1].replace(I4,"'"):e}function N4(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function R4(e,t){return uv(Gt(e,e),I_(e))}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function xv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function wv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function L4(e,t,n){return av(e,-1,n)}const k4={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},j4=(e,t,n)=>{let r;const i=k4[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},F4={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},V4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},B4={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W4={date:Qi({formats:F4,defaultWidth:"full"}),time:Qi({formats:V4,defaultWidth:"full"}),dateTime:Qi({formats:B4,defaultWidth:"full"})},U4={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},z4={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},G4=(e,t,n,r)=>t.getHours()!==1?z4[e]:U4[e],Y4={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},H4={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},q4={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},K4={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},X4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Z4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},J4={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:Y4,defaultWidth:"wide"}),quarter:In({values:H4,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:q4,defaultWidth:"wide"}),day:In({values:K4,defaultWidth:"wide"}),dayPeriod:In({values:X4,defaultWidth:"wide",formattingValues:Z4,defaultFormattingWidth:"wide"})},Q4=/^(\d+)(º)?/i,eI=/\d+/i,tI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},nI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},rI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},iI={any:[/1/i,/2/i,/3/i,/4/i]},sI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},oI={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},aI={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},lI={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},cI={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},uI={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},fI={ordinalNumber:fv({matchPattern:Q4,parsePattern:eI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:tI,defaultMatchWidth:"wide",parsePatterns:nI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),day:$n({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:cI,defaultMatchWidth:"any",parsePatterns:uI,defaultParseWidth:"any"})},ts={code:"es",formatDistance:j4,formatLong:W4,formatRelative:G4,localize:J4,match:fI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Sv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),gf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},dI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return Sv(Dn(r,t,{locale:{en:dv,es:ts}[n]}))},hI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Tv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Ev=e=>e;var mo={exports:{}};/**
625
+ */const C_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},P_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},iv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},sv=6048e5,A_=864e5,ov=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ov in e?e[ov](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function av(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let M_={};function ho(){return M_}function Ji(e,t){var c,u,d,h;const n=ho(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Na(e,t){return Ji(e,{...t,weekStartsOn:1})}function lv(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function cv(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ra(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function O_(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-cv(o),u=+a-cv(a);return Math.round((c-u)/A_)}function __(e,t){const n=lv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function I_(e){return Gt(e,Date.now())}function uv(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function $_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function D_(e){return!(!$_(e)&&typeof e!="number"||isNaN(+pt(e)))}function N_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function R_(e,t){const[n,r]=Ra(e,t.start,t.end);return{start:n,end:r}}function L_(e,t){const{start:n,end:r}=R_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function k_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function j_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function F_(e,t){var c,u;const n=ho(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const V_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},B_=(e,t,n)=>{let r;const i=V_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const W_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},U_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},G_={date:Qi({formats:W_,defaultWidth:"full"}),time:Qi({formats:U_,defaultWidth:"full"}),dateTime:Qi({formats:z_,defaultWidth:"full"})},Y_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},H_=(e,t,n,r)=>Y_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const q_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},K_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},X_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Z_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Q_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},e4={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:q_,defaultWidth:"wide"}),quarter:In({values:K_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:X_,defaultWidth:"wide"}),day:In({values:Z_,defaultWidth:"wide"}),dayPeriod:In({values:J_,defaultWidth:"wide",formattingValues:Q_,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?n4(c,m=>m.test(a)):t4(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function t4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function n4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function fv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const r4=/^(\d+)(th|st|nd|rd)?/i,i4=/\d+/i,s4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},o4={any:[/^b/i,/^(a|c)/i]},a4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},l4={any:[/1/i,/2/i,/3/i,/4/i]},c4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},d4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},h4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p4={ordinalNumber:fv({matchPattern:r4,parsePattern:i4,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:s4,defaultMatchWidth:"wide",parsePatterns:o4,defaultParseWidth:"any"}),quarter:$n({matchPatterns:a4,defaultMatchWidth:"wide",parsePatterns:l4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:c4,defaultMatchWidth:"wide",parsePatterns:u4,defaultParseWidth:"any"}),day:$n({matchPatterns:f4,defaultMatchWidth:"wide",parsePatterns:d4,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:h4,defaultMatchWidth:"any",parsePatterns:m4,defaultParseWidth:"any"})},dv={code:"en-US",formatDistance:B_,formatLong:G_,formatRelative:H_,localize:e4,match:p4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g4(e,t){const n=pt(e,t==null?void 0:t.in);return O_(n,j_(n))+1}function y4(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+__(n);return Math.round(r/sv)+1}function hv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ho(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(p=i.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ji(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ji(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function v4(e,t){var c,u,d,h;const n=ho(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=hv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ji(o,t)}function b4(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ji(n,t)-+v4(n,t);return Math.round(r/sv)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},es={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=hv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=lv(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=b4(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=y4(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=g4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=es.noon:r===0?i=es.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=es.evening:r>=12?i=es.afternoon:r>=4?i=es.morning:i=es.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pv(r,":");case"zzzz":default:return"GMT"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function pv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function gv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const yv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},vv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},x4={p:vv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",yv(r,t)).replace("{{time}}",vv(i,t))}},w4=/^D+$/,S4=/^Y+$/,T4=["D","DD","YY","YYYY"];function E4(e){return w4.test(e)}function C4(e){return S4.test(e)}function P4(e,t,n){const r=A4(e,t,n);if(console.warn(r),T4.includes(e))throw new RangeError(r)}function A4(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const M4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_4=/^'([^]*?)'?$/,I4=/''/g,$4=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=ho(),i=(n==null?void 0:n.locale)??r.locale??dv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(p=r.locale)==null?void 0:p.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(T=r.locale)==null?void 0:T.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!D_(c))throw new RangeError("Invalid time value");let u=t.match(O4).map(A=>{const E=A[0];if(E==="p"||E==="P"){const $=x4[E];return $(A,i.formatLong)}return A}).join("").match(M4).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const E=A[0];if(E==="'")return{isToken:!1,value:D4(A)};if(mv[E])return{isToken:!0,value:A};if(E.match($4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const E=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&C4(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&E4(E))&&P4(E,t,String(e));const $=mv[E[0]];return $(c,E,i.localize,d)}).join("")}function D4(e){const t=e.match(_4);return t?t[1].replace(I4,"'"):e}function N4(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function R4(e,t){return uv(Gt(e,e),I_(e))}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function xv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function wv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function L4(e,t,n){return av(e,-1,n)}const k4={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},j4=(e,t,n)=>{let r;const i=k4[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},F4={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},V4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},B4={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W4={date:Qi({formats:F4,defaultWidth:"full"}),time:Qi({formats:V4,defaultWidth:"full"}),dateTime:Qi({formats:B4,defaultWidth:"full"})},U4={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},z4={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},G4=(e,t,n,r)=>t.getHours()!==1?z4[e]:U4[e],Y4={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},H4={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},q4={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},K4={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},X4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Z4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},J4={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:Y4,defaultWidth:"wide"}),quarter:In({values:H4,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:q4,defaultWidth:"wide"}),day:In({values:K4,defaultWidth:"wide"}),dayPeriod:In({values:X4,defaultWidth:"wide",formattingValues:Z4,defaultFormattingWidth:"wide"})},Q4=/^(\d+)(º)?/i,eI=/\d+/i,tI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},nI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},rI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},iI={any:[/1/i,/2/i,/3/i,/4/i]},sI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},oI={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},aI={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},lI={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},cI={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},uI={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},fI={ordinalNumber:fv({matchPattern:Q4,parsePattern:eI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:tI,defaultMatchWidth:"wide",parsePatterns:nI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),day:$n({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:cI,defaultMatchWidth:"any",parsePatterns:uI,defaultParseWidth:"any"})},ts={code:"es",formatDistance:j4,formatLong:W4,formatRelative:G4,localize:J4,match:fI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Sv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),gf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},dI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return Sv(Dn(r,t,{locale:{en:dv,es:ts}[n]}))},hI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Tv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Ev=e=>e;var mo={exports:{}};/**
626
626
  * @license
627
627
  * Lodash <https://lodash.com/>
628
628
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
629
629
  * Released under MIT license <https://lodash.com/license>
630
630
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
631
631
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
632
- */var mI=mo.exports,Cv;function pI(){return Cv||(Cv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,T=1,w=2,E=4,C=8,$=16,A=32,D=64,j=128,F=256,U=512,J=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,V=1/0,B=9007199254740991,Y=17976931348623157e292,O=NaN,R=4294967295,K=R-1,ae=R>>>1,le=[["ary",j],["bind",T],["bindKey",w],["curry",C],["curryRight",$],["flip",U],["partial",A],["partialRight",D],["rearg",F]],z="[object Arguments]",Z="[object Array]",oe="[object AsyncFunction]",ne="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ei="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Ci="[object RegExp]",qt="[object Set]",bn="[object String]",Pi="[object Symbol]",wl="[object Undefined]",Wr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",hh="[object Int16Array]",mh="[object Int32Array]",ph="[object Uint8Array]",gh="[object Uint8ClampedArray]",yh="[object Uint16Array]",vh="[object Uint32Array]",_L=/\b__p \+= '';/g,IL=/\b(__p \+=) '' \+/g,$L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j2=/&(?:amp|lt|gt|quot|#39);/g,F2=/[&<>"']/g,DL=RegExp(j2.source),NL=RegExp(F2.source),RL=/<%-([\s\S]+?)%>/g,LL=/<%([\s\S]+?)%>/g,V2=/<%=([\s\S]+?)%>/g,kL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jL=/^\w*$/,FL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,VL=RegExp(bh.source),xh=/^\s+/,BL=/\s/,WL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,UL=/\{\n\/\* \[wrapped with (.+)\] \*/,zL=/,? & /,GL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,YL=/[()=,{}\[\]\/\s]/,HL=/\\(\\)?/g,qL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B2=/\w*$/,KL=/^[-+]0x[0-9a-f]+$/i,XL=/^0b[01]+$/i,ZL=/^\[object .+?Constructor\]$/,JL=/^0o[0-7]+$/i,QL=/^(?:0|[1-9]\d*)$/,ek=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,tk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",nk="\\u0300-\\u036f",rk="\\ufe20-\\ufe2f",ik="\\u20d0-\\u20ff",W2=nk+rk+ik,U2="\\u2700-\\u27bf",z2="a-z\\xdf-\\xf6\\xf8-\\xff",sk="\\xac\\xb1\\xd7\\xf7",ok="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ak="\\u2000-\\u206f",lk=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G2="A-Z\\xc0-\\xd6\\xd8-\\xde",Y2="\\ufe0e\\ufe0f",H2=sk+ok+ak+lk,wh="['’]",ck="["+El+"]",q2="["+H2+"]",Cl="["+W2+"]",K2="\\d+",uk="["+U2+"]",X2="["+z2+"]",Z2="[^"+El+H2+K2+U2+z2+G2+"]",Sh="\\ud83c[\\udffb-\\udfff]",fk="(?:"+Cl+"|"+Sh+")",J2="[^"+El+"]",Th="(?:\\ud83c[\\udde6-\\uddff]){2}",Eh="[\\ud800-\\udbff][\\udc00-\\udfff]",Es="["+G2+"]",Q2="\\u200d",ew="(?:"+X2+"|"+Z2+")",dk="(?:"+Es+"|"+Z2+")",tw="(?:"+wh+"(?:d|ll|m|re|s|t|ve))?",nw="(?:"+wh+"(?:D|LL|M|RE|S|T|VE))?",rw=fk+"?",iw="["+Y2+"]?",hk="(?:"+Q2+"(?:"+[J2,Th,Eh].join("|")+")"+iw+rw+")*",mk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sw=iw+rw+hk,gk="(?:"+[uk,Th,Eh].join("|")+")"+sw,yk="(?:"+[J2+Cl+"?",Cl,Th,Eh,ck].join("|")+")",vk=RegExp(wh,"g"),bk=RegExp(Cl,"g"),Ch=RegExp(Sh+"(?="+Sh+")|"+yk+sw,"g"),xk=RegExp([Es+"?"+X2+"+"+tw+"(?="+[q2,Es,"$"].join("|")+")",dk+"+"+nw+"(?="+[q2,Es+ew,"$"].join("|")+")",Es+"?"+ew+"+"+tw,Es+"+"+nw,pk,mk,K2,gk].join("|"),"g"),wk=RegExp("["+Q2+El+W2+Y2+"]"),Sk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ek=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=!0,Je[z]=Je[Z]=Je[be]=Je[ne]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Ci]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[Z]=Xe[be]=Xe[Qe]=Xe[ne]=Xe[de]=Xe[Pt]=Xe[xn]=Xe[rr]=Xe[hh]=Xe[mh]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Ci]=Xe[qt]=Xe[bn]=Xe[Pi]=Xe[ph]=Xe[gh]=Xe[yh]=Xe[vh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var Ck={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ak={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Mk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ok=parseFloat,_k=parseInt,ow=typeof ea=="object"&&ea&&ea.Object===Object&&ea,Ik=typeof self=="object"&&self&&self.Object===Object&&self,bt=ow||Ik||Function("return this")(),Ph=t&&!t.nodeType&&t,Ai=Ph&&!0&&e&&!e.nodeType&&e,aw=Ai&&Ai.exports===Ph,Ah=aw&&ow.process,cn=function(){try{var L=Ai&&Ai.require&&Ai.require("util").types;return L||Ah&&Ah.binding&&Ah.binding("util")}catch{}}(),lw=cn&&cn.isArrayBuffer,cw=cn&&cn.isDate,uw=cn&&cn.isMap,fw=cn&&cn.isRegExp,dw=cn&&cn.isSet,hw=cn&&cn.isTypedArray;function Kt(L,G,W){switch(W.length){case 0:return L.call(G);case 1:return L.call(G,W[0]);case 2:return L.call(G,W[0],W[1]);case 3:return L.call(G,W[0],W[1],W[2])}return L.apply(G,W)}function $k(L,G,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];G(me,ht,W(ht),L)}return me}function un(L,G){for(var W=-1,me=L==null?0:L.length;++W<me&&G(L[W],W,L)!==!1;);return L}function Dk(L,G){for(var W=L==null?0:L.length;W--&&G(L[W],W,L)!==!1;);return L}function mw(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!G(L[W],W,L))return!1;return!0}function Ur(L,G){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];G(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,G){var W=L==null?0:L.length;return!!W&&Cs(L,G,0)>-1}function Mh(L,G,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(G,L[me]))return!0;return!1}function et(L,G){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=G(L[W],W,L);return Pe}function zr(L,G){for(var W=-1,me=G.length,Pe=L.length;++W<me;)L[Pe+W]=G[W];return L}function Oh(L,G,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=G(W,L[Pe],Pe,L);return W}function Nk(L,G,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=G(W,L[Pe],Pe,L);return W}function _h(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(G(L[W],W,L))return!0;return!1}var Rk=Ih("length");function Lk(L){return L.split("")}function kk(L){return L.match(GL)||[]}function pw(L,G,W){var me;return W(L,function(Pe,ke,ht){if(G(Pe,ke,ht))return me=ke,!1}),me}function Al(L,G,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(G(L[ke],ke,L))return ke;return-1}function Cs(L,G,W){return G===G?Kk(L,G,W):Al(L,gw,W)}function jk(L,G,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],G))return Pe;return-1}function gw(L){return L!==L}function yw(L,G){var W=L==null?0:L.length;return W?Dh(L,G)/W:O}function Ih(L){return function(G){return G==null?n:G[L]}}function $h(L){return function(G){return L==null?n:L[G]}}function vw(L,G,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):G(W,ke,ht,Ge)}),W}function Fk(L,G){var W=L.length;for(L.sort(G);W--;)L[W]=L[W].value;return L}function Dh(L,G){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=G(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function Nh(L,G){for(var W=-1,me=Array(L);++W<L;)me[W]=G(W);return me}function Vk(L,G){return et(G,function(W){return[W,L[W]]})}function bw(L){return L&&L.slice(0,Tw(L)+1).replace(xh,"")}function Xt(L){return function(G){return L(G)}}function Rh(L,G){return et(G,function(W){return L[W]})}function Fo(L,G){return L.has(G)}function xw(L,G){for(var W=-1,me=L.length;++W<me&&Cs(G,L[W],0)>-1;);return W}function ww(L,G){for(var W=L.length;W--&&Cs(G,L[W],0)>-1;);return W}function Bk(L,G){for(var W=L.length,me=0;W--;)L[W]===G&&++me;return me}var Wk=$h(Ck),Uk=$h(Pk);function zk(L){return"\\"+Mk[L]}function Gk(L,G){return L==null?n:L[G]}function Ps(L){return wk.test(L)}function Yk(L){return Sk.test(L)}function Hk(L){for(var G,W=[];!(G=L.next()).done;)W.push(G.value);return W}function Lh(L){var G=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++G]=[Pe,me]}),W}function Sw(L,G){return function(W){return L(G(W))}}function Gr(L,G){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===G||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=me}),W}function qk(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=[me,me]}),W}function Kk(L,G,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===G)return me;return-1}function Xk(L,G,W){for(var me=W+1;me--;)if(L[me]===G)return me;return me}function As(L){return Ps(L)?Jk(L):Rk(L)}function wn(L){return Ps(L)?Qk(L):Lk(L)}function Tw(L){for(var G=L.length;G--&&BL.test(L.charAt(G)););return G}var Zk=$h(Ak);function Jk(L){for(var G=Ch.lastIndex=0;Ch.test(L);)++G;return G}function Qk(L){return L.match(Ch)||[]}function ej(L){return L.match(xk)||[]}var tj=function L(G){G=G==null?bt:Ms.defaults(bt.Object(),G,Ms.pick(bt,Tk));var W=G.Array,me=G.Date,Pe=G.Error,ke=G.Function,ht=G.Math,Ge=G.Object,kh=G.RegExp,nj=G.String,fn=G.TypeError,Ol=W.prototype,rj=ke.prototype,Os=Ge.prototype,_l=G["__core-js_shared__"],Il=rj.toString,ze=Os.hasOwnProperty,ij=0,Ew=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=Os.toString,sj=Il.call(Ge),oj=bt._,aj=kh("^"+Il.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=aw?G.Buffer:n,Yr=G.Symbol,Nl=G.Uint8Array,Cw=Dl?Dl.allocUnsafe:n,Rl=Sw(Ge.getPrototypeOf,Ge),Pw=Ge.create,Aw=Os.propertyIsEnumerable,Ll=Ol.splice,Mw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Mi=Yr?Yr.toStringTag:n,kl=function(){try{var s=Di(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),lj=G.clearTimeout!==bt.clearTimeout&&G.clearTimeout,cj=me&&me.now!==bt.Date.now&&me.now,uj=G.setTimeout!==bt.setTimeout&&G.setTimeout,jl=ht.ceil,Fl=ht.floor,jh=Ge.getOwnPropertySymbols,fj=Dl?Dl.isBuffer:n,Ow=G.isFinite,dj=Ol.join,hj=Sw(Ge.keys,Ge),mt=ht.max,At=ht.min,mj=me.now,pj=G.parseInt,_w=ht.random,gj=Ol.reverse,Fh=Di(G,"DataView"),Bo=Di(G,"Map"),Vh=Di(G,"Promise"),_s=Di(G,"Set"),Wo=Di(G,"WeakMap"),Uo=Di(Ge,"create"),Vl=Wo&&new Wo,Is={},yj=Ni(Fh),vj=Ni(Bo),bj=Ni(Vh),xj=Ni(_s),wj=Ni(Wo),Bl=Yr?Yr.prototype:n,zo=Bl?Bl.valueOf:n,Iw=Bl?Bl.toString:n;function P(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return $S(s)}return new dn(s)}var $s=function(){function s(){}return function(l){if(!st(l))return{};if(Pw)return Pw(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Wl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:RL,evaluate:LL,interpolate:V2,variable:"",imports:{_:P}},P.prototype=Wl.prototype,P.prototype.constructor=P,dn.prototype=$s(Wl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Sj(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function Tj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Ej(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=LF(0,x,this.__views__),_=M.start,N=M.end,k=N-_,H=g?N:_-1,q=this.__iteratees__,X=q.length,ce=0,ye=At(k,this.__takeCount__);if(!f||!g&&x==k&&ye==k)return tS(s,this.__actions__);var Te=[];e:for(;k--&&ce<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}Re.prototype=$s(Wl.prototype),Re.prototype.constructor=Re;function Oi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Cj(){this.__data__=Uo?Uo(null):{},this.size=0}function Pj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Aj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function Mj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Oj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Oi.prototype.clear=Cj,Oi.prototype.delete=Pj,Oi.prototype.get=Aj,Oi.prototype.has=Mj,Oi.prototype.set=Oj;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function _j(){this.__data__=[],this.size=0}function Ij(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Ll.call(l,f,1),--this.size,!0}function $j(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Dj(s){return Ul(this.__data__,s)>-1}function Nj(s,l){var f=this.__data__,g=Ul(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=_j,ir.prototype.delete=Ij,ir.prototype.get=$j,ir.prototype.has=Dj,ir.prototype.set=Nj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Rj(){this.size=0,this.__data__={hash:new Oi,map:new(Bo||ir),string:new Oi}}function Lj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function kj(s){return tc(this,s).get(s)}function jj(s){return tc(this,s).has(s)}function Fj(s,l){var f=tc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=Rj,sr.prototype.delete=Lj,sr.prototype.get=kj,sr.prototype.has=jj,sr.prototype.set=Fj;function _i(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Vj(s){return this.__data__.set(s,u),this}function Bj(s){return this.__data__.has(s)}_i.prototype.add=_i.prototype.push=Vj,_i.prototype.has=Bj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Wj(){this.__data__=new ir,this.size=0}function Uj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function zj(s){return this.__data__.get(s)}function Gj(s){return this.__data__.has(s)}function Yj(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=Wj,Sn.prototype.delete=Uj,Sn.prototype.get=zj,Sn.prototype.has=Gj,Sn.prototype.set=Yj;function $w(s,l){var f=Ae(s),g=!f&&Ri(s),x=!f&&!g&&Zr(s),M=!f&&!g&&!x&&Ls(s),_=f||g||x||M,N=_?Nh(s.length,nj):[],k=N.length;for(var H in s)(l||ze.call(s,H))&&!(_&&(H=="length"||x&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,k)))&&N.push(H);return N}function Dw(s){var l=s.length;return l?s[Zh(0,l-1)]:n}function Hj(s,l){return nc(Vt(s),Ii(l,0,s.length))}function qj(s){return nc(Vt(s))}function Bh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(ze.call(s,l)&&Tn(g,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function Kj(s,l,f,g){return Hr(s,function(x,M,_){l(g,x,f(x),_)}),g}function Nw(s,l){return s&&zn(l,gt(l),s)}function Xj(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&kl?kl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Wh(s,l){for(var f=-1,g=l.length,x=W(g),M=s==null;++f<g;)x[f]=M?n:Sm(s,l[f]);return x}function Ii(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,g,x,M){var _,N=l&m,k=l&p,H=l&y;if(f&&(_=x?f(s,g,x,M):f(s)),_!==n)return _;if(!st(s))return s;var q=Ae(s);if(q){if(_=jF(s),!N)return Vt(s,_)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return iS(s,N);if(X==dt||X==z||ce&&!x){if(_=k||ce?{}:TS(s),!N)return k?AF(s,Xj(_,s)):PF(s,Nw(_,s))}else{if(!Xe[X])return x?s:{};_=FF(s,X,N)}}M||(M=new Sn);var ye=M.get(s);if(ye)return ye;M.set(s,_),JS(s)?s.forEach(function(Ee){_.add(hn(Ee,l,f,Ee,s,M))}):XS(s)&&s.forEach(function(Ee,Ne){_.set(Ne,hn(Ee,l,f,Ne,s,M))});var Te=H?k?lm:am:k?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(_,Ne,hn(Ee,l,f,Ne,s,M))}),_}function Zj(s){var l=gt(s);return function(f){return Rw(f,s,l)}}function Rw(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],M=l[x],_=s[x];if(_===n&&!(x in s)||!M(_))return!1}return!0}function Lw(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,M=Pl,_=!0,N=s.length,k=[],H=l.length;if(!N)return k;f&&(l=et(l,Xt(f))),g?(M=Mh,_=!1):l.length>=i&&(M=Fo,_=!1,l=new _i(l));e:for(;++x<N;){var q=s[x],X=f==null?q:f(q);if(q=g||q!==0?q:0,_&&X===X){for(var ce=H;ce--;)if(l[ce]===X)continue e;k.push(q)}else M(l,X,g)||k.push(q)}return k}var Hr=cS(Un),kw=cS(zh,!0);function Jj(s,l){var f=!0;return Hr(s,function(g,x,M){return f=!!l(g,x,M),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var M=s[g],_=l(M);if(_!=null&&(N===n?_===_&&!Jt(_):f(_,N)))var N=_,k=M}return k}function Qj(s,l,f,g){var x=s.length;for(f=Oe(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Oe(g),g<0&&(g+=x),g=f>g?0:eT(g);f<g;)s[f++]=l;return s}function jw(s,l){var f=[];return Hr(s,function(g,x,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,_=s.length;for(f||(f=BF),x||(x=[]);++M<_;){var N=s[M];l>0&&f(N)?l>1?xt(N,l-1,f,g,x):zr(x,N):g||(x[x.length]=N)}return x}var Uh=uS(),Fw=uS(!0);function Un(s,l){return s&&Uh(s,l,gt)}function zh(s,l){return s&&Fw(s,l,gt)}function Gl(s,l){return Ur(l,function(f){return ur(s[f])})}function $i(s,l){l=Kr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Gn(l[f++])];return f&&f==g?s:n}function Vw(s,l,f){var g=l(s);return Ae(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?wl:Ei:Mi&&Mi in Ge(s)?RF(s):qF(s)}function Gh(s,l){return s>l}function eF(s,l){return s!=null&&ze.call(s,l)}function tF(s,l){return s!=null&&l in Ge(s)}function nF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function Yh(s,l,f){for(var g=f?Mh:Pl,x=s[0].length,M=s.length,_=M,N=W(M),k=1/0,H=[];_--;){var q=s[_];_&&l&&(q=et(q,Xt(l))),k=At(q.length,k),N[_]=!f&&(l||x>=120&&q.length>=120)?new _i(_&&q):n}q=s[0];var X=-1,ce=N[0];e:for(;++X<x&&H.length<k;){var ye=q[X],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ce?Fo(ce,Te):g(H,Te,f))){for(_=M;--_;){var _e=N[_];if(!(_e?Fo(_e,Te):g(s[_],Te,f)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function rF(s,l,f,g){return Un(s,function(x,M,_){l(g,f(x),M,_)}),g}function Ho(s,l,f){l=Kr(l,s),s=AS(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,f)}function Bw(s){return ot(s)&&It(s)==z}function iF(s){return ot(s)&&It(s)==be}function sF(s){return ot(s)&&It(s)==de}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:oF(s,l,f,g,qo,x)}function oF(s,l,f,g,x,M){var _=Ae(s),N=Ae(l),k=_?Z:Mt(s),H=N?Z:Mt(l);k=k==z?dt:k,H=H==z?dt:H;var q=k==dt,X=H==dt,ce=k==H;if(ce&&Zr(s)){if(!Zr(l))return!1;_=!0,q=!1}if(ce&&!q)return M||(M=new Sn),_||Ls(s)?xS(s,l,f,g,x,M):DF(s,l,k,f,g,x,M);if(!(f&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(_e,Ee,f,g,M)}}return ce?(M||(M=new Sn),NF(s,l,f,g,x,M)):!1}function aF(s){return ot(s)&&Mt(s)==De}function Hh(s,l,f,g){var x=f.length,M=x,_=!g;if(s==null)return!M;for(s=Ge(s);x--;){var N=f[x];if(_&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++x<M;){N=f[x];var k=N[0],H=s[k],q=N[1];if(_&&N[2]){if(H===n&&!(k in s))return!1}else{var X=new Sn;if(g)var ce=g(H,q,k,s,l,X);if(!(ce===n?qo(q,H,S|b,g,X):ce))return!1}}return!0}function Ww(s){if(!st(s)||UF(s))return!1;var l=ur(s)?aj:ZL;return l.test(Ni(s))}function lF(s){return ot(s)&&It(s)==Ci}function cF(s){return ot(s)&&Mt(s)==qt}function uF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function Uw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?Yw(s[0],s[1]):Gw(s):fT(s)}function qh(s){if(!Zo(s))return hj(s);var l=[];for(var f in Ge(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function fF(s){if(!st(s))return HF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function Kh(s,l){return s<l}function zw(s,l){var f=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(x,M,_){g[++f]=l(x,M,_)}),g}function Gw(s){var l=um(s);return l.length==1&&l[0][2]?CS(l[0][0],l[0][1]):function(f){return f===s||Hh(f,s,l)}}function Yw(s,l){return dm(s)&&ES(l)?CS(Gn(s),l):function(f){var g=Sm(f,s);return g===n&&g===l?Tm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Uh(l,function(M,_){if(x||(x=new Sn),st(M))dF(s,l,_,f,Yl,g,x);else{var N=g?g(mm(s,_),M,_+"",s,l,x):n;N===n&&(N=M),Bh(s,_,N)}},Wt)}function dF(s,l,f,g,x,M,_){var N=mm(s,f),k=mm(l,f),H=_.get(k);if(H){Bh(s,f,H);return}var q=M?M(N,k,f+"",s,l,_):n,X=q===n;if(X){var ce=Ae(k),ye=!ce&&Zr(k),Te=!ce&&!ye&&Ls(k);q=k,ce||ye||Te?Ae(N)?q=N:ct(N)?q=Vt(N):ye?(X=!1,q=iS(k,!0)):Te?(X=!1,q=sS(k,!0)):q=[]:Qo(k)||Ri(k)?(q=N,Ri(N)?q=tT(N):(!st(N)||ur(N))&&(q=TS(k))):X=!1}X&&(_.set(k,q),x(q,k,g,M,_),_.delete(k)),Bh(s,f,q)}function Hw(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function qw(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(_){return $i(_,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=zw(s,function(M,_,N){var k=et(l,function(H){return H(M)});return{criteria:k,index:++g,value:M}});return Fk(x,function(M,_){return CF(M,_,f)})}function hF(s,l){return Kw(s,l,function(f,g){return Tm(s,g)})}function Kw(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var _=l[g],N=$i(s,_);f(N,_)&&Ko(M,Kr(_,s),N)}return M}function mF(s){return function(l){return $i(l,s)}}function Xh(s,l,f,g){var x=g?jk:Cs,M=-1,_=l.length,N=s;for(s===l&&(l=Vt(l)),f&&(N=et(s,Xt(f)));++M<_;)for(var k=0,H=l[M],q=f?f(H):H;(k=x(N,q,k,g))>-1;)N!==s&&Ll.call(N,k,1),Ll.call(s,k,1);return s}function Xw(s,l){for(var f=s?l.length:0,g=f-1;f--;){var x=l[f];if(f==g||x!==M){var M=x;cr(x)?Ll.call(s,x,1):em(s,x)}}return s}function Zh(s,l){return s+Fl(_w()*(l-s+1))}function pF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),_=W(M);M--;)_[g?M:++x]=s,s+=f;return _}function Jh(s,l){var f="";if(!s||l<1||l>B)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function Ie(s,l){return pm(PS(s,l,Ut),s+"")}function gF(s){return Dw(ks(s))}function yF(s,l){var f=ks(s);return nc(f,Ii(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var x=-1,M=l.length,_=M-1,N=s;N!=null&&++x<M;){var k=Gn(l[x]),H=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(x!=_){var q=N[k];H=g?g(q,k,N):n,H===n&&(H=st(q)?q:cr(l[x+1])?[]:{})}Go(N,k,H),N=N[k]}return s}var Zw=Vl?function(s,l){return Vl.set(s,l),s}:Ut,vF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Cm(l),writable:!0})}:Ut;function bF(s){return nc(ks(s))}function mn(s,l,f){var g=-1,x=s.length;l<0&&(l=-l>x?0:x+l),f=f>x?x:f,f<0&&(f+=x),x=l>f?0:f-l>>>0,l>>>=0;for(var M=W(x);++g<x;)M[g]=s[g+l];return M}function xF(s,l){var f;return Hr(s,function(g,x,M){return f=l(g,x,M),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=ae){for(;g<x;){var M=g+x>>>1,_=s[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=M+1:x=M}return x}return Qh(s,l,Ut,f)}function Qh(s,l,f,g){var x=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var _=l!==l,N=l===null,k=Jt(l),H=l===n;x<M;){var q=Fl((x+M)/2),X=f(s[q]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(_)var Ee=g||Te;else H?Ee=Te&&(g||ce):N?Ee=Te&&ce&&(g||!ye):k?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?x=q+1:M=q}return At(M,K)}function Jw(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var _=s[f],N=l?l(_):_;if(!f||!Tn(N,k)){var k=N;M[x++]=_===0?0:_}}return M}function Qw(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return Iw?Iw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,f){var g=-1,x=Pl,M=s.length,_=!0,N=[],k=N;if(f)_=!1,x=Mh;else if(M>=i){var H=l?null:IF(s);if(H)return Ml(H);_=!1,x=Fo,k=new _i}else k=l?[]:N;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=f||q!==0?q:0,_&&X===X){for(var ce=k.length;ce--;)if(k[ce]===X)continue e;l&&k.push(X),N.push(q)}else x(k,X,f)||(k!==N&&k.push(X),N.push(q))}return N}function em(s,l){return l=Kr(l,s),s=AS(s,l),s==null||delete s[Gn(pn(l))]}function eS(s,l,f,g){return Ko(s,l,f($i(s,l)),g)}function ql(s,l,f,g){for(var x=s.length,M=g?x:-1;(g?M--:++M<x)&&l(s[M],M,s););return f?mn(s,g?0:M,g?M+1:x):mn(s,g?M+1:0,g?x:M)}function tS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Oh(l,function(g,x){return x.func.apply(x.thisArg,zr([g],x.args))},f)}function tm(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var x=-1,M=W(g);++x<g;)for(var _=s[x],N=-1;++N<g;)N!=x&&(M[x]=Yo(M[x]||_,s[N],l,f));return qr(xt(M,1),l,f)}function nS(s,l,f){for(var g=-1,x=s.length,M=l.length,_={};++g<x;){var N=g<M?l[g]:n;f(_,s[g],N)}return _}function nm(s){return ct(s)?s:[]}function rm(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Ae(s)?s:dm(s,l)?[s]:IS(Be(s))}var wF=Ie;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var rS=lj||function(s){return bt.clearTimeout(s)};function iS(s,l){if(l)return s.slice();var f=s.length,g=Cw?Cw(f):new s.constructor(f);return s.copy(g),g}function im(s){var l=new s.constructor(s.byteLength);return new Nl(l).set(new Nl(s)),l}function SF(s,l){var f=l?im(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function TF(s){var l=new s.constructor(s.source,B2.exec(s));return l.lastIndex=s.lastIndex,l}function EF(s){return zo?Ge(zo.call(s)):{}}function sS(s,l){var f=l?im(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function oS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,M=Jt(s),_=l!==n,N=l===null,k=l===l,H=Jt(l);if(!N&&!H&&!M&&s>l||M&&_&&k&&!N&&!H||g&&_&&k||!f&&k||!x)return 1;if(!g&&!M&&!H&&s<l||H&&f&&x&&!g&&!M||N&&f&&x||!_&&x||!k)return-1}return 0}function CF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,_=x.length,N=f.length;++g<_;){var k=oS(x[g],M[g]);if(k){if(g>=N)return k;var H=f[g];return k*(H=="desc"?-1:1)}}return s.index-l.index}function aS(s,l,f,g){for(var x=-1,M=s.length,_=f.length,N=-1,k=l.length,H=mt(M-_,0),q=W(k+H),X=!g;++N<k;)q[N]=l[N];for(;++x<_;)(X||x<M)&&(q[f[x]]=s[x]);for(;H--;)q[N++]=s[x++];return q}function lS(s,l,f,g){for(var x=-1,M=s.length,_=-1,N=f.length,k=-1,H=l.length,q=mt(M-N,0),X=W(q+H),ce=!g;++x<q;)X[x]=s[x];for(var ye=x;++k<H;)X[ye+k]=l[k];for(;++_<N;)(ce||x<M)&&(X[ye+f[_]]=s[x++]);return X}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function zn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var N=l[M],k=g?g(f[N],s[N],N,f,s):n;k===n&&(k=s[N]),x?or(f,N,k):Go(f,N,k)}return f}function PF(s,l){return zn(s,fm(s),l)}function AF(s,l){return zn(s,wS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?$k:Kj,M=l?l():{};return x(f,s,xe(g,2),M)}}function Ds(s){return Ie(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,_=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,_&&$t(f[0],f[1],_)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var N=f[g];N&&s(l,N,g,M)}return l})}function cS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var x=f.length,M=l?x:-1,_=Ge(f);(l?M--:++M<x)&&g(_[M],M,_)!==!1;);return f}}function uS(s){return function(l,f,g){for(var x=-1,M=Ge(l),_=g(l),N=_.length;N--;){var k=_[s?N:++x];if(f(M[k],k,M)===!1)break}return l}}function MF(s,l,f){var g=l&T,x=Xo(s);function M(){var _=this&&this!==bt&&this instanceof M?x:s;return _.apply(g?f:this,arguments)}return M}function fS(s){return function(l){l=Be(l);var f=Ps(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Xr(f,1).join(""):l.slice(1);return g[s]()+x}}function Ns(s){return function(l){return Oh(cT(lT(l).replace(vk,"")),s,"")}}function Xo(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=$s(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function OF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,_=W(M),N=M,k=Rs(x);N--;)_[N]=arguments[N];var H=M<3&&_[0]!==k&&_[M-1]!==k?[]:Gr(_,k);if(M-=H.length,M<f)return gS(s,l,Xl,x.placeholder,n,_,H,n,n,f-M);var q=this&&this!==bt&&this instanceof x?g:s;return Kt(q,this,_)}return x}function dS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=xe(f,3);l=gt(l),f=function(N){return M(x[N],N,x)}}var _=s(l,f,g);return _>-1?x[M?l[_]:_]:n}}function hS(s){return lr(function(l){var f=l.length,g=f,x=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(x&&!_&&ec(M)=="wrapper")var _=new dn([],!0)}for(g=_?g:f;++g<f;){M=l[g];var N=ec(M),k=N=="wrapper"?cm(M):n;k&&hm(k[0])&&k[1]==(j|C|A|F)&&!k[4].length&&k[9]==1?_=_[ec(k[0])].apply(_,k[3]):_=M.length==1&&hm(M)?_[N]():_.thru(M)}return function(){var H=arguments,q=H[0];if(_&&H.length==1&&Ae(q))return _.plant(q).value();for(var X=0,ce=f?l[X].apply(this,H):q;++X<f;)ce=l[X].call(this,ce);return ce}})}function Xl(s,l,f,g,x,M,_,N,k,H){var q=l&j,X=l&T,ce=l&w,ye=l&(C|$),Te=l&U,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=W(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Rs(Ee),en=Bk(Le,Dt);if(g&&(Le=aS(Le,g,x,ye)),M&&(Le=lS(Le,M,_,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return gS(s,l,Xl,Ee.placeholder,f,Le,ut,N,k,H-Ne)}var En=X?f:this,dr=ce?En[s]:s;return Ne=Le.length,N?Le=KF(Le,N):Te&&Ne>1&&Le.reverse(),q&&k<Ne&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(En,Le)}return Ee}function mS(s,l){return function(f,g){return rF(f,s,l(g),{})}}function Zl(s,l){return function(f,g){var x;if(f===n&&g===n)return l;if(f!==n&&(x=f),g!==n){if(x===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=Qw(f),g=Qw(g)),x=s(f,g)}return x}}function sm(s){return lr(function(l){return l=et(l,Xt(xe())),Ie(function(f){var g=this;return s(l,function(x){return Kt(x,g,f)})})})}function Jl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Jh(l,s):l;var g=Jh(l,jl(s/As(l)));return Ps(l)?Xr(wn(g),0,s).join(""):g.slice(0,s)}function _F(s,l,f,g){var x=l&T,M=Xo(s);function _(){for(var N=-1,k=arguments.length,H=-1,q=g.length,X=W(q+k),ce=this&&this!==bt&&this instanceof _?M:s;++H<q;)X[H]=g[H];for(;k--;)X[H++]=arguments[++N];return Kt(ce,x?f:this,X)}return _}function pS(s){return function(l,f,g){return g&&typeof g!="number"&&$t(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),pF(l,f,g,s)}}function Ql(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function gS(s,l,f,g,x,M,_,N,k,H){var q=l&C,X=q?_:n,ce=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?A:D,l&=~(q?D:A),l&E||(l&=-4);var _e=[s,l,x,ye,X,Te,ce,N,k,H],Ee=f.apply(n,_e);return hm(s)&&MS(Ee,_e),Ee.placeholder=g,OS(Ee,s,l)}function om(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Oe(g),292),g&&Ow(f)){var x=(Be(f)+"e").split("e"),M=l(x[0]+"e"+(+x[1]+g));return x=(Be(M)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var IF=_s&&1/Ml(new _s([,-0]))[1]==V?function(s){return new _s(s)}:Mm;function yS(s){return function(l){var f=Mt(l);return f==De?Lh(l):f==qt?qk(l):Vk(l,s(l))}}function ar(s,l,f,g,x,M,_,N){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=x=n),_=_===n?_:mt(Oe(_),0),N=N===n?N:Oe(N),H-=x?x.length:0,l&D){var q=g,X=x;g=x=n}var ce=k?n:cm(s),ye=[s,l,f,g,x,q,X,M,_,N];if(ce&&YF(ye,ce),s=ye[0],l=ye[1],f=ye[2],g=ye[3],x=ye[4],N=ye[9]=ye[9]===n?k?0:s.length:mt(ye[9]-H,0),!N&&l&(C|$)&&(l&=-25),!l||l==T)var Te=MF(s,l,f);else l==C||l==$?Te=OF(s,l,N):(l==A||l==(T|A))&&!x.length?Te=_F(s,l,f,g):Te=Xl.apply(n,ye);var _e=ce?Zw:MS;return OS(_e(Te,ye),s,l)}function vS(s,l,f,g){return s===n||Tn(s,Os[f])&&!ze.call(g,f)?l:s}function bS(s,l,f,g,x,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,bS,M),M.delete(l)),s}function $F(s){return Qo(s)?n:s}function xS(s,l,f,g,x,M){var _=f&S,N=s.length,k=l.length;if(N!=k&&!(_&&k>N))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ce=!0,ye=f&b?new _i:n;for(M.set(s,l),M.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=_?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!_h(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||x(Te,Ne,f,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||x(Te,_e,f,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function DF(s,l,f,g,x,M,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!M(new Nl(s),new Nl(l)));case ne:case de:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Ci:case bn:return s==l+"";case De:var N=Lh;case qt:var k=g&S;if(N||(N=Ml),s.size!=l.size&&!k)return!1;var H=_.get(s);if(H)return H==l;g|=b,_.set(s,l);var q=xS(N(s),N(l),g,x,M,_);return _.delete(s),q;case Pi:if(zo)return zo.call(s)==zo.call(l)}return!1}function NF(s,l,f,g,x,M){var _=f&S,N=am(s),k=N.length,H=am(l),q=H.length;if(k!=q&&!_)return!1;for(var X=k;X--;){var ce=N[X];if(!(_?ce in l:ze.call(l,ce)))return!1}var ye=M.get(s),Te=M.get(l);if(ye&&Te)return ye==l&&Te==s;var _e=!0;M.set(s,l),M.set(l,s);for(var Ee=_;++X<k;){ce=N[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=_?g(Le,Ne,ce,l,s,M):g(Ne,Le,ce,s,l,M);if(!(Qt===n?Ne===Le||x(Ne,Le,f,g,M):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!Ee){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return pm(PS(s,n,RS),s+"")}function am(s){return Vw(s,gt,fm)}function lm(s){return Vw(s,Wt,wS)}var cm=Vl?function(s){return Vl.get(s)}:Mm;function ec(s){for(var l=s.name+"",f=Is[l],g=ze.call(Is,l)?f.length:0;g--;){var x=f[g],M=x.func;if(M==null||M==s)return x.name}return l}function Rs(s){var l=ze.call(P,"placeholder")?P:s;return l.placeholder}function xe(){var s=P.iteratee||Pm;return s=s===Pm?Uw:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return WF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function um(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,ES(x)]}return l}function Di(s,l){var f=Gk(s,l);return Ww(f)?f:n}function RF(s){var l=ze.call(s,Mi),f=s[Mi];try{s[Mi]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Mi]=f:delete s[Mi]),x}var fm=jh?function(s){return s==null?[]:(s=Ge(s),Ur(jh(s),function(l){return Aw.call(s,l)}))}:Om,wS=jh?function(s){for(var l=[];s;)zr(l,fm(s)),s=Rl(s);return l}:Om,Mt=It;(Fh&&Mt(new Fh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Vh&&Mt(Vh.resolve())!=bl||_s&&Mt(new _s)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Ni(f):"";if(g)switch(g){case yj:return Qe;case vj:return De;case bj:return bl;case xj:return qt;case wj:return Wr}return l});function LF(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],_=M.size;switch(M.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function kF(s){var l=s.match(UL);return l?l[1].split(zL):[]}function SS(s,l,f){l=Kr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var _=Gn(l[g]);if(!(M=s!=null&&f(s,_)))break;s=s[_]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(_,x)&&(Ae(s)||Ri(s)))}function jF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function TS(s){return typeof s.constructor=="function"&&!Zo(s)?$s(Rl(s)):{}}function FF(s,l,f){var g=s.constructor;switch(l){case be:return im(s);case ne:case de:return new g(+s);case Qe:return SF(s,f);case Pt:case xn:case rr:case hh:case mh:case ph:case gh:case yh:case vh:return sS(s,f);case De:return new g;case ft:case bn:return new g(s);case Ci:return TF(s);case qt:return new g;case Pi:return EF(s)}}function VF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(WL,`{
632
+ */var mI=mo.exports,Cv;function pI(){return Cv||(Cv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,y=4,S=1,b=2,T=1,w=2,A=4,E=8,$=16,P=32,N=64,j=128,F=256,U=512,Z=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,V=1/0,B=9007199254740991,Y=17976931348623157e292,O=NaN,R=4294967295,K=R-1,ae=R>>>1,le=[["ary",j],["bind",T],["bindKey",w],["curry",E],["curryRight",$],["flip",U],["partial",P],["partialRight",N],["rearg",F]],z="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",ne="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ei="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Ci="[object RegExp]",qt="[object Set]",bn="[object String]",Pi="[object Symbol]",wl="[object Undefined]",Wr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",hh="[object Int16Array]",mh="[object Int32Array]",ph="[object Uint8Array]",gh="[object Uint8ClampedArray]",yh="[object Uint16Array]",vh="[object Uint32Array]",$L=/\b__p \+= '';/g,DL=/\b(__p \+=) '' \+/g,NL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j2=/&(?:amp|lt|gt|quot|#39);/g,F2=/[&<>"']/g,RL=RegExp(j2.source),LL=RegExp(F2.source),kL=/<%-([\s\S]+?)%>/g,jL=/<%([\s\S]+?)%>/g,V2=/<%=([\s\S]+?)%>/g,FL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VL=/^\w*$/,BL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,WL=RegExp(bh.source),xh=/^\s+/,UL=/\s/,zL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,GL=/\{\n\/\* \[wrapped with (.+)\] \*/,YL=/,? & /,HL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qL=/[()=,{}\[\]\/\s]/,KL=/\\(\\)?/g,XL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B2=/\w*$/,ZL=/^[-+]0x[0-9a-f]+$/i,JL=/^0b[01]+$/i,QL=/^\[object .+?Constructor\]$/,ek=/^0o[0-7]+$/i,tk=/^(?:0|[1-9]\d*)$/,nk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,rk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",ik="\\u0300-\\u036f",sk="\\ufe20-\\ufe2f",ok="\\u20d0-\\u20ff",W2=ik+sk+ok,U2="\\u2700-\\u27bf",z2="a-z\\xdf-\\xf6\\xf8-\\xff",ak="\\xac\\xb1\\xd7\\xf7",lk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ck="\\u2000-\\u206f",uk=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G2="A-Z\\xc0-\\xd6\\xd8-\\xde",Y2="\\ufe0e\\ufe0f",H2=ak+lk+ck+uk,wh="['’]",fk="["+El+"]",q2="["+H2+"]",Cl="["+W2+"]",K2="\\d+",dk="["+U2+"]",X2="["+z2+"]",Z2="[^"+El+H2+K2+U2+z2+G2+"]",Sh="\\ud83c[\\udffb-\\udfff]",hk="(?:"+Cl+"|"+Sh+")",J2="[^"+El+"]",Th="(?:\\ud83c[\\udde6-\\uddff]){2}",Eh="[\\ud800-\\udbff][\\udc00-\\udfff]",Es="["+G2+"]",Q2="\\u200d",ew="(?:"+X2+"|"+Z2+")",mk="(?:"+Es+"|"+Z2+")",tw="(?:"+wh+"(?:d|ll|m|re|s|t|ve))?",nw="(?:"+wh+"(?:D|LL|M|RE|S|T|VE))?",rw=hk+"?",iw="["+Y2+"]?",pk="(?:"+Q2+"(?:"+[J2,Th,Eh].join("|")+")"+iw+rw+")*",gk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sw=iw+rw+pk,vk="(?:"+[dk,Th,Eh].join("|")+")"+sw,bk="(?:"+[J2+Cl+"?",Cl,Th,Eh,fk].join("|")+")",xk=RegExp(wh,"g"),wk=RegExp(Cl,"g"),Ch=RegExp(Sh+"(?="+Sh+")|"+bk+sw,"g"),Sk=RegExp([Es+"?"+X2+"+"+tw+"(?="+[q2,Es,"$"].join("|")+")",mk+"+"+nw+"(?="+[q2,Es+ew,"$"].join("|")+")",Es+"?"+ew+"+"+tw,Es+"+"+nw,yk,gk,K2,vk].join("|"),"g"),Tk=RegExp("["+Q2+El+W2+Y2+"]"),Ek=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ck=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pk=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=!0,Je[z]=Je[J]=Je[be]=Je[ne]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Ci]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[J]=Xe[be]=Xe[Qe]=Xe[ne]=Xe[de]=Xe[Pt]=Xe[xn]=Xe[rr]=Xe[hh]=Xe[mh]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Ci]=Xe[qt]=Xe[bn]=Xe[Pi]=Xe[ph]=Xe[gh]=Xe[yh]=Xe[vh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var Ak={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Mk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ok={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_k={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ik=parseFloat,$k=parseInt,ow=typeof ea=="object"&&ea&&ea.Object===Object&&ea,Dk=typeof self=="object"&&self&&self.Object===Object&&self,bt=ow||Dk||Function("return this")(),Ph=t&&!t.nodeType&&t,Ai=Ph&&!0&&e&&!e.nodeType&&e,aw=Ai&&Ai.exports===Ph,Ah=aw&&ow.process,cn=function(){try{var L=Ai&&Ai.require&&Ai.require("util").types;return L||Ah&&Ah.binding&&Ah.binding("util")}catch{}}(),lw=cn&&cn.isArrayBuffer,cw=cn&&cn.isDate,uw=cn&&cn.isMap,fw=cn&&cn.isRegExp,dw=cn&&cn.isSet,hw=cn&&cn.isTypedArray;function Kt(L,G,W){switch(W.length){case 0:return L.call(G);case 1:return L.call(G,W[0]);case 2:return L.call(G,W[0],W[1]);case 3:return L.call(G,W[0],W[1],W[2])}return L.apply(G,W)}function Nk(L,G,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];G(me,ht,W(ht),L)}return me}function un(L,G){for(var W=-1,me=L==null?0:L.length;++W<me&&G(L[W],W,L)!==!1;);return L}function Rk(L,G){for(var W=L==null?0:L.length;W--&&G(L[W],W,L)!==!1;);return L}function mw(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!G(L[W],W,L))return!1;return!0}function Ur(L,G){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];G(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,G){var W=L==null?0:L.length;return!!W&&Cs(L,G,0)>-1}function Mh(L,G,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(G,L[me]))return!0;return!1}function et(L,G){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=G(L[W],W,L);return Pe}function zr(L,G){for(var W=-1,me=G.length,Pe=L.length;++W<me;)L[Pe+W]=G[W];return L}function Oh(L,G,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=G(W,L[Pe],Pe,L);return W}function Lk(L,G,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=G(W,L[Pe],Pe,L);return W}function _h(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(G(L[W],W,L))return!0;return!1}var kk=Ih("length");function jk(L){return L.split("")}function Fk(L){return L.match(HL)||[]}function pw(L,G,W){var me;return W(L,function(Pe,ke,ht){if(G(Pe,ke,ht))return me=ke,!1}),me}function Al(L,G,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(G(L[ke],ke,L))return ke;return-1}function Cs(L,G,W){return G===G?Zk(L,G,W):Al(L,gw,W)}function Vk(L,G,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],G))return Pe;return-1}function gw(L){return L!==L}function yw(L,G){var W=L==null?0:L.length;return W?Dh(L,G)/W:O}function Ih(L){return function(G){return G==null?n:G[L]}}function $h(L){return function(G){return L==null?n:L[G]}}function vw(L,G,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):G(W,ke,ht,Ge)}),W}function Bk(L,G){var W=L.length;for(L.sort(G);W--;)L[W]=L[W].value;return L}function Dh(L,G){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=G(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function Nh(L,G){for(var W=-1,me=Array(L);++W<L;)me[W]=G(W);return me}function Wk(L,G){return et(G,function(W){return[W,L[W]]})}function bw(L){return L&&L.slice(0,Tw(L)+1).replace(xh,"")}function Xt(L){return function(G){return L(G)}}function Rh(L,G){return et(G,function(W){return L[W]})}function Fo(L,G){return L.has(G)}function xw(L,G){for(var W=-1,me=L.length;++W<me&&Cs(G,L[W],0)>-1;);return W}function ww(L,G){for(var W=L.length;W--&&Cs(G,L[W],0)>-1;);return W}function Uk(L,G){for(var W=L.length,me=0;W--;)L[W]===G&&++me;return me}var zk=$h(Ak),Gk=$h(Mk);function Yk(L){return"\\"+_k[L]}function Hk(L,G){return L==null?n:L[G]}function Ps(L){return Tk.test(L)}function qk(L){return Ek.test(L)}function Kk(L){for(var G,W=[];!(G=L.next()).done;)W.push(G.value);return W}function Lh(L){var G=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++G]=[Pe,me]}),W}function Sw(L,G){return function(W){return L(G(W))}}function Gr(L,G){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===G||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=me}),W}function Xk(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=[me,me]}),W}function Zk(L,G,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===G)return me;return-1}function Jk(L,G,W){for(var me=W+1;me--;)if(L[me]===G)return me;return me}function As(L){return Ps(L)?ej(L):kk(L)}function wn(L){return Ps(L)?tj(L):jk(L)}function Tw(L){for(var G=L.length;G--&&UL.test(L.charAt(G)););return G}var Qk=$h(Ok);function ej(L){for(var G=Ch.lastIndex=0;Ch.test(L);)++G;return G}function tj(L){return L.match(Ch)||[]}function nj(L){return L.match(Sk)||[]}var rj=function L(G){G=G==null?bt:Ms.defaults(bt.Object(),G,Ms.pick(bt,Ck));var W=G.Array,me=G.Date,Pe=G.Error,ke=G.Function,ht=G.Math,Ge=G.Object,kh=G.RegExp,ij=G.String,fn=G.TypeError,Ol=W.prototype,sj=ke.prototype,Os=Ge.prototype,_l=G["__core-js_shared__"],Il=sj.toString,ze=Os.hasOwnProperty,oj=0,Ew=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=Os.toString,aj=Il.call(Ge),lj=bt._,cj=kh("^"+Il.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=aw?G.Buffer:n,Yr=G.Symbol,Nl=G.Uint8Array,Cw=Dl?Dl.allocUnsafe:n,Rl=Sw(Ge.getPrototypeOf,Ge),Pw=Ge.create,Aw=Os.propertyIsEnumerable,Ll=Ol.splice,Mw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Mi=Yr?Yr.toStringTag:n,kl=function(){try{var s=Di(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),uj=G.clearTimeout!==bt.clearTimeout&&G.clearTimeout,fj=me&&me.now!==bt.Date.now&&me.now,dj=G.setTimeout!==bt.setTimeout&&G.setTimeout,jl=ht.ceil,Fl=ht.floor,jh=Ge.getOwnPropertySymbols,hj=Dl?Dl.isBuffer:n,Ow=G.isFinite,mj=Ol.join,pj=Sw(Ge.keys,Ge),mt=ht.max,At=ht.min,gj=me.now,yj=G.parseInt,_w=ht.random,vj=Ol.reverse,Fh=Di(G,"DataView"),Bo=Di(G,"Map"),Vh=Di(G,"Promise"),_s=Di(G,"Set"),Wo=Di(G,"WeakMap"),Uo=Di(Ge,"create"),Vl=Wo&&new Wo,Is={},bj=Ni(Fh),xj=Ni(Bo),wj=Ni(Vh),Sj=Ni(_s),Tj=Ni(Wo),Bl=Yr?Yr.prototype:n,zo=Bl?Bl.valueOf:n,Iw=Bl?Bl.toString:n;function C(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return $S(s)}return new dn(s)}var $s=function(){function s(){}return function(l){if(!st(l))return{};if(Pw)return Pw(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Wl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}C.templateSettings={escape:kL,evaluate:jL,interpolate:V2,variable:"",imports:{_:C}},C.prototype=Wl.prototype,C.prototype.constructor=C,dn.prototype=$s(Wl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Ej(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function Cj(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Pj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=jF(0,x,this.__views__),I=M.start,D=M.end,k=D-I,H=g?D:I-1,q=this.__iteratees__,X=q.length,ce=0,ye=At(k,this.__takeCount__);if(!f||!g&&x==k&&ye==k)return tS(s,this.__actions__);var Te=[];e:for(;k--&&ce<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}Re.prototype=$s(Wl.prototype),Re.prototype.constructor=Re;function Oi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Aj(){this.__data__=Uo?Uo(null):{},this.size=0}function Mj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Oj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function _j(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Ij(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Oi.prototype.clear=Aj,Oi.prototype.delete=Mj,Oi.prototype.get=Oj,Oi.prototype.has=_j,Oi.prototype.set=Ij;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function $j(){this.__data__=[],this.size=0}function Dj(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Ll.call(l,f,1),--this.size,!0}function Nj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Rj(s){return Ul(this.__data__,s)>-1}function Lj(s,l){var f=this.__data__,g=Ul(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=$j,ir.prototype.delete=Dj,ir.prototype.get=Nj,ir.prototype.has=Rj,ir.prototype.set=Lj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function kj(){this.size=0,this.__data__={hash:new Oi,map:new(Bo||ir),string:new Oi}}function jj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Fj(s){return tc(this,s).get(s)}function Vj(s){return tc(this,s).has(s)}function Bj(s,l){var f=tc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=kj,sr.prototype.delete=jj,sr.prototype.get=Fj,sr.prototype.has=Vj,sr.prototype.set=Bj;function _i(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Wj(s){return this.__data__.set(s,u),this}function Uj(s){return this.__data__.has(s)}_i.prototype.add=_i.prototype.push=Wj,_i.prototype.has=Uj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function zj(){this.__data__=new ir,this.size=0}function Gj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Yj(s){return this.__data__.get(s)}function Hj(s){return this.__data__.has(s)}function qj(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=zj,Sn.prototype.delete=Gj,Sn.prototype.get=Yj,Sn.prototype.has=Hj,Sn.prototype.set=qj;function $w(s,l){var f=Ae(s),g=!f&&Ri(s),x=!f&&!g&&Zr(s),M=!f&&!g&&!x&&Ls(s),I=f||g||x||M,D=I?Nh(s.length,ij):[],k=D.length;for(var H in s)(l||ze.call(s,H))&&!(I&&(H=="length"||x&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,k)))&&D.push(H);return D}function Dw(s){var l=s.length;return l?s[Zh(0,l-1)]:n}function Kj(s,l){return nc(Vt(s),Ii(l,0,s.length))}function Xj(s){return nc(Vt(s))}function Bh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(ze.call(s,l)&&Tn(g,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function Zj(s,l,f,g){return Hr(s,function(x,M,I){l(g,x,f(x),I)}),g}function Nw(s,l){return s&&zn(l,gt(l),s)}function Jj(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&kl?kl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Wh(s,l){for(var f=-1,g=l.length,x=W(g),M=s==null;++f<g;)x[f]=M?n:Sm(s,l[f]);return x}function Ii(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,g,x,M){var I,D=l&m,k=l&p,H=l&y;if(f&&(I=x?f(s,g,x,M):f(s)),I!==n)return I;if(!st(s))return s;var q=Ae(s);if(q){if(I=VF(s),!D)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return iS(s,D);if(X==dt||X==z||ce&&!x){if(I=k||ce?{}:TS(s),!D)return k?OF(s,Jj(I,s)):MF(s,Nw(I,s))}else{if(!Xe[X])return x?s:{};I=BF(s,X,D)}}M||(M=new Sn);var ye=M.get(s);if(ye)return ye;M.set(s,I),JS(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,M))}):XS(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,f,Ne,s,M))});var Te=H?k?lm:am:k?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,f,Ne,s,M))}),I}function Qj(s){var l=gt(s);return function(f){return Rw(f,s,l)}}function Rw(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ge(s);g--;){var x=f[g],M=l[x],I=s[x];if(I===n&&!(x in s)||!M(I))return!1}return!0}function Lw(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var x=-1,M=Pl,I=!0,D=s.length,k=[],H=l.length;if(!D)return k;f&&(l=et(l,Xt(f))),g?(M=Mh,I=!1):l.length>=i&&(M=Fo,I=!1,l=new _i(l));e:for(;++x<D;){var q=s[x],X=f==null?q:f(q);if(q=g||q!==0?q:0,I&&X===X){for(var ce=H;ce--;)if(l[ce]===X)continue e;k.push(q)}else M(l,X,g)||k.push(q)}return k}var Hr=cS(Un),kw=cS(zh,!0);function eF(s,l){var f=!0;return Hr(s,function(g,x,M){return f=!!l(g,x,M),f}),f}function zl(s,l,f){for(var g=-1,x=s.length;++g<x;){var M=s[g],I=l(M);if(I!=null&&(D===n?I===I&&!Jt(I):f(I,D)))var D=I,k=M}return k}function tF(s,l,f,g){var x=s.length;for(f=Oe(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Oe(g),g<0&&(g+=x),g=f>g?0:eT(g);f<g;)s[f++]=l;return s}function jw(s,l){var f=[];return Hr(s,function(g,x,M){l(g,x,M)&&f.push(g)}),f}function xt(s,l,f,g,x){var M=-1,I=s.length;for(f||(f=UF),x||(x=[]);++M<I;){var D=s[M];l>0&&f(D)?l>1?xt(D,l-1,f,g,x):zr(x,D):g||(x[x.length]=D)}return x}var Uh=uS(),Fw=uS(!0);function Un(s,l){return s&&Uh(s,l,gt)}function zh(s,l){return s&&Fw(s,l,gt)}function Gl(s,l){return Ur(l,function(f){return ur(s[f])})}function $i(s,l){l=Kr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Gn(l[f++])];return f&&f==g?s:n}function Vw(s,l,f){var g=l(s);return Ae(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?wl:Ei:Mi&&Mi in Ge(s)?kF(s):XF(s)}function Gh(s,l){return s>l}function nF(s,l){return s!=null&&ze.call(s,l)}function rF(s,l){return s!=null&&l in Ge(s)}function iF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function Yh(s,l,f){for(var g=f?Mh:Pl,x=s[0].length,M=s.length,I=M,D=W(M),k=1/0,H=[];I--;){var q=s[I];I&&l&&(q=et(q,Xt(l))),k=At(q.length,k),D[I]=!f&&(l||x>=120&&q.length>=120)?new _i(I&&q):n}q=s[0];var X=-1,ce=D[0];e:for(;++X<x&&H.length<k;){var ye=q[X],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ce?Fo(ce,Te):g(H,Te,f))){for(I=M;--I;){var _e=D[I];if(!(_e?Fo(_e,Te):g(s[I],Te,f)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function sF(s,l,f,g){return Un(s,function(x,M,I){l(g,f(x),M,I)}),g}function Ho(s,l,f){l=Kr(l,s),s=AS(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,f)}function Bw(s){return ot(s)&&It(s)==z}function oF(s){return ot(s)&&It(s)==be}function aF(s){return ot(s)&&It(s)==de}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:lF(s,l,f,g,qo,x)}function lF(s,l,f,g,x,M){var I=Ae(s),D=Ae(l),k=I?J:Mt(s),H=D?J:Mt(l);k=k==z?dt:k,H=H==z?dt:H;var q=k==dt,X=H==dt,ce=k==H;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,q=!1}if(ce&&!q)return M||(M=new Sn),I||Ls(s)?xS(s,l,f,g,x,M):RF(s,l,k,f,g,x,M);if(!(f&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(_e,Ee,f,g,M)}}return ce?(M||(M=new Sn),LF(s,l,f,g,x,M)):!1}function cF(s){return ot(s)&&Mt(s)==De}function Hh(s,l,f,g){var x=f.length,M=x,I=!g;if(s==null)return!M;for(s=Ge(s);x--;){var D=f[x];if(I&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++x<M;){D=f[x];var k=D[0],H=s[k],q=D[1];if(I&&D[2]){if(H===n&&!(k in s))return!1}else{var X=new Sn;if(g)var ce=g(H,q,k,s,l,X);if(!(ce===n?qo(q,H,S|b,g,X):ce))return!1}}return!0}function Ww(s){if(!st(s)||GF(s))return!1;var l=ur(s)?cj:QL;return l.test(Ni(s))}function uF(s){return ot(s)&&It(s)==Ci}function fF(s){return ot(s)&&Mt(s)==qt}function dF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function Uw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?Yw(s[0],s[1]):Gw(s):fT(s)}function qh(s){if(!Zo(s))return pj(s);var l=[];for(var f in Ge(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function hF(s){if(!st(s))return KF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function Kh(s,l){return s<l}function zw(s,l){var f=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(x,M,I){g[++f]=l(x,M,I)}),g}function Gw(s){var l=um(s);return l.length==1&&l[0][2]?CS(l[0][0],l[0][1]):function(f){return f===s||Hh(f,s,l)}}function Yw(s,l){return dm(s)&&ES(l)?CS(Gn(s),l):function(f){var g=Sm(f,s);return g===n&&g===l?Tm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Uh(l,function(M,I){if(x||(x=new Sn),st(M))mF(s,l,I,f,Yl,g,x);else{var D=g?g(mm(s,I),M,I+"",s,l,x):n;D===n&&(D=M),Bh(s,I,D)}},Wt)}function mF(s,l,f,g,x,M,I){var D=mm(s,f),k=mm(l,f),H=I.get(k);if(H){Bh(s,f,H);return}var q=M?M(D,k,f+"",s,l,I):n,X=q===n;if(X){var ce=Ae(k),ye=!ce&&Zr(k),Te=!ce&&!ye&&Ls(k);q=k,ce||ye||Te?Ae(D)?q=D:ct(D)?q=Vt(D):ye?(X=!1,q=iS(k,!0)):Te?(X=!1,q=sS(k,!0)):q=[]:Qo(k)||Ri(k)?(q=D,Ri(D)?q=tT(D):(!st(D)||ur(D))&&(q=TS(k))):X=!1}X&&(I.set(k,q),x(q,k,g,M,I),I.delete(k)),Bh(s,f,q)}function Hw(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function qw(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(I){return $i(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=zw(s,function(M,I,D){var k=et(l,function(H){return H(M)});return{criteria:k,index:++g,value:M}});return Bk(x,function(M,I){return AF(M,I,f)})}function pF(s,l){return Kw(s,l,function(f,g){return Tm(s,g)})}function Kw(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var I=l[g],D=$i(s,I);f(D,I)&&Ko(M,Kr(I,s),D)}return M}function gF(s){return function(l){return $i(l,s)}}function Xh(s,l,f,g){var x=g?Vk:Cs,M=-1,I=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++M<I;)for(var k=0,H=l[M],q=f?f(H):H;(k=x(D,q,k,g))>-1;)D!==s&&Ll.call(D,k,1),Ll.call(s,k,1);return s}function Xw(s,l){for(var f=s?l.length:0,g=f-1;f--;){var x=l[f];if(f==g||x!==M){var M=x;cr(x)?Ll.call(s,x,1):em(s,x)}}return s}function Zh(s,l){return s+Fl(_w()*(l-s+1))}function yF(s,l,f,g){for(var x=-1,M=mt(jl((l-s)/(f||1)),0),I=W(M);M--;)I[g?M:++x]=s,s+=f;return I}function Jh(s,l){var f="";if(!s||l<1||l>B)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function Ie(s,l){return pm(PS(s,l,Ut),s+"")}function vF(s){return Dw(ks(s))}function bF(s,l){var f=ks(s);return nc(f,Ii(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var x=-1,M=l.length,I=M-1,D=s;D!=null&&++x<M;){var k=Gn(l[x]),H=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(x!=I){var q=D[k];H=g?g(q,k,D):n,H===n&&(H=st(q)?q:cr(l[x+1])?[]:{})}Go(D,k,H),D=D[k]}return s}var Zw=Vl?function(s,l){return Vl.set(s,l),s}:Ut,xF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Cm(l),writable:!0})}:Ut;function wF(s){return nc(ks(s))}function mn(s,l,f){var g=-1,x=s.length;l<0&&(l=-l>x?0:x+l),f=f>x?x:f,f<0&&(f+=x),x=l>f?0:f-l>>>0,l>>>=0;for(var M=W(x);++g<x;)M[g]=s[g+l];return M}function SF(s,l){var f;return Hr(s,function(g,x,M){return f=l(g,x,M),!f}),!!f}function Hl(s,l,f){var g=0,x=s==null?g:s.length;if(typeof l=="number"&&l===l&&x<=ae){for(;g<x;){var M=g+x>>>1,I=s[M];I!==null&&!Jt(I)&&(f?I<=l:I<l)?g=M+1:x=M}return x}return Qh(s,l,Ut,f)}function Qh(s,l,f,g){var x=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var I=l!==l,D=l===null,k=Jt(l),H=l===n;x<M;){var q=Fl((x+M)/2),X=f(s[q]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else H?Ee=Te&&(g||ce):D?Ee=Te&&ce&&(g||!ye):k?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?x=q+1:M=q}return At(M,K)}function Jw(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var I=s[f],D=l?l(I):I;if(!f||!Tn(D,k)){var k=D;M[x++]=I===0?0:I}}return M}function Qw(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return Iw?Iw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,f){var g=-1,x=Pl,M=s.length,I=!0,D=[],k=D;if(f)I=!1,x=Mh;else if(M>=i){var H=l?null:DF(s);if(H)return Ml(H);I=!1,x=Fo,k=new _i}else k=l?[]:D;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=f||q!==0?q:0,I&&X===X){for(var ce=k.length;ce--;)if(k[ce]===X)continue e;l&&k.push(X),D.push(q)}else x(k,X,f)||(k!==D&&k.push(X),D.push(q))}return D}function em(s,l){return l=Kr(l,s),s=AS(s,l),s==null||delete s[Gn(pn(l))]}function eS(s,l,f,g){return Ko(s,l,f($i(s,l)),g)}function ql(s,l,f,g){for(var x=s.length,M=g?x:-1;(g?M--:++M<x)&&l(s[M],M,s););return f?mn(s,g?0:M,g?M+1:x):mn(s,g?M+1:0,g?x:M)}function tS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Oh(l,function(g,x){return x.func.apply(x.thisArg,zr([g],x.args))},f)}function tm(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var x=-1,M=W(g);++x<g;)for(var I=s[x],D=-1;++D<g;)D!=x&&(M[x]=Yo(M[x]||I,s[D],l,f));return qr(xt(M,1),l,f)}function nS(s,l,f){for(var g=-1,x=s.length,M=l.length,I={};++g<x;){var D=g<M?l[g]:n;f(I,s[g],D)}return I}function nm(s){return ct(s)?s:[]}function rm(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Ae(s)?s:dm(s,l)?[s]:IS(Be(s))}var TF=Ie;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var rS=uj||function(s){return bt.clearTimeout(s)};function iS(s,l){if(l)return s.slice();var f=s.length,g=Cw?Cw(f):new s.constructor(f);return s.copy(g),g}function im(s){var l=new s.constructor(s.byteLength);return new Nl(l).set(new Nl(s)),l}function EF(s,l){var f=l?im(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function CF(s){var l=new s.constructor(s.source,B2.exec(s));return l.lastIndex=s.lastIndex,l}function PF(s){return zo?Ge(zo.call(s)):{}}function sS(s,l){var f=l?im(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function oS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,M=Jt(s),I=l!==n,D=l===null,k=l===l,H=Jt(l);if(!D&&!H&&!M&&s>l||M&&I&&k&&!D&&!H||g&&I&&k||!f&&k||!x)return 1;if(!g&&!M&&!H&&s<l||H&&f&&x&&!g&&!M||D&&f&&x||!I&&x||!k)return-1}return 0}function AF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,I=x.length,D=f.length;++g<I;){var k=oS(x[g],M[g]);if(k){if(g>=D)return k;var H=f[g];return k*(H=="desc"?-1:1)}}return s.index-l.index}function aS(s,l,f,g){for(var x=-1,M=s.length,I=f.length,D=-1,k=l.length,H=mt(M-I,0),q=W(k+H),X=!g;++D<k;)q[D]=l[D];for(;++x<I;)(X||x<M)&&(q[f[x]]=s[x]);for(;H--;)q[D++]=s[x++];return q}function lS(s,l,f,g){for(var x=-1,M=s.length,I=-1,D=f.length,k=-1,H=l.length,q=mt(M-D,0),X=W(q+H),ce=!g;++x<q;)X[x]=s[x];for(var ye=x;++k<H;)X[ye+k]=l[k];for(;++I<D;)(ce||x<M)&&(X[ye+f[I]]=s[x++]);return X}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function zn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,I=l.length;++M<I;){var D=l[M],k=g?g(f[D],s[D],D,f,s):n;k===n&&(k=s[D]),x?or(f,D,k):Go(f,D,k)}return f}function MF(s,l){return zn(s,fm(s),l)}function OF(s,l){return zn(s,wS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?Nk:Zj,M=l?l():{};return x(f,s,xe(g,2),M)}}function Ds(s){return Ie(function(l,f){var g=-1,x=f.length,M=x>1?f[x-1]:n,I=x>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(x--,M):n,I&&$t(f[0],f[1],I)&&(M=x<3?n:M,x=1),l=Ge(l);++g<x;){var D=f[g];D&&s(l,D,g,M)}return l})}function cS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var x=f.length,M=l?x:-1,I=Ge(f);(l?M--:++M<x)&&g(I[M],M,I)!==!1;);return f}}function uS(s){return function(l,f,g){for(var x=-1,M=Ge(l),I=g(l),D=I.length;D--;){var k=I[s?D:++x];if(f(M[k],k,M)===!1)break}return l}}function _F(s,l,f){var g=l&T,x=Xo(s);function M(){var I=this&&this!==bt&&this instanceof M?x:s;return I.apply(g?f:this,arguments)}return M}function fS(s){return function(l){l=Be(l);var f=Ps(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Xr(f,1).join(""):l.slice(1);return g[s]()+x}}function Ns(s){return function(l){return Oh(cT(lT(l).replace(xk,"")),s,"")}}function Xo(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=$s(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function IF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,I=W(M),D=M,k=Rs(x);D--;)I[D]=arguments[D];var H=M<3&&I[0]!==k&&I[M-1]!==k?[]:Gr(I,k);if(M-=H.length,M<f)return gS(s,l,Xl,x.placeholder,n,I,H,n,n,f-M);var q=this&&this!==bt&&this instanceof x?g:s;return Kt(q,this,I)}return x}function dS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=xe(f,3);l=gt(l),f=function(D){return M(x[D],D,x)}}var I=s(l,f,g);return I>-1?x[M?l[I]:I]:n}}function hS(s){return lr(function(l){var f=l.length,g=f,x=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(x&&!I&&ec(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:f;++g<f;){M=l[g];var D=ec(M),k=D=="wrapper"?cm(M):n;k&&hm(k[0])&&k[1]==(j|E|P|F)&&!k[4].length&&k[9]==1?I=I[ec(k[0])].apply(I,k[3]):I=M.length==1&&hm(M)?I[D]():I.thru(M)}return function(){var H=arguments,q=H[0];if(I&&H.length==1&&Ae(q))return I.plant(q).value();for(var X=0,ce=f?l[X].apply(this,H):q;++X<f;)ce=l[X].call(this,ce);return ce}})}function Xl(s,l,f,g,x,M,I,D,k,H){var q=l&j,X=l&T,ce=l&w,ye=l&(E|$),Te=l&U,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=W(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Rs(Ee),en=Uk(Le,Dt);if(g&&(Le=aS(Le,g,x,ye)),M&&(Le=lS(Le,M,I,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return gS(s,l,Xl,Ee.placeholder,f,Le,ut,D,k,H-Ne)}var En=X?f:this,dr=ce?En[s]:s;return Ne=Le.length,D?Le=ZF(Le,D):Te&&Ne>1&&Le.reverse(),q&&k<Ne&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(En,Le)}return Ee}function mS(s,l){return function(f,g){return sF(f,s,l(g),{})}}function Zl(s,l){return function(f,g){var x;if(f===n&&g===n)return l;if(f!==n&&(x=f),g!==n){if(x===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=Qw(f),g=Qw(g)),x=s(f,g)}return x}}function sm(s){return lr(function(l){return l=et(l,Xt(xe())),Ie(function(f){var g=this;return s(l,function(x){return Kt(x,g,f)})})})}function Jl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Jh(l,s):l;var g=Jh(l,jl(s/As(l)));return Ps(l)?Xr(wn(g),0,s).join(""):g.slice(0,s)}function $F(s,l,f,g){var x=l&T,M=Xo(s);function I(){for(var D=-1,k=arguments.length,H=-1,q=g.length,X=W(q+k),ce=this&&this!==bt&&this instanceof I?M:s;++H<q;)X[H]=g[H];for(;k--;)X[H++]=arguments[++D];return Kt(ce,x?f:this,X)}return I}function pS(s){return function(l,f,g){return g&&typeof g!="number"&&$t(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),yF(l,f,g,s)}}function Ql(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function gS(s,l,f,g,x,M,I,D,k,H){var q=l&E,X=q?I:n,ce=q?n:I,ye=q?M:n,Te=q?n:M;l|=q?P:N,l&=~(q?N:P),l&A||(l&=-4);var _e=[s,l,x,ye,X,Te,ce,D,k,H],Ee=f.apply(n,_e);return hm(s)&&MS(Ee,_e),Ee.placeholder=g,OS(Ee,s,l)}function om(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Oe(g),292),g&&Ow(f)){var x=(Be(f)+"e").split("e"),M=l(x[0]+"e"+(+x[1]+g));return x=(Be(M)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return l(f)}}var DF=_s&&1/Ml(new _s([,-0]))[1]==V?function(s){return new _s(s)}:Mm;function yS(s){return function(l){var f=Mt(l);return f==De?Lh(l):f==qt?Xk(l):Wk(l,s(l))}}function ar(s,l,f,g,x,M,I,D){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=x=n),I=I===n?I:mt(Oe(I),0),D=D===n?D:Oe(D),H-=x?x.length:0,l&N){var q=g,X=x;g=x=n}var ce=k?n:cm(s),ye=[s,l,f,g,x,q,X,M,I,D];if(ce&&qF(ye,ce),s=ye[0],l=ye[1],f=ye[2],g=ye[3],x=ye[4],D=ye[9]=ye[9]===n?k?0:s.length:mt(ye[9]-H,0),!D&&l&(E|$)&&(l&=-25),!l||l==T)var Te=_F(s,l,f);else l==E||l==$?Te=IF(s,l,D):(l==P||l==(T|P))&&!x.length?Te=$F(s,l,f,g):Te=Xl.apply(n,ye);var _e=ce?Zw:MS;return OS(_e(Te,ye),s,l)}function vS(s,l,f,g){return s===n||Tn(s,Os[f])&&!ze.call(g,f)?l:s}function bS(s,l,f,g,x,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,bS,M),M.delete(l)),s}function NF(s){return Qo(s)?n:s}function xS(s,l,f,g,x,M){var I=f&S,D=s.length,k=l.length;if(D!=k&&!(I&&k>D))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ce=!0,ye=f&b?new _i:n;for(M.set(s,l),M.set(l,s);++X<D;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!_h(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||x(Te,Ne,f,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||x(Te,_e,f,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function RF(s,l,f,g,x,M,I){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!M(new Nl(s),new Nl(l)));case ne:case de:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Ci:case bn:return s==l+"";case De:var D=Lh;case qt:var k=g&S;if(D||(D=Ml),s.size!=l.size&&!k)return!1;var H=I.get(s);if(H)return H==l;g|=b,I.set(s,l);var q=xS(D(s),D(l),g,x,M,I);return I.delete(s),q;case Pi:if(zo)return zo.call(s)==zo.call(l)}return!1}function LF(s,l,f,g,x,M){var I=f&S,D=am(s),k=D.length,H=am(l),q=H.length;if(k!=q&&!I)return!1;for(var X=k;X--;){var ce=D[X];if(!(I?ce in l:ze.call(l,ce)))return!1}var ye=M.get(s),Te=M.get(l);if(ye&&Te)return ye==l&&Te==s;var _e=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<k;){ce=D[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Ne,ce,l,s,M):g(Ne,Le,ce,s,l,M);if(!(Qt===n?Ne===Le||x(Ne,Le,f,g,M):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!Ee){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return pm(PS(s,n,RS),s+"")}function am(s){return Vw(s,gt,fm)}function lm(s){return Vw(s,Wt,wS)}var cm=Vl?function(s){return Vl.get(s)}:Mm;function ec(s){for(var l=s.name+"",f=Is[l],g=ze.call(Is,l)?f.length:0;g--;){var x=f[g],M=x.func;if(M==null||M==s)return x.name}return l}function Rs(s){var l=ze.call(C,"placeholder")?C:s;return l.placeholder}function xe(){var s=C.iteratee||Pm;return s=s===Pm?Uw:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return zF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function um(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,ES(x)]}return l}function Di(s,l){var f=Hk(s,l);return Ww(f)?f:n}function kF(s){var l=ze.call(s,Mi),f=s[Mi];try{s[Mi]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Mi]=f:delete s[Mi]),x}var fm=jh?function(s){return s==null?[]:(s=Ge(s),Ur(jh(s),function(l){return Aw.call(s,l)}))}:Om,wS=jh?function(s){for(var l=[];s;)zr(l,fm(s)),s=Rl(s);return l}:Om,Mt=It;(Fh&&Mt(new Fh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Vh&&Mt(Vh.resolve())!=bl||_s&&Mt(new _s)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Ni(f):"";if(g)switch(g){case bj:return Qe;case xj:return De;case wj:return bl;case Sj:return qt;case Tj:return Wr}return l});function jF(s,l,f){for(var g=-1,x=f.length;++g<x;){var M=f[g],I=M.size;switch(M.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function FF(s){var l=s.match(GL);return l?l[1].split(YL):[]}function SS(s,l,f){l=Kr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var I=Gn(l[g]);if(!(M=s!=null&&f(s,I)))break;s=s[I]}return M||++g!=x?M:(x=s==null?0:s.length,!!x&&lc(x)&&cr(I,x)&&(Ae(s)||Ri(s)))}function VF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function TS(s){return typeof s.constructor=="function"&&!Zo(s)?$s(Rl(s)):{}}function BF(s,l,f){var g=s.constructor;switch(l){case be:return im(s);case ne:case de:return new g(+s);case Qe:return EF(s,f);case Pt:case xn:case rr:case hh:case mh:case ph:case gh:case yh:case vh:return sS(s,f);case De:return new g;case ft:case bn:return new g(s);case Ci:return CF(s);case qt:return new g;case Pi:return PF(s)}}function WF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(zL,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function BF(s){return Ae(s)||Ri(s)||!!(Mw&&s&&s[Mw])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&QL.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?Tn(f[l],s):!1}function dm(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:jL.test(s)||!kL.test(s)||l!=null&&s in Ge(l)}function WF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function hm(s){var l=ec(s),f=P[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var g=cm(f);return!!g&&s===g[0]}function UF(s){return!!Ew&&Ew in s}var zF=_l?ur:_m;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Os;return s===f}function ES(s){return s===s&&!st(s)}function CS(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function GF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function YF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|j),_=g==j&&f==C||g==j&&f==F&&s[7].length<=l[8]||g==(j|F)&&l[7].length<=l[8]&&f==C;if(!(M||_))return s;g&T&&(s[2]=l[2],x|=f&T?0:E);var N=l[3];if(N){var k=s[3];s[3]=k?aS(k,N,l[4]):N,s[4]=k?Gr(s[3],h):l[4]}return N=l[5],N&&(k=s[5],s[5]=k?lS(k,N,l[6]):N,s[6]=k?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&j&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function HF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function qF(s){return $l.call(s)}function PS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,x=-1,M=mt(g.length-l,0),_=W(M);++x<M;)_[x]=g[l+x];x=-1;for(var N=W(l+1);++x<l;)N[x]=g[x];return N[l]=f(_),Kt(s,this,N)}}function AS(s,l){return l.length<2?s:$i(s,mn(l,0,-1))}function KF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var M=l[g];s[g]=cr(M,f)?x[M]:n}return s}function mm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var MS=_S(Zw),Jo=uj||function(s,l){return bt.setTimeout(s,l)},pm=_S(vF);function OS(s,l,f){var g=l+"";return pm(s,VF(g,XF(kF(g),f)))}function _S(s){var l=0,f=0;return function(){var g=mj(),x=ge-(g-f);if(f=g,x>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function nc(s,l){var f=-1,g=s.length,x=g-1;for(l=l===n?g:l;++f<l;){var M=Zh(f,x),_=s[M];s[M]=s[f],s[f]=_}return s.length=l,s}var IS=GF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(FL,function(f,g,x,M){l.push(x?M.replace(HL,"$1"):g||f)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ni(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function XF(s,l){return un(le,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function $S(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function ZF(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var x=0,M=0,_=W(jl(g/l));x<g;)_[M++]=mn(s,x,x+=l);return _}function JF(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var M=s[l];M&&(x[g++]=M)}return x}function QF(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Ae(f)?Vt(f):[f],xt(l,1))}var eV=Ie(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),tV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),nV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function rV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function iV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function sV(s,l){return s&&s.length?ql(s,xe(l,3),!0,!0):[]}function oV(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function aV(s,l,f,g){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&$t(s,l,f)&&(f=0,g=x),Qj(s,l,f,g)):[]}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Al(s,xe(l,3),x)}function NS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Oe(f),x=f<0?mt(g+x,0):At(x,g-1)),Al(s,xe(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function lV(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function cV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function uV(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var x=s[l];g[x[0]]=x[1]}return g}function LS(s){return s&&s.length?s[0]:n}function fV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Cs(s,l,x)}function dV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var hV=Ie(function(s){var l=et(s,nm);return l.length&&l[0]===s[0]?Yh(l):[]}),mV=Ie(function(s){var l=pn(s),f=et(s,nm);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?Yh(f,xe(l,2)):[]}),pV=Ie(function(s){var l=pn(s),f=et(s,nm);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?Yh(f,n,l):[]});function gV(s,l){return s==null?"":dj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function yV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Oe(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?Xk(s,l,x):Al(s,gw,x,!0)}function vV(s,l){return s&&s.length?Hw(s,Oe(l)):n}var bV=Ie(kS);function kS(s,l){return s&&s.length&&l&&l.length?Xh(s,l):s}function xV(s,l,f){return s&&s.length&&l&&l.length?Xh(s,l,xe(f,2)):s}function wV(s,l,f){return s&&s.length&&l&&l.length?Xh(s,l,n,f):s}var SV=lr(function(s,l){var f=s==null?0:s.length,g=Wh(s,l);return Xw(s,et(l,function(x){return cr(x,f)?+x:x}).sort(oS)),g});function TV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=xe(l,3);++g<M;){var _=s[g];l(_,g,s)&&(f.push(_),x.push(g))}return Xw(s,x),f}function gm(s){return s==null?s:gj.call(s)}function EV(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&$t(s,l,f)?(l=0,f=g):(l=l==null?0:Oe(l),f=f===n?g:Oe(f)),mn(s,l,f)):[]}function CV(s,l){return Hl(s,l)}function PV(s,l,f){return Qh(s,l,xe(f,2))}function AV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l);if(g<f&&Tn(s[g],l))return g}return-1}function MV(s,l){return Hl(s,l,!0)}function OV(s,l,f){return Qh(s,l,xe(f,2),!0)}function _V(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l,!0)-1;if(Tn(s[g],l))return g}return-1}function IV(s){return s&&s.length?Jw(s):[]}function $V(s,l){return s&&s.length?Jw(s,xe(l,2)):[]}function DV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function NV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function RV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function LV(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function kV(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var jV=Ie(function(s){return qr(xt(s,1,ct,!0))}),FV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(xt(s,1,ct,!0),xe(l,2))}),VV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(xt(s,1,ct,!0),n,l)});function BV(s){return s&&s.length?qr(s):[]}function WV(s,l){return s&&s.length?qr(s,xe(l,2)):[]}function UV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function ym(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Nh(l,function(f){return et(s,Ih(f))})}function jS(s,l){if(!(s&&s.length))return[];var f=ym(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var zV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),GV=Ie(function(s){return tm(Ur(s,ct))}),YV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),tm(Ur(s,ct),xe(l,2))}),HV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,tm(Ur(s,ct),n,l)}),qV=Ie(ym);function KV(s,l){return nS(s||[],l||[],Go)}function XV(s,l){return nS(s||[],l||[],Ko)}var ZV=Ie(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,jS(s,f)});function FS(s){var l=P(s);return l.__chain__=!0,l}function JV(s,l){return l(s),s}function rc(s,l){return l(s)}var QV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Wh(M,s)};return l>1||this.__actions__.length||!(g instanceof Re)||!cr(f)?this.thru(x):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:rc,args:[x],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function e8(){return FS(this)}function t8(){return new dn(this.value(),this.__chain__)}function n8(){this.__values__===n&&(this.__values__=QS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function r8(){return this}function i8(s){for(var l,f=this;f instanceof Wl;){var g=$S(f);g.__index__=0,g.__values__=n,l?x.__wrapped__=g:l=g;var x=g;f=f.__wrapped__}return x.__wrapped__=s,l}function s8(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[gm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(gm)}function o8(){return tS(this.__wrapped__,this.__actions__)}var a8=Kl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function l8(s,l,f){var g=Ae(s)?mw:Jj;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function c8(s,l){var f=Ae(s)?Ur:jw;return f(s,xe(l,3))}var u8=dS(DS),f8=dS(NS);function d8(s,l){return xt(ic(s,l),1)}function h8(s,l){return xt(ic(s,l),V)}function m8(s,l,f){return f=f===n?1:Oe(f),xt(ic(s,l),f)}function VS(s,l){var f=Ae(s)?un:Hr;return f(s,xe(l,3))}function BS(s,l){var f=Ae(s)?Dk:kw;return f(s,xe(l,3))}var p8=Kl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function g8(s,l,f,g){s=Bt(s)?s:ks(s),f=f&&!g?Oe(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Cs(s,l,f)>-1}var y8=Ie(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(_){M[++g]=x?Kt(l,_,f):Ho(_,l,f)}),M}),v8=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:zw;return f(s,xe(l,3))}function b8(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),qw(s,l,f))}var x8=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function w8(s,l,f){var g=Ae(s)?Oh:vw,x=arguments.length<3;return g(s,xe(l,4),f,x,Hr)}function S8(s,l,f){var g=Ae(s)?Nk:vw,x=arguments.length<3;return g(s,xe(l,4),f,x,kw)}function T8(s,l){var f=Ae(s)?Ur:jw;return f(s,ac(xe(l,3)))}function E8(s){var l=Ae(s)?Dw:gF;return l(s)}function C8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Oe(l);var g=Ae(s)?Hj:yF;return g(s,l)}function P8(s){var l=Ae(s)?qj:bF;return l(s)}function A8(s){if(s==null)return 0;if(Bt(s))return cc(s)?As(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:qh(s).length}function M8(s,l,f){var g=Ae(s)?_h:xF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var O8=Ie(function(s,l){if(s==null)return[];var f=l.length;return f>1&&$t(s,l[0],l[1])?l=[]:f>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),qw(s,xt(l,1),[])}),sc=cj||function(){return bt.Date.now()};function _8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function WS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function US(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var vm=Ie(function(s,l,f){var g=T;if(f.length){var x=Gr(f,Rs(vm));g|=A}return ar(s,g,l,f,x)}),zS=Ie(function(s,l,f){var g=T|w;if(f.length){var x=Gr(f,Rs(zS));g|=A}return ar(l,g,s,f,x)});function GS(s,l,f){l=f?n:l;var g=ar(s,C,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=YS.placeholder,g}function HS(s,l,f){var g,x,M,_,N,k,H=0,q=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(q=!!f.leading,X="maxWait"in f,M=X?mt(gn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var En=g,dr=x;return g=x=n,H=ut,_=s.apply(dr,En),_}function Te(ut){return H=ut,N=Jo(Ne,l),q?ye(ut):_}function _e(ut){var En=ut-k,dr=ut-H,dT=l-En;return X?At(dT,M-dr):dT}function Ee(ut){var En=ut-k,dr=ut-H;return k===n||En>=l||En<0||X&&dr>=M}function Ne(){var ut=sc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ce&&g?ye(ut):(g=x=n,_)}function Qt(){N!==n&&rS(N),H=0,g=k=x=N=n}function Dt(){return N===n?_:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,k=ut,En){if(N===n)return Te(k);if(X)return rS(N),N=Jo(Ne,l),ye(k)}return N===n&&(N=Jo(Ne,l)),_}return en.cancel=Qt,en.flush=Dt,en}var I8=Ie(function(s,l){return Lw(s,1,l)}),$8=Ie(function(s,l,f){return Lw(s,gn(l)||0,f)});function D8(s){return ar(s,U)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],M=f.cache;if(M.has(x))return M.get(x);var _=s.apply(this,g);return f.cache=M.set(x,_)||M,_};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function N8(s){return US(2,s)}var R8=wF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return Ie(function(g){for(var x=-1,M=At(g.length,f);++x<M;)g[x]=l[x].call(this,g[x]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var f=Gr(l,Rs(bm));return ar(s,A,n,l,f)}),qS=Ie(function(s,l){var f=Gr(l,Rs(qS));return ar(s,D,n,l,f)}),L8=lr(function(s,l){return ar(s,F,n,n,n,l)});function k8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function j8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(f){var g=f[l],x=Xr(f,0,l);return g&&zr(x,g),Kt(s,this,x)})}function F8(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),HS(s,l,{leading:g,maxWait:l,trailing:x})}function V8(s){return WS(s,1)}function B8(s,l){return bm(rm(l),s)}function W8(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function U8(s){return hn(s,y)}function z8(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function G8(s){return hn(s,m|y)}function Y8(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function H8(s,l){return l==null||Rw(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var q8=Ql(Gh),K8=Ql(function(s,l){return s>=l}),Ri=Bw(function(){return arguments}())?Bw:function(s){return ot(s)&&ze.call(s,"callee")&&!Aw.call(s,"callee")},Ae=W.isArray,X8=lw?Xt(lw):iF;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function Z8(s){return s===!0||s===!1||ot(s)&&It(s)==ne}var Zr=fj||_m,J8=cw?Xt(cw):sF;function Q8(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function eB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Ls(s)||Ri(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!qh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function tB(s,l){return qo(s,l)}function nB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function xm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function rB(s){return typeof s=="number"&&Ow(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==xl}function KS(s){return typeof s=="number"&&s==Oe(s)}function lc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=B}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var XS=uw?Xt(uw):aF;function iB(s,l){return s===l||Hh(s,l,um(l))}function sB(s,l,f){return f=typeof f=="function"?f:n,Hh(s,l,um(l),f)}function oB(s){return ZS(s)&&s!=+s}function aB(s){if(zF(s))throw new Pe(o);return Ww(s)}function lB(s){return s===null}function cB(s){return s==null}function ZS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Rl(s);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==sj}var wm=fw?Xt(fw):lF;function uB(s){return KS(s)&&s>=-9007199254740991&&s<=B}var JS=dw?Xt(dw):cF;function cc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Pi}var Ls=hw?Xt(hw):uF;function fB(s){return s===n}function dB(s){return ot(s)&&Mt(s)==Wr}function hB(s){return ot(s)&&It(s)==Sl}var mB=Ql(Kh),pB=Ql(function(s,l){return s<=l});function QS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return Hk(s[Vo]());var l=Mt(s),f=l==De?Lh:l==qt?Ml:ks;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===V||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function eT(s){return s?Ii(Oe(s),0,R):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return O;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=bw(s);var f=XL.test(s);return f||JL.test(s)?_k(s.slice(2),f?2:8):KL.test(s)?O:+s}function tT(s){return zn(s,Wt(s))}function gB(s){return s?Ii(Oe(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var yB=Ds(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),nT=Ds(function(s,l){zn(l,Wt(l),s)}),uc=Ds(function(s,l,f,g){zn(l,Wt(l),s,g)}),vB=Ds(function(s,l,f,g){zn(l,gt(l),s,g)}),bB=lr(Wh);function xB(s,l){var f=$s(s);return l==null?f:Nw(f,l)}var wB=Ie(function(s,l){s=Ge(s);var f=-1,g=l.length,x=g>2?l[2]:n;for(x&&$t(l[0],l[1],x)&&(g=1);++f<g;)for(var M=l[f],_=Wt(M),N=-1,k=_.length;++N<k;){var H=_[N],q=s[H];(q===n||Tn(q,Os[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),SB=Ie(function(s){return s.push(n,bS),Kt(rT,n,s)});function TB(s,l){return pw(s,xe(l,3),Un)}function EB(s,l){return pw(s,xe(l,3),zh)}function CB(s,l){return s==null?s:Uh(s,xe(l,3),Wt)}function PB(s,l){return s==null?s:Fw(s,xe(l,3),Wt)}function AB(s,l){return s&&Un(s,xe(l,3))}function MB(s,l){return s&&zh(s,xe(l,3))}function OB(s){return s==null?[]:Gl(s,gt(s))}function _B(s){return s==null?[]:Gl(s,Wt(s))}function Sm(s,l,f){var g=s==null?n:$i(s,l);return g===n?f:g}function IB(s,l){return s!=null&&SS(s,l,eF)}function Tm(s,l){return s!=null&&SS(s,l,tF)}var $B=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Cm(Ut)),DB=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},xe),NB=Ie(Ho);function gt(s){return Bt(s)?$w(s):qh(s)}function Wt(s){return Bt(s)?$w(s,!0):fF(s)}function RB(s,l){var f={};return l=xe(l,3),Un(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function LB(s,l){var f={};return l=xe(l,3),Un(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var kB=Ds(function(s,l,f){Yl(s,l,f)}),rT=Ds(function(s,l,f,g){Yl(s,l,f,g)}),jB=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,lm(s),f),g&&(f=hn(f,m|p|y,$F));for(var x=l.length;x--;)em(f,l[x]);return f});function FB(s,l){return iT(s,ac(xe(l)))}var VB=lr(function(s,l){return s==null?{}:hF(s,l)});function iT(s,l){if(s==null)return{};var f=et(lm(s),function(g){return[g]});return l=xe(l),Kw(s,f,function(g,x){return l(g,x[0])})}function BB(s,l,f){l=Kr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function WB(s,l,f){return s==null?s:Ko(s,l,f)}function UB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var sT=yS(gt),oT=yS(Wt);function zB(s,l,f){var g=Ae(s),x=g||Zr(s)||Ls(s);if(l=xe(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?$s(Rl(s)):{}:f={}}return(x?un:Un)(s,function(_,N,k){return l(f,_,N,k)}),f}function GB(s,l){return s==null?!0:em(s,l)}function YB(s,l,f){return s==null?s:eS(s,l,rm(f))}function HB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:eS(s,l,rm(f),g)}function ks(s){return s==null?[]:Rh(s,gt(s))}function qB(s){return s==null?[]:Rh(s,Wt(s))}function KB(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),Ii(gn(s),l,f)}function XB(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),nF(s,l,f)}function ZB(s,l,f){if(f&&typeof f!="boolean"&&$t(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var g=s;s=l,l=g}if(f||s%1||l%1){var x=_w();return At(s+x*(l-s+Ok("1e-"+((x+"").length-1))),l)}return Zh(s,l)}var JB=Ns(function(s,l,f){return l=l.toLowerCase(),s+(f?aT(l):l)});function aT(s){return Em(Be(s).toLowerCase())}function lT(s){return s=Be(s),s&&s.replace(ek,Wk).replace(bk,"")}function QB(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:Ii(Oe(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function e9(s){return s=Be(s),s&&NL.test(s)?s.replace(F2,Uk):s}function t9(s){return s=Be(s),s&&VL.test(s)?s.replace(bh,"\\$&"):s}var n9=Ns(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),r9=Ns(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),i9=fS("toLowerCase");function s9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function o9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;return l&&g<l?s+Jl(l-g,f):s}function a9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;return l&&g<l?Jl(l-g,f)+s:s}function l9(s,l,f){return f||l==null?l=0:l&&(l=+l),pj(Be(s).replace(xh,""),l||0)}function c9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Oe(l),Jh(Be(s),l)}function u9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var f9=Ns(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function d9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?R:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!wm(l))&&(l=Zt(l),!l&&Ps(s))?Xr(wn(s),0,f):s.split(l,f)):[]}var h9=Ns(function(s,l,f){return s+(f?" ":"")+Em(l)});function m9(s,l,f){return s=Be(s),f=f==null?0:Ii(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function p9(s,l,f){var g=P.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,vS);var x=uc({},l.imports,g.imports,vS),M=gt(x),_=Rh(x,M),N,k,H=0,q=l.interpolate||Tl,X="__p += '",ce=kh((l.escape||Tl).source+"|"+q.source+"|"+(q===V2?qL:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ek+"]")+`
635
- `;s.replace(ce,function(Ee,Ne,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(H,en).replace(tk,zk),Ne&&(N=!0,X+=`' +
634
+ `)}function UF(s){return Ae(s)||Ri(s)||!!(Mw&&s&&s[Mw])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&tk.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?Tn(f[l],s):!1}function dm(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:VL.test(s)||!FL.test(s)||l!=null&&s in Ge(l)}function zF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function hm(s){var l=ec(s),f=C[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var g=cm(f);return!!g&&s===g[0]}function GF(s){return!!Ew&&Ew in s}var YF=_l?ur:_m;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Os;return s===f}function ES(s){return s===s&&!st(s)}function CS(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function HF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function qF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|j),I=g==j&&f==E||g==j&&f==F&&s[7].length<=l[8]||g==(j|F)&&l[7].length<=l[8]&&f==E;if(!(M||I))return s;g&T&&(s[2]=l[2],x|=f&T?0:A);var D=l[3];if(D){var k=s[3];s[3]=k?aS(k,D,l[4]):D,s[4]=k?Gr(s[3],h):l[4]}return D=l[5],D&&(k=s[5],s[5]=k?lS(k,D,l[6]):D,s[6]=k?Gr(s[5],h):l[6]),D=l[7],D&&(s[7]=D),g&j&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function KF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function XF(s){return $l.call(s)}function PS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,x=-1,M=mt(g.length-l,0),I=W(M);++x<M;)I[x]=g[l+x];x=-1;for(var D=W(l+1);++x<l;)D[x]=g[x];return D[l]=f(I),Kt(s,this,D)}}function AS(s,l){return l.length<2?s:$i(s,mn(l,0,-1))}function ZF(s,l){for(var f=s.length,g=At(l.length,f),x=Vt(s);g--;){var M=l[g];s[g]=cr(M,f)?x[M]:n}return s}function mm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var MS=_S(Zw),Jo=dj||function(s,l){return bt.setTimeout(s,l)},pm=_S(xF);function OS(s,l,f){var g=l+"";return pm(s,WF(g,JF(FF(g),f)))}function _S(s){var l=0,f=0;return function(){var g=gj(),x=ge-(g-f);if(f=g,x>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function nc(s,l){var f=-1,g=s.length,x=g-1;for(l=l===n?g:l;++f<l;){var M=Zh(f,x),I=s[M];s[M]=s[f],s[f]=I}return s.length=l,s}var IS=HF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(BL,function(f,g,x,M){l.push(x?M.replace(KL,"$1"):g||f)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ni(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function JF(s,l){return un(le,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function $S(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function QF(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var x=0,M=0,I=W(jl(g/l));x<g;)I[M++]=mn(s,x,x+=l);return I}function eV(s){for(var l=-1,f=s==null?0:s.length,g=0,x=[];++l<f;){var M=s[l];M&&(x[g++]=M)}return x}function tV(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Ae(f)?Vt(f):[f],xt(l,1))}var nV=Ie(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),rV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),iV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function sV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function oV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function aV(s,l){return s&&s.length?ql(s,xe(l,3),!0,!0):[]}function lV(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function cV(s,l,f,g){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&$t(s,l,f)&&(f=0,g=x),tF(s,l,f,g)):[]}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Al(s,xe(l,3),x)}function NS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Oe(f),x=f<0?mt(g+x,0):At(x,g-1)),Al(s,xe(l,3),x,!0)}function RS(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function uV(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function fV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function dV(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var x=s[l];g[x[0]]=x[1]}return g}function LS(s){return s&&s.length?s[0]:n}function hV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(g+x,0)),Cs(s,l,x)}function mV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var pV=Ie(function(s){var l=et(s,nm);return l.length&&l[0]===s[0]?Yh(l):[]}),gV=Ie(function(s){var l=pn(s),f=et(s,nm);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?Yh(f,xe(l,2)):[]}),yV=Ie(function(s){var l=pn(s),f=et(s,nm);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?Yh(f,n,l):[]});function vV(s,l){return s==null?"":mj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function bV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Oe(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?Jk(s,l,x):Al(s,gw,x,!0)}function xV(s,l){return s&&s.length?Hw(s,Oe(l)):n}var wV=Ie(kS);function kS(s,l){return s&&s.length&&l&&l.length?Xh(s,l):s}function SV(s,l,f){return s&&s.length&&l&&l.length?Xh(s,l,xe(f,2)):s}function TV(s,l,f){return s&&s.length&&l&&l.length?Xh(s,l,n,f):s}var EV=lr(function(s,l){var f=s==null?0:s.length,g=Wh(s,l);return Xw(s,et(l,function(x){return cr(x,f)?+x:x}).sort(oS)),g});function CV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,x=[],M=s.length;for(l=xe(l,3);++g<M;){var I=s[g];l(I,g,s)&&(f.push(I),x.push(g))}return Xw(s,x),f}function gm(s){return s==null?s:vj.call(s)}function PV(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&$t(s,l,f)?(l=0,f=g):(l=l==null?0:Oe(l),f=f===n?g:Oe(f)),mn(s,l,f)):[]}function AV(s,l){return Hl(s,l)}function MV(s,l,f){return Qh(s,l,xe(f,2))}function OV(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l);if(g<f&&Tn(s[g],l))return g}return-1}function _V(s,l){return Hl(s,l,!0)}function IV(s,l,f){return Qh(s,l,xe(f,2),!0)}function $V(s,l){var f=s==null?0:s.length;if(f){var g=Hl(s,l,!0)-1;if(Tn(s[g],l))return g}return-1}function DV(s){return s&&s.length?Jw(s):[]}function NV(s,l){return s&&s.length?Jw(s,xe(l,2)):[]}function RV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function LV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function kV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function jV(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function FV(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var VV=Ie(function(s){return qr(xt(s,1,ct,!0))}),BV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(xt(s,1,ct,!0),xe(l,2))}),WV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(xt(s,1,ct,!0),n,l)});function UV(s){return s&&s.length?qr(s):[]}function zV(s,l){return s&&s.length?qr(s,xe(l,2)):[]}function GV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function ym(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Nh(l,function(f){return et(s,Ih(f))})}function jS(s,l){if(!(s&&s.length))return[];var f=ym(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var YV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),HV=Ie(function(s){return tm(Ur(s,ct))}),qV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),tm(Ur(s,ct),xe(l,2))}),KV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,tm(Ur(s,ct),n,l)}),XV=Ie(ym);function ZV(s,l){return nS(s||[],l||[],Go)}function JV(s,l){return nS(s||[],l||[],Ko)}var QV=Ie(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,jS(s,f)});function FS(s){var l=C(s);return l.__chain__=!0,l}function e8(s,l){return l(s),s}function rc(s,l){return l(s)}var t8=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Wh(M,s)};return l>1||this.__actions__.length||!(g instanceof Re)||!cr(f)?this.thru(x):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:rc,args:[x],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function n8(){return FS(this)}function r8(){return new dn(this.value(),this.__chain__)}function i8(){this.__values__===n&&(this.__values__=QS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function s8(){return this}function o8(s){for(var l,f=this;f instanceof Wl;){var g=$S(f);g.__index__=0,g.__values__=n,l?x.__wrapped__=g:l=g;var x=g;f=f.__wrapped__}return x.__wrapped__=s,l}function a8(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[gm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(gm)}function l8(){return tS(this.__wrapped__,this.__actions__)}var c8=Kl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function u8(s,l,f){var g=Ae(s)?mw:eF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function f8(s,l){var f=Ae(s)?Ur:jw;return f(s,xe(l,3))}var d8=dS(DS),h8=dS(NS);function m8(s,l){return xt(ic(s,l),1)}function p8(s,l){return xt(ic(s,l),V)}function g8(s,l,f){return f=f===n?1:Oe(f),xt(ic(s,l),f)}function VS(s,l){var f=Ae(s)?un:Hr;return f(s,xe(l,3))}function BS(s,l){var f=Ae(s)?Rk:kw;return f(s,xe(l,3))}var y8=Kl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function v8(s,l,f,g){s=Bt(s)?s:ks(s),f=f&&!g?Oe(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Cs(s,l,f)>-1}var b8=Ie(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=x?Kt(l,I,f):Ho(I,l,f)}),M}),x8=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:zw;return f(s,xe(l,3))}function w8(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),qw(s,l,f))}var S8=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function T8(s,l,f){var g=Ae(s)?Oh:vw,x=arguments.length<3;return g(s,xe(l,4),f,x,Hr)}function E8(s,l,f){var g=Ae(s)?Lk:vw,x=arguments.length<3;return g(s,xe(l,4),f,x,kw)}function C8(s,l){var f=Ae(s)?Ur:jw;return f(s,ac(xe(l,3)))}function P8(s){var l=Ae(s)?Dw:vF;return l(s)}function A8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Oe(l);var g=Ae(s)?Kj:bF;return g(s,l)}function M8(s){var l=Ae(s)?Xj:wF;return l(s)}function O8(s){if(s==null)return 0;if(Bt(s))return cc(s)?As(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:qh(s).length}function _8(s,l,f){var g=Ae(s)?_h:SF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var I8=Ie(function(s,l){if(s==null)return[];var f=l.length;return f>1&&$t(s,l[0],l[1])?l=[]:f>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),qw(s,xt(l,1),[])}),sc=fj||function(){return bt.Date.now()};function $8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function WS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function US(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var vm=Ie(function(s,l,f){var g=T;if(f.length){var x=Gr(f,Rs(vm));g|=P}return ar(s,g,l,f,x)}),zS=Ie(function(s,l,f){var g=T|w;if(f.length){var x=Gr(f,Rs(zS));g|=P}return ar(l,g,s,f,x)});function GS(s,l,f){l=f?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=YS.placeholder,g}function HS(s,l,f){var g,x,M,I,D,k,H=0,q=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(q=!!f.leading,X="maxWait"in f,M=X?mt(gn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var En=g,dr=x;return g=x=n,H=ut,I=s.apply(dr,En),I}function Te(ut){return H=ut,D=Jo(Ne,l),q?ye(ut):I}function _e(ut){var En=ut-k,dr=ut-H,dT=l-En;return X?At(dT,M-dr):dT}function Ee(ut){var En=ut-k,dr=ut-H;return k===n||En>=l||En<0||X&&dr>=M}function Ne(){var ut=sc();if(Ee(ut))return Le(ut);D=Jo(Ne,_e(ut))}function Le(ut){return D=n,ce&&g?ye(ut):(g=x=n,I)}function Qt(){D!==n&&rS(D),H=0,g=k=x=D=n}function Dt(){return D===n?I:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,k=ut,En){if(D===n)return Te(k);if(X)return rS(D),D=Jo(Ne,l),ye(k)}return D===n&&(D=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var D8=Ie(function(s,l){return Lw(s,1,l)}),N8=Ie(function(s,l,f){return Lw(s,gn(l)||0,f)});function R8(s){return ar(s,U)}function oc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,x=l?l.apply(this,g):g[0],M=f.cache;if(M.has(x))return M.get(x);var I=s.apply(this,g);return f.cache=M.set(x,I)||M,I};return f.cache=new(oc.Cache||sr),f}oc.Cache=sr;function ac(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function L8(s){return US(2,s)}var k8=TF(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return Ie(function(g){for(var x=-1,M=At(g.length,f);++x<M;)g[x]=l[x].call(this,g[x]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var f=Gr(l,Rs(bm));return ar(s,P,n,l,f)}),qS=Ie(function(s,l){var f=Gr(l,Rs(qS));return ar(s,N,n,l,f)}),j8=lr(function(s,l){return ar(s,F,n,n,n,l)});function F8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function V8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(f){var g=f[l],x=Xr(f,0,l);return g&&zr(x,g),Kt(s,this,x)})}function B8(s,l,f){var g=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,x="trailing"in f?!!f.trailing:x),HS(s,l,{leading:g,maxWait:l,trailing:x})}function W8(s){return WS(s,1)}function U8(s,l){return bm(rm(l),s)}function z8(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function G8(s){return hn(s,y)}function Y8(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function H8(s){return hn(s,m|y)}function q8(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function K8(s,l){return l==null||Rw(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var X8=Ql(Gh),Z8=Ql(function(s,l){return s>=l}),Ri=Bw(function(){return arguments}())?Bw:function(s){return ot(s)&&ze.call(s,"callee")&&!Aw.call(s,"callee")},Ae=W.isArray,J8=lw?Xt(lw):oF;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function Q8(s){return s===!0||s===!1||ot(s)&&It(s)==ne}var Zr=hj||_m,eB=cw?Xt(cw):aF;function tB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function nB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Ls(s)||Ri(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!qh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function rB(s,l){return qo(s,l)}function iB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function xm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function sB(s){return typeof s=="number"&&Ow(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==xl}function KS(s){return typeof s=="number"&&s==Oe(s)}function lc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=B}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var XS=uw?Xt(uw):cF;function oB(s,l){return s===l||Hh(s,l,um(l))}function aB(s,l,f){return f=typeof f=="function"?f:n,Hh(s,l,um(l),f)}function lB(s){return ZS(s)&&s!=+s}function cB(s){if(YF(s))throw new Pe(o);return Ww(s)}function uB(s){return s===null}function fB(s){return s==null}function ZS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Rl(s);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==aj}var wm=fw?Xt(fw):uF;function dB(s){return KS(s)&&s>=-9007199254740991&&s<=B}var JS=dw?Xt(dw):fF;function cc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Pi}var Ls=hw?Xt(hw):dF;function hB(s){return s===n}function mB(s){return ot(s)&&Mt(s)==Wr}function pB(s){return ot(s)&&It(s)==Sl}var gB=Ql(Kh),yB=Ql(function(s,l){return s<=l});function QS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return Kk(s[Vo]());var l=Mt(s),f=l==De?Lh:l==qt?Ml:ks;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===V||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function eT(s){return s?Ii(Oe(s),0,R):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return O;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=bw(s);var f=JL.test(s);return f||ek.test(s)?$k(s.slice(2),f?2:8):ZL.test(s)?O:+s}function tT(s){return zn(s,Wt(s))}function vB(s){return s?Ii(Oe(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var bB=Ds(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),nT=Ds(function(s,l){zn(l,Wt(l),s)}),uc=Ds(function(s,l,f,g){zn(l,Wt(l),s,g)}),xB=Ds(function(s,l,f,g){zn(l,gt(l),s,g)}),wB=lr(Wh);function SB(s,l){var f=$s(s);return l==null?f:Nw(f,l)}var TB=Ie(function(s,l){s=Ge(s);var f=-1,g=l.length,x=g>2?l[2]:n;for(x&&$t(l[0],l[1],x)&&(g=1);++f<g;)for(var M=l[f],I=Wt(M),D=-1,k=I.length;++D<k;){var H=I[D],q=s[H];(q===n||Tn(q,Os[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),EB=Ie(function(s){return s.push(n,bS),Kt(rT,n,s)});function CB(s,l){return pw(s,xe(l,3),Un)}function PB(s,l){return pw(s,xe(l,3),zh)}function AB(s,l){return s==null?s:Uh(s,xe(l,3),Wt)}function MB(s,l){return s==null?s:Fw(s,xe(l,3),Wt)}function OB(s,l){return s&&Un(s,xe(l,3))}function _B(s,l){return s&&zh(s,xe(l,3))}function IB(s){return s==null?[]:Gl(s,gt(s))}function $B(s){return s==null?[]:Gl(s,Wt(s))}function Sm(s,l,f){var g=s==null?n:$i(s,l);return g===n?f:g}function DB(s,l){return s!=null&&SS(s,l,nF)}function Tm(s,l){return s!=null&&SS(s,l,rF)}var NB=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Cm(Ut)),RB=mS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},xe),LB=Ie(Ho);function gt(s){return Bt(s)?$w(s):qh(s)}function Wt(s){return Bt(s)?$w(s,!0):hF(s)}function kB(s,l){var f={};return l=xe(l,3),Un(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function jB(s,l){var f={};return l=xe(l,3),Un(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var FB=Ds(function(s,l,f){Yl(s,l,f)}),rT=Ds(function(s,l,f,g){Yl(s,l,f,g)}),VB=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,lm(s),f),g&&(f=hn(f,m|p|y,NF));for(var x=l.length;x--;)em(f,l[x]);return f});function BB(s,l){return iT(s,ac(xe(l)))}var WB=lr(function(s,l){return s==null?{}:pF(s,l)});function iT(s,l){if(s==null)return{};var f=et(lm(s),function(g){return[g]});return l=xe(l),Kw(s,f,function(g,x){return l(g,x[0])})}function UB(s,l,f){l=Kr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function zB(s,l,f){return s==null?s:Ko(s,l,f)}function GB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var sT=yS(gt),oT=yS(Wt);function YB(s,l,f){var g=Ae(s),x=g||Zr(s)||Ls(s);if(l=xe(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?$s(Rl(s)):{}:f={}}return(x?un:Un)(s,function(I,D,k){return l(f,I,D,k)}),f}function HB(s,l){return s==null?!0:em(s,l)}function qB(s,l,f){return s==null?s:eS(s,l,rm(f))}function KB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:eS(s,l,rm(f),g)}function ks(s){return s==null?[]:Rh(s,gt(s))}function XB(s){return s==null?[]:Rh(s,Wt(s))}function ZB(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),Ii(gn(s),l,f)}function JB(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),iF(s,l,f)}function QB(s,l,f){if(f&&typeof f!="boolean"&&$t(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var g=s;s=l,l=g}if(f||s%1||l%1){var x=_w();return At(s+x*(l-s+Ik("1e-"+((x+"").length-1))),l)}return Zh(s,l)}var e9=Ns(function(s,l,f){return l=l.toLowerCase(),s+(f?aT(l):l)});function aT(s){return Em(Be(s).toLowerCase())}function lT(s){return s=Be(s),s&&s.replace(nk,zk).replace(wk,"")}function t9(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:Ii(Oe(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function n9(s){return s=Be(s),s&&LL.test(s)?s.replace(F2,Gk):s}function r9(s){return s=Be(s),s&&WL.test(s)?s.replace(bh,"\\$&"):s}var i9=Ns(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),s9=Ns(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),o9=fS("toLowerCase");function a9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function l9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;return l&&g<l?s+Jl(l-g,f):s}function c9(s,l,f){s=Be(s),l=Oe(l);var g=l?As(s):0;return l&&g<l?Jl(l-g,f)+s:s}function u9(s,l,f){return f||l==null?l=0:l&&(l=+l),yj(Be(s).replace(xh,""),l||0)}function f9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Oe(l),Jh(Be(s),l)}function d9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var h9=Ns(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function m9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?R:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!wm(l))&&(l=Zt(l),!l&&Ps(s))?Xr(wn(s),0,f):s.split(l,f)):[]}var p9=Ns(function(s,l,f){return s+(f?" ":"")+Em(l)});function g9(s,l,f){return s=Be(s),f=f==null?0:Ii(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function y9(s,l,f){var g=C.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,vS);var x=uc({},l.imports,g.imports,vS),M=gt(x),I=Rh(x,M),D,k,H=0,q=l.interpolate||Tl,X="__p += '",ce=kh((l.escape||Tl).source+"|"+q.source+"|"+(q===V2?XL:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pk+"]")+`
635
+ `;s.replace(ce,function(Ee,Ne,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(H,en).replace(rk,Yk),Ne&&(D=!0,X+=`' +
636
636
  __e(`+Ne+`) +
637
637
  '`),Dt&&(k=!0,X+=`';
638
638
  `+Dt+`;
@@ -642,13 +642,13 @@ __p += '`),Le&&(X+=`' +
642
642
  `;var Te=ze.call(l,"variable")&&l.variable;if(!Te)X=`with (obj) {
643
643
  `+X+`
644
644
  }
645
- `;else if(YL.test(Te))throw new Pe(c);X=(k?X.replace(_L,""):X).replace(IL,"$1").replace($L,"$1;"),X="function("+(Te||"obj")+`) {
645
+ `;else if(qL.test(Te))throw new Pe(c);X=(k?X.replace($L,""):X).replace(DL,"$1").replace(NL,"$1;"),X="function("+(Te||"obj")+`) {
646
646
  `+(Te?"":`obj || (obj = {});
647
- `)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
647
+ `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
650
  `)+X+`return __p
651
- }`;var _e=uT(function(){return ke(M,ye+"return "+X).apply(n,_)});if(_e.source=X,xm(_e))throw _e;return _e}function g9(s){return Be(s).toLowerCase()}function y9(s){return Be(s).toUpperCase()}function v9(s,l,f){if(s=Be(s),s&&(f||l===n))return bw(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=xw(g,x),_=ww(g,x)+1;return Xr(g,M,_).join("")}function b9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,Tw(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=ww(g,wn(l))+1;return Xr(g,0,x).join("")}function x9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(xh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=xw(g,wn(l));return Xr(g,x).join("")}function w9(s,l){var f=J,g=ee;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Oe(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(Ps(s)){var _=wn(s);M=_.length}if(f>=M)return s;var N=f-As(g);if(N<1)return g;var k=_?Xr(_,0,N).join(""):s.slice(0,N);if(x===n)return k+g;if(_&&(N+=k.length-N),wm(x)){if(s.slice(N).search(x)){var H,q=k;for(x.global||(x=kh(x.source,Be(B2.exec(x))+"g")),x.lastIndex=0;H=x.exec(q);)var X=H.index;k=k.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(x),N)!=N){var ce=k.lastIndexOf(x);ce>-1&&(k=k.slice(0,ce))}return k+g}function S9(s){return s=Be(s),s&&DL.test(s)?s.replace(j2,Zk):s}var T9=Ns(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Em=fS("toUpperCase");function cT(s,l,f){return s=Be(s),l=f?n:l,l===n?Yk(s)?ej(s):kk(s):s.match(l)||[]}var uT=Ie(function(s,l){try{return Kt(s,n,l)}catch(f){return xm(f)?f:new Pe(f)}}),E9=lr(function(s,l){return un(l,function(f){f=Gn(f),or(s,f,vm(s[f],s))}),s});function C9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],Ie(function(g){for(var x=-1;++x<l;){var M=s[x];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function P9(s){return Zj(hn(s,m))}function Cm(s){return function(){return s}}function A9(s,l){return s==null||s!==s?l:s}var M9=hS(),O9=hS(!0);function Ut(s){return s}function Pm(s){return Uw(typeof s=="function"?s:hn(s,m))}function _9(s){return Gw(hn(s,m))}function I9(s,l){return Yw(s,hn(l,m))}var $9=Ie(function(s,l){return function(f){return Ho(f,s,l)}}),D9=Ie(function(s,l){return function(f){return Ho(s,f,l)}});function Am(s,l,f){var g=gt(l),x=Gl(l,g);f==null&&!(st(l)&&(x.length||!g.length))&&(f=l,l=s,s=this,x=Gl(l,gt(l)));var M=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function(N){var k=l[N];s[N]=k,_&&(s.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:k,args:arguments,thisArg:s}),q.__chain__=H,q}return k.apply(s,zr([this.value()],arguments))})}),s}function N9(){return bt._===this&&(bt._=oj),this}function Mm(){}function R9(s){return s=Oe(s),Ie(function(l){return Hw(l,s)})}var L9=sm(et),k9=sm(mw),j9=sm(_h);function fT(s){return dm(s)?Ih(Gn(s)):mF(s)}function F9(s){return function(l){return s==null?n:$i(s,l)}}var V9=pS(),B9=pS(!0);function Om(){return[]}function _m(){return!1}function W9(){return{}}function U9(){return""}function z9(){return!0}function G9(s,l){if(s=Oe(s),s<1||s>B)return[];var f=R,g=At(s,R);l=xe(l),s-=R;for(var x=Nh(g,l);++f<s;)l(f);return x}function Y9(s){return Ae(s)?et(s,Gn):Jt(s)?[s]:Vt(IS(Be(s)))}function H9(s){var l=++ij;return Be(s)+l}var q9=Zl(function(s,l){return s+l},0),K9=om("ceil"),X9=Zl(function(s,l){return s/l},1),Z9=om("floor");function J9(s){return s&&s.length?zl(s,Ut,Gh):n}function Q9(s,l){return s&&s.length?zl(s,xe(l,2),Gh):n}function e7(s){return yw(s,Ut)}function t7(s,l){return yw(s,xe(l,2))}function n7(s){return s&&s.length?zl(s,Ut,Kh):n}function r7(s,l){return s&&s.length?zl(s,xe(l,2),Kh):n}var i7=Zl(function(s,l){return s*l},1),s7=om("round"),o7=Zl(function(s,l){return s-l},0);function a7(s){return s&&s.length?Dh(s,Ut):0}function l7(s,l){return s&&s.length?Dh(s,xe(l,2)):0}return P.after=_8,P.ary=WS,P.assign=yB,P.assignIn=nT,P.assignInWith=uc,P.assignWith=vB,P.at=bB,P.before=US,P.bind=vm,P.bindAll=E9,P.bindKey=zS,P.castArray=W8,P.chain=FS,P.chunk=ZF,P.compact=JF,P.concat=QF,P.cond=C9,P.conforms=P9,P.constant=Cm,P.countBy=a8,P.create=xB,P.curry=GS,P.curryRight=YS,P.debounce=HS,P.defaults=wB,P.defaultsDeep=SB,P.defer=I8,P.delay=$8,P.difference=eV,P.differenceBy=tV,P.differenceWith=nV,P.drop=rV,P.dropRight=iV,P.dropRightWhile=sV,P.dropWhile=oV,P.fill=aV,P.filter=c8,P.flatMap=d8,P.flatMapDeep=h8,P.flatMapDepth=m8,P.flatten=RS,P.flattenDeep=lV,P.flattenDepth=cV,P.flip=D8,P.flow=M9,P.flowRight=O9,P.fromPairs=uV,P.functions=OB,P.functionsIn=_B,P.groupBy=p8,P.initial=dV,P.intersection=hV,P.intersectionBy=mV,P.intersectionWith=pV,P.invert=$B,P.invertBy=DB,P.invokeMap=y8,P.iteratee=Pm,P.keyBy=v8,P.keys=gt,P.keysIn=Wt,P.map=ic,P.mapKeys=RB,P.mapValues=LB,P.matches=_9,P.matchesProperty=I9,P.memoize=oc,P.merge=kB,P.mergeWith=rT,P.method=$9,P.methodOf=D9,P.mixin=Am,P.negate=ac,P.nthArg=R9,P.omit=jB,P.omitBy=FB,P.once=N8,P.orderBy=b8,P.over=L9,P.overArgs=R8,P.overEvery=k9,P.overSome=j9,P.partial=bm,P.partialRight=qS,P.partition=x8,P.pick=VB,P.pickBy=iT,P.property=fT,P.propertyOf=F9,P.pull=bV,P.pullAll=kS,P.pullAllBy=xV,P.pullAllWith=wV,P.pullAt=SV,P.range=V9,P.rangeRight=B9,P.rearg=L8,P.reject=T8,P.remove=TV,P.rest=k8,P.reverse=gm,P.sampleSize=C8,P.set=WB,P.setWith=UB,P.shuffle=P8,P.slice=EV,P.sortBy=O8,P.sortedUniq=IV,P.sortedUniqBy=$V,P.split=d9,P.spread=j8,P.tail=DV,P.take=NV,P.takeRight=RV,P.takeRightWhile=LV,P.takeWhile=kV,P.tap=JV,P.throttle=F8,P.thru=rc,P.toArray=QS,P.toPairs=sT,P.toPairsIn=oT,P.toPath=Y9,P.toPlainObject=tT,P.transform=zB,P.unary=V8,P.union=jV,P.unionBy=FV,P.unionWith=VV,P.uniq=BV,P.uniqBy=WV,P.uniqWith=UV,P.unset=GB,P.unzip=ym,P.unzipWith=jS,P.update=YB,P.updateWith=HB,P.values=ks,P.valuesIn=qB,P.without=zV,P.words=cT,P.wrap=B8,P.xor=GV,P.xorBy=YV,P.xorWith=HV,P.zip=qV,P.zipObject=KV,P.zipObjectDeep=XV,P.zipWith=ZV,P.entries=sT,P.entriesIn=oT,P.extend=nT,P.extendWith=uc,Am(P,P),P.add=q9,P.attempt=uT,P.camelCase=JB,P.capitalize=aT,P.ceil=K9,P.clamp=KB,P.clone=U8,P.cloneDeep=G8,P.cloneDeepWith=Y8,P.cloneWith=z8,P.conformsTo=H8,P.deburr=lT,P.defaultTo=A9,P.divide=X9,P.endsWith=QB,P.eq=Tn,P.escape=e9,P.escapeRegExp=t9,P.every=l8,P.find=u8,P.findIndex=DS,P.findKey=TB,P.findLast=f8,P.findLastIndex=NS,P.findLastKey=EB,P.floor=Z9,P.forEach=VS,P.forEachRight=BS,P.forIn=CB,P.forInRight=PB,P.forOwn=AB,P.forOwnRight=MB,P.get=Sm,P.gt=q8,P.gte=K8,P.has=IB,P.hasIn=Tm,P.head=LS,P.identity=Ut,P.includes=g8,P.indexOf=fV,P.inRange=XB,P.invoke=NB,P.isArguments=Ri,P.isArray=Ae,P.isArrayBuffer=X8,P.isArrayLike=Bt,P.isArrayLikeObject=ct,P.isBoolean=Z8,P.isBuffer=Zr,P.isDate=J8,P.isElement=Q8,P.isEmpty=eB,P.isEqual=tB,P.isEqualWith=nB,P.isError=xm,P.isFinite=rB,P.isFunction=ur,P.isInteger=KS,P.isLength=lc,P.isMap=XS,P.isMatch=iB,P.isMatchWith=sB,P.isNaN=oB,P.isNative=aB,P.isNil=cB,P.isNull=lB,P.isNumber=ZS,P.isObject=st,P.isObjectLike=ot,P.isPlainObject=Qo,P.isRegExp=wm,P.isSafeInteger=uB,P.isSet=JS,P.isString=cc,P.isSymbol=Jt,P.isTypedArray=Ls,P.isUndefined=fB,P.isWeakMap=dB,P.isWeakSet=hB,P.join=gV,P.kebabCase=n9,P.last=pn,P.lastIndexOf=yV,P.lowerCase=r9,P.lowerFirst=i9,P.lt=mB,P.lte=pB,P.max=J9,P.maxBy=Q9,P.mean=e7,P.meanBy=t7,P.min=n7,P.minBy=r7,P.stubArray=Om,P.stubFalse=_m,P.stubObject=W9,P.stubString=U9,P.stubTrue=z9,P.multiply=i7,P.nth=vV,P.noConflict=N9,P.noop=Mm,P.now=sc,P.pad=s9,P.padEnd=o9,P.padStart=a9,P.parseInt=l9,P.random=ZB,P.reduce=w8,P.reduceRight=S8,P.repeat=c9,P.replace=u9,P.result=BB,P.round=s7,P.runInContext=L,P.sample=E8,P.size=A8,P.snakeCase=f9,P.some=M8,P.sortedIndex=CV,P.sortedIndexBy=PV,P.sortedIndexOf=AV,P.sortedLastIndex=MV,P.sortedLastIndexBy=OV,P.sortedLastIndexOf=_V,P.startCase=h9,P.startsWith=m9,P.subtract=o7,P.sum=a7,P.sumBy=l7,P.template=p9,P.times=G9,P.toFinite=fr,P.toInteger=Oe,P.toLength=eT,P.toLower=g9,P.toNumber=gn,P.toSafeInteger=gB,P.toString=Be,P.toUpper=y9,P.trim=v9,P.trimEnd=b9,P.trimStart=x9,P.truncate=w9,P.unescape=S9,P.uniqueId=H9,P.upperCase=T9,P.upperFirst=Em,P.each=VS,P.eachRight=BS,P.first=LS,Am(P,function(){var s={};return Un(P,function(l,f){ze.call(P.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),P.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var g=this.__filtered__&&!l?new Re(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,R),type:s+(g.__dir__<0?"Right":"")}),g},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==ue||f==he;Re.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:xe(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Ut)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Ho(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(ac(xe(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(R)},Un(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=P[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(P.prototype[l]=function(){var _=this.__wrapped__,N=g?[1]:arguments,k=_ instanceof Re,H=N[0],q=k||Ae(_),X=function(Ne){var Le=x.apply(P,zr([Ne],N));return g&&ce?Le[0]:Le};q&&f&&typeof H=="function"&&H.length!=1&&(k=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,_e=k&&!ye;if(!M&&q){_=_e?_:new Re(this);var Ee=s.apply(_,N);return Ee.__actions__.push({func:rc,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Ae(M)?M:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Un(Re.prototype,function(s,l){var f=P[l];if(f){var g=f.name+"";ze.call(Is,g)||(Is[g]=[]),Is[g].push({name:l,func:f})}}),Is[Xl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=Sj,Re.prototype.reverse=Tj,Re.prototype.value=Ej,P.prototype.at=QV,P.prototype.chain=e8,P.prototype.commit=t8,P.prototype.next=n8,P.prototype.plant=i8,P.prototype.reverse=s8,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=o8,P.prototype.first=P.prototype.head,Vo&&(P.prototype[Vo]=r8),P},Ms=tj();Ai?((Ai.exports=Ms)._=Ms,Ph._=Ms):bt._=Ms}).call(mI)}(mo,mo.exports)),mo.exports}var yf=pI();const vf=I.createContext({});function bf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Pv=xf?I.useLayoutEffect:I.useEffect,ka=I.createContext(null),wf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class gI extends Q.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yI({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(wf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
651
+ }`;var _e=uT(function(){return ke(M,ye+"return "+X).apply(n,I)});if(_e.source=X,xm(_e))throw _e;return _e}function v9(s){return Be(s).toLowerCase()}function b9(s){return Be(s).toUpperCase()}function x9(s,l,f){if(s=Be(s),s&&(f||l===n))return bw(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=xw(g,x),I=ww(g,x)+1;return Xr(g,M,I).join("")}function w9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,Tw(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=ww(g,wn(l))+1;return Xr(g,0,x).join("")}function S9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(xh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=xw(g,wn(l));return Xr(g,x).join("")}function T9(s,l){var f=Z,g=ee;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Oe(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(Ps(s)){var I=wn(s);M=I.length}if(f>=M)return s;var D=f-As(g);if(D<1)return g;var k=I?Xr(I,0,D).join(""):s.slice(0,D);if(x===n)return k+g;if(I&&(D+=k.length-D),wm(x)){if(s.slice(D).search(x)){var H,q=k;for(x.global||(x=kh(x.source,Be(B2.exec(x))+"g")),x.lastIndex=0;H=x.exec(q);)var X=H.index;k=k.slice(0,X===n?D:X)}}else if(s.indexOf(Zt(x),D)!=D){var ce=k.lastIndexOf(x);ce>-1&&(k=k.slice(0,ce))}return k+g}function E9(s){return s=Be(s),s&&RL.test(s)?s.replace(j2,Qk):s}var C9=Ns(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Em=fS("toUpperCase");function cT(s,l,f){return s=Be(s),l=f?n:l,l===n?qk(s)?nj(s):Fk(s):s.match(l)||[]}var uT=Ie(function(s,l){try{return Kt(s,n,l)}catch(f){return xm(f)?f:new Pe(f)}}),P9=lr(function(s,l){return un(l,function(f){f=Gn(f),or(s,f,vm(s[f],s))}),s});function A9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],Ie(function(g){for(var x=-1;++x<l;){var M=s[x];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function M9(s){return Qj(hn(s,m))}function Cm(s){return function(){return s}}function O9(s,l){return s==null||s!==s?l:s}var _9=hS(),I9=hS(!0);function Ut(s){return s}function Pm(s){return Uw(typeof s=="function"?s:hn(s,m))}function $9(s){return Gw(hn(s,m))}function D9(s,l){return Yw(s,hn(l,m))}var N9=Ie(function(s,l){return function(f){return Ho(f,s,l)}}),R9=Ie(function(s,l){return function(f){return Ho(s,f,l)}});function Am(s,l,f){var g=gt(l),x=Gl(l,g);f==null&&!(st(l)&&(x.length||!g.length))&&(f=l,l=s,s=this,x=Gl(l,gt(l)));var M=!(st(f)&&"chain"in f)||!!f.chain,I=ur(s);return un(x,function(D){var k=l[D];s[D]=k,I&&(s.prototype[D]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:k,args:arguments,thisArg:s}),q.__chain__=H,q}return k.apply(s,zr([this.value()],arguments))})}),s}function L9(){return bt._===this&&(bt._=lj),this}function Mm(){}function k9(s){return s=Oe(s),Ie(function(l){return Hw(l,s)})}var j9=sm(et),F9=sm(mw),V9=sm(_h);function fT(s){return dm(s)?Ih(Gn(s)):gF(s)}function B9(s){return function(l){return s==null?n:$i(s,l)}}var W9=pS(),U9=pS(!0);function Om(){return[]}function _m(){return!1}function z9(){return{}}function G9(){return""}function Y9(){return!0}function H9(s,l){if(s=Oe(s),s<1||s>B)return[];var f=R,g=At(s,R);l=xe(l),s-=R;for(var x=Nh(g,l);++f<s;)l(f);return x}function q9(s){return Ae(s)?et(s,Gn):Jt(s)?[s]:Vt(IS(Be(s)))}function K9(s){var l=++oj;return Be(s)+l}var X9=Zl(function(s,l){return s+l},0),Z9=om("ceil"),J9=Zl(function(s,l){return s/l},1),Q9=om("floor");function e7(s){return s&&s.length?zl(s,Ut,Gh):n}function t7(s,l){return s&&s.length?zl(s,xe(l,2),Gh):n}function n7(s){return yw(s,Ut)}function r7(s,l){return yw(s,xe(l,2))}function i7(s){return s&&s.length?zl(s,Ut,Kh):n}function s7(s,l){return s&&s.length?zl(s,xe(l,2),Kh):n}var o7=Zl(function(s,l){return s*l},1),a7=om("round"),l7=Zl(function(s,l){return s-l},0);function c7(s){return s&&s.length?Dh(s,Ut):0}function u7(s,l){return s&&s.length?Dh(s,xe(l,2)):0}return C.after=$8,C.ary=WS,C.assign=bB,C.assignIn=nT,C.assignInWith=uc,C.assignWith=xB,C.at=wB,C.before=US,C.bind=vm,C.bindAll=P9,C.bindKey=zS,C.castArray=z8,C.chain=FS,C.chunk=QF,C.compact=eV,C.concat=tV,C.cond=A9,C.conforms=M9,C.constant=Cm,C.countBy=c8,C.create=SB,C.curry=GS,C.curryRight=YS,C.debounce=HS,C.defaults=TB,C.defaultsDeep=EB,C.defer=D8,C.delay=N8,C.difference=nV,C.differenceBy=rV,C.differenceWith=iV,C.drop=sV,C.dropRight=oV,C.dropRightWhile=aV,C.dropWhile=lV,C.fill=cV,C.filter=f8,C.flatMap=m8,C.flatMapDeep=p8,C.flatMapDepth=g8,C.flatten=RS,C.flattenDeep=uV,C.flattenDepth=fV,C.flip=R8,C.flow=_9,C.flowRight=I9,C.fromPairs=dV,C.functions=IB,C.functionsIn=$B,C.groupBy=y8,C.initial=mV,C.intersection=pV,C.intersectionBy=gV,C.intersectionWith=yV,C.invert=NB,C.invertBy=RB,C.invokeMap=b8,C.iteratee=Pm,C.keyBy=x8,C.keys=gt,C.keysIn=Wt,C.map=ic,C.mapKeys=kB,C.mapValues=jB,C.matches=$9,C.matchesProperty=D9,C.memoize=oc,C.merge=FB,C.mergeWith=rT,C.method=N9,C.methodOf=R9,C.mixin=Am,C.negate=ac,C.nthArg=k9,C.omit=VB,C.omitBy=BB,C.once=L8,C.orderBy=w8,C.over=j9,C.overArgs=k8,C.overEvery=F9,C.overSome=V9,C.partial=bm,C.partialRight=qS,C.partition=S8,C.pick=WB,C.pickBy=iT,C.property=fT,C.propertyOf=B9,C.pull=wV,C.pullAll=kS,C.pullAllBy=SV,C.pullAllWith=TV,C.pullAt=EV,C.range=W9,C.rangeRight=U9,C.rearg=j8,C.reject=C8,C.remove=CV,C.rest=F8,C.reverse=gm,C.sampleSize=A8,C.set=zB,C.setWith=GB,C.shuffle=M8,C.slice=PV,C.sortBy=I8,C.sortedUniq=DV,C.sortedUniqBy=NV,C.split=m9,C.spread=V8,C.tail=RV,C.take=LV,C.takeRight=kV,C.takeRightWhile=jV,C.takeWhile=FV,C.tap=e8,C.throttle=B8,C.thru=rc,C.toArray=QS,C.toPairs=sT,C.toPairsIn=oT,C.toPath=q9,C.toPlainObject=tT,C.transform=YB,C.unary=W8,C.union=VV,C.unionBy=BV,C.unionWith=WV,C.uniq=UV,C.uniqBy=zV,C.uniqWith=GV,C.unset=HB,C.unzip=ym,C.unzipWith=jS,C.update=qB,C.updateWith=KB,C.values=ks,C.valuesIn=XB,C.without=YV,C.words=cT,C.wrap=U8,C.xor=HV,C.xorBy=qV,C.xorWith=KV,C.zip=XV,C.zipObject=ZV,C.zipObjectDeep=JV,C.zipWith=QV,C.entries=sT,C.entriesIn=oT,C.extend=nT,C.extendWith=uc,Am(C,C),C.add=X9,C.attempt=uT,C.camelCase=e9,C.capitalize=aT,C.ceil=Z9,C.clamp=ZB,C.clone=G8,C.cloneDeep=H8,C.cloneDeepWith=q8,C.cloneWith=Y8,C.conformsTo=K8,C.deburr=lT,C.defaultTo=O9,C.divide=J9,C.endsWith=t9,C.eq=Tn,C.escape=n9,C.escapeRegExp=r9,C.every=u8,C.find=d8,C.findIndex=DS,C.findKey=CB,C.findLast=h8,C.findLastIndex=NS,C.findLastKey=PB,C.floor=Q9,C.forEach=VS,C.forEachRight=BS,C.forIn=AB,C.forInRight=MB,C.forOwn=OB,C.forOwnRight=_B,C.get=Sm,C.gt=X8,C.gte=Z8,C.has=DB,C.hasIn=Tm,C.head=LS,C.identity=Ut,C.includes=v8,C.indexOf=hV,C.inRange=JB,C.invoke=LB,C.isArguments=Ri,C.isArray=Ae,C.isArrayBuffer=J8,C.isArrayLike=Bt,C.isArrayLikeObject=ct,C.isBoolean=Q8,C.isBuffer=Zr,C.isDate=eB,C.isElement=tB,C.isEmpty=nB,C.isEqual=rB,C.isEqualWith=iB,C.isError=xm,C.isFinite=sB,C.isFunction=ur,C.isInteger=KS,C.isLength=lc,C.isMap=XS,C.isMatch=oB,C.isMatchWith=aB,C.isNaN=lB,C.isNative=cB,C.isNil=fB,C.isNull=uB,C.isNumber=ZS,C.isObject=st,C.isObjectLike=ot,C.isPlainObject=Qo,C.isRegExp=wm,C.isSafeInteger=dB,C.isSet=JS,C.isString=cc,C.isSymbol=Jt,C.isTypedArray=Ls,C.isUndefined=hB,C.isWeakMap=mB,C.isWeakSet=pB,C.join=vV,C.kebabCase=i9,C.last=pn,C.lastIndexOf=bV,C.lowerCase=s9,C.lowerFirst=o9,C.lt=gB,C.lte=yB,C.max=e7,C.maxBy=t7,C.mean=n7,C.meanBy=r7,C.min=i7,C.minBy=s7,C.stubArray=Om,C.stubFalse=_m,C.stubObject=z9,C.stubString=G9,C.stubTrue=Y9,C.multiply=o7,C.nth=xV,C.noConflict=L9,C.noop=Mm,C.now=sc,C.pad=a9,C.padEnd=l9,C.padStart=c9,C.parseInt=u9,C.random=QB,C.reduce=T8,C.reduceRight=E8,C.repeat=f9,C.replace=d9,C.result=UB,C.round=a7,C.runInContext=L,C.sample=P8,C.size=O8,C.snakeCase=h9,C.some=_8,C.sortedIndex=AV,C.sortedIndexBy=MV,C.sortedIndexOf=OV,C.sortedLastIndex=_V,C.sortedLastIndexBy=IV,C.sortedLastIndexOf=$V,C.startCase=p9,C.startsWith=g9,C.subtract=l7,C.sum=c7,C.sumBy=u7,C.template=y9,C.times=H9,C.toFinite=fr,C.toInteger=Oe,C.toLength=eT,C.toLower=v9,C.toNumber=gn,C.toSafeInteger=vB,C.toString=Be,C.toUpper=b9,C.trim=x9,C.trimEnd=w9,C.trimStart=S9,C.truncate=T9,C.unescape=E9,C.uniqueId=K9,C.upperCase=C9,C.upperFirst=Em,C.each=VS,C.eachRight=BS,C.first=LS,Am(C,function(){var s={};return Un(C,function(l,f){ze.call(C.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),C.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){C[s].placeholder=C}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var g=this.__filtered__&&!l?new Re(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,R),type:s+(g.__dir__<0?"Right":"")}),g},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==ue||f==he;Re.prototype[s]=function(x){var M=this.clone();return M.__iteratees__.push({iteratee:xe(x,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Ut)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Ho(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(ac(xe(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(R)},Un(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=C[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(C.prototype[l]=function(){var I=this.__wrapped__,D=g?[1]:arguments,k=I instanceof Re,H=D[0],q=k||Ae(I),X=function(Ne){var Le=x.apply(C,zr([Ne],D));return g&&ce?Le[0]:Le};q&&f&&typeof H=="function"&&H.length!=1&&(k=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,_e=k&&!ye;if(!M&&q){I=_e?I:new Re(this);var Ee=s.apply(I,D);return Ee.__actions__.push({func:rc,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,D):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);C.prototype[s]=function(){var x=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Ae(M)?M:[],x)}return this[f](function(I){return l.apply(Ae(I)?I:[],x)})}}),Un(Re.prototype,function(s,l){var f=C[l];if(f){var g=f.name+"";ze.call(Is,g)||(Is[g]=[]),Is[g].push({name:l,func:f})}}),Is[Xl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=Ej,Re.prototype.reverse=Cj,Re.prototype.value=Pj,C.prototype.at=t8,C.prototype.chain=n8,C.prototype.commit=r8,C.prototype.next=i8,C.prototype.plant=o8,C.prototype.reverse=a8,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=l8,C.prototype.first=C.prototype.head,Vo&&(C.prototype[Vo]=s8),C},Ms=rj();Ai?((Ai.exports=Ms)._=Ms,Ph._=Ms):bt._=Ms}).call(mI)}(mo,mo.exports)),mo.exports}var yf=pI();const vf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Pv=xf?_.useLayoutEffect:_.useEffect,ka=_.createContext(null),wf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class gI extends Q.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yI({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(wf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
652
652
  [data-motion-pop-id="${r}"] {
653
653
  position: absolute !important;
654
654
  width: ${c}px !important;
@@ -656,18 +656,18 @@ function print() { __p += __j.call(arguments, '') }
656
656
  ${p}px !important;
657
657
  top: ${d}px !important;
658
658
  }
659
- `),()=>{document.head.removeChild(y)}},[t]),v.jsx(gI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const vI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(bI),d=I.useId(),h=I.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(yI,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function bI(){return new Map}function Av(e=!0){const t=I.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function Mv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Nn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Av(a),h=I.useMemo(()=>Mv(e),[e]),m=a&&!u?[]:h.map(ja),p=I.useRef(!0),y=I.useRef(h),S=bf(()=>new Map),[b,T]=I.useState(h),[w,E]=I.useState(h);Pv(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const D=ja(w[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[w,m.length,m.join("-")]);const C=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const j=w[D],F=ja(j);m.includes(F)||(A.splice(D,0,j),C.push(j))}return o==="wait"&&C.length&&(A=C),E(Mv(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(vf);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ja(A),j=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let U=!0;S.forEach(J=>{J||(U=!1)}),U&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(vI,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:A},D)})})},Rt=e=>e;let ns=Rt,Er=Rt;process.env.NODE_ENV!=="production"&&(ns=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const xI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Ov={value:null};function wI(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Ov.value&&Ov.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const SI=40;function _v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,E)=>(w[E]=wI(o,t?E:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,SI),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,E)=>{const C=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),C.schedule($,A,D)),w},{}),cancel:w=>{for(let E=0;E<Fa.length;E++)a[Fa[E]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=_v(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),Iv=I.createContext({strict:!1}),$v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rs={};for(const e in $v)rs[e]={isEnabled:t=>$v[e].some(n=>!!t[n])};function TI(e){for(const t in e)rs[t]={...rs[t],...e[t]}}const EI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EI.has(e)}let Dv=e=>!Va(e);function CI(e){e&&(Dv=t=>t.startsWith("on")?!Va(t):e(t))}try{CI(require("@emotion/is-prop-valid").default)}catch{}function PI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Dv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Nv=new Set;function Ba(e,t,n){e||Nv.has(t)||(console.warn(t),Nv.add(t))}function AI(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Wa=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function po(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>po(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function MI(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||po(n)?n:void 0,animate:po(r)?r:void 0}}return e.inherit!==!1?t:{}}function OI(e){const{initial:t,animate:n}=MI(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Lv(t),Lv(n)])}function Lv(e){return Array.isArray(e)?e.join(" "):e}const _I=Symbol.for("motionComponentSymbol");function is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function II(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):is(n)&&(n.current=r))},[t])}const{schedule:Cf}=_v(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kv="data-"+Pf("framerAppearId"),jv=I.createContext({});function $I(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Iv),d=I.useContext(ka),h=I.useContext(wf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=I.useContext(jv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&DI(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[kv],T=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Pv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),I.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function DI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&is(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Fv(e){if(e)return e.options.allowProjection!==!1?e.projection:Fv(e.parent)}function NI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&TI(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:RI(d)},{isStatic:y}=p,S=OI(d),b=r(d,y);if(!y&&xf){LI(p,e);const T=kI(p);m=T.MeasureLayout,S.visualElement=$I(i,b,p,t,T.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,II(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[_I]=i,u}function RI({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function LI(e,t){const n=I.useContext(Iv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ns(!1,r):Er(!1,r)}}function kI(e){const{drag:t,layout:n}=rs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Vv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=Vv("--"),jI=Vv("var(--"),Mf=e=>jI(e)?FI.test(e.split("/*")[0].trim()):!1,FI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,go={};function VI(e){for(const t in e)go[t]=e[t],Af(t)&&(go[t].isCSSVariable=!0)}const ss=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(ss);function Bv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!go[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Wv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,os={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yo={...os,transform:e=>Zn(0,1,e)},Ga={...os,default:1},vo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=vo("deg"),Rn=vo("%"),Se=vo("px"),BI=vo("vh"),WI=vo("vw"),Uv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},UI={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},zI={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:yo,originX:Uv,originY:Uv,originZ:Se},zv={...os,transform:Math.round},Of={...UI,...zI,zIndex:zv,size:Se,fillOpacity:yo,strokeOpacity:yo,numOctaves:zv},GI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YI=ss.length;function HI(e,t,n){let r="",i=!0;for(let o=0;o<YI;o++){const a=ss[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Wv(c,Of[a]);if(!u){i=!1;const h=GI[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(li.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Wv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=HI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gv(e,t,n){for(const r in t)!Et(t[r])&&!Bv(r,n)&&(e[r]=t[r])}function qI({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KI(e,t){const n=e.style||{},r={};return Gv(r,n,e),Object.assign(r,qI(e,t)),r}function XI(e,t){const n={},r=KI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ZI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $f(e){return typeof e!="string"||e.includes("-")?!1:!!(ZI.indexOf(e)>-1||/[A-Z]/u.test(e))}const JI={offset:"stroke-dashoffset",array:"stroke-dasharray"},QI={offset:"strokeDashoffset",array:"strokeDasharray"};function e$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JI:QI;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Yv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function t$(e,t,n){const r=Yv(t,e.x,e.width),i=Yv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=t$(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&e$(p,a,c,u,!1)}const Hv=()=>({...If(),attrs:{}}),Nf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function n$(e,t,n,r){const i=I.useMemo(()=>{const o=Hv();return Df(o,t,Nf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Gv(o,e.style,e),i.style={...o,...i.style}}return i}function r$(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?n$:XI)(r,o,a,n),d=PI(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:p})}}function qv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rf(e,t,n,r){if(typeof t=="function"){const[i,o]=qv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=qv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),i$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return i$(t)?t.toValue():t}function o$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:a$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Kv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),o=()=>o$(e,t,r,i);return n?o():bf(o)};function a$(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Rv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Rf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let C=w[E];if(Array.isArray(C)){const $=h?C.length-1:0;C=C[$]}C!==null&&(i[E]=C)}for(const E in b)i[E]=b[E]}}}return i}function kf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Bv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const l$={useVisualState:Kv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function Xv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Zv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Jv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qv(e,t,n,r){Zv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Jv.has(i)?i:Pf(i),t.attrs[i])}function e1(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=ss.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const t1=["x","y","width","height","cx","cy","r"],c$={useVisualState:Kv({scrapeMotionValuesFromProps:e1,createRenderState:Hv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<t1.length;c++){const u=t1[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Xv(n,r),He.render(()=>{Df(r,i,Nf(n.tagName),e.transformTemplate),Qv(n,r)})})}})};function u$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?c$:l$,preloadedFeatures:e,useRender:r$(i),createVisualElement:t,Component:r};return NI(a)}}function bo(e,t,n){const r=e.getProps();return Rf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const n1=new Set(["width","height","top","left","right","bottom",...ss]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function r1(e,t){return t?e*(1e3/t):0}let Ha;function f$(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||xI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(f$)}},i1=30,d$=e=>!isNaN(parseFloat(e));class h${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=d$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>i1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,i1);return r1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xo(e,t){return new h$(e,t)}function m$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xo(n))}function p$(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=s$(o[a]);m$(e,a,c)}}function g$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(g$(n))return n.add(t)}function s1(e){return e.props[kv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const y$=Uf(()=>window.ScrollTimeline!==void 0);class v${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(y$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class b$ extends v${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const kn=e=>e*1e3,Jn=e=>e/1e3;function zf(e){return typeof e=="function"}function o1(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",x$={linearEasing:void 0};function w$(e,t){const n=Uf(e);return()=>{var r;return(r=x$[t])!==null&&r!==void 0?r:n()}}const qa=w$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},a1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(as(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function l1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(l1))}const wo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wo([0,.65,.55,1]),circOut:wo([.55,0,1,.45]),backIn:wo([.31,.01,.66,-.59]),backOut:wo([.33,1.53,.69,.99])};function c1(e,t){if(e)return typeof e=="function"&&qa()?a1(e,t):Gf(e)?wo(e):Array.isArray(e)?e.map(n=>c1(n,t)||Yf.easeOut):Yf[e]}const u1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S$=1e-7,T$=12;function E$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=u1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>S$&&++c<T$);return a}function So(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>E$(o,0,1,e,n);return o=>o===0||o===1?o:u1(i(o),t,r)}const f1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d1=e=>t=>1-e(1-t),h1=So(.33,1.53,.69,.99),Hf=d1(h1),m1=f1(Hf),p1=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),g1=d1(qf),y1=f1(qf),v1=e=>/^0[^.\s]+$/u.test(e);function C$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||v1(e):!0}const To=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P$(e){return e==null}const A$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&A$.test(n)&&n.startsWith(e)||t&&!P$(n)&&Object.prototype.hasOwnProperty.call(n,t)),b1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},M$=e=>Zn(0,255,e),Zf={...os,transform:e=>Math.round(M$(e))},ci={test:Xf("rgb","red"),parse:b1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+To(yo.transform(r))+")"};function O$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jf={test:Xf("#"),parse:O$,transform:ci.transform},ls={test:Xf("hsl","hue"),parse:b1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(To(t))+", "+Rn.transform(To(n))+", "+To(yo.transform(r))+")"},Ct={test:e=>ci.test(e)||Jf.test(e)||ls.test(e),parse:e=>ci.test(e)?ci.parse(e):ls.test(e)?ls.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):ls.transform(e)},_$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_$))===null||n===void 0?void 0:n.length)||0)>0}const x1="number",w1="color",$$="var",D$="var(",S1="${}",N$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(N$,u=>(Ct.test(u)?(r.color.push(o),i.push(w1),n.push(Ct.parse(u))):u.startsWith(D$)?(r.var.push(o),i.push($$),n.push(u)):(r.number.push(o),i.push(x1),n.push(parseFloat(u))),++o,S1)).split(S1);return{values:n,split:c,indexes:r,types:i}}function T1(e){return Eo(e).values}function E1(e){const{split:t,types:n}=Eo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===x1?o+=To(i[a]):c===w1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const R$=e=>typeof e=="number"?0:e;function L$(e){const t=T1(e);return E1(e)(t.map(R$))}const Ar={test:I$,parse:T1,createTransformer:E1,getAnimatableNone:L$},k$=new Set(["brightness","contrast","saturate","opacity"]);function j$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=k$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const F$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(F$);return t?t.map(j$).join(" "):e}},V$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},C1=e=>V$[e];function P1(e,t){let n=C1(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const B$=new Set(["auto","none","0"]);function W$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!B$.has(o)&&Eo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=P1(n,i)}const ui=e=>e*180/Math.PI,ed=e=>{const t=ui(Math.atan2(e[1],e[0]));return td(t)},U$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ui(Math.atan(e[1])),skewY:e=>ui(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),A1=ed,M1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),z$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:M1,scaleY:O1,scale:e=>(M1(e)+O1(e))/2,rotateX:e=>td(ui(Math.atan2(e[6],e[5]))),rotateY:e=>td(ui(Math.atan2(-e[2],e[0]))),rotateZ:A1,rotate:A1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _1(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return _1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=z$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=U$,i=c}if(!i)return _1(t);const o=r[t],a=i[1].split(",").map(Y$);return typeof o=="function"?o(a):a[o]}const G$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function Y$(e){return parseFloat(e.trim())}const I1=e=>e===os||e===Se,H$=new Set(["x","y","z"]),q$=ss.filter(e=>!H$.has(e));function K$(e){const t=[];return q$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};cs.translateX=cs.x,cs.translateY=cs.y;const fi=new Set;let rd=!1,id=!1;function $1(){if(id){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=K$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,fi.forEach(e=>e.complete()),fi.clear()}function D1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function X$(){D1(),$1()}class sd{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),rd||(rd=!0,He.read(D1),He.resolveKeyframes($1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const N1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function J$(e){const t=Z$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Q$=4;function R1(e,t,n=1){Er(n<=Q$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=J$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return N1(a)?parseFloat(a):a}return Mf(i)?R1(i,t,n+1):i}const L1=e=>t=>t.test(e),k1=[os,Se,Rn,Pr,WI,BI,{test:e=>e==="auto",parse:e=>e}],j1=e=>k1.find(L1(e));class F1 extends sd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Mf(d))){const h=R1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!n1.has(r)||t.length!==2)return;const[i,o]=t,a=j1(i),c=j1(o);if(a!==c)if(I1(a)&&I1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)C$(t[i])&&r.push(i);r.length&&W$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=cs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const V1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function e6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function t6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=V1(i,t),c=V1(o,t);return ns(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:e6(e)||(n==="spring"||zf(n))&&r}const n6=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(n6),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const r6=40;class B1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>r6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&X$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!t6(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function W1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),o=ad(u,c,e),a=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},s6=[Jf,ci,ls],o6=e=>s6.find(t=>t.test(e));function U1(e){const t=o6(e);if(ns(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ls&&(n=i6(n)),n}const z1=(e,t)=>{const n=U1(e),r=U1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=ld(n.red,r.red,o),i.green=ld(n.green,r.green,o),i.blue=ld(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},a6=(e,t)=>n=>t(e(n)),Co=(...e)=>e.reduce(a6),cd=new Set(["none","hidden"]);function l6(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function c6(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?c6:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?z1:d6:Array.isArray(e)?G1:typeof e=="object"?Ct.test(e)?z1:u6:Xa}function G1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ud(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function u6(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function f6(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const d6=(e,t)=>{const n=Ar.createTransformer(t),r=Eo(e),i=Eo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?l6(e,t):Co(G1(f6(r,i),i.values),n):(ns(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function Y1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const h6=5;function H1(e,t,n){const r=Math.max(t-h6,0);return r1(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},q1=.001;function m6({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;ns(e<=kn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return q1-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),a);return(-i(d)+q1>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=g6(i,o,c);if(e=kn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const p6=12;function g6(e,t,n){let r=n;for(let i=1;i<p6;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const y6=["duration","bounce"],v6=["stiffness","damping","mass"];function K1(e,t){return t.some(n=>e[n]!==void 0)}function b6(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!K1(e,v6)&&K1(e,y6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=m6(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function X1(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=b6({...n,velocity:-Jn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Jn(Math.sqrt(u/h)),E=Math.abs(T)<5;r||(r=E?it.restSpeed.granular:it.restSpeed.default),i||(i=E?it.restDelta.granular:it.restDelta.default);let C;if(b<1){const A=fd(w,b);C=D=>{const j=Math.exp(-b*w*D);return a-j*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)C=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);C=D=>{const j=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-j*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=C(A);if(y)c.done=A>=m;else{let j=0;b<1&&(j=A===0?kn(S):H1(C,A,D));const F=Math.abs(j)<=r,U=Math.abs(a-D)<=i;c.done=F&&U}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(W1($),od),D=a1(j=>$.next(A*j).value,A,30);return A+"ms "+D}};return $}function Z1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const E=F=>-b*Math.exp(-F/r),C=F=>w+E(F),$=F=>{const U=E(F),J=C(F);p.done=Math.abs(U)<=d,p.value=p.done?w:J};let A,D;const j=F=>{y(p.value)&&(A=F,D=X1({keyframes:[p.value,S(p.value)],velocity:H1(C,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!D&&A===void 0&&(U=!0,$(F),j(F)),A!==void 0&&F>=A?D.next(F-A):(!U&&$(F),p)}}}const x6=So(.42,0,1,1),w6=So(0,0,.58,1),J1=So(.42,0,.58,1),S6=e=>Array.isArray(e)&&typeof e[0]!="number",Q1={linear:Rt,easeIn:x6,easeInOut:J1,easeOut:w6,circIn:qf,circInOut:y1,circOut:g1,backIn:Hf,backInOut:m1,backOut:h1,anticipate:p1},eb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return So(t,n,r,i)}else if(typeof e=="string")return Er(Q1[e]!==void 0,`Invalid easing type '${e}'`),Q1[e];return e};function T6(e,t,n){const r=[],i=n||Y1,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=Co(u,c)}r.push(c)}return r}function E6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=T6(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=as(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Zn(e[0],e[o-1],h)):d}function C6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=as(0,t,r);e.push(rt(n,1,i))}}function P6(e){const t=[0];return C6(t,e.length-1),t}function A6(e,t){return e.map(n=>n*t)}function M6(e,t){return e.map(()=>t||J1).splice(0,e.length-1)}function Po({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=S6(r)?r.map(eb):eb(r),o={done:!1,value:t[0]},a=A6(n&&n.length===t.length?n:P6(t),e),c=E6(a,t,{ease:Array.isArray(i)?i:M6(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const O6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},_6={decay:Z1,inertia:Z1,tween:Po,keyframes:Po,spring:X1},I6=e=>e/100;class dd extends B1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=zf(n)?n:_6[n]||Po;let u,d;process.env.NODE_ENV!=="production"&&c!==Po&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Po&&typeof t[0]!="number"&&(u=Co(I6,Y1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=W1(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),E=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),C=Zn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(C);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),j&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=O6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const $6=new Set(["opacity","clipPath","filter","transform"]);function D6(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=c1(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const N6=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,R6=2e4;function L6(e){return zf(e.type)||e.type==="spring"||!l1(e.ease)}function k6(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<R6;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const tb={anticipate:p1,backInOut:m1,circInOut:y1};function j6(e){return e in tb}class nb extends B1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new F1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&j6(o)&&(o=tb[o]),L6(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=k6(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=D6(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(o1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;o1(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=kn(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return N6()&&r&&$6.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const F6={type:"spring",stiffness:500,damping:25,restSpeed:10},V6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),B6={type:"keyframes",duration:.8},W6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},U6=(e,{keyframes:t})=>t.length>2?B6:li.has(e)?e.startsWith("scale")?V6(t[1]):F6:W6;function z6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,o)=>a=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-kn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};z6(c)||(h={...h,...U6(e,h)}),h.duration&&(h.duration=kn(h.duration)),h.repeatDelay&&(h.repeatDelay=kn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new b$([])}return!o&&nb.supports(h)?new nb(h):new dd(h)};function G6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&G6(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=s1(e);if(w){const E=window.MotionHandoffAnimation(w,m,He);E!==null&&(S.startTime=E,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&n1.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&p$(e,c)})}),d}function md(e,t,n={}){var r;const i=bo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(rb(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return Y6(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function Y6(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(H6).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(md(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function H6(e,t){return e.sortNodePosition(t)}function q6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>md(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(rb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ib(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const K6=Ef.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<K6;n++){const r=Ef[n],i=e.props[r];(po(i)||i===!1)&&(t[r]=i)}return t}const X6=[...Tf].reverse(),Z6=Tf.length;function J6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>q6(e,n,r)))}function Q6(e){let t=J6(e),n=ob(),r=!0;const i=u=>(d,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=sb(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<Z6;T++){const w=X6[T],E=n[w],C=d[w]!==void 0?d[w]:h[w],$=po(C),A=w===u?E.isActive:null;A===!1&&(S=T);let D=C===h[w]&&C!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!C&&!E.prevProp||Ua(C)||typeof C=="boolean")continue;const j=eD(E.prevProp,C);let F=j||w===u&&E.isActive&&!D&&$||T>S&&$,U=!1;const J=Array.isArray(C)?C:[C];let ee=J.reduce(i(w),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=E,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(B)&&Lf(Y)?O=!ib(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):E.protectedKeys[V]=!0}E.prevProp=C,E.prevResolvedValues=ee,E.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||U)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const E=e.getBaseTarget(w),C=e.getValue(w);C&&(C.liveStyle=!0),T[w]=E??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ob(),r=!0}}}function eD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ib(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ob(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=Q6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let nD=0;class rD extends Mr{constructor(){super(...arguments),this.id=nD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const iD={animation:{Feature:tD},exit:{Feature:rD}},vn={x:!1,y:!1};function ab(){return vn.x||vn.y}function sD(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Mo(e){return{point:{x:e.pageX,y:e.pageY}}}const oD=e=>t=>pd(t)&&e(t,Mo(t));function Oo(e,t,n,r){return Ao(e,t,oD(n),r)}function lb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const cb=1e-4,cD=1-cb,uD=1+cb,ub=.01,fD=0-ub,dD=0+ub;function _t(e){return e.max-e.min}function hD(e,t,n){return Math.abs(e-t)<=n}function fb(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cD&&e.scale<=uD||isNaN(e.scale))&&(e.scale=1),(e.translate>=fD&&e.translate<=dD||isNaN(e.translate))&&(e.translate=0)}function _o(e,t,n,r){fb(e.x,t.x,n.x,r?r.originX:void 0),fb(e.y,t.y,n.y,r?r.originY:void 0)}function db(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function mD(e,t,n){db(e.x,t.x,n.x),db(e.y,t.y,n.y)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Io(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}const mb=()=>({translate:0,scale:1,origin:0,originPoint:0}),us=()=>({x:mb(),y:mb()}),pb=()=>({min:0,max:0}),lt=()=>({x:pb(),y:pb()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function hi(e){return yd(e)||gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gb(e){return yb(e.x)||yb(e.y)}function yb(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function vb(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=vb(e.min,t,n,r,i),e.max=vb(e.max,t,n,r,i)}function bb(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const xb=.999999999999,wb=1.0000000000001;function pD(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ds(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bb(e,a)),r&&hi(o.latestValues)&&ds(e,o.latestValues))}t.x<wb&&t.x>xb&&(t.x=1),t.y<wb&&t.y>xb&&(t.y=1)}function fs(e,t){e.min=e.min+t,e.max=e.max+t}function Sb(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function ds(e,t){Sb(e.x,t.x,t.scaleX,t.scale,t.originX),Sb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tb(e,t){return lb(lD(e.getBoundingClientRect(),t))}function gD(e,t,n){const r=Tb(e,n),{scroll:i}=t;return i&&(fs(r.x,i.offset.x),fs(r.y,i.offset.y)),r}const Eb=({current:e})=>e?e.ownerDocument.defaultView:null,Cb=(e,t)=>Math.abs(e-t);function yD(e,t){const n=Cb(e.x,t.x),r=Cb(e.y,t.y);return Math.sqrt(n**2+r**2)}class Pb{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=yD(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:w}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!pd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Mo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=Co(Oo(this.contextWindow,"pointermove",this.handlePointerMove),Oo(this.contextWindow,"pointerup",this.handlePointerUp),Oo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Ab(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:Ab(e,Mb(t)),offset:Ab(e,vD(t)),velocity:bD(t,.1)}}function vD(e){return e[0]}function Mb(e){return e[e.length-1]}function bD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mb(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function Ob(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function wD(e,{top:t,left:n,bottom:r,right:i}){return{x:Ob(e.x,n,i),y:Ob(e.y,t,r)}}function _b(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function SD(e,t){return{x:_b(e.x,t.x),y:_b(e.y,t.y)}}function TD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=as(t.min,t.max-r,e.min):r>i&&(n=as(e.min,e.max-i,t.min)),Zn(0,1,n)}function ED(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wd=.35;function CD(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:Ib(e,"left","right"),y:Ib(e,"top","bottom")}}function Ib(e,t,n){return{min:$b(e,t),max:$b(e,n)}}function $b(e,t){return typeof e=="number"?e:e[t]||0}const PD=new WeakMap;class AD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Mo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sD(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const C=E.layout.layoutBox[T];C&&(w=_t(C)*(parseFloat(w)/100))}}this.originPoint[T]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(y&&this.currentDirection===null){this.currentDirection=MD(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Pb(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Eb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=xD(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=wD(i.layoutBox,n):this.constraints=!1,this.elastic=CD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ED(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!is(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=gD(r,i.root,this.visualElement.getTransformPagePoint());let a=SD(i.layout.layoutBox,o);if(n){const c=n(aD(a));this.hasMutatedConstraints=!!c,c&&(a=lb(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!is(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=TD({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;PD.set(this.visualElement,this);const t=this.visualElement.current,n=Oo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();is(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=Ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function MD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OD extends Mr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new AD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Db=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class _D extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new Pb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Eb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Db(t),onStart:Db(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Nb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Nb(e,t.target.x),r=Nb(e,t.target.y);return`${n}% ${r}%`}},ID={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class $D extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;VI(DD),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rb(e){const[t,n]=Av(),r=I.useContext(vf);return v.jsx($D,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(jv),isPresent:t,safeToRemove:n})}const DD={borderRadius:{...$o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$o,borderTopRightRadius:$o,borderBottomLeftRadius:$o,borderBottomRightRadius:$o,boxShadow:ID};function ND(e,t,n){const r=Et(e)?e:xo(e);return r.start(hd("",r,t,n)),r.animation}function RD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const LD=(e,t)=>e.depth-t.depth;class kD{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(LD),this.isDirty=!1,this.children.forEach(t)}}function jD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const Lb=["TopLeft","TopRight","BottomLeft","BottomRight"],FD=Lb.length,kb=e=>typeof e=="string"?parseFloat(e):e,jb=e=>typeof e=="number"||Se.test(e);function VD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,BD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,WD(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<FD;a++){const c=`border${Lb[a]}Radius`;let u=Fb(t,c),d=Fb(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||jb(u)===jb(d)?(e[c]=Math.max(rt(kb(u),kb(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Fb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const BD=Vb(0,.5,g1),WD=Vb(.5,.95,Rt);function Vb(e,t,n){return r=>r<e?0:r>t?1:n(as(e,t,r))}function Bb(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Bb(e.x,t.x),Bb(e.y,t.y)}function Wb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ub(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function UD(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=Ub(e.min,t,n,c,i),e.max=Ub(e.max,t,n,c,i)}function zb(e,t,[n,r,i],o,a){UD(e,t[n],t[r],t[i],t.scale,o,a)}const zD=["x","scaleX","originX"],GD=["y","scaleY","originY"];function Gb(e,t,n,r){zb(e.x,t,zD,n?n.x:void 0,r?r.x:void 0),zb(e.y,t,GD,n?n.y:void 0,r?r.y:void 0)}function Yb(e){return e.translate===0&&e.scale===1}function Hb(e){return Yb(e.x)&&Yb(e.y)}function qb(e,t){return e.min===t.min&&e.max===t.max}function YD(e,t){return qb(e.x,t.x)&&qb(e.y,t.y)}function Kb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Xb(e,t){return Kb(e.x,t.x)&&Kb(e.y,t.y)}function Zb(e){return _t(e.x)/_t(e.y)}function Jb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class HD{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qD(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],KD={visibility:"hidden"},Qb=1e3;let XD=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ex(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=s1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ex(r)}function tx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=XD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QD),this.nodes.forEach(i5),this.nodes.forEach(s5),this.nodes.forEach(e5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new kD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=RD(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=jD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(rx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||u5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!Xb(this.targetLayout,S),C=!p&&y;if(this.options.layoutRoot||this.resumeFrom||C||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const $={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||rx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ex(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nx);return}this.isUpdating||this.nodes.forEach(n5),this.isUpdating=!1,this.nodes.forEach(r5),this.nodes.forEach(ZD),this.nodes.forEach(JD),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t5),this.sharedNodes.forEach(a5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Hb(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),f5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(d5))){const{scroll:h}=this.root;h&&(fs(u.x,h.offset.x),fs(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),fs(u.x,m.offset.x),fs(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ds(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&ds(u,h.latestValues)}return hi(this.latestValues)&&ds(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Gb(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Gb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Io(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),bb(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Io(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||gb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;pD(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wb(this.prevProjectionDelta.x,this.projectionDelta.x),Wb(this.prevProjectionDelta.y,this.projectionDelta.y)),_o(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!Jb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=us(),this.projectionDelta=us(),this.projectionDeltaWithTransform=us()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,T=this.getStack(),w=!T||T.members.length<=1,E=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(c5));this.animationProgress=0;let C;this.mixTargetDelta=$=>{const A=$/1e3;ix(m.x,a.x,A),ix(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Io(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l5(this.relativeTarget,this.relativeTargetOrigin,p,A),C&&YD(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,VD(h,d,this.latestValues,A,E,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=ND(0,Qb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&cx(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),ds(c,h),_o(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new HD),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",a,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,a,d,this.animationValues),Td(`skew${Sd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return KD;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=qD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in go){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=go[b],C=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=C}else E?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(nx),this.root.sharedNodes.clear()}}}function ZD(e){e.updateLayout()}function JD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):cx(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=us();_o(c,r,n.layoutBox);const u=us();a?_o(u,e.applyTransform(i,!0),n.measuredBox):_o(u,r,n.layoutBox);const d=!Hb(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Io(S,n.layoutBox,p.layoutBox);const b=lt();Io(b,r,y.layoutBox),Xb(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t5(e){e.clearSnapshot()}function nx(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!1}function r5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i5(e){e.resolveTargetDelta()}function s5(e){e.calcProjection()}function o5(e){e.resetSkewAndRotation()}function a5(e){e.removeLeadSnapshot()}function ix(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function l5(e,t,n,r){sx(e.x,t.x,n.x,r),sx(e.y,t.y,n.y,r)}function c5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const u5={duration:.45,ease:[.4,0,.1,1]},ox=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ax=ox("applewebkit/")&&!ox("chrome/")?Math.round:Rt;function lx(e){e.min=ax(e.min),e.max=ax(e.max)}function f5(e){lx(e.x),lx(e.y)}function cx(e,t,n){return e==="position"||e==="preserve-aspect"&&!hD(Zb(t),Zb(n),.2)}function d5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const h5=tx({attachResizeListener:(e,t)=>Ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},ux=tx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new h5({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),m5={pan:{Feature:_D},drag:{Feature:OD,ProjectionNode:ux,MeasureLayout:Rb}};function p5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function fx(e,t){const n=p5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dx(e){return!(e.pointerType==="touch"||ab())}function g5(e,t,n={}){const[r,i,o]=fx(e,n),a=c=>{if(!dx(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{dx(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function hx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class y5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=g5(t,(n,r)=>(hx(this.node,r,"Start"),i=>hx(this.node,i,"End"))))}unmount(){}}class v5 extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Co(Ao(this.node.current,"focus",()=>this.onFocus()),Ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const mx=(e,t)=>t?e===t?!0:mx(e,t.parentElement):!1,b5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x5(e){return b5.has(e.tagName)||e.tabIndex!==-1}const Do=new WeakSet;function px(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const w5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=px(()=>{if(Do.has(n))return;Cd(n,"down");const i=px(()=>{Cd(n,"up")}),o=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gx(e){return pd(e)&&!ab()}function S5(e,t,n={}){const[r,i,o]=fx(e,n),a=c=>{const u=c.currentTarget;if(!gx(c)||Do.has(u))return;Do.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!gx(y)||!Do.has(u))&&(Do.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||mx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>w5(d,i)),!x5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function yx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class T5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=S5(t,(n,r)=>(yx(this.node,r,"Start"),(i,{success:o})=>yx(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,E5=e=>{const t=Pd.get(e.target);t&&t(e)},C5=e=>{e.forEach(E5)};function P5({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(C5,{root:e,...t})),r[i]}function A5(e,t,n){const r=P5(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const M5={some:0,all:1};class O5 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:M5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return A5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_5(t,n))&&this.startObserver()}unmount(){}}function _5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const I5={inView:{Feature:O5},tap:{Feature:T5},focus:{Feature:v5},hover:{Feature:y5}},$5={layout:{ProjectionNode:ux,MeasureLayout:Rb}},Md={current:null},vx={current:!1};function D5(){if(vx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Md.current=e.matches;e.addListener(t),t()}else Md.current=!1}const N5=[...k1,Ct,Ar],R5=e=>N5.find(L1(e)),L5=new WeakMap;function k5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,xo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,xo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class j5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Ln.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=Rv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,L5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),vx.current||D5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Md.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rs){const n=rs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<bx.length;r++){const i=bx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=k5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(N1(i)||v1(i))?i=parseFloat(i):!R5(i)&&Ar.test(n)&&(i=P1(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Rf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xx extends j5{constructor(){super(...arguments),this.KeyframeResolver=F1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function F5(e){return window.getComputedStyle(e)}class V5 extends xx{constructor(){super(...arguments),this.type="html",this.renderInstance=Zv}readValueFromInstance(t,n){if(li.has(n))return G$(t,n);{const r=F5(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tb(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class B5 extends xx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Xv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=C1(n);return r&&r.default||0}return n=Jv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return e1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Df(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Qv(t,n,r,i)}mount(t){this.isSVGTag=Nf(t.tagName),super.mount(t)}}const W5=(e,t)=>$f(e)?new B5(t):new V5(t,{allowProjection:e!==I.Fragment}),U5=u$({...iD,...I5,...m5,...$5},W5),qe=AI(U5),Od={defaultColorScheme:"aqua",t:e=>e},wx=I.createContext(Od),Ue=()=>I.useContext(wx),Sx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return v.jsx(Nn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(qe.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(ws,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&v.jsx(xi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(xi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(gI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const vI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(bI),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(yI,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function bI(){return new Map}function Av(e=!0){const t=_.useContext(ka);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function Mv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Nn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Av(a),h=_.useMemo(()=>Mv(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),y=_.useRef(h),S=bf(()=>new Map),[b,T]=_.useState(h),[w,A]=_.useState(h);Pv(()=>{p.current=!1,y.current=h;for(let P=0;P<w.length;P++){const N=ja(w[P]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[w,m.length,m.join("-")]);const E=[];if(h!==b){let P=[...h];for(let N=0;N<w.length;N++){const j=w[N],F=ja(j);m.includes(F)||(P.splice(N,0,j),E.push(j))}return o==="wait"&&E.length&&(P=E),A(Mv(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(vf);return v.jsx(v.Fragment,{children:w.map(P=>{const N=ja(P),j=a&&!u?!1:h===w||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let U=!0;S.forEach(Z=>{Z||(U=!1)}),U&&($==null||$(),A(y.current),a&&(d==null||d()),r&&r())};return v.jsx(vI,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:P},N)})})},Rt=e=>e;let ns=Rt,Er=Rt;process.env.NODE_ENV!=="production"&&(ns=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const xI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Ov={value:null};function wI(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,y=!1)=>{const b=y&&i?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Ov.value&&Ov.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const SI=40;function _v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,A)=>(w[A]=wI(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,SI),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,A)=>{const E=a[A];return w[A]=($,P=!1,N=!1)=>(n||S(),E.schedule($,P,N)),w},{}),cancel:w=>{for(let A=0;A<Fa.length;A++)a[Fa[A]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=_v(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),Iv=_.createContext({strict:!1}),$v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rs={};for(const e in $v)rs[e]={isEnabled:t=>$v[e].some(n=>!!t[n])};function TI(e){for(const t in e)rs[t]={...rs[t],...e[t]}}const EI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EI.has(e)}let Dv=e=>!Va(e);function CI(e){e&&(Dv=t=>t.startsWith("on")?!Va(t):e(t))}try{CI(require("@emotion/is-prop-valid").default)}catch{}function PI(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Dv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Nv=new Set;function Ba(e,t,n){e||Nv.has(t)||(console.warn(t),Nv.add(t))}function AI(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Wa=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function po(e){return typeof e=="string"||Array.isArray(e)}const Tf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ef=["initial",...Tf];function za(e){return Ua(e.animate)||Ef.some(t=>po(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function MI(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||po(n)?n:void 0,animate:po(r)?r:void 0}}return e.inherit!==!1?t:{}}function OI(e){const{initial:t,animate:n}=MI(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[Lv(t),Lv(n)])}function Lv(e){return Array.isArray(e)?e.join(" "):e}const _I=Symbol.for("motionComponentSymbol");function is(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function II(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):is(n)&&(n.current=r))},[t])}const{schedule:Cf}=_v(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kv="data-"+Pf("framerAppearId"),jv=_.createContext({});function $I(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Iv),d=_.useContext(ka),h=_.useContext(wf).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,y=_.useContext(jv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&DI(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[kv],T=_.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Pv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Cf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),T.current=!1))}),p}function DI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&is(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Fv(e){if(e)return e.options.allowProjection!==!1?e.projection:Fv(e.parent)}function NI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&TI(e);function c(d,h){let m;const p={..._.useContext(wf),...d,layoutId:RI(d)},{isStatic:y}=p,S=OI(d),b=r(d,y);if(!y&&xf){LI(p,e);const T=kI(p);m=T.MeasureLayout,S.visualElement=$I(i,b,p,t,T.ProjectionNode)}return v.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?v.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,II(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[_I]=i,u}function RI({layoutId:e}){const t=_.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function LI(e,t){const n=_.useContext(Iv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ns(!1,r):Er(!1,r)}}function kI(e){const{drag:t,layout:n}=rs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Vv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=Vv("--"),jI=Vv("var(--"),Mf=e=>jI(e)?FI.test(e.split("/*")[0].trim()):!1,FI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,go={};function VI(e){for(const t in e)go[t]=e[t],Af(t)&&(go[t].isCSSVariable=!0)}const ss=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(ss);function Bv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!go[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Wv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,os={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yo={...os,transform:e=>Zn(0,1,e)},Ga={...os,default:1},vo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=vo("deg"),Rn=vo("%"),Se=vo("px"),BI=vo("vh"),WI=vo("vw"),Uv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},UI={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},zI={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:yo,originX:Uv,originY:Uv,originZ:Se},zv={...os,transform:Math.round},Of={...UI,...zI,zIndex:zv,size:Se,fillOpacity:yo,strokeOpacity:yo,numOctaves:zv},GI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YI=ss.length;function HI(e,t,n){let r="",i=!0;for(let o=0;o<YI;o++){const a=ss[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Wv(c,Of[a]);if(!u){i=!1;const h=GI[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _f(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(li.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Wv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=HI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gv(e,t,n){for(const r in t)!Et(t[r])&&!Bv(r,n)&&(e[r]=t[r])}function qI({transformTemplate:e},t){return _.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KI(e,t){const n=e.style||{},r={};return Gv(r,n,e),Object.assign(r,qI(e,t)),r}function XI(e,t){const n={},r=KI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ZI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $f(e){return typeof e!="string"||e.includes("-")?!1:!!(ZI.indexOf(e)>-1||/[A-Z]/u.test(e))}const JI={offset:"stroke-dashoffset",array:"stroke-dasharray"},QI={offset:"strokeDashoffset",array:"strokeDasharray"};function e$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JI:QI;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Yv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function t$(e,t,n){const r=Yv(t,e.x,e.width),i=Yv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(_f(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:S}=e;p.transform&&(S&&(y.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=t$(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&e$(p,a,c,u,!1)}const Hv=()=>({...If(),attrs:{}}),Nf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function n$(e,t,n,r){const i=_.useMemo(()=>{const o=Hv();return Df(o,t,Nf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Gv(o,e.style,e),i.style={...o,...i.style}}return i}function r$(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?n$:XI)(r,o,a,n),d=PI(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function qv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rf(e,t,n,r){if(typeof t=="function"){const[i,o]=qv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=qv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),i$=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s$=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return i$(t)?t.toValue():t}function o$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:a$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Kv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(ka),o=()=>o$(e,t,r,i);return n?o():bf(o)};function a$(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Rv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let y=0;y<p.length;y++){const S=Rf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const A in w){let E=w[A];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[A]=E)}for(const A in b)i[A]=b[A]}}}return i}function kf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Bv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const l$={useVisualState:Kv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function Xv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Zv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Jv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qv(e,t,n,r){Zv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Jv.has(i)?i:Pf(i),t.attrs[i])}function e1(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=ss.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const t1=["x","y","width","height","cx","cy","r"],c$={useVisualState:Kv({scrapeMotionValuesFromProps:e1,createRenderState:Hv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<t1.length;c++){const u=t1[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Xv(n,r),He.render(()=>{Df(r,i,Nf(n.tagName),e.transformTemplate),Qv(n,r)})})}})};function u$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?c$:l$,preloadedFeatures:e,useRender:r$(i),createVisualElement:t,Component:r};return NI(a)}}function bo(e,t,n){const r=e.getProps();return Rf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const n1=new Set(["width","height","top","left","right","bottom",...ss]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function Vf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>Vf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function r1(e,t){return t?e*(1e3/t):0}let Ha;function f$(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||xI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(f$)}},i1=30,d$=e=>!isNaN(parseFloat(e));class h${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=d$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>i1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,i1);return r1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xo(e,t){return new h$(e,t)}function m$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xo(n))}function p$(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=s$(o[a]);m$(e,a,c)}}function g$(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(g$(n))return n.add(t)}function s1(e){return e.props[kv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const y$=Uf(()=>window.ScrollTimeline!==void 0);class v${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(y$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class b$ extends v${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const kn=e=>e*1e3,Jn=e=>e/1e3;function zf(e){return typeof e=="function"}function o1(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",x$={linearEasing:void 0};function w$(e,t){const n=Uf(e);return()=>{var r;return(r=x$[t])!==null&&r!==void 0?r:n()}}const qa=w$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},a1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(as(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function l1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(l1))}const wo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wo([0,.65,.55,1]),circOut:wo([.55,0,1,.45]),backIn:wo([.31,.01,.66,-.59]),backOut:wo([.33,1.53,.69,.99])};function c1(e,t){if(e)return typeof e=="function"&&qa()?a1(e,t):Gf(e)?wo(e):Array.isArray(e)?e.map(n=>c1(n,t)||Yf.easeOut):Yf[e]}const u1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S$=1e-7,T$=12;function E$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=u1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>S$&&++c<T$);return a}function So(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>E$(o,0,1,e,n);return o=>o===0||o===1?o:u1(i(o),t,r)}const f1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d1=e=>t=>1-e(1-t),h1=So(.33,1.53,.69,.99),Hf=d1(h1),m1=f1(Hf),p1=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),g1=d1(qf),y1=f1(qf),v1=e=>/^0[^.\s]+$/u.test(e);function C$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||v1(e):!0}const To=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P$(e){return e==null}const A$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&A$.test(n)&&n.startsWith(e)||t&&!P$(n)&&Object.prototype.hasOwnProperty.call(n,t)),b1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},M$=e=>Zn(0,255,e),Zf={...os,transform:e=>Math.round(M$(e))},ci={test:Xf("rgb","red"),parse:b1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+To(yo.transform(r))+")"};function O$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jf={test:Xf("#"),parse:O$,transform:ci.transform},ls={test:Xf("hsl","hue"),parse:b1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(To(t))+", "+Rn.transform(To(n))+", "+To(yo.transform(r))+")"},Ct={test:e=>ci.test(e)||Jf.test(e)||ls.test(e),parse:e=>ci.test(e)?ci.parse(e):ls.test(e)?ls.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):ls.transform(e)},_$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_$))===null||n===void 0?void 0:n.length)||0)>0}const x1="number",w1="color",$$="var",D$="var(",S1="${}",N$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(N$,u=>(Ct.test(u)?(r.color.push(o),i.push(w1),n.push(Ct.parse(u))):u.startsWith(D$)?(r.var.push(o),i.push($$),n.push(u)):(r.number.push(o),i.push(x1),n.push(parseFloat(u))),++o,S1)).split(S1);return{values:n,split:c,indexes:r,types:i}}function T1(e){return Eo(e).values}function E1(e){const{split:t,types:n}=Eo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===x1?o+=To(i[a]):c===w1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const R$=e=>typeof e=="number"?0:e;function L$(e){const t=T1(e);return E1(e)(t.map(R$))}const Ar={test:I$,parse:T1,createTransformer:E1,getAnimatableNone:L$},k$=new Set(["brightness","contrast","saturate","opacity"]);function j$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=k$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const F$=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(F$);return t?t.map(j$).join(" "):e}},V$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Qf,WebkitFilter:Qf},C1=e=>V$[e];function P1(e,t){let n=C1(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const B$=new Set(["auto","none","0"]);function W$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!B$.has(o)&&Eo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=P1(n,i)}const ui=e=>e*180/Math.PI,ed=e=>{const t=ui(Math.atan2(e[1],e[0]));return td(t)},U$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ed,rotateZ:ed,skewX:e=>ui(Math.atan(e[1])),skewY:e=>ui(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>(e=e%360,e<0&&(e+=360),e),A1=ed,M1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),z$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:M1,scaleY:O1,scale:e=>(M1(e)+O1(e))/2,rotateX:e=>td(ui(Math.atan2(e[6],e[5]))),rotateY:e=>td(ui(Math.atan2(-e[2],e[0]))),rotateZ:A1,rotate:A1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _1(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return _1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=z$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=U$,i=c}if(!i)return _1(t);const o=r[t],a=i[1].split(",").map(Y$);return typeof o=="function"?o(a):a[o]}const G$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function Y$(e){return parseFloat(e.trim())}const I1=e=>e===os||e===Se,H$=new Set(["x","y","z"]),q$=ss.filter(e=>!H$.has(e));function K$(e){const t=[];return q$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};cs.translateX=cs.x,cs.translateY=cs.y;const fi=new Set;let rd=!1,id=!1;function $1(){if(id){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=K$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}id=!1,rd=!1,fi.forEach(e=>e.complete()),fi.clear()}function D1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function X$(){D1(),$1()}class sd{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),rd||(rd=!0,He.read(D1),He.resolveKeyframes($1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const N1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Z$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function J$(e){const t=Z$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Q$=4;function R1(e,t,n=1){Er(n<=Q$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=J$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return N1(a)?parseFloat(a):a}return Mf(i)?R1(i,t,n+1):i}const L1=e=>t=>t.test(e),k1=[os,Se,Rn,Pr,WI,BI,{test:e=>e==="auto",parse:e=>e}],j1=e=>k1.find(L1(e));class F1 extends sd{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Mf(d))){const h=R1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!n1.has(r)||t.length!==2)return;const[i,o]=t,a=j1(i),c=j1(o);if(a!==c)if(I1(a)&&I1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)C$(t[i])&&r.push(i);r.length&&W$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=cs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const V1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function e6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function t6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=V1(i,t),c=V1(o,t);return ns(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:e6(e)||(n==="spring"||zf(n))&&r}const n6=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(n6),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const r6=40;class B1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>r6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&X$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!t6(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const od=2e4;function W1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<od;)t+=n,r=e.next(t);return t>=od?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ad(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ad(u,c,e+1/3),o=ad(u,c,e),a=ad(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const ld=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},s6=[Jf,ci,ls],o6=e=>s6.find(t=>t.test(e));function U1(e){const t=o6(e);if(ns(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ls&&(n=i6(n)),n}const z1=(e,t)=>{const n=U1(e),r=U1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=ld(n.red,r.red,o),i.green=ld(n.green,r.green,o),i.blue=ld(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},a6=(e,t)=>n=>t(e(n)),Co=(...e)=>e.reduce(a6),cd=new Set(["none","hidden"]);function l6(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function c6(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?c6:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?z1:d6:Array.isArray(e)?G1:typeof e=="object"?Ct.test(e)?z1:u6:Xa}function G1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ud(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function u6(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ud(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function f6(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const d6=(e,t)=>{const n=Ar.createTransformer(t),r=Eo(e),i=Eo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?cd.has(e)&&!i.values.length||cd.has(t)&&!r.values.length?l6(e,t):Co(G1(f6(r,i),i.values),n):(ns(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function Y1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const h6=5;function H1(e,t,n){const r=Math.max(t-h6,0);return r1(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},q1=.001;function m6({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;ns(e<=kn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return q1-p/y*S},o=d=>{const m=d*a*e,p=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=fd(Math.pow(d,2),a);return(-i(d)+q1>0?-1:1)*((p-y)*S)/b}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=g6(i,o,c);if(e=kn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const p6=12;function g6(e,t,n){let r=n;for(let i=1;i<p6;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const y6=["duration","bounce"],v6=["stiffness","damping","mass"];function K1(e,t){return t.some(n=>e[n]!==void 0)}function b6(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!K1(e,v6)&&K1(e,y6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=m6(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function X1(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:y}=b6({...n,velocity:-Jn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Jn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),i||(i=A?it.restDelta.granular:it.restDelta.default);let E;if(b<1){const P=fd(w,b);E=N=>{const j=Math.exp(-b*w*N);return a-j*((S+b*w*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(b===1)E=P=>a-Math.exp(-w*P)*(T+(S+w*T)*P);else{const P=w*Math.sqrt(b*b-1);E=N=>{const j=Math.exp(-b*w*N),F=Math.min(P*N,300);return a-j*((S+b*w*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:y&&m||null,next:P=>{const N=E(P);if(y)c.done=P>=m;else{let j=0;b<1&&(j=P===0?kn(S):H1(E,P,N));const F=Math.abs(j)<=r,U=Math.abs(a-N)<=i;c.done=F&&U}return c.value=c.done?a:N,c},toString:()=>{const P=Math.min(W1($),od),N=a1(j=>$.next(P*j).value,P,30);return P+"ms "+N}};return $}function Z1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,w=a===void 0?T:a(T);w!==T&&(b=w-m);const A=F=>-b*Math.exp(-F/r),E=F=>w+A(F),$=F=>{const U=A(F),Z=E(F);p.done=Math.abs(U)<=d,p.value=p.done?w:Z};let P,N;const j=F=>{y(p.value)&&(P=F,N=X1({keyframes:[p.value,S(p.value)],velocity:H1(E,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let U=!1;return!N&&P===void 0&&(U=!0,$(F),j(F)),P!==void 0&&F>=P?N.next(F-P):(!U&&$(F),p)}}}const x6=So(.42,0,1,1),w6=So(0,0,.58,1),J1=So(.42,0,.58,1),S6=e=>Array.isArray(e)&&typeof e[0]!="number",Q1={linear:Rt,easeIn:x6,easeInOut:J1,easeOut:w6,circIn:qf,circInOut:y1,circOut:g1,backIn:Hf,backInOut:m1,backOut:h1,anticipate:p1},eb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return So(t,n,r,i)}else if(typeof e=="string")return Er(Q1[e]!==void 0,`Invalid easing type '${e}'`),Q1[e];return e};function T6(e,t,n){const r=[],i=n||Y1,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=Co(u,c)}r.push(c)}return r}function E6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=T6(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=as(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Zn(e[0],e[o-1],h)):d}function C6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=as(0,t,r);e.push(rt(n,1,i))}}function P6(e){const t=[0];return C6(t,e.length-1),t}function A6(e,t){return e.map(n=>n*t)}function M6(e,t){return e.map(()=>t||J1).splice(0,e.length-1)}function Po({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=S6(r)?r.map(eb):eb(r),o={done:!1,value:t[0]},a=A6(n&&n.length===t.length?n:P6(t),e),c=E6(a,t,{ease:Array.isArray(i)?i:M6(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const O6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},_6={decay:Z1,inertia:Z1,tween:Po,keyframes:Po,spring:X1},I6=e=>e/100;class dd extends B1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||sd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=zf(n)?n:_6[n]||Po;let u,d;process.env.NODE_ENV!=="production"&&c!==Po&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Po&&typeof t[0]!="number"&&(u=Co(I6,Y1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=W1(h));const{calculatedDuration:m}=h,p=m+i,y=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:y,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let U=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&U--,U=Math.min(U,y+1),!!(U%2)&&(S==="reverse"?(Z=1-Z,b&&(Z-=b/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const P=A?{done:!1,value:u[0]}:$.next(E);c&&(P.value=c(P.value));let{done:N}=P;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return j&&i!==void 0&&(P.value=Ka(u,this.options,i)),T&&T(P.value),j&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=O6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const $6=new Set(["opacity","clipPath","filter","transform"]);function D6(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=c1(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const N6=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,R6=2e4;function L6(e){return zf(e.type)||e.type==="spring"||!l1(e.ease)}function k6(e,t){const n=new dd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<R6;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const tb={anticipate:p1,backInOut:m1,circInOut:y1};function j6(e){return e in tb}class nb extends B1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new F1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&j6(o)&&(o=tb[o]),L6(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=k6(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=D6(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(o1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;o1(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...y}=this.options,S=new dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=kn(this.time);d.setWithVelocity(S.sample(b-Za).value,S.sample(b).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return N6()&&r&&$6.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const F6={type:"spring",stiffness:500,damping:25,restSpeed:10},V6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),B6={type:"keyframes",duration:.8},W6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},U6=(e,{keyframes:t})=>t.length>2?B6:li.has(e)?e.startsWith("scale")?V6(t[1]):F6:W6;function z6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const hd=(e,t,n,r={},i,o)=>a=>{const c=jf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-kn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};z6(c)||(h={...h,...U6(e,h)}),h.duration&&(h.duration=kn(h.duration)),h.repeatDelay&&(h.repeatDelay=kn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new b$([])}return!o&&nb.supports(h)?new nb(h):new dd(h)};function G6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&G6(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=s1(e);if(w){const A=window.MotionHandoffAnimation(w,m,He);A!==null&&(S.startTime=A,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&n1.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&p$(e,c)})}),d}function md(e,t,n={}){var r;const i=bo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(rb(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return Y6(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function Y6(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(H6).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(md(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function H6(e,t){return e.sortNodePosition(t)}function q6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>md(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=md(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(rb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ib(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const K6=Ef.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<K6;n++){const r=Ef[n],i=e.props[r];(po(i)||i===!1)&&(t[r]=i)}return t}const X6=[...Tf].reverse(),Z6=Tf.length;function J6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>q6(e,n,r)))}function Q6(e){let t=J6(e),n=ob(),r=!0;const i=u=>(d,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=sb(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<Z6;T++){const w=X6[T],A=n[w],E=d[w]!==void 0?d[w]:h[w],$=po(E),P=w===u?A.isActive:null;P===!1&&(S=T);let N=E===h[w]&&E!==d[w]&&$;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...y},!A.isActive&&P===null||!E&&!A.prevProp||Ua(E)||typeof E=="boolean")continue;const j=eD(A.prevProp,E);let F=j||w===u&&A.isActive&&!N&&$||T>S&&$,U=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(w),{});P===!1&&(ee={});const{prevResolvedValues:se={}}=A,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(U=!0,p.delete(V)),A.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(B)&&Lf(Y)?O=!ib(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=ee,A.isActive&&(y={...y,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&j)||U)&&m.push(...Z.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const A=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),T[w]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ob(),r=!0}}}function eD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ib(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ob(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=Q6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let nD=0;class rD extends Mr{constructor(){super(...arguments),this.id=nD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const iD={animation:{Feature:tD},exit:{Feature:rD}},vn={x:!1,y:!1};function ab(){return vn.x||vn.y}function sD(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function Ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const pd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Mo(e){return{point:{x:e.pageX,y:e.pageY}}}const oD=e=>t=>pd(t)&&e(t,Mo(t));function Oo(e,t,n,r){return Ao(e,t,oD(n),r)}function lb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const cb=1e-4,cD=1-cb,uD=1+cb,ub=.01,fD=0-ub,dD=0+ub;function _t(e){return e.max-e.min}function hD(e,t,n){return Math.abs(e-t)<=n}function fb(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cD&&e.scale<=uD||isNaN(e.scale))&&(e.scale=1),(e.translate>=fD&&e.translate<=dD||isNaN(e.translate))&&(e.translate=0)}function _o(e,t,n,r){fb(e.x,t.x,n.x,r?r.originX:void 0),fb(e.y,t.y,n.y,r?r.originY:void 0)}function db(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function mD(e,t,n){db(e.x,t.x,n.x),db(e.y,t.y,n.y)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Io(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}const mb=()=>({translate:0,scale:1,origin:0,originPoint:0}),us=()=>({x:mb(),y:mb()}),pb=()=>({min:0,max:0}),lt=()=>({x:pb(),y:pb()});function rn(e){return[e("x"),e("y")]}function gd(e){return e===void 0||e===1}function yd({scale:e,scaleX:t,scaleY:n}){return!gd(e)||!gd(t)||!gd(n)}function hi(e){return yd(e)||gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gb(e){return yb(e.x)||yb(e.y)}function yb(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function vb(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=vb(e.min,t,n,r,i),e.max=vb(e.max,t,n,r,i)}function bb(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const xb=.999999999999,wb=1.0000000000001;function pD(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ds(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bb(e,a)),r&&hi(o.latestValues)&&ds(e,o.latestValues))}t.x<wb&&t.x>xb&&(t.x=1),t.y<wb&&t.y>xb&&(t.y=1)}function fs(e,t){e.min=e.min+t,e.max=e.max+t}function Sb(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function ds(e,t){Sb(e.x,t.x,t.scaleX,t.scale,t.originX),Sb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tb(e,t){return lb(lD(e.getBoundingClientRect(),t))}function gD(e,t,n){const r=Tb(e,n),{scroll:i}=t;return i&&(fs(r.x,i.offset.x),fs(r.y,i.offset.y)),r}const Eb=({current:e})=>e?e.ownerDocument.defaultView:null,Cb=(e,t)=>Math.abs(e-t);function yD(e,t){const n=Cb(e.x,t.x),r=Cb(e.y,t.y);return Math.sqrt(n**2+r**2)}class Pb{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=xd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=yD(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:w}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=xd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),S&&S(m,T)},!pd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Mo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,xd(c,this.history)),this.removeListeners=Co(Oo(this.contextWindow,"pointermove",this.handlePointerMove),Oo(this.contextWindow,"pointerup",this.handlePointerUp),Oo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Ab(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:Ab(e,Mb(t)),offset:Ab(e,vD(t)),velocity:bD(t,.1)}}function vD(e){return e[0]}function Mb(e){return e[e.length-1]}function bD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mb(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function Ob(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function wD(e,{top:t,left:n,bottom:r,right:i}){return{x:Ob(e.x,n,i),y:Ob(e.y,t,r)}}function _b(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function SD(e,t){return{x:_b(e.x,t.x),y:_b(e.y,t.y)}}function TD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=as(t.min,t.max-r,e.min):r>i&&(n=as(e.min,e.max-i,t.min)),Zn(0,1,n)}function ED(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wd=.35;function CD(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:Ib(e,"left","right"),y:Ib(e,"top","bottom")}}function Ib(e,t,n){return{min:$b(e,t),max:$b(e,n)}}function $b(e,t){return typeof e=="number"?e:e[t]||0}const PD=new WeakMap;class AD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Mo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sD(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let w=this.getAxisMotionValue(T).get()||0;if(Rn.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const E=A.layout.layoutBox[T];E&&(w=_t(E)*(parseFloat(w)/100))}}this.originPoint[T]=w}),S&&He.postRender(()=>S(h,m)),Wf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(y&&this.currentDirection===null){this.currentDirection=MD(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Pb(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Eb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=xD(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&is(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=wD(i.layoutBox,n):this.constraints=!1,this.elastic=CD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ED(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!is(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=gD(r,i.root,this.visualElement.getTransformPagePoint());let a=SD(i.layout.layoutBox,o);if(n){const c=n(aD(a));this.hasMutatedConstraints=!!c,c&&(a=lb(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Wf(this.visualElement,t),r.start(hd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!is(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=TD({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;PD.set(this.visualElement,this);const t=this.visualElement.current,n=Oo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();is(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=Ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function MD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OD extends Mr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new AD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Db=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class _D extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new Pb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Eb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Db(t),onStart:Db(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Nb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $o={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Nb(e,t.target.x),r=Nb(e,t.target.y);return`${n}% ${r}%`}},ID={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class $D extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;VI(DD),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Cf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rb(e){const[t,n]=Av(),r=_.useContext(vf);return v.jsx($D,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(jv),isPresent:t,safeToRemove:n})}const DD={borderRadius:{...$o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$o,borderTopRightRadius:$o,borderBottomLeftRadius:$o,borderBottomRightRadius:$o,boxShadow:ID};function ND(e,t,n){const r=Et(e)?e:xo(e);return r.start(hd("",r,t,n)),r.animation}function RD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const LD=(e,t)=>e.depth-t.depth;class kD{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){Vf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(LD),this.isDirty=!1,this.children.forEach(t)}}function jD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const Lb=["TopLeft","TopRight","BottomLeft","BottomRight"],FD=Lb.length,kb=e=>typeof e=="string"?parseFloat(e):e,jb=e=>typeof e=="number"||Se.test(e);function VD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,BD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,WD(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<FD;a++){const c=`border${Lb[a]}Radius`;let u=Fb(t,c),d=Fb(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||jb(u)===jb(d)?(e[c]=Math.max(rt(kb(u),kb(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Fb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const BD=Vb(0,.5,g1),WD=Vb(.5,.95,Rt);function Vb(e,t,n){return r=>r<e?0:r>t?1:n(as(e,t,r))}function Bb(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Bb(e.x,t.x),Bb(e.y,t.y)}function Wb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ub(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function UD(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=Ub(e.min,t,n,c,i),e.max=Ub(e.max,t,n,c,i)}function zb(e,t,[n,r,i],o,a){UD(e,t[n],t[r],t[i],t.scale,o,a)}const zD=["x","scaleX","originX"],GD=["y","scaleY","originY"];function Gb(e,t,n,r){zb(e.x,t,zD,n?n.x:void 0,r?r.x:void 0),zb(e.y,t,GD,n?n.y:void 0,r?r.y:void 0)}function Yb(e){return e.translate===0&&e.scale===1}function Hb(e){return Yb(e.x)&&Yb(e.y)}function qb(e,t){return e.min===t.min&&e.max===t.max}function YD(e,t){return qb(e.x,t.x)&&qb(e.y,t.y)}function Kb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Xb(e,t){return Kb(e.x,t.x)&&Kb(e.y,t.y)}function Zb(e){return _t(e.x)/_t(e.y)}function Jb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class HD{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(Vf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qD(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Sd=["","X","Y","Z"],KD={visibility:"hidden"},Qb=1e3;let XD=0;function Td(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ex(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=s1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ex(r)}function tx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=XD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(QD),this.nodes.forEach(i5),this.nodes.forEach(s5),this.nodes.forEach(e5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new kD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Bf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=RD(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=jD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(rx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||u5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!Xb(this.targetLayout,S),E=!p&&y;if(this.options.layoutRoot||this.resumeFrom||E||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||rx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ex(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nx);return}this.isUpdating||this.nodes.forEach(n5),this.isUpdating=!1,this.nodes.forEach(r5),this.nodes.forEach(ZD),this.nodes.forEach(JD),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Sf.update.process(vt),Sf.preRender.process(vt),Sf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t5),this.sharedNodes.forEach(a5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Hb(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),f5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(d5))){const{scroll:h}=this.root;h&&(fs(u.x,h.offset.x),fs(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),fs(u.x,m.offset.x),fs(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ds(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&ds(u,h.latestValues)}return hi(this.latestValues)&&ds(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Gb(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Gb(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Io(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),bb(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Io(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||yd(this.parent.latestValues)||gb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,y=this.treeScale.y;pD(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wb(this.prevProjectionDelta.x,this.projectionDelta.x),Wb(this.prevProjectionDelta.y,this.projectionDelta.y)),_o(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!Jb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=us(),this.projectionDelta=us(),this.projectionDeltaWithTransform=us()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=y!==S,T=this.getStack(),w=!T||T.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(c5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const P=$/1e3;ix(m.x,a.x,P),ix(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Io(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l5(this.relativeTarget,this.relativeTargetOrigin,p,P),E&&YD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),b&&(this.animationValues=h,VD(h,d,this.latestValues,P,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=ND(0,Qb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&cx(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),ds(c,h),_o(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new HD),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Td("z",a,d,this.animationValues);for(let h=0;h<Sd.length;h++)Td(`rotate${Sd[h]}`,a,d,this.animationValues),Td(`skew${Sd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return KD;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=qD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in go){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:A}=go[b],E=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let P=0;P<$;P++)d[w[P]]=E}else A?this.options.visualElement.renderState.vars[b]=E:d[b]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(nx),this.root.sharedNodes.clear()}}}function ZD(e){e.updateLayout()}function JD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(p);p.min=r[m].min,p.max=p.min+y}):cx(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);p.max=p.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=us();_o(c,r,n.layoutBox);const u=us();a?_o(u,e.applyTransform(i,!0),n.measuredBox):_o(u,r,n.layoutBox);const d=!Hb(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const S=lt();Io(S,n.layoutBox,p.layoutBox);const b=lt();Io(b,r,y.layoutBox),Xb(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t5(e){e.clearSnapshot()}function nx(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!1}function r5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i5(e){e.resolveTargetDelta()}function s5(e){e.calcProjection()}function o5(e){e.resetSkewAndRotation()}function a5(e){e.removeLeadSnapshot()}function ix(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function l5(e,t,n,r){sx(e.x,t.x,n.x,r),sx(e.y,t.y,n.y,r)}function c5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const u5={duration:.45,ease:[.4,0,.1,1]},ox=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ax=ox("applewebkit/")&&!ox("chrome/")?Math.round:Rt;function lx(e){e.min=ax(e.min),e.max=ax(e.max)}function f5(e){lx(e.x),lx(e.y)}function cx(e,t,n){return e==="position"||e==="preserve-aspect"&&!hD(Zb(t),Zb(n),.2)}function d5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const h5=tx({attachResizeListener:(e,t)=>Ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},ux=tx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new h5({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),m5={pan:{Feature:_D},drag:{Feature:OD,ProjectionNode:ux,MeasureLayout:Rb}};function p5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function fx(e,t){const n=p5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dx(e){return!(e.pointerType==="touch"||ab())}function g5(e,t,n={}){const[r,i,o]=fx(e,n),a=c=>{if(!dx(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{dx(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function hx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class y5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=g5(t,(n,r)=>(hx(this.node,r,"Start"),i=>hx(this.node,i,"End"))))}unmount(){}}class v5 extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Co(Ao(this.node.current,"focus",()=>this.onFocus()),Ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const mx=(e,t)=>t?e===t?!0:mx(e,t.parentElement):!1,b5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x5(e){return b5.has(e.tagName)||e.tabIndex!==-1}const Do=new WeakSet;function px(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const w5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=px(()=>{if(Do.has(n))return;Cd(n,"down");const i=px(()=>{Cd(n,"up")}),o=()=>Cd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gx(e){return pd(e)&&!ab()}function S5(e,t,n={}){const[r,i,o]=fx(e,n),a=c=>{const u=c.currentTarget;if(!gx(c)||Do.has(u))return;Do.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!gx(y)||!Do.has(u))&&(Do.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||mx(u,y.target))},p=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>w5(d,i)),!x5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function yx(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Mo(t)))}class T5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=S5(t,(n,r)=>(yx(this.node,r,"Start"),(i,{success:o})=>yx(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,E5=e=>{const t=Pd.get(e.target);t&&t(e)},C5=e=>{e.forEach(E5)};function P5({root:e,...t}){const n=e||document;Ad.has(n)||Ad.set(n,{});const r=Ad.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(C5,{root:e,...t})),r[i]}function A5(e,t,n){const r=P5(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const M5={some:0,all:1};class O5 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:M5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return A5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_5(t,n))&&this.startObserver()}unmount(){}}function _5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const I5={inView:{Feature:O5},tap:{Feature:T5},focus:{Feature:v5},hover:{Feature:y5}},$5={layout:{ProjectionNode:ux,MeasureLayout:Rb}},Md={current:null},vx={current:!1};function D5(){if(vx.current=!0,!!xf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Md.current=e.matches;e.addListener(t),t()}else Md.current=!1}const N5=[...k1,Ct,Ar],R5=e=>N5.find(L1(e)),L5=new WeakMap;function k5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,xo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,xo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class j5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=sd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Ln.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=Rv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in p){const S=p[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,L5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),vx.current||D5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Md.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rs){const n=rs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<bx.length;r++){const i=bx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=k5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(N1(i)||v1(i))?i=parseFloat(i):!R5(i)&&Ar.test(n)&&(i=P1(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Rf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xx extends j5{constructor(){super(...arguments),this.KeyframeResolver=F1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function F5(e){return window.getComputedStyle(e)}class V5 extends xx{constructor(){super(...arguments),this.type="html",this.renderInstance=Zv}readValueFromInstance(t,n){if(li.has(n))return G$(t,n);{const r=F5(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tb(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class B5 extends xx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Xv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=C1(n);return r&&r.default||0}return n=Jv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return e1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Df(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Qv(t,n,r,i)}mount(t){this.isSVGTag=Nf(t.tagName),super.mount(t)}}const W5=(e,t)=>$f(e)?new B5(t):new V5(t,{allowProjection:e!==_.Fragment}),U5=u$({...iD,...I5,...m5,...$5},W5),qe=AI(U5),Od={defaultColorScheme:"aqua",t:e=>e},wx=_.createContext(Od),Ue=()=>_.useContext(wx),z5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function G5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:y,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let w;typeof t=="string"?w=z5[t]:w=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:y,icon:S,options:b,fn:w}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(y=>y.key===h?{...y,value:m}:y))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:d}}const Sx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return v.jsx(Nn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(qe.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:v.jsxs(ws,{className:"flex flex-col gap-16 p-32",children:[v.jsxs("div",{className:"flex justify-between items-center gap-16",children:[v.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),v.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),v.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&v.jsx(xi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(xi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
660
660
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
661
661
  * License - https://fontawesome.com/license (Commercial License)
662
662
  * Copyright 2024 Fonticons, Inc.
663
- */const z5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},G5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Y5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},H5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},q5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function hs(e){return Tx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Tx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function kt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function _d(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function No(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function K5(e){return["table","td","th"].includes(hs(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Id(e){const t=rl(),n=Ke(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function X5(e){let t=er(e);for(;kt(t)&&!Qn(t);){if(Id(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(hs(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(hs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||jn(e);return _d(t)?t.host:t}function Ex(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&No(t)?t:Ex(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ex(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=$d(a);return t.concat(a,a.visualViewport||[],No(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function $d(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ro(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_d(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Px(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ax(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Z5(e){return e3()?!1:!Mx()&&e.width===0&&e.height===0||Mx()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function J5(){return/apple/i.test(navigator.vendor)}function Mx(){const e=/android/i;return e.test(Px())||e.test(Ax())}function Q5(){return Px().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function e3(){return Ax().includes("jsdom/")}function Lo(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function t3(e){return"nativeEvent"in e}function n3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ms(e){return"composedPath"in e?e.composedPath()[0]:e.target}const r3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ox(e){return kt(e)&&e.matches(r3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),i3={left:"right",right:"left",bottom:"top",top:"bottom"},s3={start:"end",end:"start"};function Nd(e,t,n){return Yt(e,_r(t,n))}function ps(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function _x(e){return e==="x"?"y":"x"}function Rd(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return _x(pi(e))}function o3(e,t,n){n===void 0&&(n=!1);const r=gs(e),i=Ld(e),o=Rd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function a3(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>s3[t])}function l3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function c3(e,t,n,r){const i=gs(e);let o=l3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>i3[t])}function u3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ix(e){return typeof e!="number"?u3(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $x(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Ld(t),c=Rd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(gs(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const f3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=$x(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:w}=c[b],{x:E,y:C,data:$,reset:A}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=E??h,m=C??m,y={...y,[T]:{...y[T],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=$x(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ps(t,e),S=Ix(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),E=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:C,strategy:u}):E);return{top:(w.top-A.top+S.top)/$.y,bottom:(A.bottom-w.bottom+S.bottom)/$.y,left:(w.left-A.left+S.left)/$.x,right:(A.right-w.right+S.right)/$.x}}const d3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ps(e,t)||{};if(d==null)return{};const m=Ix(h),p={x:n,y:r},y=Ld(i),S=Rd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",E=T?"bottom":"right",C=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],A=p[y]-o.reference[y],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let j=D?D[C]:0;(!j||!await(a.isElement==null?void 0:a.isElement(D)))&&(j=c.floating[C]||o.floating[S]);const F=$/2-A/2,U=j/2-b[S]/2-1,J=_r(m[w],U),ee=_r(m[E],U),se=J,ge=j-b[S]-ee,ue=j/2-b[S]/2+F,fe=Nd(se,ue,ge),he=!u.arrow&&gs(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?J:ee)-b[S]/2<0,V=he?ue<se?ue-se:ue-ge:0;return{[y]:p[y]+V,data:{[y]:fe,centerOffset:ue-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),h3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=ps(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),E=pi(c),C=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(C||!b?[al(c)]:a3(c)),D=S!=="none";!p&&D&&A.push(...c3(c,b,S,$));const j=[c,...A],F=await jd(t,T),U=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&U.push(F[w]),m){const ue=o3(i,a,$);U.push(F[ue[0]],F[ue[1]])}if(J=[...J,{placement:i,overflows:U}],!U.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=j[ue];if(fe)return{data:{index:ue,overflows:J},reset:{placement:fe}};let he=(se=J.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(y){case"bestFit":{var ge;const V=(ge=J.filter(B=>{if(D){const Y=pi(B.placement);return Y===E||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:ge[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function m3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=gs(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ps(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const p3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await m3(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},g3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:w,y:E}=T;return{x:w,y:E}}},...u}=ps(e,t),d={x:n,y:r},h=await jd(t,u),m=pi(Ir(i)),p=_x(m);let y=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",E=y+h[T],C=y-h[w];y=Nd(E,y,C)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=S+h[T],C=S-h[w];S=Nd(E,S,C)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},y3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ps(e,t),h=await jd(t,d),m=Ir(i),p=gs(i),y=pi(i)==="y",{width:S,height:b}=o.floating;let T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const E=b-h.top-h.bottom,C=S-h.left-h.right,$=_r(b-h[T],E),A=_r(S-h[w],C),D=!t.middlewareData.shift;let j=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=E),D&&!p){const J=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);y?F=S-2*(J!==0||ee!==0?J+ee:Yt(h.left,h.right)):j=b-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const U=await a.getDimensions(c.floating);return S!==U.width||b!==U.height?{reset:{rects:!0}}:{}}}};function Dx(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return Ke(e)?e:e.contextElement}function ys(e){const t=Fd(e);if(!kt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dx(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const v3=Fn(0);function Nx(e){const t=Lt(e);return!rl()||!t.visualViewport?v3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=ys(r)):a=ys(e));const c=b3(o,n,r)?Nx(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),y=r&&Ke(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=ys(b),w=b.getBoundingClientRect(),E=on(b),C=w.left+(b.clientLeft+parseFloat(E.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(E.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=C,d+=$,S=Lt(b),b=$d(S)}}return ll({width:h,height:m,x:u,y:d})}function Vd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Vd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function x3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=kt(r);if((m||!m&&!o)&&((hs(r)!=="body"||No(a))&&(u=il(r)),kt(r))){const y=gi(r);d=ys(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Rx(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function w3(e){return Array.from(e.getClientRects())}function S3(e){const t=jn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function T3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function E3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?ys(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Lx(e,t,n){let r;if(t==="viewport")r=T3(e,n);else if(t==="document")r=S3(jn(e));else if(Ke(t))r=E3(t,n);else{const i=Nx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function kx(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||kx(n,t)}function C3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&hs(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(a);){const c=on(a),u=Id(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||No(a)&&!u&&kx(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function P3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:C3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Lx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Lx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function A3(e){const{width:t,height:n}=Dx(e);return{width:t,height:n}}function M3(e,t,n){const r=kt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((hs(t)!=="body"||No(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!o?Rx(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Bd(e){return on(e).position==="static"}function jx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Fx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Bd(i))return i;i=er(i)}return n}let r=jx(e,t);for(;r&&K5(r)&&Bd(r);)r=jx(r,t);return r&&Qn(r)&&Bd(r)&&!Id(r)?n:r||X5(e)||n}const O3=async function(e){const t=this.getOffsetParent||Fx,n=this.getDimensions,r=await n(e.floating);return{reference:M3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _3(e){return on(e).direction==="rtl"}const I3={convertOffsetParentRelativeRectToViewportRelativeRect:x3,getDocumentElement:jn,getClippingRect:P3,getOffsetParent:Fx,getElementRects:O3,getClientRects:w3,getDimensions:A3,getScale:ys,isElement:Ke,isRTL:_3};function Vx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $3(e,t){let n=null,r;const i=jn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+y)),w=ol(h),C={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const j=D[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Vx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,C)}n.observe(e)}return a(!0),o}function $r(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?$3(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[E]=w;E&&E.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=y)==null||C.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?gi(e):null;u&&T();function T(){const w=gi(e);b&&!Vx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}return n(),()=>{var w;h.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const D3=p3,N3=g3,R3=h3,L3=y3,Bx=d3,k3=(e,t,n)=>{const r=new Map,i={platform:I3,...n},o={...i.platform,_c:r};return f3(e,t,{...i,platform:o})};var cl=typeof document<"u"?I.useLayoutEffect:I.useEffect;function ul(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 n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ux(e,t){const n=Wx(e);return Math.round(t*n)/n}function Wd(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function j3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=Q.useState(r);ul(p,r)||y(r);const[S,b]=Q.useState(null),[T,w]=Q.useState(null),E=Q.useCallback(B=>{B!==D.current&&(D.current=B,b(B))},[]),C=Q.useCallback(B=>{B!==j.current&&(j.current=B,w(B))},[]),$=o||S,A=a||T,D=Q.useRef(null),j=Q.useRef(null),F=Q.useRef(h),U=u!=null,J=Wd(u),ee=Wd(i),se=Wd(d),ge=Q.useCallback(()=>{if(!D.current||!j.current)return;const B={placement:t,strategy:n,middleware:p};ee.current&&(B.platform=ee.current),k3(D.current,j.current,B).then(Y=>{const O={...Y,isPositioned:se.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,pT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(j.current=A),$&&A){if(J.current)return J.current($,A,ge);ge()}},[$,A,ge,J,U]);const fe=Q.useMemo(()=>({reference:D,floating:j,setReference:E,setFloating:C}),[E,C]),he=Q.useMemo(()=>({reference:$,floating:A}),[$,A]),V=Q.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const Y=Ux(he.floating,h.x),O=Ux(he.floating,h.y);return c?{...B,transform:"translate("+Y+"px, "+O+"px)",...Wx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:V}),[h,ge,fe,he,V])}const F3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bx({element:r.current,padding:i}).fn(n):{}:r?Bx({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...D3(e),options:[e,t]}),Nr=(e,t)=>({...N3(e),options:[e,t]}),Rr=(e,t)=>({...R3(e),options:[e,t]}),vs=(e,t)=>({...L3(e),options:[e,t]}),bs=(e,t)=>({...F3(e),options:[e,t]}),zx={...Q},V3=zx.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return V3(()=>{t.current=e}),Q.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Lr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Gx=!1,B3=0;const Yx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+B3++;function W3(){const[e,t]=Q.useState(()=>Gx?Yx():void 0);return Lr(()=>{e==null&&t(Yx())},[]),Q.useEffect(()=>{Gx=!0},[]),e}const Hx=zx.useId||W3;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function U3(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function z3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const G3=Q.createContext(null),Y3=Q.createContext(null),zd=()=>{var e;return((e=Q.useContext(G3))==null?void 0:e.id)||null},Gd=()=>Q.useContext(Y3);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=I.useRef(e);return Lr(()=>{t.current=e}),t}const qx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Lo(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function H3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=yi(d),T=yi(u),w=yi(n),E=Q.useRef(),C=Q.useRef(-1),$=Q.useRef(),A=Q.useRef(-1),D=Q.useRef(!0),j=Q.useRef(!1),F=Q.useRef(()=>{}),U=Q.useRef(!1),J=Q.useCallback(()=>{var V;const B=(V=i.current.openEvent)==null?void 0:V.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);Q.useEffect(()=>{if(!c)return;function V(B){let{open:Y}=B;Y||(an(C),an(A),D.current=!0,U.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Q.useEffect(()=>{if(!c||!b.current||!n)return;function V(Y){J()&&r(!1,Y,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,b,J]);const ee=Q.useCallback(function(V,B,Y){B===void 0&&(B=!0),Y===void 0&&(Y="hover");const O=Hd(T.current,"close",E.current);O&&!$.current?(an(C),C.current=window.setTimeout(()=>r(!1,V,Y),O)):B&&(an(C),r(!1,V,Y))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(j.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(qx),j.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function V(R){if(an(C),D.current=!1,h&&!Lo(E.current)||m>0&&!Hd(T.current,"open"))return;const K=Hd(T.current,"open",E.current);K?C.current=window.setTimeout(()=>{w.current||r(!0,R,"hover")},K):n||r(!0,R,"hover")}function B(R){if(ue())return;F.current();const K=mi(a.floating);if(an(A),U.current=!1,b.current&&i.current.floatingContext){n||an(C),$.current=b.current({...i.current.floatingContext,tree:y,x:R.clientX,y:R.clientY,onClose(){ge(),se(),ue()||ee(R,!0,"safe-polygon")}});const le=$.current;K.addEventListener("mousemove",le),F.current=()=>{K.removeEventListener("mousemove",le)};return}(E.current==="touch"?!Ro(a.floating,R.relatedTarget):!0)&&ee(R)}function Y(R){ue()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:R.clientX,y:R.clientY,onClose(){ge(),se(),ue()||ee(R)}})(R))}if(Ke(a.domReference)){var O;const R=a.domReference;return n&&R.addEventListener("mouseleave",Y),(O=a.floating)==null||O.addEventListener("mouseleave",Y),p&&R.addEventListener("mousemove",V,{once:!0}),R.addEventListener("mouseenter",V),R.addEventListener("mouseleave",B),()=>{var K;n&&R.removeEventListener("mouseleave",Y),(K=a.floating)==null||K.removeEventListener("mouseleave",Y),p&&R.removeEventListener("mousemove",V),R.removeEventListener("mouseenter",V),R.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ee,se,ge,r,n,w,y,T,b,i,ue]),Lr(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&J()){j.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var B;const O=mi(a.floating).body;O.setAttribute(qx,"");const R=a.domReference,K=y==null||(B=y.nodesRef.current.find(ae=>ae.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",R.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",R.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,y,b,J]),Lr(()=>{n||(E.current=void 0,U.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(C),an(A),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function V(B){E.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:Y}=B;function O(){!D.current&&!w.current&&r(!0,Y,"hover")}h&&!Lo(E.current)||n||m===0||U.current&&B.movementX**2+B.movementY**2<2||(an(A),E.current==="touch"?O():(U.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=Q.useMemo(()=>({onMouseEnter(){an(C)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function qd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const q3="data-floating-ui-focusable";function Kx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function Xx(e){return Ox(e)}function vi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),y=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Lo(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Lo(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||Kx(b))&&(b.key===" "&&!Xx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Kx(b)||Xx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const K3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},X3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Zx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function kr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),T=tr(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,E=Q.useRef(!1),C=Q.useRef(!1),{escapeKey:$,outsidePress:A}=Zx(y),{escapeKey:D,outsidePress:j}=Zx(S),F=Q.useRef(!1),U=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=b?qd(b.nodesRef.current,V):[];if(!$&&(fe.stopPropagation(),B.length>0)){let Y=!0;if(B.forEach(O=>{var R;if((R=O.context)!=null&&R.open&&!O.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,t3(fe)?fe.nativeEvent:fe,"escape-key")}),J=tr(fe=>{var he;const V=()=>{var B;U(fe),(B=ms(fe))==null||B.removeEventListener("keydown",V)};(he=ms(fe))==null||he.addEventListener("keydown",V)}),ee=tr(fe=>{var he;const V=E.current;E.current=!1;const B=C.current;if(C.current=!1,d==="click"&&B||V||typeof w=="function"&&!w(fe))return;const Y=ms(fe),O="["+Yd("inert")+"]",R=mi(i.floating).querySelectorAll(O);let K=Ke(Y)?Y:null;for(;K&&!Qn(K);){const Z=er(K);if(Qn(Z)||!Ke(Z))break;K=Z}if(R.length&&Ke(Y)&&!n3(Y)&&!Ro(Y,i.floating)&&Array.from(R).every(Z=>!Ro(K,Z)))return;if(kt(Y)&&ue){const Z=Qn(Y),oe=on(Y),ne=/auto|scroll/,de=Z||ne.test(oe.overflowX),Ce=Z||ne.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=b&&qd(b.nodesRef.current,ae).some(Z=>{var oe;return Dd(fe,(oe=Z.context)==null?void 0:oe.elements.floating)});if(Dd(fe,i.floating)||Dd(fe,i.domReference)||le)return;const z=b?qd(b.nodesRef.current,ae):[];if(z.length>0){let Z=!0;if(z.forEach(oe=>{var ne;if((ne=oe.context)!=null&&ne.open&&!oe.context.dataRef.current.__outsidePressBubbles){Z=!1;return}}),!Z)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const V=()=>{var B;ee(fe),(B=ms(fe))==null||B.removeEventListener(d,V)};(he=ms(fe))==null||he.addEventListener(d,V)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let fe=-1;function he(R){r(!1,R,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",D?J:U,D),Y.addEventListener("compositionstart",V),Y.addEventListener("compositionend",B)),w&&Y.addEventListener(d,j?se:ee,j);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(R=>{var K;return R!==((K=Y.defaultView)==null?void 0:K.visualViewport)}),O.forEach(R=>{R.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",D?J:U,D),Y.removeEventListener("compositionstart",V),Y.removeEventListener("compositionend",B)),w&&Y.removeEventListener(d,j?se:ee,j),O.forEach(R=>{R.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,w,d,n,r,p,a,$,A,U,D,J,ee,j,se]),Q.useEffect(()=>{E.current=!1},[w,d]);const ge=Q.useMemo(()=>({onKeyDown:U,...h&&{[K3[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[U,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:U,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[X3[d]]:()=>{E.current=!0}}),[U,d]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function Z3(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Hx(),o=Q.useRef({}),[a]=Q.useState(()=>z3()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!Ke(y)&&U3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Q.useState(r.reference),h=tr((y,S,b)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=Q.useMemo(()=>({setPositionReference:d}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=Z3({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Gd();Lr(()=>{h&&(m.current=h)},[h]);const y=j3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(C=>{const $=Ke(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u($),y.refs.setReference($)},[y.refs]),b=Q.useCallback(C=>{(Ke(C)||C===null)&&(m.current=C,a(C)),(Ke(y.refs.reference.current)||y.refs.reference.current===null||C!==null&&!Ke(C))&&y.refs.setReference(C)},[y.refs]),T=Q.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=Q.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=Q.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=E;const C=p==null?void 0:p.nodesRef.current.find($=>$.id===t);C&&(C.context=E)}),Q.useMemo(()=>({...y,context:E,refs:T,elements:w}),[y,T,w,E])}function J3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Cx(mi(a.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function y(S){let{reason:b}=S;(b==="reference-press"||b==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(y){Z5(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=ms(y.nativeEvent);if(u&&Ke(S))try{if(J5()&&Q5())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ox(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,T=Ke(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const E=Cx(a.domReference?a.domReference.ownerDocument:document);!S&&E===a.domReference||Ro((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,E)||Ro(a.domReference,E)||T||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const Jx="active",Qx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Jx]:a,[Qx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[q3]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Jx,Qx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Q.useCallback(c=>Kd(c,e,"reference"),t),o=Q.useCallback(c=>Kd(c,e,"floating"),n),a=Q.useCallback(c=>Kd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const Q3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function eN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=Q3.get(a))!=null?n:a,u=Hx(),h=zd()!=null,m=Q.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=Q.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const e2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function xs(e,t){return typeof e=="function"?e(t):e}function tN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function nN(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Q.useState("unmounted"),d=tN(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function bi(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[y,S]=Q.useState(()=>({...xs(o,d),...xs(n,d)})),{isMounted:b,status:T}=nN(e,{duration:a}),w=yi(n),E=yi(r),C=yi(i),$=yi(o);return Lr(()=>{const A=xs(w.current,d),D=xs(C.current,d),j=xs($.current,d),F=xs(E.current,d)||Object.keys(A).reduce((U,J)=>(U[J]="",U),{});if(T==="initial"&&S(U=>({transitionProperty:U.transitionProperty,...j,...A})),T==="open"&&S({transitionProperty:Object.keys(F).map(e2).join(","),transitionDuration:m+"ms",...j,...F}),T==="close"){const U=D||A;S({transitionProperty:Object.keys(U).map(e2).join(","),transitionDuration:p+"ms",...j,...U})}},[p,C,w,E,$,m,T,d]),{isMounted:b,styles:y}}const ko=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:T}=jr({strategy:a,open:d,onOpenChange:j=>{j||m()},middleware:[Dr(c),Rr(),Nr({padding:u})],whileElementsMounted:$r,placement:i}),w=vi(T),E=kr(T),{getReferenceProps:C,getFloatingProps:$}=Fr([w,E]),{isMounted:A,styles:D}=bi(T,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return v.jsxs("div",{className:"relative",children:[v.jsx("div",{ref:b.setReference,...C(),className:"reference-element",children:r}),A&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...D,zIndex:9999},...$(),className:"floating-element",children:v.jsx(ws,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},rN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return v.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[v.jsx(qe.button,{variants:r,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),v.jsx(qe.button,{variants:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},iN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
663
+ */const Y5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},H5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},q5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},K5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},X5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function hs(e){return Tx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Tx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function kt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function _d(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function No(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Z5(e){return["table","td","th"].includes(hs(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Id(e){const t=rl(),n=Ke(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function J5(e){let t=er(e);for(;kt(t)&&!Qn(t);){if(Id(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(hs(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(hs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||jn(e);return _d(t)?t.host:t}function Ex(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&No(t)?t:Ex(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ex(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=$d(a);return t.concat(a,a.visualViewport||[],No(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function $d(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ro(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_d(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Px(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ax(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Q5(e){return n3()?!1:!Mx()&&e.width===0&&e.height===0||Mx()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function e3(){return/apple/i.test(navigator.vendor)}function Mx(){const e=/android/i;return e.test(Px())||e.test(Ax())}function t3(){return Px().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function n3(){return Ax().includes("jsdom/")}function Lo(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function r3(e){return"nativeEvent"in e}function i3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ms(e){return"composedPath"in e?e.composedPath()[0]:e.target}const s3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ox(e){return kt(e)&&e.matches(s3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),o3={left:"right",right:"left",bottom:"top",top:"bottom"},a3={start:"end",end:"start"};function Nd(e,t,n){return Yt(e,_r(t,n))}function ps(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function _x(e){return e==="x"?"y":"x"}function Rd(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return _x(pi(e))}function l3(e,t,n){n===void 0&&(n=!1);const r=gs(e),i=Ld(e),o=Rd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function c3(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>a3[t])}function u3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function f3(e,t,n,r){const i=gs(e);let o=u3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>o3[t])}function d3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ix(e){return typeof e!="number"?d3(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $x(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Ld(t),c=Rd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(gs(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const h3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=$x(d,r,u),p=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:w}=c[b],{x:A,y:E,data:$,reset:P}=await w({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,m=E??m,y={...y,[T]:{...y[T],...$}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=$x(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:y}};async function jd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:y=0}=ps(t,e),S=Ix(y),T=c[p?m==="floating"?"reference":"floating":m],w=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),A=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},P=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:E,strategy:u}):A);return{top:(w.top-P.top+S.top)/$.y,bottom:(P.bottom-w.bottom+S.bottom)/$.y,left:(w.left-P.left+S.left)/$.x,right:(P.right-w.right+S.right)/$.x}}const m3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ps(e,t)||{};if(d==null)return{};const m=Ix(h),p={x:n,y:r},y=Ld(i),S=Rd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",A=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],P=p[y]-o.reference[y],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let j=N?N[E]:0;(!j||!await(a.isElement==null?void 0:a.isElement(N)))&&(j=c.floating[E]||o.floating[S]);const F=$/2-P/2,U=j/2-b[S]/2-1,Z=_r(m[w],U),ee=_r(m[A],U),se=Z,ge=j-b[S]-ee,ue=j/2-b[S]/2+F,fe=Nd(se,ue,ge),he=!u.arrow&&gs(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?Z:ee)-b[S]/2<0,V=he?ue<se?ue-se:ue-ge:0;return{[y]:p[y]+V,data:{[y]:fe,centerOffset:ue-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),p3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=ps(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),A=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=p||(E||!b?[al(c)]:c3(c)),N=S!=="none";!p&&N&&P.push(...f3(c,b,S,$));const j=[c,...P],F=await jd(t,T),U=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&U.push(F[w]),m){const ue=l3(i,a,$);U.push(F[ue[0]],F[ue[1]])}if(Z=[...Z,{placement:i,overflows:U}],!U.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=j[ue];if(fe)return{data:{index:ue,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(y){case"bestFit":{var ge;const V=(ge=Z.filter(B=>{if(N){const Y=pi(B.placement);return Y===A||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:ge[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function g3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=gs(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ps(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:p*d}:{x:p*d,y:y*h}}const y3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await g3(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},v3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:w,y:A}=T;return{x:w,y:A}}},...u}=ps(e,t),d={x:n,y:r},h=await jd(t,u),m=pi(Ir(i)),p=_x(m);let y=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",A=y+h[T],E=y-h[w];y=Nd(A,y,E)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=S+h[T],E=S-h[w];S=Nd(A,S,E)}const b=c.fn({...t,[p]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},b3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ps(e,t),h=await jd(t,d),m=Ir(i),p=gs(i),y=pi(i)==="y",{width:S,height:b}=o.floating;let T,w;m==="top"||m==="bottom"?(T=m,w=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,T=p==="end"?"top":"bottom");const A=b-h.top-h.bottom,E=S-h.left-h.right,$=_r(b-h[T],A),P=_r(S-h[w],E),N=!t.middlewareData.shift;let j=$,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=A),N&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);y?F=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):j=b-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const U=await a.getDimensions(c.floating);return S!==U.width||b!==U.height?{reset:{rects:!0}}:{}}}};function Dx(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return Ke(e)?e:e.contextElement}function ys(e){const t=Fd(e);if(!kt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dx(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const x3=Fn(0);function Nx(e){const t=Lt(e);return!rl()||!t.visualViewport?x3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=ys(r)):a=ys(e));const c=w3(o,n,r)?Nx(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),y=r&&Ke(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=ys(b),w=b.getBoundingClientRect(),A=on(b),E=w.left+(b.clientLeft+parseFloat(A.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=E,d+=$,S=Lt(b),b=$d(S)}}return ll({width:h,height:m,x:u,y:d})}function Vd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Vd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function S3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=kt(r);if((m||!m&&!o)&&((hs(r)!=="body"||No(a))&&(u=il(r)),kt(r))){const y=gi(r);d=ys(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Rx(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function T3(e){return Array.from(e.getClientRects())}function E3(e){const t=jn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function C3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function P3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?ys(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Lx(e,t,n){let r;if(t==="viewport")r=C3(e,n);else if(t==="document")r=E3(jn(e));else if(Ke(t))r=P3(t,n);else{const i=Nx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function kx(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||kx(n,t)}function A3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&hs(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(a);){const c=on(a),u=Id(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||No(a)&&!u&&kx(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function M3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:A3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Lx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Lx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function O3(e){const{width:t,height:n}=Dx(e);return{width:t,height:n}}function _3(e,t,n){const r=kt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((hs(t)!=="body"||No(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Vd(i));const d=i&&!r&&!o?Rx(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Bd(e){return on(e).position==="static"}function jx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Fx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Bd(i))return i;i=er(i)}return n}let r=jx(e,t);for(;r&&Z5(r)&&Bd(r);)r=jx(r,t);return r&&Qn(r)&&Bd(r)&&!Id(r)?n:r||J5(e)||n}const I3=async function(e){const t=this.getOffsetParent||Fx,n=this.getDimensions,r=await n(e.floating);return{reference:_3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $3(e){return on(e).direction==="rtl"}const D3={convertOffsetParentRelativeRectToViewportRelativeRect:S3,getDocumentElement:jn,getClippingRect:M3,getOffsetParent:Fx,getElementRects:I3,getClientRects:T3,getDimensions:O3,getScale:ys,isElement:Ke,isRTL:$3};function Vx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function N3(e,t){let n=null,r;const i=jn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:y}=d;if(c||t(),!p||!y)return;const S=ol(m),b=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+y)),w=ol(h),E={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function P(N){const j=N[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Vx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return a(!0),o}function $r(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?N3(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[A]=w;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=y)==null||E.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?gi(e):null;u&&T();function T(){const w=gi(e);b&&!Vx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}return n(),()=>{var w;h.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const R3=y3,L3=v3,k3=p3,j3=b3,Bx=m3,F3=(e,t,n)=>{const r=new Map,i={platform:D3,...n},o={...i.platform,_c:r};return h3(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(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 n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ux(e,t){const n=Wx(e);return Math.round(t*n)/n}function Wd(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function V3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=Q.useState(r);ul(p,r)||y(r);const[S,b]=Q.useState(null),[T,w]=Q.useState(null),A=Q.useCallback(B=>{B!==N.current&&(N.current=B,b(B))},[]),E=Q.useCallback(B=>{B!==j.current&&(j.current=B,w(B))},[]),$=o||S,P=a||T,N=Q.useRef(null),j=Q.useRef(null),F=Q.useRef(h),U=u!=null,Z=Wd(u),ee=Wd(i),se=Wd(d),ge=Q.useCallback(()=>{if(!N.current||!j.current)return;const B={placement:t,strategy:n,middleware:p};ee.current&&(B.platform=ee.current),F3(N.current,j.current,B).then(Y=>{const O={...Y,isPositioned:se.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,pT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(N.current=$),P&&(j.current=P),$&&P){if(Z.current)return Z.current($,P,ge);ge()}},[$,P,ge,Z,U]);const fe=Q.useMemo(()=>({reference:N,floating:j,setReference:A,setFloating:E}),[A,E]),he=Q.useMemo(()=>({reference:$,floating:P}),[$,P]),V=Q.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const Y=Ux(he.floating,h.x),O=Ux(he.floating,h.y);return c?{...B,transform:"translate("+Y+"px, "+O+"px)",...Wx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:V}),[h,ge,fe,he,V])}const B3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bx({element:r.current,padding:i}).fn(n):{}:r?Bx({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...R3(e),options:[e,t]}),Nr=(e,t)=>({...L3(e),options:[e,t]}),Rr=(e,t)=>({...k3(e),options:[e,t]}),vs=(e,t)=>({...j3(e),options:[e,t]}),bs=(e,t)=>({...B3(e),options:[e,t]}),zx={...Q},W3=zx.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return W3(()=>{t.current=e}),Q.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let Gx=!1,U3=0;const Yx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+U3++;function z3(){const[e,t]=Q.useState(()=>Gx?Yx():void 0);return Lr(()=>{e==null&&t(Yx())},[]),Q.useEffect(()=>{Gx=!0},[]),e}const Hx=zx.useId||z3;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function G3(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function Y3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const H3=Q.createContext(null),q3=Q.createContext(null),zd=()=>{var e;return((e=Q.useContext(H3))==null?void 0:e.id)||null},Gd=()=>Q.useContext(q3);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const qx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Lo(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function K3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,y=Gd(),S=zd(),b=yi(d),T=yi(u),w=yi(n),A=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),P=Q.useRef(-1),N=Q.useRef(!0),j=Q.useRef(!1),F=Q.useRef(()=>{}),U=Q.useRef(!1),Z=Q.useCallback(()=>{var V;const B=(V=i.current.openEvent)==null?void 0:V.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);Q.useEffect(()=>{if(!c)return;function V(B){let{open:Y}=B;Y||(an(E),an(P),N.current=!0,U.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Q.useEffect(()=>{if(!c||!b.current||!n)return;function V(Y){Z()&&r(!1,Y,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,b,Z]);const ee=Q.useCallback(function(V,B,Y){B===void 0&&(B=!0),Y===void 0&&(Y="hover");const O=Hd(T.current,"close",A.current);O&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,V,Y),O)):B&&(an(E),r(!1,V,Y))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(j.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(qx),j.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function V(R){if(an(E),N.current=!1,h&&!Lo(A.current)||m>0&&!Hd(T.current,"open"))return;const K=Hd(T.current,"open",A.current);K?E.current=window.setTimeout(()=>{w.current||r(!0,R,"hover")},K):n||r(!0,R,"hover")}function B(R){if(ue())return;F.current();const K=mi(a.floating);if(an(P),U.current=!1,b.current&&i.current.floatingContext){n||an(E),$.current=b.current({...i.current.floatingContext,tree:y,x:R.clientX,y:R.clientY,onClose(){ge(),se(),ue()||ee(R,!0,"safe-polygon")}});const le=$.current;K.addEventListener("mousemove",le),F.current=()=>{K.removeEventListener("mousemove",le)};return}(A.current==="touch"?!Ro(a.floating,R.relatedTarget):!0)&&ee(R)}function Y(R){ue()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:R.clientX,y:R.clientY,onClose(){ge(),se(),ue()||ee(R)}})(R))}if(Ke(a.domReference)){var O;const R=a.domReference;return n&&R.addEventListener("mouseleave",Y),(O=a.floating)==null||O.addEventListener("mouseleave",Y),p&&R.addEventListener("mousemove",V,{once:!0}),R.addEventListener("mouseenter",V),R.addEventListener("mouseleave",B),()=>{var K;n&&R.removeEventListener("mouseleave",Y),(K=a.floating)==null||K.removeEventListener("mouseleave",Y),p&&R.removeEventListener("mousemove",V),R.removeEventListener("mouseenter",V),R.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ee,se,ge,r,n,w,y,T,b,i,ue]),Lr(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&Z()){j.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var B;const O=mi(a.floating).body;O.setAttribute(qx,"");const R=a.domReference,K=y==null||(B=y.nodesRef.current.find(ae=>ae.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",R.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",R.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,y,b,Z]),Lr(()=>{n||(A.current=void 0,U.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(P),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function V(B){A.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:Y}=B;function O(){!N.current&&!w.current&&r(!0,Y,"hover")}h&&!Lo(A.current)||n||m===0||U.current&&B.movementX**2+B.movementY**2<2||(an(P),A.current==="touch"?O():(U.current=!0,P.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function qd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const X3="data-floating-ui-focusable";function Kx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function Xx(e){return Ox(e)}function vi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),y=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Lo(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Lo(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||Kx(b))&&(b.key===" "&&!Xx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Kx(b)||Xx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const Z3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},J3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Zx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function kr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:y,capture:S}=t,b=Gd(),T=tr(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,A=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:P}=Zx(y),{escapeKey:N,outsidePress:j}=Zx(S),F=Q.useRef(!1),U=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=b?qd(b.nodesRef.current,V):[];if(!$&&(fe.stopPropagation(),B.length>0)){let Y=!0;if(B.forEach(O=>{var R;if((R=O.context)!=null&&R.open&&!O.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,r3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const V=()=>{var B;U(fe),(B=ms(fe))==null||B.removeEventListener("keydown",V)};(he=ms(fe))==null||he.addEventListener("keydown",V)}),ee=tr(fe=>{var he;const V=A.current;A.current=!1;const B=E.current;if(E.current=!1,d==="click"&&B||V||typeof w=="function"&&!w(fe))return;const Y=ms(fe),O="["+Yd("inert")+"]",R=mi(i.floating).querySelectorAll(O);let K=Ke(Y)?Y:null;for(;K&&!Qn(K);){const J=er(K);if(Qn(J)||!Ke(J))break;K=J}if(R.length&&Ke(Y)&&!i3(Y)&&!Ro(Y,i.floating)&&Array.from(R).every(J=>!Ro(K,J)))return;if(kt(Y)&&ue){const J=Qn(Y),oe=on(Y),ne=/auto|scroll/,de=J||ne.test(oe.overflowX),Ce=J||ne.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=b&&qd(b.nodesRef.current,ae).some(J=>{var oe;return Dd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Dd(fe,i.floating)||Dd(fe,i.domReference)||le)return;const z=b?qd(b.nodesRef.current,ae):[];if(z.length>0){let J=!0;if(z.forEach(oe=>{var ne;if((ne=oe.context)!=null&&ne.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const V=()=>{var B;ee(fe),(B=ms(fe))==null||B.removeEventListener(d,V)};(he=ms(fe))==null||he.addEventListener(d,V)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=P;let fe=-1;function he(R){r(!1,R,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",N?Z:U,N),Y.addEventListener("compositionstart",V),Y.addEventListener("compositionend",B)),w&&Y.addEventListener(d,j?se:ee,j);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(R=>{var K;return R!==((K=Y.defaultView)==null?void 0:K.visualViewport)}),O.forEach(R=>{R.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",N?Z:U,N),Y.removeEventListener("compositionstart",V),Y.removeEventListener("compositionend",B)),w&&Y.removeEventListener(d,j?se:ee,j),O.forEach(R=>{R.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,w,d,n,r,p,a,$,P,U,N,Z,ee,j,se]),Q.useEffect(()=>{A.current=!1},[w,d]);const ge=Q.useMemo(()=>({onKeyDown:U,...h&&{[Z3[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[U,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:U,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[J3[d]]:()=>{A.current=!0}}),[U,d]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function Q3(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Hx(),o=Q.useRef({}),[a]=Q.useState(()=>Y3()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!Ke(y)&&G3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Q.useState(r.reference),h=tr((y,S,b)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=Q.useMemo(()=>({setPositionReference:d}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=Q3({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Gd();Lr(()=>{h&&(m.current=h)},[h]);const y=V3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),y.refs.setReference($)},[y.refs]),b=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(y.refs.reference.current)||y.refs.reference.current===null||E!==null&&!Ke(E))&&y.refs.setReference(E)},[y.refs]),T=Q.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=Q.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),A=Q.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=A;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=A)}),Q.useMemo(()=>({...y,context:A,refs:T,elements:w}),[y,T,w,A])}function eN(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Cx(mi(a.domReference))&&(d.current=!0)}function b(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",b,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",b,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function y(S){let{reason:b}=S;(b==="reference-press"||b==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(y){Q5(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=ms(y.nativeEvent);if(u&&Ke(S))try{if(e3()&&t3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ox(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,T=Ke(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const A=Cx(a.domReference?a.domReference.ownerDocument:document);!S&&A===a.domReference||Ro((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,A)||Ro(a.domReference,A)||T||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const Jx="active",Qx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Jx]:a,[Qx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[X3]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Jx,Qx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Q.useCallback(c=>Kd(c,e,"reference"),t),o=Q.useCallback(c=>Kd(c,e,"floating"),n),a=Q.useCallback(c=>Kd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const tN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=tN.get(a))!=null?n:a,u=Hx(),h=zd()!=null,m=Q.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=Q.useCallback(S=>{let{active:b,selected:T}=S;const w={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":b&&T};case"combobox":return{...w,...b&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const e2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function xs(e,t){return typeof e=="function"?e(t):e}function rN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function iN(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Q.useState("unmounted"),d=rN(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function bi(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[y,S]=Q.useState(()=>({...xs(o,d),...xs(n,d)})),{isMounted:b,status:T}=iN(e,{duration:a}),w=yi(n),A=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const P=xs(w.current,d),N=xs(E.current,d),j=xs($.current,d),F=xs(A.current,d)||Object.keys(P).reduce((U,Z)=>(U[Z]="",U),{});if(T==="initial"&&S(U=>({transitionProperty:U.transitionProperty,...j,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(e2).join(","),transitionDuration:m+"ms",...j,...F}),T==="close"){const U=N||P;S({transitionProperty:Object.keys(U).map(e2).join(","),transitionDuration:p+"ms",...j,...U})}},[p,E,w,A,$,m,T,d]),{isMounted:b,styles:y}}const ko=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=_.useState(e);_.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:p,y,strategy:S,refs:b,context:T}=jr({strategy:a,open:d,onOpenChange:j=>{j||m()},middleware:[Dr(c),Rr(),Nr({padding:u})],whileElementsMounted:$r,placement:i}),w=vi(T),A=kr(T),{getReferenceProps:E,getFloatingProps:$}=Fr([w,A]),{isMounted:P,styles:N}=bi(T,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return v.jsxs("div",{className:"relative",children:[v.jsx("div",{ref:b.setReference,...E(),className:"reference-element",children:r}),P&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...N,zIndex:9999},...$(),className:"floating-element",children:v.jsx(ws,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},sN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return v.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[v.jsx(qe.button,{variants:r,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),v.jsx(qe.button,{variants:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},oN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>v.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
664
664
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
665
665
  * License - https://fontawesome.com/license (Commercial License)
666
666
  * Copyright 2024 Fonticons, Inc.
667
- */const sN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},oN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},aN={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},t2={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},lN={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},cN={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},uN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},fN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},dN=e=>({blue:uN,aqua:fN})[e],Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=I.useState(e),[h,m]=I.useState(e),[p,y]=I.useState(e.getHours()%12||12),[S,b]=I.useState(e.getHours()>=12?"PM":"AM"),[T,w]=I.useState(0),{t:E}=Ue(),C=dN(c),[$,A]=I.useState(!1),[D,j]=I.useState(!1);I.useEffect(()=>{d(e),m(e),y(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{w(-1),setTimeout(()=>{const B=L4(u);(!r||B>=r)&&d(B)},10)},U=()=>{w(1),setTimeout(()=>{d(av(u,1))},10)},J=B=>{if(i&&B>i||r&&B<r)return;const Y=bv(xv(wv(B,0),0),S==="AM"?p%12:p%12+12);m(Y),t(Y)},ee=B=>{y(B);const Y=bv(xv(wv(h,0),0),S==="AM"?B%12:B%12+12);m(Y),t(Y),A(!1)},se=B=>{b(B)},ge=()=>{const B=new Date,Y=20,O=5,[R,K]=I.useState(()=>Array.from({length:Y+1},(Z,oe)=>{const ne=new Date(B.getFullYear(),B.getMonth()-oe,1);return{name:Dn(ne,"MMMM",{locale:ts}).replace(/^./,de=>de.toUpperCase()),index:ne.getMonth(),year:ne.getFullYear(),displayName:`${Dn(ne,"MMMM",{locale:ts}).replace(/^./,de=>de.toUpperCase())} ${ne.getFullYear()}`}})),ae=I.useRef(null),le=I.useRef(null);I.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(Z=>{Z[0].isIntersecting&&K(oe=>{const ne=oe[oe.length-1],de=new Date(ne.year,ne.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(de.getFullYear(),de.getMonth()-ie,1);return{name:Dn(pe,"MMMM",{locale:ts}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:ts}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),le.current&&ae.current.observe(le.current)},[R]);const z=(Z,oe)=>{const ne=new Date(u);ne.setMonth(Z),ne.setFullYear(oe),(!r||ne>=r)&&d(ne),j(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:R.map((Z,oe)=>{const ne=oe===R.length-1;return v.jsx("button",{ref:ne?le:null,onClick:()=>z(Z.index,Z.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===Z.index&&u.getFullYear()===Z.year?C.hoverLight:"transparent",color:u.getMonth()===Z.index&&u.getFullYear()===Z.year?C.text:"inherit"},onMouseEnter:de=>{u.getMonth()===Z.index&&u.getFullYear()===Z.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===Z.index&&u.getFullYear()===Z.year||(de.currentTarget.style.backgroundColor="transparent")},children:Z.displayName},`${Z.name}-${Z.year}-${oe}`)})})},ue=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(ko,{open:D,onClose:()=>j(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>j(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[v.jsx("h4",{className:"text-header-4",children:Dn(u,"MMMM yyyy",{locale:ts}).replace(/^./,B=>B.toUpperCase())}),v.jsx(Me,{icon:t2,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(fh,{variant:"transparent",color:c,icon:H5,onClick:F}),v.jsx(fh,{variant:"transparent",color:c,icon:P_,onClick:U})]})]}),fe=()=>{const B=Ji(k_(u)),Y=F_(N_(u)),O=L_({start:B,end:Y}),R=new Date;return R.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const le=uv(K,h),z=N4(K,u),Z=R4(K),oe=K<R,ne=K>R,de=!z||oe&&!a||ne&&!o||r&&K<r||i&&K>i;return v.jsx(qe.div,{className:`
667
+ */const aN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},lN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},cN={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},t2={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},uN={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},fN={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},dN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},hN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},mN=e=>({blue:dN,aqua:hN})[e],Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=_.useState(e),[h,m]=_.useState(e),[p,y]=_.useState(e.getHours()%12||12),[S,b]=_.useState(e.getHours()>=12?"PM":"AM"),[T,w]=_.useState(0),{t:A}=Ue(),E=mN(c),[$,P]=_.useState(!1),[N,j]=_.useState(!1);_.useEffect(()=>{d(e),m(e),y(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{w(-1),setTimeout(()=>{const B=L4(u);(!r||B>=r)&&d(B)},10)},U=()=>{w(1),setTimeout(()=>{d(av(u,1))},10)},Z=B=>{if(i&&B>i||r&&B<r)return;const Y=bv(xv(wv(B,0),0),S==="AM"?p%12:p%12+12);m(Y),t(Y)},ee=B=>{y(B);const Y=bv(xv(wv(h,0),0),S==="AM"?B%12:B%12+12);m(Y),t(Y),P(!1)},se=B=>{b(B)},ge=()=>{const B=new Date,Y=20,O=5,[R,K]=_.useState(()=>Array.from({length:Y+1},(J,oe)=>{const ne=new Date(B.getFullYear(),B.getMonth()-oe,1);return{name:Dn(ne,"MMMM",{locale:ts}).replace(/^./,de=>de.toUpperCase()),index:ne.getMonth(),year:ne.getFullYear(),displayName:`${Dn(ne,"MMMM",{locale:ts}).replace(/^./,de=>de.toUpperCase())} ${ne.getFullYear()}`}})),ae=_.useRef(null),le=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(J=>{J[0].isIntersecting&&K(oe=>{const ne=oe[oe.length-1],de=new Date(ne.year,ne.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(de.getFullYear(),de.getMonth()-ie,1);return{name:Dn(pe,"MMMM",{locale:ts}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:ts}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),le.current&&ae.current.observe(le.current)},[R]);const z=(J,oe)=>{const ne=new Date(u);ne.setMonth(J),ne.setFullYear(oe),(!r||ne>=r)&&d(ne),j(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:R.map((J,oe)=>{const ne=oe===R.length-1;return v.jsx("button",{ref:ne?le:null,onClick:()=>z(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?E.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?E.text:"inherit"},onMouseEnter:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},ue=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(ko,{open:N,onClose:()=>j(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>j(!N),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[v.jsx("h4",{className:"text-header-4",children:Dn(u,"MMMM yyyy",{locale:ts}).replace(/^./,B=>B.toUpperCase())}),v.jsx(Me,{icon:t2,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(fh,{variant:"transparent",color:c,icon:K5,onClick:F}),v.jsx(fh,{variant:"transparent",color:c,icon:P_,onClick:U})]})]}),fe=()=>{const B=Ji(k_(u)),Y=F_(N_(u)),O=L_({start:B,end:Y}),R=new Date;return R.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const le=uv(K,h),z=N4(K,u),J=R4(K),oe=K<R,ne=K>R,de=!z||oe&&!a||ne&&!o||r&&K<r||i&&K>i;return v.jsx(qe.div,{className:`
668
668
  p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
669
669
  ${de?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
- `,onClick:()=>!de&&J(K),initial:!1,animate:{backgroundColor:le?C.primaryLight:"transparent",color:le?C.textLight:Z?C.text:de?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!de&&!le?{backgroundColor:C.hoverLight}:{},whileTap:de?{}:{backgroundColor:le?C.primaryDark:C.hoverLight},children:Dn(K,"d")},ae)})})},he=()=>{const B=Array.from({length:12},(O,R)=>R+1),Y=()=>v.jsx("div",{className:"bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4",children:B.map(O=>v.jsxs("button",{onClick:()=>ee(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?C.hoverLight:"transparent",color:O===p?C.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:R=>{O!==p&&(R.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:R=>{O!==p&&(R.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return v.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[v.jsx("h4",{className:"text-body-m font-medium",children:E("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(ko,{open:$,onClose:()=>A(!1),component:Y,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(iN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),v.jsx(rN,{selectedPeriod:S,handlePeriodChange:se,colorVariants:C})]})]})},V={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return v.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[ue(),v.jsx(Nn,{initial:!1,mode:"popLayout",children:v.jsx(qe.div,{variants:V,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:fe()},Dn(u,"yyyy-MM"))}),n&&he()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="base",leftSide:h,rightSide:m,...p})=>{const{t:y}=Ue(),b={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d];return v.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
670
+ `,onClick:()=>!de&&Z(K),initial:!1,animate:{backgroundColor:le?E.primaryLight:"transparent",color:le?E.textLight:J?E.text:de?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!de&&!le?{backgroundColor:E.hoverLight}:{},whileTap:de?{}:{backgroundColor:le?E.primaryDark:E.hoverLight},children:Dn(K,"d")},ae)})})},he=()=>{const B=Array.from({length:12},(O,R)=>R+1),Y=()=>v.jsx("div",{className:"bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4",children:B.map(O=>v.jsxs("button",{onClick:()=>ee(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?E.hoverLight:"transparent",color:O===p?E.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:R=>{O!==p&&(R.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:R=>{O!==p&&(R.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return v.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[v.jsx("h4",{className:"text-body-m font-medium",children:A("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(ko,{open:$,onClose:()=>P(!1),component:Y,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(oN,{setHourMenuOpen:P,hourMenuOpen:$,selectedHour:p})}),v.jsx(sN,{selectedPeriod:S,handlePeriodChange:se,colorVariants:E})]})]})},V={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return v.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[ue(),v.jsx(Nn,{initial:!1,mode:"popLayout",children:v.jsx(qe.div,{variants:V,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:fe()},Dn(u,"yyyy-MM"))}),n&&he()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="base",leftSide:h,rightSide:m,...p})=>{const{t:y}=Ue(),b={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d];return v.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
671
671
  flex items-center justify-between gap-8 ${b.container}
672
672
 
673
673
  ${i&&"!border-red-500"}
@@ -683,14 +683,14 @@ function print() { __p += __j.call(arguments, '') }
683
683
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
684
684
  ${u&&"hover:!cursor-pointer"}
685
685
  group-disabled:bg-gray-500
686
- `,children:[h&&h,v.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${b.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),m&&m]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:i&&y(i||"",{x:y(r)})})]})},n2=e=>Dn(e,"dd/MM/yyyy"),r2=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},hN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0})=>{const{field:{value:u,onChange:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:t,control:e}),{t:p}=Ue(),y=p(t),S=p(i),[b,T]=I.useState(!1),[w,E]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?E(n2(u)):E("")},[u]);const C=r2(w),$=D=>{const j=D.replace(/\D/g,"").slice(0,8),F=[];j.length>0&&F.push(j.slice(0,2)),j.length>2&&F.push(j.slice(2,4)),j.length>4&&F.push(j.slice(4,8));const U=F.join("/");if(E(U),T(!1),U.length===10){const J=r2(U);d(J)}},A=()=>{d(null),E("")};return v.jsx(ko,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:C||new Date,onDateChange:D=>{E(n2(D)),d(D),T(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:D=>{D.preventDefault(),T(!0)},disabledInput:!0,onChange:D=>$(D),placeholder:o,error:m==null?void 0:m.message,rightSide:!!C&&v.jsx(Me,{icon:iv,className:"text-gray-500 cursor-pointer",onClick:A})})})},i2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=q5,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=Ue();return v.jsx(Nn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(qe.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:y=>y.stopPropagation(),children:v.jsxs(ws,{className:"flex flex-col gap-20 p-32",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("div",{className:"flex justify-end",children:c&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),v.jsx("div",{className:"flex justify-center",children:v.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:v.jsx(Me,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&v.jsx(xi,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(xi,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},s2={duration:.3,ease:[.32,.72,0,1]},mN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},pN=({isOpen:e})=>v.jsx(qe.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(Me,{icon:G5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),gN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return v.jsxs(qe.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[v.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
686
+ `,children:[h&&h,v.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${b.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),m&&m]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:i&&y(i||"",{x:y(r)})})]})},n2=e=>Dn(e,"dd/MM/yyyy"),r2=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},pN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:d,onChange:h,onBlur:m},fieldState:{error:p}}=hr.useController({name:t,control:e}),{t:y}=Ue(),S=y(t),b=y(i),[T,w]=_.useState(!1),[A,E]=_.useState("");_.useEffect(()=>{d instanceof Date&&!isNaN(d.getTime())?E(n2(d)):E("")},[d]);const $=r2(A),P=j=>{const F=j.replace(/\D/g,"").slice(0,8),U=[];F.length>0&&U.push(F.slice(0,2)),F.length>2&&U.push(F.slice(2,4)),F.length>4&&U.push(F.slice(4,8));const Z=U.join("/");if(E(Z),w(!1),Z.length===10){const ee=r2(Z);h(ee)}},N=()=>{h(null),E("")};return v.jsx(ko,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>w(!1),className:"p-0!",component:v.jsx(Xd,{date:$||new Date,onDateChange:j=>{E(n2(j)),h(j),w(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{size:u,onBlur:m,name:b||S,label:r,value:A,onFocus:j=>{j.preventDefault(),w(!0)},disabledInput:!0,onChange:j=>P(j),placeholder:o,error:p==null?void 0:p.message,rightSide:!!$&&v.jsx(Me,{icon:iv,className:"text-gray-500 cursor-pointer",onClick:N})})})},i2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=X5,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=Ue();return v.jsx(Nn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:v.jsx(qe.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:y=>y.stopPropagation(),children:v.jsxs(ws,{className:"flex flex-col gap-20 p-32",children:[v.jsxs("div",{className:"flex flex-col",children:[v.jsx("div",{className:"flex justify-end",children:c&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),v.jsx("div",{className:"flex justify-center",children:v.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:v.jsx(Me,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),v.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[v.jsxs("div",{className:"text-center w-full",children:[v.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),v.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),v.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&v.jsx(xi,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(xi,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},s2={duration:.3,ease:[.32,.72,0,1]},gN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},yN=({isOpen:e})=>v.jsx(qe.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(Me,{icon:H5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),vN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=_.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return v.jsxs(qe.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[v.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
687
687
  ${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
688
688
  transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
689
- flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),v.jsxs("div",{className:"flex gap-10 items-center",children:[v.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),v.jsx(pN,{isOpen:h})]})]}),v.jsx(Nn,{mode:"wait",children:h&&v.jsx(qe.div,{...mN,transition:{height:{duration:s2.duration,ease:s2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=I.useState(o()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+C,99),D=Math.max(0,Math.round((100-A)/10));return m(D),A})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Me,{icon:YC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Me,{icon:GC})}),a===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Me,{icon:UC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(qe.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),a===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},o2=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
689
+ flex items-center gap-2 group w-full justify-between`,children:[v.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),v.jsxs("div",{className:"flex gap-10 items-center",children:[v.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),v.jsx(yN,{isOpen:h})]})]}),v.jsx(Nn,{mode:"wait",children:h&&v.jsx(qe.div,{...gN,transition:{height:{duration:s2.duration,ease:s2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},bN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=_.useState(o()),[u,d]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const E=100/(r/100);T=setInterval(()=>{d($=>{const P=Math.min($+E,99),N=Math.max(0,Math.round((100-P)/10));return m(N),P})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return v.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Me,{icon:YC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),v.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&v.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Me,{icon:GC})}),a===Ht.ERROR&&v.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:v.jsx(Me,{icon:UC})})]}),v.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(qe.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),v.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):v.jsxs("div",{className:"text-sm",children:[v.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",v.jsx("span",{className:y(),children:p()})]})}),a===Ht.LOADING&&v.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:v.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},o2=({index:e,label:t,active:n,completed:r})=>v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("div",{className:`
690
690
  size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
691
691
  ${n&&"border-blue-500! text-blue-500!"}
692
692
  ${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
693
- `,children:r?v.jsx(Me,{icon:lN,className:`
693
+ `,children:r?v.jsx(Me,{icon:uN,className:`
694
694
  text-blue-500
695
695
  size-16
696
696
  `}):e}),v.jsx("h6",{className:`
@@ -698,9 +698,9 @@ function print() { __p += __j.call(arguments, '') }
698
698
  ${n||r?"text-blue-500":"text-gray-300"}
699
699
  ${n&&"font-600"}
700
700
  ${r&&"font-500"}
701
- `,children:t})]}),vN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(o2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),bN=({label:e,value:t})=>v.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),a2=({title:e,children:t,className:n=""})=>v.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});a2.Entry=bN;const ws=({children:e,className:t,element:n="div"})=>{const r=n;return v.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},xN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return v.jsx(Nn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:v.jsx(qe.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:v.jsx(ws,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},wN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},SN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return SN;case"blue":default:return wN}},TN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(qe.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:v.jsx(qe.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Nn,{mode:"wait",children:a||c?v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?v.jsx(Me,{icon:ag,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):v.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:og,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
701
+ `,children:t})]}),xN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(o2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),wN=({label:e,value:t})=>v.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),a2=({title:e,children:t,className:n=""})=>v.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[v.jsx("h4",{className:"text-body-m font-600",children:e}),v.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});a2.Entry=wN;const ws=({children:e,className:t,element:n="div"})=>{const r=n;return v.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},SN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return v.jsx(Nn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:v.jsx(qe.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:v.jsx(ws,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},TN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},EN={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return EN;case"blue":default:return TN}},CN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(qe.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:v.jsx(qe.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Nn,{mode:"wait",children:a||c?v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?v.jsx(Me,{icon:ag,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):v.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:og,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
702
702
 
703
- `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},EN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(qe.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:v.jsx(qe.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Nn,{mode:"wait",children:o||a?v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:ag,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:og,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},CN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,p]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((E,C)=>S(C)?"focus":E.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const E=w.findIndex((C,$)=>C!==c[$]);h(E!==-1?E:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,E)=>{var D;const C=S(E-1)?"focus":(D=e[E-1])!=null&&D.completed?"done":"pending",$=S(E)?"focus":w.completed?"done":"pending",A=m&&d===E;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[E!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:C==="done"||C==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(TN,{index:E,status:$,shouldAnimate:A,label:w.label,color:i})]},E)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,E)=>{const C=S(E)?"focus":w.completed?"done":"pending",$=m&&d===E;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(EN,{index:E,status:C,shouldAnimate:$,label:w.label,color:i})},E)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},PN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=I.useRef([]),[h,m]=I.useState({left:0,width:0}),p=I.useRef(null),{defaultColorScheme:y}=Ue(),S=t||y,b=()=>{const T=n.findIndex(w=>w.id===r);if(T>=0&&d.current[T]){const w=d.current[T];if(w&&p.current){const E=p.current.getBoundingClientRect(),C=w.getBoundingClientRect();m({left:C.left-E.left,width:C.width})}}};return I.useEffect(()=>{b()},[r,n]),I.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),v.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,w)=>v.jsx(mf.div,{ref:E=>{d.current[w]=E},className:"w-full",children:v.jsx(L2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),AN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function MN({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m}){const[p,y]=I.useState(!1),[S,b]=I.useState(e?Qd(e):"");I.useEffect(()=>{b(e?Qd(e):"")},[e]);const T=E=>{const C=E.replace(/\D/g,"").slice(0,8),$=[];C.length>0&&$.push(C.slice(0,2)),C.length>2&&$.push(C.slice(2,4)),C.length>4&&$.push(C.slice(4,8));const A=$.join("/");if(b(A),y(!1),A.length===10){const D=AN(A);D&&t(D)}},w=()=>{t(null),b("")};return v.jsx(ko,{open:p,strategy:"fixed",padding:0,offset:0,onClose:()=>y(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:E=>{t(E),b(Qd(E)),y(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?v.jsx("div",{onClick:E=>{E.preventDefault(),y(!0)},children:m}):v.jsx(Zd,{name:o,label:n,value:S,onClick:E=>{E.preventDefault(),y(!0)},onChange:E=>T(E),placeholder:r,error:i,rightSide:e&&v.jsx(Me,{icon:iv,className:"text-gray-500 cursor-pointer",onClick:w})})})}function l2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l2(e))&&(r&&(r+=" "),r+=t);return r}const c2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},u2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},f2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},d2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},ON="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",_N={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},IN=(e="filled",t="blue",n="base")=>{const r=Vn(ON,_N[n]),i={blue:c2[e],aqua:u2[e],red:f2[e],gray:d2[e]}[t];return Vn(r,i)},$N="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",DN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},NN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},RN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn($N,DN[n],NN[r]),o={blue:c2[e],aqua:u2[e],red:f2[e],gray:d2[e]}[t];return Vn(i,o)},LN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},jo=(e="base")=>LN[e],xi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return v.jsxs("button",{type:"button",className:IN(r,d,i)+" "+a,...c,children:[e&&v.jsx(Me,{icon:e,className:jo(i)}),o,t&&v.jsx(Me,{icon:t,className:jo(i)})]})},kN=({name:e,error:t,value:n,onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:y="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:w=!0,leftSide:E,rightSide:C})=>{const{t:$}=Ue(),[A,D]=I.useState(!1),j=I.useRef(null),{x:F,y:U,strategy:J,refs:ee,context:se}=jr({open:A,onOpenChange:D,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:z,elements:Z}){Object.assign(Z.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:b}),ue=kr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:V,styles:B}=bi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const Z=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(Z))})(),O=z=>{w&&(r==null||r(z.label)),D(!1),i==null||i(z),a==null||a(z.value)},R=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),b&&!m&&(D(!A),!A&&j.current&&setTimeout(()=>{var Z;return(Z=j.current)==null?void 0:Z.focus()},100))},le={...b?fe():{},onKeyDown:void 0,onClick:void 0};return v.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),v.jsxs("div",{className:"flex gap-24",children:[v.jsxs("div",{ref:ee.setReference,className:`
703
+ `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},PN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return v.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[v.jsx(qe.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:v.jsx(qe.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:v.jsx(Nn,{mode:"wait",children:o||a?v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:ag,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):v.jsx(qe.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:v.jsx(Me,{icon:og,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),v.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},AN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[d,h]=_.useState(null),[m,p]=_.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;_.useEffect(()=>{const w=e.map((A,E)=>S(E)?"focus":A.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const A=w.findIndex((E,$)=>E!==c[$]);h(A!==-1?A:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,A)=>{var N;const E=S(A-1)?"focus":(N=e[A-1])!=null&&N.completed?"done":"pending",$=S(A)?"focus":w.completed?"done":"pending",P=m&&d===A;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(CN,{index:A,status:$,shouldAnimate:P,label:w.label,color:i})]},A)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,A)=>{const E=S(A)?"focus":w.completed?"done":"pending",$=m&&d===A;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(PN,{index:A,status:E,shouldAnimate:$,label:w.label,color:i})},A)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},MN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:y}=Ue(),S=t||y,b=()=>{const T=n.findIndex(w=>w.id===r);if(T>=0&&d.current[T]){const w=d.current[T];if(w&&p.current){const A=p.current.getBoundingClientRect(),E=w.getBoundingClientRect();m({left:E.left-A.left,width:E.width})}}};return _.useEffect(()=>{b()},[r,n]),_.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),v.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,w)=>v.jsx(mf.div,{ref:A=>{d.current[w]=A},className:"w-full",children:v.jsx(L2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),ON=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function _N({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[y,S]=_.useState(!1),[b,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const w=E=>{const $=E.replace(/\D/g,"").slice(0,8),P=[];$.length>0&&P.push($.slice(0,2)),$.length>2&&P.push($.slice(2,4)),$.length>4&&P.push($.slice(4,8));const N=P.join("/");if(T(N),S(!1),N.length===10){const j=ON(N);j&&t(j)}},A=()=>{t(null),T("")};return v.jsx(ko,{open:y,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?v.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):v.jsx(Zd,{size:p,name:o,label:n,value:b,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>w(E),placeholder:r,error:i,rightSide:e&&v.jsx(Me,{icon:iv,className:"text-gray-500 cursor-pointer",onClick:A})})})}function l2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l2(e))&&(r&&(r+=" "),r+=t);return r}const c2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},u2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},f2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},d2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},IN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",$N={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},DN=(e="filled",t="blue",n="base")=>{const r=Vn(IN,$N[n]),i={blue:c2[e],aqua:u2[e],red:f2[e],gray:d2[e]}[t];return Vn(r,i)},NN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",RN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},LN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},kN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(NN,RN[n],LN[r]),o={blue:c2[e],aqua:u2[e],red:f2[e],gray:d2[e]}[t];return Vn(i,o)},jN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},jo=(e="base")=>jN[e],xi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return v.jsxs("button",{type:"button",className:DN(r,d,i)+" "+a,...c,children:[e&&v.jsx(Me,{icon:e,className:jo(i)}),o,t&&v.jsx(Me,{icon:t,className:jo(i)})]})},FN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:y="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:w=!0,leftSide:A,rightSide:E})=>{const{t:$}=Ue(),[P,N]=_.useState(!1),j=_.useRef(null),{x:F,y:U,strategy:Z,refs:ee,context:se}=jr({open:P,onOpenChange:N,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:b}),ue=kr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:V,styles:B}=bi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const J=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(J))})(),O=z=>{w&&(r==null||r(z.label)),N(!1),i==null||i(z),a==null||a(z.value)},R=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),b&&!m&&(N(!P),!P&&j.current&&setTimeout(()=>{var J;return(J=j.current)==null?void 0:J.focus()},100))},le={...b?fe():{},onKeyDown:void 0,onClick:void 0};return v.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),v.jsxs("div",{className:"flex gap-24",children:[v.jsxs("div",{ref:ee.setReference,className:`
704
704
  flex items-center justify-between gap-8 p-16
705
705
 
706
706
  ${t&&"!border-red-500"}
@@ -716,16 +716,16 @@ function print() { __p += __j.call(arguments, '') }
716
716
  focus-within:border-blue-500 transition-colors duration-200 ease-in-out
717
717
  ${m&&"hover:!cursor-pointer"}
718
718
  group-disabled:bg-gray-500
719
- `,...le,children:[E&&E,v.jsx("input",{ref:j,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!A&&!m&&D(!0)},onChange:z=>R(z.target.value),onKeyDown:z=>{o&&o(z),z.key==="Enter"&&(z.preventDefault(),Y.length>0&&O(Y[0])),z.key==="Escape"&&D(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&v.jsx(Me,{icon:sN,className:`text-xl text-gray-500 cursor-pointer ${A&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:K})]}),T&&v.jsx(xi,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:y})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&$(t||"",{x:$(e)})}),V&&v.jsx("div",{ref:ee.setFloating,style:{position:J,top:U??0,left:F??0,...B,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...he(),children:v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:Y.length>0?v.jsx("ul",{className:"py-4",children:Y.map((z,Z)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),O(z)},children:v.jsx("span",{children:$(z.label)})},`${z.label}-${Z}`))}):n&&(n==null?void 0:n.length)>0?v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},eh=({label:e,onClick:t,onRemove:n,readOnly:r})=>v.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[v.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&v.jsx("button",{onClick:i=>{n(),i.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:v.jsx(Me,{icon:cN})})]}),jN=({values:e,onPillRemove:t})=>{const[n,r]=I.useState(!1),i=e.slice(0,3),o=e.slice(3);return v.jsxs("div",{className:"flex justify-between items-start gap-20",children:[v.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.map((a,c)=>v.jsx(eh,{label:a,onRemove:()=>t(c)},a)),v.jsx(Nn,{children:n&&o.map((a,c)=>v.jsx(qe.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:v.jsx(eh,{label:a,onRemove:()=>t(c)})},a))})]}),o.length>0&&v.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?v.jsxs(v.Fragment,{children:[v.jsx("p",{children:"Ocultar"})," ",v.jsx(Me,{icon:BC})]}):v.jsxs(v.Fragment,{children:[v.jsxs("p",{children:["Ver ",o.length," más"]})," ",v.jsx(Me,{icon:HC})]})})]})},FN=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||yf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(a=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),v.jsx(v.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return v.jsx(i2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(Sx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(y2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function VN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function BN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function WN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function UN(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return v.jsx(i,{...n})}return r??v.jsx("div",{children:"no content"})}const th=[];function h2(e="bottom-center"){var t;if(!th.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}th.push({id:e,element:n}),document.body.appendChild(n)}return(t=th.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=h2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const nh=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=h2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(rv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},m2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return nh(i,e,t),{resolve:n,reject:r}},zN={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>nh(e,t,n),loading:(e,t={})=>m2(e,t)},p2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[y,S]=I.useState(!1),b=()=>r?gf(r):o?gf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",T=A=>{try{return A?(new URL(A),!0):!1}catch(D){return console.log(D),!1}},w=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Ev(o.image):"",E=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):v.jsx(Me,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:C_,className:"w-full text-white"}),C=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[$&&!y&&v.jsx("img",{src:$,alt:r,className:`
719
+ `,...le,children:[A&&A,v.jsx("input",{ref:j,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!P&&!m&&N(!0)},onChange:z=>R(z.target.value),onKeyDown:z=>{o&&o(z),z.key==="Enter"&&(z.preventDefault(),Y.length>0&&O(Y[0])),z.key==="Escape"&&N(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),E&&!b?E:b&&v.jsx(Me,{icon:aN,className:`text-xl text-gray-500 cursor-pointer ${P&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:K})]}),T&&v.jsx(xi,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:y})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&$(t||"",{x:$(e)})}),V&&v.jsx("div",{ref:ee.setFloating,style:{position:Z,top:U??0,left:F??0,...B,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...he(),children:v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:Y.length>0?v.jsx("ul",{className:"py-4",children:Y.map((z,J)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),O(z)},children:v.jsx("span",{children:$(z.label)})},`${z.label}-${J}`))}):n&&(n==null?void 0:n.length)>0?v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},eh=({label:e,onClick:t,onRemove:n,readOnly:r})=>v.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[v.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&v.jsx("button",{onClick:i=>{n(),i.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:v.jsx(Me,{icon:fN})})]}),VN=({values:e,onPillRemove:t})=>{const[n,r]=_.useState(!1),i=e.slice(0,3),o=e.slice(3);return v.jsxs("div",{className:"flex justify-between items-start gap-20",children:[v.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.map(a=>v.jsx(eh,{label:a.label,onRemove:()=>t(a.value)},a.value)),v.jsx(Nn,{children:n&&o.map(a=>v.jsx(qe.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:v.jsx(eh,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&v.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?v.jsxs(v.Fragment,{children:[v.jsx("p",{children:"Ocultar"})," ",v.jsx(Me,{icon:BC})]}):v.jsxs(v.Fragment,{children:[v.jsxs("p",{children:["Ver ",o.length," más"]})," ",v.jsx(Me,{icon:HC})]})})]})},BN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||yf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||yf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=yf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=_.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return _.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),v.jsx(v.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return v.jsx(i2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(Sx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(y2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function WN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function UN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function zN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function GN(e,t,n){const r=t[e];if(_.isValidElement(r)&&typeof r.type!="string")return _.cloneElement(r,n);if(typeof r=="function"){const i=r;return v.jsx(i,{...n})}return r??v.jsx("div",{children:"no content"})}const th=[];function h2(e="bottom-center"){var t;if(!th.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}th.push({id:e,element:n}),document.body.appendChild(n)}return(t=th.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=h2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(v.jsx(pf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const nh=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=h2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(rv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},m2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return nh(i,e,t),{resolve:n,reject:r}},YN={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>nh(e,t,n),loading:(e,t={})=>m2(e,t)},p2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",p=i*.4+"px",[y,S]=_.useState(!1),b=()=>r?gf(r):o?gf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",T=P=>{try{return P?(new URL(P),!0):!1}catch(N){return console.log(N),!1}},w=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Ev(o.image):"",A=()=>r?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?v.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):v.jsx(Me,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:C_,className:"w-full text-white"}),E=()=>{S(!0)},$=w();return v.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[$&&!y&&v.jsx("img",{src:$,alt:r,className:`
720
720
  object-cover w-full h-full text-center indent-[10000px] absolute
721
721
  z-10
722
722
  ${u}
723
- `,onError:C,...d}),v.jsx("div",{className:`
723
+ `,onError:E,...d}),v.jsx("div",{className:`
724
724
  flex items-center justify-center leading-none text-center absolute
725
- `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:E()})]})},g2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),y2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Nn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(qe.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(ws,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(g2,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},GN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var rh,v2;function YN(){if(v2)return rh;v2=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,E){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=E};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);rh={Cache:e,split:m,normalizePath:h,setter:function(w){var E=h(w);return u.get(w)||u.set(w,function($,A){for(var D=0,j=E.length,F=$;D<j-1;){var U=E[D];if(U==="__proto__"||U==="constructor"||U==="prototype")return $;F=F[E[D++]]}F[E[D]]=A})},getter:function(w,E){var C=h(w);return d.get(w)||d.set(w,function(A){for(var D=0,j=C.length;D<j;)if(A!=null||!E)A=A[C[D++]];else return;return A})},join:function(w){return w.reduce(function(E,C){return E+(y(C)||n.test(C)?"["+C+"]":(E?".":"")+C)},"")},forEach:function(w,E,C){p(Array.isArray(w)?w:m(w),E,C)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(E){return E.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,E,C){var $=w.length,A,D,j,F;for(D=0;D<$;D++)A=w[D],A&&(T(A)&&(A='"'+A+'"'),F=y(A),j=!F&&/^\d+$/.test(A),E.call(C,A,F,j,D,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function T(w){return!y(w)&&(S(w)||b(w))}return rh}var wi=YN(),ih,b2;function HN(){if(b2)return ih;b2=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return ih={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},ih}var sh=HN(),dl={exports:{}},x2;function qN(){if(x2)return dl.exports;x2=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var T;try{T=", node was:"+JSON.stringify(y)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var E=w[--S];p(E,m.get(E),b)}while(S);b.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var KN=qN();const XN=$m(KN),ZN=Object.prototype.toString,JN=Error.prototype.toString,QN=RegExp.prototype.toString,eR=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",tR=/^Symbol\((.*)\)(.*)$/;function nR(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function w2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return nR(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return eR.call(e).replace(tR,"Symbol($1)");const r=ZN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+JN.call(e)+"]":r==="RegExp"?QN.call(e):null}function Vr(e,t){let n=w2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=w2(this[r],t);return o!==null?o:i},2)}function S2(e){return e==null?[]:[].concat(e)}let T2,E2,C2,rR=/\$\{\s*(\w+)\s*\}/g;T2=Symbol.toStringTag;class P2{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[T2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],S2(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}E2=Symbol.hasInstance,C2=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(rR,(i,o)=>Vr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new P2(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[C2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[E2](t){return P2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},iR={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},oh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},sR={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:iR,date:oh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:sR,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``}return jt.formatError(Bn.notType,e)}}});const ah=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!ah(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class Si{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&wi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Si.prototype.__isYupRef=!0;const Ti=e=>e==null;function Ss(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function E(ee){return Si.isRef(ee)?ee.getValue(n,S,b):ee}function C(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||w},m,ee.params);for(const ue of Object.keys(se))se[ue]=E(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||d,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:C,resolve:E,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(C())},j=ee=>{jt.isError(ee)?$(ee):c(ee)};if(y&&Ti(n))return D(!0);let U;try{var J;if(U=h.call(A,n,A),typeof((J=U)==null?void 0:J.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(D,j)}}catch(ee){j(ee);return}D(U)}return t.OPTIONS=e,t}function oR(e,t,n,r=n){let i,o,a;return t?(wi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(Si.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ts(e,t=new Map){if(ah(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Ts(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Ts(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ts(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ts(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ts(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Ti(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
725
+ `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})},g2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?v.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):v.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),y2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return v.jsx(Nn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(qe.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:v.jsx(qe.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:v.jsxs(ws,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[v.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[v.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&v.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&v.jsx(Me,{icon:tu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&v.jsx(g2,{className:"bg-gray-100!"})]}),v.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},HN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return v.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:v.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var rh,v2;function qN(){if(v2)return rh;v2=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,A){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);rh={Cache:e,split:m,normalizePath:h,setter:function(w){var A=h(w);return u.get(w)||u.set(w,function($,P){for(var N=0,j=A.length,F=$;N<j-1;){var U=A[N];if(U==="__proto__"||U==="constructor"||U==="prototype")return $;F=F[A[N++]]}F[A[N]]=P})},getter:function(w,A){var E=h(w);return d.get(w)||d.set(w,function(P){for(var N=0,j=E.length;N<j;)if(P!=null||!A)P=P[E[N++]];else return;return P})},join:function(w){return w.reduce(function(A,E){return A+(y(E)||n.test(E)?"["+E+"]":(A?".":"")+E)},"")},forEach:function(w,A,E){p(Array.isArray(w)?w:m(w),A,E)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(A){return A.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,A,E){var $=w.length,P,N,j,F;for(N=0;N<$;N++)P=w[N],P&&(T(P)&&(P='"'+P+'"'),F=y(P),j=!F&&/^\d+$/.test(P),A.call(E,P,F,j,N,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function b(w){return i.test(w)}function T(w){return!y(w)&&(S(w)||b(w))}return rh}var wi=qN(),ih,b2;function KN(){if(b2)return ih;b2=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return ih={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},ih}var sh=KN(),dl={exports:{}},x2;function XN(){if(x2)return dl.exports;x2=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(y,S,b){if(b.has(y)){var T;try{T=", node was:"+JSON.stringify(y)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){b.add(y);do{var A=w[--S];p(A,m.get(A),b)}while(S);b.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var ZN=XN();const JN=$m(ZN),QN=Object.prototype.toString,eR=Error.prototype.toString,tR=RegExp.prototype.toString,nR=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",rR=/^Symbol\((.*)\)(.*)$/;function iR(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function w2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return iR(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return nR.call(e).replace(rR,"Symbol($1)");const r=QN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+eR.call(e)+"]":r==="RegExp"?tR.call(e):null}function Vr(e,t){let n=w2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=w2(this[r],t);return o!==null?o:i},2)}function S2(e){return e==null?[]:[].concat(e)}let T2,E2,C2,sR=/\$\{\s*(\w+)\s*\}/g;T2=Symbol.toStringTag;class P2{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[T2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],S2(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}E2=Symbol.hasInstance,C2=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(sR,(i,o)=>Vr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new P2(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[C2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[E2](t){return P2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},oR={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},oh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},aR={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:oR,date:oh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:aR,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``}return jt.formatError(Bn.notType,e)}}});const ah=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!ah(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class Si{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&wi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Si.prototype.__isYupRef=!0;const Ti=e=>e==null;function Ss(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function A(ee){return Si.isRef(ee)?ee.getValue(n,S,b):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||w},m,ee.params);for(const ue of Object.keys(se))se[ue]=A(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||d,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let P={path:r,parent:S,type:d,from:i.from,createError:E,resolve:A,options:i,originalValue:o,schema:a};const N=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},j=ee=>{jt.isError(ee)?$(ee):c(ee)};if(y&&Ti(n))return N(!0);let U;try{var Z;if(U=h.call(P,n,P),typeof((Z=U)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(U).then(N,j)}}catch(ee){j(ee);return}N(U)}return t.OPTIONS=e,t}function lR(e,t,n,r=n){let i,o,a;return t?(wi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(Si.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ts(e,t=new Map){if(ah(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Ts(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Ts(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ts(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ts(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ts(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Ti(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
726
726
 
727
727
  attempted value: ${a}
728
- `+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,a))},m=b=>{i||(i=!0,r(b,a))},p=o.length,y=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(E){E&&(Array.isArray(E)?y.push(...E):y.push(E)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ts(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ss({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ss({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ss(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=S2(t).map(o=>new Si(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ss({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ss({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ss({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=oR(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const aR=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lR(e){const t=lh(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function lh(e){var t,n;const r=aR.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let cR=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uR=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fR=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dR="^\\d{4}-\\d{2}-\\d{2}",hR="\\d{2}:\\d{2}:\\d{2}",mR="(([+-]\\d{2}(:?\\d{2})?)|Z)",pR=new RegExp(`${dR}T${hR}(\\.\\d+)?${mR}$`),gR=e=>Ti(e)||e===e.trim(),yR={}.toString();function Br(){return new A2}class A2 extends Wn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===yR?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(cR,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(uR,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(fR,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(pR,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=lh(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=lh(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:gR})}lowercase(t=Ft.lowercase){return this.transform(n=>Ti(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ti(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ti(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ti(n)||n===n.toUpperCase()})}}Br.prototype=A2.prototype;let vR=new Date(""),bR=e=>Object.prototype.toString.call(e)==="[object Date]";class ch extends Wn{constructor(){super({type:"date",check(t){return bR(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=lR(t),isNaN(t)?ch.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Si.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=oh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=oh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}ch.INVALID_DATE=vR;function xR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=wi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Si.isRef(c)&&c.isSibling?o(c.path,a):ah(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return XN.array(Array.from(r),n).reverse()}function M2(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function O2(e){return(t,n)=>M2(e,t)-M2(e,n)}const wR=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const SR=(e,t)=>{const n=[...wi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=wi.getter(wi.join(n),!0)(e);return!!(i&&r in i)};let _2=e=>Object.prototype.toString.call(e)==="[object Object]";function I2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const TR=O2([]);function uh(e){return new $2(e)}class $2 extends Wn{constructor(t){super({type:"object",check(n){return _2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=TR,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,w=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!w?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!_2(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Si.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=xR(t,n),r._sortErrors=O2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=wi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return SR(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(wR)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=I2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=I2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(sh.camelCase)}snakeCase(){return this.transformKeys(sh.snakeCase)}constantCase(){return this.transformKeys(t=>sh.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}uh.prototype=$2.prototype,uh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const D2=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],ER=({countries:e=D2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=I.useState(!1),[y,S]=I.useState(""),[b,T]=I.useState(d.value||null),w=I.useRef(null),E=I.useRef(null),C=I.useRef(null),{x:$,y:A,strategy:D,refs:j,context:F,placement:U,middlewareData:J}=jr({open:m,onOpenChange:p,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:E})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=kr(F),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=bi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},R=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{T(d.value)},[d.value]),I.useEffect(()=>{const pe=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=J.arrow)==null?void 0:Ce.x,le=(Ve=J.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],Z=ge({onClick:O,onBlur:R}),oe=u(r),ne=u(i),de=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:C,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),v.jsxs("div",{ref:j.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...Z,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(b)}.png`,srcSet:`https://flagcdn.com/w40/${K(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ne}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&v.jsxs("div",{ref:j.setFloating,style:{position:D,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:B.length>0?v.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ei;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ei=pe.code)==null?void 0:Ei.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),Y(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},CR=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),v.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},PR=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(AR,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},AR=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,le;const{t:u}=Ue(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),T=I.useRef(null),{x:w,y:E,strategy:C,refs:$,context:A,placement:D,middlewareData:j}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:z,elements:Z}){Object.assign(Z.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(A),U=kr(A),{getReferenceProps:J,getFloatingProps:ee}=Fr([F,U]),{isMounted:se,styles:ge}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const Z=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return Z.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var z;(z=b.current)==null||z.focus()},100)};I.useEffect(()=>{S(t)},[t]);const B=z=>{var Z;return z?z.codeISO2?z.codeISO2.toLowerCase():((Z=z.code)==null?void 0:Z.toLowerCase())||"":""},Y=(ae=j.arrow)==null?void 0:ae.x,O=(le=j.arrow)==null?void 0:le.y,R={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=J({onClick:V});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[B(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(y)}.png`,srcSet:`https://flagcdn.com/w40/${B(y)}.png 2x`,alt:y.label,onError:z=>{z.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&v.jsxs("div",{ref:$.setFloating,style:{position:C,top:E??0,left:w??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[R]:"-2px",borderRight:R==="left"?"1px solid":"none",borderBottom:R==="top"?"1px solid":"none",borderLeft:R==="right"?"1px solid":"none",borderTop:R==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:fe.length>0?v.jsx("ul",{className:"flex flex-col",children:fe.map((z,Z)=>{var ne;const oe=z.codeISO2?z.codeISO2.toLowerCase():((ne=z.code)==null?void 0:ne.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:de=>{de.stopPropagation(),he(z)},children:[oe&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${Z}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},fh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return v.jsx("button",{...u,className:`${RN(e,h,n,r)} ${c}`,children:i?v.jsx(Me,{...o,className:jo(n),icon:i}):a})};function MR(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const OR=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),p=I.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;I.useEffect(()=>{if(S){const E=y==null?void 0:y.field.value;if(MR(E)){const C=URL.createObjectURL(E);return d(C),m(!0),()=>URL.revokeObjectURL(C)}else typeof E=="string"&&E&&E!==e?(d(E),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var E;n&&((E=p.current)==null||E.click())},T=E=>{var $;const C=($=E.target.files)==null?void 0:$[0];if(C){const A=URL.createObjectURL(C);d(A),m(!0),S&&(y==null||y.field.onChange(C)),r&&r(C)}},w=E=>{E.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return v.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&v.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),v.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:b,children:[u?v.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):v.jsx(p2,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:E=>{p.current=E,y&&y.field.ref(E)},onChange:T,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&v.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:v.jsx(Me,{icon:Y5,className:"text-blue-500"})})]})]})]})},_R=uh({name:Br(),base64:Br()}),IR=({imageUrl:e,title:t,subtitle:n})=>v.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[v.jsx("img",{src:e,alt:t,width:100,height:100}),v.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),v.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),$R=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},N2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},DR=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${$R(i)} rounded-lg ${n}`,children:[r?v.jsx(Me,{icon:r,className:`min-h-20 h-20 ${o} ${N2(i)}`}):v.jsx(Me,{icon:aN,className:`min-h-20 h-20 ${o} ${N2(i)}`}),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),v.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),NR=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},RR=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=I.useState(!1),{t:S}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
728
+ `+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,a))},m=b=>{i||(i=!0,r(b,a))},p=o.length,y=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(A){A&&(Array.isArray(A)?y.push(...A):y.push(A)),--p<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,y)=>this.resolve(h)._validate(d,h,p,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ts(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ss({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ss({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ss(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=S2(t).map(o=>new Si(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ss({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ss({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ss({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=lR(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const cR=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function uR(e){const t=lh(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function lh(e){var t,n;const r=cR.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let fR=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dR=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,hR=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,mR="^\\d{4}-\\d{2}-\\d{2}",pR="\\d{2}:\\d{2}:\\d{2}",gR="(([+-]\\d{2}(:?\\d{2})?)|Z)",yR=new RegExp(`${mR}T${pR}(\\.\\d+)?${gR}$`),vR=e=>Ti(e)||e===e.trim(),bR={}.toString();function Br(){return new A2}class A2 extends Wn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===bR?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(fR,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(dR,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(hR,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(yR,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=lh(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=lh(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:vR})}lowercase(t=Ft.lowercase){return this.transform(n=>Ti(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ti(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ti(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ti(n)||n===n.toUpperCase()})}}Br.prototype=A2.prototype;let xR=new Date(""),wR=e=>Object.prototype.toString.call(e)==="[object Date]";class ch extends Wn{constructor(){super({type:"date",check(t){return wR(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=uR(t),isNaN(t)?ch.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Si.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=oh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=oh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}ch.INVALID_DATE=xR;function SR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=wi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Si.isRef(c)&&c.isSibling?o(c.path,a):ah(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return JN.array(Array.from(r),n).reverse()}function M2(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function O2(e){return(t,n)=>M2(e,t)-M2(e,n)}const TR=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const ER=(e,t)=>{const n=[...wi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=wi.getter(wi.join(n),!0)(e);return!!(i&&r in i)};let _2=e=>Object.prototype.toString.call(e)==="[object Object]";function I2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const CR=O2([]);function uh(e){return new $2(e)}class $2 extends Wn{constructor(t){super({type:"object",check(n){return _2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=CR,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],y=m in i;if(p){let S,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,w=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!w?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!_2(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Si.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=SR(t,n),r._sortErrors=O2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=wi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return ER(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(TR)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=I2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=I2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(sh.camelCase)}snakeCase(){return this.transformKeys(sh.snakeCase)}constantCase(){return this.transformKeys(t=>sh.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}uh.prototype=$2.prototype,uh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const D2=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],PR=({countries:e=D2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[y,S]=_.useState(""),[b,T]=_.useState(d.value||null),w=_.useRef(null),A=_.useRef(null),E=_.useRef(null),{x:$,y:P,strategy:N,refs:j,context:F,placement:U,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:A})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=kr(F),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=bi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},R=()=>{setTimeout(()=>{m||d.onBlur()},200)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,le=(Ve=Z.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],J=ge({onClick:O,onBlur:R}),oe=u(r),ne=u(i),de=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),v.jsxs("div",{ref:j.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(b)}.png`,srcSet:`https://flagcdn.com/w40/${K(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ne}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&v.jsxs("div",{ref:j.setFloating,style:{position:N,top:P??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[v.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:B.length>0?v.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ei;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ei=pe.code)==null?void 0:Ei.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),Y(pe)},children:[ft&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},AR=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),v.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},MR=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(OR,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},OR=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,le;const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:A,strategy:E,refs:$,context:P,placement:N,middlewareData:j}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(P),U=kr(P),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,U]),{isMounted:se,styles:ge}=bi(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const J=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var z;(z=b.current)==null||z.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=z=>{var J;return z?z.codeISO2?z.codeISO2.toLowerCase():((J=z.code)==null?void 0:J.toLowerCase())||"":""},Y=(ae=j.arrow)==null?void 0:ae.x,O=(le=j.arrow)==null?void 0:le.y,R={top:"bottom",right:"left",bottom:"top",left:"right"}[N.split("-")[0]],K=Z({onClick:V});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?v.jsxs("div",{className:"flex items-center w-full",children:[B(y)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(y)}.png`,srcSet:`https://flagcdn.com/w40/${B(y)}.png 2x`,alt:y.label,onError:z=>{z.currentTarget.style.display="none"}}),v.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):v.jsx("span",{className:"text-gray-500",children:i}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&v.jsxs("div",{ref:$.setFloating,style:{position:E,top:A??0,left:w??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[R]:"-2px",borderRight:R==="left"?"1px solid":"none",borderBottom:R==="top"?"1px solid":"none",borderLeft:R==="right"?"1px solid":"none",borderTop:R==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:v.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:fe.length>0?v.jsx("ul",{className:"flex flex-col",children:fe.map((z,J)=>{var ne;const oe=z.codeISO2?z.codeISO2.toLowerCase():((ne=z.code)==null?void 0:ne.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:de=>{de.stopPropagation(),he(z)},children:[oe&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${J}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},fh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return v.jsx("button",{...u,className:`${kN(e,h,n,r)} ${c}`,children:i?v.jsx(Me,{...o,className:jo(n),icon:i}):a})};function _R(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const IR=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const A=y==null?void 0:y.field.value;if(_R(A)){const E=URL.createObjectURL(A);return d(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof A=="string"&&A&&A!==e?(d(A),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var A;n&&((A=p.current)==null||A.click())},T=A=>{var $;const E=($=A.target.files)==null?void 0:$[0];if(E){const P=URL.createObjectURL(E);d(P),m(!0),S&&(y==null||y.field.onChange(E)),r&&r(E)}},w=A=>{A.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return v.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&v.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),v.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:b,children:[u?v.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):v.jsx(p2,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:A=>{p.current=A,y&&y.field.ref(A)},onChange:T,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&v.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:v.jsx(Me,{icon:q5,className:"text-blue-500"})})]})]})]})},$R=uh({name:Br(),base64:Br()}),DR=({imageUrl:e,title:t,subtitle:n})=>v.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[v.jsx("img",{src:e,alt:t,width:100,height:100}),v.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),v.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),NR=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},N2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},RR=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>v.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${NR(i)} rounded-lg ${n}`,children:[r?v.jsx(Me,{icon:r,className:`min-h-20 h-20 ${o} ${N2(i)}`}):v.jsx(Me,{icon:cN,className:`min-h-20 h-20 ${o} ${N2(i)}`}),v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),v.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),LR=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return v.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:v.jsx("svg",{height:e,width:e,className:"animate-spin",children:v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},kR=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,y]=_.useState(!1),{t:S}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
729
729
  flex items-center justify-between gap-8 p-16
730
730
 
731
731
  ${m&&"!border-red-500"}
@@ -741,9 +741,9 @@ attempted value: ${a}
741
741
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
742
742
 
743
743
  group-disabled:bg-gray-500
744
- `,children:[a&&a,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(Me,{icon:p?zC:VC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!p)})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},LR=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=D2})=>{var Pi,wl,Wr,Sl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Pi=d.value)==null?void 0:Pi.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=I.useState(!1),[w,E]=I.useState(""),[C,$]=I.useState(S||null),[A,D]=I.useState(y),[j,F]=I.useState(!1),U=I.useRef(null),J=I.useRef(null),ee=I.useRef(null),se=I.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:V,placement:B,middlewareData:Y}=jr({open:b,onOpenChange:T,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),bs({element:J})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),R=kr(V),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,R]),{isMounted:le,styles:z}=bi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),ne=be=>{$(be),T(!1),E("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=be=>{const Qe=be.target.value;if(D(Qe),C){const Pt=`${C.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&U.current&&setTimeout(()=>{var be;(be=U.current)==null||be.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),D(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{se.current&&!se.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const De=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=Y.arrow)==null?void 0:wl.x,Ei=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),xl=()=>h.error?"border-red-500":j||b?"border-blue-400":"border-blue-100",Ci=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Ci}),v.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[v.jsxs("div",{ref:he.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":xl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[C!=null&&C.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",C.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(Me,{icon:t2,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:A,onChange:de,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&v.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[v.jsx("div",{ref:J,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ei!=null?`${Ei}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:v.jsx("input",{ref:U,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>E(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:oe.length>0?v.jsx("ul",{className:"flex flex-col",children:oe.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),ne(be)},children:[Pt&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),v.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},kR={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},jR={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},FR=e=>{switch(e){case"aqua":return jR;case"blue":default:return kR}},VR=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=FR(a),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},BR=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(Me,{icon:z5})}),v.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},WR="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",UR={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},zR={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},GR=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=zR[n];break;case"blue":default:r=UR[n];break}return Vn(WR,r)},YR=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${GR(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx(Me,{icon:a,className:jo()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(Me,{icon:a,className:jo()}),e]})},HR="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",qR={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},KR={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},XR="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",ZR={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},JR={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},R2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=ZR[n];break;case"aqua":default:r=JR[n];break}return Vn(XR,r)},QR=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=KR[n];break;case"blue":default:r=qR[n];break}return Vn(HR,r)},eL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${QR(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(Me,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(Me,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},tL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(YR,{...n}):t==="mobile"?v.jsx(eL,{...n}):null},nL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(rL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),rL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=Ue(),[d,h]=I.useState(!1),[m,p]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),T=I.useRef(null),{x:w,y:E,strategy:C,refs:$,context:A}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(A),j=kr(A),{getReferenceProps:F,getFloatingProps:U}=Fr([D,j]),{isMounted:J,styles:ee}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(Y=>{const O=Y.label.toLowerCase(),R=Y.key.toLowerCase();return O.includes(B)||R.includes(B)})})(),ge=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};I.useEffect(()=>{S(t)},[t]);const fe=F({onClick:ue}),he=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
744
+ `,children:[a&&a,v.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),v.jsx(Me,{icon:p?zC:VC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!p)})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},jR=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=D2})=>{var Pi,wl,Wr,Sl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Pi=d.value)==null?void 0:Pi.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=_.useState(!1),[w,A]=_.useState(""),[E,$]=_.useState(S||null),[P,N]=_.useState(y),[j,F]=_.useState(!1),U=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:V,placement:B,middlewareData:Y}=jr({open:b,onOpenChange:T,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),R=kr(V),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,R]),{isMounted:le,styles:z}=bi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),ne=be=>{$(be),T(!1),A("");const Qe=`${be.phone} ${P}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=be=>{const Qe=be.target.value;if(N(Qe),E){const Pt=`${E.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&U.current&&setTimeout(()=>{var be;(be=U.current)==null||be.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),N(Pt)}},[d.value,c]),_.useEffect(()=>{const be=Qe=>{se.current&&!se.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const De=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(wl=Y.arrow)==null?void 0:wl.x,Ei=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),xl=()=>h.error?"border-red-500":j||b?"border-blue-400":"border-blue-100",Ci=u(n),qt=u(r),bn=(Sl=h.error)==null?void 0:Sl.message;return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Ci}),v.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[v.jsxs("div",{ref:he.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":xl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",E.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(Me,{icon:t2,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":xl()}`,placeholder:qt,value:P,onChange:de,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&v.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[v.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ei!=null?`${Ei}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),v.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:v.jsx("input",{ref:U,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>A(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),v.jsx("div",{children:oe.length>0?v.jsx("ul",{className:"flex flex-col",children:oe.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return v.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),ne(be)},children:[Pt&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),v.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):v.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},FR={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},VR={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},BR=e=>{switch(e){case"aqua":return VR;case"blue":default:return FR}},WR=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=BR(a),d=Math.min(Math.max(e,0),100);return v.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[v.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:v.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&v.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},UR=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return v.jsx("div",{className:"relative flex items-center",children:v.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[v.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:v.jsx(Me,{icon:Y5})}),v.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},zR="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",GR={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},YR={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},HR=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=YR[n];break;case"blue":default:r=GR[n];break}return Vn(zR,r)},qR=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${HR(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx(Me,{icon:a,className:jo()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(Me,{icon:a,className:jo()}),e]})},KR="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",XR={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},ZR={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},JR="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",QR={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},eL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},R2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=QR[n];break;case"aqua":default:r=eL[n];break}return Vn(JR,r)},tL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=ZR[n];break;case"blue":default:r=XR[n];break}return Vn(KR,r)},nL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${tL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?v.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(Me,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx("div",{className:R2(r,d),children:v.jsx(Me,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},rL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(qR,{...n}):t==="mobile"?v.jsx(nL,{...n}):null},iL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>v.jsx(sL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),sL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[y,S]=_.useState(t||null),b=_.useRef(null),T=_.useRef(null),{x:w,y:A,strategy:E,refs:$,context:P}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),N=vi(P),j=kr(P),{getReferenceProps:F,getFloatingProps:U}=Fr([N,j]),{isMounted:Z,styles:ee}=bi(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(Y=>{const O=Y.label.toLowerCase(),R=Y.key.toLowerCase();return O.includes(B)||R.includes(B)})})(),ge=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const fe=F({onClick:ue}),he=u(i);return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),v.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
745
745
  border transition-all duration-200 hover:border-blue-400
746
- ${o?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...fe,children:[y?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:u(y.label)})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:he}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),J&&v.jsxs("div",{ref:$.setFloating,style:{position:C,top:E??0,left:w??0,...ee,width:$.reference.current instanceof Element?$.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...U(),children:[c&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:b,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:u("search_options"),value:m,onChange:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:se.length>0?v.jsx("ul",{className:"py-4",children:se.map((V,B)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(y==null?void 0:y.key)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ge(V)},children:v.jsx("span",{children:u(V.label)})},`${V.key}-${B}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},iL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},sL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},oL=e=>{switch(e){case"aqua":return sL;case"blue":default:return iL}},aL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=oL(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
746
+ ${o?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...fe,children:[y?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:u(y.label)})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:he}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),Z&&v.jsxs("div",{ref:$.setFloating,style:{position:E,top:A??0,left:w??0,...ee,width:$.reference.current instanceof Element?$.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...U(),children:[c&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:b,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:u("search_options"),value:m,onChange:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:se.length>0?v.jsx("ul",{className:"py-4",children:se.map((V,B)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(y==null?void 0:y.key)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ge(V)},children:v.jsx("span",{children:u(V.label)})},`${V.key}-${B}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},oL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},aL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},lL=e=>{switch(e){case"aqua":return aL;case"blue":default:return oL}},cL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=lL(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
747
747
  flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
748
748
  ${!i&&"w-fit"}
749
749
  ${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
@@ -756,8 +756,8 @@ attempted value: ${a}
756
756
  transition-all duration-100 ease-in-out
757
757
  opacity-0 capitalize
758
758
  ${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
759
- ${e&&d}`,children:n})]})},lL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",cL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},uL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},fL=(e="underline",t=!1)=>Vn(lL,cL[e],uL[String(t)]),L2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>v.jsxs("button",{className:`${fL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx(Me,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),dL="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",hL={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},mL=(e="blue")=>Vn(dL,hL[e]),k2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return v.jsx("button",{type:"button",className:mL(o)+" "+n,...r,children:t})},pL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:d="base",...h})=>{const{field:{value:m="",onChange:p,ref:y,onBlur:S},fieldState:{error:b}}=hr.useController({name:n,control:t}),{t:T}=Ue(),E={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d],C=T(n),$=T(u);return v.jsxs("label",{className:`flex flex-col group select-none ${E.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${b&&"text-red-500!"} ${E.label} ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
760
- flex items-center justify-between gap-8 ${E.container}
759
+ ${e&&d}`,children:n})]})},uL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",fL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},dL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},hL=(e="underline",t=!1)=>Vn(uL,fL[e],dL[String(t)]),L2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>v.jsxs("button",{className:`${hL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx(Me,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),mL="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",pL={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},gL=(e="blue")=>Vn(mL,pL[e]),k2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return v.jsx("button",{type:"button",className:gL(o)+" "+n,...r,children:t})},yL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:d="base",...h})=>{const{field:{value:m="",onChange:p,ref:y,onBlur:S},fieldState:{error:b}}=hr.useController({name:n,control:t}),{t:T}=Ue(),A={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d],E=T(n),$=T(u);return v.jsxs("label",{className:`flex flex-col group select-none ${A.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${b&&"text-red-500!"} ${A.label} ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
760
+ flex items-center justify-between gap-8 ${A.container}
761
761
 
762
762
  ${b&&"border-red-500!"}
763
763
 
@@ -772,9 +772,9 @@ attempted value: ${a}
772
772
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
773
773
 
774
774
  group-disabled:bg-gray-500
775
- `,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:A=>p(A.target.value),onBlur:S,ref:y,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${E.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${E.error}`,children:(b==null?void 0:b.message)&&T(b.message,{x:$||C})})]})},gL=({label:e,value:t,className:n})=>v.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[v.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),v.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),yL=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="Select an option",placeholder:a="Select an option...",className:c="",allowSearch:u=!1})=>{const[d,h]=I.useState(!1),[m,p]=I.useState(""),y=I.useRef(null),S=I.useRef(null),b=e.find(V=>V.value===n),T=I.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:I.isValidElement(V.label)?vl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),w=I.useMemo(()=>{const V={keys:[{name:"searchableLabel",weight:2},{name:"searchableValue",weight:1}],threshold:.2,distance:150,includeScore:!0,includeMatches:!0,ignoreLocation:!0,minMatchCharLength:1,shouldSort:!0,findAllMatches:!0};return new hT(T,V)},[T]),{x:E,y:C,strategy:$,refs:A,context:D}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(D),F=kr(D),{getReferenceProps:U,getFloatingProps:J}=Fr([j,F]),{isMounted:ee,styles:se}=bi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=I.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),ue=V=>{t(V.value),h(!1),p("")},he=U({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),v.jsxs("div",{ref:A.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
775
+ `,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:P=>p(P.target.value),onBlur:S,ref:y,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${A.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),v.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:(b==null?void 0:b.message)&&T(b.message,{x:$||E})})]})},vL=({label:e,value:t,className:n})=>v.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[v.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),v.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),bL=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="Select an option",placeholder:a="Select an option...",className:c="",allowSearch:u=!1})=>{const[d,h]=_.useState(!1),[m,p]=_.useState(""),y=_.useRef(null),S=_.useRef(null),b=e.find(V=>V.value===n),T=_.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:_.isValidElement(V.label)?vl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),w=_.useMemo(()=>{const V={keys:[{name:"searchableLabel",weight:2},{name:"searchableValue",weight:1}],threshold:.2,distance:150,includeScore:!0,includeMatches:!0,ignoreLocation:!0,minMatchCharLength:1,shouldSort:!0,findAllMatches:!0};return new hT(T,V)},[T]),{x:A,y:E,strategy:$,refs:P,context:N}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Rr(),Nr({padding:8}),vs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(N),F=kr(N),{getReferenceProps:U,getFloatingProps:Z}=Fr([j,F]),{isMounted:ee,styles:se}=bi(N,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=_.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),ue=V=>{t(V.value),h(!1),p("")},he=U({onClick:()=>{r||(h(!d),!d&&y.current&&u&&setTimeout(()=>{var V;return(V=y.current)==null?void 0:V.focus()},100))}});return v.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[o&&v.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),v.jsxs("div",{ref:P.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
776
776
  border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
777
- ${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...he,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ee&&v.jsxs("div",{ref:A.setFloating,style:{position:$,top:C??0,left:E??0,...se,width:A.reference.current instanceof Element?A.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...J(),children:[u&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:y,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:m,onChange:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ge.length>0?v.jsx("ul",{className:"py-4",children:ge.map((V,B)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ue(V)},children:v.jsx("span",{children:V.label})},`${V.value}-${B}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},vl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(I.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(vl).join(" "):vl(n):""}return Array.isArray(e)?e.map(vl).join(" "):""},dh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=I.useState(o),m=(e-t)/2,p=2*Math.PI*m,y=p*(1-d/100),{className:S="",...b}=u;return I.useEffect(()=>{if(!a)return;let T,w;const E=C=>{T||(T=C);const $=C-T,A=Math.min(100,$/r*100);h(A),A<100&&(w=requestAnimationFrame(E))};return w=requestAnimationFrame(E),()=>{w&&cancelAnimationFrame(w)}},[r,a]),v.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:y,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),v.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&v.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},vL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,y]=I.useState(!1),[S,b]=I.useState(""),T=I.useRef(null),w=i.map(U=>`.${U}`).join(","),E=U=>{const J=[];let ee=!1;Array.from(U).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){b(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){b(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}J.push(se)}),!ee&&J.length>0&&(b(""),r(J))},C=()=>{T.current&&T.current.click()},$=U=>{const J=U.target.files;J&&J.length>0&&E(J),U.target.value=""},A=U=>{U.preventDefault(),U.stopPropagation(),y(!0)},D=U=>{U.preventDefault(),U.stopPropagation(),y(!1)},j=U=>{U.preventDefault(),U.stopPropagation(),p||y(!0)},F=U=>{U.preventDefault(),U.stopPropagation(),y(!1);const J=U.dataTransfer.files;J.length>0&&E(J)};return h==="row"?a?v.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:v.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[v.jsx(dh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:v.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:j,onDrop:F,onClick:C,children:[v.jsx("div",{className:"flex justify-center shrink-0",children:v.jsx(Me,{icon:oN,className:"text-blue-500 text-2xl"})}),v.jsx("div",{className:"flex flex-col items-start text-left grow",children:v.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),v.jsx("div",{className:"shrink-0",children:v.jsx(xi,{color:"blue",variant:"transparent",children:m(n)})}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?v.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:v.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[v.jsx(dh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:v.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:j,onDrop:F,onClick:C,children:[v.jsx("div",{className:"flex justify-center translate-y-4",children:v.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),v.jsx(k2,{color:"blue",children:m(n)}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),v.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:v.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Tv(o,"mb")]})})]})},ln=8,bL=1e3,xL="300px",wL={top:"bottom",right:"left",bottom:"top",left:"right"},SL={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},TL=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=I.useState(!1),u=I.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),Rr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=H3(S,{delay:o}),w=J3(S),E=kr(S),C=eN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,w,E,C]),D=p.split("-")[0],j=wL[D],{x:F,y:U}=b.arrow||{x:0,y:0},J=I.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[J,v.jsx(Nn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:bL,width:"max-content",maxWidth:xL},...A(),children:v.jsxs(qe.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,v.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:U!=null?`${U}px`:"",[j]:"-7px",...SL[D]}})]})})})]})},EL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:y="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:w="#ef4444",mediumColor:E="#eab308",highColor:C="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const j=Y=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((R,K)=>R.threshold-K.threshold);for(let R=O.length-1;R>=0;R--)if(Y>=O[R].threshold)return O[R].color;return O[0].color}return Y<b?w:Y<T?E:C},F=Y=>{if(!S||S.length===0)return;const O=[...S].sort((R,K)=>R.threshold-K.threshold);for(let R=O.length-1;R>=0;R--)if(Y>=O[R].threshold)return O[R].label;return O[0].label},U=Math.min(100,Math.max(0,e)),J=j(U),ee=F(U),se=d/2,ge=(d-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-U/100*ue,B=`rotate(${D} ${se} ${se}) scale(${A?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[v.jsxs("div",{className:"relative",style:{width:d,height:d},children:[v.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[v.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:J,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,className:p?"transition-all ease-out":"",style:p?{transitionDuration:y,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(U),"%"]}),(ee||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},CL=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:y="bg-green-500",singleColor:S})=>{const b=A=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(A>=D[j].threshold)return D[j].color;return D[0].color}return A<d?m:A<h?p:y},T=A=>{if(!u||u.length===0)return;const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(A>=D[j].threshold)return D[j].label;return D[0].label},w=Math.min(100,Math.max(0,e)),E=b(w),C=T(w),$=a?`transition-all ${c} ease-in-out`:"";return v.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[v.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${E} ${$} rounded-full`,style:{width:`${w}%`}})}),t&&v.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[v.jsxs("span",{className:"font-bold",children:[Math.round(w),"%"]}),C&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",C,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},PL=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:y=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,w=(n-r)/2,E=2*Math.PI*w,C=E,$=E-b/100*E,D=`rotate(${S} ${T} ${T}) scale(${y?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[v.jsxs("div",{className:"relative",style:{width:n,height:n},children:[v.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:C,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},AL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return v.jsxs("button",{onClick:t,className:`
777
+ ${i?"border-red-500 hover:border-red-600":""} ${d?"border-blue-400":"border-blue-100"}`,...he,children:[b?v.jsx("div",{className:"flex items-center w-full",children:v.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),v.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ee&&v.jsxs("div",{ref:P.setFloating,style:{position:$,top:E??0,left:A??0,...se,width:P.reference.current instanceof Element?P.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Z(),children:[u&&v.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:v.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),v.jsx("input",{ref:y,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:m,onChange:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&v.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:v.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ge.length>0?v.jsx("ul",{className:"py-4",children:ge.map((V,B)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ue(V)},children:v.jsx("span",{children:V.label})},`${V.value}-${B}`))}):v.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[v.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),v.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},vl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(_.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(vl).join(" "):vl(n):""}return Array.isArray(e)?e.map(vl).join(" "):""},dh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,y=p*(1-d/100),{className:S="",...b}=u;return _.useEffect(()=>{if(!a)return;let T,w;const A=E=>{T||(T=E);const $=E-T,P=Math.min(100,$/r*100);h(P),P<100&&(w=requestAnimationFrame(A))};return w=requestAnimationFrame(A),()=>{w&&cancelAnimationFrame(w)}},[r,a]),v.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:y,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),v.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&v.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},xL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,y]=_.useState(!1),[S,b]=_.useState(""),T=_.useRef(null),w=i.map(U=>`.${U}`).join(","),A=U=>{const Z=[];let ee=!1;Array.from(U).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){b(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){b(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(b(""),r(Z))},E=()=>{T.current&&T.current.click()},$=U=>{const Z=U.target.files;Z&&Z.length>0&&A(Z),U.target.value=""},P=U=>{U.preventDefault(),U.stopPropagation(),y(!0)},N=U=>{U.preventDefault(),U.stopPropagation(),y(!1)},j=U=>{U.preventDefault(),U.stopPropagation(),p||y(!0)},F=U=>{U.preventDefault(),U.stopPropagation(),y(!1);const Z=U.dataTransfer.files;Z.length>0&&A(Z)};return h==="row"?a?v.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:v.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[v.jsx(dh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:v.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:N,onDragOver:j,onDrop:F,onClick:E,children:[v.jsx("div",{className:"flex justify-center shrink-0",children:v.jsx(Me,{icon:lN,className:"text-blue-500 text-2xl"})}),v.jsx("div",{className:"flex flex-col items-start text-left grow",children:v.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),v.jsx("div",{className:"shrink-0",children:v.jsx(xi,{color:"blue",variant:"transparent",children:m(n)})}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?v.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:v.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[v.jsx(dh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[v.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:v.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:N,onDragOver:j,onDrop:F,onClick:E,children:[v.jsx("div",{className:"flex justify-center translate-y-4",children:v.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),v.jsx(k2,{color:"blue",children:m(n)}),v.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:w,onChange:$})]})]})}),S&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),v.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:v.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Tv(o,"mb")]})})]})},ln=8,wL=1e3,SL="300px",TL={top:"bottom",right:"left",bottom:"top",left:"right"},EL={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},CL=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:y,context:S,middlewareData:b}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),Rr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=K3(S,{delay:o}),w=eN(S),A=kr(S),E=nN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:P}=Fr([T,w,A,E]),N=p.split("-")[0],j=TL[N],{x:F,y:U}=b.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[Z,v.jsx(Nn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:wL,width:"max-content",maxWidth:SL},...P(),children:v.jsxs(qe.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,v.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:U!=null?`${U}px`:"",[j]:"-7px",...EL[N]}})]})})})]})},PL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:y="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:w="#ef4444",mediumColor:A="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:P=!0,startAngle:N=-90})=>{const j=Y=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((R,K)=>R.threshold-K.threshold);for(let R=O.length-1;R>=0;R--)if(Y>=O[R].threshold)return O[R].color;return O[0].color}return Y<b?w:Y<T?A:E},F=Y=>{if(!S||S.length===0)return;const O=[...S].sort((R,K)=>R.threshold-K.threshold);for(let R=O.length-1;R>=0;R--)if(Y>=O[R].threshold)return O[R].label;return O[0].label},U=Math.min(100,Math.max(0,e)),Z=j(U),ee=F(U),se=d/2,ge=(d-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-U/100*ue,B=`rotate(${N} ${se} ${se}) scale(${P?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[v.jsxs("div",{className:"relative",style:{width:d,height:d},children:[v.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[v.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,className:p?"transition-all ease-out":"",style:p?{transitionDuration:y,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(U),"%"]}),(ee||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},AL=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:y="bg-green-500",singleColor:S})=>{const b=P=>{if(S)return S;if(u&&u.length>0){const N=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=N.length-1;j>=0;j--)if(P>=N[j].threshold)return N[j].color;return N[0].color}return P<d?m:P<h?p:y},T=P=>{if(!u||u.length===0)return;const N=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=N.length-1;j>=0;j--)if(P>=N[j].threshold)return N[j].label;return N[0].label},w=Math.min(100,Math.max(0,e)),A=b(w),E=T(w),$=a?`transition-all ${c} ease-in-out`:"";return v.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[v.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:v.jsx("div",{className:`h-full ${A} ${$} rounded-full`,style:{width:`${w}%`}})}),t&&v.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[v.jsxs("span",{className:"font-bold",children:[Math.round(w),"%"]}),E&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},ML=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:y=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,w=(n-r)/2,A=2*Math.PI*w,E=A,$=A-b/100*A,N=`rotate(${S} ${T} ${T}) scale(${y?1:-1}, 1)`;return v.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[v.jsxs("div",{className:"relative",style:{width:n,height:n},children:[v.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),v.jsx("circle",{cx:T,cy:T,r:w,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:N,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsxs("div",{className:"text-center",children:[t&&v.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},OL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return v.jsxs("button",{onClick:t,className:`
778
778
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
779
779
  transition-colors duration-200 ease-in-out focus:outline-none
780
780
  shadow-lg
@@ -783,4 +783,4 @@ attempted value: ${a}
783
783
  inline-block h-20 w-20 transform rounded-full bg-white
784
784
  transition-transform duration-200 ease-in-out drop-shadow-xl
785
785
  ${e?"translate-x-24":"translate-x-3"}
786
- `})]})},ML="Alejo",OL=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(wx.Provider,{value:n,children:t})};re.ActionButton=jC,re.AlertModal=Sx,re.AsyncToast=rv,re.AutocompleteInput=kN,re.Avatar=p2,re.BoxContainer=ws,re.Button=xi,re.CalendarSelector=Xd,re.CenterModal=y2,re.Checkbox=GN,re.CircleProgress=PL,re.CountryDropdown=PR,re.CountryInput=ER,re.CountryLabel=CR,re.DateInput=hN,re.DialogModal=i2,re.Divider=g2,re.Dropdown=gN,re.FileUpload=yN,re.FloatingMenu=ko,re.IconButton=fh,re.ImageProfileInput=OR,re.IndexedStep=o2,re.IndexedStepper=vN,re.InfoCard=IR,re.InformationContainer=a2,re.InformationDisclaimer=DR,re.LoadingProgress=dh,re.LoadingSpinner=NR,re.ModalContainer=FN,re.Organism=ML,re.PasswordInput=RR,re.PhoneInput=LR,re.Pill=eh,re.PillsContainer=jN,re.ProgressBar=VR,re.SearchBar=BR,re.SearchModal=xN,re.SectionButton=tL,re.SelectInput=nL,re.SidebarButton=aL,re.Stepper=CN,re.Switch=AL,re.Tab=L2,re.Tabs=PN,re.TextButton=k2,re.TextInput=pL,re.TextStaticInput=gL,re.ThemeProvider=OL,re.ThresholdCircleProgress=EL,re.ThresholdProgressBar=CL,re.Toast=pf,re.Tooltip=TL,re.UncontrolledDateInput=MN,re.UncontrolledSelector=yL,re.UncontrolledTextInput=Zd,re.UploadContainer=vL,re.capitalizeFirstLetter=Sv,re.closeModal=WN,re.defaultTheme=Od,re.formatLocalizedDate=dI,re.getImageUrl=Ev,re.openCustomModal=BN,re.openModal=VN,re.renderTabContent=UN,re.showToastAsync=nh,re.showToastLoading=m2,re.stringToColor=gf,re.toBase64=hI,re.toast=zN,re.translateBytes=Tv,re.useTheme=Ue,re.yupImageProfileValidator=_R,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});
786
+ `})]})},_L="Alejo",IL=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(wx.Provider,{value:n,children:t})};re.ActionButton=jC,re.AlertModal=Sx,re.AsyncToast=rv,re.AutocompleteInput=FN,re.Avatar=p2,re.BoxContainer=ws,re.Button=xi,re.CalendarSelector=Xd,re.CenterModal=y2,re.Checkbox=HN,re.CircleProgress=ML,re.CountryDropdown=MR,re.CountryInput=PR,re.CountryLabel=AR,re.DateInput=pN,re.DialogModal=i2,re.Divider=g2,re.Dropdown=vN,re.FileUpload=bN,re.FloatingMenu=ko,re.IconButton=fh,re.ImageProfileInput=IR,re.IndexedStep=o2,re.IndexedStepper=xN,re.InfoCard=DR,re.InformationContainer=a2,re.InformationDisclaimer=RR,re.LoadingProgress=dh,re.LoadingSpinner=LR,re.ModalContainer=BN,re.Organism=_L,re.PasswordInput=kR,re.PhoneInput=jR,re.Pill=eh,re.PillsContainer=VN,re.ProgressBar=WR,re.SearchBar=UR,re.SearchModal=SN,re.SectionButton=rL,re.SelectInput=iL,re.SidebarButton=cL,re.Stepper=AN,re.Switch=OL,re.Tab=L2,re.Tabs=MN,re.TextButton=k2,re.TextInput=yL,re.TextStaticInput=vL,re.ThemeProvider=IL,re.ThresholdCircleProgress=PL,re.ThresholdProgressBar=AL,re.Toast=pf,re.Tooltip=CL,re.UncontrolledDateInput=_N,re.UncontrolledSelector=bL,re.UncontrolledTextInput=Zd,re.UploadContainer=xL,re.capitalizeFirstLetter=Sv,re.closeModal=zN,re.defaultTheme=Od,re.formatLocalizedDate=dI,re.getImageUrl=Ev,re.openCustomModal=UN,re.openModal=WN,re.renderTabContent=GN,re.showToastAsync=nh,re.showToastLoading=m2,re.stringToColor=gf,re.toBase64=hI,re.toast=YN,re.translateBytes=Tv,re.useFilterToggler=G5,re.useTheme=Ue,re.yupImageProfileValidator=$R,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});