prometeo-design-system 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prometeo-design-system.es.js +2428 -5223
- package/dist/prometeo-design-system.umd.js +7 -7
- package/package.json +12 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(M,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("clsx"),require("tailwind-merge"),require("framer-motion"),require("use-debounce"),require("boring-avatars"),require("lucide-react"),require("react-router-dom"),require("@gsap/react")):typeof define=="function"&&define.amd?define(["exports","react","clsx","tailwind-merge","framer-motion","use-debounce","boring-avatars","lucide-react","react-router-dom","@gsap/react"],B):(M=typeof globalThis<"u"?globalThis:M||self,B(M.PrometeoDesignSystem={},M.React,M.clsx,M.tailwindMerge,M.FramerMotion,M.useDebounce,M.BoringAvatars,M.LucideReact,M.ReactRouterDOM,M.GSAPReact))})(this,(function(M,B,fn,cn,R,hn,dn,_n,Ue,pn){"use strict";var Se={exports:{}},ce={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Dr;function mn(){if(Dr)return ce;Dr=1;var a=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(r,i,n){var s=null;if(n!==void 0&&(s=""+n),i.key!==void 0&&(s=""+i.key),"key"in i){n={};for(var o in i)o!=="key"&&(n[o]=i[o])}else n=i;return i=n.ref,{$$typeof:a,type:r,key:s,ref:i!==void 0?i:null,props:n}}return ce.Fragment=t,ce.jsx=e,ce.jsxs=e,ce}var he={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Lr;function gn(){return Lr||(Lr=1,process.env.NODE_ENV!=="production"&&(function(){function a(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===k?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case c:return"Fragment";case x:return"Profiler";case g:return"StrictMode";case v:return"Suspense";case O:return"SuspenseList";case q:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case m:return"Portal";case T:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case b:var j=w.render;return w=w.displayName,w||(w=j.displayName||j.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case C:return j=w.displayName||null,j!==null?j:a(w.type)||"Memo";case S:j=w._payload,w=w._init;try{return a(w(j))}catch{}}return null}function t(w){return""+w}function e(w){try{t(w);var j=!1}catch{j=!0}if(j){j=console;var E=j.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return E.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(w)}}function r(w){if(w===c)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===S)return"<...>";try{var j=a(w);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function i(){var w=N.A;return w===null?null:w.getOwner()}function n(){return Error("react-stack-top-frame")}function s(w){if(A.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}function o(w,j){function E(){W||(W=!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)",j))}E.isReactWarning=!0,Object.defineProperty(w,"key",{get:E,configurable:!0})}function l(){var w=a(this.type);return H[w]||(H[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function u(w,j,E,K,tt,et,Er,Nr){return E=et.ref,w={$$typeof:p,type:w,key:j,props:et,_owner:tt},(E!==void 0?E:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Er}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Nr}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function f(w,j,E,K,tt,et,Er,Nr){var st=j.children;if(st!==void 0)if(K)if(D(st)){for(K=0;K<st.length;K++)h(st[K]);Object.freeze&&Object.freeze(st)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(st);if(A.call(j,"key")){st=a(w);var fe=Object.keys(j).filter(function(Vs){return Vs!=="key"});K=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",Jt[st+K]||(fe=0<fe.length?"{"+fe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,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:
|
|
22
|
+
<%s key={someKey} {...props} />`,K,st,fe,st),Jt[st+K]=!0)}if(st=null,E!==void 0&&(e(E),st=""+E),s(j)&&(e(j.key),st=""+j.key),"key"in j){E={};for(var Mr in j)Mr!=="key"&&(E[Mr]=j[Mr])}else E=j;return st&&o(E,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,st,et,tt,i(),E,Er,Nr)}function h(w){typeof w=="object"&&w!==null&&w.$$typeof===p&&w._store&&(w._store.validated=1)}var _=B,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),N=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,D=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(w){return w()}};var W,H={},G=_.react_stack_bottom_frame.bind(_,n)(),ht=X(r(n)),Jt={};he.Fragment=c,he.jsx=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!1,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)},he.jsxs=function(w,j,E,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,E,!0,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ht)}})()),he}var Ir;function vn(){return Ir||(Ir=1,process.env.NODE_ENV==="production"?Se.exports=mn():Se.exports=gn()),Se.exports}var d=vn();function F(...a){return cn.twMerge(fn.clsx(a))}const xn={filled:{primary:F("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:F("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:F("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:F("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:F("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:F("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")}},yn={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"},wn={enabled:"",hovered:"scale-105",focused:"ring-2 ring-offset-2",pressed:"scale-95",disabled:"opacity-50 cursor-not-allowed pointer-events-none"};function Tn({label:a,onClick:t,icon:e,classButton:r,classButtonText:i,animate:n=!0,animateIcon:s=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:f="filled",color:h="primary",size:_="medium",children:p,Spinner:m,forceState:c}){const g=R.useAnimationControls(),x=()=>{!n||l||o||c||!s||g.start({rotate:90})},y=()=>{!n||l||o||c||!s||g.start({rotate:0})},T=r||F(xn[f][h],yn[_],c&&wn[c],(l||o)&&"opacity-50 cursor-not-allowed","focus:outline-none");return d.jsx(R.motion.button,{onClick:t,className:T,whileHover:n&&!l&&!o?{scale:1.05}:{},whileTap:n&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:x,onHoverEnd:y,disabled:l||o,type:u,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[m,_!=="small"&&d.jsx("span",{children:"Cargando..."})]}):p||d.jsxs("span",{className:F("flex items-center indent-1",i),children:[e&&d.jsx(R.motion.div,{animate:s?g:void 0,transition:{type:"spring",stiffness:400,damping:17},children:e}),a&&d.jsx("span",{children:a})]})})}const bn=({label:a,icon:t,onChange:e,value:r="",debounceMs:i=0,name:n,width:s="100%",height:o="56px",className:l,id:u,isFetching:f=!1,placeholder:h="",disabled:_=!1,required:p=!1,error:m,type:c="text"})=>{const g=B.useId(),x=u||g,[y,T]=B.useState(r),[b,v]=B.useState(!1),[O]=hn.useDebounce(y,i>0?i:0);B.useEffect(()=>{T(r)},[r]),B.useEffect(()=>{i>0&&O!==r&&e(O)},[O,i,e,r]);const C=N=>{const A=N.target.value;T(A),i===0&&e(A)},S=y.length>0,q=m&&!b,k=b||S;return d.jsxs("div",{className:F("relative w-72",l),style:{width:s,height:o},children:[d.jsxs("div",{className:F("relative w-72 h-full","border-2 rounded-lg transition-all duration-200","bg-white hover:bg-gray-50",!m&&!b&&"border-gray-300",!m&&b&&"border-blue-500 ring-2 ring-blue-200",q&&"border-red-500 ring-2 ring-red-200",_&&"bg-gray-100 border-gray-200 cursor-not-allowed",t?"pl-12":"pl-4","pr-4"),children:[t&&d.jsx(R.motion.div,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10",animate:{y:k?[-2,0]:0,rotate:b?[0,-10,10,-10,10,0]:0},transition:{duration:.7},children:d.jsx("span",{className:F("text-lg transition-colors duration-200",!m&&!k&&"text-gray-400",!m&&k&&"text-blue-500",q&&"text-red-500",_&&"text-gray-300"),children:t})}),d.jsx("input",{id:x,type:c,className:F("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",_&&"cursor-not-allowed text-gray-400","focus:outline-none"),name:n,value:y,placeholder:b?h:"",disabled:_,required:p,onFocus:()=>v(!0),onBlur:()=>v(!1),onChange:C,"aria-invalid":!!m,"aria-describedby":m?`${x}-error`:void 0}),d.jsxs(R.motion.label,{htmlFor:x,className:F("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",t?"ml-12":"ml-4",!m&&!k&&"text-gray-500",!m&&k&&"text-blue-600",q&&"text-red-500",_&&"text-gray-400"),animate:{y:k?-20:-8,scale:k?.85:1},transition:{duration:.2,ease:"easeOut"},children:[a,p&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&d.jsx(R.motion.div,{className:"absolute right-3 top-1/2 transform -translate-y-1/2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:d.jsx("div",{className:F("w-5 h-5 border-2 border-gray-300 border-t-blue-500","rounded-full animate-spin")})})]}),m&&d.jsx(R.motion.span,{id:`${x}-error`,className:F("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:m})]})},qn=B.memo(bn),Ft={Ticket:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-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:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:a,className:t,...e})=>d.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,className:t,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a,height:a,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]})};function Cn({profileImage:a,size:t,sizeImage:e=5.5}){const[r,i]=B.useState(!1);return d.jsx(d.Fragment,{children:a&&!r?d.jsx("img",{onError:()=>{i(!0)},src:a,className:`w-${e} h-${e} rounded-full`}):d.jsx(dn,{size:t,name:a,variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}const He=({user:a,isExpanded:t,onClick:e,onProfileClick:r,showOptions:i=!1,onClickLogout:n,sessions:s,handleTokenLogin:o})=>{const l=s?.filter(u=>u.email!==a?.email);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 ",children:[d.jsxs(R.motion.button,{onClick:r,className:F("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",t&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(Cn,{profileImage:a?.profileImage||"",size:36})}),d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:F("profile-name font-semibold leading-tight mb-0 text-left",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.name?.length&&a?.name?.length>20?a?.name?.slice(0,10)+"..":a?.name}),d.jsx("div",{className:"flex items-center gap-1 mt-1",children:a&&a.company_id?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.company_id?.name?.length&&a?.company_id?.name?.length>20?a?.company_id?.name?.slice(0,10)+"..":a?.company_id?.name}),d.jsx("p",{className:F("profile-options truncate font-bold mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:F("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.area?.name||a?.company_id?.name||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),i&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),d.jsx(R.motion.button,{onClick:e,className:`flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] \r
|
|
23
|
+
hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:t?"Ocultar opciones":"Mostrar opciones","aria-label":t?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(Ft.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),d.jsx(R.AnimatePresence,{mode:"wait",children:t&&d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),l&&l?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Fr,{sessions:l,handleTokenLogin:o})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:n,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Ft.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})]})};function Fr({sessions:a,handleTokenLogin:t}){return d.jsx("div",{className:"profile-options-container",children:a?.map(e=>d.jsx("button",{onClick:()=>t?.(e.token),children:d.jsx(He,{user:e},e._id)},e._id))})}const Zr=({sessionsShow:a,handleTokenLogin:t,onClickLogout:e,menuRef:r,onProfileClick:i})=>d.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:d.jsx(R.AnimatePresence,{mode:"wait",children:d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:[d.jsxs(R.motion.button,{onClick:i,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:[d.jsx(Ft.UserPerson,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Ver perfil"})]}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}}}),a&&a?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Fr,{sessions:a,handleTokenLogin:t})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:e,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:[d.jsx(Ft.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})}),Br=({notificationsCount:a})=>d.jsx(d.Fragment,{children:a>0&&d.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-xs text-neutral-default-default font-medium",children:a})})}),zr=({isCollapsed:a,onToggle:t})=>d.jsx("div",{className:"p-4 flex justify-end",children:d.jsx("button",{onClick:t,title:a?"Expandir Navbar":"Contraer Navbar","aria-label":a?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:a?d.jsx(Ft.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(Ft.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Ur=({logoUrl:a,companyName:t})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:a,className:"h-2/3 rounded-full",alt:t??""})}),Ve=({links:a,isLinkActive:t,componentBadge:e,onClick:r,activeModal:i})=>d.jsx("nav",{className:"flex flex-col gap-1",children:a.map((n,s)=>{const o=t(n.path)||(n.relatedPaths?.some(l=>t(l))??!1);return n.isView&&d.jsxs(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[n.path==="/notifications"&&d.jsx("button",{onClick:r,className:F("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",i?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(R.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:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:i?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:F("nav-icon transition-colors duration-250 ease-out",i?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title}),n.path==="/notifications"&&e&&e()]})}),n.path!=="/notifications"&&d.jsxs(_n.Link,{to:n.path,onClick:r,className:F("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",o?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:o&&d.jsx(R.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:o?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:F("nav-icon transition-colors duration-250 ease-out",o?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title}),n.path==="/notifications"&&e&&e()]})]})]},s)})}),Hr=a=>{const t=B.useRef(null);return{isCollapsed:a,navbarRef:t}},Vr=(a,t)=>{const e=Ue.useLocation().pathname,r=B.useMemo(()=>t.pages.filter(s=>s.roles.includes(a?.role)),[t.pages,a?.role]),i=B.useMemo(()=>t.utils.filter(s=>s.roles.includes(a?.role)),[t.utils,a?.role]);return{pageLinks:r,utilLinks:i,isLinkActive:s=>e===s,pathname:e}};function St(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Yr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
|
|
24
24
|
* GSAP 3.13.0
|
|
25
25
|
* https://gsap.com
|
|
26
26
|
*
|
|
27
27
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
28
28
|
* Subject to the terms at https://gsap.com/standard-license
|
|
29
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;/*!
|
|
30
|
+
*/var dt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qt={duration:.5,overwrite:!1,delay:0},Ye,rt,Z,xt=1e8,L=1/xt,Xe=Math.PI*2,On=Xe/4,Sn=0,Xr=Math.sqrt,jn=Math.cos,kn=Math.sin,$=function(t){return typeof t=="string"},V=function(t){return typeof t=="function"},jt=function(t){return typeof t=="number"},We=function(t){return typeof t>"u"},bt=function(t){return typeof t=="object"},ot=function(t){return t!==!1},Ge=function(){return typeof window<"u"},je=function(t){return V(t)||$(t)},Wr=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},it=Array.isArray,Je=/(?:-?\.?\d|\.)+/gi,Gr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Kt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Qe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Jr=/[+-]=-?[.\d]+/,Qr=/[^,'"\[\]\s]+/gi,Pn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,z,qt,Ke,$e,_t={},ke={},Kr,$r=function(t){return(ke=te(t,_t))&&ft},tr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},de=function(t,e){return!e&&console.warn(t)},ti=function(t,e){return t&&(_t[t]=e)&&ke&&(ke[t]=e)||_t},_e=function(){return 0},Rn={suppressEvents:!0,isStart:!0,kill:!1},Pe={suppressEvents:!0,kill:!1},An={suppressEvents:!0},er={},Rt=[],rr={},ei,pt={},ir={},ri=30,Re=[],nr="",sr=function(t){var e=t[0],r,i;if(bt(e)||V(e)||(t=[t]),!(r=(e._gsap||{}).harness)){for(i=Re.length;i--&&!Re[i].targetTest(e););r=Re[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ri(t[i],r)))||t.splice(i,1);return t},Zt=function(t){return t._gsap||sr(wt(t))[0]._gsap},ii=function(t,e,r){return(r=t[e])&&V(r)?t[e]():We(r)&&t.getAttribute&&t.getAttribute(e)||r},lt=function(t,e){return(t=t.split(",")).forEach(e)||t},Y=function(t){return Math.round(t*1e5)/1e5||0},J=function(t){return Math.round(t*1e7)/1e7||0},$t=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},En=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},Ae=function(){var t=Rt.length,e=Rt.slice(0),r,i;for(rr={},Rt.length=0,r=0;r<t;r++)i=e[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},ar=function(t){return!!(t._initted||t._startAt||t.add)},ni=function(t,e,r,i){Rt.length&&!rt&&Ae(),t.render(e,r,!!(rt&&e<0&&ar(t))),Rt.length&&!rt&&Ae()},si=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Qr).length<2?e:$(t)?t.trim():t},ai=function(t){return t},mt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Nn=function(t){return function(e,r){for(var i in r)i in e||i==="duration"&&t||i==="ease"||(e[i]=r[i])}},te=function(t,e){for(var r in e)t[r]=e[r];return t},oi=function a(t,e){for(var r in e)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=bt(e[r])?a(t[r]||(t[r]={}),e[r]):e[r]);return t},Ee=function(t,e){var r={},i;for(i in t)i in e||(r[i]=t[i]);return r},pe=function(t){var e=t.parent||z,r=t.keyframes?Nn(it(t.keyframes)):mt;if(ot(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},Mn=function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0},li=function(t,e,r,i,n){var s=t[i],o;if(n)for(o=e[n];s&&s[n]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e},Ne=function(t,e,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},At=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Dn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},or=function(t,e,r,i){return t._startAt&&(rt?t._startAt.revert(Pe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Ln=function a(t){return!t||t._ts&&a(t.parent)},ui=function(t){return t._repeat?ee(t._tTime,t=t.duration()+t._rDelay)*t:0},ee=function(t,e){var r=Math.floor(t=J(t/e));return t&&r===t?r-1:r},Me=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},De=function(t){return t._end=J(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},Le=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=J(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),De(t),r._dirty||Bt(r,t)),t},fi=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Me(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>L)&&e.render(r,!0)),Bt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-L}},Ct=function(t,e,r,i){return e.parent&&At(e),e._start=J((jt(r)?r:r||t!==z?yt(t,r,e):t._time)+e._delay),e._end=J(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),li(t,e,"_first","_last",t._sort?"_start":0),lr(e)||(t._recent=e),i||fi(t,e),t._ts<0&&Le(t,t._tTime),t},ci=function(t,e){return(_t.ScrollTrigger||tr("scrollTrigger",e))&&_t.ScrollTrigger.create(e,t)},hi=function(t,e,r,i,n){if(gr(t,e,n),!t._initted)return 1;if(!r&&t._pt&&!rt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ei!==vt.frame)return Rt.push(t),t._lazy=[n,i],1},In=function a(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||a(e))},lr=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Fn=function(t,e,r,i){var n=t.ratio,s=e<0||!e&&(!t._start&&In(t)&&!(!t._initted&&lr(t))||(t._ts<0||t._dp._ts<0)&&!lr(t))?0:1,o=t._rDelay,l=0,u,f,h;if(o&&t._repeat&&(l=ge(0,t._tDur,e),f=ee(l,o),t._yoyo&&f&1&&(s=1-s),f!==ee(t._tTime,o)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||rt||i||t._zTime===L||!e&&t._zTime){if(!t._initted&&hi(t,e,i,r,l))return;for(h=t._zTime,t._zTime=e||(r?L:0),r||(r=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=l,u=t._pt;u;)u.r(s,u.d),u=u._next;e<0&&or(t,e,r,!0),t._onUpdate&&!r&>(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&>(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&At(t,1),!r&&!rt&&(gt(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Zn=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},re=function(t,e,r,i){var n=t._repeat,s=J(e)||0,o=t._tTime/t._tDur;return o&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:J(s*(n+1)+t._rDelay*n):s,o>0&&!i&&Le(t,t._tTime=t._tDur*o),t.parent&&De(t),r||Bt(t.parent,t),t},di=function(t){return t instanceof at?Bt(t):re(t,t._dur)},Bn={_start:0,endTime:_e,totalDuration:_e},yt=function a(t,e,r){var i=t.labels,n=t._recent||Bn,s=t.duration()>=xt?n.endTime(!1):t._dur,o,l,u;return $(e)&&(isNaN(e)||e in i)?(l=e.charAt(0),u=e.substr(-1)==="%",o=e.indexOf("="),l==="<"||l===">"?(o>=0&&(e=e.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(u?(o<0?n:r).totalDuration()/100:1)):o<0?(e in i||(i[e]=s),i[e]):(l=parseFloat(e.charAt(o-1)+e.substr(o+1)),u&&r&&(l=l/100*(it(r)?r[0]:r).totalDuration()),o>1?a(t,e.substr(0,o-1),r)+l:s+l)):e==null?s:+e},me=function(t,e,r){var i=jt(e[1]),n=(i?2:1)+(t<2?0:1),s=e[n],o,l;if(i&&(s.duration=e[1]),s.parent=r,t){for(o=s,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=ot(l.vars.inherit)&&l.parent;s.immediateRender=ot(o.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new Q(e[0],s,e[n+1])},Et=function(t,e){return t||t===0?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},nt=function(t,e){return!$(t)||!(e=Pn.exec(t))?"":e[1]},zn=function(t,e,r){return Et(r,function(i){return ge(t,e,i)})},ur=[].slice,_i=function(t,e){return t&&bt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&bt(t[0]))&&!t.nodeType&&t!==qt},Un=function(t,e,r){return r===void 0&&(r=[]),t.forEach(function(i){var n;return $(i)&&!e||_i(i,1)?(n=r).push.apply(n,wt(i)):r.push(i)})||r},wt=function(t,e,r){return Z&&!e&&Z.selector?Z.selector(t):$(t)&&!r&&(Ke||!ne())?ur.call((e||$e).querySelectorAll(t),0):it(t)?Un(t,r):_i(t)?ur.call(t,0):t?[t]:[]},fr=function(t){return t=wt(t)[0]||de("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return wt(e,r.querySelectorAll?r:r===t?de("Invalid scope")||$e.createElement("div"):t)}},pi=function(t){return t.sort(function(){return .5-Math.random()})},mi=function(t){if(V(t))return t;var e=bt(t)?t:{each:t},r=zt(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=e.axis,f=i,h=i;return $(i)?f=h={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],h=i[1]),function(_,p,m){var c=(m||e).length,g=s[c],x,y,T,b,v,O,C,S,q;if(!g){if(q=e.grid==="auto"?0:(e.grid||[1,xt])[1],!q){for(C=-xt;C<(C=m[q++].getBoundingClientRect().left)&&q<c;);q<c&&q--}for(g=s[c]=[],x=l?Math.min(q,c)*f-.5:i%q,y=q===xt?0:l?c*h/q-.5:i/q|0,C=0,S=xt,O=0;O<c;O++)T=O%q-x,b=y-(O/q|0),g[O]=v=u?Math.abs(u==="y"?b:T):Xr(T*T+b*b),v>C&&(C=v),v<S&&(S=v);i==="random"&&pi(g),g.max=C-S,g.min=S,g.v=c=(parseFloat(e.amount)||parseFloat(e.each)*(q>c?c-1:u?u==="y"?c/q:q:Math.max(q,c/q))||0)*(i==="edges"?-1:1),g.b=c<0?n-c:n,g.u=nt(e.amount||e.each)||0,r=r&&c<0?ji(r):r}return c=(g[_]-g.min)/g.max||0,J(g.b+(r?r(c):c)*g.v)+g.u}},cr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=J(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(jt(r)?0:nt(r))}},gi=function(t,e){var r=it(t),i,n;return!r&&bt(t)&&(i=r=t.radius||xt,t.values?(t=wt(t.values),(n=!jt(t[0]))&&(i*=i)):t=cr(t.increment)),Et(e,r?V(t)?function(s){return n=t(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=xt,f=0,h=t.length,_,p;h--;)n?(_=t[h].x-o,p=t[h].y-l,_=_*_+p*p):_=Math.abs(t[h]-o),_<u&&(u=_,f=h);return f=!i||u<=i?t[f]:s,n||f===s||jt(s)?f:f+nt(s)}:cr(t))},vi=function(t,e,r,i){return Et(it(t)?!e:r===!0?!!(r=0):!i,function(){return it(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+r*.99))/r)*r*i)/i})},Hn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return e.reduce(function(n,s){return s(n)},i)}},Vn=function(t,e){return function(r){return t(parseFloat(r))+(e||nt(r))}},Yn=function(t,e,r){return yi(t,e,0,1,r)},xi=function(t,e,r){return Et(r,function(i){return t[~~e(i)]})},Xn=function a(t,e,r){var i=e-t;return it(t)?xi(t,a(0,t.length),e):Et(r,function(n){return(i+(n-t)%i)%i+t})},Wn=function a(t,e,r){var i=e-t,n=i*2;return it(t)?xi(t,a(0,t.length-1),e):Et(r,function(s){return s=(n+(s-t)%n)%n||0,t+(s>i?n-s:s)})},ve=function(t){for(var e=0,r="",i,n,s,o;~(i=t.indexOf("random(",e));)s=t.indexOf(")",i),o=t.charAt(i+7)==="[",n=t.substr(i+7,s-i-7).match(o?Qr:Je),r+=t.substr(e,i-e)+vi(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),e=s+1;return r+t.substr(e,t.length-e)},yi=function(t,e,r,i,n){var s=e-t,o=i-r;return Et(n,function(l){return r+((l-t)/s*o||0)})},Gn=function a(t,e,r,i){var n=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!n){var s=$(t),o={},l,u,f,h,_;if(r===!0&&(i=1)&&(r=null),s)t={p:t},e={p:e};else if(it(t)&&!it(e)){for(f=[],h=t.length,_=h-2,u=1;u<h;u++)f.push(a(t[u-1],t[u]));h--,n=function(m){m*=h;var c=Math.min(_,~~m);return f[c](m-c)},r=e}else i||(t=te(it(t)?[]:{},t));if(!f){for(l in e)pr.call(o,t,l,"get",e[l]);n=function(m){return yr(m,o)||(s?t.p:t)}}}return Et(r,n)},wi=function(t,e,r){var i=t.labels,n=xt,s,o,l;for(s in i)o=i[s]-e,o<0==!!r&&o&&n>(o=Math.abs(o))&&(l=s,n=o);return l},gt=function(t,e,r){var i=t.vars,n=i[e],s=Z,o=t._ctx,l,u,f;if(n)return l=i[e+"Params"],u=i.callbackScope||t,r&&Rt.length&&Ae(),o&&(Z=o),f=l?n.apply(u,l):n.call(u),Z=s,f},xe=function(t){return At(t),t.scrollTrigger&&t.scrollTrigger.kill(!!rt),t.progress()<1&>(t,"onInterrupt"),t},ie,Ti=[],bi=function(t){if(t)if(t=!t.name&&t.default||t,Ge()||t.headless){var e=t.name,r=V(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:_e,render:yr,add:pr,kill:cs,modifier:fs,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(ne(),t!==i){if(pt[e])return;mt(i,mt(Ee(t,n),s)),te(i.prototype,te(n,Ee(t,s))),pt[i.prop=e]=i,t.targetTest&&(Re.push(i),er[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ti(e,i),t.register&&t.register(ft,i,ut)}else Ti.push(t)},I=255,ye={aqua:[0,I,I],lime:[0,I,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,I],navy:[0,0,128],white:[I,I,I],olive:[128,128,0],yellow:[I,I,0],orange:[I,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[I,0,0],pink:[I,192,203],cyan:[0,I,I],transparent:[I,I,I,0]},hr=function(t,e,r){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(r-e)*t*6:t<.5?r:t*3<2?e+(r-e)*(2/3-t)*6:e)*I+.5|0},qi=function(t,e,r){var i=t?jt(t)?[t>>16,t>>8&I,t&I]:0:ye.black,n,s,o,l,u,f,h,_,p,m;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ye[t])i=ye[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),o=t.charAt(3),t="#"+n+n+s+s+o+o+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&I,i&I,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&I,t&I]}else if(t.substr(0,3)==="hsl"){if(i=m=t.match(Je),!e)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=hr(l+1/3,n,s),i[1]=hr(l,n,s),i[2]=hr(l-1/3,n,s);else if(~t.indexOf("="))return i=t.match(Gr),r&&i.length<4&&(i[3]=1),i}else i=t.match(Je)||ye.transparent;i=i.map(Number)}return e&&!m&&(n=i[0]/I,s=i[1]/I,o=i[2]/I,h=Math.max(n,s,o),_=Math.min(n,s,o),f=(h+_)/2,h===_?l=u=0:(p=h-_,u=f>.5?p/(2-h-_):p/(h+_),l=h===n?(s-o)/p+(s<o?6:0):h===s?(o-n)/p+2:(n-s)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),r&&i.length<4&&(i[3]=1),i},Ci=function(t){var e=[],r=[],i=-1;return t.split(Nt).forEach(function(n){var s=n.match(Kt)||[];e.push.apply(e,s),r.push(i+=s.length+1)}),e.c=r,e},Oi=function(t,e,r){var i="",n=(t+i).match(Nt),s=e?"hsla(":"rgba(",o=0,l,u,f,h;if(!n)return t;if(n=n.map(function(_){return(_=qi(_,e,1))&&s+(e?_[0]+","+_[1]+"%,"+_[2]+"%,"+_[3]:_.join(","))+")"}),r&&(f=Ci(t),l=r.c,l.join(i)!==f.c.join(i)))for(u=t.replace(Nt,"1").split(Kt),h=u.length-1;o<h;o++)i+=u[o]+(~l.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:r).shift());if(!u)for(u=t.split(Nt),h=u.length-1;o<h;o++)i+=u[o]+n[o];return i+u[h]},Nt=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ye)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),Jn=/hsl[a]?\(/,Si=function(t){var e=t.join(" "),r;if(Nt.lastIndex=0,Nt.test(e))return r=Jn.test(e),t[1]=Oi(t[1],r),t[0]=Oi(t[0],r,Ci(t[1])),!0},we,vt=(function(){var a=Date.now,t=500,e=33,r=a(),i=r,n=1e3/240,s=n,o=[],l,u,f,h,_,p,m=function c(g){var x=a()-i,y=g===!0,T,b,v,O;if((x>t||x<0)&&(r+=x-e),i+=x,v=i-r,T=v-s,(T>0||y)&&(O=++h.frame,_=v-h.time*1e3,h.time=v=v/1e3,s+=T+(T>=n?4:n-T),b=1),y||(l=u(c)),b)for(p=0;p<o.length;p++)o[p](v,_,O,g)};return h={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return _/(1e3/(g||60))},wake:function(){Kr&&(!Ke&&Ge()&&(qt=Ke=window,$e=qt.document||{},_t.gsap=ft,(qt.gsapVersions||(qt.gsapVersions=[])).push(ft.version),$r(ke||qt.GreenSockGlobals||!qt.gsap&&qt||{}),Ti.forEach(bi)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),u=f||function(g){return setTimeout(g,s-h.time*1e3+1|0)},we=1,m(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(l),we=0,u=_e},lagSmoothing:function(g,x){t=g||1/0,e=Math.min(x||33,t)},fps:function(g){n=1e3/(g||240),s=h.time*1e3+n},add:function(g,x,y){var T=x?function(b,v,O,C){g(b,v,O,C),h.remove(T)}:g;return h.remove(g),o[y?"unshift":"push"](T),ne(),T},remove:function(g,x){~(x=o.indexOf(g))&&o.splice(x,1)&&p>=x&&p--},_listeners:o},h})(),ne=function(){return!we&&vt.wake()},P={},Qn=/^[\d.\-M][\d.\-,\s]/,Kn=/["']/g,$n=function(t){for(var e={},r=t.substr(1,t.length-3).split(":"),i=r[0],n=1,s=r.length,o,l,u;n<s;n++)l=r[n],o=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),e[i]=isNaN(u)?u.replace(Kn,"").trim():+u,i=l.substr(o+1).trim();return e},ts=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)},es=function(t){var e=(t+"").split("("),r=P[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[$n(e[1])]:ts(t).split(",").map(si)):P._CE&&Qn.test(t)?P._CE("",t):r},ji=function(t){return function(e){return 1-t(1-e)}},ki=function a(t,e){for(var r=t._first,i;r;)r instanceof at?a(r,e):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==e&&(r.timeline?a(r.timeline,e):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=e)),r=r._next},zt=function(t,e){return t&&(V(t)?t:P[t]||es(t))||e},Ut=function(t,e,r,i){r===void 0&&(r=function(l){return 1-e(1-l)}),i===void 0&&(i=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var n={easeIn:e,easeOut:r,easeInOut:i},s;return lt(t,function(o){P[o]=_t[o]=n,P[s=o.toLowerCase()]=r;for(var l in n)P[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=P[o+"."+l]=n[l]}),n},Pi=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},dr=function a(t,e,r){var i=e>=1?e:1,n=(r||(t?.3:.45))/(e<1?e:1),s=n/Xe*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*kn((f-s)*n)+1},l=t==="out"?o:t==="in"?function(u){return 1-o(1-u)}:Pi(o);return n=Xe/n,l.config=function(u,f){return a(t,u,f)},l},_r=function a(t,e){e===void 0&&(e=1.70158);var r=function(s){return s?--s*s*((e+1)*s+e)+1:0},i=t==="out"?r:t==="in"?function(n){return 1-r(1-n)}:Pi(r);return i.config=function(n){return a(t,n)},i};lt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var e=t<5?t+1:t;Ut(a+",Power"+(e-1),t?function(r){return Math.pow(r,e)}:function(r){return r},function(r){return 1-Math.pow(1-r,e)},function(r){return r<.5?Math.pow(r*2,e)/2:1-Math.pow((1-r)*2,e)/2})}),P.Linear.easeNone=P.none=P.Linear.easeIn,Ut("Elastic",dr("in"),dr("out"),dr()),(function(a,t){var e=1/t,r=2*e,i=2.5*e,n=function(o){return o<e?a*o*o:o<r?a*Math.pow(o-1.5/t,2)+.75:o<i?a*(o-=2.25/t)*o+.9375:a*Math.pow(o-2.625/t,2)+.984375};Ut("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75),Ut("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)}),Ut("Circ",function(a){return-(Xr(1-a*a)-1)}),Ut("Sine",function(a){return a===1?1:-jn(a*On)+1}),Ut("Back",_r("in"),_r("out"),_r()),P.SteppedEase=P.steps=_t.SteppedEase={config:function(t,e){t===void 0&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0,s=1-L;return function(o){return((i*ge(0,s,o)|0)+n)*r}}},Qt.ease=P["quad.out"],lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return nr+=a+","+a+"Params,"});var Ri=function(t,e){this.id=Sn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ii,this.set=e?e.getSetter:xr},Te=(function(){function a(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,re(this,+e.duration,1,1),this.data=e.data,Z&&(this._ctx=Z,Z.data.push(this)),we||vt.wake()}var t=a.prototype;return t.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},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,re(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(ne(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Le(this,r),!n._dp||n.parent||fi(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Ct(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===L||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),ni(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ui(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ui(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?ee(this._tTime,n)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?Me(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-L?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),De(this),Dn(this)},t.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):(ne(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ct(i,this,r-this._delay),this}return this._start},t.endTime=function(r){return this._start+(ot(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Me(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=An);var i=rt;return rt=r,ar(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),rt=i,this},t.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,di(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,di(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(yt(this,r),ot(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ot(i)),this._dur||(this._zTime=-L),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-L:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n<this.endTime(!0)-L)},t.eventCallback=function(r,i,n){var s=this.vars;return arguments.length>1?(i?(s[r]=i,n&&(s[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},t.then=function(r){var i=this;return new Promise(function(n){var s=V(r)?r:ai,o=function(){var u=i.then;i.then=null,V(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),n(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},t.kill=function(){xe(this)},a})();mt(Te.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-L,_prom:0,_ps:!1,_rts:1});var at=(function(a){Yr(t,a);function t(r,i){var n;return r===void 0&&(r={}),n=a.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=ot(r.sortChildren),z&&Ct(r.parent||z,St(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&ci(St(n),r.scrollTrigger),n}var e=t.prototype;return e.to=function(i,n,s){return me(0,arguments,this),this},e.from=function(i,n,s){return me(1,arguments,this),this},e.fromTo=function(i,n,s,o){return me(2,arguments,this),this},e.set=function(i,n,s){return n.duration=0,n.parent=this,pe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Q(i,n,yt(this,s),1),this},e.call=function(i,n,s){return Ct(this,Q.delayedCall(0,i,n),s)},e.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Q(i,s,yt(this,l)),this},e.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,pe(s).immediateRender=ot(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},e.staggerFromTo=function(i,n,s,o,l,u,f,h){return o.startAt=s,pe(o).immediateRender=ot(o.immediateRender),this.staggerTo(i,n,o,l,u,f,h)},e.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:J(i),h=this._zTime<0!=i<0&&(this._initted||!u),_,p,m,c,g,x,y,T,b,v,O,C;if(this!==z&&f>l&&i>=0&&(f=l),f!==this._tTime||s||h){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),_=f,b=this._start,T=this._ts,x=!T,h&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(O=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,n,s);if(_=J(f%g),f===l?(c=this._repeat,_=u):(v=J(f/g),c=~~v,c&&c===v&&(_=u,c--),_>u&&(_=u)),v=ee(this._tTime,g),!o&&this._tTime&&v!==c&&this._tTime-v*g-this._dur<=0&&(v=c),O&&c&1&&(_=u-_,C=1),c!==v&&!this._lock){var S=O&&v&1,q=S===(O&&c&1);if(c<v&&(S=!S),o=S?0:f%u?u:f,this._lock=1,this.render(o||(C?0:J(c*g)),n,!u)._lock=0,this._tTime=f,!n&&this.parent&>(this,"onRepeat"),this.vars.repeatRefresh&&!C&&(this.invalidate()._lock=1),o&&o!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,q&&(this._lock=2,o=S?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!C&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;ki(this,C)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=Zn(this,J(o),J(_)),y&&(f-=_-(_=y._start))),this._tTime=f,this._time=_,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&!n&&!v&&(gt(this,"onStart"),this._tTime!==f))return this;if(_>=o&&i>=0)for(p=this._first;p;){if(m=p._next,(p._act||_>=p._start)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(_-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(_-p._start)*p._ts,n,s),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=-L);break}}p=m}else{p=this._last;for(var k=i<0?i:_;p;){if(m=p._prev,(p._act||k<=p._end)&&p._ts&&y!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(k-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(k-p._start)*p._ts,n,s||rt&&ar(p)),_!==this._time||!this._ts&&!x){y=0,m&&(f+=this._zTime=k?-L:L);break}}p=m}}if(y&&!n&&(this.pause(),y.render(_>=o?0:-L)._zTime=_>=o?1:-1,this._ts))return this._start=b,De(this),this.render(i,n,s);this._onUpdate&&!n&>(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(b===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&At(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(gt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,n){var s=this;if(jt(n)||(n=yt(this,n,i)),!(i instanceof Te)){if(it(i))return i.forEach(function(o){return s.add(o,n)}),this;if($(i))return this.addLabel(i,n);if(V(i))i=Q.delayedCall(0,i);else return this}return this!==i?Ct(this,i,n):this},e.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-xt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Q?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},e.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},e.remove=function(i){return $(i)?this.removeLabel(i):V(i)?this.killTweensOf(i):(i.parent===this&&Ne(this,i),i===this._recent&&(this._recent=this._last),Bt(this))},e.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=J(vt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},e.addLabel=function(i,n){return this.labels[i]=yt(this,n),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,n,s){var o=Q.delayedCall(0,n||_e,s);return o.data="isPause",this._hasPause=1,Ct(this,o,yt(this,i))},e.removePause=function(i){var n=this._first;for(i=yt(this,i);n;)n._start===i&&n.data==="isPause"&&At(n),n=n._next},e.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)Mt!==o[l]&&o[l].kill(i,n);return this},e.getTweensOf=function(i,n){for(var s=[],o=wt(i),l=this._first,u=jt(n),f;l;)l instanceof Q?En(l._targets,o)&&(u?(!Mt||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},e.tweenTo=function(i,n){n=n||{};var s=this,o=yt(s,i),l=n,u=l.startAt,f=l.onStart,h=l.onStartParams,_=l.immediateRender,p,m=Q.to(s,mt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||L,onStart:function(){if(s.pause(),!p){var g=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());m._dur!==g&&re(m,g,0,1).render(m._time,!0,!0),p=1}f&&f.apply(m,h||[])}},n));return _?m.render(0):m},e.tweenFromTo=function(i,n,s){return this.tweenTo(n,mt({startAt:{time:yt(this,i)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),wi(this,yt(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+L)},e.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,l=this.labels,u;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return Bt(this)},e.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Bt(this)},e.totalDuration=function(i){var n=0,s=this,o=s._last,l=xt,u,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(h=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Ct(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;re(s,s===z&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(z._ts&&(ni(z,Me(i,z)),ei=vt.frame),vt.frame>=ri){ri+=dt.autoSleep||120;var n=z._first;if((!n||!n._ts)&&dt.autoSleep&&vt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||vt.sleep()}}},t})(Te);mt(at.prototype,{_lock:0,_hasPause:0,_forcing:0});var rs=function(t,e,r,i,n,s,o){var l=new ut(this._pt,t,e,0,1,Li,null,n),u=0,f=0,h,_,p,m,c,g,x,y;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=ve(i)),s&&(y=[r,i],s(y,t,e),r=y[0],i=y[1]),_=r.match(Qe)||[];h=Qe.exec(i);)m=h[0],c=i.substring(u,h.index),p?p=(p+1)%5:c.substr(-5)==="rgba("&&(p=1),m!==_[f++]&&(g=parseFloat(_[f-1])||0,l._pt={_next:l._pt,p:c||f===1?c:",",s:g,c:m.charAt(1)==="="?$t(g,m)-g:parseFloat(m)-g,m:p&&p<4?Math.round:0},u=Qe.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(Jr.test(i)||x)&&(l.e=0),this._pt=l,l},pr=function(t,e,r,i,n,s,o,l,u,f){V(i)&&(i=i(n||0,t,s));var h=t[e],_=r!=="get"?r:V(h)?u?t[e.indexOf("set")||!V(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,p=V(h)?u?os:Mi:vr,m;if($(i)&&(~i.indexOf("random(")&&(i=ve(i)),i.charAt(1)==="="&&(m=$t(_,i)+(nt(_)||0),(m||m===0)&&(i=m))),!f||_!==i||mr)return!isNaN(_*i)&&i!==""?(m=new ut(this._pt,t,e,+_||0,i-(_||0),typeof h=="boolean"?us:Di,0,p),u&&(m.fp=u),o&&m.modifier(o,this,t),this._pt=m):(!h&&!(e in t)&&tr(e,i),rs.call(this,t,e,_,i,p,l||dt.stringFilter,u))},is=function(t,e,r,i,n){if(V(t)&&(t=be(t,n,e,r,i)),!bt(t)||t.style&&t.nodeType||it(t)||Wr(t))return $(t)?be(t,n,e,r,i):t;var s={},o;for(o in t)s[o]=be(t[o],n,e,r,i);return s},Ai=function(t,e,r,i,n,s){var o,l,u,f;if(pt[t]&&(o=new pt[t]).init(n,o.rawVars?e[t]:is(e[t],i,n,s,r),r,i,s)!==!1&&(r._pt=l=new ut(r._pt,n,t,0,1,o.render,o,0,o.priority),r!==ie))for(u=r._ptLookup[r._targets.indexOf(n)],f=o._props.length;f--;)u[o._props[f]]=l;return o},Mt,mr,gr=function a(t,e,r){var i=t.vars,n=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,f=i.runBackwards,h=i.yoyoEase,_=i.keyframes,p=i.autoRevert,m=t._dur,c=t._startAt,g=t._targets,x=t.parent,y=x&&x.data==="nested"?x.vars.targets:g,T=t._overwrite==="auto"&&!Ye,b=t.timeline,v,O,C,S,q,k,N,A,D,X,W,H,G;if(b&&(!_||!n)&&(n="none"),t._ease=zt(n,Qt.ease),t._yEase=h?ji(zt(h===!0?n:h,Qt.ease)):0,h&&t._yoyo&&!t._repeat&&(h=t._yEase,t._yEase=t._ease,t._ease=h),t._from=!b&&!!i.runBackwards,!b||_&&!i.stagger){if(A=g[0]?Zt(g[0]).harness:0,H=A&&i[A.prop],v=Ee(i,er),c&&(c._zTime<0&&c.progress(1),e<0&&f&&o&&!p?c.render(-1,!0):c.revert(f&&m?Pe:Rn),c._lazy=0),s){if(At(t._startAt=Q.set(g,mt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!c&&ot(l),startAt:null,delay:0,onUpdate:u&&function(){return gt(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt||!o&&!p)&&t._startAt.revert(Pe),o&&m&&e<=0&&r<=0){e&&(t._zTime=e);return}}else if(f&&m&&!c){if(e&&(o=!1),C=mt({overwrite:!1,data:"isFromStart",lazy:o&&!c&&ot(l),immediateRender:o,stagger:0,parent:x},v),H&&(C[A.prop]=H),At(t._startAt=Q.set(g,C)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(rt?t._startAt.revert(Pe):t._startAt.render(-1,!0)),t._zTime=e,!o)a(t._startAt,L,L);else if(!e)return}for(t._pt=t._ptCache=0,l=m&&ot(l)||l&&!m,O=0;O<g.length;O++){if(q=g[O],N=q._gsap||sr(g)[O]._gsap,t._ptLookup[O]=X={},rr[N.id]&&Rt.length&&Ae(),W=y===g?O:y.indexOf(q),A&&(D=new A).init(q,H||v,t,W,y)!==!1&&(t._pt=S=new ut(t._pt,q,D.name,0,1,D.render,D,0,D.priority),D._props.forEach(function(ht){X[ht]=S}),D.priority&&(k=1)),!A||H)for(C in v)pt[C]&&(D=Ai(C,v,t,W,q,y))?D.priority&&(k=1):X[C]=S=pr.call(t,q,C,"get",v[C],W,y,0,i.stringFilter);t._op&&t._op[O]&&t.kill(q,t._op[O]),T&&t._pt&&(Mt=t,z.killTweensOf(q,X,t.globalTime(e)),G=!t.parent,Mt=0),t._pt&&l&&(rr[N.id]=1)}k&&Ii(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!G,_&&e<=0&&b.render(xt,!0,!0)},ns=function(t,e,r,i,n,s,o,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[e],f,h,_,p;if(!u)for(u=t._ptCache[e]=[],_=t._ptLookup,p=t._targets.length;p--;){if(f=_[p][e],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==e&&f.fp!==e;)f=f._next;if(!f)return mr=1,t.vars[e]="+=0",gr(t,o),mr=0,l?de(e+" not eligible for reset"):1;u.push(f)}for(p=u.length;p--;)h=u[p],f=h._pt||h,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=r-f.s,h.e&&(h.e=Y(r)+nt(h.e)),h.b&&(h.b=f.s+nt(h.b))},ss=function(t,e){var r=t[0]?Zt(t[0]).harness:0,i=r&&r.aliases,n,s,o,l;if(!i)return e;n=te({},e);for(s in i)if(s in n)for(l=i[s].split(","),o=l.length;o--;)n[l[o]]=n[s];return n},as=function(t,e,r,i){var n=e.ease||i||"power1.inOut",s,o;if(it(e))o=r[t]||(r[t]=[]),e.forEach(function(l,u){return o.push({t:u/(e.length-1)*100,v:l,e:n})});else for(s in e)o=r[s]||(r[s]=[]),s==="ease"||o.push({t:parseFloat(t),v:e[s],e:n})},be=function(t,e,r,i,n){return V(t)?t.call(e,r,i,n):$(t)&&~t.indexOf("random(")?ve(t):t},Ei=nr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ni={};lt(Ei+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Ni[a]=1});var Q=(function(a){Yr(t,a);function t(r,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:pe(i))||this;var l=o.vars,u=l.duration,f=l.delay,h=l.immediateRender,_=l.stagger,p=l.overwrite,m=l.keyframes,c=l.defaults,g=l.scrollTrigger,x=l.yoyoEase,y=i.parent||z,T=(it(r)||Wr(r)?jt(r[0]):"length"in i)?[r]:wt(r),b,v,O,C,S,q,k,N;if(o._targets=T.length?sr(T):de("GSAP target "+r+" not found. https://gsap.com",!dt.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=p,m||_||je(u)||je(f)){if(i=o.vars,b=o.timeline=new at({data:"nested",defaults:c||{},targets:y&&y.data==="nested"?y.vars.targets:T}),b.kill(),b.parent=b._dp=St(o),b._start=0,_||je(u)||je(f)){if(C=T.length,k=_&&mi(_),bt(_))for(S in _)~Ei.indexOf(S)&&(N||(N={}),N[S]=_[S]);for(v=0;v<C;v++)O=Ee(i,Ni),O.stagger=0,x&&(O.yoyoEase=x),N&&te(O,N),q=T[v],O.duration=+be(u,St(o),v,q,T),O.delay=(+be(f,St(o),v,q,T)||0)-o._delay,!_&&C===1&&O.delay&&(o._delay=f=O.delay,o._start+=f,O.delay=0),b.to(q,O,k?k(v,q,T):0),b._ease=P.none;b.duration()?u=f=0:o.timeline=0}else if(m){pe(mt(b.vars.defaults,{ease:"none"})),b._ease=zt(m.ease||i.ease||"none");var A=0,D,X,W;if(it(m))m.forEach(function(H){return b.to(T,H,">")}),b.duration();else{O={};for(S in m)S==="ease"||S==="easeEach"||as(S,m[S],O,m.easeEach);for(S in O)for(D=O[S].sort(function(H,G){return H.t-G.t}),A=0,v=0;v<D.length;v++)X=D[v],W={ease:X.e,duration:(X.t-(v?D[v-1].t:0))/100*u},W[S]=X.v,b.to(T,W,A),A+=W.duration;b.duration()<u&&b.to({},{duration:u-b.duration()})}}u||o.duration(u=b.duration())}else o.timeline=0;return p===!0&&!Ye&&(Mt=St(o),z.killTweensOf(T),Mt=0),Ct(y,St(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(h||!u&&!m&&o._start===J(y._time)&&ot(h)&&Ln(St(o))&&y.data!=="nested")&&(o._tTime=-L,o.render(Math.max(0,-f)||0)),g&&ci(St(o),g),o}var e=t.prototype;return e.render=function(i,n,s){var o=this._time,l=this._tDur,u=this._dur,f=i<0,h=i>l-L&&!f?l:i<L?0:i,_,p,m,c,g,x,y,T,b;if(!u)Fn(this,i,n,s);else if(h!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(_=h,T=this.timeline,this._repeat){if(c=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(c*100+i,n,s);if(_=J(h%c),h===l?(m=this._repeat,_=u):(g=J(h/c),m=~~g,m&&m===g?(_=u,m--):_>u&&(_=u)),x=this._yoyo&&m&1,x&&(b=this._yEase,_=u-_),g=ee(this._tTime,c),_===o&&!s&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(T&&this._yEase&&ki(T,x),this.vars.repeatRefresh&&!x&&!this._lock&&_!==c&&this._initted&&(this._lock=s=1,this.render(J(c*m),!0).invalidate()._lock=0))}if(!this._initted){if(hi(this,f?i:_,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&m!==g))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=h,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(b||this._ease)(_/u),this._from&&(this.ratio=y=1-y),!o&&h&&!n&&!g&&(gt(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(y,p.d),p=p._next;T&&T.render(i<0?i:T._dur*T._ease(_/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&or(this,i,n,s),gt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!n&&this.parent&>(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&or(this,i,!0,!0),(i||!u)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&At(this,1),!n&&!(f&&!o)&&(h||o||x)&&(gt(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},e.resetTo=function(i,n,s,o,l){we||vt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||gr(this,u),f=this._ease(u/this._dur),ns(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(Le(this,0),this.parent||li(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?xe(this):this.scrollTrigger&&this.scrollTrigger.kill(!!rt),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Mt&&Mt.vars.overwrite!==!0)._first||xe(this),this.parent&&s!==this.timeline.totalDuration()&&re(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?wt(i):o,u=this._ptLookup,f=this._pt,h,_,p,m,c,g,x;if((!n||n==="all")&&Mn(o,l))return n==="all"&&(this._pt=0),xe(this);for(h=this._op=this._op||[],n!=="all"&&($(n)&&(c={},lt(n,function(y){return c[y]=1}),n=c),n=ss(o,n)),x=o.length;x--;)if(~l.indexOf(o[x])){_=u[x],n==="all"?(h[x]=n,m=_,p={}):(p=h[x]=h[x]||{},m=n);for(c in m)g=_&&_[c],g&&((!("kill"in g.d)||g.d.kill(c)===!0)&&Ne(this,g,"_pt"),delete _[c]),p!=="all"&&(p[c]=1)}return this._initted&&!this._pt&&f&&xe(this),this},t.to=function(i,n){return new t(i,n,arguments[2])},t.from=function(i,n){return me(1,arguments)},t.delayedCall=function(i,n,s,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},t.fromTo=function(i,n,s){return me(2,arguments)},t.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(i,n)},t.killTweensOf=function(i,n,s){return z.killTweensOf(i,n,s)},t})(Te);mt(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),lt("staggerTo,staggerFrom,staggerFromTo",function(a){Q[a]=function(){var t=new at,e=ur.call(arguments,0);return e.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,e)}});var vr=function(t,e,r){return t[e]=r},Mi=function(t,e,r){return t[e](r)},os=function(t,e,r,i){return t[e](i.fp,r)},ls=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return V(t[e])?Mi:We(t[e])&&t.setAttribute?ls:vr},Di=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},us=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Li=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},yr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fs=function(t,e,r,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(t,e,r),n=s},cs=function(t){for(var e=this._pt,r,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?Ne(this,e,"_pt"):e.dep||(r=1),e=i;return!r},hs=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},Ii=function(t){for(var e=t._pt,r,i,n,s;e;){for(r=e._next,i=n;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:s)?e._prev._next=e:n=e,(e._next=i)?i._prev=e:s=e,e=r}t._pt=n},ut=(function(){function a(e,r,i,n,s,o,l,u,f){this.t=r,this.s=n,this.c=s,this.p=i,this.r=o||Di,this.d=l||this,this.set=u||vr,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=a.prototype;return t.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=hs,this.m=r,this.mt=n,this.tween=i},a})();lt(nr+"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(a){return er[a]=1}),_t.TweenMax=_t.TweenLite=Q,_t.TimelineLite=_t.TimelineMax=at,z=new at({sortChildren:!1,defaults:Qt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),dt.stringFilter=Si;var Ht=[],Ie={},ds=[],Fi=0,_s=0,wr=function(t){return(Ie[t]||ds).map(function(e){return e()})},Tr=function(){var t=Date.now(),e=[];t-Fi>2&&(wr("matchMediaInit"),Ht.forEach(function(r){var i=r.queries,n=r.conditions,s,o,l,u;for(o in i)s=qt.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(r.revert(),l&&e.push(r))}),wr("matchMediaRevert"),e.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Fi=t,wr("matchMedia"))},Zi=(function(){function a(e,r){this.selector=r&&fr(r),this.data=[],this._r=[],this.isReverted=!1,this.id=_s++,e&&this.add(e)}var t=a.prototype;return t.add=function(r,i,n){V(r)&&(n=i,i=r,r=V);var s=this,o=function(){var u=Z,f=s.selector,h;return u&&u!==s&&u.data.push(s),n&&(s.selector=fr(n)),Z=s,h=i.apply(s,arguments),V(h)&&s._r.push(h),Z=u,s.selector=f,s.isReverted=!1,h};return s.last=o,r===V?o(s,function(l){return s.add(null,l)}):r?s[r]=o:o},t.ignore=function(r){var i=Z;Z=null,r(this),Z=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof a?r.push.apply(r,i.getTweens()):i instanceof Q&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var n=this;if(r?(function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),l=n.data.length;l--;)u=n.data[l],u instanceof at?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Q)&&u.revert&&u.revert(r);n._r.forEach(function(f){return f(r,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Ht.length;s--;)Ht[s].id===this.id&&Ht.splice(s,1)},t.revert=function(r){this.kill(r||{})},a})(),ps=(function(){function a(e){this.contexts=[],this.scope=e,Z&&Z.data.push(this)}var t=a.prototype;return t.add=function(r,i,n){bt(r)||(r={matches:r});var s=new Zi(0,n||this.scope),o=s.conditions={},l,u,f;Z&&!s.selector&&(s.selector=Z.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(u in r)u==="all"?f=1:(l=qt.matchMedia(r[u]),l&&(Ht.indexOf(s)<0&&Ht.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(Tr):l.addEventListener("change",Tr)));return f&&i(s,function(h){return s.add(null,h)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},a})(),Fe={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(i){return bi(i)})},timeline:function(t){return new at(t)},getTweensOf:function(t,e){return z.getTweensOf(t,e)},getProperty:function(t,e,r,i){$(t)&&(t=wt(t)[0]);var n=Zt(t||{}).get,s=r?ai:si;return r==="native"&&(r=""),t&&(e?s((pt[e]&&pt[e].get||n)(t,e,r,i)):function(o,l,u){return s((pt[o]&&pt[o].get||n)(t,o,l,u))})},quickSetter:function(t,e,r){if(t=wt(t),t.length>1){var i=t.map(function(f){return ft.quickSetter(f,e,r)}),n=i.length;return function(f){for(var h=n;h--;)i[h](f)}}t=t[0]||{};var s=pt[e],o=Zt(t),l=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(f){var h=new s;ie._pt=0,h.init(t,r?f+r:f,ie,0,[t]),h.render(1,h),ie._pt&&yr(1,ie)}:o.set(t,l);return s?u:function(f){return u(t,l,r?f+r:f,o,1)}},quickTo:function(t,e,r){var i,n=ft.to(t,mt((i={},i[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,u,f){return n.resetTo(e,l,u,f)};return s.tween=n,s},isTweening:function(t){return z.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=zt(t.ease,Qt.ease)),oi(Qt,t||{})},config:function(t){return oi(dt,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!pt[o]&&!_t[o]&&de(e+" effect requires "+o+" plugin.")}),ir[e]=function(o,l,u){return r(wt(o),mt(l||{},n),u)},s&&(at.prototype[e]=function(o,l,u){return this.add(ir[e](o,bt(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,e){P[t]=zt(e)},parseEase:function(t,e){return arguments.length?zt(t,e):P},getById:function(t){return z.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var r=new at(t),i,n;for(r.smoothChildTiming=ot(t.smoothChildTiming),z.remove(r),r._dp=0,r._time=r._tTime=z._time,i=z._first;i;)n=i._next,(e||!(!i._dur&&i instanceof Q&&i.vars.onComplete===i._targets[0]))&&Ct(r,i,i._start-i._delay),i=n;return Ct(z,r,0),r},context:function(t,e){return t?new Zi(t,e):Z},matchMedia:function(t){return new ps(t)},matchMediaRefresh:function(){return Ht.forEach(function(t){var e=t.conditions,r,i;for(i in e)e[i]&&(e[i]=!1,r=1);r&&t.revert()})||Tr()},addEventListener:function(t,e){var r=Ie[t]||(Ie[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Ie[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:Xn,wrapYoyo:Wn,distribute:mi,random:vi,snap:gi,normalize:Yn,getUnit:nt,clamp:zn,splitColor:qi,toArray:wt,selector:fr,mapRange:yi,pipe:Hn,unitize:Vn,interpolate:Gn,shuffle:pi},install:$r,effects:ir,ticker:vt,updateRoot:at.updateRoot,plugins:pt,globalTimeline:z,core:{PropTween:ut,globals:ti,Tween:Q,Timeline:at,Animation:Te,getCache:Zt,_removeLinkedListItem:Ne,reverting:function(){return rt},context:function(t){return t&&Z&&(Z.data.push(t),t._ctx=Z),Z},suppressOverwrites:function(t){return Ye=t}}};lt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Fe[a]=Q[a]}),vt.add(at.updateRoot),ie=Fe.to({},{duration:0});var ms=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},gs=function(t,e){var r=t._targets,i,n,s;for(i in e)for(n=r.length;n--;)s=t._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=ms(s,i)),s&&s.modifier&&s.modifier(e[i],t,r[n],i))},br=function(t,e){return{name:t,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if($(n)&&(l={},lt(n,function(f){return l[f]=1}),n=l),e){l={};for(u in n)l[u]=e(n[u]);n=l}gs(o,n)}}}},ft=Fe.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,o,l;this.tween=r;for(s in e)l=t.getAttribute(s)||"",o=this.add(t,"setAttribute",(l||0)+"",e[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)rt?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},br("roundProps",cr),br("modifiers"),br("snap",gi))||Fe;Q.version=at.version=ft.version="3.13.0",Kr=1,Ge()&&ne(),P.Power0,P.Power1,P.Power2,P.Power3,P.Power4,P.Linear,P.Quad,P.Cubic,P.Quart,P.Quint,P.Strong,P.Elastic,P.Back,P.SteppedEase,P.Bounce,P.Sine,P.Expo,P.Circ;/*!
|
|
31
31
|
* CSSPlugin 3.13.0
|
|
32
32
|
* https://gsap.com
|
|
33
33
|
*
|
|
34
34
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
35
35
|
* Subject to the terms at https://gsap.com/standard-license
|
|
36
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"})}));
|
|
37
|
+
*/var Bi,Dt,se,qr,Vt,zi,Cr,vs=function(){return typeof window<"u"},kt={},Yt=180/Math.PI,ae=Math.PI/180,oe=Math.atan2,Ui=1e8,Or=/([A-Z])/g,xs=/(left|right|width|margin|padding|x)/i,ys=/[\s,\(]\S/,Ot={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Sr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},ws=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ts=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},bs=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Hi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Vi=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},qs=function(t,e,r){return t.style[e]=r},Cs=function(t,e,r){return t.style.setProperty(e,r)},Os=function(t,e,r){return t._gsap[e]=r},Ss=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},js=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},ks=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},U="transform",ct=U+"Origin",Ps=function a(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in kt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=Ot[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=Pt(i,o)}):this.tfm[t]=s.x?s[t]:Pt(i,t),t===ct&&(this.tfm.zOrigin=s.zOrigin);else return Ot.transform.split(",").forEach(function(o){return a.call(r,o,e)});if(this.props.indexOf(U)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ct,e,"")),t=U}(n||e)&&this.props.push(t,e,n[t])},Yi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Rs=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Or,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Cr(),(!n||!n.isStart)&&!r[U]&&(Yi(r),i.zOrigin&&r[ct]&&(r[ct]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xi=function(t,e){var r={target:t,props:[],revert:Rs,save:Ps};return t._gsap||ft.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},Wi,jr=function(t,e){var r=Dt.createElementNS?Dt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dt.createElement(t);return r&&r.style?r:Dt.createElement(t)},Tt=function a(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Or,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&a(t,le(e)||e,1)||""},Gi="O,Moz,ms,Ms,Webkit".split(","),le=function(t,e,r){var i=e||Vt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Gi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Gi[s]:"")+t},kr=function(){vs()&&window.document&&(Bi=window,Dt=Bi.document,se=Dt.documentElement,Vt=jr("div")||{style:{}},jr("div"),U=le(U),ct=U+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wi=!!le("perspective"),Cr=ft.core.reverting,qr=1)},Ji=function(t){var e=t.ownerSVGElement,r=jr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),se.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),se.removeChild(r),n},Qi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ki=function(t){var e,r;try{e=t.getBBox()}catch{e=Ji(t),r=1}return e&&(e.width||e.height)||r||(e=Ji(t)),e&&!e.width&&!e.x&&!e.y?{x:+Qi(t,["x","cx","x1"])||0,y:+Qi(t,["y","cy","y1"])||0,width:0,height:0}:e},$i=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Ki(t))},Xt=function(t,e){if(e){var r=t.style,i;e in kt&&e!==ct&&(e=U),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Or,"-$1").toLowerCase())):r.removeAttribute(e)}},Lt=function(t,e,r,i,n,s){var o=new ut(t._pt,e,r,0,1,s?Vi:Hi);return t._pt=o,o.b=i,o.e=n,t._props.push(r),o},tn={deg:1,rad:1,turn:1},As={grid:1,flex:1},It=function a(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",o=Vt.style,l=xs.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),h=100,_=i==="px",p=i==="%",m,c,g,x;if(i===s||!n||tn[i]||tn[s])return n;if(s!=="px"&&!_&&(n=a(t,e,r,"px")),x=t.getCTM&&$i(t),(p||s==="%")&&(kt[e]||~e.indexOf("adius")))return m=x?t.getBBox()[l?"width":"height"]:t[f],Y(p?n/m*h:n/100*m);if(o[l?"width":"height"]=h+(_?s:i),c=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,x&&(c=(t.ownerSVGElement||{}).parentNode),(!c||c===Dt||!c.appendChild)&&(c=Dt.body),g=c._gsap,g&&p&&g.width&&l&&g.time===vt.time&&!g.uncache)return Y(n/g.width*h);if(p&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=h+i,m=t[f],y?t.style[e]=y:Xt(t,e)}else(p||s==="%")&&!As[Tt(c,"display")]&&(o.position=Tt(t,"position")),c===t&&(o.position="static"),c.appendChild(Vt),m=Vt[f],c.removeChild(Vt),o.position="absolute";return l&&p&&(g=Zt(c),g.time=vt.time,g.width=c[f]),Y(_?m*n/h:m&&n?h/m*n:0)},Pt=function(t,e,r,i){var n;return qr||kr(),e in Ot&&e!=="transform"&&(e=Ot[e],~e.indexOf(",")&&(e=e.split(",")[0])),kt[e]&&e!=="transform"?(n=Ce(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Be(Tt(t,ct))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Ze[e]&&Ze[e](t,e,r)||Tt(t,e)||ii(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?It(t,e,n,r)+r:n},Es=function(t,e,r,i){if(!r||r==="none"){var n=le(e,t,1),s=n&&Tt(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=Tt(t,"borderTopColor"))}var o=new ut(this._pt,t.style,e,0,1,Li),l=0,u=0,f,h,_,p,m,c,g,x,y,T,b,v;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Tt(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(c=t.style[e],t.style[e]=i,i=Tt(t,e)||i,c?t.style[e]=c:Xt(t,e)),f=[r,i],Si(f),r=f[0],i=f[1],_=r.match(Kt)||[],v=i.match(Kt)||[],v.length){for(;h=Kt.exec(i);)g=h[0],y=i.substring(l,h.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),g!==(c=_[u++]||"")&&(p=parseFloat(c)||0,b=c.substr((p+"").length),g.charAt(1)==="="&&(g=$t(p,g)+b),x=parseFloat(g),T=g.substr((x+"").length),l=Kt.lastIndex-T.length,T||(T=T||dt.units[e]||b,l===i.length&&(i+=T,o.e+=T)),b!==T&&(p=It(t,e,c,T)||0),o._pt={_next:o._pt,p:y||u===1?y:",",s:p,c:x-p,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?Vi:Hi;return Jr.test(i)&&(o.e=0),this._pt=o,o},en={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ns=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=en[r]||r,e[1]=en[i]||i,e.join(" ")},Ms=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],kt[o]&&(l=1,o=o==="transformOrigin"?ct:U),Xt(r,o);l&&(Xt(r,U),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ce(r,1),s.uncache=1,Yi(i)))}},Ze={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new ut(t._pt,e,r,0,0,Ms);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},qe=[1,0,0,1,0,0],rn={},nn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},sn=function(t){var e=Tt(t,U);return nn(e)?qe:e.substr(7).match(Gr).map(Y)},Pr=function(t,e){var r=t._gsap||Zt(t),i=t.style,n=sn(t),s,o,l,u;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?qe:n):(n===qe&&!t.offsetParent&&t!==se&&!r.svg&&(l=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,o=t.nextElementSibling,se.appendChild(t)),n=sn(t),l?i.display=l:Xt(t,"display"),u&&(o?s.insertBefore(t,o):s?s.appendChild(t):se.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Rr=function(t,e,r,i,n,s){var o=t._gsap,l=n||Pr(t,!0),u=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,_=o.yOffset||0,p=l[0],m=l[1],c=l[2],g=l[3],x=l[4],y=l[5],T=e.split(" "),b=parseFloat(T[0])||0,v=parseFloat(T[1])||0,O,C,S,q;r?l!==qe&&(C=p*g-m*c)&&(S=b*(g/C)+v*(-c/C)+(c*y-g*x)/C,q=b*(-m/C)+v*(p/C)-(p*y-m*x)/C,b=S,v=q):(O=Ki(t),b=O.x+(~T[0].indexOf("%")?b/100*O.width:b),v=O.y+(~(T[1]||T[0]).indexOf("%")?v/100*O.height:v)),i||i!==!1&&o.smooth?(x=b-u,y=v-f,o.xOffset=h+(x*p+y*c)-x,o.yOffset=_+(x*m+y*g)-y):o.xOffset=o.yOffset=0,o.xOrigin=b,o.yOrigin=v,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[ct]="0px 0px",s&&(Lt(s,o,"xOrigin",u,b),Lt(s,o,"yOrigin",f,v),Lt(s,o,"xOffset",h,o.xOffset),Lt(s,o,"yOffset",_,o.yOffset)),t.setAttribute("data-svg-origin",b+" "+v)},Ce=function(t,e){var r=t._gsap||new Ri(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",o="deg",l=getComputedStyle(t),u=Tt(t,ct)||"0",f,h,_,p,m,c,g,x,y,T,b,v,O,C,S,q,k,N,A,D,X,W,H,G,ht,Jt,w,j,E,K,tt,et;return f=h=_=c=g=x=y=T=b=0,p=m=1,r.svg=!!(t.getCTM&&$i(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[U]=(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[U]!=="none"?l[U]:"")),i.scale=i.rotate=i.translate="none"),C=Pr(t,r.svg),r.svg&&(r.uncache?(ht=t.getBBox(),u=r.xOrigin-ht.x+"px "+(r.yOrigin-ht.y)+"px",G=""):G=!e&&t.getAttribute("data-svg-origin"),Rr(t,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,C)),v=r.xOrigin||0,O=r.yOrigin||0,C!==qe&&(N=C[0],A=C[1],D=C[2],X=C[3],f=W=C[4],h=H=C[5],C.length===6?(p=Math.sqrt(N*N+A*A),m=Math.sqrt(X*X+D*D),c=N||A?oe(A,N)*Yt:0,y=D||X?oe(D,X)*Yt+c:0,y&&(m*=Math.abs(Math.cos(y*ae))),r.svg&&(f-=v-(v*N+O*D),h-=O-(v*A+O*X))):(et=C[6],K=C[7],w=C[8],j=C[9],E=C[10],tt=C[11],f=C[12],h=C[13],_=C[14],S=oe(et,E),g=S*Yt,S&&(q=Math.cos(-S),k=Math.sin(-S),G=W*q+w*k,ht=H*q+j*k,Jt=et*q+E*k,w=W*-k+w*q,j=H*-k+j*q,E=et*-k+E*q,tt=K*-k+tt*q,W=G,H=ht,et=Jt),S=oe(-D,E),x=S*Yt,S&&(q=Math.cos(-S),k=Math.sin(-S),G=N*q-w*k,ht=A*q-j*k,Jt=D*q-E*k,tt=X*k+tt*q,N=G,A=ht,D=Jt),S=oe(A,N),c=S*Yt,S&&(q=Math.cos(S),k=Math.sin(S),G=N*q+A*k,ht=W*q+H*k,A=A*q-N*k,H=H*q-W*k,N=G,W=ht),g&&Math.abs(g)+Math.abs(c)>359.9&&(g=c=0,x=180-x),p=Y(Math.sqrt(N*N+A*A+D*D)),m=Y(Math.sqrt(H*H+et*et)),S=oe(W,H),y=Math.abs(S)>2e-4?S*Yt:0,b=tt?1/(tt<0?-tt:tt):0),r.svg&&(G=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!nn(Tt(t,U)),G&&t.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(p*=-1,y+=c<=0?180:-180,c+=c<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=f-((r.xPercent=f&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=h-((r.yPercent=h&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=Y(p),r.scaleY=Y(m),r.rotation=Y(c)+o,r.rotationX=Y(g)+o,r.rotationY=Y(x)+o,r.skewX=y+o,r.skewY=T+o,r.transformPerspective=b+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!e&&r.zOrigin||0)&&(i[ct]=Be(u)),r.xOffset=r.yOffset=0,r.force3D=dt.force3D,r.renderTransform=r.svg?Ls:Wi?an:Ds,r.uncache=0,r},Be=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ar=function(t,e,r){var i=nt(e);return Y(parseFloat(e)+parseFloat(It(t,"x",r+"px",i)))+i},Ds=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,an(t,e)},Wt="0deg",Oe="0px",Gt=") ",an=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.z,u=r.rotation,f=r.rotationY,h=r.rotationX,_=r.skewX,p=r.skewY,m=r.scaleX,c=r.scaleY,g=r.transformPerspective,x=r.force3D,y=r.target,T=r.zOrigin,b="",v=x==="auto"&&t&&t!==1||x===!0;if(T&&(h!==Wt||f!==Wt)){var O=parseFloat(f)*ae,C=Math.sin(O),S=Math.cos(O),q;O=parseFloat(h)*ae,q=Math.cos(O),s=Ar(y,s,C*q*-T),o=Ar(y,o,-Math.sin(O)*-T),l=Ar(y,l,S*q*-T+T)}g!==Oe&&(b+="perspective("+g+Gt),(i||n)&&(b+="translate("+i+"%, "+n+"%) "),(v||s!==Oe||o!==Oe||l!==Oe)&&(b+=l!==Oe||v?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Gt),u!==Wt&&(b+="rotate("+u+Gt),f!==Wt&&(b+="rotateY("+f+Gt),h!==Wt&&(b+="rotateX("+h+Gt),(_!==Wt||p!==Wt)&&(b+="skew("+_+", "+p+Gt),(m!==1||c!==1)&&(b+="scale("+m+", "+c+Gt),y.style[U]=b||"translate(0, 0)"},Ls=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.rotation,u=r.skewX,f=r.skewY,h=r.scaleX,_=r.scaleY,p=r.target,m=r.xOrigin,c=r.yOrigin,g=r.xOffset,x=r.yOffset,y=r.forceCSS,T=parseFloat(s),b=parseFloat(o),v,O,C,S,q;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=ae,u*=ae,v=Math.cos(l)*h,O=Math.sin(l)*h,C=Math.sin(l-u)*-_,S=Math.cos(l-u)*_,u&&(f*=ae,q=Math.tan(u-f),q=Math.sqrt(1+q*q),C*=q,S*=q,f&&(q=Math.tan(f),q=Math.sqrt(1+q*q),v*=q,O*=q)),v=Y(v),O=Y(O),C=Y(C),S=Y(S)):(v=h,S=_,O=C=0),(T&&!~(s+"").indexOf("px")||b&&!~(o+"").indexOf("px"))&&(T=It(p,"x",s,"px"),b=It(p,"y",o,"px")),(m||c||g||x)&&(T=Y(T+m-(m*v+c*C)+g),b=Y(b+c-(m*O+c*S)+x)),(i||n)&&(q=p.getBBox(),T=Y(T+i/100*q.width),b=Y(b+n/100*q.height)),q="matrix("+v+","+O+","+C+","+S+","+T+","+b+")",p.setAttribute("transform",q),y&&(p.style[U]=q)},Is=function(t,e,r,i,n){var s=360,o=$(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),u=l-i,f=i+u+"deg",h,_;return o&&(h=n.split("_")[1],h==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),h==="cw"&&u<0?u=(u+s*Ui)%s-~~(u/s)*s:h==="ccw"&&u>0&&(u=(u-s*Ui)%s-~~(u/s)*s)),t._pt=_=new ut(t._pt,e,r,i,u,ws),_.e=f,_.u="deg",t._props.push(r),_},on=function(t,e){for(var r in e)t[r]=e[r];return t},Fs=function(t,e,r){var i=on({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,u,f,h,_,p,m;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[U]=e,o=Ce(r,1),Xt(r,U),r.setAttribute("transform",u)):(u=getComputedStyle(r)[U],s[U]=e,o=Ce(r,1),s[U]=u);for(l in kt)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(p=nt(u),m=nt(f),h=p!==m?It(r,l,u,m):parseFloat(u),_=parseFloat(f),t._pt=new ut(t._pt,o,l,h,_-h,Sr),t._pt.u=m||0,t._props.push(l));on(o,i)};lt("padding,margin,Width,Radius",function(a,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(o){return t<2?a+o:"border"+o+a});Ze[t>1?"border"+a:a]=function(o,l,u,f,h){var _,p;if(arguments.length<4)return _=s.map(function(m){return Pt(o,m,u)}),p=_.join(" "),p.split(_[0]).length===5?_[0]:p;_=(f+"").split(" "),p={},s.forEach(function(m,c){return p[m]=_[c]=_[c]||_[(c-1)/2|0]}),o.init(l,p,h)}});var ln={name:"css",register:kr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,o=t.style,l=r.vars.startAt,u,f,h,_,p,m,c,g,x,y,T,b,v,O,C,S;qr||kr(),this.styles=this.styles||Xi(t),S=this.styles.props,this.tween=r;for(c in e)if(c!=="autoRound"&&(f=e[c],!(pt[c]&&Ai(c,e,r,i,t,n)))){if(p=typeof f,m=Ze[c],p==="function"&&(f=f.call(r,i,t,n),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,c,f,r)&&(C=1);else if(c.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(c)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=nt(u),x=nt(f)),x?g!==x&&(u=It(t,c,u,x)+x):g&&(f+=g),this.add(o,"setProperty",u,f,i,n,0,0,c),s.push(c),S.push(c,0,o[c]);else if(p!=="undefined"){if(l&&c in l?(u=typeof l[c]=="function"?l[c].call(r,i,t,n):l[c],$(u)&&~u.indexOf("random(")&&(u=ve(u)),nt(u+"")||u==="auto"||(u+=dt.units[c]||nt(Pt(t,c))||""),(u+"").charAt(1)==="="&&(u=Pt(t,c))):u=Pt(t,c),_=parseFloat(u),y=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),h=parseFloat(f),c in Ot&&(c==="autoAlpha"&&(_===1&&Pt(t,"visibility")==="hidden"&&h&&(_=0),S.push("visibility",0,o.visibility),Lt(this,o,"visibility",_?"inherit":"hidden",h?"inherit":"hidden",!h)),c!=="scale"&&c!=="transform"&&(c=Ot[c],~c.indexOf(",")&&(c=c.split(",")[0]))),T=c in kt,T){if(this.styles.save(c),p==="string"&&f.substring(0,6)==="var(--"&&(f=Tt(t,f.substring(4,f.indexOf(")"))),h=parseFloat(f)),b||(v=t._gsap,v.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),O=e.smoothOrigin!==!1&&v.smooth,b=this._pt=new ut(this._pt,o,U,0,1,v.renderTransform,v,0,-1),b.dep=1),c==="scale")this._pt=new ut(this._pt,v,"scaleY",v.scaleY,(y?$t(v.scaleY,y+h):h)-v.scaleY||0,Sr),this._pt.u=0,s.push("scaleY",c),c+="X";else if(c==="transformOrigin"){S.push(ct,0,o[ct]),f=Ns(f),v.svg?Rr(t,f,0,O,0,this):(x=parseFloat(f.split(" ")[2])||0,x!==v.zOrigin&&Lt(this,v,"zOrigin",v.zOrigin,x),Lt(this,o,c,Be(u),Be(f)));continue}else if(c==="svgOrigin"){Rr(t,f,1,O,0,this);continue}else if(c in rn){Is(this,v,c,_,y?$t(_,y+f):f);continue}else if(c==="smoothOrigin"){Lt(this,v,"smooth",v.smooth,f);continue}else if(c==="force3D"){v[c]=f;continue}else if(c==="transform"){Fs(this,f,t);continue}}else c in o||(c=le(c)||c);if(T||(h||h===0)&&(_||_===0)&&!ys.test(f)&&c in o)g=(u+"").substr((_+"").length),h||(h=0),x=nt(f)||(c in dt.units?dt.units[c]:g),g!==x&&(_=It(t,c,u,x)),this._pt=new ut(this._pt,T?v:o,c,_,(y?$t(_,y+h):h)-_,!T&&(x==="px"||c==="zIndex")&&e.autoRound!==!1?bs:Sr),this._pt.u=x||0,g!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=Ts);else if(c in o)Es.call(this,t,c,u,y?y+f:f);else if(c in t)this.add(t,c,u||t[c],y?y+f:f,i,n);else if(c!=="parseTransform"){tr(c,f);continue}T||(c in o?S.push(c,0,o[c]):typeof t[c]=="function"?S.push(c,2,t[c]()):S.push(c,1,u||t[c])),s.push(c)}}C&&Ii(this)},render:function(t,e){if(e.tween._time||!Cr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Pt,aliases:Ot,getSetter:function(t,e,r){var i=Ot[e];return i&&i.indexOf(",")<0&&(e=i),e in kt&&e!==ct&&(t._gsap.x||Pt(t,"x"))?r&&zi===r?e==="scale"?Ss:Os:(zi=r||{})&&(e==="scale"?js:ks):t.style&&!We(t.style[e])?qs:~e.indexOf("-")?Cs:xr(t,e)},core:{_removeProperty:Xt,_getMatrix:Pr}};ft.utils.checkPrefix=le,ft.core.getStyleSaver=Xi,(function(a,t,e,r){var i=lt(a+","+t+","+e,function(n){kt[n]=1});lt(t,function(n){dt.units[n]="deg",rn[n]=1}),Ot[i[13]]=a+","+t,lt(r,function(n){var s=n.split(":");Ot[s[1]]=i[s[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"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"}),ft.registerPlugin(ln);var ue=ft.registerPlugin(ln)||ft;ue.core.Tween;const ze=(a,t,e,r)=>t&&(Array.isArray(t)?t.length>0:t)?a.to(t,e,r):a,un=(a,t)=>{pn.useGSAP(()=>{const e=ue.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:a.current,navLabels:ue.utils.toArray(".nav-label"),navIconWrappers:ue.utils.toArray(".nav-icon-wrapper"),navIcons:ue.utils.toArray(".nav-icon"),navLinkItems:ue.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")};t?Zs(e,r):Bs(e,r)},{scope:a,dependencies:[t]})},Zs=(a,t)=>{a.to(t.navbar,{width:"6rem"},.2).to(t.profileUserInfo,{display:"none"},0).to(t.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},.1).to(t.navLabels,{opacity:0,width:30,marginLeft:0},0).to(t.navIcons,{scale:.9},0).to(t.navContentWrapper,{backgroundColor:"transparent"},0),ze(a,t.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="none"}},0),ze(a,t.buttonContentChevron,{display:"none"},0).to(t.separatorProfile,{display:"none"},0).to(t.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(t.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)},Bs=(a,t)=>{a.to(t.navLinkItems,{borderRadius:"10px",duration:.3},0).to(t.navbar,{width:"20rem"},-1),ze(a,t.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="flex"}},0),ze(a,t.buttonContentChevron,{display:"flex"},0).to(t.buttonContentChevron,{display:"flex"},0).to(t.separatorProfile,{display:"flex"},0).to(t.profileUserInfo,{display:"flex"},.3).to(t.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(t.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(t.separatorProfile,{display:"flex"},0).to(t.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(t.navIcons,{scale:1},.3)},zs=({user:a,sessions:t,handleLogout:e,handleTokenLogin:r,links:i,isActiveModalNotification:n,handleNotificationClick:s,handleProfileClick:o})=>{const[l,u]=B.useState(!1),{navbarRef:f}=Hr(l);un(f,l);const[h,_]=B.useState(!1),[p,m]=B.useState(!1),{pageLinks:c,utilLinks:g,isLinkActive:x}=Vr(a,i),y=Ue.useNavigate(),T=B.useRef(null);B.useEffect(()=>{const C=S=>{T.current&&!T.current.contains(S.target)&&p&&m(!1)};return p&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}},[p,m]),B.useEffect(()=>{l&&_(!1)},[l]);const b=()=>{m(!p)},v=()=>{m(!1),u(!l)},O=()=>{_(l?!1:!h)};return d.jsxs("div",{ref:f,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:[d.jsx(zr,{isCollapsed:l,onToggle:v}),d.jsx(Ur,{logoUrl:a?.company_id.logo||"",companyName:a?.company_id.name}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx(Ve,{links:c,isLinkActive:x}),d.jsx("div",{className:"flex-grow"}),d.jsx(Ve,{links:g,componentBadge:()=>d.jsx(Br,{notificationsCount:0}),onClick:s,isLinkActive:x,activeModal:n}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(He,{sessions:t,user:a,isExpanded:h,showOptions:!0,onProfileClick:l?b:o,onClick:O,onClickLogout:()=>e(a),handleTokenLogin:C=>{r(C),_(!1)}})}),l&&!h&&p&&d.jsx(d.Fragment,{children:d.jsx(Zr,{sessionsShow:t,handleTokenLogin:r,onClickLogout:()=>e(a),menuRef:T,onProfileClick:()=>y("/profile")})})]})},Us=({children:a})=>d.jsxs("div",{className:"flex h-screen w-full",children:[a,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(Ue.Outlet,{})})]}),Hs=(a,t=!0)=>{const e=B.useRef(null);return B.useEffect(()=>{if(!t)return;const r=i=>{e.current&&!e.current.contains(i.target)&&a()};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})}},[a,t]),e};M.Badge=Br,M.Button=Tn,M.CompanyLogo=Ur,M.Icons=Ft,M.Input=qn,M.LayoutGeneric=Us,M.Menu=Zr,M.NavbarCollapseButton=zr,M.NavbarLinks=Ve,M.Sidebar=zs,M.UserProfile=He,M.useClickOutside=Hs,M.useNavbarAnimations=un,M.useNavbarCollapse=Hr,M.useNavbarLinks=Vr,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|