prometeo-design-system 1.2.0 → 1.2.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.
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +3 -5
- package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +2 -0
- package/dist/components/Sidebar/SidebarComposable.d.ts +9 -15
- package/dist/components/Sidebar/components/nav-actions.d.ts +1 -1
- package/dist/components/Sidebar/hooks/useSidebar.d.ts +4 -0
- package/dist/components/Sidebar/hooks/useSidebarState.d.ts +9 -0
- package/dist/components/Sidebar/index.d.ts +1 -2
- package/dist/index.d.ts +3 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +1667 -1572
- package/dist/prometeo-design-system.umd.js +12 -12
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(P,
|
|
1
|
+
(function(P,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react"),require("boring-avatars"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("formik"),require("use-debounce"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","boring-avatars","clsx","tailwind-merge","framer-motion","formik","use-debounce","react-router-dom","@gsap/react"],D):(P=typeof globalThis<"u"?globalThis:P||self,D(P.PrometeoDesignSystem={},P.React,P.BoringAvatars,P.clsx,P.tailwindMerge,P.FramerMotion,P.Formik,P.useDebounce,P.ReactRouterDOM,P.GSAPReact))})(this,(function(P,D,qi,Gr,Oi,R,Rt,Ci,Si,Jr){"use strict";function ki(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const $=ki(D);var Ft={exports:{}},gt={};/**
|
|
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
|
|
9
|
+
*/var Qr;function Ni(){if(Qr)return gt;Qr=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,n,s){var a=null;if(s!==void 0&&(a=""+s),n.key!==void 0&&(a=""+n.key),"key"in n){s={};for(var o in n)o!=="key"&&(s[o]=n[o])}else s=n;return n=s.ref,{$$typeof:i,type:r,key:a,ref:n!==void 0?n:null,props:s}}return gt.Fragment=e,gt.jsx=t,gt.jsxs=t,gt}var vt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,35 +14,35 @@
|
|
|
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
|
|
17
|
+
*/var Kr;function Pi(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&(function(){function i(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===E?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case f:return"Fragment";case x:return"Profiler";case g:return"StrictMode";case y:return"Suspense";case j:return"SuspenseList";case q:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case _:return"Portal";case b:return(w.displayName||"Context")+".Provider";case v:return(w._context.displayName||"Context")+".Consumer";case T:var k=w.render;return w=w.displayName,w||(w=k.displayName||k.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case O:return k=w.displayName||null,k!==null?k:i(w.type)||"Memo";case C:k=w._payload,w=w._init;try{return i(w(k))}catch{}}return null}function e(w){return""+w}function t(w){try{e(w);var k=!1}catch{k=!0}if(k){k=console;var Z=k.error,Q=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return Z.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q),e(w)}}function r(w){if(w===f)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===C)return"<...>";try{var k=i(w);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function n(){var w=A.A;return w===null?null:w.getOwner()}function s(){return Error("react-stack-top-frame")}function a(w){if(I.call(w,"key")){var k=Object.getOwnPropertyDescriptor(w,"key").get;if(k&&k.isReactWarning)return!1}return w.key!==void 0}function o(w,k){function Z(){H||(H=!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)",k))}Z.isReactWarning=!0,Object.defineProperty(w,"key",{get:Z,configurable:!0})}function l(){var w=i(this.type);return V[w]||(V[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function u(w,k,Z,Q,te,N,re,ke){return Z=N.ref,w={$$typeof:m,type:w,key:k,props:N,_owner:te},(Z!==void 0?Z:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ke}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function c(w,k,Z,Q,te,N,re,ke){var ae=k.children;if(ae!==void 0)if(Q)if(F(ae)){for(Q=0;Q<ae.length;Q++)h(ae[Q]);Object.freeze&&Object.freeze(ae)}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 h(ae);if(I.call(k,"key")){ae=i(w);var _t=Object.keys(k).filter(function(Wa){return Wa!=="key"});Q=0<_t.length?"{key: someKey, "+_t.join(": ..., ")+": ...}":"{key: someKey}",fe[ae+Q]||(_t=0<_t.length?"{"+_t.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} />`,B,ue,pt,ue),de[ue+B]=!0)}if(ue=null,N!==void 0&&(t(N),ue=""+N),a(S)&&(t(S.key),ue=""+S.key),"key"in S){N={};for(var Jr in S)Jr!=="key"&&(N[Jr]=S[Jr])}else N=S;return ue&&o(N,typeof T=="function"?T.displayName||T.name||"Unknown":T),u(T,ue,ie,ee,n(),N,Xr,Gr)}function h(T){typeof T=="object"&&T!==null&&T.$$typeof===m&&T._store&&(T._store.validated=1)}var p=I,m=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),F=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,R=Array.isArray,H=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(T){return T()}};var V,z={},U=p.react_stack_bottom_frame.bind(p,s)(),ne=H(r(s)),de={};_t.Fragment=f,_t.jsx=function(T,S,N,B,ee){var ie=1e4>F.recentlyCreatedOwnerStacks++;return c(T,S,N,!1,B,ee,ie?Error("react-stack-top-frame"):U,ie?H(r(T)):ne)},_t.jsxs=function(T,S,N,B,ee){var ie=1e4>F.recentlyCreatedOwnerStacks++;return c(T,S,N,!0,B,ee,ie?Error("react-stack-top-frame"):U,ie?H(r(T)):ne)}})()),_t}var tn;function Ai(){return tn||(tn=1,process.env.NODE_ENV==="production"?At.exports=Ei():At.exports=Mi()),At.exports}var d=Ai();function rn({profileImage:i,size:e,sizeImage:t=36}){const[r,n]=I.useState(!1),s=i&&i.trim()!==""&&!r;return d.jsx(d.Fragment,{children:s?d.jsx("img",{onError:()=>{n(!0)},src:i,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):d.jsx(Ci,{size:e,name:i||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function k(...i){return Oi.twMerge(Qr.clsx(i))}const nn=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,sn=Qr.clsx,Ri=((i,e)=>t=>{var r;if(e?.variants==null)return sn(i,t?.class,t?.className);const{variants:n,defaultVariants:s}=e,a=Object.keys(n).map(u=>{const c=t?.[u],h=s?.[u];if(c===null)return null;const p=nn(c)||nn(h);return n[u][p]}),o=t&&Object.entries(t).reduce((u,c)=>{let[h,p]=c;return p===void 0||(u[h]=p),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:h,className:p,...m}=c;return Object.entries(m).every(_=>{let[f,g]=_;return Array.isArray(g)?g.includes({...s,...o}[f]):{...s,...o}[f]===g})?[...u,h,p]:u},[]);return sn(i,a,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function Di({label:i="Selene",onClick:e,icon:t,contentClassName:r,loadingText:n="Cargando...",animate:s=!0,animateIcon:a=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:c="filled",color:h="primary",size:p="medium",children:m,Spinner:_,className:f,...g}){const x=A.useAnimationControls(),v=()=>{!s||l||o||!a||x.start({rotate:90})},b=()=>{!s||l||o||!a||x.start({rotate:0})},w=k(Ri({variant:c,color:h,size:p,disabled:l||o,loading:o}),f);return d.jsx(A.motion.button,{onClick:e,className:w,whileHover:s&&!l&&!o?{scale:1.05}:{},whileTap:s&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:b,disabled:l||o,type:u,...g,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[_,p!=="small"&&d.jsx("span",{children:n})]}):m||d.jsxs("span",{className:k("flex items-center gap-2",r),children:[t&&d.jsx(A.motion.div,{animate:a?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),i&&d.jsx("span",{children:i})]})})}function an({sessions:i,handleTokenLogin:e}){return d.jsx("div",{className:"profile-options-container w-full ",children:i?.map(t=>d.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:d.jsx(Rt,{children:d.jsx(Rt.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:d.jsx(Rt.Image,{isExpanded:!1})})})},t._id))})}const Rt=Object.assign(({children:i})=>d.jsx("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:i}),{Menu:({isExpanded:i,sessions:e,onClickLogout:t,handleTokenLogin:r})=>(console.log(e),d.jsx(A.AnimatePresence,{mode:"wait",children:i&&d.jsxs(A.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(A.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&d.jsxs(d.Fragment,{children:[d.jsx(A.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(A.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(an,{sessions:e,handleTokenLogin:r})}),d.jsx(A.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(A.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(ae.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})),Image:({imageUrl:i})=>d.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(rn,{profileImage:i,size:36,sizeImage:36})}),Content:({isExpanded:i,name:e,nameCompany:t,nameArea:r,cardProfile:n,onClick:s})=>d.jsxs(A.motion.button,{onClick:s,className:k("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",i&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[n,d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:k("profile-name font-semibold leading-tight mb-0 text-left",i?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),d.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),d.jsx("p",{className:k("profile-options truncate font-bold mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:k("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:i,onClick:e})=>d.jsx(A.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:i?"Ocultar opciones":"Mostrar opciones","aria-label":i?"Ocultar opciones":"Mostrar opciones",children:d.jsx(A.motion.div,{animate:{rotate:i?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(A.motion.div,{transition:{duration:.2},children:d.jsx(ae.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),ae={Ticket:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:i,className:e,...t})=>d.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:i,height:i,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:d.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,...t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},Fi=({label:i,className:e,containerClassName:t,id:r,disabled:n=!1,...s})=>{const[a,o]=Mt.useField({...s,type:"checkbox"}),[l,u]=I.useState(!1),c=o.touched&&o.error;return d.jsxs("div",{className:k("relative w-full",t),children:[d.jsxs("label",{htmlFor:r||s.name,className:k("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",n?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:r||s.name,type:"checkbox",name:a.name,checked:a.value||!1,onChange:a.onChange,onFocus:()=>{u(!0),s.onFocus?.()},onBlur:h=>{u(!1),s.onBlur?.(),a.onBlur(h)},disabled:n,className:k("sr-only")}),d.jsx("div",{className:k("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",a.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":c?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",n&&"bg-neutral-medium-default border-neutral-medium-default"),children:a.value&&d.jsx(ae.Check,{size:14,className:k("text-white transition-all duration-200 ease-in-out",n&&"text-neutral-strong-default")})})]}),d.jsx("span",{className:`${l}`,children:" "}),d.jsx("span",{className:k("text-sm transition-colors duration-200 ease-in-out select-none",c&&"text-error-default-default",n&&"text-neutral-medium-default"),children:i})]}),c&&d.jsx(Mt.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Ii=({title:i,children:e})=>d.jsxs(A.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[d.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:i}),e]}),Zi=I.memo(Ii);var Li={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function gt(i){if(typeof i=="number")return{value:i,unit:"px"};var e,t=(i.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var r=(i.match(/[^0-9]*$/)||"").toString();return Li[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(i," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function te(i){var e=gt(i);return"".concat(e.value).concat(e.unit)}var Fe=function(i,e,t){var r="react-spinners-".concat(i,"-").concat(t);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,a=`
|
|
22
|
+
<%s key={someKey} {...props} />`,Q,ae,_t,ae),fe[ae+Q]=!0)}if(ae=null,Z!==void 0&&(t(Z),ae=""+Z),a(k)&&(t(k.key),ae=""+k.key),"key"in k){Z={};for(var Xr in k)Xr!=="key"&&(Z[Xr]=k[Xr])}else Z=k;return ae&&o(Z,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,ae,N,te,n(),Z,re,ke)}function h(w){typeof w=="object"&&w!==null&&w.$$typeof===m&&w._store&&(w._store.validated=1)}var p=D,m=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),A=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,F=Array.isArray,z=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(w){return w()}};var H,V={},U=p.react_stack_bottom_frame.bind(p,s)(),se=z(r(s)),fe={};vt.Fragment=f,vt.jsx=function(w,k,Z,Q,te){var N=1e4>A.recentlyCreatedOwnerStacks++;return c(w,k,Z,!1,Q,te,N?Error("react-stack-top-frame"):U,N?z(r(w)):se)},vt.jsxs=function(w,k,Z,Q,te){var N=1e4>A.recentlyCreatedOwnerStacks++;return c(w,k,Z,!0,Q,te,N?Error("react-stack-top-frame"):U,N?z(r(w)):se)}})()),vt}var en;function Ei(){return en||(en=1,process.env.NODE_ENV==="production"?Ft.exports=Ni():Ft.exports=Pi()),Ft.exports}var d=Ei();function tn({profileImage:i,size:e,sizeImage:t=36}){const[r,n]=D.useState(!1),s=i&&i.trim()!==""&&!r;return d.jsx(d.Fragment,{children:s?d.jsx("img",{onError:()=>{n(!0)},src:i,style:{width:t,height:t},className:"rounded-full object-cover",alt:"Profile"}):d.jsx(qi,{size:e,name:i||"User",variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}function S(...i){return Oi.twMerge(Gr.clsx(i))}const rn=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,nn=Gr.clsx,Mi=((i,e)=>t=>{var r;if(e?.variants==null)return nn(i,t?.class,t?.className);const{variants:n,defaultVariants:s}=e,a=Object.keys(n).map(u=>{const c=t?.[u],h=s?.[u];if(c===null)return null;const p=rn(c)||rn(h);return n[u][p]}),o=t&&Object.entries(t).reduce((u,c)=>{let[h,p]=c;return p===void 0||(u[h]=p),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:h,className:p,...m}=c;return Object.entries(m).every(_=>{let[f,g]=_;return Array.isArray(g)?g.includes({...s,...o}[f]):{...s,...o}[f]===g})?[...u,h,p]:u},[]);return nn(i,a,l,t?.class,t?.className)})("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] min-w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] min-w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] min-w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 hover:bg-primary-default-hover hover:text-neutral-strong-hover focus:bg-primary-default-pressed focus:text-neutral-strong-focused active:bg-primary-pressed active:text-neutral-strong-pressed disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default text-neutral-strong-default hover:bg-neutral-medium-hover hover:text-neutral-strong-hover focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed active:bg-neutral-medium-pressed disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed disabled:border-primary-disabled disabled:text-primary-disabled"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed disabled:border-neutral-disabled disabled:text-neutral-disabled"},{variant:"text",color:"primary",class:"text-primary-medium-default hover:bg-neutral-default-hover hover:text-primary-medium-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"},{variant:"text",color:"secondary",class:"text-neutral-strong-default hover:bg-neutral-default-hover hover:text-primary-default-hover focus:bg-neutral-default-pressed focus:text-primary-medium-pressed active:bg-neutral-default-pressed active:text-primary-medium-pressed disabled:text-primary-medium-disabled"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function Ai({label:i="Selene",onClick:e,icon:t,contentClassName:r,loadingText:n="Cargando...",animate:s=!0,animateIcon:a=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:c="filled",color:h="primary",size:p="medium",children:m,Spinner:_,className:f,...g}){const x=R.useAnimationControls(),v=()=>{!s||l||o||!a||x.start({rotate:90})},b=()=>{!s||l||o||!a||x.start({rotate:0})},T=S(Mi({variant:c,color:h,size:p,disabled:l||o,loading:o}),f);return d.jsx(R.motion.button,{onClick:e,className:T,whileHover:s&&!l&&!o?{scale:1.05}:{},whileTap:s&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:b,disabled:l||o,type:u,...g,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[_,p!=="small"&&d.jsx("span",{children:n})]}):m||d.jsxs("span",{className:S("flex items-center gap-2",r),children:[t&&d.jsx(R.motion.div,{animate:a?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),i&&d.jsx("span",{children:i})]})})}function sn({sessions:i,handleTokenLogin:e}){return d.jsx("div",{className:"profile-options-container w-full ",children:i?.map(t=>d.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:d.jsx(Dt,{children:d.jsx(Dt.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:d.jsx(Dt.Image,{isExpanded:!1})})})},t._id))})}const Dt=Object.assign(({children:i})=>d.jsx("div",{className:"profile-container flex rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0",children:i}),{Menu:({isExpanded:i,sessions:e,onClickLogout:t,handleTokenLogin:r})=>d.jsx(R.AnimatePresence,{mode:"wait",children:i&&d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden w-full ",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(sn,{sessions:e,handleTokenLogin:r})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:t,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(le.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})}),Image:({imageUrl:i})=>d.jsx("div",{className:"profile-image-wrapper ml-1 flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(tn,{profileImage:i,size:36,sizeImage:36})}),Content:({isExpanded:i,name:e,nameCompany:t,nameArea:r,cardProfile:n,onClick:s})=>d.jsxs(R.motion.button,{onClick:s,className:S("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",i&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[n,d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:S("profile-name font-semibold leading-tight mb-0 text-left",i?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),d.jsx("div",{className:"flex items-center gap-1 mt-1 ",children:t&&t?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:S("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),d.jsx("p",{className:S("profile-options truncate font-bold mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:S("profile-options truncate text-xs mt-0",i?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:i,onClick:e})=>d.jsx(R.motion.button,{onClick:e,className:"flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:i?"Ocultar opciones":"Mostrar opciones","aria-label":i?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:i?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(le.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),le={Ticket:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:i,className:e,...t})=>d.jsxs("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:i,height:i,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:d.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,...t,className:e,fill:"currentColor",children:d.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Error:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:i,className:e,...t})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:i,height:i,fill:"currentColor",className:e,...t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z"})})},Ri=({label:i,className:e,containerClassName:t,id:r,disabled:n=!1,...s})=>{const[a,o]=Rt.useField({...s,type:"checkbox"}),[l,u]=D.useState(!1),c=o.touched&&o.error;return d.jsxs("div",{className:S("relative w-full",t),children:[d.jsxs("label",{htmlFor:r||s.name,className:S("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",n?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:r||s.name,type:"checkbox",name:a.name,checked:a.value||!1,onChange:a.onChange,onFocus:()=>{u(!0),s.onFocus?.()},onBlur:h=>{u(!1),s.onBlur?.(),a.onBlur(h)},disabled:n,className:S("sr-only")}),d.jsx("div",{className:S("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",a.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":c?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",n&&"bg-neutral-medium-default border-neutral-medium-default"),children:a.value&&d.jsx(le.Check,{size:14,className:S("text-white transition-all duration-200 ease-in-out",n&&"text-neutral-strong-default")})})]}),d.jsx("span",{className:`${l}`,children:" "}),d.jsx("span",{className:S("text-sm transition-colors duration-200 ease-in-out select-none",c&&"text-error-default-default",n&&"text-neutral-medium-default"),children:i})]}),c&&d.jsx(Rt.ErrorMessage,{name:s.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},Fi=({title:i,children:e})=>d.jsxs(R.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex justify-between items-center w-full ",children:[d.jsx("h1",{className:"text-[32px] font-bold text-neutral-strong-default",children:i}),e]}),Di=D.memo(Fi);var Ii={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function xt(i){if(typeof i=="number")return{value:i,unit:"px"};var e,t=(i.match(/^[0-9.]*/)||"").toString();t.includes(".")?e=parseFloat(t):e=parseInt(t,10);var r=(i.match(/[^0-9]*$/)||"").toString();return Ii[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(i," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function ne(i){var e=xt(i);return"".concat(e.value).concat(e.unit)}var Ze=function(i,e,t){var r="react-spinners-".concat(i,"-").concat(t);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var s=n.sheet,a=`
|
|
23
23
|
@keyframes `.concat(r,` {
|
|
24
24
|
`).concat(e,`
|
|
25
25
|
}
|
|
26
|
-
`);return s&&s.insertRule(a,0),r},
|
|
27
|
-
35% {width: `).concat(
|
|
26
|
+
`);return s&&s.insertRule(a,0),r},It;(function(i){i.maroon="#800000",i.red="#FF0000",i.orange="#FFA500",i.yellow="#FFFF00",i.olive="#808000",i.green="#008000",i.purple="#800080",i.fuchsia="#FF00FF",i.lime="#00FF00",i.teal="#008080",i.aqua="#00FFFF",i.blue="#0000FF",i.navy="#000080",i.black="#000000",i.gray="#808080",i.silver="#C0C0C0",i.white="#FFFFFF"})(It||(It={}));var Zi=function(i,e){if(i.includes("/"))return i.replace("rgb(","rgba(");var t=i.substring(i.startsWith("rgba(")?5:4,i.length-1).trim(),r=t.split(",");return r.length===4?i.replace("rgb(","rgba("):r.length===3?"rgba(".concat(t,", ").concat(e,")"):"rgba(".concat(t," / ").concat(e,")")},Li=function(i,e){if(i.startsWith("rgb"))return Zi(i,e);if(Object.keys(It).includes(i)&&(i=It[i]),i[0]==="#"&&(i=i.slice(1)),i.length===3){var t="";i.split("").forEach(function(n){t+=n,t+=n}),i=t}var r=(i.match(/.{2}/g)||[]).map(function(n){return parseInt(n,16)}).join(", ");return"rgba(".concat(r,", ").concat(e,")")},Zt=function(){return Zt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Zt.apply(this,arguments)},Bi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},zi=Ze("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");function Vi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?60:u,h=Bi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=function(_){var f=_===1?"".concat(1/a,"s"):"0s";return{position:"absolute",height:ne(c),width:ne(c),backgroundColor:n,borderRadius:"100%",opacity:.6,top:0,left:0,animationFillMode:"both",animation:"".concat(zi," ").concat(2.1/a,"s ").concat(f," infinite ease-in-out")}},m=Zt({display:"inherit",position:"relative",width:ne(c),height:ne(c)},l);return t?$.createElement("span",Zt({style:m},h),$.createElement("span",{style:p(1)}),$.createElement("span",{style:p(2)})):null}var Lt=function(){return Lt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Lt.apply(this,arguments)},Hi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Ui=Ze("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");function $i(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?35:u,h=Hi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=Lt({background:"transparent !important",width:ne(c),height:ne(c),borderRadius:"100%",border:"2px solid",borderTopColor:n,borderBottomColor:"transparent",borderLeftColor:n,borderRightColor:n,display:"inline-block",animation:"".concat(Ui," ").concat(.75/a,"s 0s infinite linear"),animationFillMode:"both"},l);return t?$.createElement("span",Lt({style:p},h)):null}var Bt=function(){return Bt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Bt.apply(this,arguments)},Yi=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Wi=Ze("DotLoader","100% {transform: rotate(360deg)}","rotate"),Xi=Ze("DotLoader","0%, 100% {transform: scale(0)} 50% {transform: scale(1.0)}","bounce");function Gi(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?60:u,h=Yi(i,["loading","color","speedMultiplier","cssOverride","size"]),p=Bt({display:"inherit",position:"relative",width:ne(c),height:ne(c),animationFillMode:"forwards",animation:"".concat(Wi," ").concat(2/a,"s 0s infinite linear")},l),m=function(_){var f=xt(c),g=f.value,x=f.unit;return{position:"absolute",top:_%2?"0":"auto",bottom:_%2?"auto":"0",height:"".concat(g/2).concat(x),width:"".concat(g/2).concat(x),backgroundColor:n,borderRadius:"100%",animationFillMode:"forwards",animation:"".concat(Xi," ").concat(2/a,"s ").concat(_===2?"1s":"0s"," infinite linear")}};return t?$.createElement("span",Bt({style:p},h),$.createElement("span",{style:m(1)}),$.createElement("span",{style:m(2)})):null}var zt=function(){return zt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},zt.apply(this,arguments)},Ji=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},Qi=Ze("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),Ae=function(i){return Math.random()*i};function Ki(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=Ji(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=xt(c),f=xt(p),g=parseFloat(_.value.toString())*3+parseFloat(f.value.toString())*6,x=zt({width:"".concat(g).concat(_.unit),fontSize:0,display:"inline-block"},l),v=function(b){return{display:"inline-block",backgroundColor:n,width:"".concat(ne(c)),height:"".concat(ne(c)),margin:ne(p),borderRadius:"100%",animationFillMode:"both",animation:"".concat(Qi," ").concat((b/100+.6)/a,"s ").concat(b/100-.2,"s infinite ease")}};return t?$.createElement("span",zt({style:x},m,{ref:function(b){b&&b.style.setProperty("width","".concat(g).concat(_.unit),"important")}}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))}),$.createElement("span",{style:v(Ae(100))})):null}var Vt=function(){return Vt=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Vt.apply(this,arguments)},es=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t};function ts(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?50:u,h=es(i,["loading","color","speedMultiplier","cssOverride","size"]),p=xt(c),m=p.value,_=p.unit,f=Vt({display:"inherit",position:"relative",width:ne(c),height:ne(c),transform:"rotate(165deg)"},l),g=m/5,x=(m-g)/2,v=x-g,b=Li(n,.75),T=Ze("HashLoader","0% {width: ".concat(g,"px; box-shadow: ").concat(x,"px ").concat(-v,"px ").concat(b,", ").concat(-x,"px ").concat(v,"px ").concat(b,`}
|
|
27
|
+
35% {width: `).concat(ne(c),"; box-shadow: 0 ").concat(-v,"px ").concat(b,", 0 ").concat(v,"px ").concat(b,`}
|
|
28
28
|
70% {width: `).concat(g,"px; box-shadow: ").concat(-x,"px ").concat(-v,"px ").concat(b,", ").concat(x,"px ").concat(v,"px ").concat(b,`}
|
|
29
|
-
100% {box-shadow: `).concat(x,"px ").concat(-v,"px ").concat(b,", ").concat(-x,"px ").concat(v,"px ").concat(b,"}"),"before"),y=
|
|
30
|
-
35% {height: `).concat(
|
|
29
|
+
100% {box-shadow: `).concat(x,"px ").concat(-v,"px ").concat(b,", ").concat(-x,"px ").concat(v,"px ").concat(b,"}"),"before"),y=Ze("HashLoader","0% {height: ".concat(g,"px; box-shadow: ").concat(v,"px ").concat(x,"px ").concat(n,", ").concat(-v,"px ").concat(-x,"px ").concat(n,`}
|
|
30
|
+
35% {height: `).concat(ne(c),"; box-shadow: ").concat(v,"px 0 ").concat(n,", ").concat(-v,"px 0 ").concat(n,`}
|
|
31
31
|
70% {height: `).concat(g,"px; box-shadow: ").concat(v,"px ").concat(-x,"px ").concat(n,", ").concat(-v,"px ").concat(x,"px ").concat(n,`}
|
|
32
|
-
100% {box-shadow: `).concat(v,"px ").concat(x,"px ").concat(n,", ").concat(-v,"px ").concat(-x,"px ").concat(n,"}"),"after"),j=function(
|
|
32
|
+
100% {box-shadow: `).concat(v,"px ").concat(x,"px ").concat(n,", ").concat(-v,"px ").concat(-x,"px ").concat(n,"}"),"after"),j=function(O){return{position:"absolute",top:"50%",left:"50%",display:"block",width:"".concat(m/5).concat(_),height:"".concat(m/5).concat(_),borderRadius:"".concat(m/10).concat(_),transform:"translate(-50%, -50%)",animationFillMode:"none",animation:"".concat(O===1?T:y," ").concat(2/a,"s infinite")}};return t?$.createElement("span",Vt({style:f},h),$.createElement("span",{style:j(1)}),$.createElement("span",{style:j(2)})):null}var Ht=function(){return Ht=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ht.apply(this,arguments)},rs=function(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t},ns=Ze("SyncLoader",`33% {transform: translateY(10px)}
|
|
33
33
|
66% {transform: translateY(-10px)}
|
|
34
|
-
100% {transform: translateY(0)}`,"sync");function as(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=is(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=Bt({display:"inherit"},l),f=function(g){return{backgroundColor:n,width:te(c),height:te(c),margin:te(p),borderRadius:"100%",display:"inline-block",animation:"".concat(ss," ").concat(.6/a,"s ").concat(g*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?$.createElement("span",Bt({style:_},m),$.createElement("span",{style:f(1)}),$.createElement("span",{style:f(2)}),$.createElement("span",{style:f(3)})):null}const ar=({variant:i="sync",color:e="#3B82F6",loading:t=!0,size:r="medium",className:n="",speedMultiplier:s=1})=>{const o=(()=>{if(typeof r=="number")return r;switch(r){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:o,speedMultiplier:s,"aria-label":"Loading Spinner","data-testid":"spinner"},u=k("inline-block",n),c=()=>{switch(i){case"bounce":return d.jsx(Ui,{...l});case"dot":return d.jsx(Qi,{...l});case"grid":return d.jsx(ts,{...l,size:o*.4});case"hash":return d.jsx(ns,{...l});case"sync":return d.jsx(as,{...l,size:o*.4});case"clip":default:return d.jsx(Wi,{...l})}};return d.jsx("div",{className:u,children:c()})},Vt={default:{container:"",input:k("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:k("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:k("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:k("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:k("text-error-light","peer-focus:text-error-light"),icon:k("text-error-light","peer-focus:text-error-light")},success:{container:"",input:k("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:k("text-success","peer-focus:text-success-light"),icon:k("text-success-light","peer-focus:text-success-light")}},vt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},os=({label:i,icon:e,onChange:t,value:r="",debounceMs:n=0,name:s,width:a="100%",height:o,variant:l="default",size:u="medium",disabled:c=!1,type:h="text",isFetching:p,errorMessage:m,helperText:_,required:f=!1,onFocus:g,onBlur:x})=>{const[v,b]=I.useState(r),[w]=Si.useDebounce(v,n),[y,j]=I.useState(!1),[C,O]=I.useState(!1);I.useEffect(()=>{n&&w!==r&&t(w)},[w,n,t,r]),I.useEffect(()=>{b(r)},[r]);const q=()=>{j(!0),g?.()},E=()=>{j(!1),x?.()},F=de=>{const T=de.target.value;b(T),n||t(T)},D=()=>{O(!C)},R={};a&&a!=="100%"&&(R.width=a),o&&(R.height=o);const H=v.length>0,V=l==="error"&&m,z=!V&&_,U=()=>y||H?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",ne=()=>o?{height:o}:{};return d.jsxs("div",{className:k("relative",vt[u].container,!a&&"w-full","bg-inherit"),style:R,children:[d.jsx("input",{id:s,name:s,type:h==="password"&&C?"text":h,value:v,className:k("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!o&&vt[u].input,o&&`px-3 ${vt[u].input.split(" ").filter(de=>de.startsWith("text-")).join(" ")}`,Vt[l].input,e&&"pr-10",c&&"bg-neutral-weak-default cursor-not-allowed opacity-60",Vt[l].container),style:ne(),onChange:F,onFocus:q,onBlur:E,disabled:c,required:f}),d.jsx("label",{htmlFor:s,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!o&&vt[u].label,o&&"text-sm",Vt[l].label,U(),f&&"after:content-['*'] after:text-error-default after:ml-1"),children:i}),(e||h==="password"||p)&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!o&&vt[u].icon,o&&"w-5 h-5 right-3",Vt[l].icon,h==="password"&&!p?"cursor-pointer":"pointer-events-none"),onClick:h==="password"&&!p?D:void 0,onMouseDown:de=>h==="password"&&!p&&de.preventDefault(),children:d.jsx(A.motion.div,{animate:y?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:p&&h!=="password"?d.jsx("div",{className:"animate-spin",children:d.jsx(ar,{size:24,color:"#7c86ff",loading:!0})}):h==="password"?C?d.jsx(ae.EyeVisibility,{size:24,className:""}):d.jsx(ae.EyeVisibilityOff,{size:24,className:""}):e})}),V&&d.jsx("p",{className:"mt-1 text-xs text-error-default",children:m}),z&&d.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:_})]})},ls=I.memo(os),us=({icon:i,iconPosition:e="left",label:t,className:r,containerClassName:n,id:s,type:a="text",...o})=>{const[l,u]=Mt.useField(o),[c,h]=I.useState(!1),[p,m]=I.useState(!1),_=u.touched&&u.error,f=l.value&&l.value.toString().length>0,g=a==="password",x=g?p?"text":"password":a,v=()=>c||f?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",b=()=>g?i?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":i?e==="left"?"pl-10":"pr-10":"",w=()=>i&&e==="left"?"left-10":"left-3",y=()=>{m(!p)};return d.jsxs("div",{className:k("relative w-full bg-inherit",n),children:[d.jsxs("div",{className:"relative bg-inherit",children:[d.jsx("input",{id:s||o.name,type:x,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{h(!0),o.onFocus?.()},onBlur:j=>{h(!1),o.onBlur?.(),l.onBlur(j)},className:k("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",c?"border-primary-default-default border-2":_?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",b(),r)}),d.jsx("label",{htmlFor:s||o.name,className:k("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",v(),f||c?"text-primary-default-default":_?"text-red-500":"text-neutral-medium-default",w()),children:t}),i&&d.jsx("div",{className:k("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:i}),g&&d.jsx("button",{type:"button",onClick:y,className:k("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",i&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:p?d.jsx(ae.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):d.jsx(ae.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),_&&d.jsx(Mt.ErrorMessage,{name:o.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},cs=()=>d.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[d.jsx(ae.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),d.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),ds=Object.assign(({menuRef:i,children:e})=>d.jsx("div",{ref:i,className:"flex bg-neutral-default-default absolute bottom-10 left-30 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2",children:d.jsx(A.AnimatePresence,{mode:"wait",children:d.jsx(A.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:e})})}),{Divider:()=>d.jsx(A.motion.div,{className:"flex justify-center items-center w-full ",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Items:({onClick:i,children:e,className:t})=>d.jsx(A.motion.button,{onClick:i,className:k("flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t),exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:e})});function fs({currentPage:i=1,totalPages:e=0,onPageChange:t}){const r=a=>{a>=1&&a<=e&&a!==i&&t?.(a)},s=(()=>{const a=[];if(e>7)if(a.push(1),i<=4){for(let l=2;l<=5;l++)a.push(l);a.push("ellipsis"),a.push(e)}else if(i>=e-3){a.push("ellipsis");for(let l=e-4;l<=e;l++)a.push(l)}else{a.push("ellipsis");for(let l=i-1;l<=i+1;l++)a.push(l);a.push("ellipsis"),a.push(e)}else for(let l=1;l<=e;l++)a.push(l);return a})();return d.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[d.jsx(A.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i-1),disabled:i===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),d.jsx("div",{className:"flex items-center gap-1 select-none",children:s.map((a,o)=>{if(a==="ellipsis")return d.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${o}`);const l=a,u=l===i;return d.jsxs(A.motion.button,{whileHover:u?{}:{scale:1.1},whileTap:u?{}:{scale:.9},onClick:()=>r(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${u?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[u&&d.jsx(A.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),d.jsx("span",{className:"relative z-10",children:l})]},l)})}),d.jsx(A.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i+1),disabled:i===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const hs=({label:i,onOptionClick:e,value:t=[],isFetching:r=!1,options:n,multiple:s=!0,onClear:a,onClose:o,className:l,id:u,emptyMessage:c="No hay opciones disponibles",optionValue:h,optionLabel:p,renderOption:m,renderSelection:_,containerClassName:f,buttonClassName:g,dropdownClassName:x,displayMode:v="compact",onRemoveOption:b})=>{const[w,y]=I.useState(!1),[j,C]=I.useState(!1),O=I.useRef(null),q=t&&t.length>0,E=n.filter(S=>t.includes(h(S))),F=()=>w||q||j?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100";I.useEffect(()=>{const S=N=>{O.current&&!O.current.contains(N.target)&&y(!1)};return w&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[w]);const D=()=>{y(!w)},R=S=>{const N=h(S);e(N,S),!s&&o&&o()},H=S=>{S.stopPropagation(),C(!1),S.target.blur(),a?.()},V=(S,N)=>{N?.stopPropagation();const B=h(S);b?.(B)},z=({option:S,onRemove:N})=>d.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[d.jsx("span",{className:"truncate max-w-20",children:p(S)}),d.jsx("button",{onClick:B=>N(S,B),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:d.jsx(ae.Close,{size:12,className:""})})]}),U=({option:S,isSelected:N,onSelect:B,isMultiple:ee})=>d.jsxs("div",{onClick:B,className:k("px-3 py-2 cursor-pointer flex items-center transition-colors",N?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[ee&&d.jsx("input",{type:"checkbox",checked:N,onChange:()=>{},className:"mr-2 pointer-events-none"}),d.jsx("span",{children:p(S)})]}),ne=({selectedOptions:S})=>S.length===0?null:v==="chips"&&s?d.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:S.map(N=>d.jsx(z,{option:N,onRemove:V},h(N)))}):S.length===1?d.jsx("span",{children:p(S[0])}):d.jsxs("span",{children:[S.length," seleccionados"]}),de=m||U,T=_||ne;return d.jsx("div",{className:k("relative",f),ref:O,children:d.jsxs("div",{className:k("relative",l),children:[d.jsxs("button",{id:u,type:"button",onClick:D,onFocus:()=>C(!0),onBlur:()=>C(!1),className:k("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-transparent","focus:outline-none",v==="chips"&&s&&q?"min-h-12 py-2":"h-12",w||j?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",g),children:[d.jsx("label",{htmlFor:u,className:k("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",F(),q||w||j?"text-primary-default-default":"text-neutral-medium-default"),children:i}),d.jsx("div",{className:"flex-1 min-w-0",children:d.jsx(T,{selectedOptions:E})}),d.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[r&&d.jsx(ar,{size:"small"}),q&&a&&d.jsx("button",{onClick:H,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:d.jsx(ae.Close,{size:16,className:""})}),d.jsx(ae.ChevronDown,{size:20,className:k("transition-transform text-neutral-default-default",w?"rotate-180":"")})]})]}),w&&d.jsx("div",{className:k("absolute z-50 w-full mt-1 bg-white border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",x),children:n.length===0?d.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:c}):n.map(S=>{const N=h(S),B=t.includes(N);return d.jsx(de,{option:S,isSelected:B,onSelect:()=>R(S),isMultiple:s},N)})})]})})},ps=I.memo(hs),ms=({children:i})=>d.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[i,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(ki.Outlet,{})})]}),on=({children:i,isOpen:e=!0,className:t="",width:r="w-96"})=>e?d.jsx("div",{className:k("h-screen bg-neutral-strong-default border-r border-neutral-strong-default flex flex-col relative z-10 secondary-bar",r,t),children:i}):null,or=Object.assign(on,{Root:on,Header:({children:i,className:e})=>d.jsx("div",{className:k("p-4 border-b border-neutral-strong-default",e),children:i}),Content:({children:i,className:e})=>d.jsx("div",{className:k("flex-1 overflow-y-auto p-4",e),children:i}),Footer:({children:i,className:e})=>d.jsx("div",{className:k("p-4 border-t border-neutral-strong-default",e),children:i}),Spacer:({className:i})=>d.jsx("div",{className:k("flex-1",i)})}),ln=I.createContext(void 0),Ht=()=>{const i=I.useContext(ln);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i};function Ee(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function un(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
|
|
34
|
+
100% {transform: translateY(0)}`,"sync");function is(i){var e=i.loading,t=e===void 0?!0:e,r=i.color,n=r===void 0?"#000000":r,s=i.speedMultiplier,a=s===void 0?1:s,o=i.cssOverride,l=o===void 0?{}:o,u=i.size,c=u===void 0?15:u,h=i.margin,p=h===void 0?2:h,m=rs(i,["loading","color","speedMultiplier","cssOverride","size","margin"]),_=Ht({display:"inherit"},l),f=function(g){return{backgroundColor:n,width:ne(c),height:ne(c),margin:ne(p),borderRadius:"100%",display:"inline-block",animation:"".concat(ns," ").concat(.6/a,"s ").concat(g*.07,"s infinite ease-in-out"),animationFillMode:"both"}};return t?$.createElement("span",Ht({style:_},m),$.createElement("span",{style:f(1)}),$.createElement("span",{style:f(2)}),$.createElement("span",{style:f(3)})):null}const or=({variant:i="sync",color:e="#3B82F6",loading:t=!0,size:r="medium",className:n="",speedMultiplier:s=1})=>{const o=(()=>{if(typeof r=="number")return r;switch(r){case"small":return 20;case"medium":return 35;case"large":return 50;default:return 35}})(),l={color:e,loading:t,size:o,speedMultiplier:s,"aria-label":"Loading Spinner","data-testid":"spinner"},u=S("inline-block",n),c=()=>{switch(i){case"bounce":return d.jsx(Vi,{...l});case"dot":return d.jsx(Gi,{...l});case"grid":return d.jsx(Ki,{...l,size:o*.4});case"hash":return d.jsx(ts,{...l});case"sync":return d.jsx(is,{...l,size:o*.4});case"clip":default:return d.jsx($i,{...l})}};return d.jsx("div",{className:u,children:c()})},Ut={default:{container:"",input:S("border-neutral-default-default text-neutral-default-default","focus:border-primary-default-default focus:border-2","hover:border-neutral-strong-default"),label:S("text-neutral-medium-default","peer-focus:text-primary-default-default"),icon:S("text-neutral-medium-default","peer-focus:text-primary-default-default")},error:{container:"",input:S("border-error-default-default text-neutral-default-default","focus:border-error-default focus:border-2","focus:ring-0 focus:ring-error-default/20"),label:S("text-error-light","peer-focus:text-error-light"),icon:S("text-error-light","peer-focus:text-error-light")},success:{container:"",input:S("border-success-default-default text-neutral-default-default","focus:border-success-default focus:border-2","focus:ring-0 focus:ring-success-default/20"),label:S("text-success","peer-focus:text-success-light"),icon:S("text-success-light","peer-focus:text-success-light")}},yt={small:{container:"text-sm",input:"h-10 px-3 text-sm",label:"text-xs peer-focus:text-xs peer-placeholder-shown:text-sm",icon:"w-4 h-4 right-3"},medium:{container:"text-base",input:"h-12 px-3 text-base",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-base",icon:"w-5 h-5 right-3"},large:{container:"text-lg",input:"h-14 px-3 text-lg",label:"text-sm peer-focus:text-sm peer-placeholder-shown:text-lg",icon:"w-6 h-6 right-3"}},ss=({label:i,icon:e,onChange:t,value:r="",debounceMs:n=0,name:s,width:a="100%",height:o,variant:l="default",size:u="medium",disabled:c=!1,type:h="text",isFetching:p,errorMessage:m,helperText:_,required:f=!1,onFocus:g,onBlur:x})=>{const[v,b]=D.useState(r),[T]=Ci.useDebounce(v,n),[y,j]=D.useState(!1),[O,C]=D.useState(!1);D.useEffect(()=>{n&&T!==r&&t(T)},[T,n,t,r]),D.useEffect(()=>{b(r)},[r]);const q=()=>{j(!0),g?.()},E=()=>{j(!1),x?.()},A=fe=>{const w=fe.target.value;b(w),n||t(w)},I=()=>{C(!O)},F={};a&&a!=="100%"&&(F.width=a),o&&(F.height=o);const z=v.length>0,H=l==="error"&&m,V=!H&&_,U=()=>y||z?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",se=()=>o?{height:o}:{};return d.jsxs("div",{className:S("relative",yt[u].container,!a&&"w-full","bg-inherit"),style:F,children:[d.jsx("input",{id:s,name:s,type:h==="password"&&O?"text":h,value:v,className:S("peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out","placeholder:text-transparent focus:outline-none px-3",!o&&yt[u].input,o&&`px-3 ${yt[u].input.split(" ").filter(fe=>fe.startsWith("text-")).join(" ")}`,Ut[l].input,e&&"pr-10",c&&"bg-neutral-weak-default cursor-not-allowed opacity-60",Ut[l].container),style:se(),onChange:A,onFocus:q,onBlur:E,disabled:c,required:f}),d.jsx("label",{htmlFor:s,className:S("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10",!o&&yt[u].label,o&&"text-sm",Ut[l].label,U(),f&&"after:content-['*'] after:text-error-default after:ml-1"),children:i}),(e||h==="password"||p)&&d.jsx("div",{className:S("absolute top-1/2 -translate-y-1/2 flex items-center justify-center z-10",!o&&yt[u].icon,o&&"w-5 h-5 right-3",Ut[l].icon,h==="password"&&!p?"cursor-pointer":"pointer-events-none"),onClick:h==="password"&&!p?I:void 0,onMouseDown:fe=>h==="password"&&!p&&fe.preventDefault(),children:d.jsx(R.motion.div,{animate:y?{y:[-2,0],rotate:[0,-10,10,-10,10,0]}:{},transition:{duration:.6,ease:"easeInOut"},children:p&&h!=="password"?d.jsx("div",{className:"animate-spin",children:d.jsx(or,{size:24,color:"#7c86ff",loading:!0})}):h==="password"?O?d.jsx(le.EyeVisibility,{size:24,className:""}):d.jsx(le.EyeVisibilityOff,{size:24,className:""}):e})}),H&&d.jsx("p",{className:"mt-1 text-xs text-error-default",children:m}),V&&d.jsx("p",{className:"mt-1 text-xs text-neutral-medium-default",children:_})]})},as=D.memo(ss),os=({icon:i,iconPosition:e="left",label:t,className:r,containerClassName:n,id:s,type:a="text",...o})=>{const[l,u]=Rt.useField(o),[c,h]=D.useState(!1),[p,m]=D.useState(!1),_=u.touched&&u.error,f=l.value&&l.value.toString().length>0,g=a==="password",x=g?p?"text":"password":a,v=()=>c||f?"-top-3 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",b=()=>g?i?e==="left"?"pl-10 pr-10":"pr-16":"pr-10":i?e==="left"?"pl-10":"pr-10":"",T=()=>i&&e==="left"?"left-10":"left-3",y=()=>{m(!p)};return d.jsxs("div",{className:S("relative w-full bg-inherit",n),children:[d.jsxs("div",{className:"relative bg-inherit",children:[d.jsx("input",{id:s||o.name,type:x,name:l.name,value:l.value||"",onChange:l.onChange,onFocus:()=>{h(!0),o.onFocus?.()},onBlur:j=>{h(!1),o.onBlur?.(),l.onBlur(j)},className:S("w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-200 ease-in-out text-neutral-default-default","bg-transparent focus:outline-none",c?"border-primary-default-default border-2":_?"border-error-default-default":"border-neutral-default-default hover:border-neutral-strong-default",b(),r)}),d.jsx("label",{htmlFor:s||o.name,className:S("absolute transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-md",v(),f||c?"text-primary-default-default":_?"text-red-500":"text-neutral-medium-default",T()),children:t}),i&&d.jsx("div",{className:S("absolute top-1/2 -translate-y-1/2 text-neutral-medium-default",e==="left"?"left-3":"right-3"),children:i}),g&&d.jsx("button",{type:"button",onClick:y,className:S("absolute top-1/2 -translate-y-1/2 p-1 text-neutral-medium-default hover:text-neutral-strong-default","transition-colors duration-200 focus:outline-none focus:text-primary-default-default",i&&e==="right"?"right-8":"right-3"),tabIndex:-1,children:p?d.jsx(le.EyeVisibilityOff,{size:24,className:"text-neutral-default-default"}):d.jsx(le.EyeVisibility,{size:24,className:"text-neutral-default-default"})})]}),_&&d.jsx(Rt.ErrorMessage,{name:o.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},ls=()=>d.jsxs("div",{className:"container-logo w-[185px] h-[48px] flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md",children:[d.jsx(le.TicketFilled,{size:28,className:"rotate-140 text-primary-medium-pressed icon-logo"}),d.jsx("span",{className:"font-bold text-[28px] text-primary-medium-pressed font-monserra -tracking-wide text-logo",children:"TICKETS"})]}),us=Object.assign(({menuRef:i,children:e})=>d.jsx("div",{ref:i,className:"flex bg-neutral-default-default absolute bottom-10 left-30 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2",children:d.jsx(R.AnimatePresence,{mode:"wait",children:d.jsx(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:e})})}),{Divider:()=>d.jsx(R.motion.div,{className:"flex justify-center items-center w-full ",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Items:({onClick:i,children:e,className:t})=>d.jsx(R.motion.button,{onClick:i,className:S("flex py-2 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t),exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:e})});function cs({currentPage:i=1,totalPages:e=0,onPageChange:t}){const r=a=>{a>=1&&a<=e&&a!==i&&t?.(a)},s=(()=>{const a=[];if(e>7)if(a.push(1),i<=4){for(let l=2;l<=5;l++)a.push(l);a.push("ellipsis"),a.push(e)}else if(i>=e-3){a.push("ellipsis");for(let l=e-4;l<=e;l++)a.push(l)}else{a.push("ellipsis");for(let l=i-1;l<=i+1;l++)a.push(l);a.push("ellipsis"),a.push(e)}else for(let l=1;l<=e;l++)a.push(l);return a})();return d.jsxs("div",{className:"flex items-center justify-center gap-2 p-4",children:[d.jsx(R.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i-1),disabled:i===1,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Anterior"}),d.jsx("div",{className:"flex items-center gap-1 select-none",children:s.map((a,o)=>{if(a==="ellipsis")return d.jsx("span",{className:"px-3 py-2 text-neutral-default-default",children:"..."},`ellipsis-${o}`);const l=a,u=l===i;return d.jsxs(R.motion.button,{whileHover:u?{}:{scale:1.1},whileTap:u?{}:{scale:.9},onClick:()=>r(l),className:`relative px-3 py-2 min-w-[40px] text-center transition-colors ${u?"text-primary-default-default":"text-neutral-default-default hover:text-white cursor-pointer "}`,children:[u&&d.jsx(R.motion.div,{layoutId:"activePage",className:"absolute inset-0 border-1 border-primary-default-default rounded-md",initial:!1,transition:{type:"spring",stiffness:500,damping:30}}),d.jsx("span",{className:"relative z-10",children:l})]},l)})}),d.jsx(R.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>r(i+1),disabled:i===e,className:"px-4 py-2 text-primary-medium-default hover:text-primary-default-default disabled:text-gray-600 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Siguiente"})]})}const ds=({label:i,onOptionClick:e,value:t=[],isFetching:r=!1,options:n,multiple:s=!0,onClear:a,onClose:o,className:l,id:u,emptyMessage:c="No hay opciones disponibles",optionValue:h,optionLabel:p,renderOption:m,renderSelection:_,containerClassName:f,buttonClassName:g,dropdownClassName:x,displayMode:v="compact",onRemoveOption:b,width:T="100%",height:y})=>{const[j,O]=D.useState(!1),[C,q]=D.useState(!1),E=D.useRef(null),A=t&&t.length>0,I=n?.filter(N=>t.includes(h(N))),F=()=>j||A||C?"-top-2 left-2 scale-90":"top-1/2 -translate-y-1/2 scale-100",z={};T&&T!=="100%"&&(z.width=T),y&&(z.height=y);const H=()=>y?{height:y}:{};D.useEffect(()=>{const N=re=>{E.current&&!E.current.contains(re.target)&&O(!1)};return j&&document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[j]);const V=()=>{O(!j)},U=N=>{const re=h(N);e(re,N),!s&&o&&o()},se=N=>{N.stopPropagation(),q(!1),N.target.blur(),a?.()},fe=(N,re)=>{re?.stopPropagation();const ke=h(N);b?.(ke)},w=({option:N,onRemove:re})=>d.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",children:[d.jsx("span",{className:"truncate max-w-20",children:p(N)}),d.jsx("button",{onClick:ke=>re(N,ke),className:"flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",type:"button",tabIndex:-1,children:d.jsx(le.Close,{size:12,className:""})})]}),k=({option:N,isSelected:re,onSelect:ke,isMultiple:ae})=>d.jsxs("div",{onClick:ke,className:S("px-3 py-2 cursor-pointer flex items-center transition-colors",re?"bg-primary-default-default text-white":"hover:bg-neutral-medium-selected text-neutral-default-default"),children:[ae&&d.jsx("input",{type:"checkbox",checked:re,onChange:()=>{},className:"mr-2 pointer-events-none"}),d.jsx("span",{children:p(N)})]}),Z=({selectedOptions:N})=>N?.length===0?null:v==="chips"&&s?d.jsx("div",{className:"flex items-center gap-1 flex-wrap py-1",children:N.map(re=>d.jsx(w,{option:re,onRemove:fe},h(re)))}):N?.length===1?d.jsx("span",{children:p(N[0])}):d.jsxs("span",{children:[N?.length," seleccionados"]}),Q=m||k,te=_||Z;return d.jsx("div",{className:S("relative bg-inherit",f,!T&&"w-full "),ref:E,style:z,children:d.jsxs("div",{className:S("relative bg-inherit",l),children:[d.jsxs("button",{id:u,type:"button",onClick:V,onFocus:()=>q(!0),onBlur:()=>q(!1),className:S("w-full px-3 text-left border-1 rounded-lg transition-all duration-200 ease-in-out","flex items-center justify-between bg-inherit","focus:outline-none",v==="chips"&&s&&A?"min-h-12 py-2":!y&&"h-12",j||C?"border-primary-default-default border-2":"border-neutral-default-default hover:border-neutral-strong-default",g),style:H(),children:[d.jsx("label",{htmlFor:u,className:S("absolute left-3 transition-all duration-200 ease-in-out pointer-events-none bg-inherit px-1 z-10","text-sm",F(),A||j||C?"text-primary-default-default":"text-neutral-medium-default"),children:i}),d.jsx("div",{className:"flex-1 min-w-0",children:d.jsx(te,{selectedOptions:I})}),d.jsxs("div",{className:"flex items-center gap-2 ml-2",children:[r&&d.jsx(or,{size:"small"}),A&&a&&d.jsx("button",{onClick:se,className:"text-neutral-medium-default hover:text-neutral-default-default transition-colors",type:"button",tabIndex:-1,children:d.jsx(le.Close,{size:16,className:""})}),d.jsx(le.ChevronDown,{size:20,className:S("transition-transform text-neutral-default-default",j?"rotate-180":"")})]})]}),j&&d.jsx("div",{className:S("absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg","max-h-60 overflow-auto",x),children:n.length===0?d.jsx("div",{className:"px-3 py-2 text-neutral-medium-default",children:c}):n.map(N=>{const re=h(N),ke=t.includes(re);return d.jsx(Q,{option:N,isSelected:ke,onSelect:()=>U(N),isMultiple:s},re)})})]})})},fs=D.memo(ds),an=D.forwardRef(({className:i,currentDay:e,totalDays:t,label:r,...n},s)=>{const a=t-e,o=Math.min(Math.max(e/t*100,0),100);return d.jsxs("div",{ref:s,className:i,...n,children:[d.jsxs("div",{className:"flex justify-between items-center text-white mb-2",children:[d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("span",{className:"text-sm text-neutral-medium-default",children:"Tiempo restante"}),d.jsx("span",{className:"text-semibold text-md text-neutral-default-default",children:r||`Faltan ${a} días`})]}),d.jsxs("span",{className:"text-sm text-gray-400",children:[e," / ",t," días"]})]}),d.jsx("div",{className:"w-full border-neutral-strong-default border-1 rounded-sm h-[14px]",children:d.jsx("div",{className:S("h-[14px] rounded-sm transition-all duration-300 bg-primary-default-default"),style:{width:`${o}%`}})})]})});an.displayName="CountdownProgress";const hs=({children:i})=>d.jsxs("div",{className:"w-full h-full bg-neutral-strong-default",children:[i,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Si.Outlet,{})})]});function Re(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function on(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
|
|
35
35
|
* GSAP 3.13.0
|
|
36
36
|
* https://gsap.com
|
|
37
37
|
*
|
|
38
38
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
39
39
|
* Subject to the terms at https://gsap.com/standard-license
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var ge={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},rt={duration:.5,overwrite:!1,delay:0},lr,se,Y,Te=1e8,Z=1/Te,ur=Math.PI*2,_s=ur/4,gs=0,cn=Math.sqrt,vs=Math.cos,xs=Math.sin,re=function(e){return typeof e=="string"},G=function(e){return typeof e=="function"},Me=function(e){return typeof e=="number"},cr=function(e){return typeof e>"u"},Oe=function(e){return typeof e=="object"},fe=function(e){return e!==!1},dr=function(){return typeof window<"u"},Ut=function(e){return G(e)||re(e)},dn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},oe=Array.isArray,fr=/(?:-?\.?\d|\.)+/gi,fn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,nt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,hr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,hn=/[+-]=-?[.\d]+/,pn=/[^,'"\[\]\s]+/gi,ys=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,Se,pr,mr,ve={},$t={},mn,_n=function(e){return($t=st(e,ve))&&me},_r=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},xt=function(e,t){return!t&&console.warn(e)},gn=function(e,t){return e&&(ve[e]=t)&&$t&&($t[e]=t)||ve},yt=function(){return 0},bs={suppressEvents:!0,isStart:!0,kill:!1},Yt={suppressEvents:!0,kill:!1},ws={suppressEvents:!0},gr={},Ie=[],vr={},vn,xe={},xr={},xn=30,Wt=[],yr="",br=function(e){var t=e[0],r,n;if(Oe(t)||G(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=Wt.length;n--&&!Wt[n].targetTest(t););r=Wt[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Wn(e[n],r)))||e.splice(n,1);return e},$e=function(e){return e._gsap||br(je(e))[0]._gsap},yn=function(e,t,r){return(r=e[t])&&G(r)?e[t]():cr(r)&&e.getAttribute&&e.getAttribute(t)||r},he=function(e,t){return(e=e.split(",")).forEach(t)||e},J=function(e){return Math.round(e*1e5)/1e5||0},Q=function(e){return Math.round(e*1e7)/1e7||0},it=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},Ts=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Xt=function(){var e=Ie.length,t=Ie.slice(0),r,n;for(vr={},Ie.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},wr=function(e){return!!(e._initted||e._startAt||e.add)},bn=function(e,t,r,n){Ie.length&&!se&&Xt(),e.render(t,r,!!(se&&t<0&&wr(e))),Ie.length&&!se&&Xt()},wn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(pn).length<2?t:re(e)?e.trim():e},Tn=function(e){return e},ye=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},qs=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},st=function(e,t){for(var r in t)e[r]=t[r];return e},qn=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Oe(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Gt=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},bt=function(e){var t=e.parent||W,r=e.keyframes?qs(oe(e.keyframes)):ye;if(fe(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},js=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},jn=function(e,t,r,n,s){var a=e[n],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Jt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,a=t._next;s?s._next=a:e[r]===t&&(e[r]=a),a?a._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ye=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Cs=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Tr=function(e,t,r,n){return e._startAt&&(se?e._startAt.revert(Yt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Os=function i(e){return!e||e._ts&&i(e.parent)},Cn=function(e){return e._repeat?at(e._tTime,e=e.duration()+e._rDelay)*e:0},at=function(e,t){var r=Math.floor(e=Q(e/t));return e&&r===e?r-1:r},Qt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Kt=function(e){return e._end=Q(e._start+(e._tDur/Math.abs(e._ts||e._rts||Z)||0))},er=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Q(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Kt(e),r._dirty||Ye(r,e)),e},On=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=Qt(e.rawTime(),t),(!t._dur||Tt(0,t.totalDuration(),r)-t._tTime>Z)&&t.render(r,!0)),Ye(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Z}},ke=function(e,t,r,n){return t.parent&&Ze(t),t._start=Q((Me(r)?r:r||e!==W?qe(e,r,t):e._time)+t._delay),t._end=Q(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),jn(e,t,"_first","_last",e._sort?"_start":0),qr(t)||(e._recent=t),n||On(e,t),e._ts<0&&er(e,e._tTime),e},Sn=function(e,t){return(ve.ScrollTrigger||_r("scrollTrigger",t))&&ve.ScrollTrigger.create(t,e)},kn=function(e,t,r,n,s){if(Mr(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!se&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&vn!==we.frame)return Ie.push(e),e._lazy=[s,n],1},Ss=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},qr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},ks=function(e,t,r,n){var s=e.ratio,a=t<0||!t&&(!e._start&&Ss(e)&&!(!e._initted&&qr(e))||(e._ts<0||e._dp._ts<0)&&!qr(e))?0:1,o=e._rDelay,l=0,u,c,h;if(o&&e._repeat&&(l=Tt(0,e._tDur,t),c=at(l,o),e._yoyo&&c&1&&(a=1-a),c!==at(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||se||n||e._zTime===Z||!t&&e._zTime){if(!e._initted&&kn(e,t,n,r,l))return;for(h=e._zTime,e._zTime=t||(r?Z:0),r||(r=t&&!h),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&Tr(e,t,r,!0),e._onUpdate&&!r&&be(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&be(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ze(e,1),!r&&!se&&(be(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Ns=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},ot=function(e,t,r,n){var s=e._repeat,a=Q(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:Q(a*(s+1)+e._rDelay*s):a,o>0&&!n&&er(e,e._tTime=e._tDur*o),e.parent&&Kt(e),r||Ye(e.parent,e),e},Nn=function(e){return e instanceof ce?Ye(e):ot(e,e._dur)},Ps={_start:0,endTime:yt,totalDuration:yt},qe=function i(e,t,r){var n=e.labels,s=e._recent||Ps,a=e.duration()>=Te?s.endTime(!1):e._dur,o,l,u;return re(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:r).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&r&&(l=l/100*(oe(r)?r[0]:r).totalDuration()),o>1?i(e,t.substr(0,o-1),r)+l:a+l)):t==null?a:+t},wt=function(e,t,r){var n=Me(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s],o,l;if(n&&(a.duration=t[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=fe(l.vars.inherit)&&l.parent;a.immediateRender=fe(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new K(t[0],a,t[s+1])},Le=function(e,t){return e||e===0?t(e):t},Tt=function(e,t,r){return r<e?e:r>t?t:r},le=function(e,t){return!re(e)||!(t=ys.exec(e))?"":t[1]},Es=function(e,t,r){return Le(r,function(n){return Tt(e,t,n)})},jr=[].slice,Pn=function(e,t){return e&&Oe(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Oe(e[0]))&&!e.nodeType&&e!==Se},Ms=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return re(n)&&!t||Pn(n,1)?(s=r).push.apply(s,je(n)):r.push(n)})||r},je=function(e,t,r){return Y&&!t&&Y.selector?Y.selector(e):re(e)&&!r&&(pr||!ut())?jr.call((t||mr).querySelectorAll(e),0):oe(e)?Ms(e,r):Pn(e)?jr.call(e,0):e?[e]:[]},Cr=function(e){return e=je(e)[0]||xt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return je(t,r.querySelectorAll?r:r===e?xt("Invalid scope")||mr.createElement("div"):e)}},En=function(e){return e.sort(function(){return .5-Math.random()})},Mn=function(e){if(G(e))return e;var t=Oe(e)?e:{each:e},r=We(t.ease),n=t.from||0,s=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,u=t.axis,c=n,h=n;return re(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(c=n[0],h=n[1]),function(p,m,_){var f=(_||t).length,g=a[f],x,v,b,w,y,j,C,O,q;if(!g){if(q=t.grid==="auto"?0:(t.grid||[1,Te])[1],!q){for(C=-Te;C<(C=_[q++].getBoundingClientRect().left)&&q<f;);q<f&&q--}for(g=a[f]=[],x=l?Math.min(q,f)*c-.5:n%q,v=q===Te?0:l?f*h/q-.5:n/q|0,C=0,O=Te,j=0;j<f;j++)b=j%q-x,w=v-(j/q|0),g[j]=y=u?Math.abs(u==="y"?w:b):cn(b*b+w*w),y>C&&(C=y),y<O&&(O=y);n==="random"&&En(g),g.max=C-O,g.min=O,g.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(q>f?f-1:u?u==="y"?f/q:q:Math.max(q,f/q))||0)*(n==="edges"?-1:1),g.b=f<0?s-f:s,g.u=le(t.amount||t.each)||0,r=r&&f<0?Un(r):r}return f=(g[p]-g.min)/g.max||0,Q(g.b+(r?r(f):f)*g.v)+g.u}},Or=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=Q(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Me(r)?0:le(r))}},An=function(e,t){var r=oe(e),n,s;return!r&&Oe(e)&&(n=r=e.radius||Te,e.values?(e=je(e.values),(s=!Me(e[0]))&&(n*=n)):e=Or(e.increment)),Le(t,r?G(e)?function(a){return s=e(a),Math.abs(s-a)<=n?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=Te,c=0,h=e.length,p,m;h--;)s?(p=e[h].x-o,m=e[h].y-l,p=p*p+m*m):p=Math.abs(e[h]-o),p<u&&(u=p,c=h);return c=!n||u<=n?e[c]:a,s||c===a||Me(a)?c:c+le(a)}:Or(e))},Rn=function(e,t,r,n){return Le(oe(e)?!t:r===!0?!!(r=0):!n,function(){return oe(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},As=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,a){return a(s)},n)}},Rs=function(e,t){return function(r){return e(parseFloat(r))+(t||le(r))}},Ds=function(e,t,r){return Fn(e,t,0,1,r)},Dn=function(e,t,r){return Le(r,function(n){return e[~~t(n)]})},Fs=function i(e,t,r){var n=t-e;return oe(e)?Dn(e,i(0,e.length),t):Le(r,function(s){return(n+(s-e)%n)%n+e})},Is=function i(e,t,r){var n=t-e,s=n*2;return oe(e)?Dn(e,i(0,e.length-1),t):Le(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>n?s-a:a)})},qt=function(e){for(var t=0,r="",n,s,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",s=e.substr(n+7,a-n-7).match(o?pn:fr),r+=e.substr(t,n-t)+Rn(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Fn=function(e,t,r,n,s){var a=t-e,o=n-r;return Le(s,function(l){return r+((l-e)/a*o||0)})},Zs=function i(e,t,r,n){var s=isNaN(e+t)?0:function(m){return(1-m)*e+m*t};if(!s){var a=re(e),o={},l,u,c,h,p;if(r===!0&&(n=1)&&(r=null),a)e={p:e},t={p:t};else if(oe(e)&&!oe(t)){for(c=[],h=e.length,p=h-2,u=1;u<h;u++)c.push(i(e[u-1],e[u]));h--,s=function(_){_*=h;var f=Math.min(p,~~_);return c[f](_-f)},r=t}else n||(e=st(oe(e)?[]:{},e));if(!c){for(l in t)Pr.call(o,e,l,"get",t[l]);s=function(_){return Dr(_,o)||(a?e.p:e)}}}return Le(r,s)},In=function(e,t,r){var n=e.labels,s=Te,a,o,l;for(a in n)o=n[a]-t,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},be=function(e,t,r){var n=e.vars,s=n[t],a=Y,o=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&Ie.length&&Xt(),o&&(Y=o),c=l?s.apply(u,l):s.call(u),Y=a,c},jt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!se),e.progress()<1&&be(e,"onInterrupt"),e},lt,Zn=[],Ln=function(e){if(e)if(e=!e.name&&e.default||e,dr()||e.headless){var t=e.name,r=G(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:yt,render:Dr,add:Pr,kill:ta,modifier:ea,rawVars:0},a={targetTest:0,get:0,getSetter:Rr,aliases:{},register:0};if(ut(),e!==n){if(xe[t])return;ye(n,ye(Gt(e,s),a)),st(n.prototype,st(s,Gt(e,a))),xe[n.prop=t]=n,e.targetTest&&(Wt.push(n),gr[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}gn(t,n),e.register&&e.register(me,n,pe)}else Zn.push(e)},L=255,Ct={aqua:[0,L,L],lime:[0,L,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,L],navy:[0,0,128],white:[L,L,L],olive:[128,128,0],yellow:[L,L,0],orange:[L,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[L,0,0],pink:[L,192,203],cyan:[0,L,L],transparent:[L,L,L,0]},Sr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*L+.5|0},zn=function(e,t,r){var n=e?Me(e)?[e>>16,e>>8&L,e&L]:0:Ct.black,s,a,o,l,u,c,h,p,m,_;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ct[e])n=Ct[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&L,n&L,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&L,e&L]}else if(e.substr(0,3)==="hsl"){if(n=_=e.match(fr),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,n.length>3&&(n[3]*=1),n[0]=Sr(l+1/3,s,a),n[1]=Sr(l,s,a),n[2]=Sr(l-1/3,s,a);else if(~e.indexOf("="))return n=e.match(fn),r&&n.length<4&&(n[3]=1),n}else n=e.match(fr)||Ct.transparent;n=n.map(Number)}return t&&!_&&(s=n[0]/L,a=n[1]/L,o=n[2]/L,h=Math.max(s,a,o),p=Math.min(s,a,o),c=(h+p)/2,h===p?l=u=0:(m=h-p,u=c>.5?m/(2-h-p):m/(h+p),l=h===s?(a-o)/m+(a<o?6:0):h===a?(o-s)/m+2:(s-a)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},Bn=function(e){var t=[],r=[],n=-1;return e.split(ze).forEach(function(s){var a=s.match(nt)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},Vn=function(e,t,r){var n="",s=(e+n).match(ze),a=t?"hsla(":"rgba(",o=0,l,u,c,h;if(!s)return e;if(s=s.map(function(p){return(p=zn(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=Bn(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(ze,"1").split(nt),h=u.length-1;o<h;o++)n+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(ze),h=u.length-1;o<h;o++)n+=u[o]+s[o];return n+u[h]},ze=(function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ct)i+="|"+e+"\\b";return new RegExp(i+")","gi")})(),Ls=/hsl[a]?\(/,Hn=function(e){var t=e.join(" "),r;if(ze.lastIndex=0,ze.test(t))return r=Ls.test(t),e[1]=Vn(e[1],r),e[0]=Vn(e[0],r,Bn(e[1])),!0},Ot,we=(function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,a=s,o=[],l,u,c,h,p,m,_=function f(g){var x=i()-n,v=g===!0,b,w,y,j;if((x>e||x<0)&&(r+=x-t),n+=x,y=n-r,b=y-a,(b>0||v)&&(j=++h.frame,p=y-h.time*1e3,h.time=y=y/1e3,a+=b+(b>=s?4:s-b),w=1),v||(l=u(f)),w)for(m=0;m<o.length;m++)o[m](y,p,j,g)};return h={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(g){return p/(1e3/(g||60))},wake:function(){mn&&(!pr&&dr()&&(Se=pr=window,mr=Se.document||{},ve.gsap=me,(Se.gsapVersions||(Se.gsapVersions=[])).push(me.version),_n($t||Se.GreenSockGlobals||!Se.gsap&&Se||{}),Zn.forEach(Ln)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=c||function(g){return setTimeout(g,a-h.time*1e3+1|0)},Ot=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Ot=0,u=yt},lagSmoothing:function(g,x){e=g||1/0,t=Math.min(x||33,e)},fps:function(g){s=1e3/(g||240),a=h.time*1e3+s},add:function(g,x,v){var b=x?function(w,y,j,C){g(w,y,j,C),h.remove(b)}:g;return h.remove(g),o[v?"unshift":"push"](b),ut(),b},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&m>=x&&m--},_listeners:o},h})(),ut=function(){return!Ot&&we.wake()},M={},zs=/^[\d.\-M][\d.\-,\s]/,Bs=/["']/g,Vs=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,a=r.length,o,l,u;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[n]=isNaN(u)?u.replace(Bs,"").trim():+u,n=l.substr(o+1).trim();return t},Hs=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Us=function(e){var t=(e+"").split("("),r=M[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Vs(t[1])]:Hs(e).split(",").map(wn)):M._CE&&zs.test(e)?M._CE("",e):r},Un=function(e){return function(t){return 1-e(1-t)}},$n=function i(e,t){for(var r=e._first,n;r;)r instanceof ce?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},We=function(e,t){return e&&(G(e)?e:M[e]||Us(e))||t},Xe=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},a;return he(e,function(o){M[o]=ve[o]=s,M[a=o.toLowerCase()]=r;for(var l in s)M[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=M[o+"."+l]=s[l]}),s},Yn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},kr=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),a=s/ur*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*xs((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Yn(o);return s=ur/s,l.config=function(u,c){return i(e,u,c)},l},Nr=function i(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Yn(r);return n.config=function(s){return i(e,s)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Xe(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),M.Linear.easeNone=M.none=M.Linear.easeIn,Xe("Elastic",kr("in"),kr("out"),kr()),(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(o){return o<t?i*o*o:o<r?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};Xe("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75),Xe("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)}),Xe("Circ",function(i){return-(cn(1-i*i)-1)}),Xe("Sine",function(i){return i===1?1:-vs(i*_s)+1}),Xe("Back",Nr("in"),Nr("out"),Nr()),M.SteppedEase=M.steps=ve.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,a=1-Z;return function(o){return((n*Tt(0,a,o)|0)+s)*r}}},rt.ease=M["quad.out"],he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return yr+=i+","+i+"Params,"});var Wn=function(e,t){this.id=gs++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:yn,this.set=t?t.getSetter:Rr},St=(function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ot(this,+t.duration,1,1),this.data=t.data,Y&&(this._ctx=Y,Y.data.push(this)),Ot||we.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ot(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(ut(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(er(this,r),!s._dp||s.parent||On(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ke(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Z||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),bn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Cn(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Cn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?at(this._tTime,s)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-Z?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Qt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Z?0:this._rts,this.totalTime(Tt(-Math.abs(this._delay),this.totalDuration(),s),n!==!1),Kt(this),Cs(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ut(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Z&&(this._tTime-=Z)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&ke(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(fe(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Qt(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ws);var n=se;return se=r,wr(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),se=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Nn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Nn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(qe(this,r),fe(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,fe(n)),this._dur||(this._zTime=-Z),this},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Z:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Z,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-Z)},e.eventCallback=function(r,n,s){var a=this.vars;return arguments.length>1?(n?(a[r]=n,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete a[r],this):a[r]},e.then=function(r){var n=this;return new Promise(function(s){var a=G(r)?r:Tn,o=function(){var u=n.then;n.then=null,G(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=u),s(a),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){jt(this)},i})();ye(St.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Z,_prom:0,_ps:!1,_rts:1});var ce=(function(i){un(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=fe(r.sortChildren),W&&ke(r.parent||W,Ee(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&Sn(Ee(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,a){return wt(0,arguments,this),this},t.from=function(n,s,a){return wt(1,arguments,this),this},t.fromTo=function(n,s,a,o){return wt(2,arguments,this),this},t.set=function(n,s,a){return s.duration=0,s.parent=this,bt(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new K(n,s,qe(this,a),1),this},t.call=function(n,s,a){return ke(this,K.delayedCall(0,n,s),a)},t.staggerTo=function(n,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new K(n,a,qe(this,l)),this},t.staggerFrom=function(n,s,a,o,l,u,c){return a.runBackwards=1,bt(a).immediateRender=fe(a.immediateRender),this.staggerTo(n,s,a,o,l,u,c)},t.staggerFromTo=function(n,s,a,o,l,u,c,h){return o.startAt=a,bt(o).immediateRender=fe(o.immediateRender),this.staggerTo(n,s,o,l,u,c,h)},t.render=function(n,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:Q(n),h=this._zTime<0!=n<0&&(this._initted||!u),p,m,_,f,g,x,v,b,w,y,j,C;if(this!==W&&c>l&&n>=0&&(c=l),c!==this._tTime||a||h){if(o!==this._time&&u&&(c+=this._time-o,n+=this._time-o),p=c,w=this._start,b=this._ts,x=!b,h&&(u||(o=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(j=this._yoyo,g=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,s,a);if(p=Q(c%g),c===l?(f=this._repeat,p=u):(y=Q(c/g),f=~~y,f&&f===y&&(p=u,f--),p>u&&(p=u)),y=at(this._tTime,g),!o&&this._tTime&&y!==f&&this._tTime-y*g-this._dur<=0&&(y=f),j&&f&1&&(p=u-p,C=1),f!==y&&!this._lock){var O=j&&y&1,q=O===(j&&f&1);if(f<y&&(O=!O),o=O?0:c%u?u:c,this._lock=1,this.render(o||(C?0:Q(f*g)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&be(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,q&&(this._lock=2,o=O?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;$n(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=Ns(this,Q(o),Q(p)),v&&(c-=p-(p=v._start))),this._tTime=c,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&c&&!s&&!y&&(be(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(m=this._first;m;){if(_=m._next,(m._act||p>=m._start)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(p-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(p-m._start)*m._ts,s,a),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=-Z);break}}m=_}else{m=this._last;for(var E=n<0?n:p;m;){if(_=m._prev,(m._act||E<=m._end)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(E-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(E-m._start)*m._ts,s,a||se&&wr(m)),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=E?-Z:Z);break}}m=_}}if(v&&!s&&(this.pause(),v.render(p>=o?0:-Z)._zTime=p>=o?1:-1,this._ts))return this._start=w,Kt(this),this.render(n,s,a);this._onUpdate&&!s&&be(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(w===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ze(this,1),!s&&!(n<0&&!o)&&(c||o||!l)&&(be(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var a=this;if(Me(s)||(s=qe(this,s,n)),!(n instanceof St)){if(oe(n))return n.forEach(function(o){return a.add(o,s)}),this;if(re(n))return this.addLabel(n,s);if(G(n))n=K.delayedCall(0,n);else return this}return this!==n?ke(this,n,s):this},t.getChildren=function(n,s,a,o){n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-Te);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof K?s&&l.push(u):(a&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===n)return s[a]},t.remove=function(n){return re(n)?this.removeLabel(n):G(n)?this.killTweensOf(n):(n.parent===this&&Jt(this,n),n===this._recent&&(this._recent=this._last),Ye(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Q(we.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=qe(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,a){var o=K.delayedCall(0,s||yt,a);return o.data="isPause",this._hasPause=1,ke(this,o,qe(this,n))},t.removePause=function(n){var s=this._first;for(n=qe(this,n);s;)s._start===n&&s.data==="isPause"&&Ze(s),s=s._next},t.killTweensOf=function(n,s,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)Be!==o[l]&&o[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var a=[],o=je(n),l=this._first,u=Me(s),c;l;)l instanceof K?Ts(l._targets,o)&&(u?(!Be||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},t.tweenTo=function(n,s){s=s||{};var a=this,o=qe(a,n),l=s,u=l.startAt,c=l.onStart,h=l.onStartParams,p=l.immediateRender,m,_=K.to(a,ye({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||Z,onStart:function(){if(a.pause(),!m){var g=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());_._dur!==g&&ot(_,g,0,1).render(_._time,!0,!0),m=1}c&&c.apply(_,h||[])}},s));return p?_.render(0):_},t.tweenFromTo=function(n,s,a){return this.tweenTo(s,ye({startAt:{time:qe(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),In(this,qe(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),In(this,qe(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Z)},t.shiftChildren=function(n,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=n);return Ye(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Ye(this)},t.totalDuration=function(n){var s=0,a=this,o=a._last,l=Te,u,c,h;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(h=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,ke(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!h&&!a._dp||h&&h.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;ot(a,a===W&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(W._ts&&(bn(W,Qt(n,W)),vn=we.frame),we.frame>=xn){xn+=ge.autoSleep||120;var s=W._first;if((!s||!s._ts)&&ge.autoSleep&&we._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||we.sleep()}}},e})(St);ye(ce.prototype,{_lock:0,_hasPause:0,_forcing:0});var $s=function(e,t,r,n,s,a,o){var l=new pe(this._pt,e,t,0,1,ei,null,s),u=0,c=0,h,p,m,_,f,g,x,v;for(l.b=r,l.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=qt(n)),a&&(v=[r,n],a(v,e,t),r=v[0],n=v[1]),p=r.match(hr)||[];h=hr.exec(n);)_=h[0],f=n.substring(u,h.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),_!==p[c++]&&(g=parseFloat(p[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:g,c:_.charAt(1)==="="?it(g,_)-g:parseFloat(_)-g,m:m&&m<4?Math.round:0},u=hr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=o,(hn.test(n)||x)&&(l.e=0),this._pt=l,l},Pr=function(e,t,r,n,s,a,o,l,u,c){G(n)&&(n=n(s||0,e,a));var h=e[t],p=r!=="get"?r:G(h)?u?e[t.indexOf("set")||!G(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():h,m=G(h)?u?Js:Qn:Ar,_;if(re(n)&&(~n.indexOf("random(")&&(n=qt(n)),n.charAt(1)==="="&&(_=it(p,n)+(le(p)||0),(_||_===0)&&(n=_))),!c||p!==n||Er)return!isNaN(p*n)&&n!==""?(_=new pe(this._pt,e,t,+p||0,n-(p||0),typeof h=="boolean"?Ks:Kn,0,m),u&&(_.fp=u),o&&_.modifier(o,this,e),this._pt=_):(!h&&!(t in e)&&_r(t,n),$s.call(this,e,t,p,n,m,l||ge.stringFilter,u))},Ys=function(e,t,r,n,s){if(G(e)&&(e=kt(e,s,t,r,n)),!Oe(e)||e.style&&e.nodeType||oe(e)||dn(e))return re(e)?kt(e,s,t,r,n):e;var a={},o;for(o in e)a[o]=kt(e[o],s,t,r,n);return a},Xn=function(e,t,r,n,s,a){var o,l,u,c;if(xe[e]&&(o=new xe[e]).init(s,o.rawVars?t[e]:Ys(t[e],n,s,a,r),r,n,a)!==!1&&(r._pt=l=new pe(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==lt))for(u=r._ptLookup[r._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},Be,Er,Mr=function i(e,t,r){var n=e.vars,s=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,h=n.yoyoEase,p=n.keyframes,m=n.autoRevert,_=e._dur,f=e._startAt,g=e._targets,x=e.parent,v=x&&x.data==="nested"?x.vars.targets:g,b=e._overwrite==="auto"&&!lr,w=e.timeline,y,j,C,O,q,E,F,D,R,H,V,z,U;if(w&&(!p||!s)&&(s="none"),e._ease=We(s,rt.ease),e._yEase=h?Un(We(h===!0?s:h,rt.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!w&&!!n.runBackwards,!w||p&&!n.stagger){if(D=g[0]?$e(g[0]).harness:0,z=D&&n[D.prop],y=Gt(n,gr),f&&(f._zTime<0&&f.progress(1),t<0&&c&&o&&!m?f.render(-1,!0):f.revert(c&&_?Yt:bs),f._lazy=0),a){if(Ze(e._startAt=K.set(g,ye({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!f&&fe(l),startAt:null,delay:0,onUpdate:u&&function(){return be(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(se||!o&&!m)&&e._startAt.revert(Yt),o&&_&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&_&&!f){if(t&&(o=!1),C=ye({overwrite:!1,data:"isFromStart",lazy:o&&!f&&fe(l),immediateRender:o,stagger:0,parent:x},y),z&&(C[D.prop]=z),Ze(e._startAt=K.set(g,C)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(se?e._startAt.revert(Yt):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,Z,Z);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&fe(l)||l&&!_,j=0;j<g.length;j++){if(q=g[j],F=q._gsap||br(g)[j]._gsap,e._ptLookup[j]=H={},vr[F.id]&&Ie.length&&Xt(),V=v===g?j:v.indexOf(q),D&&(R=new D).init(q,z||y,e,V,v)!==!1&&(e._pt=O=new pe(e._pt,q,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(ne){H[ne]=O}),R.priority&&(E=1)),!D||z)for(C in y)xe[C]&&(R=Xn(C,y,e,V,q,v))?R.priority&&(E=1):H[C]=O=Pr.call(e,q,C,"get",y[C],V,v,0,n.stringFilter);e._op&&e._op[j]&&e.kill(q,e._op[j]),b&&e._pt&&(Be=e,W.killTweensOf(q,H,e.globalTime(t)),U=!e.parent,Be=0),e._pt&&l&&(vr[F.id]=1)}E&&ti(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!U,p&&t<=0&&w.render(Te,!0,!0)},Ws=function(e,t,r,n,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,h,p,m;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,m=e._targets.length;m--;){if(c=p[m][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Er=1,e.vars[t]="+=0",Mr(e,o),Er=0,l?xt(t+" not eligible for reset"):1;u.push(c)}for(m=u.length;m--;)h=u[m],c=h._pt||h,c.s=(n||n===0)&&!s?n:c.s+(n||0)+a*c.c,c.c=r-c.s,h.e&&(h.e=J(r)+le(h.e)),h.b&&(h.b=c.s+le(h.b))},Xs=function(e,t){var r=e[0]?$e(e[0]).harness:0,n=r&&r.aliases,s,a,o,l;if(!n)return t;s=st({},t);for(a in n)if(a in s)for(l=n[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Gs=function(e,t,r,n){var s=t.ease||n||"power1.inOut",a,o;if(oe(t))o=r[e]||(r[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},kt=function(e,t,r,n,s){return G(e)?e.call(t,r,n,s):re(e)&&~e.indexOf("random(")?qt(e):e},Gn=yr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Jn={};he(Gn+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Jn[i]=1});var K=(function(i){un(e,i);function e(r,n,s,a){var o;typeof n=="number"&&(s.duration=n,n=s,s=null),o=i.call(this,a?n:bt(n))||this;var l=o.vars,u=l.duration,c=l.delay,h=l.immediateRender,p=l.stagger,m=l.overwrite,_=l.keyframes,f=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,v=n.parent||W,b=(oe(r)||dn(r)?Me(r[0]):"length"in n)?[r]:je(r),w,y,j,C,O,q,E,F;if(o._targets=b.length?br(b):xt("GSAP target "+r+" not found. https://gsap.com",!ge.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=m,_||p||Ut(u)||Ut(c)){if(n=o.vars,w=o.timeline=new ce({data:"nested",defaults:f||{},targets:v&&v.data==="nested"?v.vars.targets:b}),w.kill(),w.parent=w._dp=Ee(o),w._start=0,p||Ut(u)||Ut(c)){if(C=b.length,E=p&&Mn(p),Oe(p))for(O in p)~Gn.indexOf(O)&&(F||(F={}),F[O]=p[O]);for(y=0;y<C;y++)j=Gt(n,Jn),j.stagger=0,x&&(j.yoyoEase=x),F&&st(j,F),q=b[y],j.duration=+kt(u,Ee(o),y,q,b),j.delay=(+kt(c,Ee(o),y,q,b)||0)-o._delay,!p&&C===1&&j.delay&&(o._delay=c=j.delay,o._start+=c,j.delay=0),w.to(q,j,E?E(y,q,b):0),w._ease=M.none;w.duration()?u=c=0:o.timeline=0}else if(_){bt(ye(w.vars.defaults,{ease:"none"})),w._ease=We(_.ease||n.ease||"none");var D=0,R,H,V;if(oe(_))_.forEach(function(z){return w.to(b,z,">")}),w.duration();else{j={};for(O in _)O==="ease"||O==="easeEach"||Gs(O,_[O],j,_.easeEach);for(O in j)for(R=j[O].sort(function(z,U){return z.t-U.t}),D=0,y=0;y<R.length;y++)H=R[y],V={ease:H.e,duration:(H.t-(y?R[y-1].t:0))/100*u},V[O]=H.v,w.to(b,V,D),D+=V.duration;w.duration()<u&&w.to({},{duration:u-w.duration()})}}u||o.duration(u=w.duration())}else o.timeline=0;return m===!0&&!lr&&(Be=Ee(o),W.killTweensOf(b),Be=0),ke(v,Ee(o),s),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(h||!u&&!_&&o._start===Q(v._time)&&fe(h)&&Os(Ee(o))&&v.data!=="nested")&&(o._tTime=-Z,o.render(Math.max(0,-c)||0)),g&&Sn(Ee(o),g),o}var t=e.prototype;return t.render=function(n,s,a){var o=this._time,l=this._tDur,u=this._dur,c=n<0,h=n>l-Z&&!c?l:n<Z?0:n,p,m,_,f,g,x,v,b,w;if(!u)ks(this,n,s,a);else if(h!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=h,b=this.timeline,this._repeat){if(f=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+n,s,a);if(p=Q(h%f),h===l?(_=this._repeat,p=u):(g=Q(h/f),_=~~g,_&&_===g?(p=u,_--):p>u&&(p=u)),x=this._yoyo&&_&1,x&&(w=this._yEase,p=u-p),g=at(this._tTime,f),p===o&&!a&&this._initted&&_===g)return this._tTime=h,this;_!==g&&(b&&this._yEase&&$n(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&p!==f&&this._initted&&(this._lock=a=1,this.render(Q(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(kn(this,c?n:p,a,s,h))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(n,s,a)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(w||this._ease)(p/u),this._from&&(this.ratio=v=1-v),!o&&h&&!s&&!g&&(be(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(v,m.d),m=m._next;b&&b.render(n<0?n:b._dur*b._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&Tr(this,n,s,a),be(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&be(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&Tr(this,n,!0,!0),(n||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ze(this,1),!s&&!(c&&!o)&&(h||o||x)&&(be(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,a,o,l){Ot||we.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Mr(this,u),c=this._ease(u/this._dur),Ws(this,n,s,a,o,c,u,l)?this.resetTo(n,s,a,o,1):(er(this,0),this.parent||jn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?jt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!se),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,Be&&Be.vars.overwrite!==!0)._first||jt(this),this.parent&&a!==this.timeline.totalDuration()&&ot(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?je(n):o,u=this._ptLookup,c=this._pt,h,p,m,_,f,g,x;if((!s||s==="all")&&js(o,l))return s==="all"&&(this._pt=0),jt(this);for(h=this._op=this._op||[],s!=="all"&&(re(s)&&(f={},he(s,function(v){return f[v]=1}),s=f),s=Xs(o,s)),x=o.length;x--;)if(~l.indexOf(o[x])){p=u[x],s==="all"?(h[x]=s,_=p,m={}):(m=h[x]=h[x]||{},_=s);for(f in _)g=p&&p[f],g&&((!("kill"in g.d)||g.d.kill(f)===!0)&&Jt(this,g,"_pt"),delete p[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&c&&jt(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return wt(1,arguments)},e.delayedCall=function(n,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,s,a){return wt(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,a){return W.killTweensOf(n,s,a)},e})(St);ye(K.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",function(i){K[i]=function(){var e=new ce,t=jr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Ar=function(e,t,r){return e[t]=r},Qn=function(e,t,r){return e[t](r)},Js=function(e,t,r,n){return e[t](n.fp,r)},Qs=function(e,t,r){return e.setAttribute(t,r)},Rr=function(e,t){return G(e[t])?Qn:cr(e[t])&&e.setAttribute?Qs:Ar},Kn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Ks=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ei=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Dr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},ea=function(e,t,r,n){for(var s=this._pt,a;s;)a=s._next,s.p===n&&s.modifier(e,t,r),s=a},ta=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Jt(this,t,"_pt"):t.dep||(r=1),t=n;return!r},ra=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},ti=function(e){for(var t=e._pt,r,n,s,a;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:a=t,t=r}e._pt=s},pe=(function(){function i(t,r,n,s,a,o,l,u,c){this.t=r,this.s=s,this.c=a,this.p=n,this.r=o||Kn,this.d=l||this,this.set=u||Ar,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=ra,this.m=r,this.mt=s,this.tween=n},i})();he(yr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return gr[i]=1}),ve.TweenMax=ve.TweenLite=K,ve.TimelineLite=ve.TimelineMax=ce,W=new ce({sortChildren:!1,defaults:rt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ge.stringFilter=Hn;var Ge=[],tr={},na=[],ri=0,ia=0,Fr=function(e){return(tr[e]||na).map(function(t){return t()})},Ir=function(){var e=Date.now(),t=[];e-ri>2&&(Fr("matchMediaInit"),Ge.forEach(function(r){var n=r.queries,s=r.conditions,a,o,l,u;for(o in n)a=Se.matchMedia(n[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(r.revert(),l&&t.push(r))}),Fr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ri=e,Fr("matchMedia"))},ni=(function(){function i(t,r){this.selector=r&&Cr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ia++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){G(r)&&(s=n,n=r,r=G);var a=this,o=function(){var u=Y,c=a.selector,h;return u&&u!==a&&u.data.push(a),s&&(a.selector=Cr(s)),Y=a,h=n.apply(a,arguments),G(h)&&a._r.push(h),Y=u,a.selector=c,a.isReverted=!1,h};return a.last=o,r===G?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var n=Y;Y=null,r(this),Y=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof K&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r?(function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof ce?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof K)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),n)for(var a=Ge.length;a--;)Ge[a].id===this.id&&Ge.splice(a,1)},e.revert=function(r){this.kill(r||{})},i})(),sa=(function(){function i(t){this.contexts=[],this.scope=t,Y&&Y.data.push(this)}var e=i.prototype;return e.add=function(r,n,s){Oe(r)||(r={matches:r});var a=new ni(0,s||this.scope),o=a.conditions={},l,u,c;Y&&!a.selector&&(a.selector=Y.selector),this.contexts.push(a),n=a.add("onMatch",n),a.queries=r;for(u in r)u==="all"?c=1:(l=Se.matchMedia(r[u]),l&&(Ge.indexOf(a)<0&&Ge.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(Ir):l.addEventListener("change",Ir)));return c&&n(a,function(h){return a.add(null,h)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i})(),rr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return Ln(n)})},timeline:function(e){return new ce(e)},getTweensOf:function(e,t){return W.getTweensOf(e,t)},getProperty:function(e,t,r,n){re(e)&&(e=je(e)[0]);var s=$e(e||{}).get,a=r?Tn:wn;return r==="native"&&(r=""),e&&(t?a((xe[t]&&xe[t].get||s)(e,t,r,n)):function(o,l,u){return a((xe[o]&&xe[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,r){if(e=je(e),e.length>1){var n=e.map(function(c){return me.quickSetter(c,t,r)}),s=n.length;return function(c){for(var h=s;h--;)n[h](c)}}e=e[0]||{};var a=xe[t],o=$e(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(c){var h=new a;lt._pt=0,h.init(e,r?c+r:c,lt,0,[e]),h.render(1,h),lt._pt&&Dr(1,lt)}:o.set(e,l);return a?u:function(c){return u(e,l,r?c+r:c,o,1)}},quickTo:function(e,t,r){var n,s=me.to(e,ye((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(l,u,c){return s.resetTo(t,l,u,c)};return a.tween=s,a},isTweening:function(e){return W.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=We(e.ease,rt.ease)),qn(rt,e||{})},config:function(e){return qn(ge,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!xe[o]&&!ve[o]&&xt(t+" effect requires "+o+" plugin.")}),xr[t]=function(o,l,u){return r(je(o),ye(l||{},s),u)},a&&(ce.prototype[t]=function(o,l,u){return this.add(xr[t](o,Oe(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){M[e]=We(t)},parseEase:function(e,t){return arguments.length?We(e,t):M},getById:function(e){return W.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new ce(e),n,s;for(r.smoothChildTiming=fe(e.smoothChildTiming),W.remove(r),r._dp=0,r._time=r._tTime=W._time,n=W._first;n;)s=n._next,(t||!(!n._dur&&n instanceof K&&n.vars.onComplete===n._targets[0]))&&ke(r,n,n._start-n._delay),n=s;return ke(W,r,0),r},context:function(e,t){return e?new ni(e,t):Y},matchMedia:function(e){return new sa(e)},matchMediaRefresh:function(){return Ge.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Ir()},addEventListener:function(e,t){var r=tr[e]||(tr[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=tr[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:Fs,wrapYoyo:Is,distribute:Mn,random:Rn,snap:An,normalize:Ds,getUnit:le,clamp:Es,splitColor:zn,toArray:je,selector:Cr,mapRange:Fn,pipe:As,unitize:Rs,interpolate:Zs,shuffle:En},install:_n,effects:xr,ticker:we,updateRoot:ce.updateRoot,plugins:xe,globalTimeline:W,core:{PropTween:pe,globals:gn,Tween:K,Timeline:ce,Animation:St,getCache:$e,_removeLinkedListItem:Jt,reverting:function(){return se},context:function(e){return e&&Y&&(Y.data.push(e),e._ctx=Y),Y},suppressOverwrites:function(e){return lr=e}}};he("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return rr[i]=K[i]}),we.add(ce.updateRoot),lt=rr.to({},{duration:0});var aa=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},oa=function(e,t){var r=e._targets,n,s,a;for(n in t)for(s=r.length;s--;)a=e._ptLookup[s][n],a&&(a=a.d)&&(a._pt&&(a=aa(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[s],n))},Zr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,s,a){a._onInit=function(o){var l,u;if(re(s)&&(l={},he(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}oa(o,s)}}}},me=rr.registerPlugin({name:"attr",init:function(e,t,r,n,s){var a,o,l;this.tween=r;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)se?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Zr("roundProps",Or),Zr("modifiers"),Zr("snap",An))||rr;K.version=ce.version=me.version="3.13.0",mn=1,dr()&&ut(),M.Power0,M.Power1,M.Power2,M.Power3,M.Power4,M.Linear,M.Quad,M.Cubic,M.Quart,M.Quint,M.Strong,M.Elastic,M.Back,M.SteppedEase,M.Bounce,M.Sine,M.Expo,M.Circ;/*!
|
|
41
|
+
*/var ve={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},it={duration:.5,overwrite:!1,delay:0},lr,oe,Y,qe=1e8,L=1/qe,ur=Math.PI*2,ps=ur/4,ms=0,ln=Math.sqrt,_s=Math.cos,gs=Math.sin,ie=function(e){return typeof e=="string"},G=function(e){return typeof e=="function"},Fe=function(e){return typeof e=="number"},cr=function(e){return typeof e>"u"},Ne=function(e){return typeof e=="object"},he=function(e){return e!==!1},dr=function(){return typeof window<"u"},$t=function(e){return G(e)||ie(e)},un=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,fr=/(?:-?\.?\d|\.)+/gi,cn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,st=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,hr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,dn=/[+-]=-?[.\d]+/,fn=/[^,'"\[\]\s]+/gi,vs=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,W,Pe,pr,mr,xe={},Yt={},hn,pn=function(e){return(Yt=ot(e,xe))&&_e},_r=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},bt=function(e,t){return!t&&console.warn(e)},mn=function(e,t){return e&&(xe[e]=t)&&Yt&&(Yt[e]=t)||xe},wt=function(){return 0},xs={suppressEvents:!0,isStart:!0,kill:!1},Wt={suppressEvents:!0,kill:!1},ys={suppressEvents:!0},gr={},Le=[],vr={},_n,ye={},xr={},gn=30,Xt=[],yr="",br=function(e){var t=e[0],r,n;if(Ne(t)||G(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=Xt.length;n--&&!Xt[n].targetTest(t););r=Xt[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new $n(e[n],r)))||e.splice(n,1);return e},We=function(e){return e._gsap||br(Ce(e))[0]._gsap},vn=function(e,t,r){return(r=e[t])&&G(r)?e[t]():cr(r)&&e.getAttribute&&e.getAttribute(t)||r},pe=function(e,t){return(e=e.split(",")).forEach(t)||e},J=function(e){return Math.round(e*1e5)/1e5||0},K=function(e){return Math.round(e*1e7)/1e7||0},at=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},bs=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Gt=function(){var e=Le.length,t=Le.slice(0),r,n;for(vr={},Le.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},wr=function(e){return!!(e._initted||e._startAt||e.add)},xn=function(e,t,r,n){Le.length&&!oe&&Gt(),e.render(t,r,!!(oe&&t<0&&wr(e))),Le.length&&!oe&&Gt()},yn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(fn).length<2?t:ie(e)?e.trim():e},bn=function(e){return e},be=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},ws=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},ot=function(e,t){for(var r in t)e[r]=t[r];return e},wn=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Ne(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},Jt=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},Tt=function(e){var t=e.parent||W,r=e.keyframes?ws(ue(e.keyframes)):be;if(he(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},Ts=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},Tn=function(e,t,r,n,s){var a=e[n],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Qt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=t._prev,a=t._next;s?s._next=a:e[r]===t&&(e[r]=a),a?a._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Be=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Xe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},js=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Tr=function(e,t,r,n){return e._startAt&&(oe?e._startAt.revert(Wt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},qs=function i(e){return!e||e._ts&&i(e.parent)},jn=function(e){return e._repeat?lt(e._tTime,e=e.duration()+e._rDelay)*e:0},lt=function(e,t){var r=Math.floor(e=K(e/t));return e&&r===e?r-1:r},Kt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},er=function(e){return e._end=K(e._start+(e._tDur/Math.abs(e._ts||e._rts||L)||0))},tr=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=K(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),er(e),r._dirty||Xe(r,e)),e},qn=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=Kt(e.rawTime(),t),(!t._dur||qt(0,t.totalDuration(),r)-t._tTime>L)&&t.render(r,!0)),Xe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-L}},Ee=function(e,t,r,n){return t.parent&&Be(t),t._start=K((Fe(r)?r:r||e!==W?Oe(e,r,t):e._time)+t._delay),t._end=K(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Tn(e,t,"_first","_last",e._sort?"_start":0),jr(t)||(e._recent=t),n||qn(e,t),e._ts<0&&tr(e,e._tTime),e},On=function(e,t){return(xe.ScrollTrigger||_r("scrollTrigger",t))&&xe.ScrollTrigger.create(t,e)},Cn=function(e,t,r,n,s){if(Mr(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!oe&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&_n!==Te.frame)return Le.push(e),e._lazy=[s,n],1},Os=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},jr=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Cs=function(e,t,r,n){var s=e.ratio,a=t<0||!t&&(!e._start&&Os(e)&&!(!e._initted&&jr(e))||(e._ts<0||e._dp._ts<0)&&!jr(e))?0:1,o=e._rDelay,l=0,u,c,h;if(o&&e._repeat&&(l=qt(0,e._tDur,t),c=lt(l,o),e._yoyo&&c&1&&(a=1-a),c!==lt(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||oe||n||e._zTime===L||!t&&e._zTime){if(!e._initted&&Cn(e,t,n,r,l))return;for(h=e._zTime,e._zTime=t||(r?L:0),r||(r=t&&!h),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&Tr(e,t,r,!0),e._onUpdate&&!r&&we(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&we(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Be(e,1),!r&&!oe&&(we(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Ss=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},ut=function(e,t,r,n){var s=e._repeat,a=K(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:K(a*(s+1)+e._rDelay*s):a,o>0&&!n&&tr(e,e._tTime=e._tDur*o),e.parent&&er(e),r||Xe(e.parent,e),e},Sn=function(e){return e instanceof de?Xe(e):ut(e,e._dur)},ks={_start:0,endTime:wt,totalDuration:wt},Oe=function i(e,t,r){var n=e.labels,s=e._recent||ks,a=e.duration()>=qe?s.endTime(!1):e._dur,o,l,u;return ie(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:r).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&r&&(l=l/100*(ue(r)?r[0]:r).totalDuration()),o>1?i(e,t.substr(0,o-1),r)+l:a+l)):t==null?a:+t},jt=function(e,t,r){var n=Fe(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s],o,l;if(n&&(a.duration=t[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=he(l.vars.inherit)&&l.parent;a.immediateRender=he(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new ee(t[0],a,t[s+1])},ze=function(e,t){return e||e===0?t(e):t},qt=function(e,t,r){return r<e?e:r>t?t:r},ce=function(e,t){return!ie(e)||!(t=vs.exec(e))?"":t[1]},Ns=function(e,t,r){return ze(r,function(n){return qt(e,t,n)})},qr=[].slice,kn=function(e,t){return e&&Ne(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Ne(e[0]))&&!e.nodeType&&e!==Pe},Ps=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var s;return ie(n)&&!t||kn(n,1)?(s=r).push.apply(s,Ce(n)):r.push(n)})||r},Ce=function(e,t,r){return Y&&!t&&Y.selector?Y.selector(e):ie(e)&&!r&&(pr||!dt())?qr.call((t||mr).querySelectorAll(e),0):ue(e)?Ps(e,r):kn(e)?qr.call(e,0):e?[e]:[]},Or=function(e){return e=Ce(e)[0]||bt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return Ce(t,r.querySelectorAll?r:r===e?bt("Invalid scope")||mr.createElement("div"):e)}},Nn=function(e){return e.sort(function(){return .5-Math.random()})},Pn=function(e){if(G(e))return e;var t=Ne(e)?e:{each:e},r=Ge(t.ease),n=t.from||0,s=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,u=t.axis,c=n,h=n;return ie(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(c=n[0],h=n[1]),function(p,m,_){var f=(_||t).length,g=a[f],x,v,b,T,y,j,O,C,q;if(!g){if(q=t.grid==="auto"?0:(t.grid||[1,qe])[1],!q){for(O=-qe;O<(O=_[q++].getBoundingClientRect().left)&&q<f;);q<f&&q--}for(g=a[f]=[],x=l?Math.min(q,f)*c-.5:n%q,v=q===qe?0:l?f*h/q-.5:n/q|0,O=0,C=qe,j=0;j<f;j++)b=j%q-x,T=v-(j/q|0),g[j]=y=u?Math.abs(u==="y"?T:b):ln(b*b+T*T),y>O&&(O=y),y<C&&(C=y);n==="random"&&Nn(g),g.max=O-C,g.min=C,g.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(q>f?f-1:u?u==="y"?f/q:q:Math.max(q,f/q))||0)*(n==="edges"?-1:1),g.b=f<0?s-f:s,g.u=ce(t.amount||t.each)||0,r=r&&f<0?Vn(r):r}return f=(g[p]-g.min)/g.max||0,K(g.b+(r?r(f):f)*g.v)+g.u}},Cr=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=K(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Fe(r)?0:ce(r))}},En=function(e,t){var r=ue(e),n,s;return!r&&Ne(e)&&(n=r=e.radius||qe,e.values?(e=Ce(e.values),(s=!Fe(e[0]))&&(n*=n)):e=Cr(e.increment)),ze(t,r?G(e)?function(a){return s=e(a),Math.abs(s-a)<=n?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=qe,c=0,h=e.length,p,m;h--;)s?(p=e[h].x-o,m=e[h].y-l,p=p*p+m*m):p=Math.abs(e[h]-o),p<u&&(u=p,c=h);return c=!n||u<=n?e[c]:a,s||c===a||Fe(a)?c:c+ce(a)}:Cr(e))},Mn=function(e,t,r,n){return ze(ue(e)?!t:r===!0?!!(r=0):!n,function(){return ue(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},Es=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(s,a){return a(s)},n)}},Ms=function(e,t){return function(r){return e(parseFloat(r))+(t||ce(r))}},As=function(e,t,r){return Rn(e,t,0,1,r)},An=function(e,t,r){return ze(r,function(n){return e[~~t(n)]})},Rs=function i(e,t,r){var n=t-e;return ue(e)?An(e,i(0,e.length),t):ze(r,function(s){return(n+(s-e)%n)%n+e})},Fs=function i(e,t,r){var n=t-e,s=n*2;return ue(e)?An(e,i(0,e.length-1),t):ze(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>n?s-a:a)})},Ot=function(e){for(var t=0,r="",n,s,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",s=e.substr(n+7,a-n-7).match(o?fn:fr),r+=e.substr(t,n-t)+Mn(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return r+e.substr(t,e.length-t)},Rn=function(e,t,r,n,s){var a=t-e,o=n-r;return ze(s,function(l){return r+((l-e)/a*o||0)})},Ds=function i(e,t,r,n){var s=isNaN(e+t)?0:function(m){return(1-m)*e+m*t};if(!s){var a=ie(e),o={},l,u,c,h,p;if(r===!0&&(n=1)&&(r=null),a)e={p:e},t={p:t};else if(ue(e)&&!ue(t)){for(c=[],h=e.length,p=h-2,u=1;u<h;u++)c.push(i(e[u-1],e[u]));h--,s=function(_){_*=h;var f=Math.min(p,~~_);return c[f](_-f)},r=t}else n||(e=ot(ue(e)?[]:{},e));if(!c){for(l in t)Pr.call(o,e,l,"get",t[l]);s=function(_){return Fr(_,o)||(a?e.p:e)}}}return ze(r,s)},Fn=function(e,t,r){var n=e.labels,s=qe,a,o,l;for(a in n)o=n[a]-t,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},we=function(e,t,r){var n=e.vars,s=n[t],a=Y,o=e._ctx,l,u,c;if(s)return l=n[t+"Params"],u=n.callbackScope||e,r&&Le.length&&Gt(),o&&(Y=o),c=l?s.apply(u,l):s.call(u),Y=a,c},Ct=function(e){return Be(e),e.scrollTrigger&&e.scrollTrigger.kill(!!oe),e.progress()<1&&we(e,"onInterrupt"),e},ct,Dn=[],In=function(e){if(e)if(e=!e.name&&e.default||e,dr()||e.headless){var t=e.name,r=G(e),n=t&&!r&&e.init?function(){this._props=[]}:e,s={init:wt,render:Fr,add:Pr,kill:Ks,modifier:Qs,rawVars:0},a={targetTest:0,get:0,getSetter:Rr,aliases:{},register:0};if(dt(),e!==n){if(ye[t])return;be(n,be(Jt(e,s),a)),ot(n.prototype,ot(s,Jt(e,a))),ye[n.prop=t]=n,e.targetTest&&(Xt.push(n),gr[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}mn(t,n),e.register&&e.register(_e,n,me)}else Dn.push(e)},B=255,St={aqua:[0,B,B],lime:[0,B,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,B],navy:[0,0,128],white:[B,B,B],olive:[128,128,0],yellow:[B,B,0],orange:[B,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[B,0,0],pink:[B,192,203],cyan:[0,B,B],transparent:[B,B,B,0]},Sr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*B+.5|0},Zn=function(e,t,r){var n=e?Fe(e)?[e>>16,e>>8&B,e&B]:0:St.black,s,a,o,l,u,c,h,p,m,_;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),St[e])n=St[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&B,n&B,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&B,e&B]}else if(e.substr(0,3)==="hsl"){if(n=_=e.match(fr),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,a=c<=.5?c*(u+1):c+u-c*u,s=c*2-a,n.length>3&&(n[3]*=1),n[0]=Sr(l+1/3,s,a),n[1]=Sr(l,s,a),n[2]=Sr(l-1/3,s,a);else if(~e.indexOf("="))return n=e.match(cn),r&&n.length<4&&(n[3]=1),n}else n=e.match(fr)||St.transparent;n=n.map(Number)}return t&&!_&&(s=n[0]/B,a=n[1]/B,o=n[2]/B,h=Math.max(s,a,o),p=Math.min(s,a,o),c=(h+p)/2,h===p?l=u=0:(m=h-p,u=c>.5?m/(2-h-p):m/(h+p),l=h===s?(a-o)/m+(a<o?6:0):h===a?(o-s)/m+2:(s-a)/m+4,l*=60),n[0]=~~(l+.5),n[1]=~~(u*100+.5),n[2]=~~(c*100+.5)),r&&n.length<4&&(n[3]=1),n},Ln=function(e){var t=[],r=[],n=-1;return e.split(Ve).forEach(function(s){var a=s.match(st)||[];t.push.apply(t,a),r.push(n+=a.length+1)}),t.c=r,t},Bn=function(e,t,r){var n="",s=(e+n).match(Ve),a=t?"hsla(":"rgba(",o=0,l,u,c,h;if(!s)return e;if(s=s.map(function(p){return(p=Zn(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),r&&(c=Ln(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(Ve,"1").split(st),h=u.length-1;o<h;o++)n+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(Ve),h=u.length-1;o<h;o++)n+=u[o]+s[o];return n+u[h]},Ve=(function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in St)i+="|"+e+"\\b";return new RegExp(i+")","gi")})(),Is=/hsl[a]?\(/,zn=function(e){var t=e.join(" "),r;if(Ve.lastIndex=0,Ve.test(t))return r=Is.test(t),e[1]=Bn(e[1],r),e[0]=Bn(e[0],r,Ln(e[1])),!0},kt,Te=(function(){var i=Date.now,e=500,t=33,r=i(),n=r,s=1e3/240,a=s,o=[],l,u,c,h,p,m,_=function f(g){var x=i()-n,v=g===!0,b,T,y,j;if((x>e||x<0)&&(r+=x-t),n+=x,y=n-r,b=y-a,(b>0||v)&&(j=++h.frame,p=y-h.time*1e3,h.time=y=y/1e3,a+=b+(b>=s?4:s-b),T=1),v||(l=u(f)),T)for(m=0;m<o.length;m++)o[m](y,p,j,g)};return h={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(g){return p/(1e3/(g||60))},wake:function(){hn&&(!pr&&dr()&&(Pe=pr=window,mr=Pe.document||{},xe.gsap=_e,(Pe.gsapVersions||(Pe.gsapVersions=[])).push(_e.version),pn(Yt||Pe.GreenSockGlobals||!Pe.gsap&&Pe||{}),Dn.forEach(In)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=c||function(g){return setTimeout(g,a-h.time*1e3+1|0)},kt=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),kt=0,u=wt},lagSmoothing:function(g,x){e=g||1/0,t=Math.min(x||33,e)},fps:function(g){s=1e3/(g||240),a=h.time*1e3+s},add:function(g,x,v){var b=x?function(T,y,j,O){g(T,y,j,O),h.remove(b)}:g;return h.remove(g),o[v?"unshift":"push"](b),dt(),b},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&m>=x&&m--},_listeners:o},h})(),dt=function(){return!kt&&Te.wake()},M={},Zs=/^[\d.\-M][\d.\-,\s]/,Ls=/["']/g,Bs=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],s=1,a=r.length,o,l,u;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[n]=isNaN(u)?u.replace(Ls,"").trim():+u,n=l.substr(o+1).trim();return t},zs=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},Vs=function(e){var t=(e+"").split("("),r=M[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Bs(t[1])]:zs(e).split(",").map(yn)):M._CE&&Zs.test(e)?M._CE("",e):r},Vn=function(e){return function(t){return 1-e(1-t)}},Hn=function i(e,t){for(var r=e._first,n;r;)r instanceof de?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},Ge=function(e,t){return e&&(G(e)?e:M[e]||Vs(e))||t},Je=function(e,t,r,n){r===void 0&&(r=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:n},a;return pe(e,function(o){M[o]=xe[o]=s,M[a=o.toLowerCase()]=r;for(var l in s)M[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=M[o+"."+l]=s[l]}),s},Un=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},kr=function i(e,t,r){var n=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),a=s/ur*(Math.asin(1/n)||0),o=function(c){return c===1?1:n*Math.pow(2,-10*c)*gs((c-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Un(o);return s=ur/s,l.config=function(u,c){return i(e,u,c)},l},Nr=function i(e,t){t===void 0&&(t=1.70158);var r=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:Un(r);return n.config=function(s){return i(e,s)},n};pe("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Je(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),M.Linear.easeNone=M.none=M.Linear.easeIn,Je("Elastic",kr("in"),kr("out"),kr()),(function(i,e){var t=1/e,r=2*t,n=2.5*t,s=function(o){return o<t?i*o*o:o<r?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};Je("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75),Je("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)}),Je("Circ",function(i){return-(ln(1-i*i)-1)}),Je("Sine",function(i){return i===1?1:-_s(i*ps)+1}),Je("Back",Nr("in"),Nr("out"),Nr()),M.SteppedEase=M.steps=xe.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),s=t?1:0,a=1-L;return function(o){return((n*qt(0,a,o)|0)+s)*r}}},it.ease=M["quad.out"],pe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return yr+=i+","+i+"Params,"});var $n=function(e,t){this.id=ms++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:vn,this.set=t?t.getSetter:Rr},Nt=(function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ut(this,+t.duration,1,1),this.data=t.data,Y&&(this._ctx=Y,Y.data.push(this)),kt||Te.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ut(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(dt(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(tr(this,r),!s._dp||s.parent||qn(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ee(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===L||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),xn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+jn(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+jn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,n):this._repeat?lt(this._tTime,s)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Kt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-L?0:this._rts,this.totalTime(qt(-Math.abs(this._delay),this.totalDuration(),s),n!==!1),er(this),js(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(dt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Ee(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(he(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Kt(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=ys);var n=oe;return oe=r,wr(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),oe=n,this},e.globalTime=function(r){for(var n=this,s=arguments.length?r:n.rawTime();n;)s=n._start+s/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Sn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Sn(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(Oe(this,r),he(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,he(n)),this._dur||(this._zTime=-L),this},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-L:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=n&&s<this.endTime(!0)-L)},e.eventCallback=function(r,n,s){var a=this.vars;return arguments.length>1?(n?(a[r]=n,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=n)):delete a[r],this):a[r]},e.then=function(r){var n=this;return new Promise(function(s){var a=G(r)?r:bn,o=function(){var u=n.then;n.then=null,G(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=u),s(a),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){Ct(this)},i})();be(Nt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-L,_prom:0,_ps:!1,_rts:1});var de=(function(i){on(e,i);function e(r,n){var s;return r===void 0&&(r={}),s=i.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=he(r.sortChildren),W&&Ee(r.parent||W,Re(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&On(Re(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(n,s,a){return jt(0,arguments,this),this},t.from=function(n,s,a){return jt(1,arguments,this),this},t.fromTo=function(n,s,a,o){return jt(2,arguments,this),this},t.set=function(n,s,a){return s.duration=0,s.parent=this,Tt(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new ee(n,s,Oe(this,a),1),this},t.call=function(n,s,a){return Ee(this,ee.delayedCall(0,n,s),a)},t.staggerTo=function(n,s,a,o,l,u,c){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=c,a.parent=this,new ee(n,a,Oe(this,l)),this},t.staggerFrom=function(n,s,a,o,l,u,c){return a.runBackwards=1,Tt(a).immediateRender=he(a.immediateRender),this.staggerTo(n,s,a,o,l,u,c)},t.staggerFromTo=function(n,s,a,o,l,u,c,h){return o.startAt=a,Tt(o).immediateRender=he(o.immediateRender),this.staggerTo(n,s,o,l,u,c,h)},t.render=function(n,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:K(n),h=this._zTime<0!=n<0&&(this._initted||!u),p,m,_,f,g,x,v,b,T,y,j,O;if(this!==W&&c>l&&n>=0&&(c=l),c!==this._tTime||a||h){if(o!==this._time&&u&&(c+=this._time-o,n+=this._time-o),p=c,T=this._start,b=this._ts,x=!b,h&&(u||(o=this._zTime),(n||!s)&&(this._zTime=n)),this._repeat){if(j=this._yoyo,g=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,s,a);if(p=K(c%g),c===l?(f=this._repeat,p=u):(y=K(c/g),f=~~y,f&&f===y&&(p=u,f--),p>u&&(p=u)),y=lt(this._tTime,g),!o&&this._tTime&&y!==f&&this._tTime-y*g-this._dur<=0&&(y=f),j&&f&1&&(p=u-p,O=1),f!==y&&!this._lock){var C=j&&y&1,q=C===(j&&f&1);if(f<y&&(C=!C),o=C?0:c%u?u:c,this._lock=1,this.render(o||(O?0:K(f*g)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&we(this,"onRepeat"),this.vars.repeatRefresh&&!O&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,q&&(this._lock=2,o=C?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!O&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Hn(this,O)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=Ss(this,K(o),K(p)),v&&(c-=p-(p=v._start))),this._tTime=c,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&c&&!s&&!y&&(we(this,"onStart"),this._tTime!==c))return this;if(p>=o&&n>=0)for(m=this._first;m;){if(_=m._next,(m._act||p>=m._start)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(p-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(p-m._start)*m._ts,s,a),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=-L);break}}m=_}else{m=this._last;for(var E=n<0?n:p;m;){if(_=m._prev,(m._act||E<=m._end)&&m._ts&&v!==m){if(m.parent!==this)return this.render(n,s,a);if(m.render(m._ts>0?(E-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(E-m._start)*m._ts,s,a||oe&&wr(m)),p!==this._time||!this._ts&&!x){v=0,_&&(c+=this._zTime=E?-L:L);break}}m=_}}if(v&&!s&&(this.pause(),v.render(p>=o?0:-L)._zTime=p>=o?1:-1,this._ts))return this._start=T,er(this),this.render(n,s,a);this._onUpdate&&!s&&we(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&o)&&(T===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Be(this,1),!s&&!(n<0&&!o)&&(c||o||!l)&&(we(this,c===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,s){var a=this;if(Fe(s)||(s=Oe(this,s,n)),!(n instanceof Nt)){if(ue(n))return n.forEach(function(o){return a.add(o,s)}),this;if(ie(n))return this.addLabel(n,s);if(G(n))n=ee.delayedCall(0,n);else return this}return this!==n?Ee(this,n,s):this},t.getChildren=function(n,s,a,o){n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-qe);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof ee?s&&l.push(u):(a&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(n){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===n)return s[a]},t.remove=function(n){return ie(n)?this.removeLabel(n):G(n)?this.killTweensOf(n):(n.parent===this&&Qt(this,n),n===this._recent&&(this._recent=this._last),Xe(this))},t.totalTime=function(n,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=K(Te.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,s),this._forcing=0,this):this._tTime},t.addLabel=function(n,s){return this.labels[n]=Oe(this,s),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,s,a){var o=ee.delayedCall(0,s||wt,a);return o.data="isPause",this._hasPause=1,Ee(this,o,Oe(this,n))},t.removePause=function(n){var s=this._first;for(n=Oe(this,n);s;)s._start===n&&s.data==="isPause"&&Be(s),s=s._next},t.killTweensOf=function(n,s,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)He!==o[l]&&o[l].kill(n,s);return this},t.getTweensOf=function(n,s){for(var a=[],o=Ce(n),l=this._first,u=Fe(s),c;l;)l instanceof ee?bs(l._targets,o)&&(u?(!He||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(c=l.getTweensOf(o,s)).length&&a.push.apply(a,c),l=l._next;return a},t.tweenTo=function(n,s){s=s||{};var a=this,o=Oe(a,n),l=s,u=l.startAt,c=l.onStart,h=l.onStartParams,p=l.immediateRender,m,_=ee.to(a,be({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||L,onStart:function(){if(a.pause(),!m){var g=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());_._dur!==g&&ut(_,g,0,1).render(_._time,!0,!0),m=1}c&&c.apply(_,h||[])}},s));return p?_.render(0):_},t.tweenFromTo=function(n,s,a){return this.tweenTo(s,be({startAt:{time:Oe(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),Fn(this,Oe(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),Fn(this,Oe(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+L)},t.shiftChildren=function(n,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=n);return Xe(this)},t.invalidate=function(n){var s=this._first;for(this._lock=0;s;)s.invalidate(n),s=s._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Xe(this)},t.totalDuration=function(n){var s=0,a=this,o=a._last,l=qe,u,c,h;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(h=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),c=o._start,c>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,Ee(a,o,c-o._delay,1)._lock=0):l=c,c<0&&o._ts&&(s-=c,(!h&&!a._dp||h&&h.smoothChildTiming)&&(a._start+=c/a._ts,a._time-=c,a._tTime-=c),a.shiftChildren(-c,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;ut(a,a===W&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(W._ts&&(xn(W,Kt(n,W)),_n=Te.frame),Te.frame>=gn){gn+=ve.autoSleep||120;var s=W._first;if((!s||!s._ts)&&ve.autoSleep&&Te._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Te.sleep()}}},e})(Nt);be(de.prototype,{_lock:0,_hasPause:0,_forcing:0});var Hs=function(e,t,r,n,s,a,o){var l=new me(this._pt,e,t,0,1,Qn,null,s),u=0,c=0,h,p,m,_,f,g,x,v;for(l.b=r,l.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=Ot(n)),a&&(v=[r,n],a(v,e,t),r=v[0],n=v[1]),p=r.match(hr)||[];h=hr.exec(n);)_=h[0],f=n.substring(u,h.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),_!==p[c++]&&(g=parseFloat(p[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:g,c:_.charAt(1)==="="?at(g,_)-g:parseFloat(_)-g,m:m&&m<4?Math.round:0},u=hr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=o,(dn.test(n)||x)&&(l.e=0),this._pt=l,l},Pr=function(e,t,r,n,s,a,o,l,u,c){G(n)&&(n=n(s||0,e,a));var h=e[t],p=r!=="get"?r:G(h)?u?e[t.indexOf("set")||!G(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():h,m=G(h)?u?Xs:Gn:Ar,_;if(ie(n)&&(~n.indexOf("random(")&&(n=Ot(n)),n.charAt(1)==="="&&(_=at(p,n)+(ce(p)||0),(_||_===0)&&(n=_))),!c||p!==n||Er)return!isNaN(p*n)&&n!==""?(_=new me(this._pt,e,t,+p||0,n-(p||0),typeof h=="boolean"?Js:Jn,0,m),u&&(_.fp=u),o&&_.modifier(o,this,e),this._pt=_):(!h&&!(t in e)&&_r(t,n),Hs.call(this,e,t,p,n,m,l||ve.stringFilter,u))},Us=function(e,t,r,n,s){if(G(e)&&(e=Pt(e,s,t,r,n)),!Ne(e)||e.style&&e.nodeType||ue(e)||un(e))return ie(e)?Pt(e,s,t,r,n):e;var a={},o;for(o in e)a[o]=Pt(e[o],s,t,r,n);return a},Yn=function(e,t,r,n,s,a){var o,l,u,c;if(ye[e]&&(o=new ye[e]).init(s,o.rawVars?t[e]:Us(t[e],n,s,a,r),r,n,a)!==!1&&(r._pt=l=new me(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==ct))for(u=r._ptLookup[r._targets.indexOf(s)],c=o._props.length;c--;)u[o._props[c]]=l;return o},He,Er,Mr=function i(e,t,r){var n=e.vars,s=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,h=n.yoyoEase,p=n.keyframes,m=n.autoRevert,_=e._dur,f=e._startAt,g=e._targets,x=e.parent,v=x&&x.data==="nested"?x.vars.targets:g,b=e._overwrite==="auto"&&!lr,T=e.timeline,y,j,O,C,q,E,A,I,F,z,H,V,U;if(T&&(!p||!s)&&(s="none"),e._ease=Ge(s,it.ease),e._yEase=h?Vn(Ge(h===!0?s:h,it.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!T&&!!n.runBackwards,!T||p&&!n.stagger){if(I=g[0]?We(g[0]).harness:0,V=I&&n[I.prop],y=Jt(n,gr),f&&(f._zTime<0&&f.progress(1),t<0&&c&&o&&!m?f.render(-1,!0):f.revert(c&&_?Wt:xs),f._lazy=0),a){if(Be(e._startAt=ee.set(g,be({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!f&&he(l),startAt:null,delay:0,onUpdate:u&&function(){return we(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(oe||!o&&!m)&&e._startAt.revert(Wt),o&&_&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&_&&!f){if(t&&(o=!1),O=be({overwrite:!1,data:"isFromStart",lazy:o&&!f&&he(l),immediateRender:o,stagger:0,parent:x},y),V&&(O[I.prop]=V),Be(e._startAt=ee.set(g,O)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(oe?e._startAt.revert(Wt):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,L,L);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&he(l)||l&&!_,j=0;j<g.length;j++){if(q=g[j],A=q._gsap||br(g)[j]._gsap,e._ptLookup[j]=z={},vr[A.id]&&Le.length&&Gt(),H=v===g?j:v.indexOf(q),I&&(F=new I).init(q,V||y,e,H,v)!==!1&&(e._pt=C=new me(e._pt,q,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(se){z[se]=C}),F.priority&&(E=1)),!I||V)for(O in y)ye[O]&&(F=Yn(O,y,e,H,q,v))?F.priority&&(E=1):z[O]=C=Pr.call(e,q,O,"get",y[O],H,v,0,n.stringFilter);e._op&&e._op[j]&&e.kill(q,e._op[j]),b&&e._pt&&(He=e,W.killTweensOf(q,z,e.globalTime(t)),U=!e.parent,He=0),e._pt&&l&&(vr[A.id]=1)}E&&Kn(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!U,p&&t<=0&&T.render(qe,!0,!0)},$s=function(e,t,r,n,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,h,p,m;if(!u)for(u=e._ptCache[t]=[],p=e._ptLookup,m=e._targets.length;m--;){if(c=p[m][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return Er=1,e.vars[t]="+=0",Mr(e,o),Er=0,l?bt(t+" not eligible for reset"):1;u.push(c)}for(m=u.length;m--;)h=u[m],c=h._pt||h,c.s=(n||n===0)&&!s?n:c.s+(n||0)+a*c.c,c.c=r-c.s,h.e&&(h.e=J(r)+ce(h.e)),h.b&&(h.b=c.s+ce(h.b))},Ys=function(e,t){var r=e[0]?We(e[0]).harness:0,n=r&&r.aliases,s,a,o,l;if(!n)return t;s=ot({},t);for(a in n)if(a in s)for(l=n[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},Ws=function(e,t,r,n){var s=t.ease||n||"power1.inOut",a,o;if(ue(t))o=r[e]||(r[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},Pt=function(e,t,r,n,s){return G(e)?e.call(t,r,n,s):ie(e)&&~e.indexOf("random(")?Ot(e):e},Wn=yr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Xn={};pe(Wn+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Xn[i]=1});var ee=(function(i){on(e,i);function e(r,n,s,a){var o;typeof n=="number"&&(s.duration=n,n=s,s=null),o=i.call(this,a?n:Tt(n))||this;var l=o.vars,u=l.duration,c=l.delay,h=l.immediateRender,p=l.stagger,m=l.overwrite,_=l.keyframes,f=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,v=n.parent||W,b=(ue(r)||un(r)?Fe(r[0]):"length"in n)?[r]:Ce(r),T,y,j,O,C,q,E,A;if(o._targets=b.length?br(b):bt("GSAP target "+r+" not found. https://gsap.com",!ve.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=m,_||p||$t(u)||$t(c)){if(n=o.vars,T=o.timeline=new de({data:"nested",defaults:f||{},targets:v&&v.data==="nested"?v.vars.targets:b}),T.kill(),T.parent=T._dp=Re(o),T._start=0,p||$t(u)||$t(c)){if(O=b.length,E=p&&Pn(p),Ne(p))for(C in p)~Wn.indexOf(C)&&(A||(A={}),A[C]=p[C]);for(y=0;y<O;y++)j=Jt(n,Xn),j.stagger=0,x&&(j.yoyoEase=x),A&&ot(j,A),q=b[y],j.duration=+Pt(u,Re(o),y,q,b),j.delay=(+Pt(c,Re(o),y,q,b)||0)-o._delay,!p&&O===1&&j.delay&&(o._delay=c=j.delay,o._start+=c,j.delay=0),T.to(q,j,E?E(y,q,b):0),T._ease=M.none;T.duration()?u=c=0:o.timeline=0}else if(_){Tt(be(T.vars.defaults,{ease:"none"})),T._ease=Ge(_.ease||n.ease||"none");var I=0,F,z,H;if(ue(_))_.forEach(function(V){return T.to(b,V,">")}),T.duration();else{j={};for(C in _)C==="ease"||C==="easeEach"||Ws(C,_[C],j,_.easeEach);for(C in j)for(F=j[C].sort(function(V,U){return V.t-U.t}),I=0,y=0;y<F.length;y++)z=F[y],H={ease:z.e,duration:(z.t-(y?F[y-1].t:0))/100*u},H[C]=z.v,T.to(b,H,I),I+=H.duration;T.duration()<u&&T.to({},{duration:u-T.duration()})}}u||o.duration(u=T.duration())}else o.timeline=0;return m===!0&&!lr&&(He=Re(o),W.killTweensOf(b),He=0),Ee(v,Re(o),s),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(h||!u&&!_&&o._start===K(v._time)&&he(h)&&qs(Re(o))&&v.data!=="nested")&&(o._tTime=-L,o.render(Math.max(0,-c)||0)),g&&On(Re(o),g),o}var t=e.prototype;return t.render=function(n,s,a){var o=this._time,l=this._tDur,u=this._dur,c=n<0,h=n>l-L&&!c?l:n<L?0:n,p,m,_,f,g,x,v,b,T;if(!u)Cs(this,n,s,a);else if(h!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(p=h,b=this.timeline,this._repeat){if(f=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+n,s,a);if(p=K(h%f),h===l?(_=this._repeat,p=u):(g=K(h/f),_=~~g,_&&_===g?(p=u,_--):p>u&&(p=u)),x=this._yoyo&&_&1,x&&(T=this._yEase,p=u-p),g=lt(this._tTime,f),p===o&&!a&&this._initted&&_===g)return this._tTime=h,this;_!==g&&(b&&this._yEase&&Hn(b,x),this.vars.repeatRefresh&&!x&&!this._lock&&p!==f&&this._initted&&(this._lock=a=1,this.render(K(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Cn(this,c?n:p,a,s,h))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(n,s,a)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(T||this._ease)(p/u),this._from&&(this.ratio=v=1-v),!o&&h&&!s&&!g&&(we(this,"onStart"),this._tTime!==h))return this;for(m=this._pt;m;)m.r(v,m.d),m=m._next;b&&b.render(n<0?n:b._dur*b._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!s&&(c&&Tr(this,n,s,a),we(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&we(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&Tr(this,n,!0,!0),(n||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Be(this,1),!s&&!(c&&!o)&&(h||o||x)&&(we(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,s,a,o,l){kt||Te.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Mr(this,u),c=this._ease(u/this._dur),$s(this,n,s,a,o,c,u,l)?this.resetTo(n,s,a,o,1):(tr(this,0),this.parent||Tn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,s){if(s===void 0&&(s="all"),!n&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Ct(this):this.scrollTrigger&&this.scrollTrigger.kill(!!oe),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,s,He&&He.vars.overwrite!==!0)._first||Ct(this),this.parent&&a!==this.timeline.totalDuration()&&ut(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?Ce(n):o,u=this._ptLookup,c=this._pt,h,p,m,_,f,g,x;if((!s||s==="all")&&Ts(o,l))return s==="all"&&(this._pt=0),Ct(this);for(h=this._op=this._op||[],s!=="all"&&(ie(s)&&(f={},pe(s,function(v){return f[v]=1}),s=f),s=Ys(o,s)),x=o.length;x--;)if(~l.indexOf(o[x])){p=u[x],s==="all"?(h[x]=s,_=p,m={}):(m=h[x]=h[x]||{},_=s);for(f in _)g=p&&p[f],g&&((!("kill"in g.d)||g.d.kill(f)===!0)&&Qt(this,g,"_pt"),delete p[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&c&&Ct(this),this},e.to=function(n,s){return new e(n,s,arguments[2])},e.from=function(n,s){return jt(1,arguments)},e.delayedCall=function(n,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,s,a){return jt(2,arguments)},e.set=function(n,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(n,s)},e.killTweensOf=function(n,s,a){return W.killTweensOf(n,s,a)},e})(Nt);be(ee.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),pe("staggerTo,staggerFrom,staggerFromTo",function(i){ee[i]=function(){var e=new de,t=qr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Ar=function(e,t,r){return e[t]=r},Gn=function(e,t,r){return e[t](r)},Xs=function(e,t,r,n){return e[t](n.fp,r)},Gs=function(e,t,r){return e.setAttribute(t,r)},Rr=function(e,t){return G(e[t])?Gn:cr(e[t])&&e.setAttribute?Gs:Ar},Jn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Js=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Qn=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},Fr=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Qs=function(e,t,r,n){for(var s=this._pt,a;s;)a=s._next,s.p===n&&s.modifier(e,t,r),s=a},Ks=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Qt(this,t,"_pt"):t.dep||(r=1),t=n;return!r},ea=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},Kn=function(e){for(var t=e._pt,r,n,s,a;t;){for(r=t._next,n=s;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:s=t,(t._next=n)?n._prev=t:a=t,t=r}e._pt=s},me=(function(){function i(t,r,n,s,a,o,l,u,c){this.t=r,this.s=s,this.c=a,this.p=n,this.r=o||Jn,this.d=l||this,this.set=u||Ar,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,s){this.mSet=this.mSet||this.set,this.set=ea,this.m=r,this.mt=s,this.tween=n},i})();pe(yr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return gr[i]=1}),xe.TweenMax=xe.TweenLite=ee,xe.TimelineLite=xe.TimelineMax=de,W=new de({sortChildren:!1,defaults:it,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ve.stringFilter=zn;var Qe=[],rr={},ta=[],ei=0,ra=0,Dr=function(e){return(rr[e]||ta).map(function(t){return t()})},Ir=function(){var e=Date.now(),t=[];e-ei>2&&(Dr("matchMediaInit"),Qe.forEach(function(r){var n=r.queries,s=r.conditions,a,o,l,u;for(o in n)a=Pe.matchMedia(n[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(r.revert(),l&&t.push(r))}),Dr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ei=e,Dr("matchMedia"))},ti=(function(){function i(t,r){this.selector=r&&Or(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ra++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,s){G(r)&&(s=n,n=r,r=G);var a=this,o=function(){var u=Y,c=a.selector,h;return u&&u!==a&&u.data.push(a),s&&(a.selector=Or(s)),Y=a,h=n.apply(a,arguments),G(h)&&a._r.push(h),Y=u,a.selector=c,a.isReverted=!1,h};return a.last=o,r===G?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var n=Y;Y=null,r(this),Y=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof ee&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var s=this;if(r?(function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return o.splice(o.indexOf(c),1)}));for(o.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof de?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof ee)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),n)for(var a=Qe.length;a--;)Qe[a].id===this.id&&Qe.splice(a,1)},e.revert=function(r){this.kill(r||{})},i})(),na=(function(){function i(t){this.contexts=[],this.scope=t,Y&&Y.data.push(this)}var e=i.prototype;return e.add=function(r,n,s){Ne(r)||(r={matches:r});var a=new ti(0,s||this.scope),o=a.conditions={},l,u,c;Y&&!a.selector&&(a.selector=Y.selector),this.contexts.push(a),n=a.add("onMatch",n),a.queries=r;for(u in r)u==="all"?c=1:(l=Pe.matchMedia(r[u]),l&&(Qe.indexOf(a)<0&&Qe.push(a),(o[u]=l.matches)&&(c=1),l.addListener?l.addListener(Ir):l.addEventListener("change",Ir)));return c&&n(a,function(h){return a.add(null,h)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i})(),nr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return In(n)})},timeline:function(e){return new de(e)},getTweensOf:function(e,t){return W.getTweensOf(e,t)},getProperty:function(e,t,r,n){ie(e)&&(e=Ce(e)[0]);var s=We(e||{}).get,a=r?bn:yn;return r==="native"&&(r=""),e&&(t?a((ye[t]&&ye[t].get||s)(e,t,r,n)):function(o,l,u){return a((ye[o]&&ye[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,r){if(e=Ce(e),e.length>1){var n=e.map(function(c){return _e.quickSetter(c,t,r)}),s=n.length;return function(c){for(var h=s;h--;)n[h](c)}}e=e[0]||{};var a=ye[t],o=We(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(c){var h=new a;ct._pt=0,h.init(e,r?c+r:c,ct,0,[e]),h.render(1,h),ct._pt&&Fr(1,ct)}:o.set(e,l);return a?u:function(c){return u(e,l,r?c+r:c,o,1)}},quickTo:function(e,t,r){var n,s=_e.to(e,be((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),a=function(l,u,c){return s.resetTo(t,l,u,c)};return a.tween=s,a},isTweening:function(e){return W.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ge(e.ease,it.ease)),wn(it,e||{})},config:function(e){return wn(ve,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,s=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!ye[o]&&!xe[o]&&bt(t+" effect requires "+o+" plugin.")}),xr[t]=function(o,l,u){return r(Ce(o),be(l||{},s),u)},a&&(de.prototype[t]=function(o,l,u){return this.add(xr[t](o,Ne(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){M[e]=Ge(t)},parseEase:function(e,t){return arguments.length?Ge(e,t):M},getById:function(e){return W.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new de(e),n,s;for(r.smoothChildTiming=he(e.smoothChildTiming),W.remove(r),r._dp=0,r._time=r._tTime=W._time,n=W._first;n;)s=n._next,(t||!(!n._dur&&n instanceof ee&&n.vars.onComplete===n._targets[0]))&&Ee(r,n,n._start-n._delay),n=s;return Ee(W,r,0),r},context:function(e,t){return e?new ti(e,t):Y},matchMedia:function(e){return new na(e)},matchMediaRefresh:function(){return Qe.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Ir()},addEventListener:function(e,t){var r=rr[e]||(rr[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=rr[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:Rs,wrapYoyo:Fs,distribute:Pn,random:Mn,snap:En,normalize:As,getUnit:ce,clamp:Ns,splitColor:Zn,toArray:Ce,selector:Or,mapRange:Rn,pipe:Es,unitize:Ms,interpolate:Ds,shuffle:Nn},install:pn,effects:xr,ticker:Te,updateRoot:de.updateRoot,plugins:ye,globalTimeline:W,core:{PropTween:me,globals:mn,Tween:ee,Timeline:de,Animation:Nt,getCache:We,_removeLinkedListItem:Qt,reverting:function(){return oe},context:function(e){return e&&Y&&(Y.data.push(e),e._ctx=Y),Y},suppressOverwrites:function(e){return lr=e}}};pe("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return nr[i]=ee[i]}),Te.add(de.updateRoot),ct=nr.to({},{duration:0});var ia=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},sa=function(e,t){var r=e._targets,n,s,a;for(n in t)for(s=r.length;s--;)a=e._ptLookup[s][n],a&&(a=a.d)&&(a._pt&&(a=ia(a,n)),a&&a.modifier&&a.modifier(t[n],e,r[s],n))},Zr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,s,a){a._onInit=function(o){var l,u;if(ie(s)&&(l={},pe(s,function(c){return l[c]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}sa(o,s)}}}},_e=nr.registerPlugin({name:"attr",init:function(e,t,r,n,s){var a,o,l;this.tween=r;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)oe?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Zr("roundProps",Cr),Zr("modifiers"),Zr("snap",En))||nr;ee.version=de.version=_e.version="3.13.0",hn=1,dr()&&dt(),M.Power0,M.Power1,M.Power2,M.Power3,M.Power4,M.Linear,M.Quad,M.Cubic,M.Quart,M.Quint,M.Strong,M.Elastic,M.Back,M.SteppedEase,M.Bounce,M.Sine,M.Expo,M.Circ;/*!
|
|
42
42
|
* CSSPlugin 3.13.0
|
|
43
43
|
* https://gsap.com
|
|
44
44
|
*
|
|
45
45
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
46
46
|
* Subject to the terms at https://gsap.com/standard-license
|
|
47
47
|
* @author: Jack Doyle, jack@greensock.com
|
|
48
|
-
*/var ii,Ve,ct,Lr,Je,si,zr,la=function(){return typeof window<"u"},Ae={},Qe=180/Math.PI,dt=Math.PI/180,ft=Math.atan2,ai=1e8,Br=/([A-Z])/g,ua=/(left|right|width|margin|padding|x)/i,ca=/[\s,\(]\S/,Ne={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},da=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fa=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ha=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},oi=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},pa=function(e,t,r){return e.style[t]=r},ma=function(e,t,r){return e.style.setProperty(t,r)},_a=function(e,t,r){return e._gsap[t]=r},ga=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},va=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},xa=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",_e=X+"Origin",ya=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Ae&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Ne[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Re(n,o)}):this.tfm[e]=a.x?a[e]:Re(n,e),e===_e&&(this.tfm.zOrigin=a.zOrigin);else return Ne.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(_e,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},ui=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ba=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(Br,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=zr(),(!s||!s.isStart)&&!r[X]&&(ui(r),n.zOrigin&&r[_e]&&(r[_e]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},ci=function(e,t){var r={target:e,props:[],revert:ba,save:ya};return e._gsap||me.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},di,Hr=function(e,t){var r=Ve.createElementNS?Ve.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ve.createElement(e);return r&&r.style?r:Ve.createElement(e)},Ce=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(Br,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,ht(t)||t,1)||""},fi="O,Moz,ms,Ms,Webkit".split(","),ht=function(e,t,r){var n=t||Je,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(fi[a]+e in s););return a<0?null:(a===3?"ms":a>=0?fi[a]:"")+e},Ur=function(){la()&&window.document&&(ii=window,Ve=ii.document,ct=Ve.documentElement,Je=Hr("div")||{style:{}},Hr("div"),X=ht(X),_e=X+"Origin",Je.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",di=!!ht("perspective"),zr=me.core.reverting,Lr=1)},hi=function(e){var t=e.ownerSVGElement,r=Hr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ct.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ct.removeChild(r),s},pi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},mi=function(e){var t,r;try{t=e.getBBox()}catch{t=hi(e),r=1}return t&&(t.width||t.height)||r||(t=hi(e)),t&&!t.width&&!t.x&&!t.y?{x:+pi(e,["x","cx","x1"])||0,y:+pi(e,["y","cy","y1"])||0,width:0,height:0}:t},_i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&mi(e))},Ke=function(e,t){if(t){var r=e.style,n;t in Ae&&t!==_e&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(Br,"-$1").toLowerCase())):r.removeAttribute(t)}},He=function(e,t,r,n,s,a){var o=new pe(e._pt,t,r,0,1,a?li:oi);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},gi={deg:1,rad:1,turn:1},wa={grid:1,flex:1},Ue=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Je.style,l=ua.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),h=100,p=n==="px",m=n==="%",_,f,g,x;if(n===a||!s||gi[n]||gi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&_i(e),(m||a==="%")&&(Ae[t]||~t.indexOf("adius")))return _=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/_*h:s/100*_);if(o[l?"width":"height"]=h+(p?a:n),f=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===Ve||!f.appendChild)&&(f=Ve.body),g=f._gsap,g&&m&&g.width&&l&&g.time===we.time&&!g.uncache)return J(s/g.width*h);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=h+n,_=e[c],v?e.style[t]=v:Ke(e,t)}else(m||a==="%")&&!wa[Ce(f,"display")]&&(o.position=Ce(e,"position")),f===e&&(o.position="static"),f.appendChild(Je),_=Je[c],f.removeChild(Je),o.position="absolute";return l&&m&&(g=$e(f),g.time=we.time,g.width=f[c]),J(p?_*s/h:_&&s?h/_*s:0)},Re=function(e,t,r,n){var s;return Lr||Ur(),t in Ne&&t!=="transform"&&(t=Ne[t],~t.indexOf(",")&&(t=t.split(",")[0])),Ae[t]&&t!=="transform"?(s=Pt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:ir(Ce(e,_e))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=nr[t]&&nr[t](e,t,r)||Ce(e,t)||yn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ue(e,t,s,r)+r:s},Ta=function(e,t,r,n){if(!r||r==="none"){var s=ht(t,e,1),a=s&&Ce(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Ce(e,"borderTopColor"))}var o=new pe(this._pt,e.style,t,0,1,ei),l=0,u=0,c,h,p,m,_,f,g,x,v,b,w,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Ce(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(f=e.style[t],e.style[t]=n,n=Ce(e,t)||n,f?e.style[t]=f:Ke(e,t)),c=[r,n],Hn(c),r=c[0],n=c[1],p=r.match(nt)||[],y=n.match(nt)||[],y.length){for(;h=nt.exec(n);)g=h[0],v=n.substring(l,h.index),_?_=(_+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(_=1),g!==(f=p[u++]||"")&&(m=parseFloat(f)||0,w=f.substr((m+"").length),g.charAt(1)==="="&&(g=it(m,g)+w),x=parseFloat(g),b=g.substr((x+"").length),l=nt.lastIndex-b.length,b||(b=b||ge.units[t]||w,l===n.length&&(n+=b,o.e+=b)),w!==b&&(m=Ue(e,t,f,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:_&&_<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?li:oi;return hn.test(n)&&(o.e=0),this._pt=o,o},vi={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=vi[r]||r,t[1]=vi[n]||n,t.join(" ")},ja=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Ae[o]&&(l=1,o=o==="transformOrigin"?_e:X),Ke(r,o);l&&(Ke(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Pt(r,1),a.uncache=1,ui(n)))}},nr={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new pe(e._pt,t,r,0,0,ja);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Nt=[1,0,0,1,0,0],xi={},yi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},bi=function(e){var t=Ce(e,X);return yi(t)?Nt:t.substr(7).match(fn).map(J)},$r=function(e,t){var r=e._gsap||$e(e),n=e.style,s=bi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Nt:s):(s===Nt&&!e.offsetParent&&e!==ct&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ct.appendChild(e)),s=bi(e),l?n.display=l:Ke(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ct.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||$r(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,h=o.xOffset||0,p=o.yOffset||0,m=l[0],_=l[1],f=l[2],g=l[3],x=l[4],v=l[5],b=t.split(" "),w=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,C,O,q;r?l!==Nt&&(C=m*g-_*f)&&(O=w*(g/C)+y*(-f/C)+(f*v-g*x)/C,q=w*(-_/C)+y*(m/C)-(m*v-_*x)/C,w=O,y=q):(j=mi(e),w=j.x+(~b[0].indexOf("%")?w/100*j.width:w),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=w-u,v=y-c,o.xOffset=h+(x*m+v*f)-x,o.yOffset=p+(x*_+v*g)-v):o.xOffset=o.yOffset=0,o.xOrigin=w,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[_e]="0px 0px",a&&(He(a,o,"xOrigin",u,w),He(a,o,"yOrigin",c,y),He(a,o,"xOffset",h,o.xOffset),He(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",w+" "+y)},Pt=function(e,t){var r=e._gsap||new Wn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Ce(e,_e)||"0",c,h,p,m,_,f,g,x,v,b,w,y,j,C,O,q,E,F,D,R,H,V,z,U,ne,de,T,S,N,B,ee,ie;return c=h=p=f=g=x=v=b=w=0,m=_=1,r.svg=!!(e.getCTM&&_i(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),C=$r(e,r.svg),r.svg&&(r.uncache?(ne=e.getBBox(),u=r.xOrigin-ne.x+"px "+(r.yOrigin-ne.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,C)),y=r.xOrigin||0,j=r.yOrigin||0,C!==Nt&&(F=C[0],D=C[1],R=C[2],H=C[3],c=V=C[4],h=z=C[5],C.length===6?(m=Math.sqrt(F*F+D*D),_=Math.sqrt(H*H+R*R),f=F||D?ft(D,F)*Qe:0,v=R||H?ft(R,H)*Qe+f:0,v&&(_*=Math.abs(Math.cos(v*dt))),r.svg&&(c-=y-(y*F+j*R),h-=j-(y*D+j*H))):(ie=C[6],B=C[7],T=C[8],S=C[9],N=C[10],ee=C[11],c=C[12],h=C[13],p=C[14],O=ft(ie,N),g=O*Qe,O&&(q=Math.cos(-O),E=Math.sin(-O),U=V*q+T*E,ne=z*q+S*E,de=ie*q+N*E,T=V*-E+T*q,S=z*-E+S*q,N=ie*-E+N*q,ee=B*-E+ee*q,V=U,z=ne,ie=de),O=ft(-R,N),x=O*Qe,O&&(q=Math.cos(-O),E=Math.sin(-O),U=F*q-T*E,ne=D*q-S*E,de=R*q-N*E,ee=H*E+ee*q,F=U,D=ne,R=de),O=ft(D,F),f=O*Qe,O&&(q=Math.cos(O),E=Math.sin(O),U=F*q+D*E,ne=V*q+z*E,D=D*q-F*E,z=z*q-V*E,F=U,V=ne),g&&Math.abs(g)+Math.abs(f)>359.9&&(g=f=0,x=180-x),m=J(Math.sqrt(F*F+D*D+R*R)),_=J(Math.sqrt(z*z+ie*ie)),O=ft(V,z),v=Math.abs(O)>2e-4?O*Qe:0,w=ee?1/(ee<0?-ee:ee):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!yi(Ce(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(_),r.rotation=J(f)+o,r.rotationX=J(g)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=w+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[_e]=ir(u)),r.xOffset=r.yOffset=0,r.force3D=ge.force3D,r.renderTransform=r.svg?Oa:di?wi:Ca,r.uncache=0,r},ir=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wr=function(e,t,r){var n=le(t);return J(parseFloat(t)+parseFloat(Ue(e,"x",r+"px",n)))+n},Ca=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,wi(e,t)},et="0deg",Et="0px",tt=") ",wi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,h=r.rotationX,p=r.skewX,m=r.skewY,_=r.scaleX,f=r.scaleY,g=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,w="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(h!==et||c!==et)){var j=parseFloat(c)*dt,C=Math.sin(j),O=Math.cos(j),q;j=parseFloat(h)*dt,q=Math.cos(j),a=Wr(v,a,C*q*-b),o=Wr(v,o,-Math.sin(j)*-b),l=Wr(v,l,O*q*-b+b)}g!==Et&&(w+="perspective("+g+tt),(n||s)&&(w+="translate("+n+"%, "+s+"%) "),(y||a!==Et||o!==Et||l!==Et)&&(w+=l!==Et||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+tt),u!==et&&(w+="rotate("+u+tt),c!==et&&(w+="rotateY("+c+tt),h!==et&&(w+="rotateX("+h+tt),(p!==et||m!==et)&&(w+="skew("+p+", "+m+tt),(_!==1||f!==1)&&(w+="scale("+_+", "+f+tt),v.style[X]=w||"translate(0, 0)"},Oa=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,h=r.scaleX,p=r.scaleY,m=r.target,_=r.xOrigin,f=r.yOrigin,g=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),w=parseFloat(o),y,j,C,O,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=dt,u*=dt,y=Math.cos(l)*h,j=Math.sin(l)*h,C=Math.sin(l-u)*-p,O=Math.cos(l-u)*p,u&&(c*=dt,q=Math.tan(u-c),q=Math.sqrt(1+q*q),C*=q,O*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),C=J(C),O=J(O)):(y=h,O=p,j=C=0),(b&&!~(a+"").indexOf("px")||w&&!~(o+"").indexOf("px"))&&(b=Ue(m,"x",a,"px"),w=Ue(m,"y",o,"px")),(_||f||g||x)&&(b=J(b+_-(_*y+f*C)+g),w=J(w+f-(_*j+f*O)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),w=J(w+s/100*q.height)),q="matrix("+y+","+j+","+C+","+O+","+b+","+w+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},Sa=function(e,t,r,n,s){var a=360,o=re(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Qe:1),u=l-n,c=n+u+"deg",h,p;return o&&(h=s.split("_")[1],h==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),h==="cw"&&u<0?u=(u+a*ai)%a-~~(u/a)*a:h==="ccw"&&u>0&&(u=(u-a*ai)%a-~~(u/a)*a)),e._pt=p=new pe(e._pt,t,r,n,u,da),p.e=c,p.u="deg",e._props.push(r),p},Ti=function(e,t){for(var r in t)e[r]=t[r];return e},ka=function(e,t,r){var n=Ti({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,h,p,m,_;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Pt(r,1),Ke(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Pt(r,1),a[X]=u);for(l in Ae)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=le(u),_=le(c),h=m!==_?Ue(r,l,u,_):parseFloat(u),p=parseFloat(c),e._pt=new pe(e._pt,o,l,h,p-h,Vr),e._pt.u=_||0,e._props.push(l));Ti(o,n)};he("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});nr[e>1?"border"+i:i]=function(o,l,u,c,h){var p,m;if(arguments.length<4)return p=a.map(function(_){return Re(o,_,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(_,f){return m[_]=p[f]=p[f]||p[(f-1)/2|0]}),o.init(l,m,h)}});var qi={name:"css",register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,h,p,m,_,f,g,x,v,b,w,y,j,C,O;Lr||Ur(),this.styles=this.styles||ci(e),O=this.styles.props,this.tween=r;for(f in t)if(f!=="autoRound"&&(c=t[f],!(xe[f]&&Xn(f,t,r,n,e,s)))){if(m=typeof c,_=nr[f],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=qt(c)),_)_(this,e,f,c,r)&&(C=1);else if(f.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(f)+"").trim(),c+="",ze.lastIndex=0,ze.test(u)||(g=le(u),x=le(c)),x?g!==x&&(u=Ue(e,f,u,x)+x):g&&(c+=g),this.add(o,"setProperty",u,c,n,s,0,0,f),a.push(f),O.push(f,0,o[f]);else if(m!=="undefined"){if(l&&f in l?(u=typeof l[f]=="function"?l[f].call(r,n,e,s):l[f],re(u)&&~u.indexOf("random(")&&(u=qt(u)),le(u+"")||u==="auto"||(u+=ge.units[f]||le(Re(e,f))||""),(u+"").charAt(1)==="="&&(u=Re(e,f))):u=Re(e,f),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),h=parseFloat(c),f in Ne&&(f==="autoAlpha"&&(p===1&&Re(e,"visibility")==="hidden"&&h&&(p=0),O.push("visibility",0,o.visibility),He(this,o,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Ne[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ae,b){if(this.styles.save(f),m==="string"&&c.substring(0,6)==="var(--"&&(c=Ce(e,c.substring(4,c.indexOf(")"))),h=parseFloat(c)),w||(y=e._gsap,y.renderTransform&&!t.parseTransform||Pt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,w=this._pt=new pe(this._pt,o,X,0,1,y.renderTransform,y,0,-1),w.dep=1),f==="scale")this._pt=new pe(this._pt,y,"scaleY",y.scaleY,(v?it(y.scaleY,v+h):h)-y.scaleY||0,Vr),this._pt.u=0,a.push("scaleY",f),f+="X";else if(f==="transformOrigin"){O.push(_e,0,o[_e]),c=qa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&He(this,y,"zOrigin",y.zOrigin,x),He(this,o,f,ir(u),ir(c)));continue}else if(f==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(f in xi){Sa(this,y,f,p,v?it(p,v+c):c);continue}else if(f==="smoothOrigin"){He(this,y,"smooth",y.smooth,c);continue}else if(f==="force3D"){y[f]=c;continue}else if(f==="transform"){ka(this,c,e);continue}}else f in o||(f=ht(f)||f);if(b||(h||h===0)&&(p||p===0)&&!ca.test(c)&&f in o)g=(u+"").substr((p+"").length),h||(h=0),x=le(c)||(f in ge.units?ge.units[f]:g),g!==x&&(p=Ue(e,f,u,x)),this._pt=new pe(this._pt,b?y:o,f,p,(v?it(p,v+h):h)-p,!b&&(x==="px"||f==="zIndex")&&t.autoRound!==!1?ha:Vr),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=fa);else if(f in o)Ta.call(this,e,f,u,v?v+c:c);else if(f in e)this.add(e,f,u||e[f],v?v+c:c,n,s);else if(f!=="parseTransform"){_r(f,c);continue}b||(f in o?O.push(f,0,o[f]):typeof e[f]=="function"?O.push(f,2,e[f]()):O.push(f,1,u||e[f])),a.push(f)}}C&&ti(this)},render:function(e,t){if(t.tween._time||!zr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Re,aliases:Ne,getSetter:function(e,t,r){var n=Ne[t];return n&&n.indexOf(",")<0&&(t=n),t in Ae&&t!==_e&&(e._gsap.x||Re(e,"x"))?r&&si===r?t==="scale"?ga:_a:(si=r||{})&&(t==="scale"?va:xa):e.style&&!cr(e.style[t])?pa:~t.indexOf("-")?ma:Rr(e,t)},core:{_removeProperty:Ke,_getMatrix:$r}};me.utils.checkPrefix=ht,me.core.getStyleSaver=ci,(function(i,e,t,r){var n=he(i+","+e+","+t,function(s){Ae[s]=1});he(e,function(s){ge.units[s]="deg",xi[s]=1}),Ne[n[13]]=i+","+e,he(r,function(s){var a=s.split(":");Ne[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ge.units[i]="px"}),me.registerPlugin(qi);var De=me.registerPlugin(qi)||me;De.core.Tween;const sr=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Na=(i,e,t)=>{Ni.useGSAP(()=>{if(!i.current)return;const r=De.timeline({defaults:{duration:.7,ease:"power1.out"}}),n={navbar:i.current,navLabels:De.utils.toArray(".nav-label"),navIconWrappers:De.utils.toArray(".nav-icon-wrapper"),navIcons:De.utils.toArray(".nav-icon"),navLinkItems:De.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:De.utils.toArray(".secondary-bar *")};e?Pa(r,n):Ea(r,n),t!==void 0&&n.secondaryBar&&Ma(n.secondaryBar,t)},{scope:i,dependencies:[e,t]})},Pa=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),sr(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),sr(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Ea=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),sr(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),sr(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Ma=(i,e)=>{e?De.fromTo(i,{x:"-100%",opacity:0},{x:"0%",opacity:1,duration:.4,ease:"power2.out"}):De.to(i,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},ji=({children:i,defaultCollapsed:e=!1,className:t="",secondaryBar:r,isSecondaryBarOpen:n=!0})=>{const[s,a]=I.useState(e),o=I.useRef(null);Na(o,s,n);const u={isCollapsed:s,setIsCollapsed:a,navbarRef:o,toggleCollapse:()=>{a(!s)}};return d.jsx(ln.Provider,{value:u,children:d.jsxs("div",{className:"flex flex-row",children:[d.jsx("div",{ref:o,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-20 ${s?"w-16":"w-64"} ${t}`,children:i}),d.jsx(or,{isOpen:n,children:r})]})})},Aa=Object.assign(ji,{Root:ji,CollapseButton:()=>{const{isCollapsed:i,toggleCollapse:e}=Ht();return d.jsx("div",{className:k("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(ae.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(ae.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})})},Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:k("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:k(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),SecondaryBar:or}),Ra=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:k("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},Da=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=Ht(),[n,s]=I.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:k("profile-container",e),children:[d.jsxs("button",{onClick:a,className:k("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Fa=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:k("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Ia=({linkActions:i,componentBadge:e,onClick:t,activeAction:r,counts:n={}})=>{const{isCollapsed:s}=Ht();return d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((a,o)=>a.viewAccess()&&d.jsx(A.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{t?.(a.action,s)},className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",r===a.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(A.AnimatePresence,{mode:"wait",children:r===a.action&&d.jsx(A.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(A.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(r===a.action,0)},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(A.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:r===a.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof a.icon=="function"?a.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",r===a.action?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:a.title})]}),e&&typeof e=="function"&&n[a.action]&&n[a.action]>0&&e(n[a.action])]})]})},o))})},Za=({links:i,isLinkActive:e,componentBadge:t,onLinkClick:r})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((n,s)=>{const a=e(n.path)||(n.relatedPaths?.some(o=>e(o))??!1);return n.isView&&n.viewAccess()&&d.jsx(A.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{r?.(n.path)},className:k("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",a?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(A.AnimatePresence,{mode:"wait",children:a&&d.jsx(A.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(A.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(A.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:a?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:k("nav-icon transition-colors duration-250 ease-out",a?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title})]}),t&&n.count&&n.count>0&&t(n.count)]})]})},s)})}),La=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),za=i=>{const e=I.useRef(null);return{isCollapsed:i,navbarRef:e}},Ba=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(ae.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(ae.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Va=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),Ha=(i,e=!0)=>{const t=I.useRef(null);return I.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[i,e]),t};P.Avatar=rn,P.Badge=Fa,P.Button=Di,P.CardProfile=Rt,P.ChangueAccount=an,P.CheckboxFormik=Fi,P.CompanyLogo=Va,P.Header=Zi,P.Icons=ae,P.Input=ls,P.InputFormik=us,P.LayoutGeneric=ms,P.Logo=cs,P.Menu=ds,P.NavBarActions=Ia,P.NavbarCollapseButton=Ba,P.NavbarLinks=Za,P.NavigationLink=Ra,P.Pagination=fs,P.ProfileSection=Da,P.SecondaryBar=or,P.Select=ps,P.Sidebar=Aa,P.Spinner=ar,P.useActionsNavbar=La,P.useClickOutside=Ha,P.useNavbarCollapse=za,P.useSidebar=Ht,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|
|
48
|
+
*/var ri,Ue,ft,Lr,Ke,ni,Br,aa=function(){return typeof window<"u"},De={},et=180/Math.PI,ht=Math.PI/180,pt=Math.atan2,ii=1e8,zr=/([A-Z])/g,oa=/(left|right|width|margin|padding|x)/i,la=/[\s,\(]\S/,Me={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ua=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ca=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},da=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},si=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},ai=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},fa=function(e,t,r){return e.style[t]=r},ha=function(e,t,r){return e.style.setProperty(t,r)},pa=function(e,t,r){return e._gsap[t]=r},ma=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},_a=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ga=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",ge=X+"Origin",va=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in De&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Me[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Ie(n,o)}):this.tfm[e]=a.x?a[e]:Ie(n,e),e===ge&&(this.tfm.zOrigin=a.zOrigin);else return Me.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},oi=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},xa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Br(),(!s||!s.isStart)&&!r[X]&&(oi(r),n.zOrigin&&r[ge]&&(r[ge]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},li=function(e,t){var r={target:e,props:[],revert:xa,save:va};return e._gsap||_e.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},ui,Hr=function(e,t){var r=Ue.createElementNS?Ue.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ue.createElement(e);return r&&r.style?r:Ue.createElement(e)},Se=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,mt(t)||t,1)||""},ci="O,Moz,ms,Ms,Webkit".split(","),mt=function(e,t,r){var n=t||Ke,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(ci[a]+e in s););return a<0?null:(a===3?"ms":a>=0?ci[a]:"")+e},Ur=function(){aa()&&window.document&&(ri=window,Ue=ri.document,ft=Ue.documentElement,Ke=Hr("div")||{style:{}},Hr("div"),X=mt(X),ge=X+"Origin",Ke.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ui=!!mt("perspective"),Br=_e.core.reverting,Lr=1)},di=function(e){var t=e.ownerSVGElement,r=Hr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ft.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ft.removeChild(r),s},fi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},hi=function(e){var t,r;try{t=e.getBBox()}catch{t=di(e),r=1}return t&&(t.width||t.height)||r||(t=di(e)),t&&!t.width&&!t.x&&!t.y?{x:+fi(e,["x","cx","x1"])||0,y:+fi(e,["y","cy","y1"])||0,width:0,height:0}:t},pi=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&hi(e))},tt=function(e,t){if(t){var r=e.style,n;t in De&&t!==ge&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},$e=function(e,t,r,n,s,a){var o=new me(e._pt,t,r,0,1,a?ai:si);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},mi={deg:1,rad:1,turn:1},ya={grid:1,flex:1},Ye=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ke.style,l=oa.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),h=100,p=n==="px",m=n==="%",_,f,g,x;if(n===a||!s||mi[n]||mi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&pi(e),(m||a==="%")&&(De[t]||~t.indexOf("adius")))return _=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/_*h:s/100*_);if(o[l?"width":"height"]=h+(p?a:n),f=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===Ue||!f.appendChild)&&(f=Ue.body),g=f._gsap,g&&m&&g.width&&l&&g.time===Te.time&&!g.uncache)return J(s/g.width*h);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=h+n,_=e[c],v?e.style[t]=v:tt(e,t)}else(m||a==="%")&&!ya[Se(f,"display")]&&(o.position=Se(e,"position")),f===e&&(o.position="static"),f.appendChild(Ke),_=Ke[c],f.removeChild(Ke),o.position="absolute";return l&&m&&(g=We(f),g.time=Te.time,g.width=f[c]),J(p?_*s/h:_&&s?h/_*s:0)},Ie=function(e,t,r,n){var s;return Lr||Ur(),t in Me&&t!=="transform"&&(t=Me[t],~t.indexOf(",")&&(t=t.split(",")[0])),De[t]&&t!=="transform"?(s=Mt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:sr(Se(e,ge))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=ir[t]&&ir[t](e,t,r)||Se(e,t)||vn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ye(e,t,s,r)+r:s},ba=function(e,t,r,n){if(!r||r==="none"){var s=mt(t,e,1),a=s&&Se(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Se(e,"borderTopColor"))}var o=new me(this._pt,e.style,t,0,1,Qn),l=0,u=0,c,h,p,m,_,f,g,x,v,b,T,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Se(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(f=e.style[t],e.style[t]=n,n=Se(e,t)||n,f?e.style[t]=f:tt(e,t)),c=[r,n],zn(c),r=c[0],n=c[1],p=r.match(st)||[],y=n.match(st)||[],y.length){for(;h=st.exec(n);)g=h[0],v=n.substring(l,h.index),_?_=(_+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(_=1),g!==(f=p[u++]||"")&&(m=parseFloat(f)||0,T=f.substr((m+"").length),g.charAt(1)==="="&&(g=at(m,g)+T),x=parseFloat(g),b=g.substr((x+"").length),l=st.lastIndex-b.length,b||(b=b||ve.units[t]||T,l===n.length&&(n+=b,o.e+=b)),T!==b&&(m=Ye(e,t,f,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:_&&_<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?ai:si;return dn.test(n)&&(o.e=0),this._pt=o,o},_i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},wa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=_i[r]||r,t[1]=_i[n]||n,t.join(" ")},Ta=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],De[o]&&(l=1,o=o==="transformOrigin"?ge:X),tt(r,o);l&&(tt(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Mt(r,1),a.uncache=1,oi(n)))}},ir={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new me(e._pt,t,r,0,0,Ta);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Et=[1,0,0,1,0,0],gi={},vi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},xi=function(e){var t=Se(e,X);return vi(t)?Et:t.substr(7).match(cn).map(J)},$r=function(e,t){var r=e._gsap||We(e),n=e.style,s=xi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Et:s):(s===Et&&!e.offsetParent&&e!==ft&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ft.appendChild(e)),s=xi(e),l?n.display=l:tt(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ft.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||$r(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,h=o.xOffset||0,p=o.yOffset||0,m=l[0],_=l[1],f=l[2],g=l[3],x=l[4],v=l[5],b=t.split(" "),T=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,O,C,q;r?l!==Et&&(O=m*g-_*f)&&(C=T*(g/O)+y*(-f/O)+(f*v-g*x)/O,q=T*(-_/O)+y*(m/O)-(m*v-_*x)/O,T=C,y=q):(j=hi(e),T=j.x+(~b[0].indexOf("%")?T/100*j.width:T),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=T-u,v=y-c,o.xOffset=h+(x*m+v*f)-x,o.yOffset=p+(x*_+v*g)-v):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[ge]="0px 0px",a&&($e(a,o,"xOrigin",u,T),$e(a,o,"yOrigin",c,y),$e(a,o,"xOffset",h,o.xOffset),$e(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",T+" "+y)},Mt=function(e,t){var r=e._gsap||new $n(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Se(e,ge)||"0",c,h,p,m,_,f,g,x,v,b,T,y,j,O,C,q,E,A,I,F,z,H,V,U,se,fe,w,k,Z,Q,te,N;return c=h=p=f=g=x=v=b=T=0,m=_=1,r.svg=!!(e.getCTM&&pi(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),O=$r(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),u=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,O)),y=r.xOrigin||0,j=r.yOrigin||0,O!==Et&&(A=O[0],I=O[1],F=O[2],z=O[3],c=H=O[4],h=V=O[5],O.length===6?(m=Math.sqrt(A*A+I*I),_=Math.sqrt(z*z+F*F),f=A||I?pt(I,A)*et:0,v=F||z?pt(F,z)*et+f:0,v&&(_*=Math.abs(Math.cos(v*ht))),r.svg&&(c-=y-(y*A+j*F),h-=j-(y*I+j*z))):(N=O[6],Q=O[7],w=O[8],k=O[9],Z=O[10],te=O[11],c=O[12],h=O[13],p=O[14],C=pt(N,Z),g=C*et,C&&(q=Math.cos(-C),E=Math.sin(-C),U=H*q+w*E,se=V*q+k*E,fe=N*q+Z*E,w=H*-E+w*q,k=V*-E+k*q,Z=N*-E+Z*q,te=Q*-E+te*q,H=U,V=se,N=fe),C=pt(-F,Z),x=C*et,C&&(q=Math.cos(-C),E=Math.sin(-C),U=A*q-w*E,se=I*q-k*E,fe=F*q-Z*E,te=z*E+te*q,A=U,I=se,F=fe),C=pt(I,A),f=C*et,C&&(q=Math.cos(C),E=Math.sin(C),U=A*q+I*E,se=H*q+V*E,I=I*q-A*E,V=V*q-H*E,A=U,H=se),g&&Math.abs(g)+Math.abs(f)>359.9&&(g=f=0,x=180-x),m=J(Math.sqrt(A*A+I*I+F*F)),_=J(Math.sqrt(V*V+N*N)),C=pt(H,V),v=Math.abs(C)>2e-4?C*et:0,T=te?1/(te<0?-te:te):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!vi(Se(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(_),r.rotation=J(f)+o,r.rotationX=J(g)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=T+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[ge]=sr(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?qa:ui?yi:ja,r.uncache=0,r},sr=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wr=function(e,t,r){var n=ce(t);return J(parseFloat(t)+parseFloat(Ye(e,"x",r+"px",n)))+n},ja=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,yi(e,t)},rt="0deg",At="0px",nt=") ",yi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,h=r.rotationX,p=r.skewX,m=r.skewY,_=r.scaleX,f=r.scaleY,g=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,T="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(h!==rt||c!==rt)){var j=parseFloat(c)*ht,O=Math.sin(j),C=Math.cos(j),q;j=parseFloat(h)*ht,q=Math.cos(j),a=Wr(v,a,O*q*-b),o=Wr(v,o,-Math.sin(j)*-b),l=Wr(v,l,C*q*-b+b)}g!==At&&(T+="perspective("+g+nt),(n||s)&&(T+="translate("+n+"%, "+s+"%) "),(y||a!==At||o!==At||l!==At)&&(T+=l!==At||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+nt),u!==rt&&(T+="rotate("+u+nt),c!==rt&&(T+="rotateY("+c+nt),h!==rt&&(T+="rotateX("+h+nt),(p!==rt||m!==rt)&&(T+="skew("+p+", "+m+nt),(_!==1||f!==1)&&(T+="scale("+_+", "+f+nt),v.style[X]=T||"translate(0, 0)"},qa=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,h=r.scaleX,p=r.scaleY,m=r.target,_=r.xOrigin,f=r.yOrigin,g=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),T=parseFloat(o),y,j,O,C,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ht,u*=ht,y=Math.cos(l)*h,j=Math.sin(l)*h,O=Math.sin(l-u)*-p,C=Math.cos(l-u)*p,u&&(c*=ht,q=Math.tan(u-c),q=Math.sqrt(1+q*q),O*=q,C*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),O=J(O),C=J(C)):(y=h,C=p,j=O=0),(b&&!~(a+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ye(m,"x",a,"px"),T=Ye(m,"y",o,"px")),(_||f||g||x)&&(b=J(b+_-(_*y+f*O)+g),T=J(T+f-(_*j+f*C)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),T=J(T+s/100*q.height)),q="matrix("+y+","+j+","+O+","+C+","+b+","+T+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},Oa=function(e,t,r,n,s){var a=360,o=ie(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?et:1),u=l-n,c=n+u+"deg",h,p;return o&&(h=s.split("_")[1],h==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),h==="cw"&&u<0?u=(u+a*ii)%a-~~(u/a)*a:h==="ccw"&&u>0&&(u=(u-a*ii)%a-~~(u/a)*a)),e._pt=p=new me(e._pt,t,r,n,u,ua),p.e=c,p.u="deg",e._props.push(r),p},bi=function(e,t){for(var r in t)e[r]=t[r];return e},Ca=function(e,t,r){var n=bi({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,h,p,m,_;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Mt(r,1),tt(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Mt(r,1),a[X]=u);for(l in De)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=ce(u),_=ce(c),h=m!==_?Ye(r,l,u,_):parseFloat(u),p=parseFloat(c),e._pt=new me(e._pt,o,l,h,p-h,Vr),e._pt.u=_||0,e._props.push(l));bi(o,n)};pe("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});ir[e>1?"border"+i:i]=function(o,l,u,c,h){var p,m;if(arguments.length<4)return p=a.map(function(_){return Ie(o,_,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(_,f){return m[_]=p[f]=p[f]||p[(f-1)/2|0]}),o.init(l,m,h)}});var wi={name:"css",register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,h,p,m,_,f,g,x,v,b,T,y,j,O,C;Lr||Ur(),this.styles=this.styles||li(e),C=this.styles.props,this.tween=r;for(f in t)if(f!=="autoRound"&&(c=t[f],!(ye[f]&&Yn(f,t,r,n,e,s)))){if(m=typeof c,_=ir[f],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=Ot(c)),_)_(this,e,f,c,r)&&(O=1);else if(f.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(f)+"").trim(),c+="",Ve.lastIndex=0,Ve.test(u)||(g=ce(u),x=ce(c)),x?g!==x&&(u=Ye(e,f,u,x)+x):g&&(c+=g),this.add(o,"setProperty",u,c,n,s,0,0,f),a.push(f),C.push(f,0,o[f]);else if(m!=="undefined"){if(l&&f in l?(u=typeof l[f]=="function"?l[f].call(r,n,e,s):l[f],ie(u)&&~u.indexOf("random(")&&(u=Ot(u)),ce(u+"")||u==="auto"||(u+=ve.units[f]||ce(Ie(e,f))||""),(u+"").charAt(1)==="="&&(u=Ie(e,f))):u=Ie(e,f),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),h=parseFloat(c),f in Me&&(f==="autoAlpha"&&(p===1&&Ie(e,"visibility")==="hidden"&&h&&(p=0),C.push("visibility",0,o.visibility),$e(this,o,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Me[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in De,b){if(this.styles.save(f),m==="string"&&c.substring(0,6)==="var(--"&&(c=Se(e,c.substring(4,c.indexOf(")"))),h=parseFloat(c)),T||(y=e._gsap,y.renderTransform&&!t.parseTransform||Mt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,T=this._pt=new me(this._pt,o,X,0,1,y.renderTransform,y,0,-1),T.dep=1),f==="scale")this._pt=new me(this._pt,y,"scaleY",y.scaleY,(v?at(y.scaleY,v+h):h)-y.scaleY||0,Vr),this._pt.u=0,a.push("scaleY",f),f+="X";else if(f==="transformOrigin"){C.push(ge,0,o[ge]),c=wa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&$e(this,y,"zOrigin",y.zOrigin,x),$e(this,o,f,sr(u),sr(c)));continue}else if(f==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(f in gi){Oa(this,y,f,p,v?at(p,v+c):c);continue}else if(f==="smoothOrigin"){$e(this,y,"smooth",y.smooth,c);continue}else if(f==="force3D"){y[f]=c;continue}else if(f==="transform"){Ca(this,c,e);continue}}else f in o||(f=mt(f)||f);if(b||(h||h===0)&&(p||p===0)&&!la.test(c)&&f in o)g=(u+"").substr((p+"").length),h||(h=0),x=ce(c)||(f in ve.units?ve.units[f]:g),g!==x&&(p=Ye(e,f,u,x)),this._pt=new me(this._pt,b?y:o,f,p,(v?at(p,v+h):h)-p,!b&&(x==="px"||f==="zIndex")&&t.autoRound!==!1?da:Vr),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ca);else if(f in o)ba.call(this,e,f,u,v?v+c:c);else if(f in e)this.add(e,f,u||e[f],v?v+c:c,n,s);else if(f!=="parseTransform"){_r(f,c);continue}b||(f in o?C.push(f,0,o[f]):typeof e[f]=="function"?C.push(f,2,e[f]()):C.push(f,1,u||e[f])),a.push(f)}}O&&Kn(this)},render:function(e,t){if(t.tween._time||!Br())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Ie,aliases:Me,getSetter:function(e,t,r){var n=Me[t];return n&&n.indexOf(",")<0&&(t=n),t in De&&t!==ge&&(e._gsap.x||Ie(e,"x"))?r&&ni===r?t==="scale"?ma:pa:(ni=r||{})&&(t==="scale"?_a:ga):e.style&&!cr(e.style[t])?fa:~t.indexOf("-")?ha:Rr(e,t)},core:{_removeProperty:tt,_getMatrix:$r}};_e.utils.checkPrefix=mt,_e.core.getStyleSaver=li,(function(i,e,t,r){var n=pe(i+","+e+","+t,function(s){De[s]=1});pe(e,function(s){ve.units[s]="deg",gi[s]=1}),Me[n[13]]=i+","+e,pe(r,function(s){var a=s.split(":");Me[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ve.units[i]="px"}),_e.registerPlugin(wi);var je=_e.registerPlugin(wi)||_e;je.core.Tween;const Sa=(i,e)=>{Jr.useGSAP(()=>{if(!i.current)return;const t=i.current,r=document.querySelector('[data-main-content="true"]');if(e){je.fromTo(t,{width:"0rem",opacity:0},{width:"40rem",opacity:1,duration:.4,ease:"power2.out"}),r&&je.to(r,{marginLeft:t.offsetWidth+"px",duration:.4,ease:"power2.out"});const n=t.querySelectorAll(".secondary-bar-content > *");n.length>0&&je.fromTo(n,{y:20,opacity:0},{y:0,opacity:1,duration:.3,stagger:.05,delay:.1,ease:"power1.out"})}else je.to(t,{width:"0rem",opacity:0,duration:.3,ease:"power2.in"}),r&&je.to(r,{marginLeft:"0px",duration:.3,ease:"power2.in"})},{scope:i,dependencies:[e]})},Ti=({children:i,isOpen:e=!1,className:t="",width:r="w-96",action:n})=>{const s=D.useRef(null);return Sa(s,e),d.jsx(d.Fragment,{children:e&&d.jsx("div",{ref:s,className:S("h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col relative z-10 secondary-bar flex-shrink-0",r,t),"data-action":n,children:d.jsx("div",{className:"secondary-bar-content",children:i})})})},ka=Object.assign(Ti,{Root:Ti,Header:({children:i,className:e})=>d.jsx("div",{className:S("h-16 flex justify-center items-center mx-4 border-b border-neutral-strong-default",e),children:i}),Content:({children:i,className:e})=>d.jsx("div",{className:S("flex-1 overflow-y-auto p-4",e),children:i}),Footer:({children:i,className:e})=>d.jsx("div",{className:S("p-4 border-t border-neutral-strong-default",e),children:i}),Spacer:({className:i})=>d.jsx("div",{className:S("flex-1",i)})}),ar=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Na=(i,e,t)=>{Jr.useGSAP(()=>{if(!i.current)return;const r=je.timeline({defaults:{duration:.7,ease:"power1.out"}}),n={navbar:i.current,navLabels:je.utils.toArray(".nav-label"),navIconWrappers:je.utils.toArray(".nav-icon-wrapper"),navIcons:je.utils.toArray(".nav-icon"),navLinkItems:je.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:je.utils.toArray(".secondary-bar *")};e?Pa(r,n):Ea(r,n),n.secondaryBar&&Ma(n.secondaryBar)},{scope:i,dependencies:[e,t]})},Pa=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ar(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ar(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Ea=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ar(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ar(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Ma=(i,e)=>{je.to(i,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},ji=({children:i,isCollapsed:e=!1,className:t=""})=>{const r=D.useRef(null);return Na(r,e,!1),d.jsx("div",{ref:r,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-20 flex-shrink-0 ${e?"w-16":"w-64"} ${t}`,children:i})},Aa=Object.assign(ji,{Root:ji,CollapseButton:({isCollapsed:i,onToggleCollapse:e})=>d.jsx("div",{className:S("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:S("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:S(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ra=()=>{const[i,e]=D.useState(!1),[t,r]=D.useState(!1);return{isCollapsed:i,setIsCollapsed:e,toggleCollapse:()=>{const l=!i;e(l),l&&r(!1)},activeSecondaryBar:t,openSecondaryBar:()=>{r(!0)},closeSecondaryBar:()=>{r(!1)},toggleSecondaryBar:()=>{r(l=>!l)}}},Fa=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:S("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},Da=D.createContext(void 0),Ia=()=>{const i=D.useContext(Da);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i},Za=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=Ia(),[n,s]=D.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:S("profile-container",e),children:[d.jsxs("button",{onClick:a,className:S("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},La=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:S("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Ba=({linkActions:i,componentBadge:e,onClick:t,activeAction:r,counts:n={}})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((s,a)=>s.viewAccess()&&d.jsx(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:a*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{t?.(s.action)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",r===s.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:r===s.action&&d.jsx(R.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(r===s.action,0)},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:r===s.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",r===s.action?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:s.title})]}),e&&typeof e=="function"&&n[s.action]&&n[s.action]>0&&e(n[s.action])]})]})},a))}),za=({links:i,isLinkActive:e,componentBadge:t,onLinkClick:r})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((n,s)=>{const a=e(n.path)||(n.relatedPaths?.some(o=>e(o))??!1);return n.isView&&n.viewAccess()&&d.jsx(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{r?.(n.path)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",a?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:a&&d.jsx(R.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:a?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",a?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title})]}),t&&n.count&&n.count>0&&t(n.count)]})]})},s)})}),Va=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Ha=i=>{const e=D.useRef(null);return{isCollapsed:i,navbarRef:e}},Ua=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),$a=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),Ya=(i,e=!0)=>{const t=D.useRef(null);return D.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[i,e]),t};P.Avatar=tn,P.Badge=La,P.Button=Ai,P.CardProfile=Dt,P.ChangueAccount=sn,P.CheckboxFormik=Ri,P.CompanyLogo=$a,P.Header=Di,P.Icons=le,P.Input=as,P.InputFormik=os,P.LayoutGeneric=hs,P.Logo=ls,P.Menu=us,P.NavBarActions=Ba,P.NavbarCollapseButton=Ua,P.NavbarLinks=za,P.NavigationLink=Fa,P.Pagination=cs,P.ProfileSection=Za,P.ProgressBar=an,P.SecondaryBar=ka,P.Select=fs,P.Sidebar=Aa,P.Spinner=or,P.useActionsNavbar=Va,P.useClickOutside=Ya,P.useNavbarCollapse=Ha,P.useSidebarState=Ra,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|