lawgic-dev-kit 0.17.8 → 0.18.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.
@@ -1,4 +1,4 @@
1
- (function(ie,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):(ie=typeof globalThis<"u"?globalThis:ie||self,I(ie.lawgicDevKit={},ie.React,ie.reactHookForm,ie.Fuse,ie.ReactDOM))})(this,function(ie,I,hr,dT,hT){"use strict";function Om(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 Z=Om(I),mT=Om(hT);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:{}},Ls={};/**
1
+ (function(se,_){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"],_):(se=typeof globalThis<"u"?globalThis:se||self,_(se.lawgicDevKit={},se.React,se.reactHookForm,se.Fuse,se.ReactDOM))})(this,function(se,_,hr,dT,hT){"use strict";function Om(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 ee=Om(_),mT=Om(hT);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:{}},ks={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Im;function pT(){if(Im)return Ls;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Ls.Fragment=t,Ls.jsx=n,Ls.jsxs=n,Ls}var ks={};/**
9
+ */var Im;function pT(){if(Im)return ks;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return ks.Fragment=t,ks.jsx=n,ks.jsxs=n,ks}var js={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,16 +14,16 @@
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 $m;function gT(){return $m||($m=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Q?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 R:return"SuspenseList";case z: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 P:return(O.displayName||"Context")+".Provider";case C:return(O._context.displayName||"Context")+".Consumer";case $:var N=O.render;return O=O.displayName,O||(O=N.displayName||N.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return N=O.displayName||null,N!==null?N:e(O.type)||"Memo";case F:N=O._payload,O=O._init;try{return e(O(N))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var N=!1}catch{N=!0}if(N){N=console;var q=N.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return q.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var N=e(O);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var O=te.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(le.call(O,"key")){var N=Object.getOwnPropertyDescriptor(O,"key").get;if(N&&N.isReactWarning)return!1}return O.key!==void 0}function c(O,N){function q(){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)",N))}q.isReactWarning=!0,Object.defineProperty(O,"key",{get:q,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,N,q,se,ce,X,ee,oe){return q=X.ref,O={$$typeof:y,type:O,key:N,props:X,_owner:ce},(q!==void 0?q: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:ee}),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,N,q,se,ce,X,ee,oe){var ne=N.children;if(ne!==void 0)if(se)if(ve(ne)){for(se=0;se<ne.length;se++)m(ne[se]);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(le.call(N,"key")){ne=e(O);var ue=Object.keys(N).filter(function(Ve){return Ve!=="key"});se=0<ue.length?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}",G[ne+se]||(ue=0<ue.length?"{"+ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var $m;function gT(){return $m||($m=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 z: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 P:return(O.displayName||"Context")+".Provider";case E:return(O._context.displayName||"Context")+".Consumer";case $:var N=O.render;return O=O.displayName,O||(O=N.displayName||N.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case k:return N=O.displayName||null,N!==null?N:e(O.type)||"Memo";case F:N=O._payload,O=O._init;try{return e(O(N))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var N=!1}catch{N=!0}if(N){N=console;var K=N.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),t(O)}}function r(O){if(O===b)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var N=e(O);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var O=ne.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(le.call(O,"key")){var N=Object.getOwnPropertyDescriptor(O,"key").get;if(N&&N.isReactWarning)return!1}return O.key!==void 0}function c(O,N){function K(){ue||(ue=!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)",N))}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,N,K,oe,Z,q,Q,ae){return K=q.ref,O={$$typeof:y,type:O,key:N,props:q,_owner:Z},(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:Q}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,N,K,oe,Z,q,Q,ae){var re=N.children;if(re!==void 0)if(oe)if(ye(re)){for(oe=0;oe<re.length;oe++)m(re[oe]);Object.freeze&&Object.freeze(re)}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(re);if(le.call(N,"key")){re=e(O);var fe=Object.keys(N).filter(function(Ve){return Ve!=="key"});oe=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",G[re+oe]||(fe=0<fe.length?"{"+fe.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} />`,se,ne,ue,ne),G[ne+se]=!0)}if(ne=null,q!==void 0&&(n(q),ne=""+q),a(N)&&(n(N.key),ne=""+N.key),"key"in N){q={};for(var Ce in N)Ce!=="key"&&(q[Ce]=N[Ce])}else q=N;return ne&&c(q,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,ne,X,ce,i(),q,ee,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"),C=Symbol.for("react.consumer"),P=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),te=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=Object.prototype.hasOwnProperty,ve=Array.isArray,de=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=de(r(o)),G={};ks.Fragment=b,ks.jsx=function(O,N,q,se,ce){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(O,N,q,!1,se,ce,X?Error("react-stack-top-frame"):V,X?de(r(O)):B)},ks.jsxs=function(O,N,q,se,ce){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(O,N,q,!0,se,ce,X?Error("react-stack-top-frame"):V,X?de(r(O)):B)}}()),ks}var Dm;function yT(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?ta.exports=pT():ta.exports=gT()),ta.exports}var v=yT();/*!
22
+ <%s key={someKey} {...props} />`,oe,re,fe,re),G[re+oe]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(N)&&(n(N.key),re=""+N.key),"key"in N){K={};for(var Ce in N)Ce!=="key"&&(K[Ce]=N[Ce])}else K=N;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,re,q,Z,i(),K,Q,ae)}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"),E=Symbol.for("react.consumer"),P=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),ne=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=Object.prototype.hasOwnProperty,ye=Array.isArray,de=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var ue,he={},V=p["react-stack-bottom-frame"].bind(p,o)(),B=de(r(o)),G={};js.Fragment=b,js.jsx=function(O,N,K,oe,Z){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!1,oe,Z,q?Error("react-stack-top-frame"):V,q?de(r(O)):B)},js.jsxs=function(O,N,K,oe,Z){var q=1e4>ne.recentlyCreatedOwnerStacks++;return h(O,N,K,!0,oe,Z,q?Error("react-stack-top-frame"):V,q?de(r(O)):B)}}()),js}var Dm;function yT(){return Dm||(Dm=1,process.env.NODE_ENV==="production"?ta.exports=pT():ta.exports=gT()),ta.exports}var v=yT();/*!
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.
26
- */function vT(e,t,n){return(t=xT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xT(e){var t=bT(e,"string");return typeof t=="symbol"?t:t+""}const Nm=()=>{};let fc={},Lm={},km=null,jm={mark:Nm,measure:Nm};try{typeof window<"u"&&(fc=window),typeof document<"u"&&(Lm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(jm=performance)}catch{}const{userAgent:Fm=""}=fc.navigator||{},mr=fc,Xe=Lm,Vm=km,na=jm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~Fm.indexOf("MSIE")||~Fm.indexOf("Trident/");var wT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,ST=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Wm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},TT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Um=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",ET="sharp",CT="sharp-duotone",zm=[wt,ra,ET,CT],PT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},AT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},MT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),OT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},_T=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IT=["kit"],$T={kit:{"fa-kit":"fak"}},DT=["fak","fakd"],RT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],LT=["fak","fa-kit","fakd","fa-kit-duotone"],kT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},jT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},FT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},dc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},VT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],hc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...NT,...VT],BT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],WT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),UT=[...Object.keys(FT),...BT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(WT.map(e=>"w-".concat(e))),zT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",mc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",pc="data-fa-pseudo-element",GT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Xm="fontawesome-i2svg",YT="async",HT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function js(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=J({},Wm);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=js(Jm),vc=J({},OT);vc[wt]=J(J(J(J({},{duotone:"fad"}),vc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=js(vc),bc=J({},dc);bc[wt]=J(J({},bc[wt]),RT.kit);const xc=js(bc),wc=J({},jT);wc[wt]=J(J({},wc[wt]),$T.kit),js(wc);const KT=wT,ep="fa-layers-text",XT=ST,ZT=J({},PT);js(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Fs=mr.FontAwesomeConfig||{};function eE(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function tE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=tE(eE(n));i!=null&&(Fs[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Fs.familyPrefix&&(Fs.cssPrefix=Fs.familyPrefix);const Di=J(J({},tp),Fs);Di.autoReplaceSvg||(Di.observeMutations=!1);const ye={};Object.keys(tp).forEach(e=>{Object.defineProperty(ye,e,{enumerable:!0,set:function(t){Di[e]=t,Vs.forEach(n=>n(ye))},get:function(){return Di[e]}})}),Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(e){Di.cssPrefix=e,Vs.forEach(t=>t(ye))},get:function(){return Di.cssPrefix}}),mr.FontAwesomeConfig=ye;const Vs=[];function nE(e){return Vs.push(e),()=>{Vs.splice(Vs.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Bs(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Ri(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Ri(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ec(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function oE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var lE=`:root, :host {
26
+ */function vT(e,t,n){return(t=xT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xT(e){var t=bT(e,"string");return typeof t=="symbol"?t:t+""}const Nm=()=>{};let fc={},Lm={},km=null,jm={mark:Nm,measure:Nm};try{typeof window<"u"&&(fc=window),typeof document<"u"&&(Lm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(jm=performance)}catch{}const{userAgent:Fm=""}=fc.navigator||{},mr=fc,Xe=Lm,Vm=km,na=jm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~Fm.indexOf("MSIE")||~Fm.indexOf("Trident/");var wT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,ST=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Wm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},TT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Um=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",ET="sharp",CT="sharp-duotone",zm=[wt,ra,ET,CT],PT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},AT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},MT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),OT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},_T=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IT=["kit"],$T={kit:{"fa-kit":"fak"}},DT=["fak","fakd"],RT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],LT=["fak","fa-kit","fakd","fa-kit-duotone"],kT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},jT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},FT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},dc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},VT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],hc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...NT,...VT],BT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],WT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),UT=[...Object.keys(FT),...BT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(WT.map(e=>"w-".concat(e))),zT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",mc=16,qm="fa",Km="svg-inline--fa",Jr="data-fa-i2svg",pc="data-fa-pseudo-element",GT="data-fa-pseudo-element-pending",gc="data-prefix",yc="data-icon",Xm="fontawesome-i2svg",YT="async",HT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Fs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=te({},Wm);Jm[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Wm[wt]),Gm.kit),Gm["kit-duotone"]);const qT=Fs(Jm),vc=te({},OT);vc[wt]=te(te(te(te({},{duotone:"fad"}),vc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=Fs(vc),bc=te({},dc);bc[wt]=te(te({},bc[wt]),RT.kit);const xc=Fs(bc),wc=te({},jT);wc[wt]=te(te({},wc[wt]),$T.kit),Fs(wc);const KT=wT,ep="fa-layers-text",XT=ST,ZT=te({},PT);Fs(ZT);const JT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Sc=TT,QT=[...IT,...UT],Vs=mr.FontAwesomeConfig||{};function eE(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function tE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=tE(eE(n));i!=null&&(Vs[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vs.familyPrefix&&(Vs.cssPrefix=Vs.familyPrefix);const Ni=te(te({},tp),Vs);Ni.autoReplaceSvg||(Ni.observeMutations=!1);const ve={};Object.keys(tp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ni[e]=t,Bs.forEach(n=>n(ve))},get:function(){return Ni[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ni.cssPrefix=e,Bs.forEach(t=>t(ve))},get:function(){return Ni.cssPrefix}}),mr.FontAwesomeConfig=ve;const Bs=[];function nE(e){return Bs.push(e),()=>{Bs.splice(Bs.indexOf(e),1)}}const pr=mc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const iE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ws(){let e=12,t="";for(;e-- >0;)t+=iE[Math.random()*62|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Tc(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ec(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function oE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function aE(e){let{transform:t,width:n=mc,height:r=mc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var lE=`:root, :host {
27
27
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
28
28
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
29
29
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -576,41 +576,41 @@ 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 rp(){const e=qm,t=Km,n=ye.cssPrefix,r=ye.replacementClass;let i=lE;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 ip=!1;function Cc(){ye.autoAddCss&&!ip&&(rE(rp()),ip=!0)}var cE={mixout(){return{dom:{css:rp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),oa=1,sp.map(e=>e())};let oa=!1;zn&&(oa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),oa||Xe.addEventListener("DOMContentLoaded",op));function uE(e){zn&&(oa?setTimeout(e,0):sp.push(e))}function Ws(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(Ws).join(""),"</").concat(t,">")}function ap(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 fE(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=fE(e);return t.length===1?t[0].toString(16):null}function dE(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 lp(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=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:Us,shims:hE}=Pn,cp=Object.keys(xc),mE=cp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function pE(e){return~QT.indexOf(e)}function gE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pE(i)?i:null}const pp=()=>{const e=r=>Pc(Us,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});up=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)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Us||ye.autoFetchSvg,n=Pc(hE,(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:{}});dp=n.names,hp=n.unicodes,Oc=aa(ye.styleDefault,{family:ye.familyDefault})};nE(e=>{Oc=aa(e.styleDefault,{family:ye.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function yE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function vE(e){const t=hp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function bE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ye.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>mE[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=qT[n][e];if(n===ra&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ye.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(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(LT),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Um.includes(m))),[u=null]=c,d=bE(o),h=J(J({},xE(a)),{},{prefix:aa(u,{family:d})});return J(J(J({},h),EE({values:e,family:d,styles:Us,config:ye,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Yr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Us.far&&Us.fas&&!ye.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=zm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(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&&SE.includes(n)&&(Object.keys(o).find(p=>TE.includes(p))||a.autoFetchSvg)){const p=MT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class CE{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]=J(J({},this.definitions[o]||{}),i[o]),Mc(o,i[o]);const a=xc[wt][o];a&&Mc(a,i[o]),pp()})}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 bp=[],Ni={};const Li={},PE=Object.keys(Li);function AE(e,t){let{mixoutsTo:n}=t;return bp=e,Ni={},Object.keys(Li).forEach(r=>{PE.indexOf(r)===-1&&delete Li[r]}),bp.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=>{Ni[a]||(Ni[a]=[]),Ni[a].push(o[a])})}r.provides&&r.provides(Li)}),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(Ni[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ni[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Li[e]?Li[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=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new CE,zt={noAuto:()=>{ye.autoReplaceSvg=!1,ye.observeMutations=!1,Hr("noAuto")},config:ye,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("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;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,uE(()=>{ME({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(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:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ye.cssPrefix,"-"))>-1||e.match(KT))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:$c,toHtml:Ws},ME=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ye.autoFetchSvg)&&zn&&ye.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=>Ws(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function OE(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(J(J({},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 _E(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},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=DT.includes(r),b=[ye.replacementClass,i?"".concat(ye.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:J(J({},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[Gr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Bs())},children:[c]}),delete T.attributes.title);const C=J(J({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:J(J({},w),h.styles)}),{children:P,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=P,C.attributes=$,a?_E(C):OE(C)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=J(J(J({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Gr]="");const d=J({},a.styles);Ec(i)&&(d.transform=aE({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 IE(e){const{content:t,title:n,extra:r}=e,i=J(J(J({},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:Rc}=Pn;function Nc(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(ye.cssPrefix,"-").concat(Sc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Sc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ye.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 $E={found:!1,width:512,height:512};function DE(e,t){!Zm&&!ye.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"&&ye.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const o=Rc[t][e];return r(Nc(o))}DE(e,t),r(J(J({},$E),{},{icon:ye.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},kc=ye.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Sp,measure:Sp},zs='FA "6.7.2"',RE=e=>(kc.mark("".concat(zs," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{kc.mark("".concat(zs," ").concat(e," ends")),kc.measure("".concat(zs," ").concat(e),"".concat(zs," ").concat(e," begins"),"".concat(zs," ").concat(e," ends"))};var jc={begin:RE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function NE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function LE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function kE(){return ye.autoReplaceSvg===!0?fa.replace:fa[ye.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.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(Cp(o,{ceFn:n}))}),r}function VE(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(Cp(n),t)}),t.getAttribute(Gr)===null&&ye.keepOriginalSource){let n=Xe.createComment(VE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Tc(t).indexOf(ye.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ye.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=>Ws(o)).join(`
580
- `);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Pp;ye.mutateApproach===YT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=kE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Mp(){Fc=!0}function Vc(){Fc=!1}let da=null;function Op(e){if(!Vm||!ye.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Xe}=e;da=new Vm(o=>{if(Fc)return;const a=gr();Ri(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(c.addedNodes[0])&&(ye.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ye.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Ep(c.target)&&~JT.indexOf(c.attributeName))if(c.attributeName==="class"&&NE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else LE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function BE(){da&&da.disconnect()}function WE(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 UE(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=yE(i.prefix,e.innerText)||_c(i.prefix,Ac(e.innerText))),!i.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function zE(e){const t=Ri(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 ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(r||Bs()):(t["aria-hidden"]="true",t.focusable="false")),t}function GE(){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}=UE(e),o=zE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(e):[];return J({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:YE}=Pn;function Ip(e){const t=ye.autoReplaceSvg==="nest"?_p(e,{styleParser:!1}):_p(e);return~t.extra.classes.indexOf(ep)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function HE(){return[..._T,...hc]}function $p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Xe.documentElement.classList,r=h=>n.add("".concat(Xm,"-").concat(h)),i=h=>n.remove("".concat(Xm,"-").concat(h)),o=ye.autoFetchSvg?HE():Um.concat(Object.keys(YE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Gr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ri(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=Ip(m);p&&h.push(p)}catch(p){Zm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Ap(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function qE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function KE(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,J(J({},n),{},{mask:i}))}}const XE=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(J({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ye.autoA11y&&(a?d["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(c||Bs()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Nc(y),mask:i?Nc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:J(J({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var ZE={mixout(){return{icon:KE(XE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=$p,e.nodeCallback=qE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return $p(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}}}},JE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{Hr("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(ye.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},QE={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},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ye.cssPrefix,"-layers-counter"),...r]}})))}}}},eC={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},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:J(J({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ye.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(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ye.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const tC=new RegExp('"',"ug"),Dp=[1105920,1112319],Rp=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),AT),zT),kT),Bc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),nC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rC(e){const t=e.replace(tC,""),n=dE(t,0),r=n>=Dp[0]&&n<=Dp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function iC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||nC[n]}function Np(e,t){const n="".concat(GT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Ri(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(XT),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=iC(u,h);const{value:S,isSecondary:b}=rC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),C=w;if(T){const P=vE(S);P.iconName&&P.prefix&&(w=P.iconName,y=P.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==C)){e.setAttribute(n,C),a&&e.removeChild(a);const P=GE(),{extra:$}=P;$.attributes[pc]=t,Lc(w,y).then(A=>{const R=Dc(J(J({},P),{},{icons:{main:A,mask:yp()},prefix:y,iconName:C,extra:$,watchable:!0})),k=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=R.map(F=>Ws(F)).join(`
581
- `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sC(e){return Promise.all([Np(e,"::before"),Np(e,"::after")])}function oC(e){return e.parentNode!==document.head&&!~HT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Lp(e){if(zn)return new Promise((t,n)=>{const r=Ri(e.querySelectorAll("*")).filter(oC).map(sC),i=jc.begin("searchPseudoElements");Mp(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var aC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Lp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ye.searchPseudoElements&&Lp(n)}}};let kp=!1;var lC={mixout(){return{dom:{unwatch(){Mp(),kp=!0}}}},hooks(){return{bootstrap(){Op(Ic("mutationObserverCallbacks",{}))},noAuto(){BE()},watch(e){const{observeMutationsRoot:t}=e;kp?Vc():Op(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const jp=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 cC={mixout(){return{parse:{transform:e=>jp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jp(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:J({},p.outer),children:[{tag:"g",attributes:J({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},n.icon.attributes),p.path)}]}]}}}};const Wc={x:0,y:0,width:"100%",height:"100%"};function Fp(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 uC(e){return e.tag==="g"?e.children:[e]}var fC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):yp();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=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:J(J({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:J({},p.inner),children:[Fp(J({tag:d.tag,attributes:J(J({},d.attributes),p.path)},S))]},T={tag:"g",attributes:J({},p.outer),children:[b]},w="mask-".concat(a||Bs()),C="clip-".concat(a||Bs()),P={tag:"mask",attributes:J(J({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:uC(m)},P]};return n.push($,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},dC={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:J(J({},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=J(J({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:J(J({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:J(J({},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:J(J({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:J(J({},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:J(J({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},hC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},mC=[cE,ZE,JE,QE,eC,aC,lC,cC,fC,dC,hC];AE(mC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const pC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @license React v16.13.1
579
+ }`;function rp(){const e=qm,t=Km,n=ve.cssPrefix,r=ve.replacementClass;let i=lE;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 ip=!1;function Cc(){ve.autoAddCss&&!ip&&(rE(rp()),ip=!0)}var cE={mixout(){return{dom:{css:rp,insertCss:Cc}}},hooks(){return{beforeDOMElementCreation(){Cc()},beforeI2svg(){Cc()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),oa=1,sp.map(e=>e())};let oa=!1;zn&&(oa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),oa||Xe.addEventListener("DOMContentLoaded",op));function uE(e){zn&&(oa?setTimeout(e,0):sp.push(e))}function Us(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(sE(n),">").concat(r.map(Us).join(""),"</").concat(t,">")}function ap(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 fE(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=fE(e);return t.length===1?t[0].toString(16):null}function dE(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 lp(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=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=te(te({},Pn.styles[e]||{}),i),e==="fas"&&Mc("fa",t)}const{styles:zs,shims:hE}=Pn,cp=Object.keys(xc),mE=cp.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function pE(e){return~QT.indexOf(e)}function gE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pE(i)?i:null}const pp=()=>{const e=r=>Pc(zs,(i,o,a)=>(i[a]=Pc(o,r,{}),i),{});up=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)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in zs||ve.autoFetchSvg,n=Pc(hE,(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:{}});dp=n.names,hp=n.unicodes,Oc=aa(ve.styleDefault,{family:ve.familyDefault})};nE(e=>{Oc=aa(e.styleDefault,{family:ve.familyDefault})}),pp();function _c(e,t){return(up[e]||{})[t]}function yE(e,t){return(fp[e]||{})[t]}function Qr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function vE(e){const t=hp[e],n=_c("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function bE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>mE[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=qT[n][e];if(n===ra&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function xE(e){let t=[],n=null;return e.forEach(r=>{const i=gE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(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(LT),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!hc.includes(m))),c=o.filter(m=>(r=m,!Um.includes(m))),[u=null]=c,d=bE(o),h=te(te({},xE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),EE({values:e,family:d,styles:zs,config:ve,canonical:h,givenPrefix:r})),wE(n,r,h))}function wE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!zs.far&&zs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const SE=zm.filter(e=>e!==wt||e!==ra),TE=Object.keys(dc).filter(e=>e!==wt).map(e=>Object.keys(dc[e])).flat();function EE(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&&SE.includes(n)&&(Object.keys(o).find(p=>TE.includes(p))||a.autoFetchSvg)){const p=MT.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 CE{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]),pp()})}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 bp=[],ki={};const ji={},PE=Object.keys(ji);function AE(e,t){let{mixoutsTo:n}=t;return bp=e,ki={},Object.keys(ji).forEach(r=>{PE.indexOf(r)===-1&&delete ji[r]}),bp.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=>{ki[a]||(ki[a]=[]),ki[a].push(o[a])})}r.provides&&r.provides(ji)}),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(ki[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];(ki[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return ji[e]?ji[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,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new CE,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 zn?(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,uE(()=>{ME({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(KT))){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:xp,findIconDefinition:$c,toHtml:Us},ME=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&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=>Us(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function OE(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 _E(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=DT.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||Ws())},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:P,attributes:$}=n.found&&t.found?yr("generateAbstractMask",E)||{children:[],attributes:{}}:yr("generateAbstractIcon",E)||{children:[],attributes:{}};return E.children=P,E.attributes=$,a?_E(E):OE(E)}function wp(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=aE({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 IE(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:Rc}=Pn;function Nc(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 $E={found:!1,width:512,height:512};function DE(e,t){!Zm&&!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=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Rc[t]&&Rc[t][e]){const o=Rc[t][e];return r(Nc(o))}DE(e,t),r(te(te({},$E),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},kc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Sp,measure:Sp},Gs='FA "6.7.2"',RE=e=>(kc.mark("".concat(Gs," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{kc.mark("".concat(Gs," ").concat(e," ends")),kc.measure("".concat(Gs," ").concat(e),"".concat(Gs," ").concat(e," begins"),"".concat(Gs," ").concat(e," ends"))};var jc={begin:RE,end:Tp};const ua=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function NE(e){const t=e.getAttribute?e.getAttribute(gc):null,n=e.getAttribute?e.getAttribute(yc):null;return t&&n}function LE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function kE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function jE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function FE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jE:FE}=t;if(typeof e=="string")return Xe.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(Cp(o,{ceFn:n}))}),r}function VE(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(Cp(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Xe.createComment(VE(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=>Us(o)).join(`
580
+ `);t.setAttribute(Jr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=Pp;ve.mutateApproach===YT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=kE(),o=jc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Mp(){Fc=!0}function Vc(){Fc=!1}let da=null;function Op(e){if(!Vm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Xe}=e;da=new Vm(o=>{if(Fc)return;const a=gr();Li(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(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"&&Ep(c.target)&&~JT.indexOf(c.attributeName))if(c.attributeName==="class"&&NE(c.target)){const{prefix:u,iconName:d}=la(Tc(c.target));c.target.setAttribute(gc,u||a),d&&c.target.setAttribute(yc,d)}else LE(c.target)&&n(c.target)})}),zn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function BE(){da&&da.disconnect()}function WE(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 UE(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=yE(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 zE(e){const t=Li(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||Ws()):(t["aria-hidden"]="true",t.focusable="false")),t}function GE(){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}=UE(e),o=zE(e),a=Ic("parseNodeAttributes",{},e);let c=t.styleParser?WE(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:YE}=Pn;function Ip(e){const t=ve.autoReplaceSvg==="nest"?_p(e,{styleParser:!1}):_p(e);return~t.extra.classes.indexOf(ep)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function HE(){return[..._T,...hc]}function $p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Xe.documentElement.classList,r=h=>n.add("".concat(Xm,"-").concat(h)),i=h=>n.remove("".concat(Xm,"-").concat(h)),o=ve.autoFetchSvg?HE():Um.concat(Object.keys(YE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Li(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=Ip(m);p&&h.push(p)}catch(p){Zm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Ap(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function qE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function KE(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 XE=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||Ws()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Nc(y),mask:i?Nc(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 ZE={mixout(){return{icon:KE(XE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=$p,e.nodeCallback=qE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return $p(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}}}},JE={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}]})}}}},QE={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}),IE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},eC={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}),wp({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(Bm){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,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const tC=new RegExp('"',"ug"),Dp=[1105920,1112319],Rp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),AT),zT),kT),Bc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),nC=Object.keys(Bc).reduce((e,t)=>{const n=Bc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rC(e){const t=e.replace(tC,""),n=dE(t,0),r=n>=Dp[0]&&n<=Dp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ac(i?t[0]:t),isSecondary:r||i}}function iC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Bc[n]||{})[i]||nC[n]}function Np(e,t){const n="".concat(GT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Li(e.children).filter(p=>p.getAttribute(pc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(XT),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=iC(u,h);const{value:S,isSecondary:b}=rC(p),T=d[0].startsWith("FontAwesome");let w=_c(y,S),E=w;if(T){const P=vE(S);P.iconName&&P.prefix&&(w=P.iconName,y=P.prefix)}if(w&&!b&&(!a||a.getAttribute(gc)!==y||a.getAttribute(yc)!==E)){e.setAttribute(n,E),a&&e.removeChild(a);const P=GE(),{extra:$}=P;$.attributes[pc]=t,Lc(w,y).then(A=>{const D=Dc(te(te({},P),{},{icons:{main:A,mask:yp()},prefix:y,iconName:E,extra:$,watchable:!0})),k=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=D.map(F=>Us(F)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sC(e){return Promise.all([Np(e,"::before"),Np(e,"::after")])}function oC(e){return e.parentNode!==document.head&&!~HT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(pc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Lp(e){if(zn)return new Promise((t,n)=>{const r=Li(e.querySelectorAll("*")).filter(oC).map(sC),i=jc.begin("searchPseudoElements");Mp(),Promise.all(r).then(()=>{i(),Vc(),t()}).catch(()=>{i(),Vc(),n()})})}var aC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Lp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ve.searchPseudoElements&&Lp(n)}}};let kp=!1;var lC={mixout(){return{dom:{unwatch(){Mp(),kp=!0}}}},hooks(){return{bootstrap(){Op(Ic("mutationObserverCallbacks",{}))},noAuto(){BE()},watch(e){const{observeMutationsRoot:t}=e;kp?Vc():Op(Ic("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const jp=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 cC={mixout(){return{parse:{transform:e=>jp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jp(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 Fp(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 uC(e){return e.tag==="g"?e.children:[e]}var fC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):yp();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=oE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:te(te({},Wc),{},{fill:"white"})},S=d.children?{children:d.children.map(Fp)}:{},b={tag:"g",attributes:te({},p.inner),children:[Fp(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||Ws()),E="clip-".concat(a||Ws()),P={tag:"mask",attributes:te(te({},Wc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:uC(m)},P]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(w,")")},Wc)}),{children:n,attributes:r}}}},dC={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}}}},hC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},mC=[cE,ZE,JE,QE,eC,aC,lC,cC,fC,dC,hC];AE(mC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const pC=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 Vp;function gC(){if(Vp)return je;Vp=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,C=e?Symbol.for("react.scope"):60119;function P(A){if(typeof A=="object"&&A!==null){var R=A.$$typeof;switch(R){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 R}}case n:return R}}}function $(A){return P(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)||P(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return P(A)===c},je.isContextProvider=function(A){return P(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return P(A)===h},je.isFragment=function(A){return P(A)===r},je.isLazy=function(A){return P(A)===S},je.isMemo=function(A){return P(A)===y},je.isPortal=function(A){return P(A)===n},je.isProfiler=function(A){return P(A)===o},je.isStrictMode=function(A){return P(A)===i},je.isSuspense=function(A){return P(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===C||A.$$typeof===b)},je.typeOf=P,je}var Fe={};/** @license React v16.13.1
588
+ */var Vp;function gC(){if(Vp)return je;Vp=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 P(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 P(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)||P(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return P(A)===c},je.isContextProvider=function(A){return P(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return P(A)===h},je.isFragment=function(A){return P(A)===r},je.isLazy=function(A){return P(A)===S},je.isMemo=function(A){return P(A)===y},je.isPortal=function(A){return P(A)===n},je.isProfiler=function(A){return P(A)===o},je.isStrictMode=function(A){return P(A)===i},je.isSuspense=function(A){return P(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=P,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 Bp;function yC(){return Bp||(Bp=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,C=e?Symbol.for("react.scope"):60119;function P(re){return typeof re=="string"||typeof re=="function"||re===r||re===d||re===o||re===i||re===m||re===p||typeof re=="object"&&re!==null&&(re.$$typeof===S||re.$$typeof===y||re.$$typeof===a||re.$$typeof===c||re.$$typeof===h||re.$$typeof===T||re.$$typeof===w||re.$$typeof===C||re.$$typeof===b)}function $(re){if(typeof re=="object"&&re!==null){var pe=re.$$typeof;switch(pe){case t:var De=re.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,R=d,k=c,F=a,z=t,Q=h,te=r,le=S,ve=y,de=n,fe=o,he=i,V=m,B=!1;function G(re){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(re)||$(re)===u}function O(re){return $(re)===d}function N(re){return $(re)===c}function q(re){return $(re)===a}function se(re){return typeof re=="object"&&re!==null&&re.$$typeof===t}function ce(re){return $(re)===h}function X(re){return $(re)===r}function ee(re){return $(re)===S}function oe(re){return $(re)===y}function ne(re){return $(re)===n}function ue(re){return $(re)===o}function Ce(re){return $(re)===i}function Ve(re){return $(re)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=R,Fe.ContextConsumer=k,Fe.ContextProvider=F,Fe.Element=z,Fe.ForwardRef=Q,Fe.Fragment=te,Fe.Lazy=le,Fe.Memo=ve,Fe.Portal=de,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=G,Fe.isConcurrentMode=O,Fe.isContextConsumer=N,Fe.isContextProvider=q,Fe.isElement=se,Fe.isForwardRef=ce,Fe.isFragment=X,Fe.isLazy=ee,Fe.isMemo=oe,Fe.isPortal=ne,Fe.isProfiler=ue,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=P,Fe.typeOf=$}()),Fe}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
595
+ */var Bp;function yC(){return Bp||(Bp=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 P(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,k=c,F=a,z=t,J=h,ne=r,le=S,ye=y,de=n,ue=o,he=i,V=m,B=!1;function G(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 N(ie){return $(ie)===c}function K(ie){return $(ie)===a}function oe(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function Z(ie){return $(ie)===h}function q(ie){return $(ie)===r}function Q(ie){return $(ie)===S}function ae(ie){return $(ie)===y}function re(ie){return $(ie)===n}function fe(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=D,Fe.ContextConsumer=k,Fe.ContextProvider=F,Fe.Element=z,Fe.ForwardRef=J,Fe.Fragment=ne,Fe.Lazy=le,Fe.Memo=ye,Fe.Portal=de,Fe.Profiler=ue,Fe.StrictMode=he,Fe.Suspense=V,Fe.isAsyncMode=G,Fe.isConcurrentMode=O,Fe.isContextConsumer=N,Fe.isContextProvider=K,Fe.isElement=oe,Fe.isForwardRef=Z,Fe.isFragment=q,Fe.isLazy=Q,Fe.isMemo=ae,Fe.isPortal=re,Fe.isProfiler=fe,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=P,Fe.typeOf=$}()),Fe}var Wp;function Up(){return Wp||(Wp=1,process.env.NODE_ENV==="production"?ma.exports=gC():ma.exports=yC()),ma.exports}/*
596
596
  object-assign
597
597
  (c) Sindre Sorhus
598
598
  @license MIT
599
- */var zc,zp;function vC(){if(zp)return zc;zp=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,Gp;function Yc(){if(Gp)return Gc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,Yp;function Hp(){return Yp||(Yp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,qp;function bC(){if(qp)return qc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Hp();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,Kp;function xC(){if(Kp)return Kc;Kp=1;var e=Up(),t=vC(),n=Yc(),r=Hp(),i=bC(),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 N=O&&(d&&O[d]||O[h]);if(typeof N=="function")return N}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:C(),arrayOf:P,element:$(),elementType:A(),instanceOf:R,node:Q(),objectOf:F,oneOf:k,oneOfType:z,shape:le,exact:ve};function S(O,N){return O===N?O!==0||1/O===1/N:O!==O&&N!==N}function b(O,N){this.message=O,this.data=N&&typeof N=="object"?N:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var N={},q=0;function se(X,ee,oe,ne,ue,Ce,Ve){if(ne=ne||p,Ce=Ce||oe,Ve!==n){if(u){var re=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 re.name="Invariant Violation",re}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+oe;!N[pe]&&q<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."),N[pe]=!0,q++)}}return ee[oe]==null?X?ee[oe]===null?new b("The "+ue+" `"+Ce+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+ue+" `"+Ce+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:O(ee,oe,ne,ue,Ce)}var ce=se.bind(null,!1);return ce.isRequired=se.bind(null,!0),ce}function w(O){function N(q,se,ce,X,ee,oe){var ne=q[se],ue=he(ne);if(ue!==O){var Ce=V(ne);return new b("Invalid "+X+" `"+ee+"` of type "+("`"+Ce+"` supplied to `"+ce+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function C(){return T(a)}function P(O){function N(q,se,ce,X,ee){if(typeof O!="function")return new b("Property `"+ee+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var oe=q[se];if(!Array.isArray(oe)){var ne=he(oe);return new b("Invalid "+X+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+ce+"`, expected an array."))}for(var ue=0;ue<oe.length;ue++){var Ce=O(oe,ue,ce,X,ee+"["+ue+"]",n);if(Ce instanceof Error)return Ce}return null}return T(N)}function $(){function O(N,q,se,ce,X){var ee=N[q];if(!c(ee)){var oe=he(ee);return new b("Invalid "+ce+" `"+X+"` of type "+("`"+oe+"` supplied to `"+se+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(N,q,se,ce,X){var ee=N[q];if(!e.isValidElementType(ee)){var oe=he(ee);return new b("Invalid "+ce+" `"+X+"` of type "+("`"+oe+"` supplied to `"+se+"`, expected a single ReactElement type."))}return null}return T(O)}function R(O){function N(q,se,ce,X,ee){if(!(q[se]instanceof O)){var oe=O.name||p,ne=G(q[se]);return new b("Invalid "+X+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+ce+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(N)}function k(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 N(q,se,ce,X,ee){for(var oe=q[se],ne=0;ne<O.length;ne++)if(S(oe,O[ne]))return null;var ue=JSON.stringify(O,function(Ve,re){var pe=V(re);return pe==="symbol"?String(re):re});return new b("Invalid "+X+" `"+ee+"` of value `"+String(oe)+"` "+("supplied to `"+ce+"`, expected one of "+ue+"."))}return T(N)}function F(O){function N(q,se,ce,X,ee){if(typeof O!="function")return new b("Property `"+ee+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var oe=q[se],ne=he(oe);if(ne!=="object")return new b("Invalid "+X+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+ce+"`, expected an object."));for(var ue in oe)if(r(oe,ue)){var Ce=O(oe,ue,ce,X,ee+"."+ue,n);if(Ce instanceof Error)return Ce}return null}return T(N)}function z(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 N=0;N<O.length;N++){var q=O[N];if(typeof q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(q)+" at index "+N+"."),a}function se(ce,X,ee,oe,ne){for(var ue=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],re=Ve(ce,X,ee,oe,ne,n);if(re==null)return null;re.data&&r(re.data,"expectedType")&&ue.push(re.data.expectedType)}var pe=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new b("Invalid "+oe+" `"+ne+"` supplied to "+("`"+ee+"`"+pe+"."))}return T(se)}function Q(){function O(N,q,se,ce,X){return de(N[q])?null:new b("Invalid "+ce+" `"+X+"` supplied to "+("`"+se+"`, expected a ReactNode."))}return T(O)}function te(O,N,q,se,ce){return new b((O||"React class")+": "+N+" type `"+q+"."+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function le(O){function N(q,se,ce,X,ee){var oe=q[se],ne=he(oe);if(ne!=="object")return new b("Invalid "+X+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ue in O){var Ce=O[ue];if(typeof Ce!="function")return te(ce,X,ee,ue,V(Ce));var Ve=Ce(oe,ue,ce,X,ee+"."+ue,n);if(Ve)return Ve}return null}return T(N)}function ve(O){function N(q,se,ce,X,ee){var oe=q[se],ne=he(oe);if(ne!=="object")return new b("Invalid "+X+" `"+ee+"` of type `"+ne+"` "+("supplied to `"+ce+"`, expected `object`."));var ue=t({},q[se],O);for(var Ce in ue){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return te(ce,X,ee,Ce,V(Ve));if(!Ve)return new b("Invalid "+X+" `"+ee+"` key `"+Ce+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(q[se],null," ")+`
600
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var re=Ve(oe,Ce,ce,X,ee+"."+Ce,n);if(re)return re}return null}return T(N)}function de(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(de);if(O===null||c(O))return!0;var N=m(O);if(N){var q=N.call(O),se;if(N!==O.entries){for(;!(se=q.next()).done;)if(!de(se.value))return!1}else for(;!(se=q.next()).done;){var ce=se.value;if(ce&&!de(ce[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function he(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(N,O)?"symbol":N}function V(O){if(typeof O>"u"||O===null)return""+O;var N=he(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function B(O){var N=V(O);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function G(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,Xp;function wC(){if(Xp)return Xc;Xp=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 Zp;function SC(){if(Zp)return ha.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Up(),t=!0;ha.exports=xC()(e.isElement,t)}else ha.exports=wC()();return ha.exports}var TC=SC();const Ie=_m(TC);function Jp(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?Jp(Object(n),!0).forEach(function(r){ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(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 ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(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 CC(e,t){if(e==null)return{};var n=EC(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 PC(e)||AC(e)||MC(e)||OC()}function PC(e){if(Array.isArray(e))return Jc(e)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(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 OC(){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 _C(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,C=e.rotation,P=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"},ki(t,"fa-".concat(w),typeof w<"u"&&w!==null),ki(t,"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),ki(t,"fa-pull-".concat(P),typeof P<"u"&&P!==null),ki(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function IC(e){return e=e-0,e===e}function Qp(e){return IC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var $C=["style"];function DC(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=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[DC(i)]=o:t[i]=o,t},{})}function eg(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 eg(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[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=CC(n,$C);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 tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function NC(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(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?ki({},e,t):{}}var rg={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},$e=I.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ng(i)),S=pC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(T[w]=n[w])}),LC(b[0],T)});$e.displayName="FontAwesomeIcon",$e.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var LC=eg.bind(null,I.createElement);const kC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>v.jsxs("button",{onClick:r,className:`
599
+ */var zc,zp;function vC(){if(zp)return zc;zp=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,Gp;function Yc(){if(Gp)return Gc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gc=e,Gc}var Hc,Yp;function Hp(){return Yp||(Yp=1,Hc=Function.call.bind(Object.prototype.hasOwnProperty)),Hc}var qc,qp;function bC(){if(qp)return qc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),n={},r=Hp();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,Kp;function xC(){if(Kp)return Kc;Kp=1;var e=Up(),t=vC(),n=Yc(),r=Hp(),i=bC(),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 N=O&&(d&&O[d]||O[h]);if(typeof N=="function")return N}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:P,element:$(),elementType:A(),instanceOf:D,node:J(),objectOf:F,oneOf:k,oneOfType:z,shape:le,exact:ye};function S(O,N){return O===N?O!==0||1/O===1/N:O!==O&&N!==N}function b(O,N){this.message=O,this.data=N&&typeof N=="object"?N:{},this.stack=""}b.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var N={},K=0;function oe(q,Q,ae,re,fe,Ce,Ve){if(re=re||p,Ce=Ce||ae,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=re+":"+ae;!N[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+re+"`. 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."),N[pe]=!0,K++)}}return Q[ae]==null?q?Q[ae]===null?new b("The "+fe+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new b("The "+fe+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(Q,ae,re,fe,Ce)}var Z=oe.bind(null,!1);return Z.isRequired=oe.bind(null,!0),Z}function w(O){function N(K,oe,Z,q,Q,ae){var re=K[oe],fe=he(re);if(fe!==O){var Ce=V(re);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+Ce+"` supplied to `"+Z+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(N)}function E(){return T(a)}function P(O){function N(K,oe,Z,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=K[oe];if(!Array.isArray(ae)){var re=he(ae);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an array."))}for(var fe=0;fe<ae.length;fe++){var Ce=O(ae,fe,Z,q,Q+"["+fe+"]",n);if(Ce instanceof Error)return Ce}return null}return T(N)}function $(){function O(N,K,oe,Z,q){var Q=N[K];if(!c(Q)){var ae=he(Q);return new b("Invalid "+Z+" `"+q+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(N,K,oe,Z,q){var Q=N[K];if(!e.isValidElementType(Q)){var ae=he(Q);return new b("Invalid "+Z+" `"+q+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function N(K,oe,Z,q,Q){if(!(K[oe]instanceof O)){var ae=O.name||p,re=G(K[oe]);return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return T(N)}function k(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 N(K,oe,Z,q,Q){for(var ae=K[oe],re=0;re<O.length;re++)if(S(ae,O[re]))return null;var fe=JSON.stringify(O,function(Ve,ie){var pe=V(ie);return pe==="symbol"?String(ie):ie});return new b("Invalid "+q+" `"+Q+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+fe+"."))}return T(N)}function F(O){function N(K,oe,Z,q,Q){if(typeof O!="function")return new b("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type "+("`"+re+"` supplied to `"+Z+"`, expected an object."));for(var fe in ae)if(r(ae,fe)){var Ce=O(ae,fe,Z,q,Q+"."+fe,n);if(Ce instanceof Error)return Ce}return null}return T(N)}function z(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 N=0;N<O.length;N++){var K=O[N];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(K)+" at index "+N+"."),a}function oe(Z,q,Q,ae,re){for(var fe=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(Z,q,Q,ae,re,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&fe.push(ie.data.expectedType)}var pe=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new b("Invalid "+ae+" `"+re+"` supplied to "+("`"+Q+"`"+pe+"."))}return T(oe)}function J(){function O(N,K,oe,Z,q){return de(N[K])?null:new b("Invalid "+Z+" `"+q+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return T(O)}function ne(O,N,K,oe,Z){return new b((O||"React class")+": "+N+" type `"+K+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function le(O){function N(K,oe,Z,q,Q){var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));for(var fe in O){var Ce=O[fe];if(typeof Ce!="function")return ne(Z,q,Q,fe,V(Ce));var Ve=Ce(ae,fe,Z,q,Q+"."+fe,n);if(Ve)return Ve}return null}return T(N)}function ye(O){function N(K,oe,Z,q,Q){var ae=K[oe],re=he(ae);if(re!=="object")return new b("Invalid "+q+" `"+Q+"` of type `"+re+"` "+("supplied to `"+Z+"`, expected `object`."));var fe=t({},K[oe],O);for(var Ce in fe){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ne(Z,q,Q,Ce,V(Ve));if(!Ve)return new b("Invalid "+q+" `"+Q+"` key `"+Ce+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(K[oe],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(ae,Ce,Z,q,Q+"."+Ce,n);if(ie)return ie}return null}return T(N)}function de(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(de);if(O===null||c(O))return!0;var N=m(O);if(N){var K=N.call(O),oe;if(N!==O.entries){for(;!(oe=K.next()).done;)if(!de(oe.value))return!1}else for(;!(oe=K.next()).done;){var Z=oe.value;if(Z&&!de(Z[1]))return!1}}else return!1;return!0;default:return!1}}function ue(O,N){return O==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function he(O){var N=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":ue(N,O)?"symbol":N}function V(O){if(typeof O>"u"||O===null)return""+O;var N=he(O);if(N==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return N}function B(O){var N=V(O);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function G(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,Xp;function wC(){if(Xp)return Xc;Xp=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 Zp;function SC(){if(Zp)return ha.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Up(),t=!0;ha.exports=xC()(e.isElement,t)}else ha.exports=wC()();return ha.exports}var TC=SC();const $e=_m(TC);function Jp(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?Jp(Object(n),!0).forEach(function(r){Fi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(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 Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(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 CC(e,t){if(e==null)return{};var n=EC(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 PC(e)||AC(e)||MC(e)||OC()}function PC(e){if(Array.isArray(e))return Jc(e)}function AC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(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 OC(){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 _C(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,P=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"},Fi(t,"fa-".concat(w),typeof w<"u"&&w!==null),Fi(t,"fa-rotate-".concat(E),typeof E<"u"&&E!==null&&E!==0),Fi(t,"fa-pull-".concat(P),typeof P<"u"&&P!==null),Fi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function IC(e){return e=e-0,e===e}function Qp(e){return IC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var $C=["style"];function DC(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=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[DC(i)]=o:t[i]=o,t},{})}function eg(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 eg(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[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=CC(n,$C);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 tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function NC(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(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?Fi({},e,t):{}}var rg={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},Ie=_.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Qc("classes",[].concat(Zc(_C(n)),Zc((a||"").split(" ")))),p=Qc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Qc("mask",ng(i)),S=pC(h,An(An(An(An({},m),p),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return NC("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(T[w]=n[w])}),LC(b[0],T)});Ie.displayName="FontAwesomeIcon",Ie.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 LC=eg.bind(null,_.createElement);const kC=({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
605
605
  ${i?"bg-blue-100 border border-blue-800":"bg-light-gray-100 border border-gray-100 hover:border-blue-500 group"}
606
- `,children:[t?v.jsx($e,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?v.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,v.jsx("span",{className:`
606
+ `,children:[t?v.jsx(Ie,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?v.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,v.jsx("span",{className:`
607
607
  text-base font-medium transition-colors
608
608
  ${i?"text-gray-900":"text-gray-900 group-hover:text-blue-500"}
609
609
  `,children:e})]});/*!
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 jC={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"]},FC={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"]},VC={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"]},BC={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"]},WC={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"]},UC={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"]},ig={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"]},zC={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"]},GC={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"]},sg={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"]},YC={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",og=iu?I.useLayoutEffect:I.useEffect,ga=I.createContext(null),su=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends Z.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 qC({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 jC={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"]},FC={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"]},VC={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"]},BC={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"]},WC={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"]},UC={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"]},ig={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"]},zC={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"]},GC={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"]},sg={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"]},YC={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",og=iu?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),su=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let HC=class extends ee.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 qC({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,37 +618,37 @@ 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(HC,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(XC),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]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function ag(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 lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=I.useMemo(()=>lg(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,C]=I.useState(h);og(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const R=ya(w[A]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ya(k);m.includes(F)||(A.splice(R,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),C(lg(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 R=ya(A),k=a&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),a&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:F,anchorX:c,children:A},R)})})};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 Rt=e=>e;let ji=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(ji=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const JC={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fi=(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,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function va(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=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(QC()&&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")}},tP=class extends eP{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 fg(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 dg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",nP={linearEasing:void 0};function rP(e,t){const n=lu(e);return()=>{var r;return(r=nP[t])!==null&&r!==void 0?r:n()}}const ba=rP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Fi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(mg))}const Gs=([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:Gs([0,.65,.55,1]),circOut:Gs([.55,0,1,.45]),backIn:Gs([.31,.01,.66,-.59]),backOut:Gs([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&ba()?hg(e,t):hu(e)?Gs(e):Array.isArray(e)?e.map(n=>pg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function iP(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&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const sP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xa.reduce((w,C)=>(w[C]=iP(o,t?C: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,sP),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,C)=>{const P=a[C];return w[C]=($,A=!1,R=!1)=>(n||S(),P.schedule($,A,R)),w},{}),cancel:w=>{for(let C=0;C<xa.length;C++)a[xa[C]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:pu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=yg(queueMicrotask,!1);let wa;function oP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||JC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(oP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function aP(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 lP(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 bg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function cP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fP(e){return uP.has(e.tagName)||e.tabIndex!==-1}const Ys=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(Ys.has(n))return;vu(n,"down");const i=Sg(()=>{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 Tg(e){return yu(e)&&!vg()}function hP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||Ys.has(u))return;Ys.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Tg(y)||!Ys.has(u))&&(Ys.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(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=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,mP=e=>!isNaN(parseFloat(e));let pP=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=mP(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>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(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 Hs(e,t){return new pP(e,t)}const Cg=I.createContext({strict:!1}),Pg={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"]},Vi={};for(const e in Pg)Vi[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function gP(e){for(const t in e)Vi[t]={...Vi[t],...e[t]}}const yP=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")||yP.has(e)}let Ag=e=>!Sa(e);function vP(e){e&&(Ag=t=>t.startsWith("on")?!Sa(t):e(t))}try{vP(require("@emotion/is-prop-valid").default)}catch{}function bP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xP(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 qs(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=>qs(e[t]))}function Mg(e){return!!(Ca(e)||e.variants)}function wP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qs(n)?n:void 0,animate:qs(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,I.useContext(Ta));return I.useMemo(()=>({initial:t,animate:n}),[Og(t),Og(n)])}function Og(e){return Array.isArray(e)?e.join(" "):e}const TP=Symbol.for("motionComponentSymbol");function Bi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(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):Bi(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+wu("framerAppearId"),Ig=I.createContext({});function CP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ta),u=I.useContext(Cg),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(Ig);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(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 og(()=>{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 PP(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:$g(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Bi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function $g(e){if(e)return e.options.allowProjection!==!1?e.projection:$g(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&gP(e);function c(d,h){let m;const p={...I.useContext(su),...d,layoutId:MP(d)},{isStatic:y}=p,S=SP(d),b=r(d,y);if(!y&&iu){OP(p,e);const T=_P(p);m=T.MeasureLayout,S.visualElement=CP(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,EP(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[TP]=i,u}function MP({layoutId:e}){const t=I.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function OP(e,t){const n=I.useContext(Cg).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?ji(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Vi;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 Dg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Dg("--"),IP=Dg("var(--"),Tu=e=>IP(e)?$P.test(e.split("/*")[0].trim()):!1,$P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={};function DP(e){for(const t in e)Ks[t]=e[t],Su(t)&&(Ks[t].isCSSVariable=!0)}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Wi);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ks[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Ng=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xs={...Ui,transform:e=>qn(0,1,e)},Pa={...Ui,default:1},Zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Zs("deg"),_n=Zs("%"),we=Zs("px"),RP=Zs("vh"),NP=Zs("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={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},kP={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:Xs,originX:Lg,originY:Lg,originZ:we},kg={...Ui,transform:Math.round},Eu={...LP,...kP,zIndex:kg,size:we,fillOpacity:Xs,strokeOpacity:Xs,numOctaves:kg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=Wi.length;function VP(e,t,n){let r="",i=!0;for(let o=0;o<FP;o++){const a=Wi[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=Ng(c,Eu[a]);if(!u){i=!1;const h=jP[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(qr.has(u)){a=!0;continue}else if(Su(u)){i[u]=d;continue}else{const h=Ng(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=VP(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 jg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return I.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(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 zP=["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:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?GP:YP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Fg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function qP(e,t,n){const r=Fg(t,e.x,e.width),i=Fg(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=qP(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&&HP(p,a,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=I.useMemo(()=>{const o=Vg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jg(o,e.style,e),i.style={...o,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?KP:UP)(r,o,a,n),d=bP(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 Bg(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]=Bg(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]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:eA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Wg=e=>(t,n)=>{const r=I.useContext(Ta),i=I.useContext(ga),o=()=>QP(e,t,r,i);return n?o():ru(o)};function eA(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=Mg(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 C in w){let P=w[C];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[C]=P)}for(const C in b)i[C]=b[C]}}}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])||Rg(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 tA={useVisualState:Wg({scrapeMotionValuesFromProps:$u,createRenderState:Pu})};function Ug(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 zg(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 Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:wu(i),t.attrs[i])}function Hg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Wi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Wg({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,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(qr.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Ug(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(a)}}function Js(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Wi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hs(n))}function sA(e,t){const n=Js(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=JP(o[a]);iA(e,a,c)}}function oA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>aA&&++c<lA);return a}function Qs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>cA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Qs(.33,1.53,.69,.99),Ru=Qg(e0),t0=Jg(Ru),n0=e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1))),Nu=e=>1-Math.sin(Math.acos(e)),r0=Qg(Nu),i0=Jg(Nu),s0=e=>/^0[^.\s]+$/u.test(e);function uA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const eo=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const dA=/^(?:#[\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"&&dA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(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}},hA=e=>qn(0,255,e),ju={...Ui,transform:e=>Math.round(hA(e))},Kr={test:ku("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+eo(Xs.transform(r))+")"};function mA(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:mA,transform:Kr.transform},zi={test:ku("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(eo(t))+", "+_n.transform(eo(n))+", "+eo(Xs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||zi.test(e),parse:e=>Kr.test(e)?Kr.parse(e):zi.test(e)?zi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):zi.transform(e)},pA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gA(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(pA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",yA="var",vA="var(",c0="${}",bA=/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 to(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(o),i.push(yA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return to(e).values}function f0(e){const{split:t,types:n}=to(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===a0?o+=eo(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=u0(e);return f0(e)(t.map(xA))}const wr={test:gA,parse:u0,createTransformer:f0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(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=SA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...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},d0=e=>CA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!PA.has(o)&&to(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const Xr=e=>e*180/Math.PI,Bu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Wu(t)},MA={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=>Xr(Math.atan(e[1])),skewY:e=>Xr(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),m0=Bu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Wu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=MA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(IA);return typeof o=="function"?o(a):a[o]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const v0=e=>e===Ui||e===we,$A=new Set(["x","y","z"]),DA=Wi.filter(e=>!$A.has(e));function RA(e){const t=[];return DA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gi={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")};Gi.translateX=Gi.x,Gi.translateY=Gi.y;const Zr=new Set;let zu=!1,Gu=!1;function b0(){if(Gu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=RA(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,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){x0(),b0()}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?(Zr.add(this),zu||(zu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(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),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kA(e){const t=LA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jA=4;function S0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Tu(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ui,we,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=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=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(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++)uA(t[i])&&r.push(i);r.length&&AA(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=Gi[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]=Gi[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 A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(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 VA(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=A0(i,t),c=A0(o,t);return ji(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:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const WA=40;let M0=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>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),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&&!VA(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 UA({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)},zA=[Fu,Kr,zi],GA=e=>zA.find(t=>t.test(e));function O0(e){const t=GA(e);if(ji(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zi&&(n=UA(n)),n}const _0=(e,t)=>{const n=O0(e),r=O0(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),Kr.transform(i))},YA=(e,t)=>n=>t(e(n)),no=(...e)=>e.reduce(YA),Ku=new Set(["none","hidden"]);function HA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?qA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?_0:ZA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:KA:Oa}function I0(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 KA(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 XA(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 ZA=(e,t)=>{const n=wr.createTransformer(t),r=to(e),i=to(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?HA(e,t):no(I0(XA(r,i),i.values),n):(ji(!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 $0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const JA=5;function D0(e,t,n){const r=Math.max(t-JA,0);return cg(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},R0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;ji(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return R0-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)+R0>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=tM(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 eM=12;function tM(e,t,n){let r=n;for(let i=1;i<eM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nM=["duration","bounce"],rM=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function iM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,rM)&&N0(e,nM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function L0(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}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Hn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let P;if(b<1){const A=Zu(w,b);P=R=>{const k=Math.exp(-b*w*R);return a-k*((S+b*w*T)/A*Math.sin(A*R)+T*Math.cos(A*R))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=R=>{const k=Math.exp(-b*w*R),F=Math.min(A*R,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const R=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Mn(S):D0(P,A,R));const F=Math.abs(k)<=r,z=Math.abs(a-R)<=i;c.done=F&&z}return c.value=c.done?a:R,c},toString:()=>{const A=Math.min(fg($),fu),R=hg(k=>$.next(A*k).value,A,30);return A+"ms "+R}};return $}function k0({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 C=F=>-b*Math.exp(-F/r),P=F=>w+C(F),$=F=>{const z=C(F),Q=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let A,R;const k=F=>{y(p.value)&&(A=F,R=L0({keyframes:[p.value,S(p.value)],velocity:D0(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?R.next(F-A):(!z&&$(F),p)}}}const sM=Qs(.42,0,1,1),oM=Qs(0,0,.58,1),j0=Qs(.42,0,.58,1),aM=e=>Array.isArray(e)&&typeof e[0]!="number",F0={linear:Rt,easeIn:sM,easeInOut:j0,easeOut:oM,circIn:Nu,circInOut:i0,circOut:r0,backIn:Ru,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Qs(t,n,r,i)}else if(typeof e=="string")return vr(F0[e]!==void 0,`Invalid easing type '${e}'`),F0[e];return e};function lM(e,t,n){const r=[],i=n||$0,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=no(u,c)}r.push(c)}return r}function cM(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=lM(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=Fi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function uM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fi(0,t,r);e.push(tt(n,1,i))}}function fM(e){const t=[0];return uM(t,e.length-1),t}function dM(e,t){return e.map(n=>n*t)}function hM(e,t){return e.map(()=>t||j0).splice(0,e.length-1)}function ro({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aM(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=dM(n&&n.length===t.length?n:fM(t),e),c=cM(a,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const mM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},pM={decay:k0,inertia:k0,tween:ro,keyframes:ro,spring:L0},gM=e=>e/100;let Ju=class extends M0{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:pM[n]||ro;let u,d;process.env.NODE_ENV!=="production"&&c!==ro&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==ro&&typeof t[0]!="number"&&(u=no(gM,$0(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=fg(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),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=a)),P=qn(0,1,Q)*m}const A=C?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:R}=A;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return k&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(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=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mM,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 yM=new Set(["opacity","clipPath","filter","transform"]);function vM(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=pg(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 bM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xM=2e4;function wM(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function SM(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<xM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function TM(e){return e in B0}let W0=class extends M0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(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()&&TM(o)&&(o=B0[o]),wM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=SM(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=vM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(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 Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(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 Rt;const{animation:r}=n;dg(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 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 bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MM=(e,{keyframes:t})=>t.length>2?PM:qr.has(e)?e.startsWith("scale")?CM(t[1]):EM:AM;function OM({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};OM(c)||(h={...h,...MM(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 tP([])}return!o&&W0.supports(h)?new W0(h):new Ju(h)};function _M({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(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&&_M(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const C=window.MotionHandoffAnimation(w,m,Ye);C!==null&&(S.startTime=C,b=!0)}}Du(e,m),p.start(Qu(m,p,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&sA(e,c)})}),d}function ef(e,t,n={}){var r;const i=Js(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(U0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return IM(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 IM(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($M).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 $M(e,t){return e.sortNodePosition(t)}function DM(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"?Js(e,t,n.custom):t;r=Promise.all(U0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(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 RM=xu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RM;n++){const r=xu[n],i=e.props[r];(qs(i)||i===!1)&&(t[r]=i)}return t}const NM=[...bu].reverse(),LM=bu.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>DM(e,n,r)))}function jM(e){let t=kM(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const p=Js(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=G0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<LM;T++){const w=NM[T],C=n[w],P=d[w]!==void 0?d[w]:h[w],$=qs(P),A=w===u?C.isActive:null;A===!1&&(S=T);let R=P===h[w]&&P!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&A===null||!P&&!C.prevProp||Ea(P)||typeof P=="boolean")continue;const k=FM(C.prevProp,P);let F=k||w===u&&C.isActive&&!R&&$||T>S&&$,z=!1;const Q=Array.isArray(P)?P:[P];let te=Q.reduce(i(w),{});A===!1&&(te={});const{prevResolvedValues:le={}}=C,ve={...le,...te},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ve){const B=te[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(B)&&Iu(G)?O=!z0(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):C.protectedKeys[V]=!0}C.prevProp=P,C.prevResolvedValues=te,C.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=Js(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=C??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=Y0(),r=!0}}}function FM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},VM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=jM(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)}},BM=0;const WM={animation:{Feature:VM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=BM++}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 io(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const UM=e=>t=>yu(t)&&e(t,so(t));function oo(e,t,n,r){return io(e,t,UM(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GM(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 q0=1e-4,YM=1-q0,HM=1+q0,K0=.01,qM=0-K0,KM=0+K0;function Ot(e){return e.max-e.min}function XM(e,t,n){return Math.abs(e-t)<=n}function X0(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>=YM&&e.scale<=HM||isNaN(e.scale))&&(e.scale=1),(e.translate>=qM&&e.translate<=KM||isNaN(e.translate))&&(e.translate=0)}function ao(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function ZM(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function lo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yi=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});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 Qr(e){return nf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ry(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=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function JM(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&&qi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&Qr(o.latestValues)&&qi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Hi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function qi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(GM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Hi(r.x,i.offset.x),Hi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function eO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=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=eO(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=so(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=no(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(),br(this.updatePoint)}};function sf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,tO(t)),velocity:nO(t,.1)}}function tO(e){return e[0]}function hy(e){return e[e.length-1]}function nO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(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 rO(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 my(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 iO(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(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 sO(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function oO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Fi(t.min,t.max-r,e.min):r>i&&(n=Fi(e.min,e.max-i,t.min)),qn(0,1,n)}function aO(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 lO(e=af){return e===!1?e=0:e===!0&&(e=af),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const cO=new WeakMap;let uO=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(so(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(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:C}=this.visualElement;if(C&&C.layout){const P=C.layout.layoutBox[T];P&&(w=Ot(P)*(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=fO(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 fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(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=rO(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&&Bi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bi(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=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=sO(i.layout.layoutBox,o);if(n){const c=n(zM(a));this.hasMutatedConstraints=!!c,c&&(a=H0(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(!Bi(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]=oO({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;cO.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();Bi(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=io(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 fO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let dO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new uO(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 vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let hO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.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 Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const co={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},mO={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 pO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;DP(gO),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 xy(e){const[t,n]=ag(),r=I.useContext(nu);return v.jsx(pO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const gO={borderRadius:{...co,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:co,borderTopRightRadius:co,borderBottomLeftRadius:co,borderBottomRightRadius:co,boxShadow:mO};function yO(e,t,n){const r=St(e)?e:Hs(e);return r.start(Qu("",r,t,n)),r.animation}function vO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bO=(e,t)=>e.depth-t.depth;let xO=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(bO),this.isDirty=!1,this.children.forEach(t)}};function wO(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 wy=["TopLeft","TopRight","BottomLeft","BottomRight"],SO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function TO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CO(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<SO;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(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 Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EO=Cy(0,.5,r0),CO=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Fi(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function My(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 PO(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=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],o,a){PO(e,t[n],t[r],t[i],t.scale,o,a)}const AO=["x","scaleX","originX"],MO=["y","scaleY","originY"];function _y(e,t,n,r){Oy(e.x,t,AO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,MO,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function $y(e){return Iy(e.x)&&Iy(e.y)}function Dy(e,t){return e.min===t.min&&e.max===t.max}function OO(e,t){return Dy(e.x,t.x)&&Dy(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e){return Ot(e.x)/Ot(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let _O=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 IO(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"],$O={visibility:"hidden"},jy=1e3;let DO=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 Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(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&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=DO++,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(LO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.nodes.forEach(kO)},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 xO)}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=vO(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=wO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy))})}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()||HO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!Ny(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Wy(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(UO),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&&Fy(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(By);return}this.isUpdating||this.nodes.forEach(FO),this.isUpdating=!1,this.nodes.forEach(VO),this.nodes.forEach(RO),this.nodes.forEach(NO),this.clearAllSnapshots();const c=On.now();yt.delta=qn(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(jO),this.sharedNodes.forEach(zO)}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&&!$y(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||Qr(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)),qO(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(KO))){const{scroll:h}=this.root;h&&(Hi(u.x,h.offset.x),Hi(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),Hi(u.x,m.offset.x),Hi(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&&qi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&qi(u,h.latestValues)}return Qr(this.latestValues)&&qi(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||!Qr(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 Qr(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(),lo(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(),ZM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(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(),lo(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)||ty(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;JM(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():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(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=Yi(),this.projectionDelta=Yi(),this.projectionDeltaWithTransform=Yi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Yi();(!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,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(YO));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;Uy(m.x,a.x,A),Uy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GO(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&OO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=at()),nn(P,this.relativeTarget)),b&&(this.animationValues=h,TO(h,d,this.latestValues,A,C,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=yO(0,jy,{...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(jy),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&&qy(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),qi(c,h),ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _O),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 $O;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&&!Qr(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=IO(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 Ks){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:C}=Ks[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else C?this.options.visualElement.renderState.vars[b]=P:d[b]=P}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(By),this.root.sharedNodes.clear()}}}function RO(e){e.updateLayout()}function NO(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}):qy(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=Yi();ao(c,r,n.layoutBox);const u=Yi();a?ao(u,e.applyTransform(i,!0),n.measuredBox):ao(u,r,n.layoutBox);const d=!$y(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();lo(S,n.layoutBox,p.layoutBox);const b=at();lo(b,r,y.layoutBox),Ny(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 LO(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 kO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jO(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function FO(e){e.isLayoutDirty=!1}function VO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function BO(e){e.resolveTargetDelta()}function WO(e){e.calcProjection()}function UO(e){e.resetSkewAndRotation()}function zO(e){e.removeLeadSnapshot()}function Uy(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 zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function GO(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function YO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HO={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function qO(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!XM(Ly(t),Ly(n),.2)}function KO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XO=Vy({attachResizeListener:(e,t)=>io(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new XO({});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"}),ZO={pan:{Feature:hO},drag:{Feature:dO,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(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,so(t)))}let JO=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=cP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},QO=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=no(io(this.node.current,"focus",()=>this.onFocus()),io(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(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,so(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({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(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=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:s_[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 i_(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(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QO},hover:{Feature:JO}},c_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function u_(){if(Jy.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 f_=[...E0,Tt,wr],d_=e=>f_.find(T0(e)),h_=new WeakMap;function m_(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,Hs(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,Hs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=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=Mg(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,h_.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)),Jy.current||u_(),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=qr.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 Vi){const n=Vi[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<Qy.length;r++){const i=Qy[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=m_(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=Hs(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"&&(w0(i)||s0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=h0(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)}},ev=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=P0}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 g_(e){return window.getComputedStyle(e)}let y_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return _A(t,n);{const r=g_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $u(t,n,r)}},v_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ug(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(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){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const b_=(e,t)=>Au(e)?new v_(t):new y_(t,{allowProjection:e!==I.Fragment}),x_=rA({...WM,...l_,...ZO,...c_},b_),mf=xP(x_),w_=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=VC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=YC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=jC;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,w_);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(ZC,{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($e,{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($e,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({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(HC,{isPresent:t,childRef:i,sizeRef:o,children:ee.cloneElement(e,{ref:i})})}const KC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=ru(XC),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]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(qC,{isPresent:n,anchorX:c,children:e})),v.jsx(ga.Provider,{value:m,children:e})};function XC(){return new Map}function ag(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 lg(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const ZC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=_.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),y=_.useRef(h),S=ru(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);og(()=>{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 P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const k=w[D],F=ya(k);m.includes(F)||(A.splice(D,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),E(lg(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:$}=_.useContext(nu);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ya(A),k=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let z=!0;S.forEach(J=>{J||(z=!1)}),z&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(KC,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?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 Rt=e=>e;let Vi=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Vi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const JC={useManualTiming:!1};function lu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Bi=(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,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function va(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const QC=lu(()=>window.ScrollTimeline!==void 0);let eP=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(QC()&&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")}},tP=class extends eP{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 fg(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 dg(e,t){e.timeline=t,e.onfinish=null}const hu=e=>Array.isArray(e)&&typeof e[0]=="number",nP={linearEasing:void 0};function rP(e,t){const n=lu(e);return()=>{var r;return(r=nP[t])!==null&&r!==void 0?r:n()}}const ba=rP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Bi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&ba()||!e||typeof e=="string"&&(e in mu||ba())||hu(e)||Array.isArray(e)&&e.every(mg))}const Ys=([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:Ys([0,.65,.55,1]),circOut:Ys([.55,0,1,.45]),backIn:Ys([.31,.01,.66,-.59]),backOut:Ys([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&ba()?hg(e,t):hu(e)?Ys(e):Array.isArray(e)?e.map(n=>pg(n,t)||mu.easeOut):mu[e]}const xa=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function iP(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&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const sP=40;function yg(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]=iP(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,sP),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 P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.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}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:gu}=yg(queueMicrotask,!1);let wa;function oP(){wa=void 0}const On={now:()=>(wa===void 0&&On.set(yt.isProcessing||JC.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(oP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function aP(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 lP(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 bg(e,t){const n=lP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function cP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,uP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fP(e){return uP.has(e.tagName)||e.tabIndex!==-1}const Hs=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function vu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(Hs.has(n))return;vu(n,"down");const i=Sg(()=>{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 Tg(e){return yu(e)&&!vg()}function hP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||Hs.has(u))return;Hs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Tg(y)||!Hs.has(u))&&(Hs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(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=>dP(d,i)),!fP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,mP=e=>!isNaN(parseFloat(e));let pP=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=mP(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>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(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 qs(e,t){return new pP(e,t)}const Cg=_.createContext({strict:!1}),Pg={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"]},Wi={};for(const e in Pg)Wi[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function gP(e){for(const t in e)Wi[t]={...Wi[t],...e[t]}}const yP=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")||yP.has(e)}let Ag=e=>!Sa(e);function vP(e){e&&(Ag=t=>t.startsWith("on")?!Sa(t):e(t))}try{vP(require("@emotion/is-prop-valid").default)}catch{}function bP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xP(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 Ks(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=>Ks(e[t]))}function Mg(e){return!!(Ca(e)||e.variants)}function wP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ks(n)?n:void 0,animate:Ks(r)?r:void 0}}return e.inherit!==!1?t:{}}function SP(e){const{initial:t,animate:n}=wP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[Og(t),Og(n)])}function Og(e){return Array.isArray(e)?e.join(" "):e}const TP=Symbol.for("motionComponentSymbol");function Ui(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EP(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):Ui(n)&&(n.current=r))},[t])}const wu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+wu("framerAppearId"),Ig=_.createContext({});function CP(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(Cg),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(Ig);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&PP(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 og(()=>{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 PP(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:$g(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Ui(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function $g(e){if(e)return e.options.allowProjection!==!1?e.projection:$g(e.parent)}function AP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&gP(e);function c(d,h){let m;const p={..._.useContext(su),...d,layoutId:MP(d)},{isStatic:y}=p,S=SP(d),b=r(d,y);if(!y&&iu){OP(p,e);const T=_P(p);m=T.MeasureLayout,S.visualElement=CP(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,EP(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[TP]=i,u}function MP({layoutId:e}){const t=_.useContext(nu).id;return t&&e!==void 0?t+"-"+e:e}function OP(e,t){const n=_.useContext(Cg).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?Vi(!1,r):vr(!1,r)}}function _P(e){const{drag:t,layout:n}=Wi;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 Dg=e=>t=>typeof t=="string"&&t.startsWith(e),Su=Dg("--"),IP=Dg("var(--"),Tu=e=>IP(e)?$P.test(e.split("/*")[0].trim()):!1,$P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xs={};function DP(e){for(const t in e)Xs[t]=e[t],Su(t)&&(Xs[t].isCSSVariable=!0)}const zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(zi);function Rg(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Ng=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Gi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zs={...Gi,transform:e=>qn(0,1,e)},Pa={...Gi,default:1},Js=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Js("deg"),_n=Js("%"),we=Js("px"),RP=Js("vh"),NP=Js("vw"),Lg={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LP={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},kP={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:Zs,originX:Lg,originY:Lg,originZ:we},kg={...Gi,transform:Math.round},Eu={...LP,...kP,zIndex:kg,size:we,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:kg},jP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},FP=zi.length;function VP(e,t,n){let r="",i=!0;for(let o=0;o<FP;o++){const a=zi[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=Ng(c,Eu[a]);if(!u){i=!1;const h=jP[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=Ng(d,Eu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=VP(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 jg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function BP({transformTemplate:e},t){return _.useMemo(()=>{const n=Pu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WP(e,t){const n=e.style||{},r={};return jg(r,n,e),Object.assign(r,BP(e,t)),r}function UP(e,t){const n={},r=WP(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 zP=["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:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}const GP={offset:"stroke-dashoffset",array:"stroke-dasharray"},YP={offset:"strokeDashoffset",array:"strokeDasharray"};function HP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?GP:YP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function Fg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function qP(e,t,n){const r=Fg(t,e.x,e.width),i=Fg(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=qP(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&&HP(p,a,c,u,!1)}const Vg=()=>({...Pu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function KP(e,t,n,r){const i=_.useMemo(()=>{const o=Vg();return Mu(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jg(o,e.style,e),i.style={...o,...i.style}}return i}function XP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Au(n)?KP:UP)(r,o,a,n),d=bP(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 Bg(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]=Bg(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]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Iu=e=>Array.isArray(e),ZP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),JP=e=>Iu(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return ZP(t)?t.toValue():t}function QP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:eA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Wg=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>QP(e,t,r,i);return n?o():ru(o)};function eA(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=Mg(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 P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}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])||Rg(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 tA={useVisualState:Wg({scrapeMotionValuesFromProps:$u,createRenderState:Pu})};function Ug(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 zg(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 Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:wu(i),t.attrs[i])}function Hg(e,t,n){const r=$u(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=zi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],nA={useVisualState:Wg({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,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<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Ug(n,r),Ye.render(()=>{Mu(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function rA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Au(r)?nA:tA,preloadedFeatures:e,useRender:XP(i),createVisualElement:t,Component:r};return AP(a)}}function Qs(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...zi]);function iA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qs(n))}function sA(e,t){const n=Qs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=JP(o[a]);iA(e,a,c)}}function oA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(oA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aA=1e-7,lA=12;function cA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>aA&&++c<lA);return a}function eo(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>cA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=eo(.33,1.53,.69,.99),Ru=Qg(e0),t0=Jg(Ru),n0=e=>(e*=2)<1?.5*Ru(e):.5*(2-Math.pow(2,-10*(e-1))),Nu=e=>1-Math.sin(Math.acos(e)),r0=Qg(Nu),i0=Jg(Nu),s0=e=>/^0[^.\s]+$/u.test(e);function uA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const to=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const dA=/^(?:#[\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"&&dA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(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}},hA=e=>qn(0,255,e),ju={...Gi,transform:e=>Math.round(hA(e))},ni={test:ku("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+to(Zs.transform(r))+")"};function mA(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:mA,transform:ni.transform},Yi={test:ku("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(to(t))+", "+_n.transform(to(n))+", "+to(Zs.transform(r))+")"},Tt={test:e=>ni.test(e)||Fu.test(e)||Yi.test(e),parse:e=>ni.test(e)?ni.parse(e):Yi.test(e)?Yi.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Yi.transform(e)},pA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gA(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(pA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",yA="var",vA="var(",c0="${}",bA=/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 no(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(bA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(vA)?(r.var.push(o),i.push(yA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return no(e).values}function f0(e){const{split:t,types:n}=no(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===a0?o+=to(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const xA=e=>typeof e=="number"?0:e;function wA(e){const t=u0(e);return f0(e)(t.map(xA))}const wr={test:gA,parse:u0,createTransformer:f0,getAnimatableNone:wA},SA=new Set(["brightness","contrast","saturate","opacity"]);function TA(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=SA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const EA=/\b([a-z-]*)\(.*?\)/gu,Vu={...wr,getAnimatableNone:e=>{const t=e.match(EA);return t?t.map(TA).join(" "):e}},CA={...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},d0=e=>CA[e];function h0(e,t){let n=d0(e);return n!==Vu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PA=new Set(["auto","none","0"]);function AA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!PA.has(o)&&no(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const ri=e=>e*180/Math.PI,Bu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Wu(t)},MA={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),m0=Bu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Wu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(ri(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,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 y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=MA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(IA);return typeof o=="function"?o(a):a[o]}const _A=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function IA(e){return parseFloat(e.trim())}const v0=e=>e===Gi||e===we,$A=new Set(["x","y","z"]),DA=zi.filter(e=>!$A.has(e));function RA(e){const t=[];return DA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Hi={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")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const ii=new Set;let zu=!1,Gu=!1;function b0(){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=RA(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 x0(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gu=!0)})}function NA(){x0(),b0()}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(x0),Ye.resolveKeyframes(b0))):(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 w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kA(e){const t=LA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jA=4;function S0(e,t,n=1){vr(n<=jA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=kA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Tu(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Gi,we,_n,xr,NP,RP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=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=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(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++)uA(t[i])&&r.push(i);r.length&&AA(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=Hi[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]=Hi[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 A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function FA(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 VA(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=A0(i,t),c=A0(o,t);return Vi(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:FA(e)||(n==="spring"||du(n))&&r}const BA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const WA=40;let M0=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>WA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NA(),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&&!VA(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 UA({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)},zA=[Fu,ni,Yi],GA=e=>zA.find(t=>t.test(e));function O0(e){const t=GA(e);if(Vi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Yi&&(n=UA(n)),n}const _0=(e,t)=>{const n=O0(e),r=O0(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))},YA=(e,t)=>n=>t(e(n)),ro=(...e)=>e.reduce(YA),Ku=new Set(["none","hidden"]);function HA(e,t){return Ku.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qA(e,t){return n=>tt(e,t,n)}function Xu(e){return typeof e=="number"?qA:typeof e=="string"?Tu(e)?Oa:Tt.test(e)?_0:ZA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:KA:Oa}function I0(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 KA(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 XA(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 ZA=(e,t)=>{const n=wr.createTransformer(t),r=no(e),i=no(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?HA(e,t):ro(I0(XA(r,i),i.values),n):(Vi(!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 $0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Xu(e)(e,t)}const JA=5;function D0(e,t,n){const r=Math.max(t-JA,0);return cg(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},R0=.001;function QA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Vi(e<=Mn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=Zu(d,a),S=Math.exp(-m);return R0-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)+R0>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=tM(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 eM=12;function tM(e,t,n){let r=n;for(let i=1;i<eM;i++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const nM=["duration","bounce"],rM=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function iM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!N0(e,rM)&&N0(e,nM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=QA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function L0(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}=iM({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Hn(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 P;if(b<1){const A=Zu(w,b);P=D=>{const k=Math.exp(-b*w*D);return a-k*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const k=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Mn(S):D0(P,A,D));const F=Math.abs(k)<=r,z=Math.abs(a-D)<=i;c.done=F&&z}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(fg($),fu),D=hg(k=>$.next(A*k).value,A,30);return A+"ms "+D}};return $}function k0({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),P=F=>w+E(F),$=F=>{const z=E(F),J=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:J};let A,D;const k=F=>{y(p.value)&&(A=F,D=L0({keyframes:[p.value,S(p.value)],velocity:D0(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!D&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?D.next(F-A):(!z&&$(F),p)}}}const sM=eo(.42,0,1,1),oM=eo(0,0,.58,1),j0=eo(.42,0,.58,1),aM=e=>Array.isArray(e)&&typeof e[0]!="number",F0={linear:Rt,easeIn:sM,easeInOut:j0,easeOut:oM,circIn:Nu,circInOut:i0,circOut:r0,backIn:Ru,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(hu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return eo(t,n,r,i)}else if(typeof e=="string")return vr(F0[e]!==void 0,`Invalid easing type '${e}'`),F0[e];return e};function lM(e,t,n){const r=[],i=n||$0,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=ro(u,c)}r.push(c)}return r}function cM(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=lM(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=Bi(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function uM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bi(0,t,r);e.push(tt(n,1,i))}}function fM(e){const t=[0];return uM(t,e.length-1),t}function dM(e,t){return e.map(n=>n*t)}function hM(e,t){return e.map(()=>t||j0).splice(0,e.length-1)}function io({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aM(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=dM(n&&n.length===t.length?n:fM(t),e),c=cM(a,t,{ease:Array.isArray(i)?i:hM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const mM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:On.now()}},pM={decay:k0,inertia:k0,tween:io,keyframes:io,spring:L0},gM=e=>e/100;let Ju=class extends M0{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:pM[n]||io;let u,d;process.env.NODE_ENV!=="production"&&c!==io&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==io&&typeof t[0]!="number"&&(u=ro(gM,$0(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=fg(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 P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),P=qn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return k&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(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=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mM,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 yM=new Set(["opacity","clipPath","filter","transform"]);function vM(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=pg(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 bM=lu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,xM=2e4;function wM(e){return du(e.type)||e.type==="spring"||!mg(e.ease)}function SM(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<xM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function TM(e){return e in B0}let W0=class extends M0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(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()&&TM(o)&&(o=B0[o]),wM(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=SM(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=vM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(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 Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(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 Rt;const{animation:r}=n;dg(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 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 bM()&&r&&yM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MM=(e,{keyframes:t})=>t.length>2?PM:ti.has(e)?e.startsWith("scale")?CM(t[1]):EM:AM;function OM({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};OM(c)||(h={...h,...MM(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 tP([])}return!o&&W0.supports(h)?new W0(h):new Ju(h)};function _M({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function U0(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&&_M(h,m))continue;const S={delay:n,...uu(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Xg(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&&Kg.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&sA(e,c)})}),d}function ef(e,t,n={}){var r;const i=Qs(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(U0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return IM(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 IM(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($M).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 $M(e,t){return e.sortNodePosition(t)}function DM(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"?Qs(e,t,n.custom):t;r=Promise.all(U0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(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 RM=xu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RM;n++){const r=xu[n],i=e.props[r];(Ks(i)||i===!1)&&(t[r]=i)}return t}const NM=[...bu].reverse(),LM=bu.length;function kM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>DM(e,n,r)))}function jM(e){let t=kM(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const p=Qs(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=G0(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<LM;T++){const w=NM[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=Ks(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ea(P)||typeof P=="boolean")continue;const k=FM(E.prevProp,P);let F=k||w===u&&E.isActive&&!D&&$||T>S&&$,z=!1;const J=Array.isArray(P)?P:[P];let ne=J.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:le={}}=E,ye={...le,...ne},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ye){const B=ne[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Iu(B)&&Iu(G)?O=!z0(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):E.protectedKeys[V]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&k)||z)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=Qs(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),P=e.getValue(w);P&&(P.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=Y0(),r=!0}}}function FM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){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(){}},VM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=jM(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)}},BM=0;const WM={animation:{Feature:VM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=BM++}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 so(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function oo(e){return{point:{x:e.pageX,y:e.pageY}}}const UM=e=>t=>yu(t)&&e(t,oo(t));function ao(e,t,n,r){return so(e,t,UM(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GM(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 q0=1e-4,YM=1-q0,HM=1+q0,K0=.01,qM=0-K0,KM=0+K0;function Ot(e){return e.max-e.min}function XM(e,t,n){return Math.abs(e-t)<=n}function X0(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>=YM&&e.scale<=HM||isNaN(e.scale))&&(e.scale=1),(e.translate>=qM&&e.translate<=KM||isNaN(e.translate))&&(e.translate=0)}function lo(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function ZM(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function co(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});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)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ry(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=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){rf(e.x,t.translate,t.scale,t.originPoint),rf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function JM(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&&Xi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&oi(o.latestValues)&&Xi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Ki(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);rf(e,t,n,o,r)}function Xi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(GM(e.getBoundingClientRect(),t))}function QM(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Ki(r.x,i.offset.x),Ki(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function eO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=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=eO(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=oo(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=ro(ao(this.contextWindow,"pointermove",this.handlePointerMove),ao(this.contextWindow,"pointerup",this.handlePointerUp),ao(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 dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,tO(t)),velocity:nO(t,.1)}}function tO(e){return e[0]}function hy(e){return e[e.length-1]}function nO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(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 rO(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 my(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 iO(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(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 sO(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function oO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Bi(t.min,t.max-r,e.min):r>i&&(n=Bi(e.min,e.max-i,t.min)),qn(0,1,n)}function aO(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 lO(e=af){return e===!1?e=0:e===!0&&(e=af),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const cO=new WeakMap;let uO=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(oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aP(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 P=E.layout.layoutBox[T];P&&(w=Ot(P)*(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=fO(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 fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(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=rO(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&&Ui(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iO(i.layoutBox,n):this.constraints=!1,this.elastic=lO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ui(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=QM(r,i.root,this.visualElement.getTransformPagePoint());let a=sO(i.layout.layoutBox,o);if(n){const c=n(zM(a));this.hasMutatedConstraints=!!c,c&&(a=H0(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(!Ui(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]=oO({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;cO.set(this.visualElement,this);const t=this.visualElement.current,n=ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ui(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=so(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 fO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let dO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new uO(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 vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let hO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=ao(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 by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},mO={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 pO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;DP(gO),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 xy(e){const[t,n]=ag(),r=_.useContext(nu);return v.jsx(pO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Ig),isPresent:t,safeToRemove:n})}const gO={borderRadius:{...uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:mO};function yO(e,t,n){const r=St(e)?e:qs(e);return r.start(Qu("",r,t,n)),r.animation}function vO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bO=(e,t)=>e.depth-t.depth;let xO=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(bO),this.isDirty=!1,this.children.forEach(t)}};function wO(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 wy=["TopLeft","TopRight","BottomLeft","BottomRight"],SO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function TO(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,EO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,CO(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<SO;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(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 Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const EO=Cy(0,.5,r0),CO=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Bi(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function My(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 PO(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=My(e.min,t,n,c,i),e.max=My(e.max,t,n,c,i)}function Oy(e,t,[n,r,i],o,a){PO(e,t[n],t[r],t[i],t.scale,o,a)}const AO=["x","scaleX","originX"],MO=["y","scaleY","originY"];function _y(e,t,n,r){Oy(e.x,t,AO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,MO,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function $y(e){return Iy(e.x)&&Iy(e.y)}function Dy(e,t){return e.min===t.min&&e.max===t.max}function OO(e,t){return Dy(e.x,t.x)&&Dy(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ly(e){return Ot(e.x)/Ot(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let _O=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 IO(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"],$O={visibility:"hidden"},jy=1e3;let DO=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 Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(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&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=DO++,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(LO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.nodes.forEach(kO)},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 xO)}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=vO(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=wO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy))})}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()||HO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!Ny(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...uu(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Wy(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(UO),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&&Fy(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(By);return}this.isUpdating||this.nodes.forEach(FO),this.isUpdating=!1,this.nodes.forEach(VO),this.nodes.forEach(RO),this.nodes.forEach(NO),this.clearAllSnapshots();const c=On.now();yt.delta=qn(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(jO),this.sharedNodes.forEach(zO)}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&&!$y(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)),qO(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(KO))){const{scroll:h}=this.root;h&&(Ki(u.x,h.offset.x),Ki(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),Ki(u.x,m.offset.x),Ki(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&&Xi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Xi(u,h.latestValues)}return oi(this.latestValues)&&Xi(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(),co(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(),ZM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(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(),co(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)||ty(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;JM(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():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),lo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(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=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=qi();(!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(YO));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;Uy(m.x,a.x,A),Uy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(co(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GO(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&OO(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=at()),nn(P,this.relativeTarget)),b&&(this.animationValues=h,TO(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=yO(0,jy,{...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(jy),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&&qy(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),Xi(c,h),lo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _O),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 $O;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=IO(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 Xs){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=Xs[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}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(By),this.root.sharedNodes.clear()}}}function RO(e){e.updateLayout()}function NO(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}):qy(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=qi();lo(c,r,n.layoutBox);const u=qi();a?lo(u,e.applyTransform(i,!0),n.measuredBox):lo(u,r,n.layoutBox);const d=!$y(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();co(S,n.layoutBox,p.layoutBox);const b=at();co(b,r,y.layoutBox),Ny(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 LO(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 kO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function jO(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function FO(e){e.isLayoutDirty=!1}function VO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function BO(e){e.resolveTargetDelta()}function WO(e){e.calcProjection()}function UO(e){e.resetSkewAndRotation()}function zO(e){e.removeLeadSnapshot()}function Uy(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 zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function GO(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function YO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HO={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function qO(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!XM(Ly(t),Ly(n),.2)}function KO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const XO=Vy({attachResizeListener:(e,t)=>so(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new XO({});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"}),ZO={pan:{Feature:hO},drag:{Feature:dO,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(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,oo(t)))}let JO=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=cP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},QO=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=ro(so(this.node.current,"focus",()=>this.onFocus()),so(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(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,oo(t)))}let e_=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=hP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const ff=new WeakMap,df=new WeakMap,t_=e=>{const t=ff.get(e.target);t&&t(e)},n_=e=>{e.forEach(t_)};function r_({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(n_,{root:e,...t})),r[i]}function i_(e,t,n){const r=r_(t);return ff.set(e,n),r.observe(e),()=>{ff.delete(e),r.unobserve(e)}}const s_={some:0,all:1};let o_=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:s_[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 i_(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(a_(t,n))&&this.startObserver()}unmount(){}};function a_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const l_={inView:{Feature:o_},tap:{Feature:e_},focus:{Feature:QO},hover:{Feature:JO}},c_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},hf={current:null},Jy={current:!1};function u_(){if(Jy.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 f_=[...E0,Tt,wr],d_=e=>f_.find(T0(e)),h_=new WeakMap;function m_(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,qs(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,qs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let p_=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=Mg(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,h_.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)),Jy.current||u_(),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 Wi){const n=Wi[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<Qy.length;r++){const i=Qy[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=m_(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=qs(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"&&(w0(i)||s0(i))?i=parseFloat(i):!d_(i)&&wr.test(n)&&(i=h0(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)}},ev=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=P0}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 g_(e){return window.getComputedStyle(e)}let y_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(ti.has(n))return _A(t,n);{const r=g_(t),i=(Su(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $u(t,n,r)}},v_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ug(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:wu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(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){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const b_=(e,t)=>Au(e)?new v_(t):new y_(t,{allowProjection:e!==_.Fragment}),x_=rA({...WM,...l_,...ZO,...c_},b_),mf=xP(x_),w_=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=VC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=YC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=jC;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,w_);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(ZC,{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(Ie,{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(Ie,{icon:GC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({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 S_={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"]},T_={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"]},nv={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"]},rv=6048e5,E_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(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 C_={};function uo(){return C_}function Ki(e,t){var c,u,d,h;const n=uo(),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 Ra(e,t){return Ki(e,{...t,weekStartsOn:1})}function ov(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=Ra(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Ra(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(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 Na(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 P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/E_)}function A_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function M_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function O_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function __(e){return!(!O_(e)&&typeof e!="number"||isNaN(+pt(e)))}function I_(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 $_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function D_(e,t){const{start:n,end: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 R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(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 L_(e,t){var c,u;const n=uo(),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 k_={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"}},j_=(e,t,n)=>{let r;const i=k_[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 Xi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W_={date:Xi({formats:F_,defaultWidth:"full"}),time:Xi({formats:V_,defaultWidth:"full"}),dateTime:Xi({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[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 G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={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"]},q_={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"]},K_={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"}},X_={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"}},Z_={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:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,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)?Q_(c,m=>m.test(a)):J_(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 J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(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 eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={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},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={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},aI={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]},lI={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},cI={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]},uI={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},fI={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}},dI={ordinalNumber:cv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:$n({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:uI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:j_,formatLong:W_,formatRelative:z_,localize:Z_,match:dI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hI(e,t){const n=pt(e,t==null?void 0:t.in);return P_(n,N_(n))+1}function mI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ra(n)-+A_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=uo(),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=Ki(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=Ki(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=uo(),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=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ki(o,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ki(n,t)-+pI(n,t);return Math.round(r/rv)+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)}},Zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={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=fv(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=ov(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=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(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=hI(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=Zi.noon:r===0?i=Zi.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=Zi.evening:r>=12?i=Zi.afternoon:r>=4?i=Zi.morning:i=Zi.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 mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(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 hv(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 mv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ei(e,t)}function ei(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 pv=(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"})}},gv=(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"})}},yI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(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}}",pv(r,t)).replace("{{time}}",gv(i,t))}},vI=/^D+$/,bI=/^Y+$/,xI=["D","DD","YY","YYYY"];function wI(e){return vI.test(e)}function SI(e){return bI.test(e)}function TI(e,t,n){const r=EI(e,t,n);if(console.warn(r),xI.includes(e))throw new RangeError(r)}function EI(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 CI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AI=/^'([^]*?)'?$/,MI=/''/g,OI=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=uo(),i=(n==null?void 0:n.locale)??r.locale??uv,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(!__(c))throw new RangeError("Invalid time value");let u=t.match(PI).map(C=>{const P=C[0];if(P==="p"||P==="P"){const $=yI[P];return $(C,i.formatLong)}return C}).join("").match(CI).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const P=C[0];if(P==="'")return{isToken:!1,value:_I(C)};if(dv[P])return{isToken:!0,value:C};if(P.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const P=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(P)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(P))&&TI(P,t,String(e));const $=dv[P[0]];return $(c,P,i.localize,d)}).join("")}function _I(e){const t=e.match(AI);return t?t[1].replace(MI,"'"):e}function II(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function $I(e,t){return lv(Gt(e,e),M_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function DI(e,t,n){return sv(e,-1,n)}const RI={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"}},NI=(e,t,n)=>{let r;const i=RI[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},LI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},kI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FI={date:Xi({formats:LI,defaultWidth:"full"}),time:Xi({formats:kI,defaultWidth:"full"}),dateTime:Xi({formats:jI,defaultWidth:"full"})},VI={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"},BI={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"},WI=(e,t,n,r)=>t.getHours()!==1?BI[e]:VI[e],UI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},zI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},GI={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"]},YI={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"]},HI={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"}},qI={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"}},KI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:UI,defaultWidth:"wide"}),quarter:In({values:zI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:GI,defaultWidth:"wide"}),day:In({values:YI,defaultWidth:"wide"}),dayPeriod:In({values:HI,defaultWidth:"wide",formattingValues:qI,defaultFormattingWidth:"wide"})},XI=/^(\d+)(º)?/i,ZI=/\d+/i,JI={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},QI={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]},e$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},t$={any:[/1/i,/2/i,/3/i,/4/i]},n$={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},r$={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]},i$={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},s$={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]},o$={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},a$={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}},l$={ordinalNumber:cv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:e$,defaultMatchWidth:"wide",parsePatterns:t$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:n$,defaultMatchWidth:"wide",parsePatterns:r$,defaultParseWidth:"any"}),day:$n({matchPatterns:i$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:o$,defaultMatchWidth:"any",parsePatterns:a$,defaultParseWidth:"any"})},Ji={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:l$,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=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},c$=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv(Dn(r,t,{locale:{en:uv,es:Ji}[n]}))},u$=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(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 Sv=e=>e;var fo={exports:{}};/**
625
+ */const S_={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"]},T_={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"]},nv={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"]},rv=6048e5,E_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(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 C_={};function fo(){return C_}function Zi(e,t){var c,u,d,h;const n=fo(),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 Ra(e,t){return Zi(e,{...t,weekStartsOn:1})}function ov(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=Ra(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Ra(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(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 Na(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 P_(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/E_)}function A_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function M_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function O_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function __(e){return!(!O_(e)&&typeof e!="number"||isNaN(+pt(e)))}function I_(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 $_(e,t){const[n,r]=Na(e,t.start,t.end);return{start:n,end:r}}function D_(e,t){const{start:n,end: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 R_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function N_(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 L_(e,t){var c,u;const n=fo(),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 k_={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"}},j_=(e,t,n)=>{let r;const i=k_[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 Ji(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const F_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},B_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W_={date:Ji({formats:F_,defaultWidth:"full"}),time:Ji({formats:V_,defaultWidth:"full"}),dateTime:Ji({formats:B_,defaultWidth:"full"})},U_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},z_=(e,t,n,r)=>U_[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 G_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Y_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H_={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"]},q_={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"]},K_={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"}},X_={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"}},Z_={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:G_,defaultWidth:"wide"}),quarter:In({values:Y_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:H_,defaultWidth:"wide"}),day:In({values:q_,defaultWidth:"wide"}),dayPeriod:In({values:K_,defaultWidth:"wide",formattingValues:X_,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)?Q_(c,m=>m.test(a)):J_(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 J_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Q_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(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 eI=/^(\d+)(th|st|nd|rd)?/i,tI=/\d+/i,nI={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},rI={any:[/^b/i,/^(a|c)/i]},iI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sI={any:[/1/i,/2/i,/3/i,/4/i]},oI={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},aI={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]},lI={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},cI={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]},uI={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},fI={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}},dI={ordinalNumber:cv({matchPattern:eI,parsePattern:tI,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),day:$n({matchPatterns:lI,defaultMatchWidth:"wide",parsePatterns:cI,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:uI,defaultMatchWidth:"any",parsePatterns:fI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:j_,formatLong:W_,formatRelative:z_,localize:Z_,match:dI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hI(e,t){const n=pt(e,t==null?void 0:t.in);return P_(n,N_(n))+1}function mI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ra(n)-+A_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,p,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=fo(),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=Zi(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=Zi(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pI(e,t){var c,u,d,h;const n=fo(),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=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Zi(o,t)}function gI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Zi(n,t)-+pI(n,t);return Math.round(r/rv)+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)}},Qi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={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=fv(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=ov(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=gI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=mI(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=hI(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=Qi.noon:r===0?i=Qi.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=Qi.evening:r>=12?i=Qi.afternoon:r>=4?i=Qi.morning:i=Qi.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 mv(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 mv(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"+hv(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"+hv(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 hv(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 mv(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 pv=(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"})}},gv=(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"})}},yI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(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}}",pv(r,t)).replace("{{time}}",gv(i,t))}},vI=/^D+$/,bI=/^Y+$/,xI=["D","DD","YY","YYYY"];function wI(e){return vI.test(e)}function SI(e){return bI.test(e)}function TI(e,t,n){const r=EI(e,t,n);if(console.warn(r),xI.includes(e))throw new RangeError(r)}function EI(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 CI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AI=/^'([^]*?)'?$/,MI=/''/g,OI=/[a-zA-Z]/;function Dn(e,t,n){var h,m,p,y,S,b,T,w;const r=fo(),i=(n==null?void 0:n.locale)??r.locale??uv,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(!__(c))throw new RangeError("Invalid time value");let u=t.match(PI).map(E=>{const P=E[0];if(P==="p"||P==="P"){const $=yI[P];return $(E,i.formatLong)}return E}).join("").match(CI).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const P=E[0];if(P==="'")return{isToken:!1,value:_I(E)};if(dv[P])return{isToken:!0,value:E};if(P.match(OI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");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 P=E.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&SI(P)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wI(P))&&TI(P,t,String(e));const $=dv[P[0]];return $(c,P,i.localize,d)}).join("")}function _I(e){const t=e.match(AI);return t?t[1].replace(MI,"'"):e}function II(e,t,n){const[r,i]=Na(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function $I(e,t){return lv(Gt(e,e),M_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function DI(e,t,n){return sv(e,-1,n)}const RI={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"}},NI=(e,t,n)=>{let r;const i=RI[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},LI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},kI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FI={date:Ji({formats:LI,defaultWidth:"full"}),time:Ji({formats:kI,defaultWidth:"full"}),dateTime:Ji({formats:jI,defaultWidth:"full"})},VI={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"},BI={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"},WI=(e,t,n,r)=>t.getHours()!==1?BI[e]:VI[e],UI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},zI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},GI={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"]},YI={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"]},HI={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"}},qI={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"}},KI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:UI,defaultWidth:"wide"}),quarter:In({values:zI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:GI,defaultWidth:"wide"}),day:In({values:YI,defaultWidth:"wide"}),dayPeriod:In({values:HI,defaultWidth:"wide",formattingValues:qI,defaultFormattingWidth:"wide"})},XI=/^(\d+)(º)?/i,ZI=/\d+/i,JI={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},QI={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]},e$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},t$={any:[/1/i,/2/i,/3/i,/4/i]},n$={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},r$={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]},i$={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},s$={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]},o$={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},a$={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}},l$={ordinalNumber:cv({matchPattern:XI,parsePattern:ZI,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any"}),quarter:$n({matchPatterns:e$,defaultMatchWidth:"wide",parsePatterns:t$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:n$,defaultMatchWidth:"wide",parsePatterns:r$,defaultParseWidth:"any"}),day:$n({matchPatterns:i$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:o$,defaultMatchWidth:"any",parsePatterns:a$,defaultParseWidth:"any"})},es={code:"es",formatDistance:NI,formatLong:FI,formatRelative:WI,localize:KI,match:l$,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=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},c$=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv(Dn(r,t,{locale:{en:uv,es}[n]}))},u$=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(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 Sv=e=>e;var ho={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 f$=fo.exports,Tv;function d$(){return Tv||(Tv=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,C=4,P=8,$=16,A=32,R=64,k=128,F=256,z=512,Q=30,te="...",le=800,ve=16,de=1,fe=2,he=3,V=1/0,B=9007199254740991,G=17976931348623157e292,O=NaN,N=4294967295,q=N-1,se=N>>>1,ce=[["ary",k],["bind",T],["bindKey",w],["curry",P],["curryRight",$],["flip",z],["partial",A],["partialRight",R],["rearg",F]],X="[object Arguments]",ee="[object Array]",oe="[object AsyncFunction]",ne="[object Boolean]",ue="[object Date]",Ce="[object DOMException]",Ve="[object Error]",re="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",wi="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Si="[object RegExp]",qt="[object Set]",bn="[object String]",Ti="[object Symbol]",wl="[object Undefined]",Nr="[object WeakMap]",Sl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",Sk=/\b__p \+= '';/g,Tk=/\b(__p \+=) '' \+/g,Ek=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,Ck=RegExp(kw.source),Pk=RegExp(jw.source),Ak=/<%-([\s\S]+?)%>/g,Mk=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Ok=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_k=/^\w*$/,Ik=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,$k=RegExp(yh.source),vh=/^\s+/,Dk=/\s/,Rk=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nk=/\{\n\/\* \[wrapped with (.+)\] \*/,Lk=/,? & /,kk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jk=/[()=,{}\[\]\/\s]/,Fk=/\\(\\)?/g,Vk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,Bk=/^[-+]0x[0-9a-f]+$/i,Wk=/^0b[01]+$/i,Uk=/^\[object .+?Constructor\]$/,zk=/^0o[0-7]+$/i,Gk=/^(?:0|[1-9]\d*)$/,Yk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Hk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",qk="\\u0300-\\u036f",Kk="\\ufe20-\\ufe2f",Xk="\\u20d0-\\u20ff",Bw=qk+Kk+Xk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",Zk="\\xac\\xb1\\xd7\\xf7",Jk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qk="\\u2000-\\u206f",e3=" \\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",zw="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",Yw=Zk+Jk+Qk+e3,bh="['’]",t3="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",n3="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",r3="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ss="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",i3="(?:"+Ss+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=r3+"?",r2="["+Gw+"]?",s3="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",o3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+s3,l3="(?:"+[n3,wh,Sh].join("|")+")"+i2,c3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,t3].join("|")+")",u3=RegExp(bh,"g"),f3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+c3+i2,"g"),d3=RegExp([Ss+"?"+Kw+"+"+e2+"(?="+[Hw,Ss,"$"].join("|")+")",i3+"+"+t2+"(?="+[Hw,Ss+Qw,"$"].join("|")+")",Ss+"?"+Qw+"+"+e2,Ss+"+"+t2,a3,o3,qw,l3].join("|"),"g"),h3=RegExp("["+Jw+El+Bw+Gw+"]"),m3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p3=["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"],g3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[X]=Je[ee]=Je[be]=Je[ne]=Je[Qe]=Je[ue]=Je[Ve]=Je[re]=Je[De]=Je[ft]=Je[dt]=Je[Si]=Je[qt]=Je[bn]=Je[Nr]=!1;var Ke={};Ke[X]=Ke[ee]=Ke[be]=Ke[Qe]=Ke[ne]=Ke[ue]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[De]=Ke[ft]=Ke[dt]=Ke[Si]=Ke[qt]=Ke[bn]=Ke[Ti]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ve]=Ke[re]=Ke[Nr]=!1;var y3={À:"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"},v3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},x3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w3=parseFloat,S3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,T3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||T3||Function("return this")(),Eh=t&&!t.nodeType&&t,Ei=Eh&&!0&&e&&!e.nodeType&&e,o2=Ei&&Ei.exports===Eh,Ch=o2&&s2.process,cn=function(){try{var L=Ei&&Ei.require&&Ei.require("util").types;return L||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),a2=cn&&cn.isArrayBuffer,l2=cn&&cn.isDate,c2=cn&&cn.isMap,u2=cn&&cn.isRegExp,f2=cn&&cn.isSet,d2=cn&&cn.isTypedArray;function Kt(L,U,W){switch(W.length){case 0:return L.call(U);case 1:return L.call(U,W[0]);case 2:return L.call(U,W[0],W[1]);case 3:return L.call(U,W[0],W[1],W[2])}return L.apply(U,W)}function E3(L,U,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];U(me,ht,W(ht),L)}return me}function un(L,U){for(var W=-1,me=L==null?0:L.length;++W<me&&U(L[W],W,L)!==!1;);return L}function C3(L,U){for(var W=L==null?0:L.length;W--&&U(L[W],W,L)!==!1;);return L}function h2(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!U(L[W],W,L))return!1;return!0}function Lr(L,U){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];U(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,U){var W=L==null?0:L.length;return!!W&&Ts(L,U,0)>-1}function Ph(L,U,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(U,L[me]))return!0;return!1}function et(L,U){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=U(L[W],W,L);return Pe}function kr(L,U){for(var W=-1,me=U.length,Pe=L.length;++W<me;)L[Pe+W]=U[W];return L}function Ah(L,U,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=U(W,L[Pe],Pe,L);return W}function P3(L,U,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=U(W,L[Pe],Pe,L);return W}function Mh(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(U(L[W],W,L))return!0;return!1}var A3=Oh("length");function M3(L){return L.split("")}function O3(L){return L.match(kk)||[]}function m2(L,U,W){var me;return W(L,function(Pe,ke,ht){if(U(Pe,ke,ht))return me=ke,!1}),me}function Al(L,U,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(U(L[ke],ke,L))return ke;return-1}function Ts(L,U,W){return U===U?B3(L,U,W):Al(L,p2,W)}function _3(L,U,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],U))return Pe;return-1}function p2(L){return L!==L}function g2(L,U){var W=L==null?0:L.length;return W?Ih(L,U)/W:O}function Oh(L){return function(U){return U==null?n:U[L]}}function _h(L){return function(U){return L==null?n:L[U]}}function y2(L,U,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):U(W,ke,ht,Ge)}),W}function I3(L,U){var W=L.length;for(L.sort(U);W--;)L[W]=L[W].value;return L}function Ih(L,U){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=U(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function $h(L,U){for(var W=-1,me=Array(L);++W<L;)me[W]=U(W);return me}function $3(L,U){return et(U,function(W){return[W,L[W]]})}function v2(L){return L&&L.slice(0,S2(L)+1).replace(vh,"")}function Xt(L){return function(U){return L(U)}}function Dh(L,U){return et(U,function(W){return L[W]})}function Fo(L,U){return L.has(U)}function b2(L,U){for(var W=-1,me=L.length;++W<me&&Ts(U,L[W],0)>-1;);return W}function x2(L,U){for(var W=L.length;W--&&Ts(U,L[W],0)>-1;);return W}function D3(L,U){for(var W=L.length,me=0;W--;)L[W]===U&&++me;return me}var R3=_h(y3),N3=_h(v3);function L3(L){return"\\"+x3[L]}function k3(L,U){return L==null?n:L[U]}function Es(L){return h3.test(L)}function j3(L){return m3.test(L)}function F3(L){for(var U,W=[];!(U=L.next()).done;)W.push(U.value);return W}function Rh(L){var U=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++U]=[Pe,me]}),W}function w2(L,U){return function(W){return L(U(W))}}function jr(L,U){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===U||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=me}),W}function V3(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=[me,me]}),W}function B3(L,U,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===U)return me;return-1}function W3(L,U,W){for(var me=W+1;me--;)if(L[me]===U)return me;return me}function Cs(L){return Es(L)?z3(L):A3(L)}function wn(L){return Es(L)?G3(L):M3(L)}function S2(L){for(var U=L.length;U--&&Dk.test(L.charAt(U)););return U}var U3=_h(b3);function z3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function G3(L){return L.match(Th)||[]}function Y3(L){return L.match(d3)||[]}var H3=function L(U){U=U==null?bt:Ps.defaults(bt.Object(),U,Ps.pick(bt,p3));var W=U.Array,me=U.Date,Pe=U.Error,ke=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,q3=U.String,fn=U.TypeError,Ol=W.prototype,K3=ke.prototype,As=Ge.prototype,_l=U["__core-js_shared__"],Il=K3.toString,Ue=As.hasOwnProperty,X3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=As.toString,Z3=Il.call(Ge),J3=bt._,Q3=Nh("^"+Il.call(Ue).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=o2?U.Buffer:n,Fr=U.Symbol,Rl=U.Uint8Array,E2=Dl?Dl.allocUnsafe:n,Nl=w2(Ge.getPrototypeOf,Ge),C2=Ge.create,P2=As.propertyIsEnumerable,Ll=Ol.splice,A2=Fr?Fr.isConcatSpreadable:n,Vo=Fr?Fr.iterator:n,Ci=Fr?Fr.toStringTag:n,kl=function(){try{var s=_i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),ej=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,tj=me&&me.now!==bt.Date.now&&me.now,nj=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,rj=Dl?Dl.isBuffer:n,M2=U.isFinite,ij=Ol.join,sj=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,oj=me.now,aj=U.parseInt,O2=ht.random,lj=Ol.reverse,kh=_i(U,"DataView"),Bo=_i(U,"Map"),jh=_i(U,"Promise"),Ms=_i(U,"Set"),Wo=_i(U,"WeakMap"),Uo=_i(Ge,"create"),Vl=Wo&&new Wo,Os={},cj=Ii(kh),uj=Ii(Bo),fj=Ii(jh),dj=Ii(Ms),hj=Ii(Wo),Bl=Fr?Fr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function E(s){if(ot(s)&&!Ae(s)&&!(s instanceof Ne)){if(s instanceof dn)return s;if(Ue.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var _s=function(){function s(){}return function(l){if(!st(l))return{};if(C2)return C2(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}E.templateSettings={escape:Ak,evaluate:Mk,interpolate:Fw,variable:"",imports:{_:E}},E.prototype=Wl.prototype,E.prototype.constructor=E,dn.prototype=_s(Wl.prototype),dn.prototype.constructor=dn;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function mj(){var s=new Ne(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 pj(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function gj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=MF(0,x,this.__views__),_=M.start,D=M.end,j=D-_,Y=g?D:_-1,H=this.__iteratees__,K=H.length,ae=0,ge=At(j,this.__takeCount__);if(!f||!g&&x==j&&ge==j)return eS(s,this.__actions__);var Te=[];e:for(;j--&&ae<ge;){Y+=l;for(var Oe=-1,Ee=s[Y];++Oe<K;){var Re=H[Oe],Le=Re.iteratee,Qt=Re.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==de)continue e;break e}}Te[ae++]=Ee}return Te}Ne.prototype=_s(Wl.prototype),Ne.prototype.constructor=Ne;function Pi(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 yj(){this.__data__=Uo?Uo(null):{},this.size=0}function vj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function bj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return Ue.call(l,s)?l[s]:n}function xj(s){var l=this.__data__;return Uo?l[s]!==n:Ue.call(l,s)}function wj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Pi.prototype.clear=yj,Pi.prototype.delete=vj,Pi.prototype.get=bj,Pi.prototype.has=xj,Pi.prototype.set=wj;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 Sj(){this.__data__=[],this.size=0}function Tj(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 Ej(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Cj(s){return Ul(this.__data__,s)>-1}function Pj(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=Sj,ir.prototype.delete=Tj,ir.prototype.get=Ej,ir.prototype.has=Cj,ir.prototype.set=Pj;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 Aj(){this.size=0,this.__data__={hash:new Pi,map:new(Bo||ir),string:new Pi}}function Mj(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Oj(s){return tc(this,s).get(s)}function _j(s){return tc(this,s).has(s)}function Ij(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=Aj,sr.prototype.delete=Mj,sr.prototype.get=Oj,sr.prototype.has=_j,sr.prototype.set=Ij;function Ai(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function $j(s){return this.__data__.set(s,u),this}function Dj(s){return this.__data__.has(s)}Ai.prototype.add=Ai.prototype.push=$j,Ai.prototype.has=Dj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Rj(){this.__data__=new ir,this.size=0}function Nj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Lj(s){return this.__data__.get(s)}function kj(s){return this.__data__.has(s)}function jj(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=Rj,Sn.prototype.delete=Nj,Sn.prototype.get=Lj,Sn.prototype.has=kj,Sn.prototype.set=jj;function I2(s,l){var f=Ae(s),g=!f&&$i(s),x=!f&&!g&&zr(s),M=!f&&!g&&!x&&Rs(s),_=f||g||x||M,D=_?$h(s.length,q3):[],j=D.length;for(var Y in s)(l||Ue.call(s,Y))&&!(_&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,j)))&&D.push(Y);return D}function $2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Fj(s,l){return nc(Vt(s),Mi(l,0,s.length))}function Vj(s){return nc(Vt(s))}function Fh(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];(!(Ue.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 Bj(s,l,f,g){return Vr(s,function(x,M,_){l(g,x,f(x),_)}),g}function D2(s,l){return s&&Wn(l,gt(l),s)}function Wj(s,l){return s&&Wn(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 Vh(s,l){for(var f=-1,g=l.length,x=W(g),M=s==null;++f<g;)x[f]=M?n:xm(s,l[f]);return x}function Mi(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 _,D=l&m,j=l&p,Y=l&y;if(f&&(_=x?f(s,g,x,M):f(s)),_!==n)return _;if(!st(s))return s;var H=Ae(s);if(H){if(_=_F(s),!D)return Vt(s,_)}else{var K=Mt(s),ae=K==re||K==pe;if(zr(s))return rS(s,D);if(K==dt||K==X||ae&&!x){if(_=j||ae?{}:SS(s),!D)return j?bF(s,Wj(_,s)):vF(s,D2(_,s))}else{if(!Ke[K])return x?s:{};_=IF(s,K,D)}}M||(M=new Sn);var ge=M.get(s);if(ge)return ge;M.set(s,_),ZS(s)?s.forEach(function(Ee){_.add(hn(Ee,l,f,Ee,s,M))}):KS(s)&&s.forEach(function(Ee,Re){_.set(Re,hn(Ee,l,f,Re,s,M))});var Te=Y?j?om:sm:j?Wt:gt,Oe=H?n:Te(s);return un(Oe||s,function(Ee,Re){Oe&&(Re=Ee,Ee=s[Re]),Go(_,Re,hn(Ee,l,f,Re,s,M))}),_}function Uj(s){var l=gt(s);return function(f){return R2(f,s,l)}}function R2(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 N2(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,D=s.length,j=[],Y=l.length;if(!D)return j;f&&(l=et(l,Xt(f))),g?(M=Ph,_=!1):l.length>=i&&(M=Fo,_=!1,l=new Ai(l));e:for(;++x<D;){var H=s[x],K=f==null?H:f(H);if(H=g||H!==0?H:0,_&&K===K){for(var ae=Y;ae--;)if(l[ae]===K)continue e;j.push(H)}else M(l,K,g)||j.push(H)}return j}var Vr=lS(Bn),L2=lS(Wh,!0);function zj(s,l){var f=!0;return Vr(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&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,j=M}return j}function Gj(s,l,f,g){var x=s.length;for(f=Me(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Me(g),g<0&&(g+=x),g=f>g?0:QS(g);f<g;)s[f++]=l;return s}function k2(s,l){var f=[];return Vr(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=DF),x||(x=[]);++M<_;){var D=s[M];l>0&&f(D)?l>1?xt(D,l-1,f,g,x):kr(x,D):g||(x[x.length]=D)}return x}var Bh=cS(),j2=cS(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Wh(s,l){return s&&j2(s,l,gt)}function Gl(s,l){return Lr(l,function(f){return ur(s[f])})}function Oi(s,l){l=Wr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Un(l[f++])];return f&&f==g?s:n}function F2(s,l,f){var g=l(s);return Ae(s)?g:kr(g,f(s))}function It(s){return s==null?s===n?wl:wi:Ci&&Ci in Ge(s)?AF(s):VF(s)}function Uh(s,l){return s>l}function Yj(s,l){return s!=null&&Ue.call(s,l)}function Hj(s,l){return s!=null&&l in Ge(s)}function qj(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var g=f?Ph:Pl,x=s[0].length,M=s.length,_=M,D=W(M),j=1/0,Y=[];_--;){var H=s[_];_&&l&&(H=et(H,Xt(l))),j=At(H.length,j),D[_]=!f&&(l||x>=120&&H.length>=120)?new Ai(_&&H):n}H=s[0];var K=-1,ae=D[0];e:for(;++K<x&&Y.length<j;){var ge=H[K],Te=l?l(ge):ge;if(ge=f||ge!==0?ge:0,!(ae?Fo(ae,Te):g(Y,Te,f))){for(_=M;--_;){var Oe=D[_];if(!(Oe?Fo(Oe,Te):g(s[_],Te,f)))continue e}ae&&ae.push(Te),Y.push(ge)}}return Y}function Kj(s,l,f,g){return Bn(s,function(x,M,_){l(g,f(x),M,_)}),g}function Ho(s,l,f){l=Wr(l,s),s=PS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function V2(s){return ot(s)&&It(s)==X}function Xj(s){return ot(s)&&It(s)==be}function Zj(s){return ot(s)&&It(s)==ue}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:Jj(s,l,f,g,qo,x)}function Jj(s,l,f,g,x,M){var _=Ae(s),D=Ae(l),j=_?ee:Mt(s),Y=D?ee:Mt(l);j=j==X?dt:j,Y=Y==X?dt:Y;var H=j==dt,K=Y==dt,ae=j==Y;if(ae&&zr(s)){if(!zr(l))return!1;_=!0,H=!1}if(ae&&!H)return M||(M=new Sn),_||Rs(s)?bS(s,l,f,g,x,M):CF(s,l,j,f,g,x,M);if(!(f&S)){var ge=H&&Ue.call(s,"__wrapped__"),Te=K&&Ue.call(l,"__wrapped__");if(ge||Te){var Oe=ge?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(Oe,Ee,f,g,M)}}return ae?(M||(M=new Sn),PF(s,l,f,g,x,M)):!1}function Qj(s){return ot(s)&&Mt(s)==De}function Gh(s,l,f,g){var x=f.length,M=x,_=!g;if(s==null)return!M;for(s=Ge(s);x--;){var D=f[x];if(_&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++x<M;){D=f[x];var j=D[0],Y=s[j],H=D[1];if(_&&D[2]){if(Y===n&&!(j in s))return!1}else{var K=new Sn;if(g)var ae=g(Y,H,j,s,l,K);if(!(ae===n?qo(H,Y,S|b,g,K):ae))return!1}}return!0}function B2(s){if(!st(s)||NF(s))return!1;var l=ur(s)?Q3:Uk;return l.test(Ii(s))}function eF(s){return ot(s)&&It(s)==Si}function tF(s){return ot(s)&&Mt(s)==qt}function nF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function W2(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?G2(s[0],s[1]):z2(s):uT(s)}function Yh(s){if(!Zo(s))return sj(s);var l=[];for(var f in Ge(s))Ue.call(s,f)&&f!="constructor"&&l.push(f);return l}function rF(s){if(!st(s))return FF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!Ue.call(s,g))||f.push(g);return f}function Hh(s,l){return s<l}function U2(s,l){var f=-1,g=Bt(s)?W(s.length):[];return Vr(s,function(x,M,_){g[++f]=l(x,M,_)}),g}function z2(s){var l=lm(s);return l.length==1&&l[0][2]?ES(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function G2(s,l){return um(s)&&TS(l)?ES(Un(s),l):function(f){var g=xm(f,s);return g===n&&g===l?wm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Bh(l,function(M,_){if(x||(x=new Sn),st(M))iF(s,l,_,f,Yl,g,x);else{var D=g?g(dm(s,_),M,_+"",s,l,x):n;D===n&&(D=M),Fh(s,_,D)}},Wt)}function iF(s,l,f,g,x,M,_){var D=dm(s,f),j=dm(l,f),Y=_.get(j);if(Y){Fh(s,f,Y);return}var H=M?M(D,j,f+"",s,l,_):n,K=H===n;if(K){var ae=Ae(j),ge=!ae&&zr(j),Te=!ae&&!ge&&Rs(j);H=j,ae||ge||Te?Ae(D)?H=D:ct(D)?H=Vt(D):ge?(K=!1,H=rS(j,!0)):Te?(K=!1,H=iS(j,!0)):H=[]:Qo(j)||$i(j)?(H=D,$i(D)?H=eT(D):(!st(D)||ur(D))&&(H=SS(j))):K=!1}K&&(_.set(j,H),x(H,j,g,M,_),_.delete(j)),Fh(s,f,H)}function Y2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function H2(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(_){return Oi(_,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=U2(s,function(M,_,D){var j=et(l,function(Y){return Y(M)});return{criteria:j,index:++g,value:M}});return I3(x,function(M,_){return yF(M,_,f)})}function sF(s,l){return q2(s,l,function(f,g){return wm(s,g)})}function q2(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var _=l[g],D=Oi(s,_);f(D,_)&&Ko(M,Wr(_,s),D)}return M}function oF(s){return function(l){return Oi(l,s)}}function qh(s,l,f,g){var x=g?_3:Ts,M=-1,_=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++M<_;)for(var j=0,Y=l[M],H=f?f(Y):Y;(j=x(D,H,j,g))>-1;)D!==s&&Ll.call(D,j,1),Ll.call(s,j,1);return s}function K2(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):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(O2()*(l-s+1))}function aF(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 Xh(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 _e(s,l){return hm(CS(s,l,Ut),s+"")}function lF(s){return $2(Ns(s))}function cF(s,l){var f=Ns(s);return nc(f,Mi(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Wr(l,s);for(var x=-1,M=l.length,_=M-1,D=s;D!=null&&++x<M;){var j=Un(l[x]),Y=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(x!=_){var H=D[j];Y=g?g(H,j,D):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(D,j,Y),D=D[j]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,uF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function fF(s){return nc(Ns(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 dF(s,l){var f;return Vr(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<=se){for(;g<x;){var M=g+x>>>1,_=s[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?g=M+1:x=M}return x}return Zh(s,l,Ut,f)}function Zh(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,D=l===null,j=Jt(l),Y=l===n;x<M;){var H=Fl((x+M)/2),K=f(s[H]),ae=K!==n,ge=K===null,Te=K===K,Oe=Jt(K);if(_)var Ee=g||Te;else Y?Ee=Te&&(g||ae):D?Ee=Te&&ae&&(g||!ge):j?Ee=Te&&ae&&!ge&&(g||!Oe):ge||Oe?Ee=!1:Ee=g?K<=l:K<l;Ee?x=H+1:M=H}return At(M,q)}function Z2(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var _=s[f],D=l?l(_):_;if(!f||!Tn(D,j)){var j=D;M[x++]=_===0?0:_}}return M}function J2(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 _2?_2.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var g=-1,x=Pl,M=s.length,_=!0,D=[],j=D;if(f)_=!1,x=Ph;else if(M>=i){var Y=l?null:TF(s);if(Y)return Ml(Y);_=!1,x=Fo,j=new Ai}else j=l?[]:D;e:for(;++g<M;){var H=s[g],K=l?l(H):H;if(H=f||H!==0?H:0,_&&K===K){for(var ae=j.length;ae--;)if(j[ae]===K)continue e;l&&j.push(K),D.push(H)}else x(j,K,f)||(j!==D&&j.push(K),D.push(H))}return D}function Jh(s,l){return l=Wr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Q2(s,l,f,g){return Ko(s,l,f(Oi(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 eS(s,l){var f=s;return f instanceof Ne&&(f=f.value()),Ah(l,function(g,x){return x.func.apply(x.thisArg,kr([g],x.args))},f)}function Qh(s,l,f){var g=s.length;if(g<2)return g?Br(s[0]):[];for(var x=-1,M=W(g);++x<g;)for(var _=s[x],D=-1;++D<g;)D!=x&&(M[x]=Yo(M[x]||_,s[D],l,f));return Br(xt(M,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,M=l.length,_={};++g<x;){var D=g<M?l[g]:n;f(_,s[g],D)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Ut}function Wr(s,l){return Ae(s)?s:um(s,l)?[s]:_S(Be(s))}var hF=_e;function Ur(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=ej||function(s){return bt.clearTimeout(s)};function rS(s,l){if(l)return s.slice();var f=s.length,g=E2?E2(f):new s.constructor(f);return s.copy(g),g}function nm(s){var l=new s.constructor(s.byteLength);return new Rl(l).set(new Rl(s)),l}function mF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function pF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function gF(s){return zo?Ge(zo.call(s)):{}}function iS(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function sS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,M=Jt(s),_=l!==n,D=l===null,j=l===l,Y=Jt(l);if(!D&&!Y&&!M&&s>l||M&&_&&j&&!D&&!Y||g&&_&&j||!f&&j||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||D&&f&&x||!_&&x||!j)return-1}return 0}function yF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,_=x.length,D=f.length;++g<_;){var j=sS(x[g],M[g]);if(j){if(g>=D)return j;var Y=f[g];return j*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,M=s.length,_=f.length,D=-1,j=l.length,Y=mt(M-_,0),H=W(j+Y),K=!g;++D<j;)H[D]=l[D];for(;++x<_;)(K||x<M)&&(H[f[x]]=s[x]);for(;Y--;)H[D++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,M=s.length,_=-1,D=f.length,j=-1,Y=l.length,H=mt(M-D,0),K=W(H+Y),ae=!g;++x<H;)K[x]=s[x];for(var ge=x;++j<Y;)K[ge+j]=l[j];for(;++_<D;)(ae||x<M)&&(K[ge+f[_]]=s[x++]);return K}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function Wn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var D=l[M],j=g?g(f[D],s[D],D,f,s):n;j===n&&(j=s[D]),x?or(f,D,j):Go(f,D,j)}return f}function vF(s,l){return Wn(s,cm(s),l)}function bF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?E3:Bj,M=l?l():{};return x(f,s,xe(g,2),M)}}function Is(s){return _e(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 D=f[g];D&&s(l,D,g,M)}return l})}function lS(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 cS(s){return function(l,f,g){for(var x=-1,M=Ge(l),_=g(l),D=_.length;D--;){var j=_[s?D:++x];if(f(M[j],j,M)===!1)break}return l}}function xF(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 uS(s){return function(l){l=Be(l);var f=Es(l)?wn(l):n,g=f?f[0]:l.charAt(0),x=f?Ur(f,1).join(""):l.slice(1);return g[s]()+x}}function $s(s){return function(l){return Ah(lT(aT(l).replace(u3,"")),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 wF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,_=W(M),D=M,j=Ds(x);D--;)_[D]=arguments[D];var Y=M<3&&_[0]!==j&&_[M-1]!==j?[]:jr(_,j);if(M-=Y.length,M<f)return pS(s,l,Xl,x.placeholder,n,_,Y,n,n,f-M);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,_)}return x}function fS(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 _=s(l,f,g);return _>-1?x[M?l[_]:_]:n}}function dS(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 D=ec(M),j=D=="wrapper"?am(M):n;j&&fm(j[0])&&j[1]==(k|P|A|F)&&!j[4].length&&j[9]==1?_=_[ec(j[0])].apply(_,j[3]):_=M.length==1&&fm(M)?_[D]():_.thru(M)}return function(){var Y=arguments,H=Y[0];if(_&&Y.length==1&&Ae(H))return _.plant(H).value();for(var K=0,ae=f?l[K].apply(this,Y):H;++K<f;)ae=l[K].call(this,ae);return ae}})}function Xl(s,l,f,g,x,M,_,D,j,Y){var H=l&k,K=l&T,ae=l&w,ge=l&(P|$),Te=l&z,Oe=ae?n:Xo(s);function Ee(){for(var Re=arguments.length,Le=W(Re),Qt=Re;Qt--;)Le[Qt]=arguments[Qt];if(ge)var Dt=Ds(Ee),en=D3(Le,Dt);if(g&&(Le=oS(Le,g,x,ge)),M&&(Le=aS(Le,M,_,ge)),Re-=en,ge&&Re<Y){var ut=jr(Le,Dt);return pS(s,l,Xl,Ee.placeholder,f,Le,ut,D,j,Y-Re)}var En=K?f:this,dr=ae?En[s]:s;return Re=Le.length,D?Le=BF(Le,D):Te&&Re>1&&Le.reverse(),H&&j<Re&&(Le.length=j),this&&this!==bt&&this instanceof Ee&&(dr=Oe||Xo(dr)),dr.apply(En,Le)}return Ee}function hS(s,l){return function(f,g){return Kj(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=J2(f),g=J2(g)),x=s(f,g)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_e(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?Xh(l,s):l;var g=Xh(l,jl(s/Cs(l)));return Es(l)?Ur(wn(g),0,s).join(""):g.slice(0,s)}function SF(s,l,f,g){var x=l&T,M=Xo(s);function _(){for(var D=-1,j=arguments.length,Y=-1,H=g.length,K=W(H+j),ae=this&&this!==bt&&this instanceof _?M:s;++Y<H;)K[Y]=g[Y];for(;j--;)K[Y++]=arguments[++D];return Kt(ae,x?f:this,K)}return _}function mS(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),aF(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 pS(s,l,f,g,x,M,_,D,j,Y){var H=l&P,K=H?_:n,ae=H?n:_,ge=H?M:n,Te=H?n:M;l|=H?A:R,l&=~(H?R:A),l&C||(l&=-4);var Oe=[s,l,x,ge,K,Te,ae,D,j,Y],Ee=f.apply(n,Oe);return fm(s)&&AS(Ee,Oe),Ee.placeholder=g,MS(Ee,s,l)}function im(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Me(g),292),g&&M2(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 TF=Ms&&1/Ml(new Ms([,-0]))[1]==V?function(s){return new Ms(s)}:Pm;function gS(s){return function(l){var f=Mt(l);return f==De?Rh(l):f==qt?V3(l):$3(l,s(l))}}function ar(s,l,f,g,x,M,_,D){var j=l&w;if(!j&&typeof s!="function")throw new fn(a);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),_=_===n?_:mt(Me(_),0),D=D===n?D:Me(D),Y-=x?x.length:0,l&R){var H=g,K=x;g=x=n}var ae=j?n:am(s),ge=[s,l,f,g,x,H,K,M,_,D];if(ae&&jF(ge,ae),s=ge[0],l=ge[1],f=ge[2],g=ge[3],x=ge[4],D=ge[9]=ge[9]===n?j?0:s.length:mt(ge[9]-Y,0),!D&&l&(P|$)&&(l&=-25),!l||l==T)var Te=xF(s,l,f);else l==P||l==$?Te=wF(s,l,D):(l==A||l==(T|A))&&!x.length?Te=SF(s,l,f,g):Te=Xl.apply(n,ge);var Oe=ae?X2:AS;return MS(Oe(Te,ge),s,l)}function yS(s,l,f,g){return s===n||Tn(s,As[f])&&!Ue.call(g,f)?l:s}function vS(s,l,f,g,x,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,vS,M),M.delete(l)),s}function EF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,M){var _=f&S,D=s.length,j=l.length;if(D!=j&&!(_&&j>D))return!1;var Y=M.get(s),H=M.get(l);if(Y&&H)return Y==l&&H==s;var K=-1,ae=!0,ge=f&b?new Ai:n;for(M.set(s,l),M.set(l,s);++K<D;){var Te=s[K],Oe=l[K];if(g)var Ee=_?g(Oe,Te,K,l,s,M):g(Te,Oe,K,s,l,M);if(Ee!==n){if(Ee)continue;ae=!1;break}if(ge){if(!Mh(l,function(Re,Le){if(!Fo(ge,Le)&&(Te===Re||x(Te,Re,f,g,M)))return ge.push(Le)})){ae=!1;break}}else if(!(Te===Oe||x(Te,Oe,f,g,M))){ae=!1;break}}return M.delete(s),M.delete(l),ae}function CF(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 Rl(s),new Rl(l)));case ne:case ue:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Si:case bn:return s==l+"";case De:var D=Rh;case qt:var j=g&S;if(D||(D=Ml),s.size!=l.size&&!j)return!1;var Y=_.get(s);if(Y)return Y==l;g|=b,_.set(s,l);var H=bS(D(s),D(l),g,x,M,_);return _.delete(s),H;case Ti:if(zo)return zo.call(s)==zo.call(l)}return!1}function PF(s,l,f,g,x,M){var _=f&S,D=sm(s),j=D.length,Y=sm(l),H=Y.length;if(j!=H&&!_)return!1;for(var K=j;K--;){var ae=D[K];if(!(_?ae in l:Ue.call(l,ae)))return!1}var ge=M.get(s),Te=M.get(l);if(ge&&Te)return ge==l&&Te==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ee=_;++K<j;){ae=D[K];var Re=s[ae],Le=l[ae];if(g)var Qt=_?g(Le,Re,ae,l,s,M):g(Re,Le,ae,s,l,M);if(!(Qt===n?Re===Le||x(Re,Le,f,g,M):Qt)){Oe=!1;break}Ee||(Ee=ae=="constructor")}if(Oe&&!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)&&(Oe=!1)}return M.delete(s),M.delete(l),Oe}function lr(s){return hm(CS(s,n,RS),s+"")}function sm(s){return F2(s,gt,cm)}function om(s){return F2(s,Wt,xS)}var am=Vl?function(s){return Vl.get(s)}:Pm;function ec(s){for(var l=s.name+"",f=Os[l],g=Ue.call(Os,l)?f.length:0;g--;){var x=f[g],M=x.func;if(M==null||M==s)return x.name}return l}function Ds(s){var l=Ue.call(E,"placeholder")?E:s;return l.placeholder}function xe(){var s=E.iteratee||Em;return s=s===Em?W2:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return RF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,TS(x)]}return l}function _i(s,l){var f=k3(s,l);return B2(f)?f:n}function AF(s){var l=Ue.call(s,Ci),f=s[Ci];try{s[Ci]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Ci]=f:delete s[Ci]),x}var cm=Lh?function(s){return s==null?[]:(s=Ge(s),Lr(Lh(s),function(l){return P2.call(s,l)}))}:Am,xS=Lh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Nl(s);return l}:Am,Mt=It;(kh&&Mt(new kh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||jh&&Mt(jh.resolve())!=bl||Ms&&Mt(new Ms)!=qt||Wo&&Mt(new Wo)!=Nr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Ii(f):"";if(g)switch(g){case cj:return Qe;case uj:return De;case fj:return bl;case dj:return qt;case hj:return Nr}return l});function MF(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 OF(s){var l=s.match(Nk);return l?l[1].split(Lk):[]}function wS(s,l,f){l=Wr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var _=Un(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)||$i(s)))}function _F(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&Ue.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function SS(s){return typeof s.constructor=="function"&&!Zo(s)?_s(Nl(s)):{}}function IF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case ne:case ue:return new g(+s);case Qe:return mF(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return iS(s,f);case De:return new g;case ft:case bn:return new g(s);case Si:return pF(s);case qt:return new g;case Ti:return gF(s)}}function $F(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(Rk,`{
632
+ */var f$=ho.exports,Tv;function d$(){return Tv||(Tv=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,P=8,$=16,A=32,D=64,k=128,F=256,z=512,J=30,ne="...",le=800,ye=16,de=1,ue=2,he=3,V=1/0,B=9007199254740991,G=17976931348623157e292,O=NaN,N=4294967295,K=N-1,oe=N>>>1,Z=[["ary",k],["bind",T],["bindKey",w],["curry",P],["curryRight",$],["flip",z],["partial",A],["partialRight",D],["rearg",F]],q="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",re="[object Boolean]",fe="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ti="[object Null]",dt="[object Object]",bl="[object Promise]",xl="[object Proxy]",Ei="[object RegExp]",qt="[object Set]",bn="[object String]",Ci="[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]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",Ek=/\b__p \+= '';/g,Ck=/\b(__p \+=) '' \+/g,Pk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kw=/&(?:amp|lt|gt|quot|#39);/g,jw=/[&<>"']/g,Ak=RegExp(kw.source),Mk=RegExp(jw.source),Ok=/<%-([\s\S]+?)%>/g,_k=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,Ik=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$k=/^\w*$/,Dk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Rk=RegExp(yh.source),vh=/^\s+/,Nk=/\s/,Lk=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kk=/\{\n\/\* \[wrapped with (.+)\] \*/,jk=/,? & /,Fk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vk=/[()=,{}\[\]\/\s]/,Bk=/\\(\\)?/g,Wk=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vw=/\w*$/,Uk=/^[-+]0x[0-9a-f]+$/i,zk=/^0b[01]+$/i,Gk=/^\[object .+?Constructor\]$/,Yk=/^0o[0-7]+$/i,Hk=/^(?:0|[1-9]\d*)$/,qk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tl=/($^)/,Kk=/['\n\r\u2028\u2029\\]/g,El="\\ud800-\\udfff",Xk="\\u0300-\\u036f",Zk="\\ufe20-\\ufe2f",Jk="\\u20d0-\\u20ff",Bw=Xk+Zk+Jk,Ww="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",Qk="\\xac\\xb1\\xd7\\xf7",e3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t3="\\u2000-\\u206f",n3=" \\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",zw="A-Z\\xc0-\\xd6\\xd8-\\xde",Gw="\\ufe0e\\ufe0f",Yw=Qk+e3+t3+n3,bh="['’]",r3="["+El+"]",Hw="["+Yw+"]",Cl="["+Bw+"]",qw="\\d+",i3="["+Ww+"]",Kw="["+Uw+"]",Xw="[^"+El+Yw+qw+Ww+Uw+zw+"]",xh="\\ud83c[\\udffb-\\udfff]",s3="(?:"+Cl+"|"+xh+")",Zw="[^"+El+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Ts="["+zw+"]",Jw="\\u200d",Qw="(?:"+Kw+"|"+Xw+")",o3="(?:"+Ts+"|"+Xw+")",e2="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",t2="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",n2=s3+"?",r2="["+Gw+"]?",a3="(?:"+Jw+"(?:"+[Zw,wh,Sh].join("|")+")"+r2+n2+")*",l3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=r2+n2+a3,u3="(?:"+[i3,wh,Sh].join("|")+")"+i2,f3="(?:"+[Zw+Cl+"?",Cl,wh,Sh,r3].join("|")+")",d3=RegExp(bh,"g"),h3=RegExp(Cl,"g"),Th=RegExp(xh+"(?="+xh+")|"+f3+i2,"g"),m3=RegExp([Ts+"?"+Kw+"+"+e2+"(?="+[Hw,Ts,"$"].join("|")+")",o3+"+"+t2+"(?="+[Hw,Ts+Qw,"$"].join("|")+")",Ts+"?"+Qw+"+"+e2,Ts+"+"+t2,c3,l3,qw,u3].join("|"),"g"),p3=RegExp("["+Jw+El+Bw+Gw+"]"),g3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y3=["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"],v3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[q]=Je[Q]=Je[be]=Je[re]=Je[Qe]=Je[fe]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Ei]=Je[qt]=Je[bn]=Je[Wr]=!1;var Ke={};Ke[q]=Ke[Q]=Ke[be]=Ke[Qe]=Ke[re]=Ke[fe]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[De]=Ke[ft]=Ke[dt]=Ke[Ei]=Ke[qt]=Ke[bn]=Ke[Ci]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ve]=Ke[ie]=Ke[Wr]=!1;var b3={À:"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"},x3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},w3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},S3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},T3=parseFloat,E3=parseInt,s2=typeof ea=="object"&&ea&&ea.Object===Object&&ea,C3=typeof self=="object"&&self&&self.Object===Object&&self,bt=s2||C3||Function("return this")(),Eh=t&&!t.nodeType&&t,Pi=Eh&&!0&&e&&!e.nodeType&&e,o2=Pi&&Pi.exports===Eh,Ch=o2&&s2.process,cn=function(){try{var L=Pi&&Pi.require&&Pi.require("util").types;return L||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),a2=cn&&cn.isArrayBuffer,l2=cn&&cn.isDate,c2=cn&&cn.isMap,u2=cn&&cn.isRegExp,f2=cn&&cn.isSet,d2=cn&&cn.isTypedArray;function Kt(L,U,W){switch(W.length){case 0:return L.call(U);case 1:return L.call(U,W[0]);case 2:return L.call(U,W[0],W[1]);case 3:return L.call(U,W[0],W[1],W[2])}return L.apply(U,W)}function P3(L,U,W,me){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];U(me,ht,W(ht),L)}return me}function un(L,U){for(var W=-1,me=L==null?0:L.length;++W<me&&U(L[W],W,L)!==!1;);return L}function A3(L,U){for(var W=L==null?0:L.length;W--&&U(L[W],W,L)!==!1;);return L}function h2(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!U(L[W],W,L))return!1;return!0}function Ur(L,U){for(var W=-1,me=L==null?0:L.length,Pe=0,ke=[];++W<me;){var ht=L[W];U(ht,W,L)&&(ke[Pe++]=ht)}return ke}function Pl(L,U){var W=L==null?0:L.length;return!!W&&Es(L,U,0)>-1}function Ph(L,U,W){for(var me=-1,Pe=L==null?0:L.length;++me<Pe;)if(W(U,L[me]))return!0;return!1}function et(L,U){for(var W=-1,me=L==null?0:L.length,Pe=Array(me);++W<me;)Pe[W]=U(L[W],W,L);return Pe}function zr(L,U){for(var W=-1,me=U.length,Pe=L.length;++W<me;)L[Pe+W]=U[W];return L}function Ah(L,U,W,me){var Pe=-1,ke=L==null?0:L.length;for(me&&ke&&(W=L[++Pe]);++Pe<ke;)W=U(W,L[Pe],Pe,L);return W}function M3(L,U,W,me){var Pe=L==null?0:L.length;for(me&&Pe&&(W=L[--Pe]);Pe--;)W=U(W,L[Pe],Pe,L);return W}function Mh(L,U){for(var W=-1,me=L==null?0:L.length;++W<me;)if(U(L[W],W,L))return!0;return!1}var O3=Oh("length");function _3(L){return L.split("")}function I3(L){return L.match(Fk)||[]}function m2(L,U,W){var me;return W(L,function(Pe,ke,ht){if(U(Pe,ke,ht))return me=ke,!1}),me}function Al(L,U,W,me){for(var Pe=L.length,ke=W+(me?1:-1);me?ke--:++ke<Pe;)if(U(L[ke],ke,L))return ke;return-1}function Es(L,U,W){return U===U?U3(L,U,W):Al(L,p2,W)}function $3(L,U,W,me){for(var Pe=W-1,ke=L.length;++Pe<ke;)if(me(L[Pe],U))return Pe;return-1}function p2(L){return L!==L}function g2(L,U){var W=L==null?0:L.length;return W?Ih(L,U)/W:O}function Oh(L){return function(U){return U==null?n:U[L]}}function _h(L){return function(U){return L==null?n:L[U]}}function y2(L,U,W,me,Pe){return Pe(L,function(ke,ht,Ge){W=me?(me=!1,ke):U(W,ke,ht,Ge)}),W}function D3(L,U){var W=L.length;for(L.sort(U);W--;)L[W]=L[W].value;return L}function Ih(L,U){for(var W,me=-1,Pe=L.length;++me<Pe;){var ke=U(L[me]);ke!==n&&(W=W===n?ke:W+ke)}return W}function $h(L,U){for(var W=-1,me=Array(L);++W<L;)me[W]=U(W);return me}function R3(L,U){return et(U,function(W){return[W,L[W]]})}function v2(L){return L&&L.slice(0,S2(L)+1).replace(vh,"")}function Xt(L){return function(U){return L(U)}}function Dh(L,U){return et(U,function(W){return L[W]})}function Fo(L,U){return L.has(U)}function b2(L,U){for(var W=-1,me=L.length;++W<me&&Es(U,L[W],0)>-1;);return W}function x2(L,U){for(var W=L.length;W--&&Es(U,L[W],0)>-1;);return W}function N3(L,U){for(var W=L.length,me=0;W--;)L[W]===U&&++me;return me}var L3=_h(b3),k3=_h(x3);function j3(L){return"\\"+S3[L]}function F3(L,U){return L==null?n:L[U]}function Cs(L){return p3.test(L)}function V3(L){return g3.test(L)}function B3(L){for(var U,W=[];!(U=L.next()).done;)W.push(U.value);return W}function Rh(L){var U=-1,W=Array(L.size);return L.forEach(function(me,Pe){W[++U]=[Pe,me]}),W}function w2(L,U){return function(W){return L(U(W))}}function Gr(L,U){for(var W=-1,me=L.length,Pe=0,ke=[];++W<me;){var ht=L[W];(ht===U||ht===h)&&(L[W]=h,ke[Pe++]=W)}return ke}function Ml(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=me}),W}function W3(L){var U=-1,W=Array(L.size);return L.forEach(function(me){W[++U]=[me,me]}),W}function U3(L,U,W){for(var me=W-1,Pe=L.length;++me<Pe;)if(L[me]===U)return me;return-1}function z3(L,U,W){for(var me=W+1;me--;)if(L[me]===U)return me;return me}function Ps(L){return Cs(L)?Y3(L):O3(L)}function wn(L){return Cs(L)?H3(L):_3(L)}function S2(L){for(var U=L.length;U--&&Nk.test(L.charAt(U)););return U}var G3=_h(w3);function Y3(L){for(var U=Th.lastIndex=0;Th.test(L);)++U;return U}function H3(L){return L.match(Th)||[]}function q3(L){return L.match(m3)||[]}var K3=function L(U){U=U==null?bt:As.defaults(bt.Object(),U,As.pick(bt,y3));var W=U.Array,me=U.Date,Pe=U.Error,ke=U.Function,ht=U.Math,Ge=U.Object,Nh=U.RegExp,X3=U.String,fn=U.TypeError,Ol=W.prototype,Z3=ke.prototype,Ms=Ge.prototype,_l=U["__core-js_shared__"],Il=Z3.toString,ze=Ms.hasOwnProperty,J3=0,T2=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),$l=Ms.toString,Q3=Il.call(Ge),ej=bt._,tj=Nh("^"+Il.call(ze).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=o2?U.Buffer:n,Yr=U.Symbol,Rl=U.Uint8Array,E2=Dl?Dl.allocUnsafe:n,Nl=w2(Ge.getPrototypeOf,Ge),C2=Ge.create,P2=Ms.propertyIsEnumerable,Ll=Ol.splice,A2=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Ai=Yr?Yr.toStringTag:n,kl=function(){try{var s=$i(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),nj=U.clearTimeout!==bt.clearTimeout&&U.clearTimeout,rj=me&&me.now!==bt.Date.now&&me.now,ij=U.setTimeout!==bt.setTimeout&&U.setTimeout,jl=ht.ceil,Fl=ht.floor,Lh=Ge.getOwnPropertySymbols,sj=Dl?Dl.isBuffer:n,M2=U.isFinite,oj=Ol.join,aj=w2(Ge.keys,Ge),mt=ht.max,At=ht.min,lj=me.now,cj=U.parseInt,O2=ht.random,uj=Ol.reverse,kh=$i(U,"DataView"),Bo=$i(U,"Map"),jh=$i(U,"Promise"),Os=$i(U,"Set"),Wo=$i(U,"WeakMap"),Uo=$i(Ge,"create"),Vl=Wo&&new Wo,_s={},fj=Di(kh),dj=Di(Bo),hj=Di(jh),mj=Di(Os),pj=Di(Wo),Bl=Yr?Yr.prototype:n,zo=Bl?Bl.valueOf:n,_2=Bl?Bl.toString:n;function C(s){if(ot(s)&&!Ae(s)&&!(s instanceof Ne)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return IS(s)}return new dn(s)}var Is=function(){function s(){}return function(l){if(!st(l))return{};if(C2)return C2(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:Ok,evaluate:_k,interpolate:Fw,variable:"",imports:{_:C}},C.prototype=Wl.prototype,C.prototype.constructor=C,dn.prototype=Is(Wl.prototype),dn.prototype.constructor=dn;function Ne(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function gj(){var s=new Ne(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 yj(){if(this.__filtered__){var s=new Ne(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vj(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),g=l<0,x=f?s.length:0,M=_F(0,x,this.__views__),I=M.start,R=M.end,j=R-I,Y=g?R:I-1,H=this.__iteratees__,X=H.length,ce=0,ge=At(j,this.__takeCount__);if(!f||!g&&x==j&&ge==j)return eS(s,this.__actions__);var Te=[];e:for(;j--&&ce<ge;){Y+=l;for(var Oe=-1,Ee=s[Y];++Oe<X;){var Re=H[Oe],Le=Re.iteratee,Qt=Re.type,Dt=Le(Ee);if(Qt==ue)Ee=Dt;else if(!Dt){if(Qt==de)continue e;break e}}Te[ce++]=Ee}return Te}Ne.prototype=Is(Wl.prototype),Ne.prototype.constructor=Ne;function Mi(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 bj(){this.__data__=Uo?Uo(null):{},this.size=0}function xj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function wj(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 Sj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Tj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}Mi.prototype.clear=bj,Mi.prototype.delete=xj,Mi.prototype.get=wj,Mi.prototype.has=Sj,Mi.prototype.set=Tj;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 Ej(){this.__data__=[],this.size=0}function Cj(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 Pj(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function Aj(s){return Ul(this.__data__,s)>-1}function Mj(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=Ej,ir.prototype.delete=Cj,ir.prototype.get=Pj,ir.prototype.has=Aj,ir.prototype.set=Mj;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 Oj(){this.size=0,this.__data__={hash:new Mi,map:new(Bo||ir),string:new Mi}}function _j(s){var l=tc(this,s).delete(s);return this.size-=l?1:0,l}function Ij(s){return tc(this,s).get(s)}function $j(s){return tc(this,s).has(s)}function Dj(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=Oj,sr.prototype.delete=_j,sr.prototype.get=Ij,sr.prototype.has=$j,sr.prototype.set=Dj;function Oi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function Rj(s){return this.__data__.set(s,u),this}function Nj(s){return this.__data__.has(s)}Oi.prototype.add=Oi.prototype.push=Rj,Oi.prototype.has=Nj;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function Lj(){this.__data__=new ir,this.size=0}function kj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function jj(s){return this.__data__.get(s)}function Fj(s){return this.__data__.has(s)}function Vj(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=Lj,Sn.prototype.delete=kj,Sn.prototype.get=jj,Sn.prototype.has=Fj,Sn.prototype.set=Vj;function I2(s,l){var f=Ae(s),g=!f&&Ri(s),x=!f&&!g&&Zr(s),M=!f&&!g&&!x&&Ns(s),I=f||g||x||M,R=I?$h(s.length,X3):[],j=R.length;for(var Y in s)(l||ze.call(s,Y))&&!(I&&(Y=="length"||x&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||cr(Y,j)))&&R.push(Y);return R}function $2(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function Bj(s,l){return nc(Vt(s),_i(l,0,s.length))}function Wj(s){return nc(Vt(s))}function Fh(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 Uj(s,l,f,g){return Hr(s,function(x,M,I){l(g,x,f(x),I)}),g}function D2(s,l){return s&&Wn(l,gt(l),s)}function zj(s,l){return s&&Wn(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 Vh(s,l){for(var f=-1,g=l.length,x=W(g),M=s==null;++f<g;)x[f]=M?n:xm(s,l[f]);return x}function _i(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,R=l&m,j=l&p,Y=l&y;if(f&&(I=x?f(s,g,x,M):f(s)),I!==n)return I;if(!st(s))return s;var H=Ae(s);if(H){if(I=$F(s),!R)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return rS(s,R);if(X==dt||X==q||ce&&!x){if(I=j||ce?{}:SS(s),!R)return j?wF(s,zj(I,s)):xF(s,D2(I,s))}else{if(!Ke[X])return x?s:{};I=DF(s,X,R)}}M||(M=new Sn);var ge=M.get(s);if(ge)return ge;M.set(s,I),ZS(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,M))}):KS(s)&&s.forEach(function(Ee,Re){I.set(Re,hn(Ee,l,f,Re,s,M))});var Te=Y?j?om:sm:j?Wt:gt,Oe=H?n:Te(s);return un(Oe||s,function(Ee,Re){Oe&&(Re=Ee,Ee=s[Re]),Go(I,Re,hn(Ee,l,f,Re,s,M))}),I}function Gj(s){var l=gt(s);return function(f){return R2(f,s,l)}}function R2(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 N2(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,R=s.length,j=[],Y=l.length;if(!R)return j;f&&(l=et(l,Xt(f))),g?(M=Ph,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Oi(l));e:for(;++x<R;){var H=s[x],X=f==null?H:f(H);if(H=g||H!==0?H:0,I&&X===X){for(var ce=Y;ce--;)if(l[ce]===X)continue e;j.push(H)}else M(l,X,g)||j.push(H)}return j}var Hr=lS(Bn),L2=lS(Wh,!0);function Yj(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&&(R===n?I===I&&!Jt(I):f(I,R)))var R=I,j=M}return j}function Hj(s,l,f,g){var x=s.length;for(f=Me(f),f<0&&(f=-f>x?0:x+f),g=g===n||g>x?x:Me(g),g<0&&(g+=x),g=f>g?0:QS(g);f<g;)s[f++]=l;return s}function k2(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=NF),x||(x=[]);++M<I;){var R=s[M];l>0&&f(R)?l>1?xt(R,l-1,f,g,x):zr(x,R):g||(x[x.length]=R)}return x}var Bh=cS(),j2=cS(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Wh(s,l){return s&&j2(s,l,gt)}function Gl(s,l){return Ur(l,function(f){return ur(s[f])})}function Ii(s,l){l=Kr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Un(l[f++])];return f&&f==g?s:n}function F2(s,l,f){var g=l(s);return Ae(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?wl:Ti:Ai&&Ai in Ge(s)?OF(s):WF(s)}function Uh(s,l){return s>l}function qj(s,l){return s!=null&&ze.call(s,l)}function Kj(s,l){return s!=null&&l in Ge(s)}function Xj(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var g=f?Ph:Pl,x=s[0].length,M=s.length,I=M,R=W(M),j=1/0,Y=[];I--;){var H=s[I];I&&l&&(H=et(H,Xt(l))),j=At(H.length,j),R[I]=!f&&(l||x>=120&&H.length>=120)?new Oi(I&&H):n}H=s[0];var X=-1,ce=R[0];e:for(;++X<x&&Y.length<j;){var ge=H[X],Te=l?l(ge):ge;if(ge=f||ge!==0?ge:0,!(ce?Fo(ce,Te):g(Y,Te,f))){for(I=M;--I;){var Oe=R[I];if(!(Oe?Fo(Oe,Te):g(s[I],Te,f)))continue e}ce&&ce.push(Te),Y.push(ge)}}return Y}function Zj(s,l,f,g){return Bn(s,function(x,M,I){l(g,f(x),M,I)}),g}function Ho(s,l,f){l=Kr(l,s),s=PS(s,l);var g=s==null?s:s[Un(pn(l))];return g==null?n:Kt(g,s,f)}function V2(s){return ot(s)&&It(s)==q}function Jj(s){return ot(s)&&It(s)==be}function Qj(s){return ot(s)&&It(s)==fe}function qo(s,l,f,g,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:eF(s,l,f,g,qo,x)}function eF(s,l,f,g,x,M){var I=Ae(s),R=Ae(l),j=I?Q:Mt(s),Y=R?Q:Mt(l);j=j==q?dt:j,Y=Y==q?dt:Y;var H=j==dt,X=Y==dt,ce=j==Y;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,H=!1}if(ce&&!H)return M||(M=new Sn),I||Ns(s)?bS(s,l,f,g,x,M):AF(s,l,j,f,g,x,M);if(!(f&S)){var ge=H&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ge||Te){var Oe=ge?s.value():s,Ee=Te?l.value():l;return M||(M=new Sn),x(Oe,Ee,f,g,M)}}return ce?(M||(M=new Sn),MF(s,l,f,g,x,M)):!1}function tF(s){return ot(s)&&Mt(s)==De}function Gh(s,l,f,g){var x=f.length,M=x,I=!g;if(s==null)return!M;for(s=Ge(s);x--;){var R=f[x];if(I&&R[2]?R[1]!==s[R[0]]:!(R[0]in s))return!1}for(;++x<M;){R=f[x];var j=R[0],Y=s[j],H=R[1];if(I&&R[2]){if(Y===n&&!(j in s))return!1}else{var X=new Sn;if(g)var ce=g(Y,H,j,s,l,X);if(!(ce===n?qo(H,Y,S|b,g,X):ce))return!1}}return!0}function B2(s){if(!st(s)||kF(s))return!1;var l=ur(s)?tj:Gk;return l.test(Di(s))}function nF(s){return ot(s)&&It(s)==Ei}function rF(s){return ot(s)&&Mt(s)==qt}function iF(s){return ot(s)&&lc(s.length)&&!!Je[It(s)]}function W2(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Ae(s)?G2(s[0],s[1]):z2(s):uT(s)}function Yh(s){if(!Zo(s))return aj(s);var l=[];for(var f in Ge(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function sF(s){if(!st(s))return BF(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function Hh(s,l){return s<l}function U2(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 z2(s){var l=lm(s);return l.length==1&&l[0][2]?ES(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function G2(s,l){return um(s)&&TS(l)?ES(Un(s),l):function(f){var g=xm(f,s);return g===n&&g===l?wm(f,s):qo(l,g,S|b)}}function Yl(s,l,f,g,x){s!==l&&Bh(l,function(M,I){if(x||(x=new Sn),st(M))oF(s,l,I,f,Yl,g,x);else{var R=g?g(dm(s,I),M,I+"",s,l,x):n;R===n&&(R=M),Fh(s,I,R)}},Wt)}function oF(s,l,f,g,x,M,I){var R=dm(s,f),j=dm(l,f),Y=I.get(j);if(Y){Fh(s,f,Y);return}var H=M?M(R,j,f+"",s,l,I):n,X=H===n;if(X){var ce=Ae(j),ge=!ce&&Zr(j),Te=!ce&&!ge&&Ns(j);H=j,ce||ge||Te?Ae(R)?H=R:ct(R)?H=Vt(R):ge?(X=!1,H=rS(j,!0)):Te?(X=!1,H=iS(j,!0)):H=[]:Qo(j)||Ri(j)?(H=R,Ri(R)?H=eT(R):(!st(R)||ur(R))&&(H=SS(j))):X=!1}X&&(I.set(j,H),x(H,j,g,M,I),I.delete(j)),Fh(s,f,H)}function Y2(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function H2(s,l,f){l.length?l=et(l,function(M){return Ae(M)?function(I){return Ii(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(xe()));var x=U2(s,function(M,I,R){var j=et(l,function(Y){return Y(M)});return{criteria:j,index:++g,value:M}});return D3(x,function(M,I){return bF(M,I,f)})}function aF(s,l){return q2(s,l,function(f,g){return wm(s,g)})}function q2(s,l,f){for(var g=-1,x=l.length,M={};++g<x;){var I=l[g],R=Ii(s,I);f(R,I)&&Ko(M,Kr(I,s),R)}return M}function lF(s){return function(l){return Ii(l,s)}}function qh(s,l,f,g){var x=g?$3:Es,M=-1,I=l.length,R=s;for(s===l&&(l=Vt(l)),f&&(R=et(s,Xt(f)));++M<I;)for(var j=0,Y=l[M],H=f?f(Y):Y;(j=x(R,H,j,g))>-1;)R!==s&&Ll.call(R,j,1),Ll.call(s,j,1);return s}function K2(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):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(O2()*(l-s+1))}function cF(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 Xh(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 _e(s,l){return hm(CS(s,l,Ut),s+"")}function uF(s){return $2(Ls(s))}function fF(s,l){var f=Ls(s);return nc(f,_i(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,R=s;R!=null&&++x<M;){var j=Un(l[x]),Y=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(x!=I){var H=R[j];Y=g?g(H,j,R):n,Y===n&&(Y=st(H)?H:cr(l[x+1])?[]:{})}Go(R,j,Y),R=R[j]}return s}var X2=Vl?function(s,l){return Vl.set(s,l),s}:Ut,dF=kl?function(s,l){return kl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Ut;function hF(s){return nc(Ls(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 mF(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<=oe){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 Zh(s,l,Ut,f)}function Zh(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,R=l===null,j=Jt(l),Y=l===n;x<M;){var H=Fl((x+M)/2),X=f(s[H]),ce=X!==n,ge=X===null,Te=X===X,Oe=Jt(X);if(I)var Ee=g||Te;else Y?Ee=Te&&(g||ce):R?Ee=Te&&ce&&(g||!ge):j?Ee=Te&&ce&&!ge&&(g||!Oe):ge||Oe?Ee=!1:Ee=g?X<=l:X<l;Ee?x=H+1:M=H}return At(M,K)}function Z2(s,l){for(var f=-1,g=s.length,x=0,M=[];++f<g;){var I=s[f],R=l?l(I):I;if(!f||!Tn(R,j)){var j=R;M[x++]=I===0?0:I}}return M}function J2(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 _2?_2.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,R=[],j=R;if(f)I=!1,x=Ph;else if(M>=i){var Y=l?null:CF(s);if(Y)return Ml(Y);I=!1,x=Fo,j=new Oi}else j=l?[]:R;e:for(;++g<M;){var H=s[g],X=l?l(H):H;if(H=f||H!==0?H:0,I&&X===X){for(var ce=j.length;ce--;)if(j[ce]===X)continue e;l&&j.push(X),R.push(H)}else x(j,X,f)||(j!==R&&j.push(X),R.push(H))}return R}function Jh(s,l){return l=Kr(l,s),s=PS(s,l),s==null||delete s[Un(pn(l))]}function Q2(s,l,f,g){return Ko(s,l,f(Ii(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 eS(s,l){var f=s;return f instanceof Ne&&(f=f.value()),Ah(l,function(g,x){return x.func.apply(x.thisArg,zr([g],x.args))},f)}function Qh(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],R=-1;++R<g;)R!=x&&(M[x]=Yo(M[x]||I,s[R],l,f));return qr(xt(M,1),l,f)}function tS(s,l,f){for(var g=-1,x=s.length,M=l.length,I={};++g<x;){var R=g<M?l[g]:n;f(I,s[g],R)}return I}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Ae(s)?s:um(s,l)?[s]:_S(Be(s))}var pF=_e;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var nS=nj||function(s){return bt.clearTimeout(s)};function rS(s,l){if(l)return s.slice();var f=s.length,g=E2?E2(f):new s.constructor(f);return s.copy(g),g}function nm(s){var l=new s.constructor(s.byteLength);return new Rl(l).set(new Rl(s)),l}function gF(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function yF(s){var l=new s.constructor(s.source,Vw.exec(s));return l.lastIndex=s.lastIndex,l}function vF(s){return zo?Ge(zo.call(s)):{}}function iS(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function sS(s,l){if(s!==l){var f=s!==n,g=s===null,x=s===s,M=Jt(s),I=l!==n,R=l===null,j=l===l,Y=Jt(l);if(!R&&!Y&&!M&&s>l||M&&I&&j&&!R&&!Y||g&&I&&j||!f&&j||!x)return 1;if(!g&&!M&&!Y&&s<l||Y&&f&&x&&!g&&!M||R&&f&&x||!I&&x||!j)return-1}return 0}function bF(s,l,f){for(var g=-1,x=s.criteria,M=l.criteria,I=x.length,R=f.length;++g<I;){var j=sS(x[g],M[g]);if(j){if(g>=R)return j;var Y=f[g];return j*(Y=="desc"?-1:1)}}return s.index-l.index}function oS(s,l,f,g){for(var x=-1,M=s.length,I=f.length,R=-1,j=l.length,Y=mt(M-I,0),H=W(j+Y),X=!g;++R<j;)H[R]=l[R];for(;++x<I;)(X||x<M)&&(H[f[x]]=s[x]);for(;Y--;)H[R++]=s[x++];return H}function aS(s,l,f,g){for(var x=-1,M=s.length,I=-1,R=f.length,j=-1,Y=l.length,H=mt(M-R,0),X=W(H+Y),ce=!g;++x<H;)X[x]=s[x];for(var ge=x;++j<Y;)X[ge+j]=l[j];for(;++I<R;)(ce||x<M)&&(X[ge+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 Wn(s,l,f,g){var x=!f;f||(f={});for(var M=-1,I=l.length;++M<I;){var R=l[M],j=g?g(f[R],s[R],R,f,s):n;j===n&&(j=s[R]),x?or(f,R,j):Go(f,R,j)}return f}function xF(s,l){return Wn(s,cm(s),l)}function wF(s,l){return Wn(s,xS(s),l)}function Kl(s,l){return function(f,g){var x=Ae(f)?P3:Uj,M=l?l():{};return x(f,s,xe(g,2),M)}}function $s(s){return _e(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 R=f[g];R&&s(l,R,g,M)}return l})}function lS(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 cS(s){return function(l,f,g){for(var x=-1,M=Ge(l),I=g(l),R=I.length;R--;){var j=I[s?R:++x];if(f(M[j],j,M)===!1)break}return l}}function SF(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 uS(s){return function(l){l=Be(l);var f=Cs(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 Ds(s){return function(l){return Ah(lT(aT(l).replace(d3,"")),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=Is(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function TF(s,l,f){var g=Xo(s);function x(){for(var M=arguments.length,I=W(M),R=M,j=Rs(x);R--;)I[R]=arguments[R];var Y=M<3&&I[0]!==j&&I[M-1]!==j?[]:Gr(I,j);if(M-=Y.length,M<f)return pS(s,l,Xl,x.placeholder,n,I,Y,n,n,f-M);var H=this&&this!==bt&&this instanceof x?g:s;return Kt(H,this,I)}return x}function fS(s){return function(l,f,g){var x=Ge(l);if(!Bt(l)){var M=xe(f,3);l=gt(l),f=function(R){return M(x[R],R,x)}}var I=s(l,f,g);return I>-1?x[M?l[I]:I]:n}}function dS(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 R=ec(M),j=R=="wrapper"?am(M):n;j&&fm(j[0])&&j[1]==(k|P|A|F)&&!j[4].length&&j[9]==1?I=I[ec(j[0])].apply(I,j[3]):I=M.length==1&&fm(M)?I[R]():I.thru(M)}return function(){var Y=arguments,H=Y[0];if(I&&Y.length==1&&Ae(H))return I.plant(H).value();for(var X=0,ce=f?l[X].apply(this,Y):H;++X<f;)ce=l[X].call(this,ce);return ce}})}function Xl(s,l,f,g,x,M,I,R,j,Y){var H=l&k,X=l&T,ce=l&w,ge=l&(P|$),Te=l&z,Oe=ce?n:Xo(s);function Ee(){for(var Re=arguments.length,Le=W(Re),Qt=Re;Qt--;)Le[Qt]=arguments[Qt];if(ge)var Dt=Rs(Ee),en=N3(Le,Dt);if(g&&(Le=oS(Le,g,x,ge)),M&&(Le=aS(Le,M,I,ge)),Re-=en,ge&&Re<Y){var ut=Gr(Le,Dt);return pS(s,l,Xl,Ee.placeholder,f,Le,ut,R,j,Y-Re)}var En=X?f:this,dr=ce?En[s]:s;return Re=Le.length,R?Le=UF(Le,R):Te&&Re>1&&Le.reverse(),H&&j<Re&&(Le.length=j),this&&this!==bt&&this instanceof Ee&&(dr=Oe||Xo(dr)),dr.apply(En,Le)}return Ee}function hS(s,l){return function(f,g){return Zj(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=J2(f),g=J2(g)),x=s(f,g)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_e(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?Xh(l,s):l;var g=Xh(l,jl(s/Ps(l)));return Cs(l)?Xr(wn(g),0,s).join(""):g.slice(0,s)}function EF(s,l,f,g){var x=l&T,M=Xo(s);function I(){for(var R=-1,j=arguments.length,Y=-1,H=g.length,X=W(H+j),ce=this&&this!==bt&&this instanceof I?M:s;++Y<H;)X[Y]=g[Y];for(;j--;)X[Y++]=arguments[++R];return Kt(ce,x?f:this,X)}return I}function mS(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),cF(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 pS(s,l,f,g,x,M,I,R,j,Y){var H=l&P,X=H?I:n,ce=H?n:I,ge=H?M:n,Te=H?n:M;l|=H?A:D,l&=~(H?D:A),l&E||(l&=-4);var Oe=[s,l,x,ge,X,Te,ce,R,j,Y],Ee=f.apply(n,Oe);return fm(s)&&AS(Ee,Oe),Ee.placeholder=g,MS(Ee,s,l)}function im(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Me(g),292),g&&M2(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 CF=Os&&1/Ml(new Os([,-0]))[1]==V?function(s){return new Os(s)}:Pm;function gS(s){return function(l){var f=Mt(l);return f==De?Rh(l):f==qt?W3(l):R3(l,s(l))}}function ar(s,l,f,g,x,M,I,R){var j=l&w;if(!j&&typeof s!="function")throw new fn(a);var Y=g?g.length:0;if(Y||(l&=-97,g=x=n),I=I===n?I:mt(Me(I),0),R=R===n?R:Me(R),Y-=x?x.length:0,l&D){var H=g,X=x;g=x=n}var ce=j?n:am(s),ge=[s,l,f,g,x,H,X,M,I,R];if(ce&&VF(ge,ce),s=ge[0],l=ge[1],f=ge[2],g=ge[3],x=ge[4],R=ge[9]=ge[9]===n?j?0:s.length:mt(ge[9]-Y,0),!R&&l&(P|$)&&(l&=-25),!l||l==T)var Te=SF(s,l,f);else l==P||l==$?Te=TF(s,l,R):(l==A||l==(T|A))&&!x.length?Te=EF(s,l,f,g):Te=Xl.apply(n,ge);var Oe=ce?X2:AS;return MS(Oe(Te,ge),s,l)}function yS(s,l,f,g){return s===n||Tn(s,Ms[f])&&!ze.call(g,f)?l:s}function vS(s,l,f,g,x,M){return st(s)&&st(l)&&(M.set(l,s),Yl(s,l,n,vS,M),M.delete(l)),s}function PF(s){return Qo(s)?n:s}function bS(s,l,f,g,x,M){var I=f&S,R=s.length,j=l.length;if(R!=j&&!(I&&j>R))return!1;var Y=M.get(s),H=M.get(l);if(Y&&H)return Y==l&&H==s;var X=-1,ce=!0,ge=f&b?new Oi:n;for(M.set(s,l),M.set(l,s);++X<R;){var Te=s[X],Oe=l[X];if(g)var Ee=I?g(Oe,Te,X,l,s,M):g(Te,Oe,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ge){if(!Mh(l,function(Re,Le){if(!Fo(ge,Le)&&(Te===Re||x(Te,Re,f,g,M)))return ge.push(Le)})){ce=!1;break}}else if(!(Te===Oe||x(Te,Oe,f,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function AF(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 Rl(s),new Rl(l)));case re:case fe:case ft:return Tn(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Ei:case bn:return s==l+"";case De:var R=Rh;case qt:var j=g&S;if(R||(R=Ml),s.size!=l.size&&!j)return!1;var Y=I.get(s);if(Y)return Y==l;g|=b,I.set(s,l);var H=bS(R(s),R(l),g,x,M,I);return I.delete(s),H;case Ci:if(zo)return zo.call(s)==zo.call(l)}return!1}function MF(s,l,f,g,x,M){var I=f&S,R=sm(s),j=R.length,Y=sm(l),H=Y.length;if(j!=H&&!I)return!1;for(var X=j;X--;){var ce=R[X];if(!(I?ce in l:ze.call(l,ce)))return!1}var ge=M.get(s),Te=M.get(l);if(ge&&Te)return ge==l&&Te==s;var Oe=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<j;){ce=R[X];var Re=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Re,ce,l,s,M):g(Re,Le,ce,s,l,M);if(!(Qt===n?Re===Le||x(Re,Le,f,g,M):Qt)){Oe=!1;break}Ee||(Ee=ce=="constructor")}if(Oe&&!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)&&(Oe=!1)}return M.delete(s),M.delete(l),Oe}function lr(s){return hm(CS(s,n,RS),s+"")}function sm(s){return F2(s,gt,cm)}function om(s){return F2(s,Wt,xS)}var am=Vl?function(s){return Vl.get(s)}:Pm;function ec(s){for(var l=s.name+"",f=_s[l],g=ze.call(_s,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||Em;return s=s===Em?W2:s,arguments.length?s(arguments[0],arguments[1]):s}function tc(s,l){var f=s.__data__;return LF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],x=s[g];l[f]=[g,x,TS(x)]}return l}function $i(s,l){var f=F3(s,l);return B2(f)?f:n}function OF(s){var l=ze.call(s,Ai),f=s[Ai];try{s[Ai]=n;var g=!0}catch{}var x=$l.call(s);return g&&(l?s[Ai]=f:delete s[Ai]),x}var cm=Lh?function(s){return s==null?[]:(s=Ge(s),Ur(Lh(s),function(l){return P2.call(s,l)}))}:Am,xS=Lh?function(s){for(var l=[];s;)zr(l,cm(s)),s=Nl(s);return l}:Am,Mt=It;(kh&&Mt(new kh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||jh&&Mt(jh.resolve())!=bl||Os&&Mt(new Os)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?Di(f):"";if(g)switch(g){case fj:return Qe;case dj:return De;case hj:return bl;case mj:return qt;case pj:return Wr}return l});function _F(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 IF(s){var l=s.match(kk);return l?l[1].split(jk):[]}function wS(s,l,f){l=Kr(l,s);for(var g=-1,x=l.length,M=!1;++g<x;){var I=Un(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 $F(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 SS(s){return typeof s.constructor=="function"&&!Zo(s)?Is(Nl(s)):{}}function DF(s,l,f){var g=s.constructor;switch(l){case be:return nm(s);case re:case fe:return new g(+s);case Qe:return gF(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return iS(s,f);case De:return new g;case ft:case bn:return new g(s);case Ei:return yF(s);case qt:return new g;case Ci:return vF(s)}}function RF(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(Lk,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function DF(s){return Ae(s)||$i(s)||!!(A2&&s&&s[A2])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&Gk.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 um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:_k.test(s)||!Ok.test(s)||l!=null&&s in Ge(l)}function RF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=ec(s),f=E[l];if(typeof f!="function"||!(l in Ne.prototype))return!1;if(s===f)return!0;var g=am(f);return!!g&&s===g[0]}function NF(s){return!!T2&&T2 in s}var LF=_l?ur:Mm;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||As;return s===f}function TS(s){return s===s&&!st(s)}function ES(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function kF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function jF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|k),_=g==k&&f==P||g==k&&f==F&&s[7].length<=l[8]||g==(k|F)&&l[7].length<=l[8]&&f==P;if(!(M||_))return s;g&T&&(s[2]=l[2],x|=f&T?0:C);var D=l[3];if(D){var j=s[3];s[3]=j?oS(j,D,l[4]):D,s[4]=j?jr(s[3],h):l[4]}return D=l[5],D&&(j=s[5],s[5]=j?aS(j,D,l[6]):D,s[6]=j?jr(s[5],h):l[6]),D=l[7],D&&(s[7]=D),g&k&&(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 FF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function VF(s){return $l.call(s)}function CS(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 D=W(l+1);++x<l;)D[x]=g[x];return D[l]=f(_),Kt(s,this,D)}}function PS(s,l){return l.length<2?s:Oi(s,mn(l,0,-1))}function BF(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 dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=OS(X2),Jo=nj||function(s,l){return bt.setTimeout(s,l)},hm=OS(uF);function MS(s,l,f){var g=l+"";return hm(s,$F(g,WF(OF(g),f)))}function OS(s){var l=0,f=0;return function(){var g=oj(),x=ve-(g-f);if(f=g,x>0){if(++l>=le)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=Kh(f,x),_=s[M];s[M]=s[f],s[f]=_}return s.length=l,s}var _S=kF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Ik,function(f,g,x,M){l.push(x?M.replace(Fk,"$1"):g||f)}),l});function Un(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ii(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function WF(s,l){return un(ce,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Ne)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 UF(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Me(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 zF(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 GF(){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 kr(Ae(f)?Vt(f):[f],xt(l,1))}var YF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),HF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),qF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function KF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),mn(s,l<0?0:l,g)):[]}function XF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,0,l<0?0:l)):[]}function ZF(s,l){return s&&s.length?ql(s,xe(l,3),!0,!0):[]}function JF(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function QF(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),Gj(s,l,f,g)):[]}function $S(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Al(s,xe(l,3),x)}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Me(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 eV(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function tV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function nV(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 NS(s){return s&&s.length?s[0]:n}function rV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Ts(s,l,x)}function iV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var sV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),oV=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,xe(l,2)):[]}),aV=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function lV(s,l){return s==null?"":ij.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function cV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Me(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?W3(s,l,x):Al(s,p2,x,!0)}function uV(s,l){return s&&s.length?Y2(s,Me(l)):n}var fV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function dV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function hV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var mV=lr(function(s,l){var f=s==null?0:s.length,g=Vh(s,l);return K2(s,et(l,function(x){return cr(x,f)?+x:x}).sort(sS)),g});function pV(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 K2(s,x),f}function mm(s){return s==null?s:lj.call(s)}function gV(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:Me(l),f=f===n?g:Me(f)),mn(s,l,f)):[]}function yV(s,l){return Hl(s,l)}function vV(s,l,f){return Zh(s,l,xe(f,2))}function bV(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 xV(s,l){return Hl(s,l,!0)}function wV(s,l,f){return Zh(s,l,xe(f,2),!0)}function SV(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 TV(s){return s&&s.length?Z2(s):[]}function EV(s,l){return s&&s.length?Z2(s,xe(l,2)):[]}function CV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function PV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function AV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,l<0?0:l,g)):[]}function MV(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function OV(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var _V=_e(function(s){return Br(xt(s,1,ct,!0))}),IV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),xe(l,2))}),$V=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function DV(s){return s&&s.length?Br(s):[]}function RV(s,l){return s&&s.length?Br(s,xe(l,2)):[]}function NV(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Lr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),$h(l,function(f){return et(s,Oh(f))})}function kS(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var LV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),kV=_e(function(s){return Qh(Lr(s,ct))}),jV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Lr(s,ct),xe(l,2))}),FV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Lr(s,ct),n,l)}),VV=_e(pm);function BV(s,l){return tS(s||[],l||[],Go)}function WV(s,l){return tS(s||[],l||[],Ko)}var UV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,kS(s,f)});function jS(s){var l=E(s);return l.__chain__=!0,l}function zV(s,l){return l(s),s}function rc(s,l){return l(s)}var GV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Vh(M,s)};return l>1||this.__actions__.length||!(g instanceof Ne)||!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 YV(){return jS(this)}function HV(){return new dn(this.value(),this.__chain__)}function qV(){this.__values__===n&&(this.__values__=JS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function KV(){return this}function XV(s){for(var l,f=this;f instanceof Wl;){var g=IS(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 ZV(){var s=this.__wrapped__;if(s instanceof Ne){var l=s;return this.__actions__.length&&(l=new Ne(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function JV(){return eS(this.__wrapped__,this.__actions__)}var QV=Kl(function(s,l,f){Ue.call(s,f)?++s[f]:or(s,f,1)});function eB(s,l,f){var g=Ae(s)?h2:zj;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function tB(s,l){var f=Ae(s)?Lr:k2;return f(s,xe(l,3))}var nB=fS($S),rB=fS(DS);function iB(s,l){return xt(ic(s,l),1)}function sB(s,l){return xt(ic(s,l),V)}function oB(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Vr;return f(s,xe(l,3))}function VS(s,l){var f=Ae(s)?C3:L2;return f(s,xe(l,3))}var aB=Kl(function(s,l,f){Ue.call(s,f)?s[f].push(l):or(s,f,[l])});function lB(s,l,f,g){s=Bt(s)?s:Ns(s),f=f&&!g?Me(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Ts(s,l,f)>-1}var cB=_e(function(s,l,f){var g=-1,x=typeof l=="function",M=Bt(s)?W(s.length):[];return Vr(s,function(_){M[++g]=x?Kt(l,_,f):Ho(_,l,f)}),M}),uB=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:U2;return f(s,xe(l,3))}function fB(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),H2(s,l,f))}var dB=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function hB(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,Vr)}function mB(s,l,f){var g=Ae(s)?P3:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,L2)}function pB(s,l){var f=Ae(s)?Lr:k2;return f(s,ac(xe(l,3)))}function gB(s){var l=Ae(s)?$2:lF;return l(s)}function yB(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Fj:cF;return g(s,l)}function vB(s){var l=Ae(s)?Vj:fF;return l(s)}function bB(s){if(s==null)return 0;if(Bt(s))return cc(s)?Cs(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Yh(s).length}function xB(s,l,f){var g=Ae(s)?Mh:dF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var wB=_e(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]]),H2(s,xt(l,1),[])}),sc=tj||function(){return bt.Date.now()};function SB(s,l){if(typeof l!="function")throw new fn(a);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,k,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Me(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var g=T;if(f.length){var x=jr(f,Ds(gm));g|=A}return ar(s,g,l,f,x)}),US=_e(function(s,l,f){var g=T|w;if(f.length){var x=jr(f,Ds(US));g|=A}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,P,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,M,_,D,j,Y=0,H=!1,K=!1,ae=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(H=!!f.leading,K="maxWait"in f,M=K?mt(gn(f.maxWait)||0,l):M,ae="trailing"in f?!!f.trailing:ae);function ge(ut){var En=g,dr=x;return g=x=n,Y=ut,_=s.apply(dr,En),_}function Te(ut){return Y=ut,D=Jo(Re,l),H?ge(ut):_}function Oe(ut){var En=ut-j,dr=ut-Y,fT=l-En;return K?At(fT,M-dr):fT}function Ee(ut){var En=ut-j,dr=ut-Y;return j===n||En>=l||En<0||K&&dr>=M}function Re(){var ut=sc();if(Ee(ut))return Le(ut);D=Jo(Re,Oe(ut))}function Le(ut){return D=n,ae&&g?ge(ut):(g=x=n,_)}function Qt(){D!==n&&nS(D),Y=0,g=j=x=D=n}function Dt(){return D===n?_:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,j=ut,En){if(D===n)return Te(j);if(K)return nS(D),D=Jo(Re,l),ge(j)}return D===n&&(D=Jo(Re,l)),_}return en.cancel=Qt,en.flush=Dt,en}var TB=_e(function(s,l){return N2(s,1,l)}),EB=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function CB(s){return ar(s,z)}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 PB(s){return WS(2,s)}var AB=hF(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 _e(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)})}),ym=_e(function(s,l){var f=jr(l,Ds(ym));return ar(s,A,n,l,f)}),HS=_e(function(s,l){var f=jr(l,Ds(HS));return ar(s,R,n,l,f)}),MB=lr(function(s,l){return ar(s,F,n,n,n,l)});function OB(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Me(l),_e(s,l)}function _B(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Me(l),0),_e(function(f){var g=f[l],x=Ur(f,0,l);return g&&kr(x,g),Kt(s,this,x)})}function IB(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),YS(s,l,{leading:g,maxWait:l,trailing:x})}function $B(s){return BS(s,1)}function DB(s,l){return ym(tm(l),s)}function RB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function NB(s){return hn(s,y)}function LB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function kB(s){return hn(s,m|y)}function jB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function FB(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var VB=Ql(Uh),BB=Ql(function(s,l){return s>=l}),$i=V2(function(){return arguments}())?V2:function(s){return ot(s)&&Ue.call(s,"callee")&&!P2.call(s,"callee")},Ae=W.isArray,WB=a2?Xt(a2):Xj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function UB(s){return s===!0||s===!1||ot(s)&&It(s)==ne}var zr=rj||Mm,zB=l2?Xt(l2):Zj;function GB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function YB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Rs(s)||$i(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Yh(s).length;for(var f in s)if(Ue.call(s,f))return!1;return!0}function HB(s,l){return qo(s,l)}function qB(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 vm(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 KB(s){return typeof s=="number"&&M2(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==re||l==pe||l==oe||l==xl}function qS(s){return typeof s=="number"&&s==Me(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 KS=c2?Xt(c2):Qj;function XB(s,l){return s===l||Gh(s,l,lm(l))}function ZB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function JB(s){return XS(s)&&s!=+s}function QB(s){if(LF(s))throw new Pe(o);return B2(s)}function e8(s){return s===null}function t8(s){return s==null}function XS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Nl(s);if(l===null)return!0;var f=Ue.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==Z3}var bm=u2?Xt(u2):eF;function n8(s){return qS(s)&&s>=-9007199254740991&&s<=B}var ZS=f2?Xt(f2):tF;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)==Ti}var Rs=d2?Xt(d2):nF;function r8(s){return s===n}function i8(s){return ot(s)&&Mt(s)==Nr}function s8(s){return ot(s)&&It(s)==Sl}var o8=Ql(Hh),a8=Ql(function(s,l){return s<=l});function JS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return F3(s[Vo]());var l=Mt(s),f=l==De?Rh:l==qt?Ml:Ns;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*G}return s===s?s:0}function Me(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function QS(s){return s?Mi(Me(s),0,N):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=v2(s);var f=Wk.test(s);return f||zk.test(s)?S3(s.slice(2),f?2:8):Bk.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function l8(s){return s?Mi(Me(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var c8=Is(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)Ue.call(l,f)&&Go(s,f,l[f])}),tT=Is(function(s,l){Wn(l,Wt(l),s)}),uc=Is(function(s,l,f,g){Wn(l,Wt(l),s,g)}),u8=Is(function(s,l,f,g){Wn(l,gt(l),s,g)}),f8=lr(Vh);function d8(s,l){var f=_s(s);return l==null?f:D2(f,l)}var h8=_e(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),D=-1,j=_.length;++D<j;){var Y=_[D],H=s[Y];(H===n||Tn(H,As[Y])&&!Ue.call(s,Y))&&(s[Y]=M[Y])}return s}),m8=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function p8(s,l){return m2(s,xe(l,3),Bn)}function g8(s,l){return m2(s,xe(l,3),Wh)}function y8(s,l){return s==null?s:Bh(s,xe(l,3),Wt)}function v8(s,l){return s==null?s:j2(s,xe(l,3),Wt)}function b8(s,l){return s&&Bn(s,xe(l,3))}function x8(s,l){return s&&Wh(s,xe(l,3))}function w8(s){return s==null?[]:Gl(s,gt(s))}function S8(s){return s==null?[]:Gl(s,Wt(s))}function xm(s,l,f){var g=s==null?n:Oi(s,l);return g===n?f:g}function T8(s,l){return s!=null&&wS(s,l,Yj)}function wm(s,l){return s!=null&&wS(s,l,Hj)}var E8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Tm(Ut)),C8=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),Ue.call(s,l)?s[l].push(f):s[l]=[f]},xe),P8=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):rF(s)}function A8(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function M8(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var O8=Is(function(s,l,f){Yl(s,l,f)}),nT=Is(function(s,l,f,g){Yl(s,l,f,g)}),_8=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Wr(M,s),g||(g=M.length>1),M}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,EF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function I8(s,l){return rT(s,ac(xe(l)))}var $8=lr(function(s,l){return s==null?{}:sF(s,l)});function rT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=xe(l),q2(s,f,function(g,x){return l(g,x[0])})}function D8(s,l,f){l=Wr(l,s);var g=-1,x=l.length;for(x||(x=1,s=n);++g<x;){var M=s==null?n:s[Un(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function R8(s,l,f){return s==null?s:Ko(s,l,f)}function N8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var iT=gS(gt),sT=gS(Wt);function L8(s,l,f){var g=Ae(s),x=g||zr(s)||Rs(s);if(l=xe(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?_s(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(_,D,j){return l(f,_,D,j)}),f}function k8(s,l){return s==null?!0:Jh(s,l)}function j8(s,l,f){return s==null?s:Q2(s,l,tm(f))}function F8(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Q2(s,l,tm(f),g)}function Ns(s){return s==null?[]:Dh(s,gt(s))}function V8(s){return s==null?[]:Dh(s,Wt(s))}function B8(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),Mi(gn(s),l,f)}function W8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),qj(s,l,f)}function U8(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=O2();return At(s+x*(l-s+w3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var z8=$s(function(s,l,f){return l=l.toLowerCase(),s+(f?oT(l):l)});function oT(s){return Sm(Be(s).toLowerCase())}function aT(s){return s=Be(s),s&&s.replace(Yk,R3).replace(f3,"")}function G8(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:Mi(Me(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function Y8(s){return s=Be(s),s&&Pk.test(s)?s.replace(jw,N3):s}function H8(s){return s=Be(s),s&&$k.test(s)?s.replace(yh,"\\$&"):s}var q8=$s(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),K8=$s(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),X8=uS("toLowerCase");function Z8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function J8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;return l&&g<l?s+Jl(l-g,f):s}function Q8(s,l,f){s=Be(s),l=Me(l);var g=l?Cs(s):0;return l&&g<l?Jl(l-g,f)+s:s}function e9(s,l,f){return f||l==null?l=0:l&&(l=+l),aj(Be(s).replace(vh,""),l||0)}function t9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function n9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var r9=$s(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function i9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?N:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Es(s))?Ur(wn(s),0,f):s.split(l,f)):[]}var s9=$s(function(s,l,f){return s+(f?" ":"")+Sm(l)});function o9(s,l,f){return s=Be(s),f=f==null?0:Mi(Me(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function a9(s,l,f){var g=E.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),M=gt(x),_=Dh(x,M),D,j,Y=0,H=l.interpolate||Tl,K="__p += '",ae=Nh((l.escape||Tl).source+"|"+H.source+"|"+(H===Fw?Vk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ge="//# sourceURL="+(Ue.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++g3+"]")+`
635
- `;s.replace(ae,function(Ee,Re,Le,Qt,Dt,en){return Le||(Le=Qt),K+=s.slice(Y,en).replace(Hk,L3),Re&&(D=!0,K+=`' +
634
+ `)}function NF(s){return Ae(s)||Ri(s)||!!(A2&&s&&s[A2])}function cr(s,l){var f=typeof s;return l=l??B,!!l&&(f=="number"||f!="symbol"&&Hk.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 um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:$k.test(s)||!Ik.test(s)||l!=null&&s in Ge(l)}function LF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=ec(s),f=C[l];if(typeof f!="function"||!(l in Ne.prototype))return!1;if(s===f)return!0;var g=am(f);return!!g&&s===g[0]}function kF(s){return!!T2&&T2 in s}var jF=_l?ur:Mm;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Ms;return s===f}function TS(s){return s===s&&!st(s)}function ES(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function FF(s){var l=oc(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function VF(s,l){var f=s[1],g=l[1],x=f|g,M=x<(T|w|k),I=g==k&&f==P||g==k&&f==F&&s[7].length<=l[8]||g==(k|F)&&l[7].length<=l[8]&&f==P;if(!(M||I))return s;g&T&&(s[2]=l[2],x|=f&T?0:E);var R=l[3];if(R){var j=s[3];s[3]=j?oS(j,R,l[4]):R,s[4]=j?Gr(s[3],h):l[4]}return R=l[5],R&&(j=s[5],s[5]=j?aS(j,R,l[6]):R,s[6]=j?Gr(s[5],h):l[6]),R=l[7],R&&(s[7]=R),g&k&&(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 BF(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function WF(s){return $l.call(s)}function CS(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 R=W(l+1);++x<l;)R[x]=g[x];return R[l]=f(I),Kt(s,this,R)}}function PS(s,l){return l.length<2?s:Ii(s,mn(l,0,-1))}function UF(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 dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var AS=OS(X2),Jo=ij||function(s,l){return bt.setTimeout(s,l)},hm=OS(dF);function MS(s,l,f){var g=l+"";return hm(s,RF(g,zF(IF(g),f)))}function OS(s){var l=0,f=0;return function(){var g=lj(),x=ye-(g-f);if(f=g,x>0){if(++l>=le)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=Kh(f,x),I=s[M];s[M]=s[f],s[f]=I}return s.length=l,s}var _S=FF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Dk,function(f,g,x,M){l.push(x?M.replace(Bk,"$1"):g||f)}),l});function Un(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Di(s){if(s!=null){try{return Il.call(s)}catch{}try{return s+""}catch{}}return""}function zF(s,l){return un(Z,function(f){var g="_."+f[0];l&f[1]&&!Pl(s,g)&&s.push(g)}),s.sort()}function IS(s){if(s instanceof Ne)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 GF(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Me(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 YF(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 HF(){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 qF=_e(function(s,l){return ct(s)?Yo(s,xt(l,1,ct,!0)):[]}),KF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),xe(f,2)):[]}),XF=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,xt(l,1,ct,!0),n,f):[]});function ZF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),mn(s,l<0?0:l,g)):[]}function JF(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,0,l<0?0:l)):[]}function QF(s,l){return s&&s.length?ql(s,xe(l,3),!0,!0):[]}function eV(s,l){return s&&s.length?ql(s,xe(l,3),!0):[]}function tV(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),Hj(s,l,f,g)):[]}function $S(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Al(s,xe(l,3),x)}function DS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g-1;return f!==n&&(x=Me(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 nV(s){var l=s==null?0:s.length;return l?xt(s,V):[]}function rV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Me(l),xt(s,l)):[]}function iV(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 NS(s){return s&&s.length?s[0]:n}function sV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=f==null?0:Me(f);return x<0&&(x=mt(g+x,0)),Es(s,l,x)}function oV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var aV=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),lV=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,xe(l,2)):[]}),cV=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function uV(s,l){return s==null?"":oj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function fV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var x=g;return f!==n&&(x=Me(f),x=x<0?mt(g+x,0):At(x,g-1)),l===l?z3(s,l,x):Al(s,p2,x,!0)}function dV(s,l){return s&&s.length?Y2(s,Me(l)):n}var hV=_e(LS);function LS(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function mV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function pV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var gV=lr(function(s,l){var f=s==null?0:s.length,g=Vh(s,l);return K2(s,et(l,function(x){return cr(x,f)?+x:x}).sort(sS)),g});function yV(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 K2(s,x),f}function mm(s){return s==null?s:uj.call(s)}function vV(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:Me(l),f=f===n?g:Me(f)),mn(s,l,f)):[]}function bV(s,l){return Hl(s,l)}function xV(s,l,f){return Zh(s,l,xe(f,2))}function wV(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 SV(s,l){return Hl(s,l,!0)}function TV(s,l,f){return Zh(s,l,xe(f,2),!0)}function EV(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 CV(s){return s&&s.length?Z2(s):[]}function PV(s,l){return s&&s.length?Z2(s,xe(l,2)):[]}function AV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function MV(s,l,f){return s&&s.length?(l=f||l===n?1:Me(l),mn(s,0,l<0?0:l)):[]}function OV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Me(l),l=g-l,mn(s,l<0?0:l,g)):[]}function _V(s,l){return s&&s.length?ql(s,xe(l,3),!1,!0):[]}function IV(s,l){return s&&s.length?ql(s,xe(l,3)):[]}var $V=_e(function(s){return qr(xt(s,1,ct,!0))}),DV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),qr(xt(s,1,ct,!0),xe(l,2))}),RV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(xt(s,1,ct,!0),n,l)});function NV(s){return s&&s.length?qr(s):[]}function LV(s,l){return s&&s.length?qr(s,xe(l,2)):[]}function kV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function pm(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}),$h(l,function(f){return et(s,Oh(f))})}function kS(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var jV=_e(function(s,l){return ct(s)?Yo(s,l):[]}),FV=_e(function(s){return Qh(Ur(s,ct))}),VV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Ur(s,ct),xe(l,2))}),BV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Ur(s,ct),n,l)}),WV=_e(pm);function UV(s,l){return tS(s||[],l||[],Go)}function zV(s,l){return tS(s||[],l||[],Ko)}var GV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,kS(s,f)});function jS(s){var l=C(s);return l.__chain__=!0,l}function YV(s,l){return l(s),s}function rc(s,l){return l(s)}var HV=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,x=function(M){return Vh(M,s)};return l>1||this.__actions__.length||!(g instanceof Ne)||!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 qV(){return jS(this)}function KV(){return new dn(this.value(),this.__chain__)}function XV(){this.__values__===n&&(this.__values__=JS(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function ZV(){return this}function JV(s){for(var l,f=this;f instanceof Wl;){var g=IS(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 QV(){var s=this.__wrapped__;if(s instanceof Ne){var l=s;return this.__actions__.length&&(l=new Ne(this)),l=l.reverse(),l.__actions__.push({func:rc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function e8(){return eS(this.__wrapped__,this.__actions__)}var t8=Kl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function n8(s,l,f){var g=Ae(s)?h2:Yj;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}function r8(s,l){var f=Ae(s)?Ur:k2;return f(s,xe(l,3))}var i8=fS($S),s8=fS(DS);function o8(s,l){return xt(ic(s,l),1)}function a8(s,l){return xt(ic(s,l),V)}function l8(s,l,f){return f=f===n?1:Me(f),xt(ic(s,l),f)}function FS(s,l){var f=Ae(s)?un:Hr;return f(s,xe(l,3))}function VS(s,l){var f=Ae(s)?A3:L2;return f(s,xe(l,3))}var c8=Kl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function u8(s,l,f,g){s=Bt(s)?s:Ls(s),f=f&&!g?Me(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),cc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&Es(s,l,f)>-1}var f8=_e(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}),d8=Kl(function(s,l,f){or(s,f,l)});function ic(s,l){var f=Ae(s)?et:U2;return f(s,xe(l,3))}function h8(s,l,f,g){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=g?n:f,Ae(f)||(f=f==null?[]:[f]),H2(s,l,f))}var m8=Kl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function p8(s,l,f){var g=Ae(s)?Ah:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,Hr)}function g8(s,l,f){var g=Ae(s)?M3:y2,x=arguments.length<3;return g(s,xe(l,4),f,x,L2)}function y8(s,l){var f=Ae(s)?Ur:k2;return f(s,ac(xe(l,3)))}function v8(s){var l=Ae(s)?$2:uF;return l(s)}function b8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Me(l);var g=Ae(s)?Bj:fF;return g(s,l)}function x8(s){var l=Ae(s)?Wj:hF;return l(s)}function w8(s){if(s==null)return 0;if(Bt(s))return cc(s)?Ps(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Yh(s).length}function S8(s,l,f){var g=Ae(s)?Mh:mF;return f&&$t(s,l,f)&&(l=n),g(s,xe(l,3))}var T8=_e(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]]),H2(s,xt(l,1),[])}),sc=rj||function(){return bt.Date.now()};function E8(s,l){if(typeof l!="function")throw new fn(a);return s=Me(s),function(){if(--s<1)return l.apply(this,arguments)}}function BS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,k,n,n,n,n,l)}function WS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Me(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var g=T;if(f.length){var x=Gr(f,Rs(gm));g|=A}return ar(s,g,l,f,x)}),US=_e(function(s,l,f){var g=T|w;if(f.length){var x=Gr(f,Rs(US));g|=A}return ar(l,g,s,f,x)});function zS(s,l,f){l=f?n:l;var g=ar(s,P,n,n,n,n,n,l);return g.placeholder=zS.placeholder,g}function GS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=GS.placeholder,g}function YS(s,l,f){var g,x,M,I,R,j,Y=0,H=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(H=!!f.leading,X="maxWait"in f,M=X?mt(gn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ge(ut){var En=g,dr=x;return g=x=n,Y=ut,I=s.apply(dr,En),I}function Te(ut){return Y=ut,R=Jo(Re,l),H?ge(ut):I}function Oe(ut){var En=ut-j,dr=ut-Y,fT=l-En;return X?At(fT,M-dr):fT}function Ee(ut){var En=ut-j,dr=ut-Y;return j===n||En>=l||En<0||X&&dr>=M}function Re(){var ut=sc();if(Ee(ut))return Le(ut);R=Jo(Re,Oe(ut))}function Le(ut){return R=n,ce&&g?ge(ut):(g=x=n,I)}function Qt(){R!==n&&nS(R),Y=0,g=j=x=R=n}function Dt(){return R===n?I:Le(sc())}function en(){var ut=sc(),En=Ee(ut);if(g=arguments,x=this,j=ut,En){if(R===n)return Te(j);if(X)return nS(R),R=Jo(Re,l),ge(j)}return R===n&&(R=Jo(Re,l)),I}return en.cancel=Qt,en.flush=Dt,en}var C8=_e(function(s,l){return N2(s,1,l)}),P8=_e(function(s,l,f){return N2(s,gn(l)||0,f)});function A8(s){return ar(s,z)}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 M8(s){return WS(2,s)}var O8=pF(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 _e(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)})}),ym=_e(function(s,l){var f=Gr(l,Rs(ym));return ar(s,A,n,l,f)}),HS=_e(function(s,l){var f=Gr(l,Rs(HS));return ar(s,D,n,l,f)}),_8=lr(function(s,l){return ar(s,F,n,n,n,l)});function I8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Me(l),_e(s,l)}function $8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Me(l),0),_e(function(f){var g=f[l],x=Xr(f,0,l);return g&&zr(x,g),Kt(s,this,x)})}function D8(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),YS(s,l,{leading:g,maxWait:l,trailing:x})}function R8(s){return BS(s,1)}function N8(s,l){return ym(tm(l),s)}function L8(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function k8(s){return hn(s,y)}function j8(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function F8(s){return hn(s,m|y)}function V8(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function B8(s,l){return l==null||R2(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var W8=Ql(Uh),U8=Ql(function(s,l){return s>=l}),Ri=V2(function(){return arguments}())?V2:function(s){return ot(s)&&ze.call(s,"callee")&&!P2.call(s,"callee")},Ae=W.isArray,z8=a2?Xt(a2):Jj;function Bt(s){return s!=null&&lc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function G8(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=sj||Mm,Y8=l2?Xt(l2):Qj;function H8(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function q8(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Ns(s)||Ri(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Yh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function K8(s,l){return qo(s,l)}function X8(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 vm(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 Z8(s){return typeof s=="number"&&M2(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==ae||l==xl}function qS(s){return typeof s=="number"&&s==Me(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 KS=c2?Xt(c2):tF;function J8(s,l){return s===l||Gh(s,l,lm(l))}function Q8(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function eB(s){return XS(s)&&s!=+s}function tB(s){if(jF(s))throw new Pe(o);return B2(s)}function nB(s){return s===null}function rB(s){return s==null}function XS(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Nl(s);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==Q3}var bm=u2?Xt(u2):nF;function iB(s){return qS(s)&&s>=-9007199254740991&&s<=B}var ZS=f2?Xt(f2):rF;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)==Ci}var Ns=d2?Xt(d2):iF;function sB(s){return s===n}function oB(s){return ot(s)&&Mt(s)==Wr}function aB(s){return ot(s)&&It(s)==Sl}var lB=Ql(Hh),cB=Ql(function(s,l){return s<=l});function JS(s){if(!s)return[];if(Bt(s))return cc(s)?wn(s):Vt(s);if(Vo&&s[Vo])return B3(s[Vo]());var l=Mt(s),f=l==De?Rh:l==qt?Ml:Ls;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*G}return s===s?s:0}function Me(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function QS(s){return s?_i(Me(s),0,N):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=v2(s);var f=zk.test(s);return f||Yk.test(s)?E3(s.slice(2),f?2:8):Uk.test(s)?O:+s}function eT(s){return Wn(s,Wt(s))}function uB(s){return s?_i(Me(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var fB=$s(function(s,l){if(Zo(l)||Bt(l)){Wn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),tT=$s(function(s,l){Wn(l,Wt(l),s)}),uc=$s(function(s,l,f,g){Wn(l,Wt(l),s,g)}),dB=$s(function(s,l,f,g){Wn(l,gt(l),s,g)}),hB=lr(Vh);function mB(s,l){var f=Is(s);return l==null?f:D2(f,l)}var pB=_e(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),R=-1,j=I.length;++R<j;){var Y=I[R],H=s[Y];(H===n||Tn(H,Ms[Y])&&!ze.call(s,Y))&&(s[Y]=M[Y])}return s}),gB=_e(function(s){return s.push(n,vS),Kt(nT,n,s)});function yB(s,l){return m2(s,xe(l,3),Bn)}function vB(s,l){return m2(s,xe(l,3),Wh)}function bB(s,l){return s==null?s:Bh(s,xe(l,3),Wt)}function xB(s,l){return s==null?s:j2(s,xe(l,3),Wt)}function wB(s,l){return s&&Bn(s,xe(l,3))}function SB(s,l){return s&&Wh(s,xe(l,3))}function TB(s){return s==null?[]:Gl(s,gt(s))}function EB(s){return s==null?[]:Gl(s,Wt(s))}function xm(s,l,f){var g=s==null?n:Ii(s,l);return g===n?f:g}function CB(s,l){return s!=null&&wS(s,l,qj)}function wm(s,l){return s!=null&&wS(s,l,Kj)}var PB=hS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),s[l]=f},Tm(Ut)),AB=hS(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),MB=_e(Ho);function gt(s){return Bt(s)?I2(s):Yh(s)}function Wt(s){return Bt(s)?I2(s,!0):sF(s)}function OB(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,l(g,x,M),g)}),f}function _B(s,l){var f={};return l=xe(l,3),Bn(s,function(g,x,M){or(f,x,l(g,x,M))}),f}var IB=$s(function(s,l,f){Yl(s,l,f)}),nT=$s(function(s,l,f,g){Yl(s,l,f,g)}),$B=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}),Wn(s,om(s),f),g&&(f=hn(f,m|p|y,PF));for(var x=l.length;x--;)Jh(f,l[x]);return f});function DB(s,l){return rT(s,ac(xe(l)))}var RB=lr(function(s,l){return s==null?{}:aF(s,l)});function rT(s,l){if(s==null)return{};var f=et(om(s),function(g){return[g]});return l=xe(l),q2(s,f,function(g,x){return l(g,x[0])})}function NB(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[Un(l[g])];M===n&&(g=x,M=f),s=ur(M)?M.call(s):M}return s}function LB(s,l,f){return s==null?s:Ko(s,l,f)}function kB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var iT=gS(gt),sT=gS(Wt);function jB(s,l,f){var g=Ae(s),x=g||Zr(s)||Ns(s);if(l=xe(l,4),f==null){var M=s&&s.constructor;x?f=g?new M:[]:st(s)?f=ur(M)?Is(Nl(s)):{}:f={}}return(x?un:Bn)(s,function(I,R,j){return l(f,I,R,j)}),f}function FB(s,l){return s==null?!0:Jh(s,l)}function VB(s,l,f){return s==null?s:Q2(s,l,tm(f))}function BB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Q2(s,l,tm(f),g)}function Ls(s){return s==null?[]:Dh(s,gt(s))}function WB(s){return s==null?[]:Dh(s,Wt(s))}function UB(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),_i(gn(s),l,f)}function zB(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),Xj(s,l,f)}function GB(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=O2();return At(s+x*(l-s+T3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var YB=Ds(function(s,l,f){return l=l.toLowerCase(),s+(f?oT(l):l)});function oT(s){return Sm(Be(s).toLowerCase())}function aT(s){return s=Be(s),s&&s.replace(qk,L3).replace(h3,"")}function HB(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:_i(Me(f),0,g);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function qB(s){return s=Be(s),s&&Mk.test(s)?s.replace(jw,k3):s}function KB(s){return s=Be(s),s&&Rk.test(s)?s.replace(yh,"\\$&"):s}var XB=Ds(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),ZB=Ds(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),JB=uS("toLowerCase");function QB(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;if(!l||g>=l)return s;var x=(l-g)/2;return Jl(Fl(x),f)+s+Jl(jl(x),f)}function e9(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;return l&&g<l?s+Jl(l-g,f):s}function t9(s,l,f){s=Be(s),l=Me(l);var g=l?Ps(s):0;return l&&g<l?Jl(l-g,f)+s:s}function n9(s,l,f){return f||l==null?l=0:l&&(l=+l),cj(Be(s).replace(vh,""),l||0)}function r9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Me(l),Xh(Be(s),l)}function i9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var s9=Ds(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function o9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?N:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Cs(s))?Xr(wn(s),0,f):s.split(l,f)):[]}var a9=Ds(function(s,l,f){return s+(f?" ":"")+Sm(l)});function l9(s,l,f){return s=Be(s),f=f==null?0:_i(Me(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function c9(s,l,f){var g=C.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=uc({},l,g,yS);var x=uc({},l.imports,g.imports,yS),M=gt(x),I=Dh(x,M),R,j,Y=0,H=l.interpolate||Tl,X="__p += '",ce=Nh((l.escape||Tl).source+"|"+H.source+"|"+(H===Fw?Wk:Tl).source+"|"+(l.evaluate||Tl).source+"|$","g"),ge="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++v3+"]")+`
635
+ `;s.replace(ce,function(Ee,Re,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(Y,en).replace(Kk,j3),Re&&(R=!0,X+=`' +
636
636
  __e(`+Re+`) +
637
- '`),Dt&&(j=!0,K+=`';
637
+ '`),Dt&&(j=!0,X+=`';
638
638
  `+Dt+`;
639
- __p += '`),Le&&(K+=`' +
639
+ __p += '`),Le&&(X+=`' +
640
640
  ((__t = (`+Le+`)) == null ? '' : __t) +
641
- '`),Y=en+Ee.length,Ee}),K+=`';
642
- `;var Te=Ue.call(l,"variable")&&l.variable;if(!Te)K=`with (obj) {
643
- `+K+`
641
+ '`),Y=en+Ee.length,Ee}),X+=`';
642
+ `;var Te=ze.call(l,"variable")&&l.variable;if(!Te)X=`with (obj) {
643
+ `+X+`
644
644
  }
645
- `;else if(jk.test(Te))throw new Pe(c);K=(j?K.replace(Sk,""):K).replace(Tk,"$1").replace(Ek,"$1;"),K="function("+(Te||"obj")+`) {
645
+ `;else if(Vk.test(Te))throw new Pe(c);X=(j?X.replace(Ek,""):X).replace(Ck,"$1").replace(Pk,"$1;"),X="function("+(Te||"obj")+`) {
646
646
  `+(Te?"":`obj || (obj = {});
647
- `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
647
+ `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
- `)+K+`return __p
651
- }`;var Oe=cT(function(){return ke(M,ge+"return "+K).apply(n,_)});if(Oe.source=K,vm(Oe))throw Oe;return Oe}function l9(s){return Be(s).toLowerCase()}function c9(s){return Be(s).toUpperCase()}function u9(s,l,f){if(s=Be(s),s&&(f||l===n))return v2(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=b2(g,x),_=x2(g,x)+1;return Ur(g,M,_).join("")}function f9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,S2(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=x2(g,wn(l))+1;return Ur(g,0,x).join("")}function d9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=b2(g,wn(l));return Ur(g,x).join("")}function h9(s,l){var f=Q,g=te;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Me(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(Es(s)){var _=wn(s);M=_.length}if(f>=M)return s;var D=f-Cs(g);if(D<1)return g;var j=_?Ur(_,0,D).join(""):s.slice(0,D);if(x===n)return j+g;if(_&&(D+=j.length-D),bm(x)){if(s.slice(D).search(x)){var Y,H=j;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var K=Y.index;j=j.slice(0,K===n?D:K)}}else if(s.indexOf(Zt(x),D)!=D){var ae=j.lastIndexOf(x);ae>-1&&(j=j.slice(0,ae))}return j+g}function m9(s){return s=Be(s),s&&Ck.test(s)?s.replace(kw,U3):s}var p9=$s(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=uS("toUpperCase");function lT(s,l,f){return s=Be(s),l=f?n:l,l===n?j3(s)?Y3(s):O3(s):s.match(l)||[]}var cT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),g9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function y9(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]]}):[],_e(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 v9(s){return Uj(hn(s,m))}function Tm(s){return function(){return s}}function b9(s,l){return s==null||s!==s?l:s}var x9=dS(),w9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function S9(s){return z2(hn(s,m))}function T9(s,l){return G2(s,hn(l,m))}var E9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),C9=_e(function(s,l){return function(f){return Ho(s,f,l)}});function Cm(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(D){var j=l[D];s[D]=j,_&&(s.prototype[D]=function(){var Y=this.__chain__;if(M||Y){var H=s(this.__wrapped__),K=H.__actions__=Vt(this.__actions__);return K.push({func:j,args:arguments,thisArg:s}),H.__chain__=Y,H}return j.apply(s,kr([this.value()],arguments))})}),s}function P9(){return bt._===this&&(bt._=J3),this}function Pm(){}function A9(s){return s=Me(s),_e(function(l){return Y2(l,s)})}var M9=rm(et),O9=rm(h2),_9=rm(Mh);function uT(s){return um(s)?Oh(Un(s)):oF(s)}function I9(s){return function(l){return s==null?n:Oi(s,l)}}var $9=mS(),D9=mS(!0);function Am(){return[]}function Mm(){return!1}function R9(){return{}}function N9(){return""}function L9(){return!0}function k9(s,l){if(s=Me(s),s<1||s>B)return[];var f=N,g=At(s,N);l=xe(l),s-=N;for(var x=$h(g,l);++f<s;)l(f);return x}function j9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function F9(s){var l=++X3;return Be(s)+l}var V9=Zl(function(s,l){return s+l},0),B9=im("ceil"),W9=Zl(function(s,l){return s/l},1),U9=im("floor");function z9(s){return s&&s.length?zl(s,Ut,Uh):n}function G9(s,l){return s&&s.length?zl(s,xe(l,2),Uh):n}function Y9(s){return g2(s,Ut)}function H9(s,l){return g2(s,xe(l,2))}function q9(s){return s&&s.length?zl(s,Ut,Hh):n}function K9(s,l){return s&&s.length?zl(s,xe(l,2),Hh):n}var X9=Zl(function(s,l){return s*l},1),Z9=im("round"),J9=Zl(function(s,l){return s-l},0);function Q9(s){return s&&s.length?Ih(s,Ut):0}function e7(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return E.after=SB,E.ary=BS,E.assign=c8,E.assignIn=tT,E.assignInWith=uc,E.assignWith=u8,E.at=f8,E.before=WS,E.bind=gm,E.bindAll=g9,E.bindKey=US,E.castArray=RB,E.chain=jS,E.chunk=UF,E.compact=zF,E.concat=GF,E.cond=y9,E.conforms=v9,E.constant=Tm,E.countBy=QV,E.create=d8,E.curry=zS,E.curryRight=GS,E.debounce=YS,E.defaults=h8,E.defaultsDeep=m8,E.defer=TB,E.delay=EB,E.difference=YF,E.differenceBy=HF,E.differenceWith=qF,E.drop=KF,E.dropRight=XF,E.dropRightWhile=ZF,E.dropWhile=JF,E.fill=QF,E.filter=tB,E.flatMap=iB,E.flatMapDeep=sB,E.flatMapDepth=oB,E.flatten=RS,E.flattenDeep=eV,E.flattenDepth=tV,E.flip=CB,E.flow=x9,E.flowRight=w9,E.fromPairs=nV,E.functions=w8,E.functionsIn=S8,E.groupBy=aB,E.initial=iV,E.intersection=sV,E.intersectionBy=oV,E.intersectionWith=aV,E.invert=E8,E.invertBy=C8,E.invokeMap=cB,E.iteratee=Em,E.keyBy=uB,E.keys=gt,E.keysIn=Wt,E.map=ic,E.mapKeys=A8,E.mapValues=M8,E.matches=S9,E.matchesProperty=T9,E.memoize=oc,E.merge=O8,E.mergeWith=nT,E.method=E9,E.methodOf=C9,E.mixin=Cm,E.negate=ac,E.nthArg=A9,E.omit=_8,E.omitBy=I8,E.once=PB,E.orderBy=fB,E.over=M9,E.overArgs=AB,E.overEvery=O9,E.overSome=_9,E.partial=ym,E.partialRight=HS,E.partition=dB,E.pick=$8,E.pickBy=rT,E.property=uT,E.propertyOf=I9,E.pull=fV,E.pullAll=LS,E.pullAllBy=dV,E.pullAllWith=hV,E.pullAt=mV,E.range=$9,E.rangeRight=D9,E.rearg=MB,E.reject=pB,E.remove=pV,E.rest=OB,E.reverse=mm,E.sampleSize=yB,E.set=R8,E.setWith=N8,E.shuffle=vB,E.slice=gV,E.sortBy=wB,E.sortedUniq=TV,E.sortedUniqBy=EV,E.split=i9,E.spread=_B,E.tail=CV,E.take=PV,E.takeRight=AV,E.takeRightWhile=MV,E.takeWhile=OV,E.tap=zV,E.throttle=IB,E.thru=rc,E.toArray=JS,E.toPairs=iT,E.toPairsIn=sT,E.toPath=j9,E.toPlainObject=eT,E.transform=L8,E.unary=$B,E.union=_V,E.unionBy=IV,E.unionWith=$V,E.uniq=DV,E.uniqBy=RV,E.uniqWith=NV,E.unset=k8,E.unzip=pm,E.unzipWith=kS,E.update=j8,E.updateWith=F8,E.values=Ns,E.valuesIn=V8,E.without=LV,E.words=lT,E.wrap=DB,E.xor=kV,E.xorBy=jV,E.xorWith=FV,E.zip=VV,E.zipObject=BV,E.zipObjectDeep=WV,E.zipWith=UV,E.entries=iT,E.entriesIn=sT,E.extend=tT,E.extendWith=uc,Cm(E,E),E.add=V9,E.attempt=cT,E.camelCase=z8,E.capitalize=oT,E.ceil=B9,E.clamp=B8,E.clone=NB,E.cloneDeep=kB,E.cloneDeepWith=jB,E.cloneWith=LB,E.conformsTo=FB,E.deburr=aT,E.defaultTo=b9,E.divide=W9,E.endsWith=G8,E.eq=Tn,E.escape=Y8,E.escapeRegExp=H8,E.every=eB,E.find=nB,E.findIndex=$S,E.findKey=p8,E.findLast=rB,E.findLastIndex=DS,E.findLastKey=g8,E.floor=U9,E.forEach=FS,E.forEachRight=VS,E.forIn=y8,E.forInRight=v8,E.forOwn=b8,E.forOwnRight=x8,E.get=xm,E.gt=VB,E.gte=BB,E.has=T8,E.hasIn=wm,E.head=NS,E.identity=Ut,E.includes=lB,E.indexOf=rV,E.inRange=W8,E.invoke=P8,E.isArguments=$i,E.isArray=Ae,E.isArrayBuffer=WB,E.isArrayLike=Bt,E.isArrayLikeObject=ct,E.isBoolean=UB,E.isBuffer=zr,E.isDate=zB,E.isElement=GB,E.isEmpty=YB,E.isEqual=HB,E.isEqualWith=qB,E.isError=vm,E.isFinite=KB,E.isFunction=ur,E.isInteger=qS,E.isLength=lc,E.isMap=KS,E.isMatch=XB,E.isMatchWith=ZB,E.isNaN=JB,E.isNative=QB,E.isNil=t8,E.isNull=e8,E.isNumber=XS,E.isObject=st,E.isObjectLike=ot,E.isPlainObject=Qo,E.isRegExp=bm,E.isSafeInteger=n8,E.isSet=ZS,E.isString=cc,E.isSymbol=Jt,E.isTypedArray=Rs,E.isUndefined=r8,E.isWeakMap=i8,E.isWeakSet=s8,E.join=lV,E.kebabCase=q8,E.last=pn,E.lastIndexOf=cV,E.lowerCase=K8,E.lowerFirst=X8,E.lt=o8,E.lte=a8,E.max=z9,E.maxBy=G9,E.mean=Y9,E.meanBy=H9,E.min=q9,E.minBy=K9,E.stubArray=Am,E.stubFalse=Mm,E.stubObject=R9,E.stubString=N9,E.stubTrue=L9,E.multiply=X9,E.nth=uV,E.noConflict=P9,E.noop=Pm,E.now=sc,E.pad=Z8,E.padEnd=J8,E.padStart=Q8,E.parseInt=e9,E.random=U8,E.reduce=hB,E.reduceRight=mB,E.repeat=t9,E.replace=n9,E.result=D8,E.round=Z9,E.runInContext=L,E.sample=gB,E.size=bB,E.snakeCase=r9,E.some=xB,E.sortedIndex=yV,E.sortedIndexBy=vV,E.sortedIndexOf=bV,E.sortedLastIndex=xV,E.sortedLastIndexBy=wV,E.sortedLastIndexOf=SV,E.startCase=s9,E.startsWith=o9,E.subtract=J9,E.sum=Q9,E.sumBy=e7,E.template=a9,E.times=k9,E.toFinite=fr,E.toInteger=Me,E.toLength=QS,E.toLower=l9,E.toNumber=gn,E.toSafeInteger=l8,E.toString=Be,E.toUpper=c9,E.trim=u9,E.trimEnd=f9,E.trimStart=d9,E.truncate=h9,E.unescape=m9,E.uniqueId=F9,E.upperCase=p9,E.upperFirst=Sm,E.each=FS,E.eachRight=VS,E.first=NS,Cm(E,function(){var s={};return Bn(E,function(l,f){Ue.call(E.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),E.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){E[s].placeholder=E}),un(["drop","take"],function(s,l){Ne.prototype[s]=function(f){f=f===n?1:mt(Me(f),0);var g=this.__filtered__&&!l?new Ne(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,N),type:s+(g.__dir__<0?"Right":"")}),g},Ne.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==de||f==he;Ne.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":"");Ne.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[f](1)}}),Ne.prototype.compact=function(){return this.filter(Ut)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Ne(this):this.map(function(f){return Ho(f,s,l)})}),Ne.prototype.reject=function(s){return this.filter(ac(xe(s)))},Ne.prototype.slice=function(s,l){s=Me(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Ne(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Me(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(N)},Bn(Ne.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),x=E[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);x&&(E.prototype[l]=function(){var _=this.__wrapped__,D=g?[1]:arguments,j=_ instanceof Ne,Y=D[0],H=j||Ae(_),K=function(Re){var Le=x.apply(E,kr([Re],D));return g&&ae?Le[0]:Le};H&&f&&typeof Y=="function"&&Y.length!=1&&(j=H=!1);var ae=this.__chain__,ge=!!this.__actions__.length,Te=M&&!ae,Oe=j&&!ge;if(!M&&H){_=Oe?_:new Ne(this);var Ee=s.apply(_,D);return Ee.__actions__.push({func:rc,args:[K],thisArg:n}),new dn(Ee,ae)}return Te&&Oe?s.apply(this,D):(Ee=this.thru(K),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);E.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)})}}),Bn(Ne.prototype,function(s,l){var f=E[l];if(f){var g=f.name+"";Ue.call(Os,g)||(Os[g]=[]),Os[g].push({name:l,func:f})}}),Os[Xl(n,w).name]=[{name:"wrapper",func:n}],Ne.prototype.clone=mj,Ne.prototype.reverse=pj,Ne.prototype.value=gj,E.prototype.at=GV,E.prototype.chain=YV,E.prototype.commit=HV,E.prototype.next=qV,E.prototype.plant=XV,E.prototype.reverse=ZV,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=JV,E.prototype.first=E.prototype.head,Vo&&(E.prototype[Vo]=KV),E},Ps=H3();Ei?((Ei.exports=Ps)._=Ps,Eh._=Ps):bt._=Ps}).call(f$)}(fo,fo.exports)),fo.exports}var yf=d$();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",Ev=xf?I.useLayoutEffect:I.useEffect,ka=I.createContext(null),wf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class h$ extends Z.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 m$({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(`
650
+ `)+X+`return __p
651
+ }`;var Oe=cT(function(){return ke(M,ge+"return "+X).apply(n,I)});if(Oe.source=X,vm(Oe))throw Oe;return Oe}function u9(s){return Be(s).toLowerCase()}function f9(s){return Be(s).toUpperCase()}function d9(s,l,f){if(s=Be(s),s&&(f||l===n))return v2(s);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=wn(l),M=b2(g,x),I=x2(g,x)+1;return Xr(g,M,I).join("")}function h9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,S2(s)+1);if(!s||!(l=Zt(l)))return s;var g=wn(s),x=x2(g,wn(l))+1;return Xr(g,0,x).join("")}function m9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var g=wn(s),x=b2(g,wn(l));return Xr(g,x).join("")}function p9(s,l){var f=J,g=ne;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Me(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(Cs(s)){var I=wn(s);M=I.length}if(f>=M)return s;var R=f-Ps(g);if(R<1)return g;var j=I?Xr(I,0,R).join(""):s.slice(0,R);if(x===n)return j+g;if(I&&(R+=j.length-R),bm(x)){if(s.slice(R).search(x)){var Y,H=j;for(x.global||(x=Nh(x.source,Be(Vw.exec(x))+"g")),x.lastIndex=0;Y=x.exec(H);)var X=Y.index;j=j.slice(0,X===n?R:X)}}else if(s.indexOf(Zt(x),R)!=R){var ce=j.lastIndexOf(x);ce>-1&&(j=j.slice(0,ce))}return j+g}function g9(s){return s=Be(s),s&&Ak.test(s)?s.replace(kw,G3):s}var y9=Ds(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=uS("toUpperCase");function lT(s,l,f){return s=Be(s),l=f?n:l,l===n?V3(s)?q3(s):I3(s):s.match(l)||[]}var cT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),v9=lr(function(s,l){return un(l,function(f){f=Un(f),or(s,f,gm(s[f],s))}),s});function b9(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]]}):[],_e(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 x9(s){return Gj(hn(s,m))}function Tm(s){return function(){return s}}function w9(s,l){return s==null||s!==s?l:s}var S9=dS(),T9=dS(!0);function Ut(s){return s}function Em(s){return W2(typeof s=="function"?s:hn(s,m))}function E9(s){return z2(hn(s,m))}function C9(s,l){return G2(s,hn(l,m))}var P9=_e(function(s,l){return function(f){return Ho(f,s,l)}}),A9=_e(function(s,l){return function(f){return Ho(s,f,l)}});function Cm(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(R){var j=l[R];s[R]=j,I&&(s.prototype[R]=function(){var Y=this.__chain__;if(M||Y){var H=s(this.__wrapped__),X=H.__actions__=Vt(this.__actions__);return X.push({func:j,args:arguments,thisArg:s}),H.__chain__=Y,H}return j.apply(s,zr([this.value()],arguments))})}),s}function M9(){return bt._===this&&(bt._=ej),this}function Pm(){}function O9(s){return s=Me(s),_e(function(l){return Y2(l,s)})}var _9=rm(et),I9=rm(h2),$9=rm(Mh);function uT(s){return um(s)?Oh(Un(s)):lF(s)}function D9(s){return function(l){return s==null?n:Ii(s,l)}}var R9=mS(),N9=mS(!0);function Am(){return[]}function Mm(){return!1}function L9(){return{}}function k9(){return""}function j9(){return!0}function F9(s,l){if(s=Me(s),s<1||s>B)return[];var f=N,g=At(s,N);l=xe(l),s-=N;for(var x=$h(g,l);++f<s;)l(f);return x}function V9(s){return Ae(s)?et(s,Un):Jt(s)?[s]:Vt(_S(Be(s)))}function B9(s){var l=++J3;return Be(s)+l}var W9=Zl(function(s,l){return s+l},0),U9=im("ceil"),z9=Zl(function(s,l){return s/l},1),G9=im("floor");function Y9(s){return s&&s.length?zl(s,Ut,Uh):n}function H9(s,l){return s&&s.length?zl(s,xe(l,2),Uh):n}function q9(s){return g2(s,Ut)}function K9(s,l){return g2(s,xe(l,2))}function X9(s){return s&&s.length?zl(s,Ut,Hh):n}function Z9(s,l){return s&&s.length?zl(s,xe(l,2),Hh):n}var J9=Zl(function(s,l){return s*l},1),Q9=im("round"),e7=Zl(function(s,l){return s-l},0);function t7(s){return s&&s.length?Ih(s,Ut):0}function n7(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return C.after=E8,C.ary=BS,C.assign=fB,C.assignIn=tT,C.assignInWith=uc,C.assignWith=dB,C.at=hB,C.before=WS,C.bind=gm,C.bindAll=v9,C.bindKey=US,C.castArray=L8,C.chain=jS,C.chunk=GF,C.compact=YF,C.concat=HF,C.cond=b9,C.conforms=x9,C.constant=Tm,C.countBy=t8,C.create=mB,C.curry=zS,C.curryRight=GS,C.debounce=YS,C.defaults=pB,C.defaultsDeep=gB,C.defer=C8,C.delay=P8,C.difference=qF,C.differenceBy=KF,C.differenceWith=XF,C.drop=ZF,C.dropRight=JF,C.dropRightWhile=QF,C.dropWhile=eV,C.fill=tV,C.filter=r8,C.flatMap=o8,C.flatMapDeep=a8,C.flatMapDepth=l8,C.flatten=RS,C.flattenDeep=nV,C.flattenDepth=rV,C.flip=A8,C.flow=S9,C.flowRight=T9,C.fromPairs=iV,C.functions=TB,C.functionsIn=EB,C.groupBy=c8,C.initial=oV,C.intersection=aV,C.intersectionBy=lV,C.intersectionWith=cV,C.invert=PB,C.invertBy=AB,C.invokeMap=f8,C.iteratee=Em,C.keyBy=d8,C.keys=gt,C.keysIn=Wt,C.map=ic,C.mapKeys=OB,C.mapValues=_B,C.matches=E9,C.matchesProperty=C9,C.memoize=oc,C.merge=IB,C.mergeWith=nT,C.method=P9,C.methodOf=A9,C.mixin=Cm,C.negate=ac,C.nthArg=O9,C.omit=$B,C.omitBy=DB,C.once=M8,C.orderBy=h8,C.over=_9,C.overArgs=O8,C.overEvery=I9,C.overSome=$9,C.partial=ym,C.partialRight=HS,C.partition=m8,C.pick=RB,C.pickBy=rT,C.property=uT,C.propertyOf=D9,C.pull=hV,C.pullAll=LS,C.pullAllBy=mV,C.pullAllWith=pV,C.pullAt=gV,C.range=R9,C.rangeRight=N9,C.rearg=_8,C.reject=y8,C.remove=yV,C.rest=I8,C.reverse=mm,C.sampleSize=b8,C.set=LB,C.setWith=kB,C.shuffle=x8,C.slice=vV,C.sortBy=T8,C.sortedUniq=CV,C.sortedUniqBy=PV,C.split=o9,C.spread=$8,C.tail=AV,C.take=MV,C.takeRight=OV,C.takeRightWhile=_V,C.takeWhile=IV,C.tap=YV,C.throttle=D8,C.thru=rc,C.toArray=JS,C.toPairs=iT,C.toPairsIn=sT,C.toPath=V9,C.toPlainObject=eT,C.transform=jB,C.unary=R8,C.union=$V,C.unionBy=DV,C.unionWith=RV,C.uniq=NV,C.uniqBy=LV,C.uniqWith=kV,C.unset=FB,C.unzip=pm,C.unzipWith=kS,C.update=VB,C.updateWith=BB,C.values=Ls,C.valuesIn=WB,C.without=jV,C.words=lT,C.wrap=N8,C.xor=FV,C.xorBy=VV,C.xorWith=BV,C.zip=WV,C.zipObject=UV,C.zipObjectDeep=zV,C.zipWith=GV,C.entries=iT,C.entriesIn=sT,C.extend=tT,C.extendWith=uc,Cm(C,C),C.add=W9,C.attempt=cT,C.camelCase=YB,C.capitalize=oT,C.ceil=U9,C.clamp=UB,C.clone=k8,C.cloneDeep=F8,C.cloneDeepWith=V8,C.cloneWith=j8,C.conformsTo=B8,C.deburr=aT,C.defaultTo=w9,C.divide=z9,C.endsWith=HB,C.eq=Tn,C.escape=qB,C.escapeRegExp=KB,C.every=n8,C.find=i8,C.findIndex=$S,C.findKey=yB,C.findLast=s8,C.findLastIndex=DS,C.findLastKey=vB,C.floor=G9,C.forEach=FS,C.forEachRight=VS,C.forIn=bB,C.forInRight=xB,C.forOwn=wB,C.forOwnRight=SB,C.get=xm,C.gt=W8,C.gte=U8,C.has=CB,C.hasIn=wm,C.head=NS,C.identity=Ut,C.includes=u8,C.indexOf=sV,C.inRange=zB,C.invoke=MB,C.isArguments=Ri,C.isArray=Ae,C.isArrayBuffer=z8,C.isArrayLike=Bt,C.isArrayLikeObject=ct,C.isBoolean=G8,C.isBuffer=Zr,C.isDate=Y8,C.isElement=H8,C.isEmpty=q8,C.isEqual=K8,C.isEqualWith=X8,C.isError=vm,C.isFinite=Z8,C.isFunction=ur,C.isInteger=qS,C.isLength=lc,C.isMap=KS,C.isMatch=J8,C.isMatchWith=Q8,C.isNaN=eB,C.isNative=tB,C.isNil=rB,C.isNull=nB,C.isNumber=XS,C.isObject=st,C.isObjectLike=ot,C.isPlainObject=Qo,C.isRegExp=bm,C.isSafeInteger=iB,C.isSet=ZS,C.isString=cc,C.isSymbol=Jt,C.isTypedArray=Ns,C.isUndefined=sB,C.isWeakMap=oB,C.isWeakSet=aB,C.join=uV,C.kebabCase=XB,C.last=pn,C.lastIndexOf=fV,C.lowerCase=ZB,C.lowerFirst=JB,C.lt=lB,C.lte=cB,C.max=Y9,C.maxBy=H9,C.mean=q9,C.meanBy=K9,C.min=X9,C.minBy=Z9,C.stubArray=Am,C.stubFalse=Mm,C.stubObject=L9,C.stubString=k9,C.stubTrue=j9,C.multiply=J9,C.nth=dV,C.noConflict=M9,C.noop=Pm,C.now=sc,C.pad=QB,C.padEnd=e9,C.padStart=t9,C.parseInt=n9,C.random=GB,C.reduce=p8,C.reduceRight=g8,C.repeat=r9,C.replace=i9,C.result=NB,C.round=Q9,C.runInContext=L,C.sample=v8,C.size=w8,C.snakeCase=s9,C.some=S8,C.sortedIndex=bV,C.sortedIndexBy=xV,C.sortedIndexOf=wV,C.sortedLastIndex=SV,C.sortedLastIndexBy=TV,C.sortedLastIndexOf=EV,C.startCase=a9,C.startsWith=l9,C.subtract=e7,C.sum=t7,C.sumBy=n7,C.template=c9,C.times=F9,C.toFinite=fr,C.toInteger=Me,C.toLength=QS,C.toLower=u9,C.toNumber=gn,C.toSafeInteger=uB,C.toString=Be,C.toUpper=f9,C.trim=d9,C.trimEnd=h9,C.trimStart=m9,C.truncate=p9,C.unescape=g9,C.uniqueId=B9,C.upperCase=y9,C.upperFirst=Sm,C.each=FS,C.eachRight=VS,C.first=NS,Cm(C,function(){var s={};return Bn(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){Ne.prototype[s]=function(f){f=f===n?1:mt(Me(f),0);var g=this.__filtered__&&!l?new Ne(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,N),type:s+(g.__dir__<0?"Right":"")}),g},Ne.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==de||f==he;Ne.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":"");Ne.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Ne.prototype[s]=function(){return this.__filtered__?new Ne(this):this[f](1)}}),Ne.prototype.compact=function(){return this.filter(Ut)},Ne.prototype.find=function(s){return this.filter(s).head()},Ne.prototype.findLast=function(s){return this.reverse().find(s)},Ne.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Ne(this):this.map(function(f){return Ho(f,s,l)})}),Ne.prototype.reject=function(s){return this.filter(ac(xe(s)))},Ne.prototype.slice=function(s,l){s=Me(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Ne(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Me(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Ne.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ne.prototype.toArray=function(){return this.take(N)},Bn(Ne.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__,R=g?[1]:arguments,j=I instanceof Ne,Y=R[0],H=j||Ae(I),X=function(Re){var Le=x.apply(C,zr([Re],R));return g&&ce?Le[0]:Le};H&&f&&typeof Y=="function"&&Y.length!=1&&(j=H=!1);var ce=this.__chain__,ge=!!this.__actions__.length,Te=M&&!ce,Oe=j&&!ge;if(!M&&H){I=Oe?I:new Ne(this);var Ee=s.apply(I,R);return Ee.__actions__.push({func:rc,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&Oe?s.apply(this,R):(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)})}}),Bn(Ne.prototype,function(s,l){var f=C[l];if(f){var g=f.name+"";ze.call(_s,g)||(_s[g]=[]),_s[g].push({name:l,func:f})}}),_s[Xl(n,w).name]=[{name:"wrapper",func:n}],Ne.prototype.clone=gj,Ne.prototype.reverse=yj,Ne.prototype.value=vj,C.prototype.at=HV,C.prototype.chain=qV,C.prototype.commit=KV,C.prototype.next=XV,C.prototype.plant=JV,C.prototype.reverse=QV,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=e8,C.prototype.first=C.prototype.head,Vo&&(C.prototype[Vo]=ZV),C},As=K3();Pi?((Pi.exports=As)._=As,Eh._=As):bt._=As}).call(f$)}(ho,ho.exports)),ho.exports}var yf=d$();const vf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const xf=typeof window<"u",Ev=xf?_.useLayoutEffect:_.useEffect,ka=_.createContext(null),wf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class h$ extends ee.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 m$({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(h$,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const p$=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(g$),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]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(m$,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function g$(){return new Map}function Cv(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 Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=I.useMemo(()=>Pv(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,C]=I.useState(h);Ev(()=>{p.current=!1,y.current=h;for(let A=0;A<w.length;A++){const R=ja(w[A]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const P=[];if(h!==b){let A=[...h];for(let R=0;R<w.length;R++){const k=w[R],F=ja(k);m.includes(F)||(A.splice(R,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),C(Pv(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 R=ja(A),k=a&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let z=!0;S.forEach(Q=>{Q||(z=!1)}),z&&($==null||$(),C(y.current),a&&(d==null||d()),r&&r())};return v.jsx(p$,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:F,anchorX:c,children:A},R)})})},Nt=e=>e;let Qi=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(Qi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const y$={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function v$(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&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const b$=40;function Mv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,C)=>(w[C]=v$(o,t?C: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,b$),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,C)=>{const P=a[C];return w[C]=($,A=!1,R=!1)=>(n||S(),P.schedule($,A,R)),w},{}),cancel:w=>{for(let C=0;C<Fa.length;C++)a[Fa[C]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:Sf}=Mv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Ov=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"]},es={};for(const e in _v)es[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function x$(e){for(const t in e)es[t]={...es[t],...e[t]}}const w$=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")||w$.has(e)}let Iv=e=>!Va(e);function S$(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{S$(require("@emotion/is-prop-valid").default)}catch{}function T$(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const $v=new Set;function Ba(e,t,n){e||$v.has(t)||(console.warn(t),$v.add(t))}function E$(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 ho(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=>ho(e[t]))}function Dv(e){return!!(za(e)||e.variants)}function C$(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ho(n)?n:void 0,animate:ho(r)?r:void 0}}return e.inherit!==!1?t:{}}function P$(e){const{initial:t,animate:n}=C$(e,I.useContext(Wa));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const A$=Symbol.for("motionComponentSymbol");function ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M$(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):ts(n)&&(n.current=r))},[t])}const{schedule:Cf}=Mv(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=I.createContext({});function O$(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Wa),u=I.useContext(Ov),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(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_$(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],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 Ev(()=>{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 _$(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:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ts(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function I$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&x$(e);function c(d,h){let m;const p={...I.useContext(wf),...d,layoutId:$$(d)},{isStatic:y}=p,S=P$(d),b=r(d,y);if(!y&&xf){D$(p,e);const T=R$(p);m=T.MeasureLayout,S.visualElement=O$(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,M$(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[A$]=i,u}function $$({layoutId:e}){const t=I.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function D$(e,t){const n=I.useContext(Ov).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?Qi(!1,r):Er(!1,r)}}function R$(e){const{drag:t,layout:n}=es;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 jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),N$=jv("var(--"),Mf=e=>N$(e)?L$.test(e.split("/*")[0].trim()):!1,L$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mo={};function k$(e){for(const t in e)mo[t]=e[t],Af(t)&&(mo[t].isCSSVariable=!0)}const ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(ns);function Fv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...rs,transform:e=>Xn(0,1,e)},Ga={...rs,default:1},go=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=go("deg"),Rn=go("%"),Se=go("px"),j$=go("vh"),F$=go("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},V$={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},B$={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:po,originX:Bv,originY:Bv,originZ:Se},Wv={...rs,transform:Math.round},Of={...V$,...B$,zIndex:Wv,size:Se,fillOpacity:po,strokeOpacity:po,numOctaves:Wv},W$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U$=ns.length;function z$(e,t,n){let r="",i=!0;for(let o=0;o<U$;o++){const a=ns[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=Vv(c,Of[a]);if(!u){i=!1;const h=W$[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(ti.has(u)){a=!0;continue}else if(Af(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=z$(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 Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function G$({transformTemplate:e},t){return I.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y$(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,G$(e,t)),r}function H$(e,t){const n={},r=Y$(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 q$=["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:!!(q$.indexOf(e)>-1||/[A-Z]/u.test(e))}const K$={offset:"stroke-dashoffset",array:"stroke-dasharray"},X$={offset:"strokeDashoffset",array:"strokeDasharray"};function Z$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?K$:X$;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function J$(e,t,n){const r=zv(t,e.x,e.width),i=zv(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=J$(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&&Z$(p,a,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q$(e,t,n,r){const i=I.useMemo(()=>{const o=Gv();return Df(o,t,Rf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Uv(o,e.style,e),i.style={...o,...i.style}}return i}function eD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?Q$:H$)(r,o,a,n),d=T$(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 Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(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]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),tD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nD=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return tD(t)?t.toValue():t}function rD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:iD(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=I.useContext(Wa),i=I.useContext(ka),o=()=>rD(e,t,r,i);return n?o():bf(o)};function iD(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=Dv(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=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const C in w){let P=w[C];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[C]=P)}for(const C in b)i[C]=b[C]}}}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])||Fv(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 sD={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(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 Kv(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 Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],oD={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,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<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function aD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?oD:sD,preloadedFeatures:e,useRender:eD(i),createVisualElement:t,Component:r};return I$(a)}}function yo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...ns]);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 tb(e,t){return t?e*(1e3/t):0}let Ha;function lD(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||y$.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(lD)}},nb=30,cD=e=>!isNaN(parseFloat(e));class uD{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Nn.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=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cD(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=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(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 vo(e,t){return new uD(e,t)}function fD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vo(n))}function dD(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=nD(o[a]);fD(e,a,c)}}function hD(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(hD(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const mD=Uf(()=>window.ScrollTimeline!==void 0);class pD{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(mD()&&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 gD extends pD{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",yD={linearEasing:void 0};function vD(e,t){const n=Uf(e);return()=>{var r;return(r=yD[t])!==null&&r!==void 0?r:n()}}const qa=vD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(is(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const bo=([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:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?bo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bD=1e-7,xD=12;function wD(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>bD&&++c<xD);return a}function xo(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>wD(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=xo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function SD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const wo=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TD(e){return e==null}const ED=/^(?:#[\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"&&ED.test(n)&&n.startsWith(e)||t&&!TD(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(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}},CD=e=>Xn(0,255,e),Zf={...rs,transform:e=>Math.round(CD(e))},ni={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+wo(po.transform(r))+")"};function PD(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:PD,transform:ni.transform},ss={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(wo(t))+", "+Rn.transform(wo(n))+", "+wo(po.transform(r))+")"},Ct={test:e=>ni.test(e)||Jf.test(e)||ss.test(e),parse:e=>ni.test(e)?ni.parse(e):ss.test(e)?ss.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):ss.transform(e)},AD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MD(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(AD))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",OD="var",_D="var(",xb="${}",ID=/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 So(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(ID,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_D)?(r.var.push(o),i.push(OD),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return So(e).values}function Sb(e){const{split:t,types:n}=So(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===vb?o+=wo(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const $D=e=>typeof e=="number"?0:e;function DD(e){const t=wb(e);return Sb(e)(t.map($D))}const Ar={test:MD,parse:wb,createTransformer:Sb,getAnimatableNone:DD},RD=new Set(["brightness","contrast","saturate","opacity"]);function ND(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=RD.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LD=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(LD);return t?t.map(ND).join(" "):e}},kD={...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},Tb=e=>kD[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jD=new Set(["auto","none","0"]);function FD(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!jD.has(o)&&So(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ri=e=>e*180/Math.PI,ed=e=>{const t=ri(Math.atan2(e[1],e[0]));return td(t)},VD={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=>ri(Math.atan(e[1])),skewY:e=>ri(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),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),BD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ri(Math.atan2(e[6],e[5]))),rotateY:e=>td(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,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 Mb(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Mb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=BD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=VD,i=c}if(!i)return Mb(t);const o=r[t],a=i[1].split(",").map(UD);return typeof o=="function"?o(a):a[o]}const WD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function UD(e){return parseFloat(e.trim())}const Ob=e=>e===rs||e===Se,zD=new Set(["x","y","z"]),GD=ns.filter(e=>!zD.has(e));function YD(e){const t=[];return GD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const os={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")};os.translateX=os.x,os.translateY=os.y;const ii=new Set;let rd=!1,id=!1;function _b(){if(id){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=YD(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,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function HD(){Ib(),_b()}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?(ii.add(this),rd||(rd=!0,He.read(Ib),He.resolveKeyframes(_b))):(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 $b=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function KD(e){const t=qD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const XD=4;function Db(e,t,n=1){Er(n<=XD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=KD(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return $b(a)?parseFloat(a):a}return Mf(i)?Db(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[rs,Se,Rn,Pr,F$,j$,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb 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=Db(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Lb(i),c=Lb(o);if(a!==c)if(Ob(a)&&Ob(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++)SD(t[i])&&r.push(i);r.length&&FD(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=os[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]=os[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 jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function ZD(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 JD(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=jb(i,t),c=jb(o,t);return Qi(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:ZD(e)||(n==="spring"||zf(n))&&r}const QD=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(QD),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const e4=40;class Fb{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=Nn.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>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HD(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!JD(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 Vb(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 t4({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)},n4=[Jf,ni,ss],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(Qi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ss&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(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),ni.transform(i))},i4=(e,t)=>n=>t(e(n)),To=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(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 a4(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 l4(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 c4=(e,t)=>{const n=Ar.createTransformer(t),r=So(e),i=So(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?s4(e,t):To(Ub(l4(r,i),i.values),n):(Qi(!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 zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(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},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;Qi(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return Yb-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)+Yb>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=h4(i,o,c);if(e=Ln(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 d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))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:it.mass,stiffness:i,damping:o}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(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}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Zn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let P;if(b<1){const A=fd(w,b);P=R=>{const k=Math.exp(-b*w*R);return a-k*((S+b*w*T)/A*Math.sin(A*R)+T*Math.cos(A*R))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=R=>{const k=Math.exp(-b*w*R),F=Math.min(A*R,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const R=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Ln(S):Gb(P,A,R));const F=Math.abs(k)<=r,z=Math.abs(a-R)<=i;c.done=F&&z}return c.value=c.done?a:R,c},toString:()=>{const A=Math.min(Vb($),od),R=sb(k=>$.next(A*k).value,A,30);return A+"ms "+R}};return $}function Kb({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 C=F=>-b*Math.exp(-F/r),P=F=>w+C(F),$=F=>{const z=C(F),Q=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:Q};let A,R;const k=F=>{y(p.value)&&(A=F,R=qb({keyframes:[p.value,S(p.value)],velocity:Gb(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!R&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?R.next(F-A):(!z&&$(F),p)}}}const y4=xo(.42,0,1,1),v4=xo(0,0,.58,1),Xb=xo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return xo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,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=To(u,c)}r.push(c)}return r}function w4(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=x4(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=is(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Eo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=E4(n&&n.length===t.length?n:T4(t),e),c=w4(a,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Eo,keyframes:Eo,spring:qb},M4=e=>e/100;class dd extends Fb{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:A4[n]||Eo;let u,d;process.env.NODE_ENV!=="production"&&c!==Eo&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Eo&&typeof t[0]!="number"&&(u=To(M4,zb(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=Vb(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),C=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&($=a)),P=Xn(0,1,Q)*m}const A=C?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:R}=A;!C&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return k&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(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=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,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 O4=new Set(["opacity","clipPath","filter","transform"]);function _4(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=ab(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 I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,$4=2e4;function D4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(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<$4;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(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()&&N4(o)&&(o=Qb[o]),D4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=R4(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=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(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 Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(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;ib(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 dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Ln(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 I4()&&r&&O4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:ti.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({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-Ln(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};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(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 gD([])}return!o&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(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&&W4(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const C=window.MotionHandoffAnimation(w,m,He);C!==null&&(S.startTime=C,b=!0)}}Wf(e,m),p.start(hd(m,p,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&dD(e,c)})}),d}function md(e,t,n={}){var r;const i=yo(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(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return U4(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 U4(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(z4).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 z4(e,t){return e.sortNodePosition(t)}function G4(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"?yo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(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 Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(ho(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=yo(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=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<q4;T++){const w=H4[T],C=n[w],P=d[w]!==void 0?d[w]:h[w],$=ho(P),A=w===u?C.isActive:null;A===!1&&(S=T);let R=P===h[w]&&P!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...y},!C.isActive&&A===null||!P&&!C.prevProp||Ua(P)||typeof P=="boolean")continue;const k=Z4(C.prevProp,P);let F=k||w===u&&C.isActive&&!R&&$||T>S&&$,z=!1;const Q=Array.isArray(P)?P:[P];let te=Q.reduce(i(w),{});A===!1&&(te={});const{prevResolvedValues:le={}}=C,ve={...le,...te},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),C.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ve){const B=te[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(B)&&Lf(G)?O=!n1(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):C.protectedKeys[V]=!0}C.prevProp=P,C.prevResolvedValues=te,C.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&k)||z)&&m.push(...Q.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=yo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const C=e.getBaseTarget(w),P=e.getValue(w);P&&(P.liveStyle=!0),T[w]=C??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=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J4 extends Mr{constructor(t){super(t),t.animationState||(t.animationState=X4(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 Q4=0;class e5 extends Mr{constructor(){super(...arguments),this.id=Q4++}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 t5={animation:{Feature:J4},exit:{Feature:e5}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n5(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 Co(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 Po(e){return{point:{x:e.pageX,y:e.pageY}}}const r5=e=>t=>pd(t)&&e(t,Po(t));function Ao(e,t,n,r){return Co(e,t,r5(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s5(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 a1=1e-4,o5=1-a1,a5=1+a1,l1=.01,l5=0-l1,c5=0+l1;function _t(e){return e.max-e.min}function u5(e,t,n){return Math.abs(e-t)<=n}function c1(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>=o5&&e.scale<=a5||isNaN(e.scale))&&(e.scale=1),(e.translate>=l5&&e.translate<=c5||isNaN(e.translate))&&(e.translate=0)}function Mo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f5(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Oo(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),as=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});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 oi(e){return yd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(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=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d5(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&&cs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&oi(o.latestValues)&&cs(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ls(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function cs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s5(e.getBoundingClientRect(),t))}function h5(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ls(r.x,i.offset.x),ls(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m5(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{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=m5(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=Po(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=To(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(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 C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p5(t)),velocity:g5(t,.1)}}function p5(e){return e[0]}function P1(e){return e[e.length-1]}function g5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(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 y5(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 A1(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 v5(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function M1(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 b5(e,t){return{x:M1(e.x,t.x),y:M1(e.y,t.y)}}function x5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Xn(0,1,n)}function w5(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 S5(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:O1(e,"left","right"),y:O1(e,"top","bottom")}}function O1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T5=new WeakMap;class E5{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(Po(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n5(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:C}=this.visualElement;if(C&&C.layout){const P=C.layout.layoutBox[T];P&&(w=_t(P)*(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=C5(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 E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(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=y5(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&&ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=w5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ts(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=h5(r,i.root,this.visualElement.getTransformPagePoint());let a=b5(i.layout.layoutBox,o);if(n){const c=n(i5(a));this.hasMutatedConstraints=!!c,c&&(a=o1(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(!ts(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]=x5({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;T5.set(this.visualElement,this);const t=this.visualElement.current,n=Ao(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ts(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=Co(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 C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E5(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 I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A5 extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Ao(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 $1(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=$1(e,t.target.x),r=$1(e,t.target.y);return`${n}% ${r}%`}},M5={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 O5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;k$(_5),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 D1(e){const[t,n]=Cv(),r=I.useContext(vf);return v.jsx(O5,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Lv),isPresent:t,safeToRemove:n})}const _5={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:M5};function I5(e,t,n){const r=Et(e)?e:vo(e);return r.start(hd("",r,t,n)),r.animation}function $5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const D5=(e,t)=>e.depth-t.depth;class R5{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(D5),this.isDirty=!1,this.children.forEach(t)}}function N5(e,t){const n=Nn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L5=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Se.test(e);function k5(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F5(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<L5;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(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 k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j5=j1(0,.5,mb),F5=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(is(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(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 V5(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=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],o,a){V5(e,t[n],t[r],t[i],t.scale,o,a)}const B5=["x","scaleX","originX"],W5=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B5,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W5,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U5(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z5{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 G5(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"],Y5={visibility:"hidden"},Z1=1e3;let H5=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 J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(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&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=H5++,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(X5),this.nodes.forEach(t6),this.nodes.forEach(n6),this.nodes.forEach(Z5)},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 R5)}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=$5(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=N5(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}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()||a6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),C=!this.targetLayout||!q1(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(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(r6),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&&J1(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(ex);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(q5),this.nodes.forEach(K5),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(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(J5),this.sharedNodes.forEach(i6)}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&&!G1(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)),l6(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(c6))){const{scroll:h}=this.root;h&&(ls(u.x,h.offset.x),ls(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),ls(u.x,m.offset.x),ls(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&&cs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&cs(u,h.latestValues)}return oi(this.latestValues)&&cs(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||!oi(d.latestValues))continue;yd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&U1(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(),Oo(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(),f5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(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(),Oo(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)||m1(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;d5(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():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Mo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(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=as(),this.projectionDelta=as(),this.projectionDeltaWithTransform=as()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=as();(!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,C=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(o6));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;nx(m.x,a.x,A),nx(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s6(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&U5(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=lt()),sn(P,this.relativeTarget)),b&&(this.animationValues=h,k5(h,d,this.latestValues,A,C,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=I5(0,Z1,{...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(Z1),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&&ax(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),cs(c,h),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new z5),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 Y5;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&&!oi(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=G5(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 mo){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:C}=mo[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else C?this.options.visualElement.renderState.vars[b]=P:d[b]=P}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(ex),this.root.sharedNodes.clear()}}}function q5(e){e.updateLayout()}function K5(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}):ax(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=as();Mo(c,r,n.layoutBox);const u=as();a?Mo(u,e.applyTransform(i,!0),n.measuredBox):Mo(u,r,n.layoutBox);const d=!G1(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();Oo(S,n.layoutBox,p.layoutBox);const b=lt();Oo(b,r,y.layoutBox),q1(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 X5(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 Z5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J5(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function e6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t6(e){e.resolveTargetDelta()}function n6(e){e.calcProjection()}function r6(e){e.resetSkewAndRotation()}function i6(e){e.removeLeadSnapshot()}function nx(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 rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function s6(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function o6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a6={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function l6(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u5(K1(t),K1(n),.2)}function c6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const u6=Q1({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new u6({});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"}),f6={pan:{Feature:A5},drag:{Feature:P5,ProjectionNode:lx,MeasureLayout:D1}};function d6(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 cx(e,t){const n=d6(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function h6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(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,Po(t)))}class m6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=h6(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class p6 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=To(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,g6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y6(e){return g6.has(e.tagName)||e.tabIndex!==-1}const Io=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const v6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Io.has(n))return;Cd(n,"down");const i=hx(()=>{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 mx(e){return pd(e)&&!s1()}function b6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||Io.has(u))return;Io.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!Io.has(u))&&(Io.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(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=>v6(d,i)),!y6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(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,Po(t)))}class x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,w6=e=>{const t=Pd.get(e.target);t&&t(e)},S6=e=>{e.forEach(w6)};function T6({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(S6,{root:e,...t})),r[i]}function E6(e,t,n){const r=T6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class P6 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:C6[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 E6(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(A6(t,n))&&this.startObserver()}unmount(){}}function A6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M6={inView:{Feature:P6},tap:{Feature:x6},focus:{Feature:p6},hover:{Feature:m6}},O6={layout:{ProjectionNode:lx,MeasureLayout:D1}},Md={current:null},gx={current:!1};function _6(){if(gx.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 I6=[...Nb,Ct,Ar],$6=e=>I6.find(Rb(e)),D6=new WeakMap;function R6(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,vo(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,vo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N6{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=Nn.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=Dv(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,D6.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)),gx.current||_6(),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=ti.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 es){const n=es[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<yx.length;r++){const i=yx[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=R6(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=vo(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"&&($b(i)||gb(i))?i=parseFloat(i):!$6(i)&&Ar.test(n)&&(i=Eb(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=Nf(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 vx extends N6{constructor(){super(...arguments),this.KeyframeResolver=kb}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 L6(e){return window.getComputedStyle(e)}class k6 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return WD(t,n);{const r=L6(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class j6 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(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){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const F6=(e,t)=>$f(e)?new j6(t):new k6(t,{allowProjection:e!==I.Fragment}),V6=aD({...t5,...M6,...f6,...O6},F6),Ze=E$(V6),Od={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Od),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=ze(),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(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(bs,{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($e,{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(jo,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(jo,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(y)}},[t]),v.jsx(h$,{isPresent:t,childRef:i,sizeRef:o,children:ee.cloneElement(e,{ref:i})})}const p$=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(g$),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]),ee.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=v.jsx(m$,{isPresent:n,anchorX:c,children:e})),v.jsx(ka.Provider,{value:m,children:e})};function g$(){return new Map}function Cv(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 Pv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=_.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),y=_.useRef(h),S=bf(()=>new Map),[b,T]=_.useState(h),[w,E]=_.useState(h);Ev(()=>{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 P=[];if(h!==b){let A=[...h];for(let D=0;D<w.length;D++){const k=w[D],F=ja(k);m.includes(F)||(A.splice(D,0,k),P.push(k))}return o==="wait"&&P.length&&(A=P),E(Pv(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:$}=_.useContext(vf);return v.jsx(v.Fragment,{children:w.map(A=>{const D=ja(A),k=a&&!u?!1:h===w||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let z=!0;S.forEach(J=>{J||(z=!1)}),z&&($==null||$(),E(y.current),a&&(d==null||d()),r&&r())};return v.jsx(p$,{isPresent:k,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:k?void 0:F,anchorX:c,children:A},D)})})},Nt=e=>e;let ts=Nt,Er=Nt;process.env.NODE_ENV!=="production"&&(ts=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const y$={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function v$(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&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const b$=40;function Mv(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]=v$(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,b$),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 P=a[E];return w[E]=($,A=!1,D=!1)=>(n||S(),P.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}=Mv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),Ov=_.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"]},ns={};for(const e in _v)ns[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function x$(e){for(const t in e)ns[t]={...ns[t],...e[t]}}const w$=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")||w$.has(e)}let Iv=e=>!Va(e);function S$(e){e&&(Iv=t=>t.startsWith("on")?!Va(t):e(t))}try{S$(require("@emotion/is-prop-valid").default)}catch{}function T$(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const $v=new Set;function Ba(e,t,n){e||$v.has(t)||(console.warn(t),$v.add(t))}function E$(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 mo(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=>mo(e[t]))}function Dv(e){return!!(za(e)||e.variants)}function C$(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||mo(n)?n:void 0,animate:mo(r)?r:void 0}}return e.inherit!==!1?t:{}}function P$(e){const{initial:t,animate:n}=C$(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const A$=Symbol.for("motionComponentSymbol");function rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M$(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):rs(n)&&(n.current=r))},[t])}const{schedule:Cf}=Mv(queueMicrotask,!1),Pf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nv="data-"+Pf("framerAppearId"),Lv=_.createContext({});function O$(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Ov),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(Lv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&_$(m.current,n,i,y);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nv],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 Ev(()=>{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 _$(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:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&rs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function I$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&x$(e);function c(d,h){let m;const p={..._.useContext(wf),...d,layoutId:$$(d)},{isStatic:y}=p,S=P$(d),b=r(d,y);if(!y&&xf){D$(p,e);const T=R$(p);m=T.MeasureLayout,S.visualElement=O$(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,M$(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[A$]=i,u}function $$({layoutId:e}){const t=_.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function D$(e,t){const n=_.useContext(Ov).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?ts(!1,r):Er(!1,r)}}function R$(e){const{drag:t,layout:n}=ns;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 jv=e=>t=>typeof t=="string"&&t.startsWith(e),Af=jv("--"),N$=jv("var(--"),Mf=e=>N$(e)?L$.test(e.split("/*")[0].trim()):!1,L$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,po={};function k$(e){for(const t in e)po[t]=e[t],Af(t)&&(po[t].isCSSVariable=!0)}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(is);function Fv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!po[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ss={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},go={...ss,transform:e=>Xn(0,1,e)},Ga={...ss,default:1},yo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=yo("deg"),Rn=yo("%"),Se=yo("px"),j$=yo("vh"),F$=yo("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},V$={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},B$={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:go,originX:Bv,originY:Bv,originZ:Se},Wv={...ss,transform:Math.round},Of={...V$,...B$,zIndex:Wv,size:Se,fillOpacity:go,strokeOpacity:go,numOctaves:Wv},W$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U$=is.length;function z$(e,t,n){let r="",i=!0;for(let o=0;o<U$;o++){const a=is[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=Vv(c,Of[a]);if(!u){i=!1;const h=W$[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=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=z$(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 Uv(e,t,n){for(const r in t)!Et(t[r])&&!Fv(r,n)&&(e[r]=t[r])}function G$({transformTemplate:e},t){return _.useMemo(()=>{const n=If();return _f(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y$(e,t){const n=e.style||{},r={};return Uv(r,n,e),Object.assign(r,G$(e,t)),r}function H$(e,t){const n={},r=Y$(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 q$=["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:!!(q$.indexOf(e)>-1||/[A-Z]/u.test(e))}const K$={offset:"stroke-dashoffset",array:"stroke-dasharray"},X$={offset:"strokeDashoffset",array:"strokeDasharray"};function Z$(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?K$:X$;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function J$(e,t,n){const r=zv(t,e.x,e.width),i=zv(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=J$(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&&Z$(p,a,c,u,!1)}const Gv=()=>({...If(),attrs:{}}),Rf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q$(e,t,n,r){const i=_.useMemo(()=>{const o=Gv();return Df(o,t,Rf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Uv(o,e.style,e),i.style={...o,...i.style}}return i}function eD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=($f(n)?Q$:H$)(r,o,a,n),d=T$(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 Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(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]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),tD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nD=e=>Lf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return tD(t)?t.toValue():t}function rD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:iD(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(ka),o=()=>rD(e,t,r,i);return n?o():bf(o)};function iD(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=Dv(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=Nf(e,p[y]);if(S){const{transitionEnd:b,transition:T,...w}=S;for(const E in w){let P=w[E];if(Array.isArray(P)){const $=h?P.length-1:0;P=P[$]}P!==null&&(i[E]=P)}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])||Fv(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 sD={useVisualState:Hv({scrapeMotionValuesFromProps:kf,createRenderState:If})};function qv(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 Kv(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 Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Pf(i),t.attrs[i])}function Jv(e,t,n){const r=kf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=is.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],oD={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,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<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,Rf(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function aD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...$f(r)?oD:sD,preloadedFeatures:e,useRender:eD(i),createVisualElement:t,Component:r};return I$(a)}}function vo(e,t,n){const r=e.getProps();return Nf(r,t,n!==void 0?n:r.custom,e)}function jf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...is]);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 tb(e,t){return t?e*(1e3/t):0}let Ha;function lD(){Ha=void 0}const Nn={now:()=>(Ha===void 0&&Nn.set(vt.isProcessing||y$.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(lD)}},nb=30,cD=e=>!isNaN(parseFloat(e));class uD{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Nn.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=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cD(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=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(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 bo(e,t){return new uD(e,t)}function fD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bo(n))}function dD(e,t){const n=vo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=nD(o[a]);fD(e,a,c)}}function hD(e){return!!(Et(e)&&e.add)}function Wf(e,t){const n=e.getValue("willChange");if(hD(n))return n.add(t)}function rb(e){return e.props[Nv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const mD=Uf(()=>window.ScrollTimeline!==void 0);class pD{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(mD()&&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 gD extends pD{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ln=e=>e*1e3,Zn=e=>e/1e3;function zf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const Gf=e=>Array.isArray(e)&&typeof e[0]=="number",yD={linearEasing:void 0};function vD(e,t){const n=Uf(e);return()=>{var r;return(r=yD[t])!==null&&r!==void 0?r:n()}}const qa=vD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),os=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(os(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Yf||qa())||Gf(e)||Array.isArray(e)&&e.every(ob))}const xo=([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:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&qa()?sb(e,t):Gf(e)?xo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Yf.easeOut):Yf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bD=1e-7,xD=12;function wD(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>bD&&++c<xD);return a}function wo(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>wD(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=wo(.33,1.53,.69,.99),Hf=ub(fb),db=cb(Hf),hb=e=>(e*=2)<1?.5*Hf(e):.5*(2-Math.pow(2,-10*(e-1))),qf=e=>1-Math.sin(Math.acos(e)),mb=ub(qf),pb=cb(qf),gb=e=>/^0[^.\s]+$/u.test(e);function SD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const So=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TD(e){return e==null}const ED=/^(?:#[\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"&&ED.test(n)&&n.startsWith(e)||t&&!TD(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(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}},CD=e=>Xn(0,255,e),Zf={...ss,transform:e=>Math.round(CD(e))},ci={test:Xf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zf.transform(e)+", "+Zf.transform(t)+", "+Zf.transform(n)+", "+So(go.transform(r))+")"};function PD(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:PD,transform:ci.transform},as={test:Xf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(So(t))+", "+Rn.transform(So(n))+", "+So(go.transform(r))+")"},Ct={test:e=>ci.test(e)||Jf.test(e)||as.test(e),parse:e=>ci.test(e)?ci.parse(e):as.test(e)?as.parse(e):Jf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):as.transform(e)},AD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MD(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(AD))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",OD="var",_D="var(",xb="${}",ID=/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 To(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(ID,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(_D)?(r.var.push(o),i.push(OD),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return To(e).values}function Sb(e){const{split:t,types:n}=To(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===vb?o+=So(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const $D=e=>typeof e=="number"?0:e;function DD(e){const t=wb(e);return Sb(e)(t.map($D))}const Ar={test:MD,parse:wb,createTransformer:Sb,getAnimatableNone:DD},RD=new Set(["brightness","contrast","saturate","opacity"]);function ND(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=RD.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LD=/\b([a-z-]*)\(.*?\)/gu,Qf={...Ar,getAnimatableNone:e=>{const t=e.match(LD);return t?t.map(ND).join(" "):e}},kD={...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},Tb=e=>kD[e];function Eb(e,t){let n=Tb(e);return n!==Qf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jD=new Set(["auto","none","0"]);function FD(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!jD.has(o)&&To(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ui=e=>e*180/Math.PI,ed=e=>{const t=ui(Math.atan2(e[1],e[0]));return td(t)},VD={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),Cb=ed,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),BD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>td(ui(Math.atan2(e[6],e[5]))),rotateY:e=>td(ui(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,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 Mb(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return Mb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=BD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=VD,i=c}if(!i)return Mb(t);const o=r[t],a=i[1].split(",").map(UD);return typeof o=="function"?o(a):a[o]}const WD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function UD(e){return parseFloat(e.trim())}const Ob=e=>e===ss||e===Se,zD=new Set(["x","y","z"]),GD=is.filter(e=>!zD.has(e));function YD(e){const t=[];return GD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ls={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")};ls.translateX=ls.x,ls.translateY=ls.y;const fi=new Set;let rd=!1,id=!1;function _b(){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=YD(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 Ib(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(id=!0)})}function HD(){Ib(),_b()}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(Ib),He.resolveKeyframes(_b))):(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 $b=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function KD(e){const t=qD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const XD=4;function Db(e,t,n=1){Er(n<=XD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=KD(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return $b(a)?parseFloat(a):a}return Mf(i)?Db(i,t,n+1):i}const Rb=e=>t=>t.test(e),Nb=[ss,Se,Rn,Pr,F$,j$,{test:e=>e==="auto",parse:e=>e}],Lb=e=>Nb.find(Rb(e));class kb 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=Db(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Lb(i),c=Lb(o);if(a!==c)if(Ob(a)&&Ob(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++)SD(t[i])&&r.push(i);r.length&&FD(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=ls[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]=ls[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 jb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function ZD(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 JD(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=jb(i,t),c=jb(o,t);return ts(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:ZD(e)||(n==="spring"||zf(n))&&r}const QD=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(QD),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const e4=40;class Fb{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=Nn.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>e4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HD(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!JD(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 Vb(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 t4({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)},n4=[Jf,ci,as],r4=e=>n4.find(t=>t.test(e));function Bb(e){const t=r4(e);if(ts(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===as&&(n=t4(n)),n}const Wb=(e,t)=>{const n=Bb(e),r=Bb(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))},i4=(e,t)=>n=>t(e(n)),Eo=(...e)=>e.reduce(i4),cd=new Set(["none","hidden"]);function s4(e,t){return cd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function o4(e,t){return n=>rt(e,t,n)}function ud(e){return typeof e=="number"?o4:typeof e=="string"?Mf(e)?Xa:Ct.test(e)?Wb:c4:Array.isArray(e)?Ub:typeof e=="object"?Ct.test(e)?Wb:a4:Xa}function Ub(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 a4(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 l4(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 c4=(e,t)=>{const n=Ar.createTransformer(t),r=To(e),i=To(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?s4(e,t):Eo(Ub(l4(r,i),i.values),n):(ts(!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 zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):ud(e)(e,t)}const u4=5;function Gb(e,t,n){const r=Math.max(t-u4,0);return tb(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},Yb=.001;function f4({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;ts(e<=Ln(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,y=fd(d,a),S=Math.exp(-m);return Yb-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)+Yb>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=h4(i,o,c);if(e=Ln(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 d4=12;function h4(e,t,n){let r=n;for(let i=1;i<d4;i++)r=r-e(r)/t(r);return r}function fd(e,t){return e*Math.sqrt(1-t*t)}const m4=["duration","bounce"],p4=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function g4(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,p4)&&Hb(e,m4))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:it.mass,stiffness:i,damping:o}}else{const n=f4(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(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}=g4({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,w=Zn(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 P;if(b<1){const A=fd(w,b);P=D=>{const k=Math.exp(-b*w*D);return a-k*((S+b*w*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(b===1)P=A=>a-Math.exp(-w*A)*(T+(S+w*T)*A);else{const A=w*Math.sqrt(b*b-1);P=D=>{const k=Math.exp(-b*w*D),F=Math.min(A*D,300);return a-k*((S+b*w*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const D=P(A);if(y)c.done=A>=m;else{let k=0;b<1&&(k=A===0?Ln(S):Gb(P,A,D));const F=Math.abs(k)<=r,z=Math.abs(a-D)<=i;c.done=F&&z}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(Vb($),od),D=sb(k=>$.next(A*k).value,A,30);return A+"ms "+D}};return $}function Kb({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),P=F=>w+E(F),$=F=>{const z=E(F),J=P(F);p.done=Math.abs(z)<=d,p.value=p.done?w:J};let A,D;const k=F=>{y(p.value)&&(A=F,D=qb({keyframes:[p.value,S(p.value)],velocity:Gb(P,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return k(0),{calculatedDuration:null,next:F=>{let z=!1;return!D&&A===void 0&&(z=!0,$(F),k(F)),A!==void 0&&F>=A?D.next(F-A):(!z&&$(F),p)}}}const y4=wo(.42,0,1,1),v4=wo(0,0,.58,1),Xb=wo(.42,0,.58,1),b4=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Nt,easeIn:y4,easeInOut:Xb,easeOut:v4,circIn:qf,circInOut:pb,circOut:mb,backIn:Hf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(Gf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return wo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function x4(e,t,n){const r=[],i=n||zb,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=Eo(u,c)}r.push(c)}return r}function w4(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=x4(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=os(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function S4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=os(0,t,r);e.push(rt(n,1,i))}}function T4(e){const t=[0];return S4(t,e.length-1),t}function E4(e,t){return e.map(n=>n*t)}function C4(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function Co({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=b4(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=E4(n&&n.length===t.length?n:T4(t),e),c=w4(a,t,{ease:Array.isArray(i)?i:C4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const P4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Nn.now()}},A4={decay:Kb,inertia:Kb,tween:Co,keyframes:Co,spring:qb},M4=e=>e/100;class dd extends Fb{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:A4[n]||Co;let u,d;process.env.NODE_ENV!=="production"&&c!==Co&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Co&&typeof t[0]!="number"&&(u=Eo(M4,zb(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=Vb(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 P=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let z=Math.floor(F),J=F%1;!J&&F>=1&&(J=1),J===1&&z--,z=Math.min(z,y+1),!!(z%2)&&(S==="reverse"?(J=1-J,b&&(J-=b/m)):S==="mirror"&&($=a)),P=Xn(0,1,J)*m}const A=E?{done:!1,value:u[0]}:$.next(P);c&&(A.value=c(A.value));let{done:D}=A;!E&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return k&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),k&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Ln(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=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P4,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 O4=new Set(["opacity","clipPath","filter","transform"]);function _4(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=ab(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 I4=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,$4=2e4;function D4(e){return zf(e.type)||e.type==="spring"||!ob(e.ease)}function R4(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<$4;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function N4(e){return e in Qb}class e1 extends Fb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(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()&&N4(o)&&(o=Qb[o]),D4(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,element:S,...b}=this.options,T=R4(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=_4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(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 Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ln(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;ib(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 dd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),b=Ln(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 I4()&&r&&O4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const L4={type:"spring",stiffness:500,damping:25,restSpeed:10},k4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j4={type:"keyframes",duration:.8},F4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V4=(e,{keyframes:t})=>t.length>2?j4:li.has(e)?e.startsWith("scale")?k4(t[1]):L4:F4;function B4({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-Ln(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};B4(c)||(h={...h,...V4(e,h)}),h.duration&&(h.duration=Ln(h.duration)),h.repeatDelay&&(h.repeatDelay=Ln(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 gD([])}return!o&&e1.supports(h)?new e1(h):new dd(h)};function W4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(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&&W4(h,m))continue;const S={delay:n,...jf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=rb(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&&eb.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&dD(e,c)})}),d}function md(e,t,n={}){var r;const i=vo(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(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return U4(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 U4(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(z4).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 z4(e,t){return e.sortNodePosition(t)}function G4(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"?vo(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(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 Y4=Ef.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y4;n++){const r=Ef[n],i=e.props[r];(mo(i)||i===!1)&&(t[r]=i)}return t}const H4=[...Tf].reverse(),q4=Tf.length;function K4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>G4(e,n,r)))}function X4(e){let t=K4(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const p=vo(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=r1(e.parent)||{},m=[],p=new Set;let y={},S=1/0;for(let T=0;T<q4;T++){const w=H4[T],E=n[w],P=d[w]!==void 0?d[w]:h[w],$=mo(P),A=w===u?E.isActive:null;A===!1&&(S=T);let D=P===h[w]&&P!==d[w]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),E.protectedKeys={...y},!E.isActive&&A===null||!P&&!E.prevProp||Ua(P)||typeof P=="boolean")continue;const k=Z4(E.prevProp,P);let F=k||w===u&&E.isActive&&!D&&$||T>S&&$,z=!1;const J=Array.isArray(P)?P:[P];let ne=J.reduce(i(w),{});A===!1&&(ne={});const{prevResolvedValues:le={}}=E,ye={...le,...ne},de=V=>{F=!0,p.has(V)&&(z=!0,p.delete(V)),E.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ye){const B=ne[V],G=le[V];if(y.hasOwnProperty(V))continue;let O=!1;Lf(B)&&Lf(G)?O=!n1(B,G):O=B!==G,O?B!=null?de(V):p.add(V):B!==void 0&&p.has(V)?de(V):E.protectedKeys[V]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(y={...y,...ne}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&k)||z)&&m.push(...J.map(V=>({animation:V,options:{type:w}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const w=vo(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),P=e.getValue(w);P&&(P.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=i1(),r=!0}}}function Z4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){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 J4 extends Mr{constructor(t){super(t),t.animationState||(t.animationState=X4(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 Q4=0;class e5 extends Mr{constructor(){super(...arguments),this.id=Q4++}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 t5={animation:{Feature:J4},exit:{Feature:e5}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function n5(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 Po(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 Ao(e){return{point:{x:e.pageX,y:e.pageY}}}const r5=e=>t=>pd(t)&&e(t,Ao(t));function Mo(e,t,n,r){return Po(e,t,r5(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s5(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 a1=1e-4,o5=1-a1,a5=1+a1,l1=.01,l5=0-l1,c5=0+l1;function _t(e){return e.max-e.min}function u5(e,t,n){return Math.abs(e-t)<=n}function c1(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>=o5&&e.scale<=a5||isNaN(e.scale))&&(e.scale=1),(e.translate>=l5&&e.translate<=c5||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function f5(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function _o(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),cs=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});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)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function g1(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=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function d5(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&&fs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&hi(o.latestValues)&&fs(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function us(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);vd(e,t,n,o,r)}function fs(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(s5(e.getBoundingClientRect(),t))}function h5(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(us(r.x,i.offset.x),us(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function m5(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{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=m5(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=Ao(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=Eo(Mo(this.contextWindow,"pointermove",this.handlePointerMove),Mo(this.contextWindow,"pointerup",this.handlePointerUp),Mo(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 C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,p5(t)),velocity:g5(t,.1)}}function p5(e){return e[0]}function P1(e){return e[e.length-1]}function g5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(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 y5(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 A1(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 v5(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function M1(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 b5(e,t){return{x:M1(e.x,t.x),y:M1(e.y,t.y)}}function x5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=os(t.min,t.max-r,e.min):r>i&&(n=os(e.min,e.max-i,t.min)),Xn(0,1,n)}function w5(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 S5(e=wd){return e===!1?e=0:e===!0&&(e=wd),{x:O1(e,"left","right"),y:O1(e,"top","bottom")}}function O1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const T5=new WeakMap;class E5{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(Ao(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:y,onDragStart:S}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n5(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 P=E.layout.layoutBox[T];P&&(w=_t(P)*(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=C5(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 E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(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=y5(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&&rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v5(i.layoutBox,n):this.constraints=!1,this.elastic=S5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=w5(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rs(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=h5(r,i.root,this.visualElement.getTransformPagePoint());let a=b5(i.layout.layoutBox,o);if(n){const c=n(i5(a));this.hasMutatedConstraints=!!c,c&&(a=o1(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(!rs(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]=x5({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;T5.set(this.visualElement,this);const t=this.visualElement.current,n=Mo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();rs(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=Po(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 C5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P5 extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new E5(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 I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class A5 extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Mo(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 $1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Io={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=$1(e,t.target.x),r=$1(e,t.target.y);return`${n}% ${r}%`}},M5={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 O5 extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;k$(_5),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 D1(e){const[t,n]=Cv(),r=_.useContext(vf);return v.jsx(O5,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Lv),isPresent:t,safeToRemove:n})}const _5={borderRadius:{...Io,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:M5};function I5(e,t,n){const r=Et(e)?e:bo(e);return r.start(hd("",r,t,n)),r.animation}function $5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const D5=(e,t)=>e.depth-t.depth;class R5{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(D5),this.isDirty=!1,this.children.forEach(t)}}function N5(e,t){const n=Nn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],L5=R1.length,N1=e=>typeof e=="string"?parseFloat(e):e,L1=e=>typeof e=="number"||Se.test(e);function k5(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,j5(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,F5(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<L5;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||L1(u)===L1(d)?(e[c]=Math.max(rt(N1(u),N1(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 k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const j5=j1(0,.5,mb),F5=j1(.5,.95,Nt);function j1(e,t,n){return r=>r<e?0:r>t?1:n(os(e,t,r))}function F1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){F1(e.x,t.x),F1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(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 V5(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=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function W1(e,t,[n,r,i],o,a){V5(e,t[n],t[r],t[i],t.scale,o,a)}const B5=["x","scaleX","originX"],W5=["y","scaleY","originY"];function U1(e,t,n,r){W1(e.x,t,B5,n?n.x:void 0,r?r.x:void 0),W1(e.y,t,W5,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function U5(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z5{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 G5(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"],Y5={visibility:"hidden"},Z1=1e3;let H5=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 J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(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&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=H5++,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(X5),this.nodes.forEach(t6),this.nodes.forEach(n6),this.nodes.forEach(Z5)},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 R5)}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=$5(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=N5(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}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()||a6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!q1(this.targetLayout,S),P=!p&&y;if(this.options.layoutRoot||this.resumeFrom||P||p&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,P);const $={...jf(b,"layout"),onPlay:T,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||tx(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(r6),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&&J1(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(ex);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(e6),this.nodes.forEach(q5),this.nodes.forEach(K5),this.clearAllSnapshots();const c=Nn.now();vt.delta=Xn(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(J5),this.sharedNodes.forEach(i6)}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&&!G1(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)),l6(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(c6))){const{scroll:h}=this.root;h&&(us(u.x,h.offset.x),us(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),us(u.x,m.offset.x),us(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&&fs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&fs(u,h.latestValues)}return hi(this.latestValues)&&fs(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),U1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&U1(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(),_o(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(),f5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(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(),_o(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)||m1(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;d5(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():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(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=cs(),this.projectionDelta=cs(),this.projectionDeltaWithTransform=cs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=cs();(!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(o6));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const A=$/1e3;nx(m.x,a.x,A),nx(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s6(this.relativeTarget,this.relativeTargetOrigin,p,A),P&&U5(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=lt()),sn(P,this.relativeTarget)),b&&(this.animationValues=h,k5(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=I5(0,Z1,{...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(Z1),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&&ax(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),fs(c,h),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new z5),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 Y5;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=G5(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 po){if(p[b]===void 0)continue;const{correct:T,applyTo:w,isCSSVariable:E}=po[b],P=d.transform==="none"?p[b]:T(p[b],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=P}else E?this.options.visualElement.renderState.vars[b]=P:d[b]=P}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(ex),this.root.sharedNodes.clear()}}}function q5(e){e.updateLayout()}function K5(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}):ax(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=cs();Oo(c,r,n.layoutBox);const u=cs();a?Oo(u,e.applyTransform(i,!0),n.measuredBox):Oo(u,r,n.layoutBox);const d=!G1(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();_o(S,n.layoutBox,p.layoutBox);const b=lt();_o(b,r,y.layoutBox),q1(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 X5(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 Z5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J5(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function e6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t6(e){e.resolveTargetDelta()}function n6(e){e.calcProjection()}function r6(e){e.resetSkewAndRotation()}function i6(e){e.removeLeadSnapshot()}function nx(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 rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function s6(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function o6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a6={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Nt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function l6(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!u5(K1(t),K1(n),.2)}function c6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const u6=Q1({attachResizeListener:(e,t)=>Po(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){const e=new u6({});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"}),f6={pan:{Feature:A5},drag:{Feature:P5,ProjectionNode:lx,MeasureLayout:D1}};function d6(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 cx(e,t){const n=d6(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function h6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(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,Ao(t)))}class m6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=h6(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class p6 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=Eo(Po(this.node.current,"focus",()=>this.onFocus()),Po(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,g6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y6(e){return g6.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Cd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const v6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if($o.has(n))return;Cd(n,"down");const i=hx(()=>{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 mx(e){return pd(e)&&!s1()}function b6(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!mx(y)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(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=>v6(d,i)),!y6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(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,Ao(t)))}class x6 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b6(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pd=new WeakMap,Ad=new WeakMap,w6=e=>{const t=Pd.get(e.target);t&&t(e)},S6=e=>{e.forEach(w6)};function T6({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(S6,{root:e,...t})),r[i]}function E6(e,t,n){const r=T6(t);return Pd.set(e,n),r.observe(e),()=>{Pd.delete(e),r.unobserve(e)}}const C6={some:0,all:1};class P6 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:C6[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 E6(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(A6(t,n))&&this.startObserver()}unmount(){}}function A6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M6={inView:{Feature:P6},tap:{Feature:x6},focus:{Feature:p6},hover:{Feature:m6}},O6={layout:{ProjectionNode:lx,MeasureLayout:D1}},Md={current:null},gx={current:!1};function _6(){if(gx.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 I6=[...Nb,Ct,Ar],$6=e=>I6.find(Rb(e)),D6=new WeakMap;function R6(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,bo(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,bo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class N6{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=Nn.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=Dv(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,D6.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)),gx.current||_6(),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 ns){const n=ns[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<yx.length;r++){const i=yx[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=R6(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=bo(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"&&($b(i)||gb(i))?i=parseFloat(i):!$6(i)&&Ar.test(n)&&(i=Eb(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=Nf(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 vx extends N6{constructor(){super(...arguments),this.KeyframeResolver=kb}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 L6(e){return window.getComputedStyle(e)}class k6 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(li.has(n))return WD(t,n);{const r=L6(t),i=(Af(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){_f(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return kf(t,n,r)}}class j6 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Pf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(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){Zv(t,n,r,i)}mount(t){this.isSVGTag=Rf(t.tagName),super.mount(t)}}const F6=(e,t)=>$f(e)?new j6(t):new k6(t,{allowProjection:e!==_.Fragment}),V6=aD({...t5,...M6,...f6,...O6},F6),Ze=E$(V6),Od={defaultColorScheme:"aqua",t:e=>e},bx=_.createContext(Od),Ue=()=>_.useContext(bx),xx=({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(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(xs,{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(Ie,{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(jo,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&v.jsx(jo,{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 B6={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"]},W6={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"]},U6={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"]},z6={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"]},G6={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 us(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function qe(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 $o(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 Y6(e){return["table","td","th"].includes(us(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=qe(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 H6(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(Id(t))return t;if(nl(t))return null;t=Qn(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(us(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&$o(t)?t:Sx(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(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||[],$o(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 Tx(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 Do(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 Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){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 q6(e){return Z6()?!1:!Px()&&e.width===0&&e.height===0||Px()&&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 K6(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function X6(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Z6(){return Cx().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function J6(e){return"nativeEvent"in e}function Q6(e){return e.matches("html,body")}function ai(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 fs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const eR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(eR)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,jn=e=>({x:e,y:e}),tR={left:"right",right:"left",bottom:"top",top:"bottom"},nR={start:"end",end:"start"};function Rd(e,t,n){return Yt(e,_r(t,n))}function ds(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function hs(e){return e.split("-")[1]}function Mx(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Mx(li(e))}function rR(e,t,n){n===void 0&&(n=!1);const r=hs(e),i=Ld(e),o=Nd(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 iR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>nR[t])}function sR(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 oR(e,t,n,r){const i=hs(e);let o=sR(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=>tR[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ox(e){return typeof e!="number"?aR(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=li(t),a=Ld(t),c=Nd(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(hs(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const lR=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:C,y:P,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=C??h,m=P??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}=ds(t,e),S=Ox(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})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:P,strategy:u}):C);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 cR=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}=ds(e,t)||{};if(d==null)return{};const m=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",C=T?"bottom":"right",P=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-p[y]-o.floating[S],A=p[y]-o.reference[y],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=R?R[P]:0;(!k||!await(a.isElement==null?void 0:a.isElement(R)))&&(k=c.floating[P]||o.floating[S]);const F=$/2-A/2,z=k/2-b[S]/2-1,Q=_r(m[w],z),te=_r(m[C],z),le=Q,ve=k-b[S]-te,de=k/2-b[S]/2+F,fe=Rd(le,de,ve),he=!u.arrow&&hs(i)!=null&&de!==fe&&o.reference[S]/2-(de<le?Q:te)-b[S]/2<0,V=he?de<le?de-le:de-ve:0;return{[y]:p[y]+V,data:{[y]:fe,centerOffset:de-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),uR=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}=ds(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),C=li(c),P=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(P||!b?[al(c)]:iR(c)),R=S!=="none";!p&&R&&A.push(...oR(c,b,S,$));const k=[c,...A],F=await jd(t,T),z=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const de=rR(i,a,$);z.push(F[de[0]],F[de[1]])}if(Q=[...Q,{placement:i,overflows:z}],!z.every(de=>de<=0)){var te,le;const de=(((te=o.flip)==null?void 0:te.index)||0)+1,fe=k[de];if(fe)return{data:{index:de,overflows:Q},reset:{placement:fe}};let he=(le=Q.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!he)switch(y){case"bestFit":{var ve;const V=(ve=Q.filter(B=>{if(R){const G=li(B.placement);return G===C||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,O)=>G+O,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:ve[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function fR(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=hs(n),u=li(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ds(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 dR=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 fR(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}}}}},hR=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:C}=T;return{x:w,y:C}}},...u}=ds(e,t),d={x:n,y:r},h=await jd(t,u),m=li(Ir(i)),p=Mx(m);let y=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=y+h[T],P=y-h[w];y=Rd(C,y,P)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=S+h[T],P=S-h[w];S=Rd(C,S,P)}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}}}}}},mR=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}=ds(e,t),h=await jd(t,d),m=Ir(i),p=hs(i),y=li(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 C=b-h.top-h.bottom,P=S-h.left-h.right,$=_r(b-h[T],C),A=_r(S-h[w],P),R=!t.middlewareData.shift;let k=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),R&&!p){const Q=Yt(h.left,0),te=Yt(h.right,0),le=Yt(h.top,0),ve=Yt(h.bottom,0);y?F=S-2*(Q!==0||te!==0?Q+te:Yt(h.left,h.right)):k=b-2*(le!==0||ve!==0?le+ve:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:k});const z=await a.getDimensions(c.floating);return S!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ix(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 qe(e)?e:e.contextElement}function ms(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(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 pR=jn(0);function $x(e){const t=Lt(e);return!rl()||!t.visualViewport?pR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=jn(1);t&&(r?qe(r)&&(a=ms(r)):a=ms(e));const c=gR(o,n,r)?$x(o):jn(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&&qe(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=ms(b),w=b.getBoundingClientRect(),C=on(b),P=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*T.x,$=w.top+(b.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=P,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:ci(kn(e)).left+n}function Dx(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 yR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!o)&&((us(r)!=="body"||$o(a))&&(u=il(r)),kt(r))){const y=ci(r);d=ms(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Dx(a,u,!0):jn(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 vR(e){return Array.from(e.getClientRects())}function bR(e){const t=kn(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 xR(e,t){const n=Lt(e),r=kn(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 wR(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?ms(e):jn(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 Rx(e,t,n){let r;if(t==="viewport")r=xR(e,n);else if(t==="document")r=bR(kn(e));else if(qe(t))r=wR(t,n);else{const i=$x(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Nx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Nx(n,t)}function SR(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>qe(c)&&us(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(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)||$o(a)&&!u&&Nx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:SR(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(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},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ER(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function CR(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=ci(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((us(t)!=="body"||$o(i))&&(c=il(t)),r){const p=ci(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?Dx(i,c):jn(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 Lx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Bd(i))return i;i=Qn(i)}return n}let r=Lx(e,t);for(;r&&Y6(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||H6(e)||n}const PR=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:CR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AR(e){return on(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:yR,getDocumentElement:kn,getClippingRect:TR,getOffsetParent:kx,getElementRects:PR,getClientRects:vR,getDimensions:ER,getScale:ms,isElement:qe,isRTL:AR};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OR(e,t){let n=null,r;const i=kn(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),P={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(R){const k=R[0].intersectionRatio;if(k!==u){if(!$)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}n.observe(e)}return a(!0),o}function ui(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?OR(d,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,b=u?ci(e):null;u&&T();function T(){const w=ci(e);b&&!jx(b,w)&&n(),b=w,S=requestAnimationFrame(T)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const _R=dR,IR=hR,$R=uR,DR=mR,Fx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return lR(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 Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Wd(e){const t=Z.useRef(e);return cl(()=>{t.current=e}),t}function NR(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]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=Z.useState(r);ul(p,r)||y(r);const[S,b]=Z.useState(null),[T,w]=Z.useState(null),C=Z.useCallback(B=>{B!==R.current&&(R.current=B,b(B))},[]),P=Z.useCallback(B=>{B!==k.current&&(k.current=B,w(B))},[]),$=o||S,A=a||T,R=Z.useRef(null),k=Z.useRef(null),F=Z.useRef(h),z=u!=null,Q=Wd(u),te=Wd(i),le=Wd(d),ve=Z.useCallback(()=>{if(!R.current||!k.current)return;const B={placement:t,strategy:n,middleware:p};te.current&&(B.platform=te.current),RR(R.current,k.current,B).then(G=>{const O={...G,isPositioned:le.current!==!1};de.current&&!ul(F.current,O)&&(F.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,te,le]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const de=Z.useRef(!1);cl(()=>(de.current=!0,()=>{de.current=!1}),[]),cl(()=>{if($&&(R.current=$),A&&(k.current=A),$&&A){if(Q.current)return Q.current($,A,ve);ve()}},[$,A,ve,Q,z]);const fe=Z.useMemo(()=>({reference:R,floating:k,setReference:C,setFloating:P}),[C,P]),he=Z.useMemo(()=>({reference:$,floating:A}),[$,A]),V=Z.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const G=Bx(he.floating,h.x),O=Bx(he.floating,h.y);return c?{...B,transform:"translate("+G+"px, "+O+"px)",...Vx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:O}},[n,c,he.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:ve,refs:fe,elements:he,floatingStyles:V}),[h,ve,fe,he,V])}const LR=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?Fx({element:r.current,padding:i}).fn(n):{}:r?Fx({element:r,padding:i}).fn(n):{}}}},fi=(e,t)=>({..._R(e),options:[e,t]}),di=(e,t)=>({...IR(e),options:[e,t]}),hi=(e,t)=>({...$R(e),options:[e,t]}),No=(e,t)=>({...DR(e),options:[e,t]}),ps=(e,t)=>({...LR(e),options:[e,t]}),Wx={...Z},kR=Wx.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),Z.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 $r=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ux=!1,jR=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jR++;function FR(){const[e,t]=Z.useState(()=>Ux?zx():void 0);return $r(()=>{e==null&&t(zx())},[]),Z.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||FR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function VR(){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 BR(){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 WR=Z.createContext(null),UR=Z.createContext(null),zd=()=>{var e;return((e=Z.useContext(WR))==null?void 0:e.id)||null},Gd=()=>Z.useContext(UR);function Yd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function mi(e){const t=I.useRef(e);return $r(()=>{t.current=e}),t}const Yx=Yd("safe-polygon");function Hd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zR(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=mi(d),T=mi(u),w=mi(n),C=Z.useRef(),P=Z.useRef(-1),$=Z.useRef(),A=Z.useRef(-1),R=Z.useRef(!0),k=Z.useRef(!1),F=Z.useRef(()=>{}),z=Z.useRef(!1),Q=Z.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]);Z.useEffect(()=>{if(!c)return;function V(B){let{open:G}=B;G||(an(P),an(A),R.current=!0,z.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Z.useEffect(()=>{if(!c||!b.current||!n)return;function V(G){Q()&&r(!1,G,"hover")}const B=ai(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,b,Q]);const te=Z.useCallback(function(V,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const O=Hd(T.current,"close",C.current);O&&!$.current?(an(P),P.current=window.setTimeout(()=>r(!1,V,G),O)):B&&(an(P),r(!1,V,G))},[T,r]),le=er(()=>{F.current(),$.current=void 0}),ve=er(()=>{if(k.current){const V=ai(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Yx),k.current=!1}}),de=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function V(N){if(an(P),R.current=!1,h&&!Ro(C.current)||m>0&&!Hd(T.current,"open"))return;const q=Hd(T.current,"open",C.current);q?P.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},q):n||r(!0,N,"hover")}function B(N){if(de())return;F.current();const q=ai(a.floating);if(an(A),z.current=!1,b.current&&i.current.floatingContext){n||an(P),$.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ve(),le(),de()||te(N,!0,"safe-polygon")}});const ce=$.current;q.addEventListener("mousemove",ce),F.current=()=>{q.removeEventListener("mousemove",ce)};return}(C.current==="touch"?!Do(a.floating,N.relatedTarget):!0)&&te(N)}function G(N){de()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ve(),le(),de()||te(N)}})(N))}if(qe(a.domReference)){var O;const N=a.domReference;return n&&N.addEventListener("mouseleave",G),(O=a.floating)==null||O.addEventListener("mouseleave",G),p&&N.addEventListener("mousemove",V,{once:!0}),N.addEventListener("mouseenter",V),N.addEventListener("mouseleave",B),()=>{var q;n&&N.removeEventListener("mouseleave",G),(q=a.floating)==null||q.removeEventListener("mouseleave",G),p&&N.removeEventListener("mousemove",V),N.removeEventListener("mouseenter",V),N.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,te,le,ve,r,n,w,y,T,b,i,de]),$r(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&Q()){k.current=!0;const G=a.floating;if(qe(a.domReference)&&G){var B;const O=ai(a.floating).body;O.setAttribute(Yx,"");const N=a.domReference,q=y==null||(B=y.nodesRef.current.find(se=>se.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return q&&(q.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",G.style.pointerEvents=""}}}},[c,n,S,a,y,b,Q]),$r(()=>{n||(C.current=void 0,z.current=!1,le(),ve())},[n,le,ve]),Z.useEffect(()=>()=>{le(),an(P),an(A),ve()},[c,a.domReference,le,ve]);const fe=Z.useMemo(()=>{function V(B){C.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:G}=B;function O(){!R.current&&!w.current&&r(!0,G,"hover")}h&&!Ro(C.current)||n||m===0||z.current&&B.movementX**2+B.movementY**2<2||(an(A),C.current==="touch"?O():(z.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=Z.useMemo(()=>({onMouseEnter(){an(P)},onMouseLeave(V){de()||te(V.nativeEvent,!1)}}),[te,de]);return Z.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 GR="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function gs(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=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Ro(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}Ro(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||Hx(b))&&(b.key===" "&&!qx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Hx(b)||qx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Z.useMemo(()=>a?{reference:S}:{},[a,S])}const YR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=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 pi(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=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,C=Z.useRef(!1),P=Z.useRef(!1),{escapeKey:$,outsidePress:A}=Kx(y),{escapeKey:R,outsidePress:k}=Kx(S),F=Z.useRef(!1),z=er(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 G=!0;if(B.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){G=!1;return}}),!G)return}r(!1,J6(fe)?fe.nativeEvent:fe,"escape-key")}),Q=er(fe=>{var he;const V=()=>{var B;z(fe),(B=fs(fe))==null||B.removeEventListener("keydown",V)};(he=fs(fe))==null||he.addEventListener("keydown",V)}),te=er(fe=>{var he;const V=C.current;C.current=!1;const B=P.current;if(P.current=!1,d==="click"&&B||V||typeof w=="function"&&!w(fe))return;const G=fs(fe),O="["+Yd("inert")+"]",N=ai(i.floating).querySelectorAll(O);let q=qe(G)?G:null;for(;q&&!Jn(q);){const ee=Qn(q);if(Jn(ee)||!qe(ee))break;q=ee}if(N.length&&qe(G)&&!Q6(G)&&!Do(G,i.floating)&&Array.from(N).every(ee=>!Do(q,ee)))return;if(kt(G)&&de){const ee=Jn(G),oe=on(G),ne=/auto|scroll/,ue=ee||ne.test(oe.overflowX),Ce=ee||ne.test(oe.overflowY),Ve=ue&&G.clientWidth>0&&G.scrollWidth>G.clientWidth,re=Ce&&G.clientHeight>0&&G.scrollHeight>G.clientHeight,pe=oe.direction==="rtl",De=re&&(pe?fe.offsetX<=G.offsetWidth-G.clientWidth:fe.offsetX>G.clientWidth),ft=Ve&&fe.offsetY>G.clientHeight;if(De||ft)return}const se=(he=o.current.floatingContext)==null?void 0:he.nodeId,ce=b&&qd(b.nodesRef.current,se).some(ee=>{var oe;return Dd(fe,(oe=ee.context)==null?void 0:oe.elements.floating)});if(Dd(fe,i.floating)||Dd(fe,i.domReference)||ce)return;const X=b?qd(b.nodesRef.current,se):[];if(X.length>0){let ee=!0;if(X.forEach(oe=>{var ne;if((ne=oe.context)!=null&&ne.open&&!oe.context.dataRef.current.__outsidePressBubbles){ee=!1;return}}),!ee)return}r(!1,fe,"outside-press")}),le=er(fe=>{var he;const V=()=>{var B;te(fe),(B=fs(fe))==null||B.removeEventListener(d,V)};(he=fs(fe))==null||he.addEventListener(d,V)});Z.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let fe=-1;function he(N){r(!1,N,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const G=ai(i.floating);c&&(G.addEventListener("keydown",R?Q:z,R),G.addEventListener("compositionstart",V),G.addEventListener("compositionend",B)),w&&G.addEventListener(d,k?le:te,k);let O=[];return p&&(qe(i.domReference)&&(O=Or(i.domReference)),qe(i.floating)&&(O=O.concat(Or(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(N=>{var q;return N!==((q=G.defaultView)==null?void 0:q.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(G.removeEventListener("keydown",R?Q:z,R),G.removeEventListener("compositionstart",V),G.removeEventListener("compositionend",B)),w&&G.removeEventListener(d,k?le:te,k),O.forEach(N=>{N.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,w,d,n,r,p,a,$,A,z,R,Q,te,k,le]),Z.useEffect(()=>{C.current=!1},[w,d]);const ve=Z.useMemo(()=>({onKeyDown:z,...h&&{[YR[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[z,r,h,m]),de=Z.useMemo(()=>({onKeyDown:z,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[HR[d]]:()=>{C.current=!0}}),[z,d]);return Z.useMemo(()=>a?{reference:ve,floating:de}:{},[a,ve,de])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=Z.useRef({}),[a]=Z.useState(()=>BR()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&VR("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]=Z.useState(r.reference),h=er((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=Z.useMemo(()=>({setPositionReference:d}),[]),p=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function gi(e){e===void 0&&(e={});const{nodeId:t}=e,n=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||o,m=Z.useRef(null),p=Gd();$r(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(P=>{const $=qe(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;u($),y.refs.setReference($)},[y.refs]),b=Z.useCallback(P=>{(qe(P)||P===null)&&(m.current=P,a(P)),(qe(y.refs.reference.current)||y.refs.reference.current===null||P!==null&&!qe(P))&&y.refs.setReference(P)},[y.refs]),T=Z.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),C=Z.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return $r(()=>{r.dataRef.current.floatingContext=C;const P=p==null?void 0:p.nodesRef.current.find($=>$.id===t);P&&(P.context=C)}),Z.useMemo(()=>({...y,context:C,refs:T,elements:w}),[y,T,w,C])}function KR(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=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(ai(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]),Z.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]),Z.useEffect(()=>()=>{an(h)},[]);const p=Z.useMemo(()=>({onPointerDown(y){q6(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=fs(y.nativeEvent);if(u&&qe(S))try{if(K6()&&X6())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,T=qe(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&C===a.domReference||Do((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,C)||Do(a.domReference,C)||T||r(!1,b,"focus")})}}),[o,a.domReference,r,u]);return Z.useMemo(()=>c?{reference:p}:{},[c,p])}const Xx="active",Zx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[GR]:""},...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&&[Xx,Zx].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 yi(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=Z.useCallback(c=>Kd(c,e,"reference"),t),o=Z.useCallback(c=>Kd(c,e,"floating"),n),a=Z.useCallback(c=>Kd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const XR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ZR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=XR.get(a))!=null?n:a,u=Gx(),h=zd()!=null,m=Z.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=Z.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=Z.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 Z.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ys(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function QR(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]=Z.useState("unmounted"),d=JR(n,a);return!d&&c==="close"&&u("unmounted"),$r(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function vs(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=Z.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]=Z.useState(()=>({...ys(o,d),...ys(n,d)})),{isMounted:b,status:T}=QR(e,{duration:a}),w=mi(n),C=mi(r),P=mi(i),$=mi(o);return $r(()=>{const A=ys(w.current,d),R=ys(P.current,d),k=ys($.current,d),F=ys(C.current,d)||Object.keys(A).reduce((z,Q)=>(z[Q]="",z),{});if(T==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...A})),T==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...k,...F}),T==="close"){const z=R||A;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,P,w,C,$,m,T,d]),{isMounted:b,styles:y}}const Lo=({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}=gi({strategy:a,open:d,onOpenChange:k=>{k||m()},middleware:[fi(c),hi(),di({padding:u})],whileElementsMounted:ui,placement:i}),w=gs(T),C=pi(T),{getReferenceProps:P,getFloatingProps:$}=yi([w,C]),{isMounted:A,styles:R}=vs(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,...P(),className:"reference-element",children:r}),A&&v.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:p??0,...R,zIndex:9999},...$(),className:"floating-element",children:v.jsx(bs,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},eN=({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(Ze.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(Ze.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"})]})},tN=({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 B6={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"]},W6={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"]},U6={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"]},z6={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"]},G6={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 ds(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function qe(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 Do(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 Y6(e){return["table","td","th"].includes(ds(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=qe(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 H6(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(Id(t))return t;if(nl(t))return null;t=Qn(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(ds(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(ds(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||kn(e);return _d(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Do(t)?t:Sx(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(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||[],Do(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 Tx(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 Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){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 q6(e){return Z6()?!1:!Px()&&e.width===0&&e.height===0||Px()&&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 K6(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function X6(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Z6(){return Cx().includes("jsdom/")}function No(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function J6(e){return"nativeEvent"in e}function Q6(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 hs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const eR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(eR)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,jn=e=>({x:e,y:e}),tR={left:"right",right:"left",bottom:"top",top:"bottom"},nR={start:"end",end:"start"};function Rd(e,t,n){return Yt(e,_r(t,n))}function ms(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ps(e){return e.split("-")[1]}function Mx(e){return e==="x"?"y":"x"}function Nd(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Mx(pi(e))}function rR(e,t,n){n===void 0&&(n=!1);const r=ps(e),i=Ld(e),o=Nd(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 iR(e){const t=al(e);return[kd(e),t,kd(t)]}function kd(e){return e.replace(/start|end/g,t=>nR[t])}function sR(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 oR(e,t,n,r){const i=ps(e);let o=sR(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=>tR[t])}function aR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ox(e){return typeof e!="number"?aR(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=Nd(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(ps(t)){case"start":y[a]-=p*(n&&d?-1:1);break;case"end":y[a]+=p*(n&&d?-1:1);break}return y}const lR=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:P,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=P??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}=ms(t,e),S=Ox(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,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:P,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 cR=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}=ms(e,t)||{};if(d==null)return{};const m=Ox(h),p={x:n,y:r},y=Ld(i),S=Nd(y),b=await a.getDimensions(d),T=y==="y",w=T?"top":"left",E=T?"bottom":"right",P=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 k=D?D[P]:0;(!k||!await(a.isElement==null?void 0:a.isElement(D)))&&(k=c.floating[P]||o.floating[S]);const F=$/2-A/2,z=k/2-b[S]/2-1,J=_r(m[w],z),ne=_r(m[E],z),le=J,ye=k-b[S]-ne,de=k/2-b[S]/2+F,ue=Rd(le,de,ye),he=!u.arrow&&ps(i)!=null&&de!==ue&&o.reference[S]/2-(de<le?J:ne)-b[S]/2<0,V=he?de<le?de-le:de-ye:0;return{[y]:p[y]+V,data:{[y]:ue,centerOffset:de-ue-V,...he&&{alignmentOffset:V}},reset:he}}}),uR=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}=ms(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),E=pi(c),P=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(P||!b?[al(c)]:iR(c)),D=S!=="none";!p&&D&&A.push(...oR(c,b,S,$));const k=[c,...A],F=await jd(t,T),z=[];let J=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&z.push(F[w]),m){const de=rR(i,a,$);z.push(F[de[0]],F[de[1]])}if(J=[...J,{placement:i,overflows:z}],!z.every(de=>de<=0)){var ne,le;const de=(((ne=o.flip)==null?void 0:ne.index)||0)+1,ue=k[de];if(ue)return{data:{index:de,overflows:J},reset:{placement:ue}};let he=(le=J.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!he)switch(y){case"bestFit":{var ye;const V=(ye=J.filter(B=>{if(D){const G=pi(B.placement);return G===E||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,O)=>G+O,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:ye[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function fR(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=ps(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ms(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 dR=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 fR(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}}}}},hR=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}=ms(e,t),d={x:n,y:r},h=await jd(t,u),m=pi(Ir(i)),p=Mx(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],P=y-h[w];y=Rd(E,y,P)}if(a){const T=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=S+h[T],P=S-h[w];S=Rd(E,S,P)}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}}}}}},mR=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}=ms(e,t),h=await jd(t,d),m=Ir(i),p=ps(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,P=S-h.left-h.right,$=_r(b-h[T],E),A=_r(S-h[w],P),D=!t.middlewareData.shift;let k=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=E),D&&!p){const J=Yt(h.left,0),ne=Yt(h.right,0),le=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(J!==0||ne!==0?J+ne:Yt(h.left,h.right)):k=b-2*(le!==0||ye!==0?le+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:k});const z=await a.getDimensions(c.floating);return S!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ix(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 qe(e)?e:e.contextElement}function gs(e){const t=Fd(e);if(!kt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(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 pR=jn(0);function $x(e){const t=Lt(e);return!rl()||!t.visualViewport?pR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gR(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=jn(1);t&&(r?qe(r)&&(a=gs(r)):a=gs(e));const c=gR(o,n,r)?$x(o):jn(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&&qe(r)?Lt(r):r;let S=p,b=$d(S);for(;b&&r&&y!==S;){const T=gs(b),w=b.getBoundingClientRect(),E=on(b),P=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+=P,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(kn(e)).left+n}function Dx(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 yR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=kt(r);if((m||!m&&!o)&&((ds(r)!=="body"||Do(a))&&(u=il(r)),kt(r))){const y=gi(r);d=gs(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const p=a&&!m&&!o?Dx(a,u,!0):jn(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 vR(e){return Array.from(e.getClientRects())}function bR(e){const t=kn(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 xR(e,t){const n=Lt(e),r=kn(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 wR(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?gs(e):jn(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 Rx(e,t,n){let r;if(t==="viewport")r=xR(e,n);else if(t==="document")r=bR(kn(e));else if(qe(t))r=wR(t,n);else{const i=$x(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Nx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Nx(n,t)}function SR(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>qe(c)&&ds(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(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)||Do(a)&&!u&&Nx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function TR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:SR(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(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},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ER(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function CR(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ds(t)!=="body"||Do(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?Dx(i,c):jn(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 Lx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Lt(e);if(nl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Bd(i))return i;i=Qn(i)}return n}let r=Lx(e,t);for(;r&&Y6(r)&&Bd(r);)r=Lx(r,t);return r&&Jn(r)&&Bd(r)&&!Id(r)?n:r||H6(e)||n}const PR=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:CR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AR(e){return on(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:yR,getDocumentElement:kn,getClippingRect:TR,getOffsetParent:kx,getElementRects:PR,getClientRects:vR,getDimensions:ER,getScale:gs,isElement:qe,isRTL:AR};function jx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OR(e,t){let n=null,r;const i=kn(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),P={rootMargin:-S+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const k=D[0].intersectionRatio;if(k!==u){if(!$)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!jx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,P)}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?OR(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 P;(P=y)==null||P.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&&!jx(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 _R=dR,IR=hR,$R=uR,DR=mR,Fx=cR,RR=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return lR(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 Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Wd(e){const t=ee.useRef(e);return cl(()=>{t.current=e}),t}function NR(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]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=ee.useState(r);ul(p,r)||y(r);const[S,b]=ee.useState(null),[T,w]=ee.useState(null),E=ee.useCallback(B=>{B!==D.current&&(D.current=B,b(B))},[]),P=ee.useCallback(B=>{B!==k.current&&(k.current=B,w(B))},[]),$=o||S,A=a||T,D=ee.useRef(null),k=ee.useRef(null),F=ee.useRef(h),z=u!=null,J=Wd(u),ne=Wd(i),le=Wd(d),ye=ee.useCallback(()=>{if(!D.current||!k.current)return;const B={placement:t,strategy:n,middleware:p};ne.current&&(B.platform=ne.current),RR(D.current,k.current,B).then(G=>{const O={...G,isPositioned:le.current!==!1};de.current&&!ul(F.current,O)&&(F.current=O,mT.flushSync(()=>{m(O)}))})},[p,t,n,ne,le]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const de=ee.useRef(!1);cl(()=>(de.current=!0,()=>{de.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(k.current=A),$&&A){if(J.current)return J.current($,A,ye);ye()}},[$,A,ye,J,z]);const ue=ee.useMemo(()=>({reference:D,floating:k,setReference:E,setFloating:P}),[E,P]),he=ee.useMemo(()=>({reference:$,floating:A}),[$,A]),V=ee.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const G=Bx(he.floating,h.x),O=Bx(he.floating,h.y);return c?{...B,transform:"translate("+G+"px, "+O+"px)",...Vx(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:O}},[n,c,he.floating,h.x,h.y]);return ee.useMemo(()=>({...h,update:ye,refs:ue,elements:he,floatingStyles:V}),[h,ye,ue,he,V])}const LR=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?Fx({element:r.current,padding:i}).fn(n):{}:r?Fx({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({..._R(e),options:[e,t]}),Rr=(e,t)=>({...IR(e),options:[e,t]}),Nr=(e,t)=>({...$R(e),options:[e,t]}),ys=(e,t)=>({...DR(e),options:[e,t]}),vs=(e,t)=>({...LR(e),options:[e,t]}),Wx={...ee},kR=Wx.useInsertionEffect||(e=>e());function er(e){const t=ee.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kR(()=>{t.current=e}),ee.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 Ux=!1,jR=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jR++;function FR(){const[e,t]=ee.useState(()=>Ux?zx():void 0);return Lr(()=>{e==null&&t(zx())},[]),ee.useEffect(()=>{Ux=!0},[]),e}const Gx=Wx.useId||FR;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function VR(){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 BR(){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 WR=ee.createContext(null),UR=ee.createContext(null),zd=()=>{var e;return((e=ee.useContext(WR))==null?void 0:e.id)||null},Gd=()=>ee.useContext(UR);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 Yx=Yd("safe-polygon");function Hd(e,t,n){return n&&!No(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function zR(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=ee.useRef(),P=ee.useRef(-1),$=ee.useRef(),A=ee.useRef(-1),D=ee.useRef(!0),k=ee.useRef(!1),F=ee.useRef(()=>{}),z=ee.useRef(!1),J=ee.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]);ee.useEffect(()=>{if(!c)return;function V(B){let{open:G}=B;G||(an(P),an(A),D.current=!0,z.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),ee.useEffect(()=>{if(!c||!b.current||!n)return;function V(G){J()&&r(!1,G,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,b,J]);const ne=ee.useCallback(function(V,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const O=Hd(T.current,"close",E.current);O&&!$.current?(an(P),P.current=window.setTimeout(()=>r(!1,V,G),O)):B&&(an(P),r(!1,V,G))},[T,r]),le=er(()=>{F.current(),$.current=void 0}),ye=er(()=>{if(k.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Yx),k.current=!1}}),de=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);ee.useEffect(()=>{if(!c)return;function V(N){if(an(P),D.current=!1,h&&!No(E.current)||m>0&&!Hd(T.current,"open"))return;const K=Hd(T.current,"open",E.current);K?P.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function B(N){if(de())return;F.current();const K=mi(a.floating);if(an(A),z.current=!1,b.current&&i.current.floatingContext){n||an(P),$.current=b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),le(),de()||ne(N,!0,"safe-polygon")}});const Z=$.current;K.addEventListener("mousemove",Z),F.current=()=>{K.removeEventListener("mousemove",Z)};return}(E.current==="touch"?!Ro(a.floating,N.relatedTarget):!0)&&ne(N)}function G(N){de()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){ye(),le(),de()||ne(N)}})(N))}if(qe(a.domReference)){var O;const N=a.domReference;return n&&N.addEventListener("mouseleave",G),(O=a.floating)==null||O.addEventListener("mouseleave",G),p&&N.addEventListener("mousemove",V,{once:!0}),N.addEventListener("mouseenter",V),N.addEventListener("mouseleave",B),()=>{var K;n&&N.removeEventListener("mouseleave",G),(K=a.floating)==null||K.removeEventListener("mouseleave",G),p&&N.removeEventListener("mousemove",V),N.removeEventListener("mouseenter",V),N.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ne,le,ye,r,n,w,y,T,b,i,de]),Lr(()=>{var V;if(c&&n&&(V=b.current)!=null&&V.__options.blockPointerEvents&&J()){k.current=!0;const G=a.floating;if(qe(a.domReference)&&G){var B;const O=mi(a.floating).body;O.setAttribute(Yx,"");const N=a.domReference,K=y==null||(B=y.nodesRef.current.find(oe=>oe.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",N.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{O.style.pointerEvents="",N.style.pointerEvents="",G.style.pointerEvents=""}}}},[c,n,S,a,y,b,J]),Lr(()=>{n||(E.current=void 0,z.current=!1,le(),ye())},[n,le,ye]),ee.useEffect(()=>()=>{le(),an(P),an(A),ye()},[c,a.domReference,le,ye]);const ue=ee.useMemo(()=>{function V(B){E.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:G}=B;function O(){!D.current&&!w.current&&r(!0,G,"hover")}h&&!No(E.current)||n||m===0||z.current&&B.movementX**2+B.movementY**2<2||(an(A),E.current==="touch"?O():(z.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,w,m]),he=ee.useMemo(()=>({onMouseEnter(){an(P)},onMouseLeave(V){de()||ne(V.nativeEvent,!1)}}),[ne,de]);return ee.useMemo(()=>c?{reference:ue,floating:he}:{},[c,ue,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 GR="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(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=ee.useRef(),y=ee.useRef(!1),S=ee.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(No(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}No(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||Hx(b))&&(b.key===" "&&!qx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Hx(b)||qx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return ee.useMemo(()=>a?{reference:S}:{},[a,S])}const YR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},HR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=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=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?T:u,E=ee.useRef(!1),P=ee.useRef(!1),{escapeKey:$,outsidePress:A}=Kx(y),{escapeKey:D,outsidePress:k}=Kx(S),F=ee.useRef(!1),z=er(ue=>{var he;if(!n||!a||!c||ue.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=b?qd(b.nodesRef.current,V):[];if(!$&&(ue.stopPropagation(),B.length>0)){let G=!0;if(B.forEach(O=>{var N;if((N=O.context)!=null&&N.open&&!O.context.dataRef.current.__escapeKeyBubbles){G=!1;return}}),!G)return}r(!1,J6(ue)?ue.nativeEvent:ue,"escape-key")}),J=er(ue=>{var he;const V=()=>{var B;z(ue),(B=hs(ue))==null||B.removeEventListener("keydown",V)};(he=hs(ue))==null||he.addEventListener("keydown",V)}),ne=er(ue=>{var he;const V=E.current;E.current=!1;const B=P.current;if(P.current=!1,d==="click"&&B||V||typeof w=="function"&&!w(ue))return;const G=hs(ue),O="["+Yd("inert")+"]",N=mi(i.floating).querySelectorAll(O);let K=qe(G)?G:null;for(;K&&!Jn(K);){const Q=Qn(K);if(Jn(Q)||!qe(Q))break;K=Q}if(N.length&&qe(G)&&!Q6(G)&&!Ro(G,i.floating)&&Array.from(N).every(Q=>!Ro(K,Q)))return;if(kt(G)&&de){const Q=Jn(G),ae=on(G),re=/auto|scroll/,fe=Q||re.test(ae.overflowX),Ce=Q||re.test(ae.overflowY),Ve=fe&&G.clientWidth>0&&G.scrollWidth>G.clientWidth,ie=Ce&&G.clientHeight>0&&G.scrollHeight>G.clientHeight,pe=ae.direction==="rtl",De=ie&&(pe?ue.offsetX<=G.offsetWidth-G.clientWidth:ue.offsetX>G.clientWidth),ft=Ve&&ue.offsetY>G.clientHeight;if(De||ft)return}const oe=(he=o.current.floatingContext)==null?void 0:he.nodeId,Z=b&&qd(b.nodesRef.current,oe).some(Q=>{var ae;return Dd(ue,(ae=Q.context)==null?void 0:ae.elements.floating)});if(Dd(ue,i.floating)||Dd(ue,i.domReference)||Z)return;const q=b?qd(b.nodesRef.current,oe):[];if(q.length>0){let Q=!0;if(q.forEach(ae=>{var re;if((re=ae.context)!=null&&re.open&&!ae.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}r(!1,ue,"outside-press")}),le=er(ue=>{var he;const V=()=>{var B;ne(ue),(B=hs(ue))==null||B.removeEventListener(d,V)};(he=hs(ue))==null||he.addEventListener(d,V)});ee.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let ue=-1;function he(N){r(!1,N,"ancestor-scroll")}function V(){window.clearTimeout(ue),F.current=!0}function B(){ue=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const G=mi(i.floating);c&&(G.addEventListener("keydown",D?J:z,D),G.addEventListener("compositionstart",V),G.addEventListener("compositionend",B)),w&&G.addEventListener(d,k?le:ne,k);let O=[];return p&&(qe(i.domReference)&&(O=Or(i.domReference)),qe(i.floating)&&(O=O.concat(Or(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(N=>{var K;return N!==((K=G.defaultView)==null?void 0:K.visualViewport)}),O.forEach(N=>{N.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(G.removeEventListener("keydown",D?J:z,D),G.removeEventListener("compositionstart",V),G.removeEventListener("compositionend",B)),w&&G.removeEventListener(d,k?le:ne,k),O.forEach(N=>{N.removeEventListener("scroll",he)}),window.clearTimeout(ue)}},[o,i,c,w,d,n,r,p,a,$,A,z,D,J,ne,k,le]),ee.useEffect(()=>{E.current=!1},[w,d]);const ye=ee.useMemo(()=>({onKeyDown:z,...h&&{[YR[m]]:ue=>{r(!1,ue.nativeEvent,"reference-press")},...m!=="click"&&{onClick(ue){r(!1,ue.nativeEvent,"reference-press")}}}}),[z,r,h,m]),de=ee.useMemo(()=>({onKeyDown:z,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[HR[d]]:()=>{E.current=!0}}),[z,d]);return ee.useMemo(()=>a?{reference:ye,floating:de}:{},[a,ye,de])}function qR(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=ee.useRef({}),[a]=ee.useState(()=>BR()),c=zd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&VR("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]=ee.useState(r.reference),h=er((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=ee.useMemo(()=>({setPositionReference:d}),[]),p=ee.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return ee.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=qR({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=ee.useState(null),[c,u]=ee.useState(null),h=(i==null?void 0:i.domReference)||o,m=ee.useRef(null),p=Gd();Lr(()=>{h&&(m.current=h)},[h]);const y=NR({...e,elements:{...i,...c&&{reference:c}}}),S=ee.useCallback(P=>{const $=qe(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;u($),y.refs.setReference($)},[y.refs]),b=ee.useCallback(P=>{(qe(P)||P===null)&&(m.current=P,a(P)),(qe(y.refs.reference.current)||y.refs.reference.current===null||P!==null&&!qe(P))&&y.refs.setReference(P)},[y.refs]),T=ee.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=ee.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=ee.useMemo(()=>({...y,...r,refs:T,elements:w,nodeId:t}),[y,T,w,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=E;const P=p==null?void 0:p.nodesRef.current.find($=>$.id===t);P&&(P.context=E)}),ee.useMemo(()=>({...y,context:E,refs:T,elements:w}),[y,T,w,E])}function KR(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=ee.useRef(!1),h=ee.useRef(-1),m=ee.useRef(!0);ee.useEffect(()=>{if(!c)return;const y=Lt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(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]),ee.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]),ee.useEffect(()=>()=>{an(h)},[]);const p=ee.useMemo(()=>({onPointerDown(y){q6(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=hs(y.nativeEvent);if(u&&qe(S))try{if(K6()&&X6())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,b=y.nativeEvent,T=qe(S)&&S.hasAttribute(Yd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const E=Tx(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 ee.useMemo(()=>c?{reference:p}:{},[c,p])}const Xx="active",Zx="selected";function Kd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[GR]:""},...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&&[Xx,Zx].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=ee.useCallback(c=>Kd(c,e,"reference"),t),o=ee.useCallback(c=>Kd(c,e,"floating"),n),a=ee.useCallback(c=>Kd(c,e,"item"),r);return ee.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const XR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ZR(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=XR.get(a))!=null?n:a,u=Gx(),h=zd()!=null,m=ee.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=ee.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=ee.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 ee.useMemo(()=>o?{reference:m,floating:p,item:y}:{},[o,m,p,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function bs(e,t){return typeof e=="function"?e(t):e}function JR(e,t){const[n,r]=ee.useState(e);return e&&!n&&r(!0),ee.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function QR(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]=ee.useState("unmounted"),d=JR(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=ee.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]=ee.useState(()=>({...bs(o,d),...bs(n,d)})),{isMounted:b,status:T}=QR(e,{duration:a}),w=yi(n),E=yi(r),P=yi(i),$=yi(o);return Lr(()=>{const A=bs(w.current,d),D=bs(P.current,d),k=bs($.current,d),F=bs(E.current,d)||Object.keys(A).reduce((z,J)=>(z[J]="",z),{});if(T==="initial"&&S(z=>({transitionProperty:z.transitionProperty,...k,...A})),T==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...k,...F}),T==="close"){const z=D||A;S({transitionProperty:Object.keys(z).map(Jx).join(","),transitionDuration:p+"ms",...k,...z})}},[p,P,w,E,$,m,T,d]),{isMounted:b,styles:y}}const Lo=({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:k=>{k||m()},middleware:[Dr(c),Nr(),Rr({padding:u})],whileElementsMounted:$r,placement:i}),w=vi(T),E=kr(T),{getReferenceProps:P,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,...P(),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(xs,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})},eN=({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(Ze.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(Ze.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"})]})},tN=({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 nN={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"]},Qx={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"]},rN={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"]},iN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},sN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},oN=e=>({blue:iN,aqua:sN})[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:C}=ze(),P=oN(c),[$,A]=I.useState(!1),[R,k]=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=DI(u);(!r||B>=r)&&d(B)},10)},z=()=>{w(1),setTimeout(()=>{d(sv(u,1))},10)},Q=B=>{if(i&&B>i||r&&B<r)return;const G=yv(vv(bv(B,0),0),S==="AM"?p%12:p%12+12);m(G),t(G)},te=B=>{y(B);const G=yv(vv(bv(h,0),0),S==="AM"?B%12:B%12+12);m(G),t(G),A(!1)},le=B=>{b(B)},ve=()=>{const B=new Date,G=20,O=5,[N,q]=I.useState(()=>Array.from({length:G+1},(ee,oe)=>{const ne=new Date(B.getFullYear(),B.getMonth()-oe,1);return{name:Dn(ne,"MMMM",{locale:Ji}).replace(/^./,ue=>ue.toUpperCase()),index:ne.getMonth(),year:ne.getFullYear(),displayName:`${Dn(ne,"MMMM",{locale:Ji}).replace(/^./,ue=>ue.toUpperCase())} ${ne.getFullYear()}`}})),se=I.useRef(null),ce=I.useRef(null);I.useEffect(()=>{se.current&&se.current.disconnect(),se.current=new IntersectionObserver(ee=>{ee[0].isIntersecting&&q(oe=>{const ne=oe[oe.length-1],ue=new Date(ne.year,ne.index-1,1),Ce=Array.from({length:O},(Ve,re)=>{const pe=new Date(ue.getFullYear(),ue.getMonth()-re,1);return{name:Dn(pe,"MMMM",{locale:Ji}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:Ji}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),ce.current&&se.current.observe(ce.current)},[N]);const X=(ee,oe)=>{const ne=new Date(u);ne.setMonth(ee),ne.setFullYear(oe),(!r||ne>=r)&&d(ne),k(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:N.map((ee,oe)=>{const ne=oe===N.length-1;return v.jsx("button",{ref:ne?ce:null,onClick:()=>X(ee.index,ee.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===ee.index&&u.getFullYear()===ee.year?P.hoverLight:"transparent",color:u.getMonth()===ee.index&&u.getFullYear()===ee.year?P.text:"inherit"},onMouseEnter:ue=>{u.getMonth()===ee.index&&u.getFullYear()===ee.year||(ue.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:ue=>{u.getMonth()===ee.index&&u.getFullYear()===ee.year||(ue.currentTarget.style.backgroundColor="transparent")},children:ee.displayName},`${ee.name}-${ee.year}-${oe}`)})})},de=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:R,onClose:()=>k(!1),component:ve,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>k(!R),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:Ji}).replace(/^./,B=>B.toUpperCase())}),v.jsx($e,{icon:Qx,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(uh,{variant:"transparent",color:c,icon:z6,onClick:F}),v.jsx(uh,{variant:"transparent",color:c,icon:T_,onClick:z})]})]}),fe=()=>{const B=Ki(R_(u)),G=L_(I_(u)),O=D_({start:B,end:G}),N=new Date;return N.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((q,se)=>{const ce=lv(q,h),X=II(q,u),ee=$I(q),oe=q<N,ne=q>N,ue=!X||oe&&!a||ne&&!o||r&&q<r||i&&q>i;return v.jsx(Ze.div,{className:`
667
+ */const nN={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"]},rN={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"]},Qx={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"]},iN={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"]},sN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},oN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},aN=e=>({blue:sN,aqua:oN})[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:E}=Ue(),P=aN(c),[$,A]=_.useState(!1),[D,k]=_.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=DI(u);(!r||B>=r)&&d(B)},10)},z=()=>{w(1),setTimeout(()=>{d(sv(u,1))},10)},J=B=>{if(i&&B>i||r&&B<r)return;const G=yv(vv(bv(B,0),0),S==="AM"?p%12:p%12+12);m(G),t(G)},ne=B=>{y(B);const G=yv(vv(bv(h,0),0),S==="AM"?B%12:B%12+12);m(G),t(G),A(!1)},le=B=>{b(B)},ye=()=>{const B=new Date,G=20,O=5,[N,K]=_.useState(()=>Array.from({length:G+1},(Q,ae)=>{const re=new Date(B.getFullYear(),B.getMonth()-ae,1);return{name:Dn(re,"MMMM",{locale:es}).replace(/^./,fe=>fe.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Dn(re,"MMMM",{locale:es}).replace(/^./,fe=>fe.toUpperCase())} ${re.getFullYear()}`}})),oe=_.useRef(null),Z=_.useRef(null);_.useEffect(()=>{oe.current&&oe.current.disconnect(),oe.current=new IntersectionObserver(Q=>{Q[0].isIntersecting&&K(ae=>{const re=ae[ae.length-1],fe=new Date(re.year,re.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(fe.getFullYear(),fe.getMonth()-ie,1);return{name:Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Dn(pe,"MMMM",{locale:es}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...ae,...Ce]})}),Z.current&&oe.current.observe(Z.current)},[N]);const q=(Q,ae)=>{const re=new Date(u);re.setMonth(Q),re.setFullYear(ae),(!r||re>=r)&&d(re),k(!1)};return v.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:N.map((Q,ae)=>{const re=ae===N.length-1;return v.jsx("button",{ref:re?Z:null,onClick:()=>q(Q.index,Q.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.hoverLight:"transparent",color:u.getMonth()===Q.index&&u.getFullYear()===Q.year?P.text:"inherit"},onMouseEnter:fe=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(fe.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:fe=>{u.getMonth()===Q.index&&u.getFullYear()===Q.year||(fe.currentTarget.style.backgroundColor="transparent")},children:Q.displayName},`${Q.name}-${Q.year}-${ae}`)})})},de=()=>v.jsxs("div",{className:"flex justify-between items-center mb-8",children:[v.jsx(Lo,{open:D,onClose:()=>k(!1),component:ye,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:v.jsxs("button",{onClick:()=>k(!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:es}).replace(/^./,B=>B.toUpperCase())}),v.jsx(Ie,{icon:Qx,className:"w-12 h-12"})]})}),v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsx(uh,{variant:"transparent",color:c,icon:z6,onClick:F}),v.jsx(uh,{variant:"transparent",color:c,icon:T_,onClick:z})]})]}),ue=()=>{const B=Zi(R_(u)),G=L_(I_(u)),O=D_({start:B,end:G}),N=new Date;return N.setHours(0,0,0,0),v.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,oe)=>{const Z=lv(K,h),q=II(K,u),Q=$I(K),ae=K<N,re=K>N,fe=!q||ae&&!a||re&&!o||r&&K<r||i&&K>i;return v.jsx(Ze.div,{className:`
668
668
  p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
669
- ${ue?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
- `,onClick:()=>!ue&&Q(q),initial:!1,animate:{backgroundColor:ce?P.primaryLight:"transparent",color:ce?P.textLight:ee?P.text:ue?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!ue&&!ce?{backgroundColor:P.hoverLight}:{},whileTap:ue?{}:{backgroundColor:ce?P.primaryDark:P.hoverLight},children:Dn(q,"d")},se)})})},he=()=>{const B=Array.from({length:12},(O,N)=>N+1),G=()=>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:()=>te(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?P.hoverLight:"transparent",color:O===p?P.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:N=>{O!==p&&(N.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:N=>{O!==p&&(N.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:C("time")}),v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsx(Lo,{open:$,onClose:()=>A(!1),component:G,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(tN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),v.jsx(eN,{selectedPeriod:S,handlePeriodChange:le,colorVariants:P})]})]})},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:[de(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.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,leftSide:d,rightSide:h,...m})=>{const{t:p}=ze();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
669
+ ${fe?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
+ `,onClick:()=>!fe&&J(K),initial:!1,animate:{backgroundColor:Z?P.primaryLight:"transparent",color:Z?P.textLight:Q?P.text:fe?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!fe&&!Z?{backgroundColor:P.hoverLight}:{},whileTap:fe?{}:{backgroundColor:Z?P.primaryDark:P.hoverLight},children:Dn(K,"d")},oe)})})},he=()=>{const B=Array.from({length:12},(O,N)=>N+1),G=()=>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:()=>ne(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?P.hoverLight:"transparent",color:O===p?P.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:N=>{O!==p&&(N.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:N=>{O!==p&&(N.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(Lo,{open:$,onClose:()=>A(!1),component:G,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:v.jsx(tN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),v.jsx(eN,{selectedPeriod:S,handlePeriodChange:le,colorVariants:P})]})]})},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:[de(),v.jsx(Kn,{initial:!1,mode:"popLayout",children:v.jsx(Ze.div,{variants:V,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ue()},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,leftSide:d,rightSide:h,...m})=>{const{t:p}=Ue();return v.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:r,className:`
671
671
  flex items-center justify-between gap-8 p-16
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:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},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 ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},ew=e=>Dn(e,"dd/MM/yyyy"),tw=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},aN=({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}=ze(),y=p(t),S=p(i),[b,T]=I.useState(!1),[w,C]=I.useState("");I.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?C(ew(u)):C("")},[u]);const P=tw(w),$=R=>{const k=R.replace(/\D/g,"").slice(0,8),F=[];k.length>0&&F.push(k.slice(0,2)),k.length>2&&F.push(k.slice(2,4)),k.length>4&&F.push(k.slice(4,8));const z=F.join("/");if(C(z),T(!1),z.length===10){const Q=tw(z);d(Q)}},A=()=>{d(null),C("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:P||new Date,onDateChange:R=>{C(ew(R)),d(R),T(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:v.jsx(Zd,{onBlur:h,name:S||y,label:r,value:w,onFocus:R=>{R.preventDefault(),T(!0)},disabledInput:!0,onChange:R=>$(R),placeholder:o,error:m==null?void 0:m.message,rightSide:!!P&&v.jsx($e,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:A})})})},nw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=G6,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}=ze();return v.jsx(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(bs,{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($e,{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($e,{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(jo,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(jo,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},rw={duration:.3,ease:[.32,.72,0,1]},lN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},cN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx($e,{icon:W6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),uN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return v.jsxs(Ze.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:[d&&d,v.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},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 ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&p(i||"",{x:p(r)})})]})},ew=e=>Dn(e,"dd/MM/yyyy"),tw=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},lN=({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]=_.useState(!1),[w,E]=_.useState("");_.useEffect(()=>{u instanceof Date&&!isNaN(u.getTime())?E(ew(u)):E("")},[u]);const P=tw(w),$=D=>{const k=D.replace(/\D/g,"").slice(0,8),F=[];k.length>0&&F.push(k.slice(0,2)),k.length>2&&F.push(k.slice(2,4)),k.length>4&&F.push(k.slice(4,8));const z=F.join("/");if(E(z),T(!1),z.length===10){const J=tw(z);d(J)}},A=()=>{d(null),E("")};return v.jsx(Lo,{open:b,strategy:"fixed",padding:0,offset:0,onClose:()=>T(!1),className:"p-0!",component:v.jsx(Xd,{date:P||new Date,onDateChange:D=>{E(ew(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:!!P&&v.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:A})})})},nw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=G6,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(Kn,{children:n&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(xs,{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(Ie,{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(Ie,{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(jo,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&v.jsx(jo,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},rw={duration:.3,ease:[.32,.72,0,1]},cN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},uN=({isOpen:e})=>v.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:v.jsx(Ie,{icon:W6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),fN=({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(Ze.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(cN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...lN,transition:{height:{duration:rw.duration,ease:rw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},fN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),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 P=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+P,99),R=Math.max(0,Math.round((100-A)/10));return m(R),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($e,{icon:zC,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($e,{icon:UC})}),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($e,{icon:BC})})]}),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(Ze.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}%`}})})]})},iw=({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(uN,{isOpen:h})]})]}),v.jsx(Kn,{mode:"wait",children:h&&v.jsx(Ze.div,{...cN,transition:{height:{duration:rw.duration,ease:rw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},dN=({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 P=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+P,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(Ie,{icon:zC,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(Ie,{icon:UC})}),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(Ie,{icon:BC})})]}),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(Ze.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}%`}})})]})},iw=({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($e,{icon:rN,className:`
693
+ `,children:r?v.jsx(Ie,{icon:iN,className:`
694
694
  text-blue-500
695
695
  size-16
696
696
  `}):e}),v.jsx("h6",{className:`
@@ -698,18 +698,34 @@ 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})]}),dN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),hN=({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})]}),sw=({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})]});sw.Entry=hN;const bs=({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})},mN=({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(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(bs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},pN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},gN={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 gN;case"blue":default:return pN}},yN=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=ze(),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(Ze.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(Ze.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(Kn,{mode:"wait",children:a||c?v.jsx(Ze.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($e,{icon:sg,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(Ze.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($e,{icon:ig,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})]}),hN=({currentStep:e,steps:t})=>v.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>v.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),mN=({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})]}),sw=({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})]});sw.Entry=mN;const xs=({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})},pN=({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(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(xs,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:v.jsx(v.Fragment,{})})})})})})},gN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},yN={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 yN;case"blue":default:return gN}},vN=({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(Ze.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(Ze.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(Kn,{mode:"wait",children:a||c?v.jsx(Ze.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(Ie,{icon:sg,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(Ze.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(Ie,{icon:ig,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)})]})},vN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),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(Ze.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(Ze.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(Kn,{mode:"wait",children:o||a?v.jsx(Ze.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($e,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):v.jsx(Ze.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($e,{icon:ig,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)})]})},bN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),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((C,P)=>S(P)?"focus":C.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const C=w.findIndex((P,$)=>P!==c[$]);h(C!==-1?C:null),u(w)}},[e,y]);const b=()=>v.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,C)=>{var R;const P=S(C-1)?"focus":(R=e[C-1])!=null&&R.completed?"done":"pending",$=S(C)?"focus":w.completed?"done":"pending",A=m&&d===C;return v.jsxs("div",{className:"flex items-center gap-10 relative",children:[C!==0&&v.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:P==="done"||P==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(yN,{index:C,status:$,shouldAnimate:A,label:w.label,color:i})]},C)})}),T=()=>v.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,C)=>{const P=S(C)?"focus":w.completed?"done":"pending",$=m&&d===C;return v.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:v.jsx(vN,{index:C,status:P,shouldAnimate:$,label:w.label,color:i})},C)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},xN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:p}=ze(),y=t||p,S=()=>{const b=n.findIndex(T=>T.id===r);if(b>=0&&u.current[b]){const T=u.current[b];if(T&&m.current){const w=m.current.getBoundingClientRect(),C=T.getBoundingClientRect();h({left:C.left-w.left,width:C.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),v.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,T)=>v.jsx(mf.div,{ref:w=>{u.current[T]=w},className:"w-full",children:v.jsx(Rw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:a,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),wN=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 SN({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=C=>{const P=C.replace(/\D/g,"").slice(0,8),$=[];P.length>0&&$.push(P.slice(0,2)),P.length>2&&$.push(P.slice(2,4)),P.length>4&&$.push(P.slice(4,8));const A=$.join("/");if(b(A),y(!1),A.length===10){const R=wN(A);R&&t(R)}},w=()=>{t(null),b("")};return v.jsx(Lo,{open:p,strategy:"fixed",padding:0,offset:0,onClose:()=>y(!1),className:"p-0!",component:v.jsx(Xd,{date:e||new Date,onDateChange:C=>{t(C),b(Qd(C)),y(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?v.jsx("div",{onClick:C=>{C.preventDefault(),y(!0)},children:m}):v.jsx(Zd,{name:o,label:n,value:S,onClick:C=>{C.preventDefault(),y(!0)},onChange:C=>T(C),placeholder:r,error:i,rightSide:e&&v.jsx($e,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:w})})})}const TN=()=>{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(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function EN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function CN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function PN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function AN(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 eh=[];function ow(e="bottom-center"){var t;if(!eh.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")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.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=ow(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 th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},MN={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={})=>th(e,t,n),loading:(e,t={})=>aw(e,t)},lw=({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(R){return console.log(R),!1}},w=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",C=()=>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($e,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),P=()=>{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:`
703
+ `,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},bN=({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(Ze.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(Ze.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(Kn,{mode:"wait",children:o||a?v.jsx(Ze.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(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):v.jsx(Ze.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(Ie,{icon:ig,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)})]})},xN=({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((E,P)=>S(P)?"focus":E.completed?"done":"pending");if(!m)u(w),p(!0),h(null);else{const E=w.findIndex((P,$)=>P!==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 P=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:P==="done"||P==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),v.jsx(vN,{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 P=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(bN,{index:E,status:P,shouldAnimate:$,label:w.label,color:i})},E)})});return t==="horizontal"?v.jsx(T,{}):v.jsx(b,{})},wN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=_.useRef([]),[d,h]=_.useState({left:0,width:0}),m=_.useRef(null),{defaultColorScheme:p}=Ue(),y=t||p,S=()=>{const b=n.findIndex(T=>T.id===r);if(b>=0&&u.current[b]){const T=u.current[b];if(T&&m.current){const w=m.current.getBoundingClientRect(),E=T.getBoundingClientRect();h({left:E.left-w.left,width:E.width})}}};return _.useEffect(()=>{S()},[r,n]),_.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),v.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,T)=>v.jsx(mf.div,{ref:w=>{u.current[T]=w},className:"w-full",children:v.jsx(Rw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:a,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),v.jsx(mf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Dn(e,"dd/MM/yyyy"),SN=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 TN({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]=_.useState(!1),[S,b]=_.useState(e?Qd(e):"");_.useEffect(()=>{b(e?Qd(e):"")},[e]);const T=E=>{const P=E.replace(/\D/g,"").slice(0,8),$=[];P.length>0&&$.push(P.slice(0,2)),P.length>2&&$.push(P.slice(2,4)),P.length>4&&$.push(P.slice(4,8));const A=$.join("/");if(b(A),y(!1),A.length===10){const D=SN(A);D&&t(D)}},w=()=>{t(null),b("")};return v.jsx(Lo,{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(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:w})})})}const EN=({name:e,error:t,value:n,onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,options:c,placeholder:u,label:d,disabled:h=!1,className:m="",showOptionsOnClick:p=!0,showChevron:y=!1,setValueOnOptionSelect:S=!0,leftSide:b,rightSide:T})=>{const{t:w}=Ue(),[E,P]=_.useState(n||""),[$,A]=_.useState(!1);_.useEffect(()=>{P(n||"")},[n]);const D=_.useRef(null),{x:k,y:F,strategy:z,refs:J,context:ne}=jr({open:$,onOpenChange:A,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:Z,elements:q}){Object.assign(q.floating.style,{maxHeight:`${Math.min(Z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),le=vi(ne,{enabled:y}),ye=kr(ne),{getReferenceProps:de,getFloatingProps:ue}=Fr([le,ye]),{isMounted:he,styles:V}=bi(ne,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(()=>{const Z=Array.isArray(c)?c:[];if(!E.trim())return Z;const q=E.toLowerCase();return Z.filter(Q=>Q.label.toLowerCase().includes(q))})(),G=Z=>{S&&P(Z.label),A(!1),i&&i(Z),a&&a(Z.value)},O=Z=>{P(Z),r&&r(Z)},N=Z=>{Z.stopPropagation(),y&&!h&&(A(!$),!$&&D.current&&setTimeout(()=>{var q;return(q=D.current)==null?void 0:q.focus()},100))},oe={...y?de():{},onKeyDown:void 0,onClick:void 0};return v.jsxs("div",{className:`flex flex-col gap-8 select-none ${h&&"cursor-not-allowed"} ${m}`,children:[v.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${h&&"text-gray-300"}`,children:d}),v.jsxs("div",{ref:J.setReference,className:`
704
+ flex items-center justify-between gap-8 p-16
705
+
706
+ ${t&&"!border-red-500"}
707
+
708
+ bg-light
709
+
710
+ w-full h-full rounded-full border
711
+
712
+ ${E&&!h?"border-blue-200":"border-blue-100"}
713
+ ${!h&&"hover:border-blue-300"}
714
+ ${h&&"cursor-not-allowed"}
715
+
716
+ focus-within:border-blue-500 transition-colors duration-200 ease-in-out
717
+ ${h&&"hover:!cursor-pointer"}
718
+ group-disabled:bg-gray-500
719
+ `,...oe,children:[b&&b,v.jsx("input",{ref:D,id:e,name:e,disabled:h,placeholder:u,value:E,onClick:()=>{p&&!$&&!h&&A(!0)},onChange:Z=>O(Z.target.value),onKeyDown:Z=>{o&&o(Z),Z.key==="Enter"&&(Z.preventDefault(),B.length>0&&G(B[0])),Z.key==="Escape"&&A(!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 ${h&&"pointer-events-none !select-none !caret-transparent"}`}),T&&!y?T:y&&v.jsx(Ie,{icon:nN,className:`text-xl text-gray-500 cursor-pointer ${$&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:N})]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&w(t||"",{x:w(e)})}),he&&v.jsx("div",{ref:J.setFloating,style:{position:z,top:F??0,left:k??0,...V,width:J.reference.current instanceof Element?J.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ue(),children:v.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:B.length>0?v.jsx("ul",{className:"py-4",children:B.map((Z,q)=>v.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${E===Z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Q=>{Q.stopPropagation(),G(Z)},children:v.jsx("span",{children:w(Z.label)})},`${Z.label}-${q}`))}):E.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 "',E,'"']})]}):null})})]})},CN=()=>{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(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return v.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return v.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function PN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function AN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function MN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function ON(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 eh=[];function ow(e="bottom-center"){var t;if(!eh.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")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.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=ow(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 th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(v.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},_N={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={})=>th(e,t,n),loading:(e,t={})=>aw(e,t)},lw=({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=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?Sv(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(Ie,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:S_,className:"w-full text-white"}),P=()=>{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:`
704
720
  object-cover w-full h-full text-center indent-[10000px] absolute
705
721
  z-10
706
722
  ${u}
707
723
  `,onError:P,...d}),v.jsx("div",{className:`
708
724
  flex items-center justify-center leading-none text-center absolute
709
- `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})};function cw(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=cw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={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"},fw={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"},dw={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"},hw={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=tr(ON,_N[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(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]"},RN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},NN=(e="filled",t="blue",n="base",r="none")=>{const i=tr($N,DN[n],RN[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(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]"},ko=(e="base")=>LN[e],jo=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return v.jsxs("button",{type:"button",className:IN(r,d,i)+" "+a,...c,children:[e&&v.jsx($e,{icon:e,className:ko(i)}),o,t&&v.jsx($e,{icon:t,className:ko(i)})]})},mw=({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}`}),pw=({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(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(bs,{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($e,{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(mw,{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})]})})})})})},kN=({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 nh,gw;function jN(){if(gw)return nh;gw=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,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};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);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var C=h(w);return u.get(w)||u.set(w,function($,A){for(var R=0,k=C.length,F=$;R<k-1;){var z=C[R];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[C[R++]]}F[C[R]]=A})},getter:function(w,C){var P=h(w);return d.get(w)||d.set(w,function(A){for(var R=0,k=P.length;R<k;)if(A!=null||!C)A=A[P[R++]];else return;return A})},join:function(w){return w.reduce(function(C,P){return C+(y(P)||n.test(P)?"["+P+"]":(C?".":"")+P)},"")},forEach:function(w,C,P){p(Array.isArray(w)?w:m(w),C,P)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(C){return C.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function p(w,C,P){var $=w.length,A,R,k,F;for(R=0;R<$;R++)A=w[R],A&&(T(A)&&(A='"'+A+'"'),F=y(A),k=!F&&/^\d+$/.test(A),C.call(P,A,F,k,R,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 nh}var vi=jN(),rh,yw;function FN(){if(yw)return rh;yw=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 rh={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(" ")},rh}var ih=FN(),dl={exports:{}},vw;function VN(){if(vw)return dl.exports;vw=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 C=w[--S];p(C,m.get(C),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 BN=VN();const WN=_m(BN),UN=Object.prototype.toString,zN=Error.prototype.toString,GN=RegExp.prototype.toString,YN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",HN=/^Symbol\((.*)\)(.*)$/;function qN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return qN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return YN.call(e).replace(HN,"Symbol($1)");const r=UN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zN.call(e)+"]":r==="RegExp"?GN.call(e):null}function Dr(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,KN=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{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[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(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]}}Sw=Symbol.hasInstance,Tw=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(KN,(i,o)=>Dr(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 Ew(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[Tw]="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[Sw](t){return Ew[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={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 \`${Dr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Dr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Dr(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"},XN={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"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ZN={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:Fn,string:Ft,number:XN,date:sh,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:ZN,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: \`${Dr(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: \`${Dr(n,!0)}\``}return jt.formatError(Fn.notType,e)}}});const oh=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(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class bi{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&&vi.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}}bi.prototype.__isYupRef=!0;const xi=e=>e==null;function xs(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 C(te){return bi.isRef(te)?te.getValue(n,S,b):te}function P(te={}){const le=Object.assign({value:n,originalValue:o,label:a.spec.label,path:te.path||r,spec:a.spec,disableStackTrace:te.disableStackTrace||w},m,te.params);for(const de of Object.keys(le))le[de]=C(le[de]);const ve=new jt(jt.formatError(te.message||p,le),n,le.path,te.type||d,le.disableStackTrace);return ve.params=le,ve}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:P,resolve:C,options:i,originalValue:o,schema:a};const R=te=>{jt.isError(te)?$(te):te?u(null):$(P())},k=te=>{jt.isError(te)?$(te):c(te)};if(y&&xi(n))return R(!0);let z;try{var Q;if(z=h.call(A,n,A),typeof((Q=z)==null?void 0:Q.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(z).then(R,k)}}catch(te){k(te);return}R(z)}return t.OPTIONS=e,t}function JN(e,t,n,r=n){let i,o,a;return t?(vi.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(bi.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 ws(e,t=new Map){if(oh(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]=ws(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,ws(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(ws(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=ws(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{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(Fn.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=ws(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&&xi(o))return o;let a=Dr(t),c=Dr(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:E()})]})};function cw(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=cw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={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"},fw={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"},dw={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"},hw={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=tr(IN,$N[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(r,i)},RN="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",NN={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=tr(RN,NN[n],LN[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(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]"},ko=(e="base")=>jN[e],jo=({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(Ie,{icon:e,className:ko(i)}),o,t&&v.jsx(Ie,{icon:t,className:ko(i)})]})},mw=({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}`}),pw=({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(Kn,{children:e&&v.jsx(v.Fragment,{children:v.jsx(Ze.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(Ze.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(xs,{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(Ie,{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(mw,{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})]})})})})})},FN=({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 nh,gw;function VN(){if(gw)return nh;gw=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);nh={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,k=E.length,F=$;D<k-1;){var z=E[D];if(z==="__proto__"||z==="constructor"||z==="prototype")return $;F=F[E[D++]]}F[E[D]]=A})},getter:function(w,E){var P=h(w);return d.get(w)||d.set(w,function(A){for(var D=0,k=P.length;D<k;)if(A!=null||!E)A=A[P[D++]];else return;return A})},join:function(w){return w.reduce(function(E,P){return E+(y(P)||n.test(P)?"["+P+"]":(E?".":"")+P)},"")},forEach:function(w,E,P){p(Array.isArray(w)?w:m(w),E,P)}};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,P){var $=w.length,A,D,k,F;for(D=0;D<$;D++)A=w[D],A&&(T(A)&&(A='"'+A+'"'),F=y(A),k=!F&&/^\d+$/.test(A),E.call(P,A,F,k,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 nh}var xi=VN(),rh,yw;function BN(){if(yw)return rh;yw=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 rh={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(" ")},rh}var ih=BN(),dl={exports:{}},vw;function WN(){if(vw)return dl.exports;vw=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 UN=WN();const zN=_m(UN),GN=Object.prototype.toString,YN=Error.prototype.toString,HN=RegExp.prototype.toString,qN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",KN=/^Symbol\((.*)\)(.*)$/;function XN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return XN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return qN.call(e).replace(KN,"Symbol($1)");const r=GN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+YN.call(e)+"]":r==="RegExp"?HN.call(e):null}function Vr(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,ZN=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{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[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(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]}}Sw=Symbol.hasInstance,Tw=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(ZN,(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 Ew(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[Tw]="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[Sw](t){return Ew[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Fn={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"},JN={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"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},QN={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:Fn,string:Ft,number:JN,date:sh,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:QN,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(Fn.notType,e)}}});const oh=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(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class wi{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&&xi.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}}wi.prototype.__isYupRef=!0;const Si=e=>e==null;function ws(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(ne){return wi.isRef(ne)?ne.getValue(n,S,b):ne}function P(ne={}){const le=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ne.path||r,spec:a.spec,disableStackTrace:ne.disableStackTrace||w},m,ne.params);for(const de of Object.keys(le))le[de]=E(le[de]);const ye=new jt(jt.formatError(ne.message||p,le),n,le.path,ne.type||d,le.disableStackTrace);return ye.params=le,ye}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:P,resolve:E,options:i,originalValue:o,schema:a};const D=ne=>{jt.isError(ne)?$(ne):ne?u(null):$(P())},k=ne=>{jt.isError(ne)?$(ne):c(ne)};if(y&&Si(n))return D(!0);let z;try{var J;if(z=h.call(A,n,A),typeof((J=z)==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(z).then(D,k)}}catch(ne){k(ne);return}D(z)}return t.OPTIONS=e,t}function eL(e,t,n,r=n){let i,o,a;return t?(xi.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(wi.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 Ss(e,t=new Map){if(oh(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]=Ss(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,Ss(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ss(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ss(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{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(Fn.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=Ss(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&&Si(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}".
710
726
 
711
727
  attempted value: ${a}
712
- `+(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(C){C&&(Array.isArray(C)?y.push(...C):y.push(C)),--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):ws(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=xs({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=xs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Fn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Fn.notNull){return this.nullability(!1,t)}required(t=Fn.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=Fn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=xs(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=xw(t).map(o=>new bi(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=xs({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=Fn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=xs({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=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=xs({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)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=JN(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const QN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function eL(e){const t=ah(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 ah(e){var t,n;const r=QN.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 tL=/^[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])?)*$/,nL=/^((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,rL=/^(?:[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,iL="^\\d{4}-\\d{2}-\\d{2}",sL="\\d{2}:\\d{2}:\\d{2}",oL="(([+-]\\d{2}(:?\\d{2})?)|Z)",aL=new RegExp(`${iL}T${sL}(\\.\\d+)?${oL}$`),lL=e=>xi(e)||e===e.trim(),cL={}.toString();function Rr(){return new Cw}class Cw extends Vn{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===cL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.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(tL,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(nL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(rL,{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(aL,{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=ah(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=ah(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:lL})}lowercase(t=Ft.lowercase){return this.transform(n=>xi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>xi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>xi(n)||n===n.toUpperCase()})}}Rr.prototype=Cw.prototype;let uL=new Date(""),fL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return fL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=eL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bi.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=sh.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=sh.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)}})}}lh.INVALID_DATE=uL;function dL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=vi.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),bi.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return WN.array(Array.from(r),n).reverse()}function Pw(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 Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const hL=(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 mL=(e,t)=>{const n=[...vi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=vi.getter(vi.join(n),!0)(e);return!!(i&&r in i)};let Mw=e=>Object.prototype.toString.call(e)==="[object Object]";function Ow(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const pL=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Mw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=pL,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 Vn?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||!Mw(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bi.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=dL(t,n),r._sortErrors=Aw(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=vi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return mL(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(hL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Ow(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=Ow(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(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.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}}ch.prototype=_w.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Iw=[{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"}],gL=({countries:e=Iw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,re;const{t:u}=ze(),{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),C=I.useRef(null),P=I.useRef(null),{x:$,y:A,strategy:R,refs:k,context:F,placement:z,middlewareData:Q}=gi({open:m,onOpenChange:p,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),ps({element:C})],placement:"bottom-start",whileElementsMounted:ui}),te=gs(F),le=pi(F),{getReferenceProps:ve,getFloatingProps:de}=yi([te,le]),{isMounted:fe,styles:he}=vs(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())}),G=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)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{T(d.value)},[d.value]),I.useEffect(()=>{const pe=De=>{P.current&&!P.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const q=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},se=(Ce=Q.arrow)==null?void 0:Ce.x,ce=(Ve=Q.arrow)==null?void 0:Ve.y,X={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],ee=ve({onClick:O,onBlur:N}),oe=u(r),ne=u(i),ue=(re=h.error)==null?void 0:re.message;return v.jsxs("div",{ref:P,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${ue&&"!text-red-500"} text-label`,children:oe}),v.jsxs("div",{ref:k.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ue&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...ee,tabIndex:0,children:[b!=null&&b.code?v.jsxs("div",{className:"flex items-center w-full gap-10",children:[q(b)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${q(b)}.png`,srcSet:`https://flagcdn.com/w40/${q(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"})})]}),ue&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ue,{x:u(c||"")||u(t)})}),fe&&v.jsxs("div",{ref:k.setFloating,style:{position:R,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[v.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:se!=null?`${se}px`:"",top:ce!=null?`${ce}px`:"",right:"",bottom:"",[X]:"-2px",borderRight:X==="left"?"1px solid":"none",borderBottom:X==="top"?"1px solid":"none",borderLeft:X==="right"?"1px solid":"none",borderTop:X==="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 wi;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((wi=pe.code)==null?void 0:wi.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(),G(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")})})]})]})},yL=({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})]})},vL=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=ze();return v.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>v.jsx(bL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},bL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var se,ce;const{t:u}=ze(),[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:C,strategy:P,refs:$,context:A,placement:R,middlewareData:k}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:X,elements:ee}){Object.assign(ee.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),F=gs(A),z=pi(A),{getReferenceProps:Q,getFloatingProps:te}=yi([F,z]),{isMounted:le,styles:ve}=vs(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(X=>{if(!m.trim())return!0;const ee=o==="es"&&X.labelES?X.labelES.toLowerCase():X.label.toLowerCase(),oe=X.code?X.code.toLowerCase():"";return ee.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=X=>{S(X),h(!1),p(""),n(X)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var X;(X=b.current)==null||X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const B=X=>{var ee;return X?X.codeISO2?X.codeISO2.toLowerCase():((ee=X.code)==null?void 0:ee.toLowerCase())||"":""},G=(se=k.arrow)==null?void 0:se.x,O=(ce=k.arrow)==null?void 0:ce.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],q=Q({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"} ${le?"border-blue-400":"border-blue-100"}`,...q,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:X=>{X.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}),le&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:C??0,left:w??0,...ve},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...te(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:G!=null?`${G}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="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:X=>p(X.target.value),onClick:X=>X.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:fe.length>0?v.jsx("ul",{className:"flex flex-col",children:fe.map((X,ee)=>{var ne;const oe=X.codeISO2?X.codeISO2.toLowerCase():((ne=X.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:ue=>{ue.stopPropagation(),he(X)},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:X.label,onError:ue=>{ue.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&X.labelES?X.labelES:X.label,X.code?` (${X.code})`:"Country not found"]})]},`${X.code}-${ee}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return v.jsx("button",{...u,className:`${NN(e,h,n,r)} ${c}`,children:i?v.jsx($e,{...o,className:ko(n),icon:i}):a})};function xL(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 wL=({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 C=y==null?void 0:y.field.value;if(xL(C)){const P=URL.createObjectURL(C);return d(P),m(!0),()=>URL.revokeObjectURL(P)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const b=()=>{var C;n&&((C=p.current)==null||C.click())},T=C=>{var $;const P=($=C.target.files)==null?void 0:$[0];if(P){const A=URL.createObjectURL(P);d(A),m(!0),S&&(y==null||y.field.onChange(P)),r&&r(P)}},w=C=>{C.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(lw,{size:60,user:c}),n&&v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"file",ref:C=>{p.current=C,y&&y.field.ref(C)},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($e,{icon:U6,className:"text-blue-500"})})]})]})]})},SL=ch({name:Rr(),base64:Rr()}),TL=({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})]}),EL=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"}},$w=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},CL=({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 ${EL(i)} rounded-lg ${n}`,children:[r?v.jsx($e,{icon:r,className:`min-h-20 h-20 ${o} ${$w(i)}`}):v.jsx($e,{icon:nN,className:`min-h-20 h-20 ${o} ${$w(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})]})]}),PL=({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})})})},AL=({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}=ze();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(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):Ss(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=ws({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=ws({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Fn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Fn.notNull){return this.nullability(!1,t)}required(t=Fn.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=Fn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ws(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=xw(t).map(o=>new wi(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=ws({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=Fn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ws({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=Fn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ws({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)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=eL(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const tL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function nL(e){const t=ah(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 ah(e){var t,n;const r=tL.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 rL=/^[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])?)*$/,iL=/^((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,sL=/^(?:[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,oL="^\\d{4}-\\d{2}-\\d{2}",aL="\\d{2}:\\d{2}:\\d{2}",lL="(([+-]\\d{2}(:?\\d{2})?)|Z)",cL=new RegExp(`${oL}T${aL}(\\.\\d+)?${lL}$`),uL=e=>Si(e)||e===e.trim(),fL={}.toString();function Br(){return new Cw}class Cw extends Vn{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===fL?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Fn.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(rL,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(iL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(sL,{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(cL,{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=ah(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=ah(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:uL})}lowercase(t=Ft.lowercase){return this.transform(n=>Si(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Si(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Si(n)||n===n.toUpperCase()})}}Br.prototype=Cw.prototype;let dL=new Date(""),hL=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return hL(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=nL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(wi.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=sh.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=sh.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)}})}}lh.INVALID_DATE=dL;function mL(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=xi.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),wi.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return zN.array(Array.from(r),n).reverse()}function Pw(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 Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const pL=(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 gL=(e,t)=>{const n=[...xi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=xi.getter(xi.join(n),!0)(e);return!!(i&&r in i)};let Mw=e=>Object.prototype.toString.call(e)==="[object Object]";function Ow(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const yL=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Mw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=yL,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 Vn?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||!Mw(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||wi.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=mL(t,n),r._sortErrors=Aw(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=xi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return gL(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(pL)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Ow(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=Ow(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(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.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}}ch.prototype=_w.prototype,ch().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const Iw=[{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"}],vL=({countries:e=Iw,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),E=_.useRef(null),P=_.useRef(null),{x:$,y:A,strategy:D,refs:k,context:F,placement:z,middlewareData:J}=jr({open:m,onOpenChange:p,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),vs({element:E})],placement:"bottom-start",whileElementsMounted:$r}),ne=vi(F),le=kr(F),{getReferenceProps:ye,getFloatingProps:de}=Fr([ne,le]),{isMounted:ue,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())}),G=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)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{P.current&&!P.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())||"":""},oe=(Ce=J.arrow)==null?void 0:Ce.x,Z=(Ve=J.arrow)==null?void 0:Ve.y,q={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],Q=ye({onClick:O,onBlur:N}),ae=u(r),re=u(i),fe=(ie=h.error)==null?void 0:ie.message;return v.jsxs("div",{ref:P,className:`w-full relative flex flex-col gap-8 ${a}`,children:[v.jsx("label",{className:`text-gray-600 font-600 group ${fe&&"!text-red-500"} text-label`,children:ae}),v.jsxs("div",{ref:k.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${fe&&"border-red-500 hover:border-red-600"} ${ue?"border-blue-400":"border-blue-100"}`,...Q,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:re}),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"})})]}),fe&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(fe,{x:u(c||"")||u(t)})}),ue&&v.jsxs("div",{ref:k.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",...de(),children:[v.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:oe!=null?`${oe}px`:"",top:Z!=null?`${Z}px`:"",right:"",bottom:"",[q]:"-2px",borderRight:q==="left"?"1px solid":"none",borderBottom:q==="top"?"1px solid":"none",borderLeft:q==="right"?"1px solid":"none",borderTop:q==="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 Ti;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ti=pe.code)==null?void 0:Ti.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(),G(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")})})]})]})},bL=({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})]})},xL=({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(wL,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},wL=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var oe,Z;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:E,strategy:P,refs:$,context:A,placement:D,middlewareData:k}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:q,elements:Q}){Object.assign(Q.floating.style,{maxHeight:`${Math.min(q-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(A),z=kr(A),{getReferenceProps:J,getFloatingProps:ne}=Fr([F,z]),{isMounted:le,styles:ye}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ue=(Array.isArray(e)?e:[]).filter(q=>{if(!m.trim())return!0;const Q=o==="es"&&q.labelES?q.labelES.toLowerCase():q.label.toLowerCase(),ae=q.code?q.code.toLowerCase():"";return Q.includes(m.toLowerCase())||ae.includes(m.toLowerCase())}),he=q=>{S(q),h(!1),p(""),n(q)},V=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var q;(q=b.current)==null||q.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=q=>{var Q;return q?q.codeISO2?q.codeISO2.toLowerCase():((Q=q.code)==null?void 0:Q.toLowerCase())||"":""},G=(oe=k.arrow)==null?void 0:oe.x,O=(Z=k.arrow)==null?void 0:Z.y,N={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"} ${le?"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:q=>{q.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}),le&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:E??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ne(),children:[v.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:G!=null?`${G}px`:"",top:O!=null?`${O}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="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:q=>p(q.target.value),onClick:q=>q.stopPropagation(),autoFocus:!0})}),v.jsx("div",{children:ue.length>0?v.jsx("ul",{className:"flex flex-col",children:ue.map((q,Q)=>{var re;const ae=q.codeISO2?q.codeISO2.toLowerCase():((re=q.code)==null?void 0:re.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:fe=>{fe.stopPropagation(),he(q)},children:[ae&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ae}.png`,srcSet:`https://flagcdn.com/w40/${ae}.png 2x`,alt:q.label,onError:fe=>{fe.currentTarget.style.display="none"}}),v.jsxs("span",{children:[o==="es"&&q.labelES?q.labelES:q.label,q.code?` (${q.code})`:"Country not found"]})]},`${q.code}-${Q}`)})}):v.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({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(Ie,{...o,className:ko(n),icon:i}):a})};function SL(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 TL=({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 E=y==null?void 0:y.field.value;if(SL(E)){const P=URL.createObjectURL(E);return d(P),m(!0),()=>URL.revokeObjectURL(P)}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 P=($=E.target.files)==null?void 0:$[0];if(P){const A=URL.createObjectURL(P);d(A),m(!0),S&&(y==null||y.field.onChange(P)),r&&r(P)}},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(lw,{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(Ie,{icon:U6,className:"text-blue-500"})})]})]})]})},EL=ch({name:Br(),base64:Br()}),CL=({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})]}),PL=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"}},$w=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},AL=({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 ${PL(i)} rounded-lg ${n}`,children:[r?v.jsx(Ie,{icon:r,className:`min-h-20 h-20 ${o} ${$w(i)}`}):v.jsx(Ie,{icon:rN,className:`min-h-20 h-20 ${o} ${$w(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})]})]}),ML=({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})})})},OL=({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:`
713
729
  flex items-center justify-between gap-8 p-16
714
730
 
715
731
  ${m&&"!border-red-500"}
@@ -725,13 +741,13 @@ attempted value: ${a}
725
741
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
726
742
 
727
743
  group-disabled:bg-gray-500
728
- `,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($e,{icon:p?WC:FC,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)})})]})},ML=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var Ti,wl,Nr,Sl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ti=d.value)==null?void 0:Ti.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=I.useState(!1),[w,C]=I.useState(""),[P,$]=I.useState(S||null),[A,R]=I.useState(y),[k,F]=I.useState(!1),z=I.useRef(null),Q=I.useRef(null),te=I.useRef(null),le=I.useRef(null),{x:ve,y:de,strategy:fe,refs:he,context:V,placement:B,middlewareData:G}=gi({open:b,onOpenChange:T,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),ps({element:Q})],placement:"bottom-start",whileElementsMounted:ui}),O=gs(V),N=pi(V),{getReferenceProps:q,getFloatingProps:se}=yi([O,N]),{isMounted:ce,styles:X}=vs(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),C("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=te.current)==null||Pt.focus()},100)},ue=be=>{const Qe=be.target.value;if(R(Qe),P){const Pt=`${P.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&z.current&&setTimeout(()=>{var be;(be=z.current)==null||be.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},re=()=>{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),R(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{le.current&&!le.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=G.arrow)==null?void 0:wl.x,wi=(Nr=G.arrow)==null?void 0:Nr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=q({onClick:Ce,onBlur:Ve}),xl=()=>h.error?"border-red-500":k||b?"border-blue-400":"border-blue-100",Si=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:Si}),v.jsxs("div",{ref:le,className:"flex items-center w-full",onMouseEnter:re,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:[P!=null&&P.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(P)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(P)}.png`,srcSet:`https://flagcdn.com/w40/${De(P)}.png 2x`,alt:P.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",P.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx($e,{icon:Qx,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:te,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:ue,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ce&&v.jsxs("div",{ref:he.setFloating,style:{position:fe,top:de??0,left:ve??0,...X},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...se(),children:[v.jsx("div",{ref:Q,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:wi!=null?`${wi}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:z,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>C(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")})})]})]})},OL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},_L={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},IL=e=>{switch(e){case"aqua":return _L;case"blue":default:return OL}},$L=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),a=n||o,{bgColor:c,fillColor:u}=IL(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,"%"]})]})},DL=()=>{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($e,{icon:B6})}),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"}})]})})},RL="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",NL={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"},LL={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"},kL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=LL[n];break;case"blue":default:r=NL[n];break}return tr(RL,r)},jL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${kL(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($e,{icon:a,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx($e,{icon:a,className:ko()}),e]})},FL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",VL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},BL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},WL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",UL={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"},zL={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"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=UL[n];break;case"aqua":default:r=zL[n];break}return tr(WL,r)},GL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=BL[n];break;case"blue":default:r=VL[n];break}return tr(FL,r)},YL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${GL(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:Dw(r,d),children:v.jsx($e,{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:Dw(r,d),children:v.jsx($e,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},HL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(jL,{...n}):t==="mobile"?v.jsx(YL,{...n}):null},qL=({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(KL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),KL=({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}=ze(),[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:C,strategy:P,refs:$,context:A}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:ui}),R=gs(A),k=pi(A),{getReferenceProps:F,getFloatingProps:z}=yi([R,k]),{isMounted:Q,styles:te}=vs(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(G=>{const O=G.label.toLowerCase(),N=G.key.toLowerCase();return O.includes(B)||N.includes(B)})})(),ve=V=>{S(V),h(!1),p(""),n(V)},de=()=>{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:de}),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(Ie,{icon:p?WC:FC,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)})})]})},_L=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var Ci,wl,Wr,Sl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ci=d.value)==null?void 0:Ci.split(" "))||[],p=m[0]||null,y=m[1]||"",S=c.find(be=>p===be.phone),[b,T]=_.useState(!1),[w,E]=_.useState(""),[P,$]=_.useState(S||null),[A,D]=_.useState(y),[k,F]=_.useState(!1),z=_.useRef(null),J=_.useRef(null),ne=_.useRef(null),le=_.useRef(null),{x:ye,y:de,strategy:ue,refs:he,context:V,placement:B,middlewareData:G}=jr({open:b,onOpenChange:T,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),vs({element:J})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),N=kr(V),{getReferenceProps:K,getFloatingProps:oe}=Fr([O,N]),{isMounted:Z,styles:q}=bi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(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())}),re=be=>{$(be),T(!1),E("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ne.current)==null||Pt.focus()},100)},fe=be=>{const Qe=be.target.value;if(D(Qe),P){const Pt=`${P.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!b),!b&&z.current&&setTimeout(()=>{var be;(be=z.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),D(Pt)}},[d.value,c]),_.useEffect(()=>{const be=Qe=>{le.current&&!le.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=G.arrow)==null?void 0:wl.x,Ti=(Wr=G.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":k||b?"border-blue-400":"border-blue-100",Ei=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:Ei}),v.jsxs("div",{ref:le,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:[P!=null&&P.code?v.jsxs("div",{className:"flex items-center truncate",children:[De(P)&&v.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(P)}.png`,srcSet:`https://flagcdn.com/w40/${De(P)}.png 2x`,alt:P.label,onError:be=>{be.currentTarget.style.display="none"}}),v.jsxs("span",{children:["+",P.phone]})]}):v.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),v.jsx(Ie,{icon:Qx,className:"w-14 h-14 min-w-14 min-h-14"})]}),v.jsx("input",{ref:ne,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:fe,onBlur:Ve})]}),bn&&v.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),Z&&v.jsxs("div",{ref:he.setFloating,style:{position:ue,top:de??0,left:ye??0,...q},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...oe(),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:Ti!=null?`${Ti}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:z,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:ae.length>0?v.jsx("ul",{className:"flex flex-col",children:ae.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(),re(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")})})]})]})},IL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},$L={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},DL=e=>{switch(e){case"aqua":return $L;case"blue":default:return IL}},RL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=DL(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,"%"]})]})},NL=()=>{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(Ie,{icon:B6})}),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"}})]})})},LL="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",kL={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"},jL={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"},FL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=jL[n];break;case"blue":default:r=kL[n];break}return tr(LL,r)},VL=({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=`${FL(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(Ie,{icon:a,className:ko()}),e]}):v.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&v.jsx(Ie,{icon:a,className:ko()}),e]})},BL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",WL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},UL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},zL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",GL={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"},YL={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"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=GL[n];break;case"aqua":default:r=YL[n];break}return tr(zL,r)},HL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=UL[n];break;case"blue":default:r=WL[n];break}return tr(BL,r)},qL=({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=`${HL(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:Dw(r,d),children:v.jsx(Ie,{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:Dw(r,d),children:v.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},KL=e=>{const{display:t,...n}=e;return t==="desktop"?v.jsx(VL,{...n}):t==="mobile"?v.jsx(qL,{...n}):null},XL=({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(ZL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),ZL=({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:E,strategy:P,refs:$,context:A}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),vs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(A),k=kr(A),{getReferenceProps:F,getFloatingProps:z}=Fr([D,k]),{isMounted:J,styles:ne}=bi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(G=>{const O=G.label.toLowerCase(),N=G.key.toLowerCase();return O.includes(B)||N.includes(B)})})(),ye=V=>{S(V),h(!1),p(""),n(V)},de=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const ue=F({onClick:de}),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
729
745
  border transition-all duration-200 hover:border-blue-400
730
- ${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}),Q&&v.jsxs("div",{ref:$.setFloating,style:{position:P,top:C??0,left:w??0,...te,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",...z(),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:le.length>0?v.jsx("ul",{className:"py-4",children:le.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:G=>{G.stopPropagation(),ve(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,'"']})]})})]})]})},XL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},ZL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},JL=e=>{switch(e){case"aqua":return ZL;case"blue":default:return XL}},QL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=ze(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=JL(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"}`,...ue,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:P,top:E??0,left:w??0,...ne,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",...z(),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:le.length>0?v.jsx("ul",{className:"py-4",children:le.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:G=>{G.stopPropagation(),ye(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,'"']})]})})]})]})},JL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},QL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},ek=e=>{switch(e){case"aqua":return QL;case"blue":default:return JL}},tk=({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}=ek(u);return v.jsxs("div",{onClick:()=>!o&&r(),className:`
731
747
  flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
732
748
  ${!i&&"w-fit"}
733
749
  ${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
734
- ${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx($e,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
750
+ ${e?`${d} ${h}`:"bg-transparent"}`,children:[v.jsx(Ie,{icon:t,className:e?p:"text-gray-900",style:{height:"16px"}}),v.jsx("h4",{className:`
735
751
  text-md
736
752
  leading-none
737
753
  font-600
@@ -740,7 +756,7 @@ attempted value: ${a}
740
756
  transition-all duration-100 ease-in-out
741
757
  opacity-0 capitalize
742
758
  ${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
743
- ${e&&d}`,children:n})]})},ek="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",tk={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},nk={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},rk=(e="underline",t=!1)=>tr(ek,tk[e],nk[String(t)]),Rw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>v.jsxs("button",{className:`${rk(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx($e,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:"text-lg font-500",children:e})]}),ik="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",sk={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"},ok=(e="blue")=>tr(ik,sk[e]),Nw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),o=e||i;return v.jsx("button",{type:"button",className:ok(o)+" "+n,...r,children:t})},ak=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:p,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:b}=ze(),T=b(n),w=b(u);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 ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
759
+ ${e&&d}`,children:n})]})},nk="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",rk={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},ik={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},sk=(e="underline",t=!1)=>tr(nk,rk[e],ik[String(t)]),Rw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>v.jsxs("button",{className:`${sk(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&v.jsx(Ie,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),v.jsx("span",{className:"text-lg font-500",children:e})]}),ok="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",ak={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"},lk=(e="blue")=>tr(ok,ak[e]),Nw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return v.jsx("button",{type:"button",className:lk(o)+" "+n,...r,children:t})},ck=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:p,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:b}=Ue(),T=b(n),w=b(u);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 ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),v.jsxs("label",{htmlFor:n,className:`
744
760
  flex items-center justify-between gap-8 p-16
745
761
 
746
762
  ${S&&"border-red-500!"}
@@ -756,9 +772,9 @@ attempted value: ${a}
756
772
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
757
773
 
758
774
  group-disabled:bg-gray-500
759
- `,children:[a&&a,v.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:C=>m(C.target.value),onBlur:y,ref:p,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-hidden",...d}),c&&c]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&b(S.message,{x:w||T})})]})},lk=({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})]}),ck=({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 dT(T,V)},[T]),{x:C,y:P,strategy:$,refs:A,context:R}=gi({open:d,onOpenChange:h,middleware:[fi(8),hi(),di({padding:8}),No({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),ps({element:S})],placement:"bottom-start",whileElementsMounted:ui}),k=gs(R),F=pi(R),{getReferenceProps:z,getFloatingProps:Q}=yi([k,F]),{isMounted:te,styles:le}=vs(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=I.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),de=V=>{t(V.value),h(!1),p("")},he=z({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:h,onChange:E=>m(E.target.value),onBlur:y,ref:p,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-hidden",...d}),c&&c]}),v.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&b(S.message,{x:w||T})})]})},uk=({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})]}),fk=({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 dT(T,V)},[T]),{x:E,y:P,strategy:$,refs:A,context:D}=jr({open:d,onOpenChange:h,middleware:[Dr(8),Nr(),Rr({padding:8}),ys({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),vs({element:S})],placement:"bottom-start",whileElementsMounted:$r}),k=vi(D),F=kr(D),{getReferenceProps:z,getFloatingProps:J}=Fr([k,F]),{isMounted:ne,styles:le}=bi(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ye=_.useMemo(()=>m.trim()?w.search(m).map(B=>({...B.item,score:B.score,matches:B.matches})):e,[m,w,e]),de=V=>{t(V.value),h(!1),p("")},he=z({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
760
776
  border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
761
- ${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}),te&&v.jsxs("div",{ref:A.setFloating,style:{position:$,top:P??0,left:C??0,...le,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",...Q(),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:ve.length>0?v.jsx("ul",{className:"py-4",children:ve.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:G=>{G.stopPropagation(),de(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(" "):""},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,...c})=>{const[u,d]=I.useState(o),h=(e-t)/2,m=2*Math.PI*h,p=m*(1-u/100),{className:y="",...S}=c;return I.useEffect(()=>{if(!a)return;let b,T;const w=C=>{b||(b=C);const P=C-b,$=Math.min(100,P/r*100);d($),$<100&&(T=requestAnimationFrame(w))};return T=requestAnimationFrame(w),()=>{T&&cancelAnimationFrame(T)}},[r,a]),v.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:"round",r:h,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}),v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},uk=({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=""})=>{const{t:d}=ze(),[h,m]=I.useState(!1),[p,y]=I.useState(""),S=I.useRef(null),b=i.map(k=>`.${k}`).join(","),T=k=>{const F=[];let z=!1;Array.from(k).forEach(Q=>{var le;const te=((le=Q.name.split(".").pop())==null?void 0:le.toLowerCase())||"";if(!i.includes(te)){y(`El archivo ${Q.name} tiene una extensión no permitida.`),z=!0;return}if(Q.size>o*1024){y(`El archivo ${Q.name} excede el tamaño máximo de ${o}KB.`),z=!0;return}F.push(Q)}),!z&&F.length>0&&(y(""),r(F))},w=()=>{S.current&&S.current.click()},C=k=>{const F=k.target.files;F&&F.length>0&&T(F),k.target.value=""},P=k=>{k.preventDefault(),k.stopPropagation(),m(!0)},$=k=>{k.preventDefault(),k.stopPropagation(),m(!1)},A=k=>{k.preventDefault(),k.stopPropagation(),h||m(!0)},R=k=>{k.preventDefault(),k.stopPropagation(),m(!1);const F=k.dataTransfer.files;F.length>0&&T(F)};return a?v.jsx("div",{className:`w-full mx-auto font-sans 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-100 select-none",children:[v.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[d("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto font-sans 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:`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 ${h?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:$,onDragOver:A,onDrop:R,onClick:w,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:d(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:d(t)}),v.jsx(Nw,{color:"blue",children:d(n)}),v.jsx("input",{type:"file",ref:S,className:"hidden",multiple:!0,accept:b,onChange:C})]})]})}),p&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:p}),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()," ",d("formats"),". ",d("maximum_size"),":"," ",wv(o,"mb")]})})]})},ln=8,fk=1e3,dk="300px",hk={top:"bottom",right:"left",bottom:"top",left:"right"},mk={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`}},pk=({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}=gi({open:a,onOpenChange:c,placement:r,middleware:[fi(i),hi(),di({padding:8}),ps({element:u})],whileElementsMounted:ui}),T=zR(S,{delay:o}),w=KR(S),C=pi(S),P=ZR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=yi([T,w,C,P]),R=p.split("-")[0],k=hk[R],{x:F,y:z}=b.arrow||{x:0,y:0},Q=I.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[Q,v.jsx(Kn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:fk,width:"max-content",maxWidth:dk},...A(),children:v.jsxs(Ze.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:z!=null?`${z}px`:"",[k]:"-7px",...mk[R]}})]})})})]})},gk=({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:C="#eab308",highColor:P="#22c55e",singleColor:$,clockwise:A=!0,startAngle:R=-90})=>{const k=G=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((N,q)=>N.threshold-q.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].color;return O[0].color}return G<b?w:G<T?C:P},F=G=>{if(!S||S.length===0)return;const O=[...S].sort((N,q)=>N.threshold-q.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].label;return O[0].label},z=Math.min(100,Math.max(0,e)),Q=k(z),te=F(z),le=d/2,ve=(d-h)/2,de=2*Math.PI*ve,fe=de,he=de-z/100*de,B=`rotate(${R} ${le} ${le}) 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:le,cy:le,r:ve,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:le,cy:le,r:ve,fill:"transparent",stroke:Q,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(z),"%"]}),(te||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:te||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},yk=({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 R=[...u].sort((k,F)=>k.threshold-F.threshold);for(let k=R.length-1;k>=0;k--)if(A>=R[k].threshold)return R[k].color;return R[0].color}return A<d?m:A<h?p:y},T=A=>{if(!u||u.length===0)return;const R=[...u].sort((k,F)=>k.threshold-F.threshold);for(let k=R.length-1;k>=0;k--)if(A>=R[k].threshold)return R[k].label;return R[0].label},w=Math.min(100,Math.max(0,e)),C=b(w),P=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 ${C} ${$} 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),"%"]}),P&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",P,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},vk=({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,C=2*Math.PI*w,P=C,$=C-b/100*C,R=`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:P,strokeDashoffset:$,strokeLinecap:"round",transform:R,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})]})},bk=({active:e,onClick:t})=>{const{defaultColorScheme:n}=ze();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}),ne&&v.jsxs("div",{ref:A.setFloating,style:{position:$,top:P??0,left:E??0,...le,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:ye.length>0?v.jsx("ul",{className:"py-4",children:ye.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:G=>{G.stopPropagation(),de(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(" "):""},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,...c})=>{const[u,d]=_.useState(o),h=(e-t)/2,m=2*Math.PI*h,p=m*(1-u/100),{className:y="",...S}=c;return _.useEffect(()=>{if(!a)return;let b,T;const w=E=>{b||(b=E);const P=E-b,$=Math.min(100,P/r*100);d($),$<100&&(T=requestAnimationFrame(w))};return T=requestAnimationFrame(w),()=>{T&&cancelAnimationFrame(T)}},[r,a]),v.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[v.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[v.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),v.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:"round",r:h,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}),v.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},dk=({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=""})=>{const{t:d}=Ue(),[h,m]=_.useState(!1),[p,y]=_.useState(""),S=_.useRef(null),b=i.map(k=>`.${k}`).join(","),T=k=>{const F=[];let z=!1;Array.from(k).forEach(J=>{var le;const ne=((le=J.name.split(".").pop())==null?void 0:le.toLowerCase())||"";if(!i.includes(ne)){y(`El archivo ${J.name} tiene una extensión no permitida.`),z=!0;return}if(J.size>o*1024){y(`El archivo ${J.name} excede el tamaño máximo de ${o}KB.`),z=!0;return}F.push(J)}),!z&&F.length>0&&(y(""),r(F))},w=()=>{S.current&&S.current.click()},E=k=>{const F=k.target.files;F&&F.length>0&&T(F),k.target.value=""},P=k=>{k.preventDefault(),k.stopPropagation(),m(!0)},$=k=>{k.preventDefault(),k.stopPropagation(),m(!1)},A=k=>{k.preventDefault(),k.stopPropagation(),h||m(!0)},D=k=>{k.preventDefault(),k.stopPropagation(),m(!1);const F=k.dataTransfer.files;F.length>0&&T(F)};return a?v.jsx("div",{className:`w-full mx-auto font-sans 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-100 select-none",children:[v.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),v.jsxs("h4",{className:"text-body-s text-gray-400",children:[d("loading"),"..."]})]})})}):v.jsxs("div",{className:`w-full mx-auto font-sans 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:`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 ${h?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:$,onDragOver:A,onDrop:D,onClick:w,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:d(e)}),t&&v.jsx("p",{className:"font-400 text-lg text-gray-500",children:d(t)}),v.jsx(Nw,{color:"blue",children:d(n)}),v.jsx("input",{type:"file",ref:S,className:"hidden",multiple:!0,accept:b,onChange:E})]})]})}),p&&v.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:p}),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()," ",d("formats"),". ",d("maximum_size"),":"," ",wv(o,"mb")]})})]})},ln=8,hk=1e3,mk="300px",pk={top:"bottom",right:"left",bottom:"top",left:"right"},gk={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`}},yk=({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),Nr(),Rr({padding:8}),vs({element:u})],whileElementsMounted:$r}),T=zR(S,{delay:o}),w=KR(S),E=kr(S),P=ZR(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,w,E,P]),D=p.split("-")[0],k=pk[D],{x:F,y:z}=b.arrow||{x:0,y:0},J=_.cloneElement(e,{ref:y.setReference,...$()});return v.jsxs(v.Fragment,{children:[J,v.jsx(Kn,{children:a&&v.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:hk,width:"max-content",maxWidth:mk},...A(),children:v.jsxs(Ze.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:z!=null?`${z}px`:"",[k]:"-7px",...gk[D]}})]})})})]})},vk=({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:P="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const k=G=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].color;return O[0].color}return G<b?w:G<T?E:P},F=G=>{if(!S||S.length===0)return;const O=[...S].sort((N,K)=>N.threshold-K.threshold);for(let N=O.length-1;N>=0;N--)if(G>=O[N].threshold)return O[N].label;return O[0].label},z=Math.min(100,Math.max(0,e)),J=k(z),ne=F(z),le=d/2,ye=(d-h)/2,de=2*Math.PI*ye,ue=de,he=de-z/100*de,B=`rotate(${D} ${le} ${le}) 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:le,cy:le,r:ye,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),v.jsx("circle",{cx:le,cy:le,r:ye,fill:"transparent",stroke:J,strokeWidth:h,strokeDasharray:ue,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(z),"%"]}),(ne||i)&&n&&v.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ne||i})]})})]}),r&&v.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},bk=({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((k,F)=>k.threshold-F.threshold);for(let k=D.length-1;k>=0;k--)if(A>=D[k].threshold)return D[k].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((k,F)=>k.threshold-F.threshold);for(let k=D.length-1;k>=0;k--)if(A>=D[k].threshold)return D[k].label;return D[0].label},w=Math.min(100,Math.max(0,e)),E=b(w),P=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),"%"]}),P&&v.jsxs("span",{className:"text-xs text-gray-500",children:["(",P,")"]}),v.jsx("span",{className:"text-gray-600",children:n})]})]})},xk=({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,P=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:P,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})]})},wk=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return v.jsxs("button",{onClick:t,className:`
762
778
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
763
779
  transition-colors duration-200 ease-in-out focus:outline-none
764
780
  shadow-lg
@@ -767,4 +783,4 @@ attempted value: ${a}
767
783
  inline-block h-20 w-20 transform rounded-full bg-white
768
784
  transition-transform duration-200 ease-in-out drop-shadow-xl
769
785
  ${e?"translate-x-24":"translate-x-3"}
770
- `})]})},xk="Alejo",wk=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(bx.Provider,{value:n,children:t})};ie.ActionButton=kC,ie.AlertModal=xx,ie.AsyncToast=tv,ie.Avatar=lw,ie.BoxContainer=bs,ie.Button=jo,ie.CalendarSelector=Xd,ie.CenterModal=pw,ie.Checkbox=kN,ie.CircleProgress=vk,ie.CountryDropdown=vL,ie.CountryInput=gL,ie.CountryLabel=yL,ie.DateInput=aN,ie.DialogModal=nw,ie.Divider=mw,ie.Dropdown=uN,ie.FileUpload=fN,ie.FloatingMenu=Lo,ie.IconButton=uh,ie.ImageProfileInput=wL,ie.IndexedStep=iw,ie.IndexedStepper=dN,ie.InfoCard=TL,ie.InformationContainer=sw,ie.InformationDisclaimer=CL,ie.LoadingProgress=Lw,ie.LoadingSpinner=PL,ie.ModalContainer=TN,ie.Organism=xk,ie.PasswordInput=AL,ie.PhoneInput=ML,ie.ProgressBar=$L,ie.SearchBar=DL,ie.SearchModal=mN,ie.SectionButton=HL,ie.SelectInput=qL,ie.SidebarButton=QL,ie.Stepper=bN,ie.Switch=bk,ie.Tab=Rw,ie.Tabs=xN,ie.TextButton=Nw,ie.TextInput=ak,ie.TextStaticInput=lk,ie.ThemeProvider=wk,ie.ThresholdCircleProgress=gk,ie.ThresholdProgressBar=yk,ie.Toast=pf,ie.Tooltip=pk,ie.UncontrolledDateInput=SN,ie.UncontrolledSelector=ck,ie.UncontrolledTextInput=Zd,ie.UploadContainer=uk,ie.capitalizeFirstLetter=xv,ie.closeModal=PN,ie.defaultTheme=Od,ie.formatLocalizedDate=c$,ie.getImageUrl=Sv,ie.openCustomModal=CN,ie.openModal=EN,ie.renderTabContent=AN,ie.showToastAsync=th,ie.showToastLoading=aw,ie.stringToColor=gf,ie.toBase64=u$,ie.toast=MN,ie.translateBytes=wv,ie.useTheme=ze,ie.yupImageProfileValidator=SL,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
786
+ `})]})},Sk="Alejo",Tk=({theme:e={},children:t})=>{const n={...Od,...e};return v.jsx(bx.Provider,{value:n,children:t})};se.ActionButton=kC,se.AlertModal=xx,se.AsyncToast=tv,se.AutocompleteInput=EN,se.Avatar=lw,se.BoxContainer=xs,se.Button=jo,se.CalendarSelector=Xd,se.CenterModal=pw,se.Checkbox=FN,se.CircleProgress=xk,se.CountryDropdown=xL,se.CountryInput=vL,se.CountryLabel=bL,se.DateInput=lN,se.DialogModal=nw,se.Divider=mw,se.Dropdown=fN,se.FileUpload=dN,se.FloatingMenu=Lo,se.IconButton=uh,se.ImageProfileInput=TL,se.IndexedStep=iw,se.IndexedStepper=hN,se.InfoCard=CL,se.InformationContainer=sw,se.InformationDisclaimer=AL,se.LoadingProgress=Lw,se.LoadingSpinner=ML,se.ModalContainer=CN,se.Organism=Sk,se.PasswordInput=OL,se.PhoneInput=_L,se.ProgressBar=RL,se.SearchBar=NL,se.SearchModal=pN,se.SectionButton=KL,se.SelectInput=XL,se.SidebarButton=tk,se.Stepper=xN,se.Switch=wk,se.Tab=Rw,se.Tabs=wN,se.TextButton=Nw,se.TextInput=ck,se.TextStaticInput=uk,se.ThemeProvider=Tk,se.ThresholdCircleProgress=vk,se.ThresholdProgressBar=bk,se.Toast=pf,se.Tooltip=yk,se.UncontrolledDateInput=TN,se.UncontrolledSelector=fk,se.UncontrolledTextInput=Zd,se.UploadContainer=dk,se.capitalizeFirstLetter=xv,se.closeModal=MN,se.defaultTheme=Od,se.formatLocalizedDate=c$,se.getImageUrl=Sv,se.openCustomModal=AN,se.openModal=PN,se.renderTabContent=ON,se.showToastAsync=th,se.showToastLoading=aw,se.stringToColor=gf,se.toBase64=u$,se.toast=_N,se.translateBytes=wv,se.useTheme=Ue,se.yupImageProfileValidator=EL,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});