prometeo-design-system 1.0.0
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/README.md +801 -0
- package/dist/Icons/Icons.d.ts +162 -0
- package/dist/components/Button/Button.d.ts +24 -0
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/components/Layout/LayoutGeneric.d.ts +5 -0
- package/dist/components/Menu/Menu.d.ts +10 -0
- package/dist/components/Sidebar/Sidebar.d.ts +17 -0
- package/dist/components/Sidebar/components/avatar-profile.d.ts +5 -0
- package/dist/components/Sidebar/components/badge.d.ts +5 -0
- package/dist/components/Sidebar/components/changue-account.d.ts +5 -0
- package/dist/components/Sidebar/components/collapse-button.d.ts +6 -0
- package/dist/components/Sidebar/components/company-logo.d.ts +6 -0
- package/dist/components/Sidebar/components/nav-links.d.ts +20 -0
- package/dist/components/Sidebar/components/user-profile.d.ts +14 -0
- package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +9 -0
- package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +4 -0
- package/dist/components/Sidebar/hooks/useNavLinks.d.ts +20 -0
- package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +2 -0
- package/dist/hooks/useClickOutside.d.ts +8 -0
- package/dist/index.d.ts +18 -0
- package/dist/interfaces/User/SessionLocalStorage.d.ts +11 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/prometeo-design-system.es.js +6774 -0
- package/dist/prometeo-design-system.umd.js +37 -0
- package/dist/vite.svg +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
(function(X,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("framer-motion"),require("boring-avatars"),require("lucide-react"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","boring-avatars","lucide-react","react-router-dom","@gsap/react"],I):(X=typeof globalThis<"u"?globalThis:X||self,I(X.PrometeoDesignSystem={},X.React,X.FramerMotion,X.BoringAvatars,X.LucideReact,X.ReactRouterDOM,X.GSAPReact))})(this,(function(X,I,V,Gi,Yi,ar,Wi){"use strict";var Bt={exports:{}},kt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var nn;function Xi(){if(nn)return kt;nn=1;var s=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var a in n)a!=="key"&&(i[a]=n[a])}else i=n;return n=i.ref,{$$typeof:s,type:r,key:o,ref:n!==void 0?n:null,props:i}}return kt.Fragment=e,kt.jsx=t,kt.jsxs=t,kt}var Ct={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var sn;function Ji(){return sn||(sn=1,process.env.NODE_ENV!=="production"&&(function(){function s(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===R?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case d:return"Fragment";case v:return"Profiler";case g:return"StrictMode";case b:return"Suspense";case S:return"SuspenseList";case k:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case _:return"Portal";case T:return(C.displayName||"Context")+".Provider";case y:return(C._context.displayName||"Context")+".Consumer";case w:var E=C.render;return C=C.displayName,C||(C=E.displayName||E.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case q:return E=C.displayName||null,E!==null?E:s(C.type)||"Memo";case x:E=C._payload,C=C._init;try{return s(C(E))}catch{}}return null}function e(C){return""+C}function t(C){try{e(C);var E=!1}catch{E=!0}if(E){E=console;var Z=E.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Z.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),e(C)}}function r(C){if(C===d)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===x)return"<...>";try{var E=s(C);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function n(){var C=z.A;return C===null?null:C.getOwner()}function i(){return Error("react-stack-top-frame")}function o(C){if(M.call(C,"key")){var E=Object.getOwnPropertyDescriptor(C,"key").get;if(E&&E.isReactWarning)return!1}return C.key!==void 0}function a(C,E){function Z(){U||(U=!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)",E))}Z.isReactWarning=!0,Object.defineProperty(C,"key",{get:Z,configurable:!0})}function l(){var C=s(this.type);return F[C]||(F[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function u(C,E,Z,B,H,ee,Tt,re){return Z=ee.ref,C={$$typeof:p,type:C,key:E,props:ee,_owner:H},(Z!==void 0?Z:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:l}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Tt}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function c(C,E,Z,B,H,ee,Tt,re){var ae=E.children;if(ae!==void 0)if(B)if(A(ae)){for(B=0;B<ae.length;B++)f(ae[B]);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 f(ae);if(M.call(E,"key")){ae=s(C);var Pe=Object.keys(E).filter(function(Zt){return Zt!=="key"});B=0<Pe.length?"{key: someKey, "+Pe.join(": ..., ")+": ...}":"{key: someKey}",Ee[ae+B]||(Pe=0<Pe.length?"{"+Pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,B,ae,Pe,ae),Ee[ae+B]=!0)}if(ae=null,Z!==void 0&&(t(Z),ae=""+Z),o(E)&&(t(E.key),ae=""+E.key),"key"in E){Z={};for(var We in E)We!=="key"&&(Z[We]=E[We])}else Z=E;return ae&&a(Z,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,ae,ee,H,n(),Z,Tt,re)}function f(C){typeof C=="object"&&C!==null&&C.$$typeof===p&&C._store&&(C._store.validated=1)}var m=I,p=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),z=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,A=Array.isArray,D=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(C){return C()}};var U,F={},G=m.react_stack_bottom_frame.bind(m,i)(),j=D(r(i)),Ee={};Ct.Fragment=d,Ct.jsx=function(C,E,Z,B,H){var ee=1e4>z.recentlyCreatedOwnerStacks++;return c(C,E,Z,!1,B,H,ee?Error("react-stack-top-frame"):G,ee?D(r(C)):j)},Ct.jsxs=function(C,E,Z,B,H){var ee=1e4>z.recentlyCreatedOwnerStacks++;return c(C,E,Z,!0,B,H,ee?Error("react-stack-top-frame"):G,ee?D(r(C)):j)}})()),Ct}var on;function Qi(){return on||(on=1,process.env.NODE_ENV==="production"?Bt.exports=Xi():Bt.exports=Ji()),Bt.exports}var h=Qi();function an(s){var e,t,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var n=s.length;for(e=0;e<n;e++)s[e]&&(t=an(s[e]))&&(r&&(r+=" "),r+=t)}else for(t in s)s[t]&&(r&&(r+=" "),r+=t);return r}function Ki(){for(var s,e,t=0,r="",n=arguments.length;t<n;t++)(s=arguments[t])&&(e=an(s))&&(r&&(r+=" "),r+=e);return r}const lr="-",$i=s=>{const e=ts(s),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=s;return{getClassGroupId:o=>{const a=o.split(lr);return a[0]===""&&a.length!==1&&a.shift(),ln(a,e)||es(o)},getConflictingClassGroupIds:(o,a)=>{const l=t[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},ln=(s,e)=>{if(s.length===0)return e.classGroupId;const t=s[0],r=e.nextPart.get(t),n=r?ln(s.slice(1),r):void 0;if(n)return n;if(e.validators.length===0)return;const i=s.join(lr);return e.validators.find(({validator:o})=>o(i))?.classGroupId},un=/^\[(.+)\]$/,es=s=>{if(un.test(s)){const e=un.exec(s)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},ts=s=>{const{theme:e,classGroups:t}=s,r={nextPart:new Map,validators:[]};for(const n in t)ur(t[n],r,n,e);return r},ur=(s,e,t,r)=>{s.forEach(n=>{if(typeof n=="string"){const i=n===""?e:cn(e,n);i.classGroupId=t;return}if(typeof n=="function"){if(rs(n)){ur(n(r),e,t,r);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([i,o])=>{ur(o,cn(e,i),t,r)})})},cn=(s,e)=>{let t=s;return e.split(lr).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t},rs=s=>s.isThemeGetter,ns=s=>{if(s<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,r=new Map;const n=(i,o)=>{t.set(i,o),e++,e>s&&(e=0,r=t,t=new Map)};return{get(i){let o=t.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return n(i,o),o},set(i,o){t.has(i)?t.set(i,o):n(i,o)}}},cr="!",dr=":",is=dr.length,ss=s=>{const{prefix:e,experimentalParseClassName:t}=s;let r=n=>{const i=[];let o=0,a=0,l=0,u;for(let _=0;_<n.length;_++){let d=n[_];if(o===0&&a===0){if(d===dr){i.push(n.slice(l,_)),l=_+is;continue}if(d==="/"){u=_;continue}}d==="["?o++:d==="]"?o--:d==="("?a++:d===")"&&a--}const c=i.length===0?n:n.substring(l),f=os(c),m=f!==c,p=u&&u>l?u-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:p}};if(e){const n=e+dr,i=r;r=o=>o.startsWith(n)?i(o.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const n=r;r=i=>t({className:i,parseClassName:n})}return r},os=s=>s.endsWith(cr)?s.substring(0,s.length-1):s.startsWith(cr)?s.substring(1):s,as=s=>{const e=Object.fromEntries(s.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let i=[];return r.forEach(o=>{o[0]==="["||e[o]?(n.push(...i.sort(),o),i=[]):i.push(o)}),n.push(...i.sort()),n}},ls=s=>({cache:ns(s.cacheSize),parseClassName:ss(s),sortModifiers:as(s),...$i(s)}),us=/\s+/,cs=(s,e)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=e,o=[],a=s.trim().split(us);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:_,maybePostfixModifierPosition:d}=t(c);if(f){l=c+(l.length>0?" "+l:l);continue}let g=!!d,v=r(g?_.substring(0,d):_);if(!v){if(!g){l=c+(l.length>0?" "+l:l);continue}if(v=r(_),!v){l=c+(l.length>0?" "+l:l);continue}g=!1}const y=i(m).join(":"),T=p?y+cr:y,w=T+v;if(o.includes(w))continue;o.push(w);const b=n(v,g);for(let S=0;S<b.length;++S){const q=b[S];o.push(T+q)}l=c+(l.length>0?" "+l:l)}return l};function ds(){let s=0,e,t,r="";for(;s<arguments.length;)(e=arguments[s++])&&(t=dn(e))&&(r&&(r+=" "),r+=t);return r}const dn=s=>{if(typeof s=="string")return s;let e,t="";for(let r=0;r<s.length;r++)s[r]&&(e=dn(s[r]))&&(t&&(t+=" "),t+=e);return t};function fs(s,...e){let t,r,n,i=o;function o(l){const u=e.reduce((c,f)=>f(c),s());return t=ls(u),r=t.cache.get,n=t.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=cs(l,t);return n(l,c),c}return function(){return i(ds.apply(null,arguments))}}const oe=s=>{const e=t=>t[s]||[];return e.isThemeGetter=!0,e},fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hs=/^\d+\/\d+$/,ms=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ps=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_s=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,at=s=>hs.test(s),N=s=>!!s&&!Number.isNaN(Number(s)),ze=s=>!!s&&Number.isInteger(Number(s)),fr=s=>s.endsWith("%")&&N(s.slice(0,-1)),Me=s=>ms.test(s),vs=()=>!0,bs=s=>ps.test(s)&&!_s.test(s),mn=()=>!1,ys=s=>gs.test(s),ws=s=>xs.test(s),Ts=s=>!P(s)&&!O(s),ks=s=>lt(s,vn,mn),P=s=>fn.test(s),Xe=s=>lt(s,bn,bs),hr=s=>lt(s,Os,N),pn=s=>lt(s,gn,mn),Cs=s=>lt(s,xn,ws),Vt=s=>lt(s,yn,ys),O=s=>hn.test(s),St=s=>ut(s,bn),Ss=s=>ut(s,js),_n=s=>ut(s,gn),qs=s=>ut(s,vn),Ps=s=>ut(s,xn),Ut=s=>ut(s,yn,!0),lt=(s,e,t)=>{const r=fn.exec(s);return r?r[1]?e(r[1]):t(r[2]):!1},ut=(s,e,t=!1)=>{const r=hn.exec(s);return r?r[1]?e(r[1]):t:!1},gn=s=>s==="position"||s==="percentage",xn=s=>s==="image"||s==="url",vn=s=>s==="length"||s==="size"||s==="bg-size",bn=s=>s==="length",Os=s=>s==="number",js=s=>s==="family-name",yn=s=>s==="shadow",Rs=fs(()=>{const s=oe("color"),e=oe("font"),t=oe("text"),r=oe("font-weight"),n=oe("tracking"),i=oe("leading"),o=oe("breakpoint"),a=oe("container"),l=oe("spacing"),u=oe("radius"),c=oe("shadow"),f=oe("inset-shadow"),m=oe("text-shadow"),p=oe("drop-shadow"),_=oe("blur"),d=oe("perspective"),g=oe("aspect"),v=oe("ease"),y=oe("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...w(),O,P],S=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],x=()=>[O,P,l],k=()=>[at,"full","auto",...x()],R=()=>[ze,"none","subgrid",O,P],z=()=>["auto",{span:["full",ze,O,P]},ze,O,P],M=()=>[ze,"auto",O,P],A=()=>["auto","min","max","fr",O,P],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],G=()=>[at,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],j=()=>[s,O,P],Ee=()=>[...w(),_n,pn,{position:[O,P]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",qs,ks,{size:[O,P]}],Z=()=>[fr,St,Xe],B=()=>["","none","full",u,O,P],H=()=>["",N,St,Xe],ee=()=>["solid","dashed","dotted","double"],Tt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[N,fr,_n,pn],ae=()=>["","none",_,O,P],Pe=()=>["none",N,O,P],We=()=>["none",N,O,P],Zt=()=>[N,O,P],or=()=>[at,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Me],breakpoint:[Me],color:[vs],container:[Me],"drop-shadow":[Me],ease:["in","out","in-out"],font:[Ts],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Me],shadow:[Me],spacing:["px",N],text:[Me],"text-shadow":[Me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",at,P,O,g]}],container:["container"],columns:[{columns:[N,P,O,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ze,"auto",O,P]}],basis:[{basis:[at,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,at,"auto","initial","none",P]}],grow:[{grow:["",N,O,P]}],shrink:[{shrink:["",N,O,P]}],order:[{order:[ze,"first","last","none",O,P]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[a,"screen",...G()]}],"min-w":[{"min-w":[a,"screen","none",...G()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",t,St,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,hr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fr,P]}],"font-family":[{font:[Ss,P,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,O,P]}],"line-clamp":[{"line-clamp":[N,"none",O,hr]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",O,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",O,Xe]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[N,"auto",O,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ze,O,P],radial:["",O,P],conic:[ze,O,P]},Ps,Cs]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,O,P]}],"outline-w":[{outline:["",N,St,Xe]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",c,Ut,Vt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",f,Ut,Vt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[N,Xe]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",m,Ut,Vt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[N,O,P]}],"mix-blend":[{"mix-blend":[...Tt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Tt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[O,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,P]}],filter:[{filter:["","none",O,P]}],blur:[{blur:ae()}],brightness:[{brightness:[N,O,P]}],contrast:[{contrast:[N,O,P]}],"drop-shadow":[{"drop-shadow":["","none",p,Ut,Vt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",N,O,P]}],"hue-rotate":[{"hue-rotate":[N,O,P]}],invert:[{invert:["",N,O,P]}],saturate:[{saturate:[N,O,P]}],sepia:[{sepia:["",N,O,P]}],"backdrop-filter":[{"backdrop-filter":["","none",O,P]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[N,O,P]}],"backdrop-contrast":[{"backdrop-contrast":[N,O,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,O,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,O,P]}],"backdrop-invert":[{"backdrop-invert":["",N,O,P]}],"backdrop-opacity":[{"backdrop-opacity":[N,O,P]}],"backdrop-saturate":[{"backdrop-saturate":[N,O,P]}],"backdrop-sepia":[{"backdrop-sepia":["",N,O,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",O,P]}],ease:[{ease:["linear","initial",v,O,P]}],delay:[{delay:[N,O,P]}],animate:[{animate:["none",y,O,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[d,O,P]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:Zt()}],"skew-x":[{"skew-x":Zt()}],"skew-y":[{"skew-y":Zt()}],transform:[{transform:[O,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:or()}],"translate-x":[{"translate-x":or()}],"translate-y":[{"translate-y":or()}],"translate-z":[{"translate-z":or()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,P]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,P]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[N,St,Xe,hr]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function J(...s){return Rs(Ki(s))}const As={filled:{primary:J("bg-primary-default-default text-neutral-strong-default border-0 cursor-pointer flex items-center justify-center","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"),secondary:J("bg-neutral-strong-medium-default flex items-center justify-center 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")},outline:{primary:J("bg-transparent text-primary-medium-default border-1 border-primary-medium-default flex items-center justify-center","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 disabled:bg-transparent"),secondary:J("bg-transparent text-neutral-strong-default border-1 border-neutral-strong-default flex items-center justify-center","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 disabled:bg-transparent")},text:{primary:J("bg-transparent text-primary-medium-default border-0 flex items-center justify-center","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 disabled:bg-transparent"),secondary:J("bg-transparent text-neutral-strong-default border-0 flex items-center justify-center","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 disabled:bg-transparent")}},Es={small:"h-[40px] min-w-[123px] px-2 text-sm rounded-md text-sm font-semibold",medium:"h-[48px] min-w-[134px] px-2 font-semibold text-base rounded-md",large:"h-[56px] min-w-[145px] px-4 py-3 text-base rounded-md font-semibold"},Ms={enabled:"",hovered:"scale-105",focused:"ring-2 ring-offset-2",pressed:"scale-95",disabled:"opacity-50 cursor-not-allowed pointer-events-none"};function Ns({label:s,onClick:e,icon:t,classButton:r,classButtonText:n,animate:i=!0,animateIcon:o=!0,isLoading:a=!1,disabled:l=!1,type:u="button",variant:c="filled",color:f="primary",size:m="medium",children:p,Spinner:_,forceState:d}){const g=V.useAnimationControls(),v=()=>{!i||l||a||d||!o||g.start({rotate:90})},y=()=>{!i||l||a||d||!o||g.start({rotate:0})},T=r||J(As[c][f],Es[m],d&&Ms[d],(l||a)&&"opacity-50 cursor-not-allowed","focus:outline-none");return h.jsx(V.motion.button,{onClick:e,className:T,whileHover:i&&!l&&!a?{scale:1.05}:{},whileTap:i&&!l&&!a?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:v,onHoverEnd:y,disabled:l||a,type:u,children:a?h.jsxs("div",{className:"flex items-center gap-2",children:[_,m!=="small"&&h.jsx("span",{children:"Cargando..."})]}):p||h.jsxs("span",{className:J("flex items-center indent-1",n),children:[t&&h.jsx(V.motion.div,{animate:o?g:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),s&&h.jsx("span",{children:s})]})})}function Ds(s,e,t,r){var n=this,i=I.useRef(null),o=I.useRef(0),a=I.useRef(0),l=I.useRef(null),u=I.useRef([]),c=I.useRef(),f=I.useRef(),m=I.useRef(s),p=I.useRef(!0);m.current=s;var _=typeof window<"u",d=!e&&e!==0&&_;if(typeof s!="function")throw new TypeError("Expected a function");e=+e||0;var g=!!(t=t||{}).leading,v=!("trailing"in t)||!!t.trailing,y="maxWait"in t,T="debounceOnServer"in t&&!!t.debounceOnServer,w=y?Math.max(+t.maxWait||0,e):null;I.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var b=I.useMemo(function(){var S=function(A){var D=u.current,U=c.current;return u.current=c.current=null,o.current=A,a.current=a.current||A,f.current=m.current.apply(U,D)},q=function(A,D){d&&cancelAnimationFrame(l.current),l.current=d?requestAnimationFrame(A):setTimeout(A,D)},x=function(A){if(!p.current)return!1;var D=A-i.current;return!i.current||D>=e||D<0||y&&A-o.current>=w},k=function(A){return l.current=null,v&&u.current?S(A):(u.current=c.current=null,f.current)},R=function A(){var D=Date.now();if(g&&a.current===o.current&&z(),x(D))return k(D);if(p.current){var U=e-(D-i.current),F=y?Math.min(U,w-(D-o.current)):U;q(A,F)}},z=function(){r&&r({})},M=function(){if(_||T){var A=Date.now(),D=x(A);if(u.current=[].slice.call(arguments),c.current=n,i.current=A,D){if(!l.current&&p.current)return o.current=i.current,q(R,e),g?S(i.current):f.current;if(y)return q(R,e),S(i.current)}return l.current||q(R,e),f.current}};return M.cancel=function(){l.current&&(d?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,u.current=i.current=c.current=l.current=null},M.isPending=function(){return!!l.current},M.flush=function(){return l.current?k(Date.now()):f.current},M},[g,y,e,w,v,d,_,T,r]);return b}function Is(s,e){return s===e}function Ls(s,e,t){var r=Is,n=I.useRef(s),i=I.useState({})[1],o=Ds(I.useCallback(function(l){n.current=l,i({})},[i]),e,t,i),a=I.useRef(s);return r(a.current,s)||(o(s),a.current=s),[n.current,o]}const zs=({label:s,icon:e,onChange:t,value:r="",debounceMs:n=0,name:i,width:o="100%",height:a="56px",className:l,id:u,isFetching:c=!1,placeholder:f="",disabled:m=!1,required:p=!1,error:_,type:d="text"})=>{const g=I.useId(),v=u||g,[y,T]=I.useState(r),[w,b]=I.useState(!1),[S]=Ls(y,n>0?n:0);I.useEffect(()=>{T(r)},[r]),I.useEffect(()=>{n>0&&S!==r&&t(S)},[S,n,t,r]);const q=z=>{const M=z.target.value;T(M),n===0&&t(M)},x=y.length>0,k=_&&!w,R=w||x;return h.jsxs("div",{className:J("relative w-72",l),style:{width:o,height:a},children:[h.jsxs("div",{className:J("relative w-72 h-full","border-2 rounded-lg transition-all duration-200","bg-white hover:bg-gray-50",!_&&!w&&"border-gray-300",!_&&w&&"border-blue-500 ring-2 ring-blue-200",k&&"border-red-500 ring-2 ring-red-200",m&&"bg-gray-100 border-gray-200 cursor-not-allowed",e?"pl-12":"pl-4","pr-4"),children:[e&&h.jsx(V.motion.div,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10",animate:{y:R?[-2,0]:0,rotate:w?[0,-10,10,-10,10,0]:0},transition:{duration:.7},children:h.jsx("span",{className:J("text-lg transition-colors duration-200",!_&&!R&&"text-gray-400",!_&&R&&"text-blue-500",k&&"text-red-500",m&&"text-gray-300"),children:e})}),h.jsx("input",{id:v,type:d,className:J("w-full h-full bg-transparent border-none outline-none","text-gray-900 text-base transition-all duration-200","placeholder-transparent","pt-6 pb-2",m&&"cursor-not-allowed text-gray-400","focus:outline-none"),name:i,value:y,placeholder:w?f:"",disabled:m,required:p,onFocus:()=>b(!0),onBlur:()=>b(!1),onChange:q,"aria-invalid":!!_,"aria-describedby":_?`${v}-error`:void 0}),h.jsxs(V.motion.label,{htmlFor:v,className:J("absolute left-0 top-1/2 transform origin-left cursor-text","transition-all duration-200 pointer-events-none select-none","text-gray-500 font-medium",e?"ml-12":"ml-4",!_&&!R&&"text-gray-500",!_&&R&&"text-blue-600",k&&"text-red-500",m&&"text-gray-400"),animate:{y:R?-20:-8,scale:R?.85:1},transition:{duration:.2,ease:"easeOut"},children:[s,p&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),c&&h.jsx(V.motion.div,{className:"absolute right-3 top-1/2 transform -translate-y-1/2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:h.jsx("div",{className:J("w-5 h-5 border-2 border-gray-300 border-t-blue-500","rounded-full animate-spin")})})]}),_&&h.jsx(V.motion.span,{id:`${v}-error`,className:J("block mt-1 text-sm text-red-500 font-medium","px-1"),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},role:"alert",children:_})]})},Fs=I.memo(zs),Je={Ticket:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:s,height:s,fill:"currentColor",className:e,children:h.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:s,className:e,...t})=>h.jsxs("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[h.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:s,height:s,children:h.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),h.jsx("g",{mask:"url(#mask0_977_20941)",children:h.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]})};function Zs({profileImage:s,size:e,sizeImage:t=5.5}){const[r,n]=I.useState(!1);return h.jsx(h.Fragment,{children:s&&!r?h.jsx("img",{onError:()=>{n(!0)},src:s,className:`w-${t} h-${t} rounded-full`}):h.jsx(Gi,{size:e,name:s,variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}const mr=({user:s,isExpanded:e,onClick:t,onProfileClick:r,showOptions:n=!1,onClickLogout:i,sessions:o,handleTokenLogin:a})=>{const l=o?.filter(u=>u.email!==s?.email);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 ",children:[h.jsxs(V.motion.button,{onClick:r,className:J("flex flex-1 gap-1 rounded-l-md cursor-pointer justify-center relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",e&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[h.jsx("div",{className:"profile-image-wrapper flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:h.jsx(Zs,{profileImage:s?.profileImage||"",size:36})}),h.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[h.jsx("p",{className:J("profile-name font-semibold leading-tight mb-0 text-left",e?"text-primary-default-default":"text-neutral-default-default"),children:s?.name?.length&&s?.name?.length>20?s?.name?.slice(0,10)+"..":s?.name}),h.jsx("div",{className:"flex items-center gap-1 mt-1",children:s&&s.company_id?h.jsxs(h.Fragment,{children:[h.jsx("p",{className:J("profile-options truncate text-xs mt-0",e?"text-primary-default-default":"text-neutral-default-default"),children:s?.company_id?.name?.length&&s?.company_id?.name?.length>20?s?.company_id?.name?.slice(0,10)+"..":s?.company_id?.name}),h.jsx("p",{className:J("profile-options truncate font-bold mt-0",e?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),h.jsx("p",{className:J("profile-options truncate text-xs mt-0",e?"text-primary-default-default":"text-neutral-default-default"),children:s?.area?.name||s?.company_id?.name||"Sin asignar"})]}):h.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),n&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),h.jsx(V.motion.button,{onClick:t,className:`flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] \r
|
|
23
|
+
hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:e?"Ocultar opciones":"Mostrar opciones","aria-label":e?"Ocultar opciones":"Mostrar opciones",children:h.jsx(V.motion.div,{animate:{rotate:e?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:h.jsx(V.motion.div,{transition:{duration:.2},children:h.jsx(Je.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),h.jsx(V.AnimatePresence,{mode:"wait",children:e&&h.jsxs(V.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:[h.jsx(V.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:h.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),l&&l?.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(V.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:h.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),h.jsx(V.motion.div,{className:"mt-4 overflow-hidden",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:h.jsx(wn,{sessions:l,handleTokenLogin:a})}),h.jsx(V.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:h.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),h.jsxs(V.motion.button,{onClick:i,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:[h.jsx(Je.Logout,{size:24,className:"text-neutral-default-default"}),h.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})]})};function wn({sessions:s,handleTokenLogin:e}){return h.jsx("div",{className:"profile-options-container",children:s?.map(t=>h.jsx("button",{onClick:()=>e?.(t.token),children:h.jsx(mr,{user:t},t._id)},t._id))})}const Tn=({sessionsShow:s,handleTokenLogin:e,onClickLogout:t,menuRef:r,onProfileClick:n})=>h.jsx("div",{ref:r,className:"flex bg-neutral-default-default gap-4 absolute bottom-10 left-30 border-1 border-neutral-strong-default h-72 w-60 rounded-md px-2",children:h.jsx(V.AnimatePresence,{mode:"wait",children:h.jsxs(V.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:[h.jsxs(V.motion.button,{onClick:n,className:"flex h-12 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",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:[h.jsx(Je.UserPerson,{size:24,className:"text-neutral-default-default"}),h.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Ver perfil"})]}),h.jsx(V.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"}}}),s&&s?.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(V.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:h.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),h.jsx(V.motion.div,{className:"mt-4 overflow-hidden",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:h.jsx(wn,{sessions:s,handleTokenLogin:e})}),h.jsx(V.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:h.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),h.jsxs(V.motion.button,{onClick:t,className:"flex 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:[h.jsx(Je.Logout,{size:24,className:"text-neutral-default-default"}),h.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})}),kn=({notificationsCount:s})=>h.jsx(h.Fragment,{children:s>0&&h.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center",children:h.jsx("span",{className:"text-xs text-neutral-default-default font-medium",children:s})})}),Cn=({isCollapsed:s,onToggle:e})=>h.jsx("div",{className:"p-4 flex justify-end",children:h.jsx("button",{onClick:e,title:s?"Expandir Navbar":"Contraer Navbar","aria-label":s?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:s?h.jsx(Je.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):h.jsx(Je.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Sn=({logoUrl:s,companyName:e})=>h.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:h.jsx("img",{src:s,className:"h-2/3 rounded-full",alt:e??""})}),pr=({links:s,isLinkActive:e,componentBadge:t,onClick:r,activeModal:n})=>h.jsx("nav",{className:"flex flex-col gap-1",children:s.map((i,o)=>{const a=e(i.path)||(i.relatedPaths?.some(l=>e(l))??!1);return i.isView&&h.jsxs(V.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:[i.path==="/notifications"&&h.jsx("button",{onClick:r,className:J("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",n?"text-primary-default-default":"text-neutral-default-default"),children:h.jsxs(V.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[h.jsx(V.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:n?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof i.icon=="function"?i.icon({size:24,className:J("nav-icon transition-colors duration-250 ease-out",n?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),h.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:i.title}),i.path==="/notifications"&&t&&t()]})}),i.path!=="/notifications"&&h.jsxs(Yi.Link,{to:i.path,onClick:r,className:J("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:[h.jsx(V.AnimatePresence,{mode:"wait",children:a&&h.jsx(V.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"}})}),h.jsxs(V.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[h.jsx(V.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 i.icon=="function"?i.icon({size:24,className:J("nav-icon transition-colors duration-250 ease-out",a?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),h.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:i.title}),i.path==="/notifications"&&t&&t()]})]})]},o)})}),qn=s=>{const e=I.useRef(null);return{isCollapsed:s,navbarRef:e}},Pn=(s,e)=>{const t=ar.useLocation().pathname,r=I.useMemo(()=>e.pages.filter(o=>o.roles.includes(s?.role)),[e.pages,s?.role]),n=I.useMemo(()=>e.utils.filter(o=>o.roles.includes(s?.role)),[e.utils,s?.role]);return{pageLinks:r,utilLinks:n,isLinkActive:o=>t===o,pathname:t}};function Ne(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function On(s,e){s.prototype=Object.create(e.prototype),s.prototype.constructor=s,s.__proto__=e}/*!
|
|
24
|
+
* GSAP 3.13.0
|
|
25
|
+
* https://gsap.com
|
|
26
|
+
*
|
|
27
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
28
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
29
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
30
|
+
*/var xe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ct={duration:.5,overwrite:!1,delay:0},_r,ue,Q,ke=1e8,Y=1/ke,gr=Math.PI*2,Bs=gr/4,Vs=0,jn=Math.sqrt,Us=Math.cos,Hs=Math.sin,le=function(e){return typeof e=="string"},te=function(e){return typeof e=="function"},De=function(e){return typeof e=="number"},xr=function(e){return typeof e>"u"},Oe=function(e){return typeof e=="object"},he=function(e){return e!==!1},vr=function(){return typeof window<"u"},Ht=function(e){return te(e)||le(e)},Rn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ce=Array.isArray,br=/(?:-?\.?\d|\.)+/gi,An=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,dt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,yr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,En=/[+-]=-?[.\d]+/,Mn=/[^,'"\[\]\s]+/gi,Gs=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,K,je,wr,Tr,ve={},Gt={},Nn,Dn=function(e){return(Gt=ht(e,ve))&&_e},kr=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},qt=function(e,t){return!t&&console.warn(e)},In=function(e,t){return e&&(ve[e]=t)&&Gt&&(Gt[e]=t)||ve},Pt=function(){return 0},Ys={suppressEvents:!0,isStart:!0,kill:!1},Yt={suppressEvents:!0,kill:!1},Ws={suppressEvents:!0},Cr={},Fe=[],Sr={},Ln,be={},qr={},zn=30,Wt=[],Pr="",Or=function(e){var t=e[0],r,n;if(Oe(t)||te(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 mi(e[n],r)))||e.splice(n,1);return e},Qe=function(e){return e._gsap||Or(Se(e))[0]._gsap},Fn=function(e,t,r){return(r=e[t])&&te(r)?e[t]():xr(r)&&e.getAttribute&&e.getAttribute(t)||r},me=function(e,t){return(e=e.split(",")).forEach(t)||e},ne=function(e){return Math.round(e*1e5)/1e5||0},ie=function(e){return Math.round(e*1e7)/1e7||0},ft=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},Xs=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},Xt=function(){var e=Fe.length,t=Fe.slice(0),r,n;for(Sr={},Fe.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},jr=function(e){return!!(e._initted||e._startAt||e.add)},Zn=function(e,t,r,n){Fe.length&&!ue&&Xt(),e.render(t,r,!!(ue&&t<0&&jr(e))),Fe.length&&!ue&&Xt()},Bn=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(Mn).length<2?t:le(e)?e.trim():e},Vn=function(e){return e},ye=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},Js=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},ht=function(e,t){for(var r in t)e[r]=t[r];return e},Un=function s(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Oe(t[r])?s(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},Ot=function(e){var t=e.parent||K,r=e.keyframes?Js(ce(e.keyframes)):ye;if(he(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},Qs=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},Hn=function(e,t,r,n,i){var o=e[n],a;if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},Qt=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var i=t._prev,o=t._next;i?i._next=o:e[r]===t&&(e[r]=o),o?o._prev=i:e[n]===t&&(e[n]=i),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},Ke=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},Ks=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Rr=function(e,t,r,n){return e._startAt&&(ue?e._startAt.revert(Yt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},$s=function s(e){return!e||e._ts&&s(e.parent)},Gn=function(e){return e._repeat?mt(e._tTime,e=e.duration()+e._rDelay)*e:0},mt=function(e,t){var r=Math.floor(e=ie(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)},$t=function(e){return e._end=ie(e._start+(e._tDur/Math.abs(e._ts||e._rts||Y)||0))},er=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ie(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),$t(e),r._dirty||Ke(r,e)),e},Yn=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||Rt(0,t.totalDuration(),r)-t._tTime>Y)&&t.render(r,!0)),Ke(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=-Y}},Re=function(e,t,r,n){return t.parent&&Ze(t),t._start=ie((De(r)?r:r||e!==K?Ce(e,r,t):e._time)+t._delay),t._end=ie(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Hn(e,t,"_first","_last",e._sort?"_start":0),Ar(t)||(e._recent=t),n||Yn(e,t),e._ts<0&&er(e,e._tTime),e},Wn=function(e,t){return(ve.ScrollTrigger||kr("scrollTrigger",t))&&ve.ScrollTrigger.create(t,e)},Xn=function(e,t,r,n,i){if(Zr(e,t,i),!e._initted)return 1;if(!r&&e._pt&&!ue&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ln!==Te.frame)return Fe.push(e),e._lazy=[i,n],1},eo=function s(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||s(t))},Ar=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},to=function(e,t,r,n){var i=e.ratio,o=t<0||!t&&(!e._start&&eo(e)&&!(!e._initted&&Ar(e))||(e._ts<0||e._dp._ts<0)&&!Ar(e))?0:1,a=e._rDelay,l=0,u,c,f;if(a&&e._repeat&&(l=Rt(0,e._tDur,t),c=mt(l,a),e._yoyo&&c&1&&(o=1-o),c!==mt(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||ue||n||e._zTime===Y||!t&&e._zTime){if(!e._initted&&Xn(e,t,n,r,l))return;for(f=e._zTime,e._zTime=t||(r?Y:0),r||(r=t&&!f),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;t<0&&Rr(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===o&&(o&&Ze(e,1),!r&&!ue&&(we(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},ro=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}},pt=function(e,t,r,n){var i=e._repeat,o=ie(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=o/e._dur),e._dur=o,e._tDur=i?i<0?1e10:ie(o*(i+1)+e._rDelay*i):o,a>0&&!n&&er(e,e._tTime=e._tDur*a),e.parent&&$t(e),r||Ke(e.parent,e),e},Jn=function(e){return e instanceof fe?Ke(e):pt(e,e._dur)},no={_start:0,endTime:Pt,totalDuration:Pt},Ce=function s(e,t,r){var n=e.labels,i=e._recent||no,o=e.duration()>=ke?i.endTime(!1):e._dur,a,l,u;return le(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),u=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(a<0?i:r).totalDuration()/100:1)):a<0?(t in n||(n[t]=o),n[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),u&&r&&(l=l/100*(ce(r)?r[0]:r).totalDuration()),a>1?s(e,t.substr(0,a-1),r)+l:o+l)):t==null?o:+t},jt=function(e,t,r){var n=De(t[1]),i=(n?2:1)+(e<2?0:1),o=t[i],a,l;if(n&&(o.duration=t[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=he(l.vars.inherit)&&l.parent;o.immediateRender=he(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new se(t[0],o,t[i+1])},Be=function(e,t){return e||e===0?t(e):t},Rt=function(e,t,r){return r<e?e:r>t?t:r},de=function(e,t){return!le(e)||!(t=Gs.exec(e))?"":t[1]},io=function(e,t,r){return Be(r,function(n){return Rt(e,t,n)})},Er=[].slice,Qn=function(e,t){return e&&Oe(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Oe(e[0]))&&!e.nodeType&&e!==je},so=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var i;return le(n)&&!t||Qn(n,1)?(i=r).push.apply(i,Se(n)):r.push(n)})||r},Se=function(e,t,r){return Q&&!t&&Q.selector?Q.selector(e):le(e)&&!r&&(wr||!gt())?Er.call((t||Tr).querySelectorAll(e),0):ce(e)?so(e,r):Qn(e)?Er.call(e,0):e?[e]:[]},Mr=function(e){return e=Se(e)[0]||qt("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return Se(t,r.querySelectorAll?r:r===e?qt("Invalid scope")||Tr.createElement("div"):e)}},Kn=function(e){return e.sort(function(){return .5-Math.random()})},$n=function(e){if(te(e))return e;var t=Oe(e)?e:{each:e},r=$e(t.ease),n=t.from||0,i=parseFloat(t.base)||0,o={},a=n>0&&n<1,l=isNaN(n)||a,u=t.axis,c=n,f=n;return le(n)?c=f={center:.5,edges:.5,end:1}[n]||0:!a&&l&&(c=n[0],f=n[1]),function(m,p,_){var d=(_||t).length,g=o[d],v,y,T,w,b,S,q,x,k;if(!g){if(k=t.grid==="auto"?0:(t.grid||[1,ke])[1],!k){for(q=-ke;q<(q=_[k++].getBoundingClientRect().left)&&k<d;);k<d&&k--}for(g=o[d]=[],v=l?Math.min(k,d)*c-.5:n%k,y=k===ke?0:l?d*f/k-.5:n/k|0,q=0,x=ke,S=0;S<d;S++)T=S%k-v,w=y-(S/k|0),g[S]=b=u?Math.abs(u==="y"?w:T):jn(T*T+w*w),b>q&&(q=b),b<x&&(x=b);n==="random"&&Kn(g),g.max=q-x,g.min=x,g.v=d=(parseFloat(t.amount)||parseFloat(t.each)*(k>d?d-1:u?u==="y"?d/k:k:Math.max(k,d/k))||0)*(n==="edges"?-1:1),g.b=d<0?i-d:i,g.u=de(t.amount||t.each)||0,r=r&&d<0?di(r):r}return d=(g[m]-g.min)/g.max||0,ie(g.b+(r?r(d):d)*g.v)+g.u}},Nr=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=ie(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(De(r)?0:de(r))}},ei=function(e,t){var r=ce(e),n,i;return!r&&Oe(e)&&(n=r=e.radius||ke,e.values?(e=Se(e.values),(i=!De(e[0]))&&(n*=n)):e=Nr(e.increment)),Be(t,r?te(e)?function(o){return i=e(o),Math.abs(i-o)<=n?i:o}:function(o){for(var a=parseFloat(i?o.x:o),l=parseFloat(i?o.y:0),u=ke,c=0,f=e.length,m,p;f--;)i?(m=e[f].x-a,p=e[f].y-l,m=m*m+p*p):m=Math.abs(e[f]-a),m<u&&(u=m,c=f);return c=!n||u<=n?e[c]:o,i||c===o||De(o)?c:c+de(o)}:Nr(e))},ti=function(e,t,r,n){return Be(ce(e)?!t:r===!0?!!(r=0):!n,function(){return ce(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})},oo=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(i,o){return o(i)},n)}},ao=function(e,t){return function(r){return e(parseFloat(r))+(t||de(r))}},lo=function(e,t,r){return ni(e,t,0,1,r)},ri=function(e,t,r){return Be(r,function(n){return e[~~t(n)]})},uo=function s(e,t,r){var n=t-e;return ce(e)?ri(e,s(0,e.length),t):Be(r,function(i){return(n+(i-e)%n)%n+e})},co=function s(e,t,r){var n=t-e,i=n*2;return ce(e)?ri(e,s(0,e.length-1),t):Be(r,function(o){return o=(i+(o-e)%i)%i||0,e+(o>n?i-o:o)})},At=function(e){for(var t=0,r="",n,i,o,a;~(n=e.indexOf("random(",t));)o=e.indexOf(")",n),a=e.charAt(n+7)==="[",i=e.substr(n+7,o-n-7).match(a?Mn:br),r+=e.substr(t,n-t)+ti(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return r+e.substr(t,e.length-t)},ni=function(e,t,r,n,i){var o=t-e,a=n-r;return Be(i,function(l){return r+((l-e)/o*a||0)})},fo=function s(e,t,r,n){var i=isNaN(e+t)?0:function(p){return(1-p)*e+p*t};if(!i){var o=le(e),a={},l,u,c,f,m;if(r===!0&&(n=1)&&(r=null),o)e={p:e},t={p:t};else if(ce(e)&&!ce(t)){for(c=[],f=e.length,m=f-2,u=1;u<f;u++)c.push(s(e[u-1],e[u]));f--,i=function(_){_*=f;var d=Math.min(m,~~_);return c[d](_-d)},r=t}else n||(e=ht(ce(e)?[]:{},e));if(!c){for(l in t)zr.call(a,e,l,"get",t[l]);i=function(_){return Ur(_,a)||(o?e.p:e)}}}return Be(r,i)},ii=function(e,t,r){var n=e.labels,i=ke,o,a,l;for(o in n)a=n[o]-t,a<0==!!r&&a&&i>(a=Math.abs(a))&&(l=o,i=a);return l},we=function(e,t,r){var n=e.vars,i=n[t],o=Q,a=e._ctx,l,u,c;if(i)return l=n[t+"Params"],u=n.callbackScope||e,r&&Fe.length&&Xt(),a&&(Q=a),c=l?i.apply(u,l):i.call(u),Q=o,c},Et=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ue),e.progress()<1&&we(e,"onInterrupt"),e},_t,si=[],oi=function(e){if(e)if(e=!e.name&&e.default||e,vr()||e.headless){var t=e.name,r=te(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:Pt,render:Ur,add:zr,kill:Po,modifier:qo,rawVars:0},o={targetTest:0,get:0,getSetter:Vr,aliases:{},register:0};if(gt(),e!==n){if(be[t])return;ye(n,ye(Jt(e,i),o)),ht(n.prototype,ht(i,Jt(e,o))),be[n.prop=t]=n,e.targetTest&&(Wt.push(n),Cr[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}In(t,n),e.register&&e.register(_e,n,pe)}else si.push(e)},W=255,Mt={aqua:[0,W,W],lime:[0,W,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,W],navy:[0,0,128],white:[W,W,W],olive:[128,128,0],yellow:[W,W,0],orange:[W,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[W,0,0],pink:[W,192,203],cyan:[0,W,W],transparent:[W,W,W,0]},Dr=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)*W+.5|0},ai=function(e,t,r){var n=e?De(e)?[e>>16,e>>8&W,e&W]:0:Mt.black,i,o,a,l,u,c,f,m,p,_;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Mt[e])n=Mt[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&W,n&W,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&W,e&W]}else if(e.substr(0,3)==="hsl"){if(n=_=e.match(br),!t)l=+n[0]%360/360,u=+n[1]/100,c=+n[2]/100,o=c<=.5?c*(u+1):c+u-c*u,i=c*2-o,n.length>3&&(n[3]*=1),n[0]=Dr(l+1/3,i,o),n[1]=Dr(l,i,o),n[2]=Dr(l-1/3,i,o);else if(~e.indexOf("="))return n=e.match(An),r&&n.length<4&&(n[3]=1),n}else n=e.match(br)||Mt.transparent;n=n.map(Number)}return t&&!_&&(i=n[0]/W,o=n[1]/W,a=n[2]/W,f=Math.max(i,o,a),m=Math.min(i,o,a),c=(f+m)/2,f===m?l=u=0:(p=f-m,u=c>.5?p/(2-f-m):p/(f+m),l=f===i?(o-a)/p+(o<a?6:0):f===o?(a-i)/p+2:(i-o)/p+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},li=function(e){var t=[],r=[],n=-1;return e.split(Ve).forEach(function(i){var o=i.match(dt)||[];t.push.apply(t,o),r.push(n+=o.length+1)}),t.c=r,t},ui=function(e,t,r){var n="",i=(e+n).match(Ve),o=t?"hsla(":"rgba(",a=0,l,u,c,f;if(!i)return e;if(i=i.map(function(m){return(m=ai(m,t,1))&&o+(t?m[0]+","+m[1]+"%,"+m[2]+"%,"+m[3]:m.join(","))+")"}),r&&(c=li(e),l=r.c,l.join(n)!==c.c.join(n)))for(u=e.replace(Ve,"1").split(dt),f=u.length-1;a<f;a++)n+=u[a]+(~l.indexOf(a)?i.shift()||o+"0,0,0,0)":(c.length?c:i.length?i:r).shift());if(!u)for(u=e.split(Ve),f=u.length-1;a<f;a++)n+=u[a]+i[a];return n+u[f]},Ve=(function(){var s="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Mt)s+="|"+e+"\\b";return new RegExp(s+")","gi")})(),ho=/hsl[a]?\(/,ci=function(e){var t=e.join(" "),r;if(Ve.lastIndex=0,Ve.test(t))return r=ho.test(t),e[1]=ui(e[1],r),e[0]=ui(e[0],r,li(e[1])),!0},Nt,Te=(function(){var s=Date.now,e=500,t=33,r=s(),n=r,i=1e3/240,o=i,a=[],l,u,c,f,m,p,_=function d(g){var v=s()-n,y=g===!0,T,w,b,S;if((v>e||v<0)&&(r+=v-t),n+=v,b=n-r,T=b-o,(T>0||y)&&(S=++f.frame,m=b-f.time*1e3,f.time=b=b/1e3,o+=T+(T>=i?4:i-T),w=1),y||(l=u(d)),w)for(p=0;p<a.length;p++)a[p](b,m,S,g)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(g){return m/(1e3/(g||60))},wake:function(){Nn&&(!wr&&vr()&&(je=wr=window,Tr=je.document||{},ve.gsap=_e,(je.gsapVersions||(je.gsapVersions=[])).push(_e.version),Dn(Gt||je.GreenSockGlobals||!je.gsap&&je||{}),si.forEach(oi)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(g){return setTimeout(g,o-f.time*1e3+1|0)},Nt=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Nt=0,u=Pt},lagSmoothing:function(g,v){e=g||1/0,t=Math.min(v||33,e)},fps:function(g){i=1e3/(g||240),o=f.time*1e3+i},add:function(g,v,y){var T=v?function(w,b,S,q){g(w,b,S,q),f.remove(T)}:g;return f.remove(g),a[y?"unshift":"push"](T),gt(),T},remove:function(g,v){~(v=a.indexOf(g))&&a.splice(v,1)&&p>=v&&p--},_listeners:a},f})(),gt=function(){return!Nt&&Te.wake()},L={},mo=/^[\d.\-M][\d.\-,\s]/,po=/["']/g,_o=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],i=1,o=r.length,a,l,u;i<o;i++)l=r[i],a=i!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),t[n]=isNaN(u)?u.replace(po,"").trim():+u,n=l.substr(a+1).trim();return t},go=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)},xo=function(e){var t=(e+"").split("("),r=L[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[_o(t[1])]:go(e).split(",").map(Bn)):L._CE&&mo.test(e)?L._CE("",e):r},di=function(e){return function(t){return 1-e(1-t)}},fi=function s(e,t){for(var r=e._first,n;r;)r instanceof fe?s(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?s(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},$e=function(e,t){return e&&(te(e)?e:L[e]||xo(e))||t},et=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 i={easeIn:t,easeOut:r,easeInOut:n},o;return me(e,function(a){L[a]=ve[a]=i,L[o=a.toLowerCase()]=r;for(var l in i)L[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=L[a+"."+l]=i[l]}),i},hi=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Ir=function s(e,t,r){var n=t>=1?t:1,i=(r||(e?.3:.45))/(t<1?t:1),o=i/gr*(Math.asin(1/n)||0),a=function(c){return c===1?1:n*Math.pow(2,-10*c)*Hs((c-o)*i)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:hi(a);return i=gr/i,l.config=function(u,c){return s(e,u,c)},l},Lr=function s(e,t){t===void 0&&(t=1.70158);var r=function(o){return o?--o*o*((t+1)*o+t)+1:0},n=e==="out"?r:e==="in"?function(i){return 1-r(1-i)}:hi(r);return n.config=function(i){return s(e,i)},n};me("Linear,Quad,Cubic,Quart,Quint,Strong",function(s,e){var t=e<5?e+1:e;et(s+",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})}),L.Linear.easeNone=L.none=L.Linear.easeIn,et("Elastic",Ir("in"),Ir("out"),Ir()),(function(s,e){var t=1/e,r=2*t,n=2.5*t,i=function(a){return a<t?s*a*a:a<r?s*Math.pow(a-1.5/e,2)+.75:a<n?s*(a-=2.25/e)*a+.9375:s*Math.pow(a-2.625/e,2)+.984375};et("Bounce",function(o){return 1-i(1-o)},i)})(7.5625,2.75),et("Expo",function(s){return Math.pow(2,10*(s-1))*s+s*s*s*s*s*s*(1-s)}),et("Circ",function(s){return-(jn(1-s*s)-1)}),et("Sine",function(s){return s===1?1:-Us(s*Bs)+1}),et("Back",Lr("in"),Lr("out"),Lr()),L.SteppedEase=L.steps=ve.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),i=t?1:0,o=1-Y;return function(a){return((n*Rt(0,o,a)|0)+i)*r}}},ct.ease=L["quad.out"],me("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(s){return Pr+=s+","+s+"Params,"});var mi=function(e,t){this.id=Vs++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Fn,this.set=t?t.getSetter:Vr},Dt=(function(){function s(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,pt(this,+t.duration,1,1),this.data=t.data,Q&&(this._ctx=Q,Q.data.push(this)),Nt||Te.wake()}var e=s.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,pt(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(gt(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(er(this,r),!i._dp||i.parent||Yn(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Re(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Y||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Zn(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Gn(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)+Gn(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*i,n):this._repeat?mt(this._tTime,i)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-Y?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?Kt(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Y?0:this._rts,this.totalTime(Rt(-Math.abs(this._delay),this.totalDuration(),i),n!==!1),$t(this),Ks(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):(gt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Y&&(this._tTime-=Y)))),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)&&Re(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=Ws);var n=ue;return ue=r,jr(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),ue=n,this},e.globalTime=function(r){for(var n=this,i=arguments.length?r:n.rawTime();n;)i=n._start+i/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):i},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Jn(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,Jn(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(Ce(this,r),he(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,he(n)),this._dur||(this._zTime=-Y),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?-Y:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Y,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,i;return!!(!r||this._ts&&this._initted&&r.isActive()&&(i=r.rawTime(!0))>=n&&i<this.endTime(!0)-Y)},e.eventCallback=function(r,n,i){var o=this.vars;return arguments.length>1?(n?(o[r]=n,i&&(o[r+"Params"]=i),r==="onUpdate"&&(this._onUpdate=n)):delete o[r],this):o[r]},e.then=function(r){var n=this;return new Promise(function(i){var o=te(r)?r:Vn,a=function(){var u=n.then;n.then=null,te(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=u),i(o),n.then=u};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},e.kill=function(){Et(this)},s})();ye(Dt.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:-Y,_prom:0,_ps:!1,_rts:1});var fe=(function(s){On(e,s);function e(r,n){var i;return r===void 0&&(r={}),i=s.call(this,r)||this,i.labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=he(r.sortChildren),K&&Re(r.parent||K,Ne(i),n),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&Wn(Ne(i),r.scrollTrigger),i}var t=e.prototype;return t.to=function(n,i,o){return jt(0,arguments,this),this},t.from=function(n,i,o){return jt(1,arguments,this),this},t.fromTo=function(n,i,o,a){return jt(2,arguments,this),this},t.set=function(n,i,o){return i.duration=0,i.parent=this,Ot(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new se(n,i,Ce(this,o),1),this},t.call=function(n,i,o){return Re(this,se.delayedCall(0,n,i),o)},t.staggerTo=function(n,i,o,a,l,u,c){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new se(n,o,Ce(this,l)),this},t.staggerFrom=function(n,i,o,a,l,u,c){return o.runBackwards=1,Ot(o).immediateRender=he(o.immediateRender),this.staggerTo(n,i,o,a,l,u,c)},t.staggerFromTo=function(n,i,o,a,l,u,c,f){return a.startAt=o,Ot(a).immediateRender=he(a.immediateRender),this.staggerTo(n,i,a,l,u,c,f)},t.render=function(n,i,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=n<=0?0:ie(n),f=this._zTime<0!=n<0&&(this._initted||!u),m,p,_,d,g,v,y,T,w,b,S,q;if(this!==K&&c>l&&n>=0&&(c=l),c!==this._tTime||o||f){if(a!==this._time&&u&&(c+=this._time-a,n+=this._time-a),m=c,w=this._start,T=this._ts,v=!T,f&&(u||(a=this._zTime),(n||!i)&&(this._zTime=n)),this._repeat){if(S=this._yoyo,g=u+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,i,o);if(m=ie(c%g),c===l?(d=this._repeat,m=u):(b=ie(c/g),d=~~b,d&&d===b&&(m=u,d--),m>u&&(m=u)),b=mt(this._tTime,g),!a&&this._tTime&&b!==d&&this._tTime-b*g-this._dur<=0&&(b=d),S&&d&1&&(m=u-m,q=1),d!==b&&!this._lock){var x=S&&b&1,k=x===(S&&d&1);if(d<b&&(x=!x),a=x?0:c%u?u:c,this._lock=1,this.render(a||(q?0:ie(d*g)),i,!u)._lock=0,this._tTime=c,!i&&this.parent&&we(this,"onRepeat"),this.vars.repeatRefresh&&!q&&(this.invalidate()._lock=1),a&&a!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,k&&(this._lock=2,a=x?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!q&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;fi(this,q)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=ro(this,ie(a),ie(m)),y&&(c-=m-(m=y._start))),this._tTime=c,this._time=m,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,a=0),!a&&c&&!i&&!b&&(we(this,"onStart"),this._tTime!==c))return this;if(m>=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||m>=p._start)&&p._ts&&y!==p){if(p.parent!==this)return this.render(n,i,o);if(p.render(p._ts>0?(m-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(m-p._start)*p._ts,i,o),m!==this._time||!this._ts&&!v){y=0,_&&(c+=this._zTime=-Y);break}}p=_}else{p=this._last;for(var R=n<0?n:m;p;){if(_=p._prev,(p._act||R<=p._end)&&p._ts&&y!==p){if(p.parent!==this)return this.render(n,i,o);if(p.render(p._ts>0?(R-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(R-p._start)*p._ts,i,o||ue&&jr(p)),m!==this._time||!this._ts&&!v){y=0,_&&(c+=this._zTime=R?-Y:Y);break}}p=_}}if(y&&!i&&(this.pause(),y.render(m>=a?0:-Y)._zTime=m>=a?1:-1,this._ts))return this._start=w,$t(this),this.render(n,i,o);this._onUpdate&&!i&&we(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(w===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((n||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ze(this,1),!i&&!(n<0&&!a)&&(c||a||!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,i){var o=this;if(De(i)||(i=Ce(this,i,n)),!(n instanceof Dt)){if(ce(n))return n.forEach(function(a){return o.add(a,i)}),this;if(le(n))return this.addLabel(n,i);if(te(n))n=se.delayedCall(0,n);else return this}return this!==n?Re(this,n,i):this},t.getChildren=function(n,i,o,a){n===void 0&&(n=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-ke);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof se?i&&l.push(u):(o&&l.push(u),n&&l.push.apply(l,u.getChildren(!0,i,o)))),u=u._next;return l},t.getById=function(n){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===n)return i[o]},t.remove=function(n){return le(n)?this.removeLabel(n):te(n)?this.killTweensOf(n):(n.parent===this&&Qt(this,n),n===this._recent&&(this._recent=this._last),Ke(this))},t.totalTime=function(n,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ie(Te.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),s.prototype.totalTime.call(this,n,i),this._forcing=0,this):this._tTime},t.addLabel=function(n,i){return this.labels[n]=Ce(this,i),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,i,o){var a=se.delayedCall(0,i||Pt,o);return a.data="isPause",this._hasPause=1,Re(this,a,Ce(this,n))},t.removePause=function(n){var i=this._first;for(n=Ce(this,n);i;)i._start===n&&i.data==="isPause"&&Ze(i),i=i._next},t.killTweensOf=function(n,i,o){for(var a=this.getTweensOf(n,o),l=a.length;l--;)Ue!==a[l]&&a[l].kill(n,i);return this},t.getTweensOf=function(n,i){for(var o=[],a=Se(n),l=this._first,u=De(i),c;l;)l instanceof se?Xs(l._targets,a)&&(u?(!Ue||l._initted&&l._ts)&&l.globalTime(0)<=i&&l.globalTime(l.totalDuration())>i:!i||l.isActive())&&o.push(l):(c=l.getTweensOf(a,i)).length&&o.push.apply(o,c),l=l._next;return o},t.tweenTo=function(n,i){i=i||{};var o=this,a=Ce(o,n),l=i,u=l.startAt,c=l.onStart,f=l.onStartParams,m=l.immediateRender,p,_=se.to(o,ye({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||Y,onStart:function(){if(o.pause(),!p){var g=i.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());_._dur!==g&&pt(_,g,0,1).render(_._time,!0,!0),p=1}c&&c.apply(_,f||[])}},i));return m?_.render(0):_},t.tweenFromTo=function(n,i,o){return this.tweenTo(i,ye({startAt:{time:Ce(this,n)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),ii(this,Ce(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),ii(this,Ce(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Y)},t.shiftChildren=function(n,i,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,u;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(i)for(u in l)l[u]>=o&&(l[u]+=n);return Ke(this)},t.invalidate=function(n){var i=this._first;for(this._lock=0;i;)i.invalidate(n),i=i._next;return s.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),Ke(this)},t.totalDuration=function(n){var i=0,o=this,a=o._last,l=ke,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(f=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Re(o,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(i-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),a._end>i&&a._ts&&(i=a._end),a=u;pt(o,o===K&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(n){if(K._ts&&(Zn(K,Kt(n,K)),Ln=Te.frame),Te.frame>=zn){zn+=xe.autoSleep||120;var i=K._first;if((!i||!i._ts)&&xe.autoSleep&&Te._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Te.sleep()}}},e})(Dt);ye(fe.prototype,{_lock:0,_hasPause:0,_forcing:0});var vo=function(e,t,r,n,i,o,a){var l=new pe(this._pt,e,t,0,1,bi,null,i),u=0,c=0,f,m,p,_,d,g,v,y;for(l.b=r,l.e=n,r+="",n+="",(v=~n.indexOf("random("))&&(n=At(n)),o&&(y=[r,n],o(y,e,t),r=y[0],n=y[1]),m=r.match(yr)||[];f=yr.exec(n);)_=f[0],d=n.substring(u,f.index),p?p=(p+1)%5:d.substr(-5)==="rgba("&&(p=1),_!==m[c++]&&(g=parseFloat(m[c-1])||0,l._pt={_next:l._pt,p:d||c===1?d:",",s:g,c:_.charAt(1)==="="?ft(g,_)-g:parseFloat(_)-g,m:p&&p<4?Math.round:0},u=yr.lastIndex);return l.c=u<n.length?n.substring(u,n.length):"",l.fp=a,(En.test(n)||v)&&(l.e=0),this._pt=l,l},zr=function(e,t,r,n,i,o,a,l,u,c){te(n)&&(n=n(i||0,e,o));var f=e[t],m=r!=="get"?r:te(f)?u?e[t.indexOf("set")||!te(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():f,p=te(f)?u?ko:xi:Br,_;if(le(n)&&(~n.indexOf("random(")&&(n=At(n)),n.charAt(1)==="="&&(_=ft(m,n)+(de(m)||0),(_||_===0)&&(n=_))),!c||m!==n||Fr)return!isNaN(m*n)&&n!==""?(_=new pe(this._pt,e,t,+m||0,n-(m||0),typeof f=="boolean"?So:vi,0,p),u&&(_.fp=u),a&&_.modifier(a,this,e),this._pt=_):(!f&&!(t in e)&&kr(t,n),vo.call(this,e,t,m,n,p,l||xe.stringFilter,u))},bo=function(e,t,r,n,i){if(te(e)&&(e=It(e,i,t,r,n)),!Oe(e)||e.style&&e.nodeType||ce(e)||Rn(e))return le(e)?It(e,i,t,r,n):e;var o={},a;for(a in e)o[a]=It(e[a],i,t,r,n);return o},pi=function(e,t,r,n,i,o){var a,l,u,c;if(be[e]&&(a=new be[e]).init(i,a.rawVars?t[e]:bo(t[e],n,i,o,r),r,n,o)!==!1&&(r._pt=l=new pe(r._pt,i,e,0,1,a.render,a,0,a.priority),r!==_t))for(u=r._ptLookup[r._targets.indexOf(i)],c=a._props.length;c--;)u[a._props[c]]=l;return a},Ue,Fr,Zr=function s(e,t,r){var n=e.vars,i=n.ease,o=n.startAt,a=n.immediateRender,l=n.lazy,u=n.onUpdate,c=n.runBackwards,f=n.yoyoEase,m=n.keyframes,p=n.autoRevert,_=e._dur,d=e._startAt,g=e._targets,v=e.parent,y=v&&v.data==="nested"?v.vars.targets:g,T=e._overwrite==="auto"&&!_r,w=e.timeline,b,S,q,x,k,R,z,M,A,D,U,F,G;if(w&&(!m||!i)&&(i="none"),e._ease=$e(i,ct.ease),e._yEase=f?di($e(f===!0?i:f,ct.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!w&&!!n.runBackwards,!w||m&&!n.stagger){if(M=g[0]?Qe(g[0]).harness:0,F=M&&n[M.prop],b=Jt(n,Cr),d&&(d._zTime<0&&d.progress(1),t<0&&c&&a&&!p?d.render(-1,!0):d.revert(c&&_?Yt:Ys),d._lazy=0),o){if(Ze(e._startAt=se.set(g,ye({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!d&&he(l),startAt:null,delay:0,onUpdate:u&&function(){return we(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ue||!a&&!p)&&e._startAt.revert(Yt),a&&_&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(c&&_&&!d){if(t&&(a=!1),q=ye({overwrite:!1,data:"isFromStart",lazy:a&&!d&&he(l),immediateRender:a,stagger:0,parent:v},b),F&&(q[M.prop]=F),Ze(e._startAt=se.set(g,q)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(ue?e._startAt.revert(Yt):e._startAt.render(-1,!0)),e._zTime=t,!a)s(e._startAt,Y,Y);else if(!t)return}for(e._pt=e._ptCache=0,l=_&&he(l)||l&&!_,S=0;S<g.length;S++){if(k=g[S],z=k._gsap||Or(g)[S]._gsap,e._ptLookup[S]=D={},Sr[z.id]&&Fe.length&&Xt(),U=y===g?S:y.indexOf(k),M&&(A=new M).init(k,F||b,e,U,y)!==!1&&(e._pt=x=new pe(e._pt,k,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(j){D[j]=x}),A.priority&&(R=1)),!M||F)for(q in b)be[q]&&(A=pi(q,b,e,U,k,y))?A.priority&&(R=1):D[q]=x=zr.call(e,k,q,"get",b[q],U,y,0,n.stringFilter);e._op&&e._op[S]&&e.kill(k,e._op[S]),T&&e._pt&&(Ue=e,K.killTweensOf(k,D,e.globalTime(t)),G=!e.parent,Ue=0),e._pt&&l&&(Sr[z.id]=1)}R&&yi(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!G,m&&t<=0&&w.render(ke,!0,!0)},yo=function(e,t,r,n,i,o,a,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,f,m,p;if(!u)for(u=e._ptCache[t]=[],m=e._ptLookup,p=e._targets.length;p--;){if(c=m[p][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 Fr=1,e.vars[t]="+=0",Zr(e,a),Fr=0,l?qt(t+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(n||n===0)&&!i?n:c.s+(n||0)+o*c.c,c.c=r-c.s,f.e&&(f.e=ne(r)+de(f.e)),f.b&&(f.b=c.s+de(f.b))},wo=function(e,t){var r=e[0]?Qe(e[0]).harness:0,n=r&&r.aliases,i,o,a,l;if(!n)return t;i=ht({},t);for(o in n)if(o in i)for(l=n[o].split(","),a=l.length;a--;)i[l[a]]=i[o];return i},To=function(e,t,r,n){var i=t.ease||n||"power1.inOut",o,a;if(ce(t))a=r[e]||(r[e]=[]),t.forEach(function(l,u){return a.push({t:u/(t.length-1)*100,v:l,e:i})});else for(o in t)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:t[o],e:i})},It=function(e,t,r,n,i){return te(e)?e.call(t,r,n,i):le(e)&&~e.indexOf("random(")?At(e):e},_i=Pr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",gi={};me(_i+",id,stagger,delay,duration,paused,scrollTrigger",function(s){return gi[s]=1});var se=(function(s){On(e,s);function e(r,n,i,o){var a;typeof n=="number"&&(i.duration=n,n=i,i=null),a=s.call(this,o?n:Ot(n))||this;var l=a.vars,u=l.duration,c=l.delay,f=l.immediateRender,m=l.stagger,p=l.overwrite,_=l.keyframes,d=l.defaults,g=l.scrollTrigger,v=l.yoyoEase,y=n.parent||K,T=(ce(r)||Rn(r)?De(r[0]):"length"in n)?[r]:Se(r),w,b,S,q,x,k,R,z;if(a._targets=T.length?Or(T):qt("GSAP target "+r+" not found. https://gsap.com",!xe.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=p,_||m||Ht(u)||Ht(c)){if(n=a.vars,w=a.timeline=new fe({data:"nested",defaults:d||{},targets:y&&y.data==="nested"?y.vars.targets:T}),w.kill(),w.parent=w._dp=Ne(a),w._start=0,m||Ht(u)||Ht(c)){if(q=T.length,R=m&&$n(m),Oe(m))for(x in m)~_i.indexOf(x)&&(z||(z={}),z[x]=m[x]);for(b=0;b<q;b++)S=Jt(n,gi),S.stagger=0,v&&(S.yoyoEase=v),z&&ht(S,z),k=T[b],S.duration=+It(u,Ne(a),b,k,T),S.delay=(+It(c,Ne(a),b,k,T)||0)-a._delay,!m&&q===1&&S.delay&&(a._delay=c=S.delay,a._start+=c,S.delay=0),w.to(k,S,R?R(b,k,T):0),w._ease=L.none;w.duration()?u=c=0:a.timeline=0}else if(_){Ot(ye(w.vars.defaults,{ease:"none"})),w._ease=$e(_.ease||n.ease||"none");var M=0,A,D,U;if(ce(_))_.forEach(function(F){return w.to(T,F,">")}),w.duration();else{S={};for(x in _)x==="ease"||x==="easeEach"||To(x,_[x],S,_.easeEach);for(x in S)for(A=S[x].sort(function(F,G){return F.t-G.t}),M=0,b=0;b<A.length;b++)D=A[b],U={ease:D.e,duration:(D.t-(b?A[b-1].t:0))/100*u},U[x]=D.v,w.to(T,U,M),M+=U.duration;w.duration()<u&&w.to({},{duration:u-w.duration()})}}u||a.duration(u=w.duration())}else a.timeline=0;return p===!0&&!_r&&(Ue=Ne(a),K.killTweensOf(T),Ue=0),Re(y,Ne(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(f||!u&&!_&&a._start===ie(y._time)&&he(f)&&$s(Ne(a))&&y.data!=="nested")&&(a._tTime=-Y,a.render(Math.max(0,-c)||0)),g&&Wn(Ne(a),g),a}var t=e.prototype;return t.render=function(n,i,o){var a=this._time,l=this._tDur,u=this._dur,c=n<0,f=n>l-Y&&!c?l:n<Y?0:n,m,p,_,d,g,v,y,T,w;if(!u)to(this,n,i,o);else if(f!==this._tTime||!n||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(m=f,T=this.timeline,this._repeat){if(d=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(d*100+n,i,o);if(m=ie(f%d),f===l?(_=this._repeat,m=u):(g=ie(f/d),_=~~g,_&&_===g?(m=u,_--):m>u&&(m=u)),v=this._yoyo&&_&1,v&&(w=this._yEase,m=u-m),g=mt(this._tTime,d),m===a&&!o&&this._initted&&_===g)return this._tTime=f,this;_!==g&&(T&&this._yEase&&fi(T,v),this.vars.repeatRefresh&&!v&&!this._lock&&m!==d&&this._initted&&(this._lock=o=1,this.render(ie(d*_),!0).invalidate()._lock=0))}if(!this._initted){if(Xn(this,c?n:m,o,i,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(n,i,o)}if(this._tTime=f,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(w||this._ease)(m/u),this._from&&(this.ratio=y=1-y),!a&&f&&!i&&!g&&(we(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(y,p.d),p=p._next;T&&T.render(n<0?n:T._dur*T._ease(m/this._dur),i,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!i&&(c&&Rr(this,n,i,o),we(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!i&&this.parent&&we(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Rr(this,n,!0,!0),(n||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Ze(this,1),!i&&!(c&&!a)&&(f||a||v)&&(we(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<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),s.prototype.invalidate.call(this,n)},t.resetTo=function(n,i,o,a,l){Nt||Te.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Zr(this,u),c=this._ease(u/this._dur),yo(this,n,i,o,a,c,u,l)?this.resetTo(n,i,o,a,1):(er(this,0),this.parent||Hn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,i){if(i===void 0&&(i="all"),!n&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Et(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ue),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,i,Ue&&Ue.vars.overwrite!==!0)._first||Et(this),this.parent&&o!==this.timeline.totalDuration()&&pt(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=n?Se(n):a,u=this._ptLookup,c=this._pt,f,m,p,_,d,g,v;if((!i||i==="all")&&Qs(a,l))return i==="all"&&(this._pt=0),Et(this);for(f=this._op=this._op||[],i!=="all"&&(le(i)&&(d={},me(i,function(y){return d[y]=1}),i=d),i=wo(a,i)),v=a.length;v--;)if(~l.indexOf(a[v])){m=u[v],i==="all"?(f[v]=i,_=m,p={}):(p=f[v]=f[v]||{},_=i);for(d in _)g=m&&m[d],g&&((!("kill"in g.d)||g.d.kill(d)===!0)&&Qt(this,g,"_pt"),delete m[d]),p!=="all"&&(p[d]=1)}return this._initted&&!this._pt&&c&&Et(this),this},e.to=function(n,i){return new e(n,i,arguments[2])},e.from=function(n,i){return jt(1,arguments)},e.delayedCall=function(n,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(n,i,o){return jt(2,arguments)},e.set=function(n,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(n,i)},e.killTweensOf=function(n,i,o){return K.killTweensOf(n,i,o)},e})(Dt);ye(se.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),me("staggerTo,staggerFrom,staggerFromTo",function(s){se[s]=function(){var e=new fe,t=Er.call(arguments,0);return t.splice(s==="staggerFromTo"?5:4,0,0),e[s].apply(e,t)}});var Br=function(e,t,r){return e[t]=r},xi=function(e,t,r){return e[t](r)},ko=function(e,t,r,n){return e[t](n.fp,r)},Co=function(e,t,r){return e.setAttribute(t,r)},Vr=function(e,t){return te(e[t])?xi:xr(e[t])&&e.setAttribute?Co:Br},vi=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},So=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},bi=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)},Ur=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},qo=function(e,t,r,n){for(var i=this._pt,o;i;)o=i._next,i.p===n&&i.modifier(e,t,r),i=o},Po=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},Oo=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},yi=function(e){for(var t=e._pt,r,n,i,o;t;){for(r=t._next,n=i;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:o)?t._prev._next=t:i=t,(t._next=n)?n._prev=t:o=t,t=r}e._pt=i},pe=(function(){function s(t,r,n,i,o,a,l,u,c){this.t=r,this.s=i,this.c=o,this.p=n,this.r=a||vi,this.d=l||this,this.set=u||Br,this.pr=c||0,this._next=t,t&&(t._prev=this)}var e=s.prototype;return e.modifier=function(r,n,i){this.mSet=this.mSet||this.set,this.set=Oo,this.m=r,this.mt=i,this.tween=n},s})();me(Pr+"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(s){return Cr[s]=1}),ve.TweenMax=ve.TweenLite=se,ve.TimelineLite=ve.TimelineMax=fe,K=new fe({sortChildren:!1,defaults:ct,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),xe.stringFilter=ci;var tt=[],tr={},jo=[],wi=0,Ro=0,Hr=function(e){return(tr[e]||jo).map(function(t){return t()})},Gr=function(){var e=Date.now(),t=[];e-wi>2&&(Hr("matchMediaInit"),tt.forEach(function(r){var n=r.queries,i=r.conditions,o,a,l,u;for(a in n)o=je.matchMedia(n[a]).matches,o&&(l=1),o!==i[a]&&(i[a]=o,u=1);u&&(r.revert(),l&&t.push(r))}),Hr("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),wi=e,Hr("matchMedia"))},Ti=(function(){function s(t,r){this.selector=r&&Mr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Ro++,t&&this.add(t)}var e=s.prototype;return e.add=function(r,n,i){te(r)&&(i=n,n=r,r=te);var o=this,a=function(){var u=Q,c=o.selector,f;return u&&u!==o&&u.data.push(o),i&&(o.selector=Mr(i)),Q=o,f=n.apply(o,arguments),te(f)&&o._r.push(f),Q=u,o.selector=c,o.isReverted=!1,f};return o.last=a,r===te?a(o,function(l){return o.add(null,l)}):r?o[r]=a:a},e.ignore=function(r){var n=Q;Q=null,r(this),Q=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof s?r.push.apply(r,n.getTweens()):n instanceof se&&!(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 i=this;if(r?(function(){for(var a=i.getTweens(),l=i.data.length,u;l--;)u=i.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.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,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=i.data.length;l--;)u=i.data[l],u instanceof fe?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof se)&&u.revert&&u.revert(r);i._r.forEach(function(c){return c(r,i)}),i.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=tt.length;o--;)tt[o].id===this.id&&tt.splice(o,1)},e.revert=function(r){this.kill(r||{})},s})(),Ao=(function(){function s(t){this.contexts=[],this.scope=t,Q&&Q.data.push(this)}var e=s.prototype;return e.add=function(r,n,i){Oe(r)||(r={matches:r});var o=new Ti(0,i||this.scope),a=o.conditions={},l,u,c;Q&&!o.selector&&(o.selector=Q.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=r;for(u in r)u==="all"?c=1:(l=je.matchMedia(r[u]),l&&(tt.indexOf(o)<0&&tt.push(o),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(Gr):l.addEventListener("change",Gr)));return c&&n(o,function(f){return o.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},s})(),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 oi(n)})},timeline:function(e){return new fe(e)},getTweensOf:function(e,t){return K.getTweensOf(e,t)},getProperty:function(e,t,r,n){le(e)&&(e=Se(e)[0]);var i=Qe(e||{}).get,o=r?Vn:Bn;return r==="native"&&(r=""),e&&(t?o((be[t]&&be[t].get||i)(e,t,r,n)):function(a,l,u){return o((be[a]&&be[a].get||i)(e,a,l,u))})},quickSetter:function(e,t,r){if(e=Se(e),e.length>1){var n=e.map(function(c){return _e.quickSetter(c,t,r)}),i=n.length;return function(c){for(var f=i;f--;)n[f](c)}}e=e[0]||{};var o=be[t],a=Qe(e),l=a.harness&&(a.harness.aliases||{})[t]||t,u=o?function(c){var f=new o;_t._pt=0,f.init(e,r?c+r:c,_t,0,[e]),f.render(1,f),_t._pt&&Ur(1,_t)}:a.set(e,l);return o?u:function(c){return u(e,l,r?c+r:c,a,1)}},quickTo:function(e,t,r){var n,i=_e.to(e,ye((n={},n[t]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),o=function(l,u,c){return i.resetTo(t,l,u,c)};return o.tween=i,o},isTweening:function(e){return K.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=$e(e.ease,ct.ease)),Un(ct,e||{})},config:function(e){return Un(xe,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,o=e.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!be[a]&&!ve[a]&&qt(t+" effect requires "+a+" plugin.")}),qr[t]=function(a,l,u){return r(Se(a),ye(l||{},i),u)},o&&(fe.prototype[t]=function(a,l,u){return this.add(qr[t](a,Oe(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){L[e]=$e(t)},parseEase:function(e,t){return arguments.length?$e(e,t):L},getById:function(e){return K.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new fe(e),n,i;for(r.smoothChildTiming=he(e.smoothChildTiming),K.remove(r),r._dp=0,r._time=r._tTime=K._time,n=K._first;n;)i=n._next,(t||!(!n._dur&&n instanceof se&&n.vars.onComplete===n._targets[0]))&&Re(r,n,n._start-n._delay),n=i;return Re(K,r,0),r},context:function(e,t){return e?new Ti(e,t):Q},matchMedia:function(e){return new Ao(e)},matchMediaRefresh:function(){return tt.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Gr()},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:uo,wrapYoyo:co,distribute:$n,random:ti,snap:ei,normalize:lo,getUnit:de,clamp:io,splitColor:ai,toArray:Se,selector:Mr,mapRange:ni,pipe:oo,unitize:ao,interpolate:fo,shuffle:Kn},install:Dn,effects:qr,ticker:Te,updateRoot:fe.updateRoot,plugins:be,globalTimeline:K,core:{PropTween:pe,globals:In,Tween:se,Timeline:fe,Animation:Dt,getCache:Qe,_removeLinkedListItem:Qt,reverting:function(){return ue},context:function(e){return e&&Q&&(Q.data.push(e),e._ctx=Q),Q},suppressOverwrites:function(e){return _r=e}}};me("to,from,fromTo,delayedCall,set,killTweensOf",function(s){return rr[s]=se[s]}),Te.add(fe.updateRoot),_t=rr.to({},{duration:0});var Eo=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},Mo=function(e,t){var r=e._targets,n,i,o;for(n in t)for(i=r.length;i--;)o=e._ptLookup[i][n],o&&(o=o.d)&&(o._pt&&(o=Eo(o,n)),o&&o.modifier&&o.modifier(t[n],e,r[i],n))},Yr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(n,i,o){o._onInit=function(a){var l,u;if(le(i)&&(l={},me(i,function(c){return l[c]=1}),i=l),t){l={};for(u in i)l[u]=t(i[u]);i=l}Mo(a,i)}}}},_e=rr.registerPlugin({name:"attr",init:function(e,t,r,n,i){var o,a,l;this.tween=r;for(o in t)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",t[o],n,i,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,t){for(var r=t._pt;r;)ue?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)}},Yr("roundProps",Nr),Yr("modifiers"),Yr("snap",ei))||rr;se.version=fe.version=_e.version="3.13.0",Nn=1,vr()&>(),L.Power0,L.Power1,L.Power2,L.Power3,L.Power4,L.Linear,L.Quad,L.Cubic,L.Quart,L.Quint,L.Strong,L.Elastic,L.Back,L.SteppedEase,L.Bounce,L.Sine,L.Expo,L.Circ;/*!
|
|
31
|
+
* CSSPlugin 3.13.0
|
|
32
|
+
* https://gsap.com
|
|
33
|
+
*
|
|
34
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
35
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
36
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
37
|
+
*/var ki,He,xt,Wr,rt,Ci,Xr,No=function(){return typeof window<"u"},Ie={},nt=180/Math.PI,vt=Math.PI/180,bt=Math.atan2,Si=1e8,Jr=/([A-Z])/g,Do=/(left|right|width|margin|padding|x)/i,Io=/[\s,\(]\S/,Ae={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Lo=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)},zo=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)},Fo=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},qi=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Pi=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},Zo=function(e,t,r){return e.style[t]=r},Bo=function(e,t,r){return e.style.setProperty(t,r)},Vo=function(e,t,r){return e._gsap[t]=r},Uo=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Ho=function(e,t,r,n,i){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},Go=function(e,t,r,n,i){var o=e._gsap;o[t]=r,o.renderTransform(i,o)},$="transform",ge=$+"Origin",Yo=function s(e,t){var r=this,n=this.target,i=n.style,o=n._gsap;if(e in Ie&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Ae[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Le(n,a)}):this.tfm[e]=o.x?o[e]:Le(n,e),e===ge&&(this.tfm.zOrigin=o.zOrigin);else return Ae.transform.split(",").forEach(function(a){return s.call(r,a,t)});if(this.props.indexOf($)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=$}(i||t)&&this.props.push(e,t,i[e])},Oi=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Wo=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,i,o;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?r[e[i]]=e[i+2]:r.removeProperty(e[i].substr(0,2)==="--"?e[i]:e[i].replace(Jr,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)n[o]=this.tfm[o];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),i=Xr(),(!i||!i.isStart)&&!r[$]&&(Oi(r),n.zOrigin&&r[ge]&&(r[ge]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},ji=function(e,t){var r={target:e,props:[],revert:Wo,save:Yo};return e._gsap||_e.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},Ri,Kr=function(e,t){var r=He.createElementNS?He.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):He.createElement(e);return r&&r.style?r:He.createElement(e)},qe=function s(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(Jr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&s(e,yt(t)||t,1)||""},Ai="O,Moz,ms,Ms,Webkit".split(","),yt=function(e,t,r){var n=t||rt,i=n.style,o=5;if(e in i&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Ai[o]+e in i););return o<0?null:(o===3?"ms":o>=0?Ai[o]:"")+e},$r=function(){No()&&window.document&&(ki=window,He=ki.document,xt=He.documentElement,rt=Kr("div")||{style:{}},Kr("div"),$=yt($),ge=$+"Origin",rt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ri=!!yt("perspective"),Xr=_e.core.reverting,Wr=1)},Ei=function(e){var t=e.ownerSVGElement,r=Kr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),i;n.style.display="block",r.appendChild(n),xt.appendChild(r);try{i=n.getBBox()}catch{}return r.removeChild(n),xt.removeChild(r),i},Mi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Ni=function(e){var t,r;try{t=e.getBBox()}catch{t=Ei(e),r=1}return t&&(t.width||t.height)||r||(t=Ei(e)),t&&!t.width&&!t.x&&!t.y?{x:+Mi(e,["x","cx","x1"])||0,y:+Mi(e,["y","cy","y1"])||0,width:0,height:0}:t},Di=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Ni(e))},it=function(e,t){if(t){var r=e.style,n;t in Ie&&t!==ge&&(t=$),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(Jr,"-$1").toLowerCase())):r.removeAttribute(t)}},Ge=function(e,t,r,n,i,o){var a=new pe(e._pt,t,r,0,1,o?Pi:qi);return e._pt=a,a.b=n,a.e=i,e._props.push(r),a},Ii={deg:1,rad:1,turn:1},Xo={grid:1,flex:1},Ye=function s(e,t,r,n){var i=parseFloat(r)||0,o=(r+"").trim().substr((i+"").length)||"px",a=rt.style,l=Do.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,m=n==="px",p=n==="%",_,d,g,v;if(n===o||!i||Ii[n]||Ii[o])return i;if(o!=="px"&&!m&&(i=s(e,t,r,"px")),v=e.getCTM&&Di(e),(p||o==="%")&&(Ie[t]||~t.indexOf("adius")))return _=v?e.getBBox()[l?"width":"height"]:e[c],ne(p?i/_*f:i/100*_);if(a[l?"width":"height"]=f+(m?o:n),d=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,v&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===He||!d.appendChild)&&(d=He.body),g=d._gsap,g&&p&&g.width&&l&&g.time===Te.time&&!g.uncache)return ne(i/g.width*f);if(p&&(t==="height"||t==="width")){var y=e.style[t];e.style[t]=f+n,_=e[c],y?e.style[t]=y:it(e,t)}else(p||o==="%")&&!Xo[qe(d,"display")]&&(a.position=qe(e,"position")),d===e&&(a.position="static"),d.appendChild(rt),_=rt[c],d.removeChild(rt),a.position="absolute";return l&&p&&(g=Qe(d),g.time=Te.time,g.width=d[c]),ne(m?_*i/f:_&&i?f/_*i:0)},Le=function(e,t,r,n){var i;return Wr||$r(),t in Ae&&t!=="transform"&&(t=Ae[t],~t.indexOf(",")&&(t=t.split(",")[0])),Ie[t]&&t!=="transform"?(i=zt(e,n),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:ir(qe(e,ge))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||n||~(i+"").indexOf("calc("))&&(i=nr[t]&&nr[t](e,t,r)||qe(e,t)||Fn(e,t)||(t==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?Ye(e,t,i,r)+r:i},Jo=function(e,t,r,n){if(!r||r==="none"){var i=yt(t,e,1),o=i&&qe(e,i,1);o&&o!==r?(t=i,r=o):t==="borderColor"&&(r=qe(e,"borderTopColor"))}var a=new pe(this._pt,e.style,t,0,1,bi),l=0,u=0,c,f,m,p,_,d,g,v,y,T,w,b;if(a.b=r,a.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=qe(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(d=e.style[t],e.style[t]=n,n=qe(e,t)||n,d?e.style[t]=d:it(e,t)),c=[r,n],ci(c),r=c[0],n=c[1],m=r.match(dt)||[],b=n.match(dt)||[],b.length){for(;f=dt.exec(n);)g=f[0],y=n.substring(l,f.index),_?_=(_+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(_=1),g!==(d=m[u++]||"")&&(p=parseFloat(d)||0,w=d.substr((p+"").length),g.charAt(1)==="="&&(g=ft(p,g)+w),v=parseFloat(g),T=g.substr((v+"").length),l=dt.lastIndex-T.length,T||(T=T||xe.units[t]||w,l===n.length&&(n+=T,a.e+=T)),w!==T&&(p=Ye(e,t,d,T)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:p,c:v-p,m:_&&_<4||t==="zIndex"?Math.round:0});a.c=l<n.length?n.substring(l,n.length):""}else a.r=t==="display"&&n==="none"?Pi:qi;return En.test(n)&&(a.e=0),this._pt=a,a},Li={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Qo=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]=Li[r]||r,t[1]=Li[n]||n,t.join(" ")},Ko=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,i=t.u,o=r._gsap,a,l,u;if(i==="all"||i===!0)n.cssText="",l=1;else for(i=i.split(","),u=i.length;--u>-1;)a=i[u],Ie[a]&&(l=1,a=a==="transformOrigin"?ge:$),it(r,a);l&&(it(r,$),o&&(o.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",zt(r,1),o.uncache=1,Oi(n)))}},nr={clearProps:function(e,t,r,n,i){if(i.data!=="isFromStart"){var o=e._pt=new pe(e._pt,t,r,0,0,Ko);return o.u=n,o.pr=-10,o.tween=i,e._props.push(r),1}}},Lt=[1,0,0,1,0,0],zi={},Fi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Zi=function(e){var t=qe(e,$);return Fi(t)?Lt:t.substr(7).match(An).map(ne)},en=function(e,t){var r=e._gsap||Qe(e),n=e.style,i=Zi(e),o,a,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,i=[l.a,l.b,l.c,l.d,l.e,l.f],i.join(",")==="1,0,0,1,0,0"?Lt:i):(i===Lt&&!e.offsetParent&&e!==xt&&!r.svg&&(l=n.display,n.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,xt.appendChild(e)),i=Zi(e),l?n.display=l:it(e,"display"),u&&(a?o.insertBefore(e,a):o?o.appendChild(e):xt.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},tn=function(e,t,r,n,i,o){var a=e._gsap,l=i||en(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,m=a.yOffset||0,p=l[0],_=l[1],d=l[2],g=l[3],v=l[4],y=l[5],T=t.split(" "),w=parseFloat(T[0])||0,b=parseFloat(T[1])||0,S,q,x,k;r?l!==Lt&&(q=p*g-_*d)&&(x=w*(g/q)+b*(-d/q)+(d*y-g*v)/q,k=w*(-_/q)+b*(p/q)-(p*y-_*v)/q,w=x,b=k):(S=Ni(e),w=S.x+(~T[0].indexOf("%")?w/100*S.width:w),b=S.y+(~(T[1]||T[0]).indexOf("%")?b/100*S.height:b)),n||n!==!1&&a.smooth?(v=w-u,y=b-c,a.xOffset=f+(v*p+y*d)-v,a.yOffset=m+(v*_+y*g)-y):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=b,a.smooth=!!n,a.origin=t,a.originIsAbsolute=!!r,e.style[ge]="0px 0px",o&&(Ge(o,a,"xOrigin",u,w),Ge(o,a,"yOrigin",c,b),Ge(o,a,"xOffset",f,a.xOffset),Ge(o,a,"yOffset",m,a.yOffset)),e.setAttribute("data-svg-origin",w+" "+b)},zt=function(e,t){var r=e._gsap||new mi(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,i=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),u=qe(e,ge)||"0",c,f,m,p,_,d,g,v,y,T,w,b,S,q,x,k,R,z,M,A,D,U,F,G,j,Ee,C,E,Z,B,H,ee;return c=f=m=d=g=v=y=T=w=0,p=_=1,r.svg=!!(e.getCTM&&Di(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[$]=(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[$]!=="none"?l[$]:"")),n.scale=n.rotate=n.translate="none"),q=en(e,r.svg),r.svg&&(r.uncache?(j=e.getBBox(),u=r.xOrigin-j.x+"px "+(r.yOrigin-j.y)+"px",G=""):G=!t&&e.getAttribute("data-svg-origin"),tn(e,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,q)),b=r.xOrigin||0,S=r.yOrigin||0,q!==Lt&&(z=q[0],M=q[1],A=q[2],D=q[3],c=U=q[4],f=F=q[5],q.length===6?(p=Math.sqrt(z*z+M*M),_=Math.sqrt(D*D+A*A),d=z||M?bt(M,z)*nt:0,y=A||D?bt(A,D)*nt+d:0,y&&(_*=Math.abs(Math.cos(y*vt))),r.svg&&(c-=b-(b*z+S*A),f-=S-(b*M+S*D))):(ee=q[6],B=q[7],C=q[8],E=q[9],Z=q[10],H=q[11],c=q[12],f=q[13],m=q[14],x=bt(ee,Z),g=x*nt,x&&(k=Math.cos(-x),R=Math.sin(-x),G=U*k+C*R,j=F*k+E*R,Ee=ee*k+Z*R,C=U*-R+C*k,E=F*-R+E*k,Z=ee*-R+Z*k,H=B*-R+H*k,U=G,F=j,ee=Ee),x=bt(-A,Z),v=x*nt,x&&(k=Math.cos(-x),R=Math.sin(-x),G=z*k-C*R,j=M*k-E*R,Ee=A*k-Z*R,H=D*R+H*k,z=G,M=j,A=Ee),x=bt(M,z),d=x*nt,x&&(k=Math.cos(x),R=Math.sin(x),G=z*k+M*R,j=U*k+F*R,M=M*k-z*R,F=F*k-U*R,z=G,U=j),g&&Math.abs(g)+Math.abs(d)>359.9&&(g=d=0,v=180-v),p=ne(Math.sqrt(z*z+M*M+A*A)),_=ne(Math.sqrt(F*F+ee*ee)),x=bt(U,F),y=Math.abs(x)>2e-4?x*nt:0,w=H?1/(H<0?-H:H):0),r.svg&&(G=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Fi(qe(e,$)),G&&e.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(i?(p*=-1,y+=d<=0?180:-180,d+=d<=0?180:-180):(_*=-1,y+=y<=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)+o,r.y=f-((r.yPercent=f&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=m+o,r.scaleX=ne(p),r.scaleY=ne(_),r.rotation=ne(d)+a,r.rotationX=ne(g)+a,r.rotationY=ne(v)+a,r.skewX=y+a,r.skewY=T+a,r.transformPerspective=w+o,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[ge]=ir(u)),r.xOffset=r.yOffset=0,r.force3D=xe.force3D,r.renderTransform=r.svg?ea:Ri?Bi:$o,r.uncache=0,r},ir=function(e){return(e=e.split(" "))[0]+" "+e[1]},rn=function(e,t,r){var n=de(t);return ne(parseFloat(t)+parseFloat(Ye(e,"x",r+"px",n)))+n},$o=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Bi(e,t)},st="0deg",Ft="0px",ot=") ",Bi=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,m=r.skewX,p=r.skewY,_=r.scaleX,d=r.scaleY,g=r.transformPerspective,v=r.force3D,y=r.target,T=r.zOrigin,w="",b=v==="auto"&&e&&e!==1||v===!0;if(T&&(f!==st||c!==st)){var S=parseFloat(c)*vt,q=Math.sin(S),x=Math.cos(S),k;S=parseFloat(f)*vt,k=Math.cos(S),o=rn(y,o,q*k*-T),a=rn(y,a,-Math.sin(S)*-T),l=rn(y,l,x*k*-T+T)}g!==Ft&&(w+="perspective("+g+ot),(n||i)&&(w+="translate("+n+"%, "+i+"%) "),(b||o!==Ft||a!==Ft||l!==Ft)&&(w+=l!==Ft||b?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+ot),u!==st&&(w+="rotate("+u+ot),c!==st&&(w+="rotateY("+c+ot),f!==st&&(w+="rotateX("+f+ot),(m!==st||p!==st)&&(w+="skew("+m+", "+p+ot),(_!==1||d!==1)&&(w+="scale("+_+", "+d+ot),y.style[$]=w||"translate(0, 0)"},ea=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,m=r.scaleY,p=r.target,_=r.xOrigin,d=r.yOrigin,g=r.xOffset,v=r.yOffset,y=r.forceCSS,T=parseFloat(o),w=parseFloat(a),b,S,q,x,k;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=vt,u*=vt,b=Math.cos(l)*f,S=Math.sin(l)*f,q=Math.sin(l-u)*-m,x=Math.cos(l-u)*m,u&&(c*=vt,k=Math.tan(u-c),k=Math.sqrt(1+k*k),q*=k,x*=k,c&&(k=Math.tan(c),k=Math.sqrt(1+k*k),b*=k,S*=k)),b=ne(b),S=ne(S),q=ne(q),x=ne(x)):(b=f,x=m,S=q=0),(T&&!~(o+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(T=Ye(p,"x",o,"px"),w=Ye(p,"y",a,"px")),(_||d||g||v)&&(T=ne(T+_-(_*b+d*q)+g),w=ne(w+d-(_*S+d*x)+v)),(n||i)&&(k=p.getBBox(),T=ne(T+n/100*k.width),w=ne(w+i/100*k.height)),k="matrix("+b+","+S+","+q+","+x+","+T+","+w+")",p.setAttribute("transform",k),y&&(p.style[$]=k)},ta=function(e,t,r,n,i){var o=360,a=le(i),l=parseFloat(i)*(a&&~i.indexOf("rad")?nt:1),u=l-n,c=n+u+"deg",f,m;return a&&(f=i.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Si)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Si)%o-~~(u/o)*o)),e._pt=m=new pe(e._pt,t,r,n,u,Lo),m.e=c,m.u="deg",e._props.push(r),m},Vi=function(e,t){for(var r in t)e[r]=t[r];return e},ra=function(e,t,r){var n=Vi({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,u,c,f,m,p,_;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[$]=t,a=zt(r,1),it(r,$),r.setAttribute("transform",u)):(u=getComputedStyle(r)[$],o[$]=t,a=zt(r,1),o[$]=u);for(l in Ie)u=n[l],c=a[l],u!==c&&i.indexOf(l)<0&&(p=de(u),_=de(c),f=p!==_?Ye(r,l,u,_):parseFloat(u),m=parseFloat(c),e._pt=new pe(e._pt,a,l,f,m-f,Qr),e._pt.u=_||0,e._props.push(l));Vi(a,n)};me("padding,margin,Width,Radius",function(s,e){var t="Top",r="Right",n="Bottom",i="Left",o=(e<3?[t,r,n,i]:[t+i,t+r,n+r,n+i]).map(function(a){return e<2?s+a:"border"+a+s});nr[e>1?"border"+s:s]=function(a,l,u,c,f){var m,p;if(arguments.length<4)return m=o.map(function(_){return Le(a,_,u)}),p=m.join(" "),p.split(m[0]).length===5?m[0]:p;m=(c+"").split(" "),p={},o.forEach(function(_,d){return p[_]=m[d]=m[d]||m[(d-1)/2|0]}),a.init(l,p,f)}});var Ui={name:"css",register:$r,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var o=this._props,a=e.style,l=r.vars.startAt,u,c,f,m,p,_,d,g,v,y,T,w,b,S,q,x;Wr||$r(),this.styles=this.styles||ji(e),x=this.styles.props,this.tween=r;for(d in t)if(d!=="autoRound"&&(c=t[d],!(be[d]&&pi(d,t,r,n,e,i)))){if(p=typeof c,_=nr[d],p==="function"&&(c=c.call(r,n,e,i),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=At(c)),_)_(this,e,d,c,r)&&(q=1);else if(d.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(d)+"").trim(),c+="",Ve.lastIndex=0,Ve.test(u)||(g=de(u),v=de(c)),v?g!==v&&(u=Ye(e,d,u,v)+v):g&&(c+=g),this.add(a,"setProperty",u,c,n,i,0,0,d),o.push(d),x.push(d,0,a[d]);else if(p!=="undefined"){if(l&&d in l?(u=typeof l[d]=="function"?l[d].call(r,n,e,i):l[d],le(u)&&~u.indexOf("random(")&&(u=At(u)),de(u+"")||u==="auto"||(u+=xe.units[d]||de(Le(e,d))||""),(u+"").charAt(1)==="="&&(u=Le(e,d))):u=Le(e,d),m=parseFloat(u),y=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),y&&(c=c.substr(2)),f=parseFloat(c),d in Ae&&(d==="autoAlpha"&&(m===1&&Le(e,"visibility")==="hidden"&&f&&(m=0),x.push("visibility",0,a.visibility),Ge(this,a,"visibility",m?"inherit":"hidden",f?"inherit":"hidden",!f)),d!=="scale"&&d!=="transform"&&(d=Ae[d],~d.indexOf(",")&&(d=d.split(",")[0]))),T=d in Ie,T){if(this.styles.save(d),p==="string"&&c.substring(0,6)==="var(--"&&(c=qe(e,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),w||(b=e._gsap,b.renderTransform&&!t.parseTransform||zt(e,t.parseTransform),S=t.smoothOrigin!==!1&&b.smooth,w=this._pt=new pe(this._pt,a,$,0,1,b.renderTransform,b,0,-1),w.dep=1),d==="scale")this._pt=new pe(this._pt,b,"scaleY",b.scaleY,(y?ft(b.scaleY,y+f):f)-b.scaleY||0,Qr),this._pt.u=0,o.push("scaleY",d),d+="X";else if(d==="transformOrigin"){x.push(ge,0,a[ge]),c=Qo(c),b.svg?tn(e,c,0,S,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==b.zOrigin&&Ge(this,b,"zOrigin",b.zOrigin,v),Ge(this,a,d,ir(u),ir(c)));continue}else if(d==="svgOrigin"){tn(e,c,1,S,0,this);continue}else if(d in zi){ta(this,b,d,m,y?ft(m,y+c):c);continue}else if(d==="smoothOrigin"){Ge(this,b,"smooth",b.smooth,c);continue}else if(d==="force3D"){b[d]=c;continue}else if(d==="transform"){ra(this,c,e);continue}}else d in a||(d=yt(d)||d);if(T||(f||f===0)&&(m||m===0)&&!Io.test(c)&&d in a)g=(u+"").substr((m+"").length),f||(f=0),v=de(c)||(d in xe.units?xe.units[d]:g),g!==v&&(m=Ye(e,d,u,v)),this._pt=new pe(this._pt,T?b:a,d,m,(y?ft(m,y+f):f)-m,!T&&(v==="px"||d==="zIndex")&&t.autoRound!==!1?Fo:Qr),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=zo);else if(d in a)Jo.call(this,e,d,u,y?y+c:c);else if(d in e)this.add(e,d,u||e[d],y?y+c:c,n,i);else if(d!=="parseTransform"){kr(d,c);continue}T||(d in a?x.push(d,0,a[d]):typeof e[d]=="function"?x.push(d,2,e[d]()):x.push(d,1,u||e[d])),o.push(d)}}q&&yi(this)},render:function(e,t){if(t.tween._time||!Xr())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Le,aliases:Ae,getSetter:function(e,t,r){var n=Ae[t];return n&&n.indexOf(",")<0&&(t=n),t in Ie&&t!==ge&&(e._gsap.x||Le(e,"x"))?r&&Ci===r?t==="scale"?Uo:Vo:(Ci=r||{})&&(t==="scale"?Ho:Go):e.style&&!xr(e.style[t])?Zo:~t.indexOf("-")?Bo:Vr(e,t)},core:{_removeProperty:it,_getMatrix:en}};_e.utils.checkPrefix=yt,_e.core.getStyleSaver=ji,(function(s,e,t,r){var n=me(s+","+e+","+t,function(i){Ie[i]=1});me(e,function(i){xe.units[i]="deg",zi[i]=1}),Ae[n[13]]=s+","+e,me(r,function(i){var o=i.split(":");Ae[o[1]]=n[o[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"),me("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(s){xe.units[s]="px"}),_e.registerPlugin(Ui);var wt=_e.registerPlugin(Ui)||_e;wt.core.Tween;const sr=(s,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?s.to(e,t,r):s,Hi=(s,e)=>{Wi.useGSAP(()=>{const t=wt.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:s.current,navLabels:wt.utils.toArray(".nav-label"),navIconWrappers:wt.utils.toArray(".nav-icon-wrapper"),navIcons:wt.utils.toArray(".nav-icon"),navLinkItems:wt.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")};e?na(t,r):ia(t,r)},{scope:s,dependencies:[e]})},na=(s,e)=>{s.to(e.navbar,{width:"6rem"},.2).to(e.profileUserInfo,{display:"none"},0).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:.9},0).to(e.navContentWrapper,{backgroundColor:"transparent"},0),sr(s,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),sr(s,e.buttonContentChevron,{display:"none"},0).to(e.separatorProfile,{display:"none"},0).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",borderRadius:"50px",margin:0,padding:0,borderTopLeftRadius:"50px",borderTopRightRadius:"50px",borderBottomLeftRadius:"50px",borderBottomRightRadius:"50px",duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},0)},ia=(s,e)=>{s.to(e.navLinkItems,{borderRadius:"10px",duration:.3},0).to(e.navbar,{width:"20rem"},-1),sr(s,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),sr(s,e.buttonContentChevron,{display:"flex"},0).to(e.buttonContentChevron,{display:"flex"},0).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},.3).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},sa=({user:s,sessions:e,handleLogout:t,handleTokenLogin:r,links:n,isActiveModalNotification:i,handleNotificationClick:o,handleProfileClick:a})=>{const[l,u]=I.useState(!1),{navbarRef:c}=qn(l);Hi(c,l);const[f,m]=I.useState(!1),[p,_]=I.useState(!1),{pageLinks:d,utilLinks:g,isLinkActive:v}=Pn(s,n),y=ar.useNavigate(),T=I.useRef(null);I.useEffect(()=>{const q=x=>{T.current&&!T.current.contains(x.target)&&p&&_(!1)};return p&&document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[p,_]),I.useEffect(()=>{l&&m(!1)},[l]);const w=()=>{_(!p)},b=()=>{_(!1),u(!l)},S=()=>{m(l?!1:!f)};return h.jsxs("div",{ref:c,className:`bg-neutral-default-default overflow-hidden h-full flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${l?"w-16":"w-64"}`,children:[h.jsx(Cn,{isCollapsed:l,onToggle:b}),h.jsx(Sn,{logoUrl:s?.company_id.logo||"",companyName:s?.company_id.name}),h.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:h.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),h.jsx(pr,{links:d,isLinkActive:v}),h.jsx("div",{className:"flex-grow"}),h.jsx(pr,{links:g,componentBadge:()=>h.jsx(kn,{notificationsCount:0}),onClick:o,isLinkActive:v,activeModal:i}),h.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:h.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),h.jsx("div",{className:"px-3 py-2",children:h.jsx(mr,{sessions:e,user:s,isExpanded:f,showOptions:!0,onProfileClick:l?w:a,onClick:S,onClickLogout:()=>t(s),handleTokenLogin:q=>{r(q),m(!1)}})}),l&&!f&&p&&h.jsx(h.Fragment,{children:h.jsx(Tn,{sessionsShow:e,handleTokenLogin:r,onClickLogout:()=>t(s),menuRef:T,onProfileClick:()=>y("/profile")})})]})},oa=({children:s})=>h.jsxs("div",{className:"flex h-screen w-full",children:[s,h.jsx("main",{className:"w-full h-full overflow-y-auto",children:h.jsx(ar.Outlet,{})})]}),aa=(s,e=!0)=>{const t=I.useRef(null);return I.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&s()};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})}},[s,e]),t};X.Badge=kn,X.Button=Ns,X.CompanyLogo=Sn,X.Icons=Je,X.Input=Fs,X.LayoutGeneric=oa,X.Menu=Tn,X.NavbarCollapseButton=Cn,X.NavbarLinks=pr,X.Sidebar=sa,X.UserProfile=mr,X.useClickOutside=aa,X.useNavbarAnimations=Hi,X.useNavbarCollapse=qn,X.useNavbarLinks=Pn,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "prometeo-design-system",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "design kit system",
|
|
7
|
+
"main": "dist/prometeo-design-system.umd.js",
|
|
8
|
+
"module": "dist/prometeo-design-system.es.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"react",
|
|
16
|
+
"design-system",
|
|
17
|
+
"components",
|
|
18
|
+
"tailwind",
|
|
19
|
+
"framer-motion",
|
|
20
|
+
"typescript",
|
|
21
|
+
"ui-kit"
|
|
22
|
+
],
|
|
23
|
+
"author": "Mat",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/your-username/prometeo-design-system.git"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/your-username/prometeo-design-system#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/your-username/prometeo-design-system/issues"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"build": "tsc -b && vite build",
|
|
36
|
+
"lint": "eslint .",
|
|
37
|
+
"preview": "vite preview",
|
|
38
|
+
"prepublishOnly": "npm run lint && npm run build",
|
|
39
|
+
"clean": "rm -rf dist"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@gsap/react": "^2.0.0",
|
|
43
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
44
|
+
"boring-avatars": "^2.0.0",
|
|
45
|
+
"clsx": "^2.1.1",
|
|
46
|
+
"framer-motion": "^12.0.0",
|
|
47
|
+
"lucide-react": "^0.500.0",
|
|
48
|
+
"shared-dependencies-tickets": "^1.0.11",
|
|
49
|
+
"tailwind-merge": "^3.3.1",
|
|
50
|
+
"tailwindcss": "^4.1.12"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@eslint/js": "^9.33.0",
|
|
54
|
+
"@types/node": "^24.3.0",
|
|
55
|
+
"@types/react": "^19.1.10",
|
|
56
|
+
"@types/react-dom": "^19.1.7",
|
|
57
|
+
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
58
|
+
"eslint": "^9.33.0",
|
|
59
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
60
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
61
|
+
"globals": "^16.3.0",
|
|
62
|
+
"react": "^19.0.0",
|
|
63
|
+
"react-dom": "^19.0.0",
|
|
64
|
+
"react-router": "^7.0.0",
|
|
65
|
+
"react-router-dom": "^7.8.2",
|
|
66
|
+
"tw-animate-css": "^1.3.7",
|
|
67
|
+
"typescript": "~5.8.3",
|
|
68
|
+
"typescript-eslint": "^8.39.1",
|
|
69
|
+
"use-debounce": "^10.0.0",
|
|
70
|
+
"vite": "^7.1.2",
|
|
71
|
+
"vite-plugin-dts": "^4.5.4"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@gsap/react": "^2.0.0",
|
|
75
|
+
"boring-avatars": "^2.0.0",
|
|
76
|
+
"framer-motion": "^12.0.0",
|
|
77
|
+
"lucide-react": "^0.500.0",
|
|
78
|
+
"react": "^19.0.0",
|
|
79
|
+
"react-dom": "^19.0.0",
|
|
80
|
+
"react-router": "^7.0.0",
|
|
81
|
+
"react-router-dom": "^7.0.0",
|
|
82
|
+
"use-debounce": "^10.0.0"
|
|
83
|
+
}
|
|
84
|
+
}
|