@gardenfi/garden-book 0.2.16 → 0.2.17
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/ui.cjs.js +1 -1
- package/dist/ui.es.js +15 -0
- package/dist/ui.umd.js +3 -3
- package/package.json +1 -1
package/dist/ui.umd.js
CHANGED
|
@@ -44,7 +44,7 @@ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHid
|
|
|
44
44
|
|
|
45
45
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return React__namespace.useEffect(()=>{e&&(document.getElementById(e)||console.error(i))},[i,e]),null},DESCRIPTION_WARNING_NAME="DialogDescriptionWarning",DescriptionWarning=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;return React__namespace.useEffect(()=>{var a;const s=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Root$1=Dialog,Trigger=DialogTrigger,Portal$1=DialogPortal,Overlay$1=DialogOverlay,Content$1=DialogContent,Title=DialogTitle,Description=DialogDescription,Close=DialogClose;function __insertCSS(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}const DrawerContext=React.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),useDrawerContext=()=>{const e=React.useContext(DrawerContext);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};__insertCSS(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
46
46
|
[data-state=closed]
|
|
47
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function isMobileFirefox(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function isMac(){return testPlatform(/^Mac/)}function isIPhone(){return testPlatform(/^iPhone/)}function isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function isIPad(){return testPlatform(/^iPad/)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function testPlatform(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const KEYBOARD_BUFFER=24,useIsomorphicLayoutEffect$1=typeof window<"u"?React.useLayoutEffect:React.useEffect;function chain$1(...e){return(...t)=>{for(let i of e)typeof i=="function"&&i(...t)}}const visualViewport=typeof document<"u"&&window.visualViewport;function isScrollable(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function getScrollParent(e){for(isScrollable(e)&&(e=e.parentElement);e&&!isScrollable(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const nonTextInputTypes=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let preventScrollCount=0,restore;function usePreventScroll(e={}){let{isDisabled:t}=e;useIsomorphicLayoutEffect$1(()=>{if(!t)return preventScrollCount++,preventScrollCount===1&&isIOS()&&(restore=preventScrollMobileSafari()),()=>{preventScrollCount--,preventScrollCount===0&&(restore==null||restore())}},[t])}function preventScrollMobileSafari(){let e,t=0,i=d=>{e=getScrollParent(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},n=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let p=d.changedTouches[0].pageY,b=e.scrollTop,y=e.scrollHeight-e.clientHeight;y!==0&&((b<=0&&p>t||b>=y&&p<t)&&d.preventDefault(),t=p)},s=d=>{let p=d.target;isInput(p)&&p!==document.activeElement&&(d.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=d=>{let p=d.target;isInput(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",visualViewport&&(visualViewport.height<window.innerHeight?requestAnimationFrame(()=>{scrollIntoView(p)}):visualViewport.addEventListener("resize",()=>scrollIntoView(p),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=chain$1(setStyle(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=chain$1(addEvent(document,"touchstart",i,{passive:!1,capture:!0}),addEvent(document,"touchmove",n,{passive:!1,capture:!0}),addEvent(document,"touchend",s,{passive:!1,capture:!0}),addEvent(document,"focus",a,!0),addEvent(window,"scroll",o));return()=>{u(),f(),window.scrollTo(l,c)}}function setStyle(e,t,i){let n=e.style[t];return e.style[t]=i,()=>{e.style[t]=n}}function addEvent(e,t,i,n){return e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i,n)}}function scrollIntoView(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let i=getScrollParent(e);if(i!==document.documentElement&&i!==document.body&&i!==e){let n=i.getBoundingClientRect().top,s=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const o=i.getBoundingClientRect().bottom+KEYBOARD_BUFFER;a>o&&(i.scrollTop+=s-n)}e=i.parentElement}}function isInput(e){return e instanceof HTMLInputElement&&!nonTextInputTypes.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function setRef(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function composeRefs(...e){return t=>e.forEach(i=>setRef(i,t))}function useComposedRefs(...e){return React__namespace.useCallback(composeRefs(...e),e)}const cache=new WeakMap;function set(e,t,i=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([s,a])=>{if(s.startsWith("--")){e.style.setProperty(s,a);return}n[s]=e.style[s],e.style[s]=a}),!i&&cache.set(e,n)}function reset(e,t){if(!e||!(e instanceof HTMLElement))return;let i=cache.get(e);i&&(e.style[t]=i[t])}const isVertical=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function getTranslate(e,t){if(!e)return null;const i=window.getComputedStyle(e),n=i.transform||i.webkitTransform||i.mozTransform;let s=n.match(/^matrix3d\((.+)\)$/);return s?parseFloat(s[1].split(", ")[isVertical(t)?13:12]):(s=n.match(/^matrix\((.+)\)$/),s?parseFloat(s[1].split(", ")[isVertical(t)?5:4]):null)}function dampenValue(e){return 8*(Math.log(e+1)-2)}function assignStyle(e,t){if(!e)return()=>{};const i=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=i}}function chain(...e){return(...t)=>{for(const i of e)typeof i=="function"&&i(...t)}}const TRANSITIONS={DURATION:.5,EASE:[.32,.72,0,1]},VELOCITY_THRESHOLD=.4,CLOSE_THRESHOLD=.25,SCROLL_LOCK_TIMEOUT=100,BORDER_RADIUS=8,NESTED_DISPLACEMENT=16,WINDOW_TOP_OFFSET=26,DRAG_CLASS="vaul-dragging";function useCallbackRef(e){const t=React.useRef(e);return React.useEffect(()=>{t.current=e}),React.useMemo(()=>(...i)=>t.current==null?void 0:t.current.call(t,...i),[])}function useUncontrolledState({defaultProp:e,onChange:t}){const i=React.useState(e),[n]=i,s=React.useRef(n),a=useCallbackRef(t);return React.useEffect(()=>{s.current!==n&&(a(n),s.current=n)},[n,s,a]),i}function useControllableState({prop:e,defaultProp:t,onChange:i=()=>{}}){const[n,s]=useUncontrolledState({defaultProp:t,onChange:i}),a=e!==void 0,o=a?e:n,l=useCallbackRef(i),c=React.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else s(u)},[a,e,s,l]);return[o,c]}function useSnapPoints({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:i,drawerRef:n,overlayRef:s,fadeFromIndex:a,onSnapPointChange:o,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[f,d]=useControllableState({prop:e,defaultProp:i==null?void 0:i[0],onChange:t}),[p,b]=React.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);React.useEffect(()=>{function L(){b({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);const y=React.useMemo(()=>f===(i==null?void 0:i[i.length-1])||null,[i,f]),C=React.useMemo(()=>{var L;return(L=i==null?void 0:i.findIndex(_=>_===f))!=null?L:null},[i,f]),P=i&&i.length>0&&(a||a===0)&&!Number.isNaN(a)&&i[a]===f||!i,m=React.useMemo(()=>{const L=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var _;return(_=i==null?void 0:i.map(k=>{const $=typeof k=="string";let z=0;if($&&(z=parseInt(k,10)),isVertical(l)){const N=$?z:p?k*L.height:0;return p?l==="bottom"?L.height-N:-L.height+N:N}const O=$?z:p?k*L.width:0;return p?l==="right"?L.width-O:-L.width+O:O}))!=null?_:[]},[i,p,c]),x=React.useMemo(()=>C!==null?m==null?void 0:m[C]:null,[m,C]),g=React.useCallback(L=>{var _;const k=(_=m==null?void 0:m.findIndex($=>$===L))!=null?_:null;o(k),set(n.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(l)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`}),m&&k!==m.length-1&&a!==void 0&&k!==a&&k<a?set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"0"}):set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"1"}),d(i==null?void 0:i[Math.max(k,0)])},[n.current,i,m,a,s,d]);React.useEffect(()=>{if(f||e){var L;const _=(L=i==null?void 0:i.findIndex(k=>k===e||k===f))!=null?L:-1;m&&_!==-1&&typeof m[_]=="number"&&g(m[_])}},[f,e,i,m,g]);function S({draggedDistance:L,closeDrawer:_,velocity:k,dismissible:$}){if(a===void 0)return;const z=l==="bottom"||l==="right"?(x??0)-L:(x??0)+L,O=C===a-1,N=C===0,K=L>0;if(O&&set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`}),!u&&k>2&&!K){$?_():g(m[0]);return}if(!u&&k>2&&K&&m&&i){g(m[i.length-1]);return}const B=m==null?void 0:m.reduce((V,R)=>typeof V!="number"||typeof R!="number"?V:Math.abs(R-z)<Math.abs(V-z)?R:V),A=isVertical(l)?window.innerHeight:window.innerWidth;if(k>VELOCITY_THRESHOLD&&Math.abs(L)<A*.4){const V=K?1:-1;if(V>0&&y&&i){g(m[i.length-1]);return}if(N&&V<0&&$&&_(),C===null)return;g(m[C+V]);return}g(B)}function E({draggedDistance:L}){if(x===null)return;const _=l==="bottom"||l==="right"?x-L:x+L;(l==="bottom"||l==="right")&&_<m[m.length-1]||(l==="top"||l==="left")&&_>m[m.length-1]||set(n.current,{transform:isVertical(l)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function T(L,_){if(!i||typeof C!="number"||!m||a===void 0)return null;const k=C===a-1;if(C>=a&&_)return 0;if(k&&!_)return 1;if(!P&&!k)return null;const z=k?C+1:C-1,O=k?m[z]-m[z-1]:m[z+1]-m[z],N=L/Math.abs(O);return k?1-N:N}return{isLastSnapPoint:y,activeSnapPoint:f,shouldFade:P,getPercentageDragged:T,setActiveSnapPoint:d,activeSnapPointIndex:C,onRelease:S,onDrag:E,snapPointsOffset:m}}const noop$1=()=>()=>{};function useScaleBackground(){const{direction:e,isOpen:t,shouldScaleBackground:i,setBackgroundColorOnScale:n,noBodyStyles:s}=useDrawerContext(),a=React.useRef(null),o=React.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-WINDOW_TOP_OFFSET)/window.innerWidth}React.useEffect(()=>{if(t&&i){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;chain(n&&!s?assignStyle(document.body,{background:"black"}):noop$1,assignStyle(c,{transformOrigin:isVertical(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${TRANSITIONS.DURATION}s`,transitionTimingFunction:`cubic-bezier(${TRANSITIONS.EASE.join(",")})`}));const u=assignStyle(c,{borderRadius:`${BORDER_RADIUS}px`,overflow:"hidden",...isVertical(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},TRANSITIONS.DURATION*1e3)}}},[t,i,o])}let previousBodyPosition=null;function usePositionFixed({isOpen:e,modal:t,nested:i,hasBeenOpened:n,preventScrollRestoration:s,noBodyStyles:a}){const[o,l]=React.useState(()=>typeof window<"u"?window.location.href:""),c=React.useRef(0),u=React.useCallback(()=>{if(isSafari()&&previousBodyPosition===null&&e&&!a){previousBodyPosition={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=p-window.innerHeight;b&&c.current>=p&&(document.body.style.top=`${-(c.current+b)}px`)}),300)}},[e]),f=React.useCallback(()=>{if(isSafari()&&previousBodyPosition!==null&&!a){const d=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,previousBodyPosition),window.requestAnimationFrame(()=>{if(s&&o!==window.location.href){l(window.location.href);return}window.scrollTo(p,d)}),previousBodyPosition=null}},[o]);return React.useEffect(()=>{function d(){c.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),React.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||f()}},[t,f]),React.useEffect(()=>{i||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{f()},500)):f())},[e,n,o,t,i,u,f]),{restorePositionSetting:f}}function Root({open:e,onOpenChange:t,children:i,onDrag:n,onRelease:s,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=CLOSE_THRESHOLD,scrollLockTimeout:u=SCROLL_LOCK_TIMEOUT,dismissible:f=!0,handleOnly:d=!1,fadeFromIndex:p=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:y,fixed:C,modal:P=!0,onClose:m,nested:x,noBodyStyles:g=!1,direction:S="bottom",defaultOpen:E=!1,disablePreventScroll:T=!0,snapToSequentialPoint:L=!1,preventScrollRestoration:_=!1,repositionInputs:k=!0,onAnimationEnd:$,container:z,autoFocus:O=!1}){var N,K;const[B=!1,A]=useControllableState({defaultProp:E,prop:e,onChange:H=>{t==null||t(H),!H&&!x&&Te(),setTimeout(()=>{$==null||$(H)},TRANSITIONS.DURATION*1e3),H&&!P&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),H||(document.body.style.pointerEvents="auto")}}),[V,R]=React.useState(!1),[M,I]=React.useState(!1),[j,W]=React.useState(!1),q=React.useRef(null),X=React.useRef(null),ee=React.useRef(null),re=React.useRef(null),ce=React.useRef(null),he=React.useRef(!1),me=React.useRef(null),pe=React.useRef(0),se=React.useRef(!1),fe=React.useRef(!E),ie=React.useRef(0),Y=React.useRef(null),Ee=React.useRef(((N=Y.current)==null?void 0:N.getBoundingClientRect().height)||0),Le=React.useRef(((K=Y.current)==null?void 0:K.getBoundingClientRect().width)||0),be=React.useRef(0),ye=React.useCallback(H=>{a&&H===we.length-1&&(X.current=new Date)},[]),{activeSnapPoint:Pe,activeSnapPointIndex:Ce,setActiveSnapPoint:ve,onRelease:xe,snapPointsOffset:we,onDrag:Se,shouldFade:Me,getPercentageDragged:Re}=useSnapPoints({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:y,drawerRef:Y,fadeFromIndex:p,overlayRef:q,onSnapPointChange:ye,direction:S,container:z,snapToSequentialPoint:L});usePreventScroll({isDisabled:!B||M||!P||j||!V||!k||!T});const{restorePositionSetting:Te}=usePositionFixed({isOpen:B,modal:P,nested:x??!1,hasBeenOpened:V,preventScrollRestoration:_,noBodyStyles:g});function _e(){return(window.innerWidth-WINDOW_TOP_OFFSET)/window.innerWidth}function Ve(H){var D,Z;!f&&!a||Y.current&&!Y.current.contains(H.target)||(Ee.current=((D=Y.current)==null?void 0:D.getBoundingClientRect().height)||0,Le.current=((Z=Y.current)==null?void 0:Z.getBoundingClientRect().width)||0,I(!0),ee.current=new Date,isIOS()&&window.addEventListener("touchend",()=>he.current=!1,{once:!0}),H.target.setPointerCapture(H.pointerId),pe.current=isVertical(S)?H.pageY:H.pageX)}function je(H,D){var Z;let J=H;const Q=(Z=window.getSelection())==null?void 0:Z.toString(),te=Y.current?getTranslate(Y.current,S):null,ne=new Date;if(J.tagName==="SELECT"||J.hasAttribute("data-vaul-no-drag")||J.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(X.current&&ne.getTime()-X.current.getTime()<500)return!1;if(te!==null&&(S==="bottom"?te>0:te<0))return!0;if(Q&&Q.length>0)return!1;if(ce.current&&ne.getTime()-ce.current.getTime()<u&&te===0||D)return ce.current=ne,!1;for(;J;){if(J.scrollHeight>J.clientHeight){if(J.scrollTop!==0)return ce.current=new Date,!1;if(J.getAttribute("role")==="dialog")return!0}J=J.parentNode}return!0}function De(H){if(Y.current&&M){const D=S==="bottom"||S==="right"?1:-1,Z=(pe.current-(isVertical(S)?H.pageY:H.pageX))*D,J=Z>0,Q=a&&!f&&!J;if(Q&&Ce===0)return;const te=Math.abs(Z),ne=document.querySelector("[data-vaul-drawer-wrapper]"),le=S==="bottom"||S==="top"?Ee.current:Le.current;let ae=te/le;const oe=Re(te,J);if(oe!==null&&(ae=oe),Q&&ae>=1||!he.current&&!je(H.target,J))return;if(Y.current.classList.add(DRAG_CLASS),he.current=!0,set(Y.current,{transition:"none"}),set(q.current,{transition:"none"}),a&&Se({draggedDistance:Z}),J&&!a){const ue=dampenValue(Z),ge=Math.min(ue*-1,0)*D;set(Y.current,{transform:isVertical(S)?`translate3d(0, ${ge}px, 0)`:`translate3d(${ge}px, 0, 0)`});return}const de=1-ae;if((Me||p&&Ce===p-1)&&(n==null||n(H,ae),set(q.current,{opacity:`${de}`,transition:"none"},!0)),ne&&q.current&&o){const ue=Math.min(_e()+ae*(1-_e()),1),ge=8-ae*8,Ie=Math.max(0,14-ae*14);set(ne,{borderRadius:`${ge}px`,transform:isVertical(S)?`scale(${ue}) translate3d(0, ${Ie}px, 0)`:`scale(${ue}) translate3d(${Ie}px, 0, 0)`,transition:"none"},!0)}if(!a){const ue=te*D;set(Y.current,{transform:isVertical(S)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`})}}}React.useEffect(()=>{window.requestAnimationFrame(()=>{fe.current=!0})},[]),React.useEffect(()=>{var H;function D(){if(!Y.current||!k)return;const Z=document.activeElement;if(isInput(Z)||se.current){var J;const Q=((J=window.visualViewport)==null?void 0:J.height)||0,te=window.innerHeight;let ne=te-Q;const le=Y.current.getBoundingClientRect().height||0,ae=le>te*.8;be.current||(be.current=le);const oe=Y.current.getBoundingClientRect().top;if(Math.abs(ie.current-ne)>60&&(se.current=!se.current),a&&a.length>0&&we&&Ce){const de=we[Ce]||0;ne+=de}if(ie.current=ne,le>Q||se.current){const de=Y.current.getBoundingClientRect().height;let ue=de;de>Q&&(ue=Q-(ae?oe:WINDOW_TOP_OFFSET)),C?Y.current.style.height=`${de-Math.max(ne,0)}px`:Y.current.style.height=`${Math.max(ue,Q-oe)}px`}else isMobileFirefox()||(Y.current.style.height=`${be.current}px`);a&&a.length>0&&!se.current?Y.current.style.bottom="0px":Y.current.style.bottom=`${Math.max(ne,0)}px`}}return(H=window.visualViewport)==null||H.addEventListener("resize",D),()=>{var Z;return(Z=window.visualViewport)==null?void 0:Z.removeEventListener("resize",D)}},[Ce,a,we]);function Ae(H){Fe(),m==null||m(),H||A(!1),setTimeout(()=>{a&&ve(a[0])},TRANSITIONS.DURATION*1e3)}function ke(){if(!Y.current)return;const H=document.querySelector("[data-vaul-drawer-wrapper]"),D=getTranslate(Y.current,S);set(Y.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`}),set(q.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"1"}),o&&D&&D>0&&B&&set(H,{borderRadius:`${BORDER_RADIUS}px`,overflow:"hidden",...isVertical(S)?{transform:`scale(${_e()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${_e()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${TRANSITIONS.DURATION}s`,transitionTimingFunction:`cubic-bezier(${TRANSITIONS.EASE.join(",")})`},!0)}function Fe(){!M||!Y.current||(Y.current.classList.remove(DRAG_CLASS),he.current=!1,I(!1),re.current=new Date)}function He(H){if(!M||!Y.current)return;Y.current.classList.remove(DRAG_CLASS),he.current=!1,I(!1),re.current=new Date;const D=getTranslate(Y.current,S);if(!H||!je(H.target,!1)||!D||Number.isNaN(D)||ee.current===null)return;const Z=re.current.getTime()-ee.current.getTime(),J=pe.current-(isVertical(S)?H.pageY:H.pageX),Q=Math.abs(J)/Z;if(Q>.05&&(W(!0),setTimeout(()=>{W(!1)},200)),a){xe({draggedDistance:J*(S==="bottom"||S==="right"?1:-1),closeDrawer:Ae,velocity:Q,dismissible:f}),s==null||s(H,!0);return}if(S==="bottom"||S==="right"?J>0:J<0){ke(),s==null||s(H,!0);return}if(Q>VELOCITY_THRESHOLD){Ae(),s==null||s(H,!1);return}var te;const ne=Math.min((te=Y.current.getBoundingClientRect().height)!=null?te:0,window.innerHeight);var le;const ae=Math.min((le=Y.current.getBoundingClientRect().width)!=null?le:0,window.innerWidth),oe=S==="left"||S==="right";if(Math.abs(D)>=(oe?ae:ne)*c){Ae(),s==null||s(H,!1);return}s==null||s(H,!0),ke()}React.useEffect(()=>(B&&(set(document.documentElement,{scrollBehavior:"auto"}),X.current=new Date),()=>{reset(document.documentElement,"scrollBehavior")}),[B]);function U(H){const D=H?(window.innerWidth-NESTED_DISPLACEMENT)/window.innerWidth:1,Z=H?-NESTED_DISPLACEMENT:0;me.current&&window.clearTimeout(me.current),set(Y.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(S)?`scale(${D}) translate3d(0, ${Z}px, 0)`:`scale(${D}) translate3d(${Z}px, 0, 0)`}),!H&&Y.current&&(me.current=setTimeout(()=>{const J=getTranslate(Y.current,S);set(Y.current,{transition:"none",transform:isVertical(S)?`translate3d(0, ${J}px, 0)`:`translate3d(${J}px, 0, 0)`})},500))}function F(H,D){if(D<0)return;const Z=(window.innerWidth-NESTED_DISPLACEMENT)/window.innerWidth,J=Z+D*(1-Z),Q=-NESTED_DISPLACEMENT+D*NESTED_DISPLACEMENT;set(Y.current,{transform:isVertical(S)?`scale(${J}) translate3d(0, ${Q}px, 0)`:`scale(${J}) translate3d(${Q}px, 0, 0)`,transition:"none"})}function G(H,D){const Z=isVertical(S)?window.innerHeight:window.innerWidth,J=D?(Z-NESTED_DISPLACEMENT)/Z:1,Q=D?-NESTED_DISPLACEMENT:0;D&&set(Y.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(S)?`scale(${J}) translate3d(0, ${Q}px, 0)`:`scale(${J}) translate3d(${Q}px, 0, 0)`})}return React.useEffect(()=>{P||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[P]),React.createElement(Root$1,{defaultOpen:E,onOpenChange:H=>{!f&&!H||(H?R(!0):Ae(!0),A(H))},open:B},React.createElement(DrawerContext.Provider,{value:{activeSnapPoint:Pe,snapPoints:a,setActiveSnapPoint:ve,drawerRef:Y,overlayRef:q,onOpenChange:t,onPress:Ve,onRelease:He,onDrag:De,dismissible:f,shouldAnimate:fe,handleOnly:d,isOpen:B,isDragging:M,shouldFade:Me,closeDrawer:Ae,onNestedDrag:F,onNestedOpenChange:U,onNestedRelease:G,keyboardIsOpen:se,modal:P,snapPointsOffset:we,activeSnapPointIndex:Ce,direction:S,shouldScaleBackground:o,setBackgroundColorOnScale:l,noBodyStyles:g,container:z,autoFocus:O}},i))}const Overlay=React.forwardRef(function({...e},t){const{overlayRef:i,snapPoints:n,onRelease:s,shouldFade:a,isOpen:o,modal:l,shouldAnimate:c}=useDrawerContext(),u=useComposedRefs(t,i),f=n&&n.length>0;if(!l)return null;const d=React.useCallback(p=>s(p),[s]);return React.createElement(Overlay$1,{onMouseUp:d,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":o&&f?"true":"false","data-vaul-snap-points-overlay":o&&a?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});Overlay.displayName="Drawer.Overlay";const Content=React.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:i,...n},s){const{drawerRef:a,onPress:o,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:f,activeSnapPointIndex:d,modal:p,isOpen:b,direction:y,snapPoints:C,container:P,handleOnly:m,shouldAnimate:x,autoFocus:g}=useDrawerContext(),[S,E]=React.useState(!1),T=useComposedRefs(s,a),L=React.useRef(null),_=React.useRef(null),k=React.useRef(!1),$=C&&C.length>0;useScaleBackground();const z=(N,K,B=0)=>{if(k.current)return!0;const A=Math.abs(N.y),V=Math.abs(N.x),R=V>A,M=["bottom","right"].includes(K)?1:-1;if(K==="left"||K==="right"){if(!(N.x*M<0)&&V>=0&&V<=B)return R}else if(!(N.y*M<0)&&A>=0&&A<=B)return!R;return k.current=!0,!0};React.useEffect(()=>{$&&window.requestAnimationFrame(()=>{E(!0)})},[]);function O(N){L.current=null,k.current=!1,l(N)}return React.createElement(Content$1,{"data-vaul-drawer-direction":y,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&$?"true":"false","data-vaul-custom-container":P?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...n,ref:T,style:f&&f.length>0?{"--snap-point-height":`${f[d??0]}px`,...t}:t,onPointerDown:N=>{m||(n.onPointerDown==null||n.onPointerDown.call(n,N),L.current={x:N.pageX,y:N.pageY},o(N))},onOpenAutoFocus:N=>{i==null||i(N),g||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!p||N.defaultPrevented){N.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:N=>{if(!p){N.preventDefault();return}},onPointerMove:N=>{if(_.current=N,m||(n.onPointerMove==null||n.onPointerMove.call(n,N),!L.current))return;const K=N.pageY-L.current.y,B=N.pageX-L.current.x,A=N.pointerType==="touch"?10:2;z({x:B,y:K},y,A)?c(N):(Math.abs(B)>A||Math.abs(K)>A)&&(L.current=null)},onPointerUp:N=>{n.onPointerUp==null||n.onPointerUp.call(n,N),L.current=null,k.current=!1,l(N)},onPointerOut:N=>{n.onPointerOut==null||n.onPointerOut.call(n,N),O(_.current)},onContextMenu:N=>{n.onContextMenu==null||n.onContextMenu.call(n,N),_.current&&O(_.current)}})});Content.displayName="Drawer.Content";const LONG_HANDLE_PRESS_TIMEOUT=250,DOUBLE_TAP_TIMEOUT=120,Handle=React.forwardRef(function({preventCycle:e=!1,children:t,...i},n){const{closeDrawer:s,isDragging:a,snapPoints:o,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:f,isOpen:d,onPress:p,onDrag:b}=useDrawerContext(),y=React.useRef(null),C=React.useRef(!1);function P(){if(C.current){g();return}window.setTimeout(()=>{m()},DOUBLE_TAP_TIMEOUT)}function m(){if(a||e||C.current){g();return}if(g(),!o||o.length===0){u||s();return}if(l===o[o.length-1]&&u){s();return}const E=o.findIndex(L=>L===l);if(E===-1)return;const T=o[E+1];c(T)}function x(){y.current=window.setTimeout(()=>{C.current=!0},LONG_HANDLE_PRESS_TIMEOUT)}function g(){y.current&&window.clearTimeout(y.current),C.current=!1}return React.createElement("div",{onClick:P,onPointerCancel:g,onPointerDown:S=>{f&&p(S),x()},onPointerMove:S=>{f&&b(S)},ref:n,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...i},React.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Handle.displayName="Drawer.Handle";function NestedRoot({onDrag:e,onOpenChange:t,open:i,...n}){const{onNestedDrag:s,onNestedOpenChange:a,onNestedRelease:o}=useDrawerContext();if(!s)throw new Error("Drawer.NestedRoot must be placed in another drawer");return React.createElement(Root,{nested:!0,open:i,onClose:()=>{a(!1)},onDrag:(l,c)=>{s(l,c),e==null||e(l,c)},onOpenChange:l=>{l&&a(l),t==null||t(l)},onRelease:o,...n})}function Portal(e){const t=useDrawerContext(),{container:i=t.container,...n}=e;return React.createElement(Portal$1,{container:i,...n})}const Drawer={Root,NestedRoot,Content,Overlay,Trigger,Portal,Handle,Close,Title,Description},BottomSheet=({children:e,open:t,onOpenChange:i})=>jsxRuntime.jsx(ClientOnly,{children:jsxRuntime.jsxs(Drawer.Root,{open:t,onOpenChange:i,children:[jsxRuntime.jsx(Drawer.Overlay,{className:"gf-fixed gf-inset-0 gf-z-50 gf-h-screen gf-w-screen gf-bg-dark-grey gf-bg-opacity-40 gf-transition-colors gf-duration-500 gf-ease-cubic-in-out"}),jsxRuntime.jsx(Drawer.Portal,{children:jsxRuntime.jsxs(Drawer.Content,{className:"gf-fixed gf-bottom-0 gf-z-50 gf-h-fit gf-w-full gf-rounded-t-xl gf-bg-white/50 gf-px-4 gf-py-4 gf-outline-none gf-backdrop-blur-[20px]",children:[jsxRuntime.jsx("div",{className:"gf-mx-auto gf-mb-3 gf-h-1 gf-w-[60px] gf-rounded-full gf-bg-white/30"}),jsxRuntime.jsx("div",{className:"gf-scrollbar-hide gf-flex gf-max-h-[90vh] gf-flex-col gf-gap-5 gf-overflow-y-scroll",children:e})]})})]})}),Container=({children:e,className:t,...i})=>jsxRuntime.jsx("div",{...i,className:cn("gf-p-6 gf-rounded-2xl gf-w-fit",t),children:e}),ArrowDownwardIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.0013 17.3333L0.167969 11.5L1.33464 10.3333L5.16797 14.1458V0.666656H6.83464V14.1458L10.668 10.3125L11.8346 11.5L6.0013 17.3333Z"})}),ArrowUpwardIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.16797 17.3333V3.85416L1.33464 7.66666L0.167969 6.49999L6.0013 0.666656L11.8346 6.49999L10.668 7.68749L6.83464 3.85416V17.3333H5.16797Z"})}),ArrowLeftIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"12",viewBox:"0 0 18 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.5013 11.8333L0.667969 5.99999L6.5013 0.166656L7.66797 1.33332L3.85547 5.16666H17.3346V6.83332H3.85547L7.6888 10.6667L6.5013 11.8333Z"})}),ArrowRightIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"12",viewBox:"0 0 18 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.5013 11.8333L10.3138 10.6667L14.1471 6.83332H0.667969V5.16666H14.1471L10.3346 1.33332L11.5013 0.166656L17.3346 5.99999L11.5013 11.8333Z"})}),AddIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.16797 6.83332H0.167969V5.16666H5.16797V0.166656H6.83464V5.16666H11.8346V6.83332H6.83464V11.8333H5.16797V6.83332Z"})}),ArrowNorthEastIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.4987 12.6667L0.332031 11.5L9.9987 1.83335H4.4987V0.166687H12.832V8.50002H11.1654V3.00002L1.4987 12.6667Z"})}),ArrowNorthWestIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.5013 12.6667L1.83464 3.00002V8.50002H0.167969V0.166687H8.5013V1.83335H3.0013L12.668 11.5L11.5013 12.6667Z"})}),ArrowSouthEastIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.4987 12.8333V11.1666H9.9987L0.332031 1.49998L1.4987 0.333313L11.1654 9.99998V4.49998H12.832V12.8333H4.4987Z"})}),ArrowSouthWestIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.167969 12.8333V4.49998H1.83464V9.99998L11.5013 0.333313L12.668 1.49998L3.0013 11.1666H8.5013V12.8333H0.167969Z"})}),CheckIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.95703 11.0003L0.207031 6.25033L1.39453 5.06283L4.95703 8.62533L12.6029 0.979492L13.7904 2.16699L4.95703 11.0003Z"})}),ClockIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.7513 12.9167L12.918 11.75L9.83463 8.66669V4.83335H8.16797V9.33335L11.7513 12.9167ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8485 15.6667 12.4214 15.0174 13.7201 13.7188C15.0187 12.4202 15.668 10.8472 15.668 9.00002C15.668 7.1528 15.0187 5.57988 13.7201 4.28127C12.4214 2.98266 10.8485 2.33335 9.0013 2.33335C7.15408 2.33335 5.58116 2.98266 4.28255 4.28127C2.98394 5.57988 2.33464 7.1528 2.33464 9.00002C2.33464 10.8472 2.98394 12.4202 4.28255 13.7188C5.58116 15.0174 7.15408 15.6667 9.0013 15.6667Z"})}),CloseIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.33464 11.8334L0.167969 10.6667L4.83464 6.00002L0.167969 1.33335L1.33464 0.166687L6.0013 4.83335L10.668 0.166687L11.8346 1.33335L7.16797 6.00002L11.8346 10.6667L10.668 11.8334L6.0013 7.16669L1.33464 11.8334Z"})}),CopyIcon=e=>jsxRuntime.jsx("svg",{width:"15",height:"18",viewBox:"0 0 15 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.5 14C5.04167 14 4.64931 13.8368 4.32292 13.5104C3.99653 13.184 3.83333 12.7917 3.83333 12.3334V2.33335C3.83333 1.87502 3.99653 1.48266 4.32292 1.15627C4.64931 0.829881 5.04167 0.666687 5.5 0.666687H13C13.4583 0.666687 13.8507 0.829881 14.1771 1.15627C14.5035 1.48266 14.6667 1.87502 14.6667 2.33335V12.3334C14.6667 12.7917 14.5035 13.184 14.1771 13.5104C13.8507 13.8368 13.4583 14 13 14H5.5ZM5.5 12.3334H13V2.33335H5.5V12.3334ZM2.16667 17.3334C1.70833 17.3334 1.31597 17.1702 0.989583 16.8438C0.663194 16.5174 0.5 16.125 0.5 15.6667V4.00002H2.16667V15.6667H11.3333V17.3334H2.16667Z"})}),EditIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 13.8333H3.35417L11.5 5.6875L10.3125 4.5L2.16667 12.6458V13.8333ZM0.5 15.5V11.9583L11.5 0.979167C11.6667 0.826389 11.8507 0.708333 12.0521 0.625C12.2535 0.541667 12.4653 0.5 12.6875 0.5C12.9097 0.5 13.125 0.541667 13.3333 0.625C13.5417 0.708333 13.7222 0.833333 13.875 1L15.0208 2.16667C15.1875 2.31944 15.309 2.5 15.3854 2.70833C15.4618 2.91667 15.5 3.125 15.5 3.33333C15.5 3.55556 15.4618 3.76736 15.3854 3.96875C15.309 4.17014 15.1875 4.35417 15.0208 4.52083L4.04167 15.5H0.5ZM10.8958 5.10417L10.3125 4.5L11.5 5.6875L10.8958 5.10417Z"})}),ExchangeIcon=e=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("path",{d:"M12.3882 15.3333L12.3882 4.37498L11.1382 4.37498L11.1382 15.3333L11.1382 18.3333L11.7632 17.7083L15.832 13.6394L14.9715 12.75L12.3882 15.3333Z"}),jsxRuntime.jsx("path",{d:"M7.61184 4.66669L7.61184 15.625L8.86184 15.625L8.86184 4.66669L8.86181 1.66669L8.23684 2.29169L4.16797 6.36056L5.02851 7.25002L7.61184 4.66669Z"})]}),InfoIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8.16797 13.1667H9.83463V8.16669H8.16797V13.1667ZM9.0013 6.50002C9.23741 6.50002 9.43533 6.42016 9.59505 6.26044C9.75477 6.10071 9.83463 5.9028 9.83463 5.66669C9.83463 5.43058 9.75477 5.23266 9.59505 5.07294C9.43533 4.91321 9.23741 4.83335 9.0013 4.83335C8.76519 4.83335 8.56727 4.91321 8.40755 5.07294C8.24783 5.23266 8.16797 5.43058 8.16797 5.66669C8.16797 5.9028 8.24783 6.10071 8.40755 6.26044C8.56727 6.42016 8.76519 6.50002 9.0013 6.50002ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8624 15.6667 12.4388 15.0209 13.7305 13.7292C15.0221 12.4375 15.668 10.8611 15.668 9.00002C15.668 7.13891 15.0221 5.56252 13.7305 4.27085C12.4388 2.97919 10.8624 2.33335 9.0013 2.33335C7.14019 2.33335 5.5638 2.97919 4.27214 4.27085C2.98047 5.56252 2.33464 7.13891 2.33464 9.00002C2.33464 10.8611 2.98047 12.4375 4.27214 13.7292C5.5638 15.0209 7.14019 15.6667 9.0013 15.6667Z"})}),KeyboardDownIcon=e=>jsxRuntime.jsx("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5 6.83335L0 1.83335L1.16667 0.666687L5 4.50002L8.83333 0.666687L10 1.83335L5 6.83335Z"})}),KeyboardLeftIcon=e=>jsxRuntime.jsx("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.66797 10L0.667969 5L5.66797 0L6.83464 1.16667L3.0013 5L6.83464 8.83333L5.66797 10Z"})}),KeyboardRightIcon=e=>jsxRuntime.jsx("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.5013 5L0.667969 1.16667L1.83464 0L6.83464 5L1.83464 10L0.667969 8.83333L4.5013 5Z"})}),KeyboardUpIcon=e=>jsxRuntime.jsx("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5 3.00002L1.16667 6.83335L0 5.66669L5 0.666687L10 5.66669L8.83333 6.83335L5 3.00002Z"})}),LanguageIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8 16C6.90278 16 5.86806 15.7917 4.89583 15.375C3.92361 14.9583 3.07292 14.3854 2.34375 13.6562C1.61458 12.9271 1.04167 12.0764 0.625 11.1042C0.208333 10.1319 0 9.09722 0 8C0 6.88889 0.208333 5.85069 0.625 4.88542C1.04167 3.92014 1.61458 3.07292 2.34375 2.34375C3.07292 1.61458 3.92361 1.04167 4.89583 0.625C5.86806 0.208333 6.90278 0 8 0C9.11111 0 10.1493 0.208333 11.1146 0.625C12.0799 1.04167 12.9271 1.61458 13.6562 2.34375C14.3854 3.07292 14.9583 3.92014 15.375 4.88542C15.7917 5.85069 16 6.88889 16 8C16 9.09722 15.7917 10.1319 15.375 11.1042C14.9583 12.0764 14.3854 12.9271 13.6562 13.6562C12.9271 14.3854 12.0799 14.9583 11.1146 15.375C10.1493 15.7917 9.11111 16 8 16ZM8 14.4375C8.23611 14.2014 8.47222 13.7604 8.70833 13.1146C8.94444 12.4688 9.125 11.7639 9.25 11H6.75C6.875 11.7639 7.05556 12.4688 7.29167 13.1146C7.52778 13.7604 7.76389 14.2014 8 14.4375ZM6.10417 14.2292C5.90972 13.8125 5.73958 13.3333 5.59375 12.7917C5.44792 12.25 5.32639 11.6528 5.22917 11H2.25C2.65278 11.7917 3.1875 12.4688 3.85417 13.0312C4.52083 13.5938 5.27083 13.9931 6.10417 14.2292ZM9.89583 14.2292C10.7292 13.9931 11.4792 13.5938 12.1458 13.0312C12.8125 12.4688 13.3472 11.7917 13.75 11H10.7708C10.6736 11.6528 10.5521 12.25 10.4062 12.7917C10.2604 13.3333 10.0903 13.8125 9.89583 14.2292ZM1.6875 9.5H5.04167C5.01389 9.23611 4.99653 8.97569 4.98958 8.71875C4.98264 8.46181 4.97917 8.20833 4.97917 7.95833C4.97917 7.70833 4.98264 7.46181 4.98958 7.21875C4.99653 6.97569 5.01389 6.73611 5.04167 6.5H1.6875C1.61806 6.76389 1.56944 7.01736 1.54167 7.26042C1.51389 7.50347 1.5 7.75 1.5 8C1.5 8.25 1.51389 8.49653 1.54167 8.73958C1.56944 8.98264 1.61806 9.23611 1.6875 9.5ZM6.5625 9.5H9.4375C9.46528 9.22222 9.48264 8.96181 9.48958 8.71875C9.49653 8.47569 9.5 8.23611 9.5 8C9.5 7.76389 9.49653 7.52083 9.48958 7.27083C9.48264 7.02083 9.46528 6.76389 9.4375 6.5H6.5625C6.53472 6.76389 6.51736 7.02083 6.51042 7.27083C6.50347 7.52083 6.5 7.76389 6.5 8C6.5 8.23611 6.50347 8.47917 6.51042 8.72917C6.51736 8.97917 6.53472 9.23611 6.5625 9.5ZM10.9583 9.5H14.3125C14.3819 9.23611 14.4306 8.98264 14.4583 8.73958C14.4861 8.49653 14.5 8.25 14.5 8C14.5 7.75 14.4861 7.5 14.4583 7.25C14.4306 7 14.3819 6.75 14.3125 6.5H10.9583C10.9861 6.76389 11.0035 7.02431 11.0104 7.28125C11.0174 7.53819 11.0208 7.79167 11.0208 8.04167C11.0208 8.29167 11.0174 8.53819 11.0104 8.78125C11.0035 9.02431 10.9861 9.26389 10.9583 9.5ZM10.7708 5H13.75C13.3472 4.20833 12.8125 3.53125 12.1458 2.96875C11.4792 2.40625 10.7292 2.00694 9.89583 1.77083C10.0903 2.1875 10.2604 2.66667 10.4062 3.20833C10.5521 3.75 10.6736 4.34722 10.7708 5ZM6.75 5H9.25C9.125 4.23611 8.94444 3.53125 8.70833 2.88542C8.47222 2.23958 8.23611 1.79861 8 1.5625C7.76389 1.79861 7.52778 2.23958 7.29167 2.88542C7.05556 3.53125 6.875 4.23611 6.75 5ZM2.25 5H5.22917C5.32639 4.34722 5.44792 3.75 5.59375 3.20833C5.73958 2.66667 5.90972 2.1875 6.10417 1.77083C5.27083 2.00694 4.52083 2.40625 3.85417 2.96875C3.1875 3.53125 2.65278 4.20833 2.25 5Z"})}),LinkIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"10",viewBox:"0 0 18 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8.16797 9.16665H4.83464C3.68186 9.16665 2.69922 8.7604 1.88672 7.9479C1.07422 7.1354 0.667969 6.15276 0.667969 4.99998C0.667969 3.8472 1.07422 2.86456 1.88672 2.05206C2.69922 1.23956 3.68186 0.833313 4.83464 0.833313H8.16797V2.49998H4.83464C4.14019 2.49998 3.54991 2.74304 3.0638 3.22915C2.57769 3.71526 2.33464 4.30554 2.33464 4.99998C2.33464 5.69442 2.57769 6.2847 3.0638 6.77081C3.54991 7.25692 4.14019 7.49998 4.83464 7.49998H8.16797V9.16665ZM5.66797 5.83331V4.16665H12.3346V5.83331H5.66797ZM9.83463 9.16665V7.49998H13.168C13.8624 7.49998 14.4527 7.25692 14.9388 6.77081C15.4249 6.2847 15.668 5.69442 15.668 4.99998C15.668 4.30554 15.4249 3.71526 14.9388 3.22915C14.4527 2.74304 13.8624 2.49998 13.168 2.49998H9.83463V0.833313H13.168C14.3207 0.833313 15.3034 1.23956 16.1159 2.05206C16.9284 2.86456 17.3346 3.8472 17.3346 4.99998C17.3346 6.15276 16.9284 7.1354 16.1159 7.9479C15.3034 8.7604 14.3207 9.16665 13.168 9.16665H9.83463Z"})}),LockIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.9987 18.3333C1.54036 18.3333 1.148 18.1701 0.821615 17.8437C0.495226 17.5173 0.332031 17.125 0.332031 16.6666V8.33331C0.332031 7.87498 0.495226 7.48262 0.821615 7.15623C1.148 6.82984 1.54036 6.66665 1.9987 6.66665H2.83203V4.99998C2.83203 3.8472 3.23828 2.86456 4.05078 2.05206C4.86328 1.23956 5.84592 0.833313 6.9987 0.833313C8.15148 0.833313 9.13411 1.23956 9.94661 2.05206C10.7591 2.86456 11.1654 3.8472 11.1654 4.99998V6.66665H11.9987C12.457 6.66665 12.8494 6.82984 13.1758 7.15623C13.5022 7.48262 13.6654 7.87498 13.6654 8.33331V16.6666C13.6654 17.125 13.5022 17.5173 13.1758 17.8437C12.8494 18.1701 12.457 18.3333 11.9987 18.3333H1.9987ZM1.9987 16.6666H11.9987V8.33331H1.9987V16.6666ZM6.9987 14.1666C7.45703 14.1666 7.84939 14.0035 8.17578 13.6771C8.50217 13.3507 8.66536 12.9583 8.66536 12.5C8.66536 12.0416 8.50217 11.6493 8.17578 11.3229C7.84939 10.9965 7.45703 10.8333 6.9987 10.8333C6.54036 10.8333 6.148 10.9965 5.82161 11.3229C5.49523 11.6493 5.33203 12.0416 5.33203 12.5C5.33203 12.9583 5.49523 13.3507 5.82161 13.6771C6.148 14.0035 6.54036 14.1666 6.9987 14.1666ZM4.4987 6.66665H9.4987V4.99998C9.4987 4.30554 9.25564 3.71526 8.76953 3.22915C8.28342 2.74304 7.69314 2.49998 6.9987 2.49998C6.30425 2.49998 5.71398 2.74304 5.22786 3.22915C4.74175 3.71526 4.4987 4.30554 4.4987 4.99998V6.66665Z"})}),LogoutIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 15.5C1.70833 15.5 1.31597 15.3368 0.989583 15.0104C0.663194 14.684 0.5 14.2917 0.5 13.8333V2.16667C0.5 1.70833 0.663194 1.31597 0.989583 0.989583C1.31597 0.663194 1.70833 0.5 2.16667 0.5H8V2.16667H2.16667V13.8333H8V15.5H2.16667ZM11.3333 12.1667L10.1875 10.9583L12.3125 8.83333H5.5V7.16667H12.3125L10.1875 5.04167L11.3333 3.83333L15.5 8L11.3333 12.1667Z"})}),MenuIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 10V8.33333H15.5V10H0.5ZM0.5 5.83333V4.16667H15.5V5.83333H0.5ZM0.5 1.66667V0H15.5V1.66667H0.5Z"})}),OpenInFullIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 15.5V8.83333H2.16667V12.6667L12.6667 2.16667H8.83333V0.5H15.5V7.16667H13.8333V3.33333L3.33333 13.8333H7.16667V15.5H0.5Z"})}),PageInfoIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M12.7904 13.875C11.9154 13.875 11.1758 13.5729 10.5716 12.9688C9.96745 12.3646 9.66536 11.625 9.66536 10.75C9.66536 9.875 9.96745 9.13542 10.5716 8.53125C11.1758 7.92708 11.9154 7.625 12.7904 7.625C13.6654 7.625 14.4049 7.92708 15.0091 8.53125C15.6133 9.13542 15.9154 9.875 15.9154 10.75C15.9154 11.625 15.6133 12.3646 15.0091 12.9688C14.4049 13.5729 13.6654 13.875 12.7904 13.875ZM12.7904 12.2083C13.1931 12.2083 13.5369 12.066 13.8216 11.7812C14.1063 11.4965 14.2487 11.1528 14.2487 10.75C14.2487 10.3472 14.1063 10.0035 13.8216 9.71875C13.5369 9.43403 13.1931 9.29167 12.7904 9.29167C12.3876 9.29167 12.0438 9.43403 11.7591 9.71875C11.4744 10.0035 11.332 10.3472 11.332 10.75C11.332 11.1528 11.4744 11.4965 11.7591 11.7812C12.0438 12.066 12.3876 12.2083 12.7904 12.2083ZM1.33203 11.5833V9.91667H7.9987V11.5833H1.33203ZM3.20703 6.375C2.33203 6.375 1.59245 6.07292 0.988281 5.46875C0.384115 4.86458 0.0820312 4.125 0.0820312 3.25C0.0820312 2.375 0.384115 1.63542 0.988281 1.03125C1.59245 0.427083 2.33203 0.125 3.20703 0.125C4.08203 0.125 4.82161 0.427083 5.42578 1.03125C6.02995 1.63542 6.33203 2.375 6.33203 3.25C6.33203 4.125 6.02995 4.86458 5.42578 5.46875C4.82161 6.07292 4.08203 6.375 3.20703 6.375ZM3.20703 4.70833C3.60981 4.70833 3.95356 4.56597 4.23828 4.28125C4.523 3.99653 4.66536 3.65278 4.66536 3.25C4.66536 2.84722 4.523 2.50347 4.23828 2.21875C3.95356 1.93403 3.60981 1.79167 3.20703 1.79167C2.80425 1.79167 2.4605 1.93403 2.17578 2.21875C1.89106 2.50347 1.7487 2.84722 1.7487 3.25C1.7487 3.65278 1.89106 3.99653 2.17578 4.28125C2.4605 4.56597 2.80425 4.70833 3.20703 4.70833ZM7.9987 4.08333V2.41667H14.6654V4.08333H7.9987Z"})}),RadioCheckedIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M7.83464 12.8334L13.7096 6.95835L12.543 5.79169L7.83464 10.5L5.45964 8.12502L4.29297 9.29169L7.83464 12.8334ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334Z"})}),RadioUncheckedIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8624 15.6667 12.4388 15.0209 13.7305 13.7292C15.0221 12.4375 15.668 10.8611 15.668 9.00002C15.668 7.13891 15.0221 5.56252 13.7305 4.27085C12.4388 2.97919 10.8624 2.33335 9.0013 2.33335C7.14019 2.33335 5.5638 2.97919 4.27214 4.27085C2.98047 5.56252 2.33464 7.13891 2.33464 9.00002C2.33464 10.8611 2.98047 12.4375 4.27214 13.7292C5.5638 15.0209 7.14019 15.6667 9.0013 15.6667Z"})}),RemoveIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"2",viewBox:"0 0 12 2",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.167969 1.83332V0.166656H11.8346V1.83332H0.167969Z"})}),StarIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.3763 13.0209L9.0013 11.4375L11.6263 13.0417L10.9388 10.0417L13.2513 8.04169L10.2096 7.77085L9.0013 4.93752L7.79297 7.75002L4.7513 8.02085L7.0638 10.0417L6.3763 13.0209ZM3.85547 16.5L5.20964 10.6459L0.667969 6.70835L6.66797 6.18752L9.0013 0.666687L11.3346 6.18752L17.3346 6.70835L12.793 10.6459L14.1471 16.5L9.0013 13.3959L3.85547 16.5Z"})}),WalletIcon=e=>jsxRuntime.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 15.5C1.70833 15.5 1.31597 15.3368 0.989583 15.0104C0.663194 14.684 0.5 14.2917 0.5 13.8333V2.16667C0.5 1.70833 0.663194 1.31597 0.989583 0.989583C1.31597 0.663194 1.70833 0.5 2.16667 0.5H13.8333C14.2917 0.5 14.684 0.663194 15.0104 0.989583C15.3368 1.31597 15.5 1.70833 15.5 2.16667V4.25H13.8333V2.16667H2.16667V13.8333H13.8333V11.75H15.5V13.8333C15.5 14.2917 15.3368 14.684 15.0104 15.0104C14.684 15.3368 14.2917 15.5 13.8333 15.5H2.16667ZM8.83333 12.1667C8.375 12.1667 7.98264 12.0035 7.65625 11.6771C7.32986 11.3507 7.16667 10.9583 7.16667 10.5V5.5C7.16667 5.04167 7.32986 4.64931 7.65625 4.32292C7.98264 3.99653 8.375 3.83333 8.83333 3.83333H14.6667C15.125 3.83333 15.5174 3.99653 15.8438 4.32292C16.1701 4.64931 16.3333 5.04167 16.3333 5.5V10.5C16.3333 10.9583 16.1701 11.3507 15.8438 11.6771C15.5174 12.0035 15.125 12.1667 14.6667 12.1667H8.83333ZM14.6667 10.5V5.5H8.83333V10.5H14.6667ZM11.3333 9.25C11.6806 9.25 11.9757 9.12847 12.2188 8.88542C12.4618 8.64236 12.5833 8.34722 12.5833 8C12.5833 7.65278 12.4618 7.35764 12.2188 7.11458C11.9757 6.87153 11.6806 6.75 11.3333 6.75C10.9861 6.75 10.691 6.87153 10.4479 7.11458C10.2049 7.35764 10.0833 7.65278 10.0833 8C10.0833 8.34722 10.2049 8.64236 10.4479 8.88542C10.691 9.12847 10.9861 9.25 11.3333 9.25Z"})}),SearchIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M14.3333 15.5L9.08333 10.25C8.66667 10.5833 8.1875 10.8472 7.64583 11.0417C7.10417 11.2361 6.52778 11.3333 5.91667 11.3333C4.40278 11.3333 3.12153 10.809 2.07292 9.76042C1.02431 8.71181 0.5 7.43056 0.5 5.91667C0.5 4.40278 1.02431 3.12153 2.07292 2.07292C3.12153 1.02431 4.40278 0.5 5.91667 0.5C7.43056 0.5 8.71181 1.02431 9.76042 2.07292C10.809 3.12153 11.3333 4.40278 11.3333 5.91667C11.3333 6.52778 11.2361 7.10417 11.0417 7.64583C10.8472 8.1875 10.5833 8.66667 10.25 9.08333L15.5 14.3333L14.3333 15.5ZM5.91667 9.66667C6.95833 9.66667 7.84375 9.30208 8.57292 8.57292C9.30208 7.84375 9.66667 6.95833 9.66667 5.91667C9.66667 4.875 9.30208 3.98958 8.57292 3.26042C7.84375 2.53125 6.95833 2.16667 5.91667 2.16667C4.875 2.16667 3.98958 2.53125 3.26042 3.26042C2.53125 3.98958 2.16667 4.875 2.16667 5.91667C2.16667 6.95833 2.53125 7.84375 3.26042 8.57292C3.98958 9.30208 4.875 9.66667 5.91667 9.66667Z"})}),TimerIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"19",viewBox:"0 0 16 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.5 2.49998V0.833313H10.5V2.49998H5.5ZM7.16667 11.6666H8.83333V6.66665H7.16667V11.6666ZM8 18.3333C6.97222 18.3333 6.00347 18.1354 5.09375 17.7396C4.18403 17.3437 3.38889 16.8055 2.70833 16.125C2.02778 15.4444 1.48958 14.6493 1.09375 13.7396C0.697917 12.8298 0.5 11.8611 0.5 10.8333C0.5 9.80554 0.697917 8.83679 1.09375 7.92706C1.48958 7.01734 2.02778 6.2222 2.70833 5.54165C3.38889 4.86109 4.18403 4.3229 5.09375 3.92706C6.00347 3.53123 6.97222 3.33331 8 3.33331C8.86111 3.33331 9.6875 3.4722 10.4792 3.74998C11.2708 4.02776 12.0139 4.43054 12.7083 4.95831L13.875 3.79165L15.0417 4.95831L13.875 6.12498C14.4028 6.81942 14.8056 7.56248 15.0833 8.35415C15.3611 9.14581 15.5 9.9722 15.5 10.8333C15.5 11.8611 15.3021 12.8298 14.9062 13.7396C14.5104 14.6493 13.9722 15.4444 13.2917 16.125C12.6111 16.8055 11.816 17.3437 10.9062 17.7396C9.99653 18.1354 9.02778 18.3333 8 18.3333ZM8 16.6666C9.61111 16.6666 10.9861 16.0972 12.125 14.9583C13.2639 13.8194 13.8333 12.4444 13.8333 10.8333C13.8333 9.2222 13.2639 7.8472 12.125 6.70831C10.9861 5.56942 9.61111 4.99998 8 4.99998C6.38889 4.99998 5.01389 5.56942 3.875 6.70831C2.73611 7.8472 2.16667 9.2222 2.16667 10.8333C2.16667 12.4444 2.73611 13.8194 3.875 14.9583C5.01389 16.0972 6.38889 16.6666 8 16.6666Z"})}),ReferralIcon=e=>jsxRuntime.jsx("svg",{width:"20",height:"14",viewBox:"0 0 20 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M10.4167 6.95831C10.8194 6.51387 11.1285 6.00692 11.3438 5.43748C11.559 4.86804 11.6667 4.27776 11.6667 3.66665C11.6667 3.05554 11.559 2.46526 11.3438 1.89581C11.1285 1.32637 10.8194 0.819424 10.4167 0.37498C11.25 0.486091 11.9444 0.854146 12.5 1.47915C13.0556 2.10415 13.3333 2.83331 13.3333 3.66665C13.3333 4.49998 13.0556 5.22915 12.5 5.85415C11.9444 6.47915 11.25 6.8472 10.4167 6.95831ZM15 13.6666V11.1666C15 10.6666 14.8889 10.191 14.6667 9.73956C14.4444 9.28817 14.1528 8.88887 13.7917 8.54165C14.5 8.79165 15.1562 9.11456 15.7604 9.5104C16.3646 9.90623 16.6667 10.4583 16.6667 11.1666V13.6666H15ZM16.6667 7.83331V6.16665H15V4.49998H16.6667V2.83331H18.3333V4.49998H20V6.16665H18.3333V7.83331H16.6667ZM6.66667 6.99998C5.75 6.99998 4.96528 6.67359 4.3125 6.02081C3.65972 5.36804 3.33333 4.58331 3.33333 3.66665C3.33333 2.74998 3.65972 1.96526 4.3125 1.31248C4.96528 0.659702 5.75 0.333313 6.66667 0.333313C7.58333 0.333313 8.36806 0.659702 9.02083 1.31248C9.67361 1.96526 10 2.74998 10 3.66665C10 4.58331 9.67361 5.36804 9.02083 6.02081C8.36806 6.67359 7.58333 6.99998 6.66667 6.99998ZM0 13.6666V11.3333C0 10.8611 0.121528 10.4271 0.364583 10.0312C0.607639 9.6354 0.930556 9.33331 1.33333 9.12498C2.19444 8.69442 3.06944 8.37151 3.95833 8.15623C4.84722 7.94095 5.75 7.83331 6.66667 7.83331C7.58333 7.83331 8.48611 7.94095 9.375 8.15623C10.2639 8.37151 11.1389 8.69442 12 9.12498C12.4028 9.33331 12.7257 9.6354 12.9688 10.0312C13.2118 10.4271 13.3333 10.8611 13.3333 11.3333V13.6666H0ZM6.66667 5.33331C7.125 5.33331 7.51736 5.17012 7.84375 4.84373C8.17014 4.51734 8.33333 4.12498 8.33333 3.66665C8.33333 3.20831 8.17014 2.81595 7.84375 2.48956C7.51736 2.16317 7.125 1.99998 6.66667 1.99998C6.20833 1.99998 5.81597 2.16317 5.48958 2.48956C5.16319 2.81595 5 3.20831 5 3.66665C5 4.12498 5.16319 4.51734 5.48958 4.84373C5.81597 5.17012 6.20833 5.33331 6.66667 5.33331ZM1.66667 12H11.6667V11.3333C11.6667 11.1805 11.6285 11.0416 11.5521 10.9166C11.4757 10.7916 11.375 10.6944 11.25 10.625C10.5 10.25 9.74306 9.96873 8.97917 9.78123C8.21528 9.59373 7.44444 9.49998 6.66667 9.49998C5.88889 9.49998 5.11806 9.59373 4.35417 9.78123C3.59028 9.96873 2.83333 10.25 2.08333 10.625C1.95833 10.6944 1.85764 10.7916 1.78125 10.9166C1.70486 11.0416 1.66667 11.1805 1.66667 11.3333V12Z"})}),FeesIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2 13.6667C1.44444 13.6667 0.972222 13.4722 0.583333 13.0833C0.194444 12.6945 0 12.2222 0 11.6667V9.66668H2V0.333344L3 1.33334L4 0.333344L5 1.33334L6 0.333344L7 1.33334L8 0.333344L9 1.33334L10 0.333344L11 1.33334L12 0.333344V11.6667C12 12.2222 11.8056 12.6945 11.4167 13.0833C11.0278 13.4722 10.5556 13.6667 10 13.6667H2ZM10 12.3333C10.1889 12.3333 10.3472 12.2695 10.475 12.1417C10.6028 12.0139 10.6667 11.8556 10.6667 11.6667V2.33334H3.33333V9.66668H9.33333V11.6667C9.33333 11.8556 9.39722 12.0139 9.525 12.1417C9.65278 12.2695 9.81111 12.3333 10 12.3333ZM4 5.00001V3.66668H8V5.00001H4ZM4 7.00001V5.66668H8V7.00001H4ZM9.33333 5.00001C9.14444 5.00001 8.98611 4.93612 8.85833 4.80834C8.73056 4.68057 8.66667 4.52223 8.66667 4.33334C8.66667 4.14445 8.73056 3.98612 8.85833 3.85834C8.98611 3.73057 9.14444 3.66668 9.33333 3.66668C9.52222 3.66668 9.68056 3.73057 9.80833 3.85834C9.93611 3.98612 10 4.14445 10 4.33334C10 4.52223 9.93611 4.68057 9.80833 4.80834C9.68056 4.93612 9.52222 5.00001 9.33333 5.00001ZM9.33333 7.00001C9.14444 7.00001 8.98611 6.93612 8.85833 6.80834C8.73056 6.68057 8.66667 6.52223 8.66667 6.33334C8.66667 6.14445 8.73056 5.98612 8.85833 5.85834C8.98611 5.73057 9.14444 5.66668 9.33333 5.66668C9.52222 5.66668 9.68056 5.73057 9.80833 5.85834C9.93611 5.98612 10 6.14445 10 6.33334C10 6.52223 9.93611 6.68057 9.80833 6.80834C9.68056 6.93612 9.52222 7.00001 9.33333 7.00001ZM2 12.3333H8V11H1.33333V11.6667C1.33333 11.8556 1.39722 12.0139 1.525 12.1417C1.65278 12.2695 1.81111 12.3333 2 12.3333Z",fill:"currentColor"})}),OpenInNewIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H6V1.33333H1.33333V10.6667H10.6667V6H12V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM4.46667 8.46667L3.53333 7.53333L9.73333 1.33333H7.33333V0H12V4.66667H10.6667V2.26667L4.46667 8.46667Z",fill:"currentColor"})}),ArrowEastIcon=e=>jsxRuntime.jsx("svg",{width:"21",height:"14",viewBox:"0 0 21 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M13.1367 14L11.7117 12.6L16.3117 8H0.136719V6H16.3117L11.7367 1.4L13.1367 0L20.1367 7L13.1367 14Z",fill:"currentColor"})}),CheckCircleIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.06536 10.0667L10.7654 5.36666L9.83203 4.43333L6.06536 8.19999L4.16536 6.29999L3.23203 7.23333L6.06536 10.0667ZM6.9987 13.6667C6.07648 13.6667 5.20981 13.4917 4.3987 13.1417C3.58759 12.7917 2.88203 12.3167 2.28203 11.7167C1.68203 11.1167 1.20703 10.4111 0.857031 9.59999C0.507031 8.78888 0.332031 7.92222 0.332031 6.99999C0.332031 6.07777 0.507031 5.21111 0.857031 4.39999C1.20703 3.58888 1.68203 2.88333 2.28203 2.28333C2.88203 1.68333 3.58759 1.20833 4.3987 0.858328C5.20981 0.508328 6.07648 0.333328 6.9987 0.333328C7.92092 0.333328 8.78759 0.508328 9.5987 0.858328C10.4098 1.20833 11.1154 1.68333 11.7154 2.28333C12.3154 2.88333 12.7904 3.58888 13.1404 4.39999C13.4904 5.21111 13.6654 6.07777 13.6654 6.99999C13.6654 7.92222 13.4904 8.78888 13.1404 9.59999C12.7904 10.4111 12.3154 11.1167 11.7154 11.7167C11.1154 12.3167 10.4098 12.7917 9.5987 13.1417C8.78759 13.4917 7.92092 13.6667 6.9987 13.6667ZM6.9987 12.3333C8.48759 12.3333 9.7487 11.8167 10.782 10.7833C11.8154 9.74999 12.332 8.48888 12.332 6.99999C12.332 5.51111 11.8154 4.24999 10.782 3.21666C9.7487 2.18333 8.48759 1.66666 6.9987 1.66666C5.50981 1.66666 4.2487 2.18333 3.21536 3.21666C2.18203 4.24999 1.66536 5.51111 1.66536 6.99999C1.66536 8.48888 2.18203 9.74999 3.21536 10.7833C4.2487 11.8167 5.50981 12.3333 6.9987 12.3333Z",fill:"currentColor"})}),FingerprintIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.17059 2.00668C7.34517 2.00668 8.45327 2.26308 9.49488 2.77587C10.5365 3.28866 11.4064 4.02967 12.1045 4.9989C12.182 5.10033 12.207 5.19049 12.1793 5.26939C12.1515 5.34828 12.1045 5.4159 12.038 5.47225C11.9715 5.5286 11.8939 5.55396 11.8053 5.54832C11.7166 5.54269 11.6391 5.49479 11.5726 5.40463C10.9631 4.52556 10.1791 3.85217 9.22063 3.38446C8.26212 2.91675 7.24544 2.68289 6.17059 2.68289C5.09573 2.68289 4.08737 2.91675 3.14548 3.38446C2.2036 3.85217 1.42239 4.52556 0.801856 5.40463C0.73537 5.50606 0.657803 5.56241 0.569155 5.57368C0.480507 5.58495 0.40294 5.56241 0.336454 5.50606C0.258888 5.44971 0.211793 5.37927 0.195172 5.29474C0.178551 5.21022 0.203483 5.12287 0.269969 5.03271C0.956989 4.07475 1.81854 3.33092 2.85461 2.80123C3.89068 2.27153 4.99601 2.00668 6.17059 2.00668ZM6.17059 3.59577C7.66652 3.59577 8.95192 4.10293 10.0268 5.11724C11.1016 6.13155 11.6391 7.38817 11.6391 8.8871C11.6391 9.4506 11.4424 9.92113 11.049 10.2987C10.6556 10.6762 10.1764 10.865 9.61123 10.865C9.0461 10.865 8.56131 10.6762 8.15686 10.2987C7.7524 9.92113 7.55017 9.4506 7.55017 8.8871C7.55017 8.51518 7.41443 8.20244 7.14295 7.94886C6.87146 7.69528 6.54734 7.56849 6.17059 7.56849C5.79384 7.56849 5.46972 7.69528 5.19823 7.94886C4.92675 8.20244 4.79101 8.51518 4.79101 8.8871C4.79101 9.9803 5.10959 10.8932 5.74674 11.6257C6.3839 12.3583 7.20666 12.8711 8.21503 13.1641C8.31476 13.1979 8.38125 13.2543 8.41449 13.3332C8.44773 13.4121 8.45327 13.4966 8.43111 13.5867C8.40895 13.6656 8.36462 13.7332 8.29814 13.7896C8.23165 13.846 8.14854 13.8629 8.04882 13.8403C6.89639 13.5473 5.95451 12.9641 5.22317 12.0906C4.49182 11.2172 4.12615 10.1493 4.12615 8.8871C4.12615 8.32359 4.32561 7.85024 4.72452 7.46706C5.12344 7.08388 5.60546 6.89228 6.17059 6.89228C6.73572 6.89228 7.21774 7.08388 7.61666 7.46706C8.01557 7.85024 8.21503 8.32359 8.21503 8.8871C8.21503 9.25901 8.35354 9.57176 8.63057 9.82533C8.90759 10.0789 9.23448 10.2057 9.61123 10.2057C9.98799 10.2057 10.3093 10.0789 10.5753 9.82533C10.8412 9.57176 10.9742 9.25901 10.9742 8.8871C10.9742 7.57976 10.5033 6.48092 9.56137 5.59058C8.61949 4.70024 7.49477 4.25507 6.18721 4.25507C4.87966 4.25507 3.75494 4.70024 2.81305 5.59058C1.87117 6.48092 1.40023 7.57413 1.40023 8.87019C1.40023 9.14067 1.42516 9.47878 1.47503 9.8845C1.52489 10.2902 1.64401 10.7636 1.83239 11.3045C1.86563 11.406 1.86286 11.4961 1.82408 11.575C1.78529 11.6539 1.72158 11.7103 1.63293 11.7441C1.54428 11.7779 1.4584 11.7751 1.3753 11.7356C1.29219 11.6962 1.23401 11.6314 1.20077 11.5412C1.03456 11.1017 0.915436 10.665 0.843409 10.2311C0.771383 9.79716 0.73537 9.34917 0.73537 8.8871C0.73537 7.38817 1.27003 6.13155 2.33934 5.11724C3.40866 4.10293 4.68574 3.59577 6.17059 3.59577ZM6.17059 0.349976C6.87977 0.349976 7.57233 0.437319 8.24827 0.612006C8.92421 0.786693 9.57799 1.03745 10.2096 1.36429C10.3093 1.42064 10.3675 1.48826 10.3841 1.56715C10.4008 1.64604 10.3924 1.72493 10.3592 1.80382C10.326 1.88271 10.2706 1.9447 10.193 1.98978C10.1154 2.03486 10.0212 2.02922 9.91042 1.97287C9.32313 1.66858 8.71644 1.43473 8.09037 1.27131C7.46429 1.10789 6.82437 1.02618 6.17059 1.02618C5.52789 1.02618 4.89628 1.10226 4.27574 1.2544C3.65521 1.40655 3.06238 1.64604 2.49725 1.97287C2.4086 2.02922 2.31995 2.04331 2.2313 2.01514C2.14265 1.98696 2.07617 1.92779 2.03184 1.83763C1.98752 1.74747 1.97644 1.66576 1.9986 1.59251C2.02076 1.51925 2.07617 1.45445 2.16482 1.3981C2.78535 1.05999 3.43359 0.800781 4.10953 0.620459C4.78547 0.440137 5.47249 0.349976 6.17059 0.349976ZM6.17059 5.23558C7.20112 5.23558 8.0876 5.58777 8.83002 6.29215C9.57245 6.99653 9.94366 7.86151 9.94366 8.8871C9.94366 8.98853 9.91319 9.07024 9.85225 9.13222C9.7913 9.19421 9.71096 9.2252 9.61123 9.2252C9.52259 9.2252 9.44502 9.19421 9.37853 9.13222C9.31205 9.07024 9.2788 8.98853 9.2788 8.8871C9.2788 8.04184 8.97131 7.33464 8.35631 6.76549C7.74132 6.19635 7.01274 5.91178 6.17059 5.91178C5.32844 5.91178 4.6054 6.19635 4.00149 6.76549C3.39758 7.33464 3.09562 8.04184 3.09562 8.8871C3.09562 9.79998 3.25075 10.5748 3.56102 11.2116C3.87129 11.8483 4.32561 12.4879 4.92398 13.1303C4.99047 13.1979 5.02371 13.2768 5.02371 13.367C5.02371 13.4571 4.99047 13.536 4.92398 13.6036C4.85749 13.6713 4.77993 13.7051 4.69128 13.7051C4.60263 13.7051 4.52506 13.6713 4.45858 13.6036C3.8048 12.9049 3.30339 12.1921 2.95434 11.4651C2.60528 10.7382 2.43076 9.87887 2.43076 8.8871C2.43076 7.86151 2.79643 6.99653 3.52778 6.29215C4.25912 5.58777 5.14006 5.23558 6.17059 5.23558ZM6.15397 8.54899C6.2537 8.54899 6.33403 8.5828 6.39498 8.65042C6.45592 8.71804 6.4864 8.79693 6.4864 8.8871C6.4864 9.73236 6.78558 10.4255 7.38396 10.9664C7.98233 11.5074 8.68043 11.7779 9.47826 11.7779C9.54475 11.7779 9.63894 11.7722 9.76083 11.761C9.88272 11.7497 10.0101 11.7328 10.1431 11.7103C10.2428 11.6877 10.3287 11.7018 10.4008 11.7525C10.4728 11.8032 10.5199 11.8793 10.542 11.9807C10.5642 12.0709 10.5476 12.1498 10.4922 12.2174C10.4368 12.285 10.3647 12.3301 10.2761 12.3527C10.0766 12.409 9.90211 12.44 9.75252 12.4456C9.60292 12.4513 9.5115 12.4541 9.47826 12.4541C8.49205 12.4541 7.63605 12.116 6.91025 11.4398C6.18444 10.7636 5.82154 9.91268 5.82154 8.8871C5.82154 8.79693 5.85201 8.71804 5.91296 8.65042C5.9739 8.5828 6.05424 8.54899 6.15397 8.54899Z",fill:"currentColor"})}),CompareArrowsIcon=e=>jsxRuntime.jsx("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.53203 11.666L3.55203 10.6863L5.35453 8.91602H0.332031V7.54102H5.35453L3.55203 5.7707L4.53203 4.79102L8.03203 8.22852L4.53203 11.666ZM10.132 7.54102L6.63203 4.10352L10.132 0.666016L11.112 1.6457L9.30953 3.41602H14.332V4.79102H9.30953L11.112 6.56133L10.132 7.54102Z",fill:"currentColor"})}),MinusIcon=({rectFill:e="#F7CFDB",pathFill:t="#E36492",...i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[jsxRuntime.jsx("rect",{width:"20",height:"20",rx:"10",fill:e}),jsxRuntime.jsx("mask",{id:"mask0_16264_15926",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:jsxRuntime.jsx("rect",{x:"2",y:"2",width:"16",height:"16",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_16264_15926)",children:jsxRuntime.jsx("path",{d:"M5.9987 10.6668C5.80981 10.6668 5.65148 10.6029 5.5237 10.4752C5.39592 10.3474 5.33203 10.1891 5.33203 10.0002C5.33203 9.81127 5.39592 9.65294 5.5237 9.52516C5.65148 9.39738 5.80981 9.3335 5.9987 9.3335H13.9987C14.1876 9.3335 14.3459 9.39738 14.4737 9.52516C14.6015 9.65294 14.6654 9.81127 14.6654 10.0002C14.6654 10.1891 14.6015 10.3474 14.4737 10.4752C14.3459 10.6029 14.1876 10.6668 13.9987 10.6668H5.9987Z",fill:t})})]}),PlusIcon=({rectFill:e="#99DFC7",pathFill:t="#2CAC7F",...i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[jsxRuntime.jsx("rect",{width:"20",height:"20",rx:"10",fill:e}),jsxRuntime.jsx("mask",{id:"mask0_16264_15930",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:jsxRuntime.jsx("rect",{x:"2",y:"2",width:"16",height:"16",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_16264_15930)",children:jsxRuntime.jsx("path",{d:"M9.33203 10.6685H5.9987C5.80981 10.6685 5.65148 10.6046 5.5237 10.4769C5.39592 10.3491 5.33203 10.1908 5.33203 10.0019C5.33203 9.81298 5.39592 9.65465 5.5237 9.52687C5.65148 9.39909 5.80981 9.3352 5.9987 9.3352H9.33203V6.00187C9.33203 5.81298 9.39592 5.65465 9.5237 5.52687C9.65148 5.39909 9.80981 5.33521 9.9987 5.33521C10.1876 5.33521 10.3459 5.39909 10.4737 5.52687C10.6015 5.65465 10.6654 5.81298 10.6654 6.00187V9.3352H13.9987C14.1876 9.3352 14.3459 9.39909 14.4737 9.52687C14.6015 9.65465 14.6654 9.81298 14.6654 10.0019C14.6654 10.1908 14.6015 10.3491 14.4737 10.4769C14.3459 10.6046 14.1876 10.6685 13.9987 10.6685H10.6654V14.0019C10.6654 14.1908 10.6015 14.3491 10.4737 14.4769C10.3459 14.6046 10.1876 14.6685 9.9987 14.6685C9.80981 14.6685 9.65148 14.6046 9.5237 14.4769C9.39592 14.3491 9.33203 14.1908 9.33203 14.0019V10.6685Z",fill:t})})]}),Checked=e=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[jsxRuntime.jsx("mask",{id:"mask0_14594_15086",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntime.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_14594_15086)",children:jsxRuntime.jsx("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03333 10.975 7.75 10.975C7.46667 10.975 7.23333 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63333 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z",fill:e.color||"#E36492"})})]}),Unchecked=e=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[jsxRuntime.jsx("mask",{id:"mask0_14594_15093",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntime.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_14594_15093)",children:jsxRuntime.jsx("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"})})]}),Share=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:jsxRuntime.jsx("path",{d:"M11.333 14.6663C10.7775 14.6663 10.3052 14.4719 9.91634 14.083C9.52745 13.6941 9.33301 13.2219 9.33301 12.6663C9.33301 12.5997 9.34968 12.4441 9.38301 12.1997L4.69967 9.46634C4.5219 9.63301 4.31634 9.76356 4.08301 9.85801C3.84967 9.95245 3.59967 9.99967 3.33301 9.99967C2.77745 9.99967 2.30523 9.80523 1.91634 9.41634C1.52745 9.02745 1.33301 8.55523 1.33301 7.99967C1.33301 7.44412 1.52745 6.9719 1.91634 6.58301C2.30523 6.19412 2.77745 5.99967 3.33301 5.99967C3.59967 5.99967 3.84967 6.0469 4.08301 6.14134C4.31634 6.23579 4.5219 6.36634 4.69967 6.53301L9.38301 3.79967C9.36079 3.7219 9.3469 3.6469 9.34134 3.57467C9.33579 3.50245 9.33301 3.4219 9.33301 3.33301C9.33301 2.77745 9.52745 2.30523 9.91634 1.91634C10.3052 1.52745 10.7775 1.33301 11.333 1.33301C11.8886 1.33301 12.3608 1.52745 12.7497 1.91634C13.1386 2.30523 13.333 2.77745 13.333 3.33301C13.333 3.88856 13.1386 4.36079 12.7497 4.74967C12.3608 5.13856 11.8886 5.33301 11.333 5.33301C11.0663 5.33301 10.8163 5.28579 10.583 5.19134C10.3497 5.0969 10.1441 4.96634 9.96634 4.79967L5.28301 7.53301C5.30523 7.61079 5.31912 7.68579 5.32467 7.75801C5.33023 7.83023 5.33301 7.91079 5.33301 7.99967C5.33301 8.08856 5.33023 8.16912 5.32467 8.24134C5.31912 8.31356 5.30523 8.38856 5.28301 8.46634L9.96634 11.1997C10.1441 11.033 10.3497 10.9025 10.583 10.808C10.8163 10.7136 11.0663 10.6663 11.333 10.6663C11.8886 10.6663 12.3608 10.8608 12.7497 11.2497C13.1386 11.6386 13.333 12.1108 13.333 12.6663C13.333 13.2219 13.1386 13.6941 12.7497 14.083C12.3608 14.4719 11.8886 14.6663 11.333 14.6663ZM11.333 13.333C11.5219 13.333 11.6802 13.2691 11.808 13.1413C11.9358 13.0136 11.9997 12.8552 11.9997 12.6663C11.9997 12.4775 11.9358 12.3191 11.808 12.1913C11.6802 12.0636 11.5219 11.9997 11.333 11.9997C11.1441 11.9997 10.9858 12.0636 10.858 12.1913C10.7302 12.3191 10.6663 12.4775 10.6663 12.6663C10.6663 12.8552 10.7302 13.0136 10.858 13.1413C10.9858 13.2691 11.1441 13.333 11.333 13.333ZM3.33301 8.66634C3.5219 8.66634 3.68023 8.60245 3.80801 8.47467C3.93579 8.3469 3.99967 8.18856 3.99967 7.99967C3.99967 7.81079 3.93579 7.65245 3.80801 7.52467C3.68023 7.3969 3.5219 7.33301 3.33301 7.33301C3.14412 7.33301 2.98579 7.3969 2.85801 7.52467C2.73023 7.65245 2.66634 7.81079 2.66634 7.99967C2.66634 8.18856 2.73023 8.3469 2.85801 8.47467C2.98579 8.60245 3.14412 8.66634 3.33301 8.66634ZM11.333 3.99967C11.5219 3.99967 11.6802 3.93579 11.808 3.80801C11.9358 3.68023 11.9997 3.5219 11.9997 3.33301C11.9997 3.14412 11.9358 2.98579 11.808 2.85801C11.6802 2.73023 11.5219 2.66634 11.333 2.66634C11.1441 2.66634 10.9858 2.73023 10.858 2.85801C10.7302 2.98579 10.6663 3.14412 10.6663 3.33301C10.6663 3.5219 10.7302 3.68023 10.858 3.80801C10.9858 3.93579 11.1441 3.99967 11.333 3.99967Z",fill:"currentColor"})}),InfinityIcon=e=>jsxRuntime.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.41599 20.1249C4.70841 20.1249 3.26069 19.5311 2.07281 18.3434C0.884946 17.1558 0.291016 15.7083 0.291016 14.001C0.291016 12.2937 0.884946 10.8459 2.07281 9.65752C3.26069 8.46918 4.70841 7.875 6.41599 7.875C7.0959 7.875 7.74825 7.99578 8.37304 8.23734C8.99781 8.4789 9.56147 8.82179 10.064 9.26602L12.2942 11.2314L10.9705 12.4025L8.89294 10.5673C8.5519 10.2741 8.16824 10.0438 7.74196 9.87624C7.31568 9.70871 6.87342 9.62494 6.41517 9.62494C5.20705 9.62494 4.17599 10.0522 3.32199 10.9067C2.46799 11.7613 2.04099 12.7929 2.04099 14.0018C2.04099 15.2106 2.46799 16.2417 3.32199 17.095C4.17599 17.9483 5.20705 18.375 6.41517 18.375C6.87342 18.375 7.31568 18.2912 7.74196 18.1237C8.16824 17.9562 8.5519 17.7258 8.89294 17.4327L17.9346 9.26602C18.4297 8.8143 18.9908 8.46953 19.618 8.23171C20.2452 7.9939 20.9001 7.875 21.5827 7.875C23.2902 7.875 24.738 8.46883 25.9258 9.6565C27.1137 10.8442 27.7076 12.2917 27.7076 13.999C27.7076 15.7063 27.1137 17.1541 25.9258 18.3424C24.738 19.5308 23.2902 20.1249 21.5827 20.1249C20.9006 20.1249 20.2496 20.0023 19.6296 19.757C19.0096 19.5117 18.4446 19.1707 17.9346 18.7339L15.7269 16.7685L17.0281 15.5862L19.1057 17.4327C19.4467 17.7348 19.8304 17.9674 20.2567 18.1304C20.683 18.2935 21.1252 18.375 21.5835 18.375C22.7916 18.375 23.8227 17.9477 24.6767 17.0932C25.5307 16.2387 25.9577 15.207 25.9577 13.9982C25.9577 12.7893 25.5307 11.7582 24.6767 10.9049C23.8227 10.0516 22.7916 9.62494 21.5835 9.62494C21.1252 9.62494 20.683 9.70871 20.2567 9.87624C19.8304 10.0438 19.4467 10.2741 19.1057 10.5673L10.064 18.7339C9.56896 19.1856 9.00782 19.5304 8.38062 19.7682C7.7534 20.006 7.09852 20.1249 6.41599 20.1249Z",fill:"currentColor"})}),WalletIconRose=e=>jsxRuntime.jsx("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2 18C1.45 18 0.979167 17.8042 0.5875 17.4125C0.195833 17.0208 0 16.55 0 16V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H16C16.55 0 17.0208 0.195833 17.4125 0.5875C17.8042 0.979167 18 1.45 18 2H10C8.81667 2 7.85417 2.37083 7.1125 3.1125C6.37083 3.85417 6 4.81667 6 6V12C6 13.1833 6.37083 14.1458 7.1125 14.8875C7.85417 15.6292 8.81667 16 10 16H18C18 16.55 17.8042 17.0208 17.4125 17.4125C17.0208 17.8042 16.55 18 16 18H2ZM10 14C9.45 14 8.97917 13.8042 8.5875 13.4125C8.19583 13.0208 8 12.55 8 12V6C8 5.45 8.19583 4.97917 8.5875 4.5875C8.97917 4.19583 9.45 4 10 4H17C17.55 4 18.0208 4.19583 18.4125 4.5875C18.8042 4.97917 19 5.45 19 6V12C19 12.55 18.8042 13.0208 18.4125 13.4125C18.0208 13.8042 17.55 14 17 14H10ZM13 10.5C13.4333 10.5 13.7917 10.3583 14.075 10.075C14.3583 9.79167 14.5 9.43333 14.5 9C14.5 8.56667 14.3583 8.20833 14.075 7.925C13.7917 7.64167 13.4333 7.5 13 7.5C12.5667 7.5 12.2083 7.64167 11.925 7.925C11.6417 8.20833 11.5 8.56667 11.5 9C11.5 9.43333 11.6417 9.79167 11.925 10.075C12.2083 10.3583 12.5667 10.5 13 10.5Z",fill:"#E36492"})}),PasskeyIcon=({...e})=>jsxRuntime.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 16V13.2C0.5 12.6333 0.645833 12.1125 0.9375 11.6375C1.22917 11.1625 1.61667 10.8 2.1 10.55C3.13333 10.0333 4.18333 9.64583 5.25 9.3875C6.31667 9.12917 7.4 9 8.5 9C8.83333 9 9.16667 9.0125 9.5 9.0375C9.83333 9.0625 10.1667 9.1 10.5 9.15C10.4333 10.1167 10.6083 11.0292 11.025 11.8875C11.4417 12.7458 12.05 13.45 12.85 14V16H0.5ZM16.5 19L15 17.5V12.85C14.2667 12.6333 13.6667 12.2208 13.2 11.6125C12.7333 11.0042 12.5 10.3 12.5 9.5C12.5 8.53333 12.8417 7.70833 13.525 7.025C14.2083 6.34167 15.0333 6 16 6C16.9667 6 17.7917 6.34167 18.475 7.025C19.1583 7.70833 19.5 8.53333 19.5 9.5C19.5 10.25 19.2875 10.9167 18.8625 11.5C18.4375 12.0833 17.9 12.5 17.25 12.75L18.5 14L17 15.5L18.5 17L16.5 19ZM8.5 8C7.4 8 6.45833 7.60833 5.675 6.825C4.89167 6.04167 4.5 5.1 4.5 4C4.5 2.9 4.89167 1.95833 5.675 1.175C6.45833 0.391667 7.4 0 8.5 0C9.6 0 10.5417 0.391667 11.325 1.175C12.1083 1.95833 12.5 2.9 12.5 4C12.5 5.1 12.1083 6.04167 11.325 6.825C10.5417 7.60833 9.6 8 8.5 8ZM16 10C16.2833 10 16.5208 9.90417 16.7125 9.7125C16.9042 9.52083 17 9.28333 17 9C17 8.71667 16.9042 8.47917 16.7125 8.2875C16.5208 8.09583 16.2833 8 16 8C15.7167 8 15.4792 8.09583 15.2875 8.2875C15.0958 8.47917 15 8.71667 15 9C15 9.28333 15.0958 9.52083 15.2875 9.7125C15.4792 9.90417 15.7167 10 16 10Z",fill:"#E36492"})}),ChainflipIcon=e=>jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#222222"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_radial_16260_59346)",fillOpacity:"0.15"}),jsxRuntime.jsxs("g",{clipPath:"url(#clip0_16260_59346)",children:[jsxRuntime.jsx("path",{d:"M17.9999 5.98035V11.0893C17.9999 11.9975 17.7125 12.8774 17.1939 13.6012C17.0326 13.8282 16.8504 14.034 16.6471 14.2256L16.6331 14.2327H14.2359V9.49982H12.0139H9.77096H9.57469H7.35974L7.38778 9.47144L9.26628 7.70461L9.96021 7.0589C10.7453 6.32094 11.7125 5.98035 12.778 5.98035H17.9999Z",fill:"url(#paint1_linear_16260_59346)"}),jsxRuntime.jsx("path",{d:"M16.6333 14.2398L16.6263 14.2469L16.6193 14.254L16.4931 14.3747L16.0165 14.8288L14.2852 16.4537L14.1169 16.6098C13.3319 17.3407 12.3015 17.738 11.2431 17.738H6.00012V15.4532L6.00713 14.2327L6.02115 12.6078C6.02816 11.4228 6.5118 10.3017 7.36694 9.4928H9.5819H9.58891V14.2327H16.6333V14.2398Z",fill:"url(#paint2_linear_16260_59346)"})]}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("radialGradient",{id:"paint0_radial_16260_59346",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(0.999999) rotate(48.8141) scale(31.8904)",children:[jsxRuntime.jsx("stop",{stopColor:"white"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint1_linear_16260_59346",x1:"12.9315",y1:"5.47634",x2:"12.2436",y2:"18.4428",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#48EF8A"}),jsxRuntime.jsx("stop",{offset:"0.5458",stopColor:"#43B4A6"}),jsxRuntime.jsx("stop",{offset:"0.6918",stopColor:"#2D796F"}),jsxRuntime.jsx("stop",{offset:"0.9662",stopColor:"black"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint2_linear_16260_59346",x1:"11.6332",y1:"18.3813",x2:"9.82728",y2:"5.0946",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#FF5F96"}),jsxRuntime.jsx("stop",{offset:"0.6103",stopColor:"#FF33AF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"black"})]}),jsxRuntime.jsx("clipPath",{id:"clip0_16260_59346",children:jsxRuntime.jsx("rect",{width:"12",height:"11.7647",fill:"white",transform:"translate(6 5.98035)"})})]})]}),RelayLinkIcon=e=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 600 600",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("path",{d:"M299.4 447.057L387.768 396.038V249.701L261.037 176.533L172.76 227.5L299.4 300.615V447.057Z",fill:"url(#paint0_linear_61_2)"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300 128.75L346.737 101.662L304.683 77.3819C301.785 75.709 298.215 75.709 295.317 77.3819L109.548 184.636C106.651 186.309 104.866 189.4 104.866 192.746V407.254C104.866 410.6 106.651 413.692 109.548 415.364L295.317 522.618C298.215 524.291 301.785 524.291 304.683 522.618L490.452 415.364C493.349 413.692 495.134 410.6 495.134 407.254V358.613L448.307 385.625L300 471.25L151.693 385.625V214.375L300 128.75Z",fill:"url(#paint1_linear_61_2)"}),jsxRuntime.jsx("path",{d:"M407.406 384.568L495.078 333.951V193.022C495.078 189.676 493.292 186.584 490.395 184.911L368.346 114.447L281.771 164.431L407.406 236.966V384.568Z",fill:"url(#paint2_linear_61_2)"}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"paint0_linear_61_2",x1:"241.468",y1:"193.157",x2:"207.525",y2:"429.887",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#624AFF"}),jsxRuntime.jsx("stop",{offset:"0.98",stopColor:"#DD09FF"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint1_linear_61_2",x1:"180.056",y1:"494.56",x2:"234.169",y2:"49.7161",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#EF41FF"}),jsxRuntime.jsx("stop",{offset:"0.67",stopColor:"#1F6BFF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"#7DEFFF"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint2_linear_61_2",x1:"372.264",y1:"86.2467",x2:"319.851",y2:"316.686",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#7DEFFF"}),jsxRuntime.jsx("stop",{offset:"0.985",stopColor:"#5707FF"})]})]})]}),ThorswapIcon=e=>jsxRuntime.jsxs("svg",{version:"1.1",id:"Layer_2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,viewBox:"0 0 2988 2988",style:{background:"new 0 0 2988 2988"},xmlSpace:"preserve",...e,children:[jsxRuntime.jsx("style",{type:"text/css",children:`.st0{enable-background:new;}
|
|
47
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function isMobileFirefox(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function isMac(){return testPlatform(/^Mac/)}function isIPhone(){return testPlatform(/^iPhone/)}function isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function isIPad(){return testPlatform(/^iPad/)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function testPlatform(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const KEYBOARD_BUFFER=24,useIsomorphicLayoutEffect$1=typeof window<"u"?React.useLayoutEffect:React.useEffect;function chain$1(...e){return(...t)=>{for(let i of e)typeof i=="function"&&i(...t)}}const visualViewport=typeof document<"u"&&window.visualViewport;function isScrollable(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function getScrollParent(e){for(isScrollable(e)&&(e=e.parentElement);e&&!isScrollable(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const nonTextInputTypes=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let preventScrollCount=0,restore;function usePreventScroll(e={}){let{isDisabled:t}=e;useIsomorphicLayoutEffect$1(()=>{if(!t)return preventScrollCount++,preventScrollCount===1&&isIOS()&&(restore=preventScrollMobileSafari()),()=>{preventScrollCount--,preventScrollCount===0&&(restore==null||restore())}},[t])}function preventScrollMobileSafari(){let e,t=0,i=d=>{e=getScrollParent(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},n=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let p=d.changedTouches[0].pageY,b=e.scrollTop,y=e.scrollHeight-e.clientHeight;y!==0&&((b<=0&&p>t||b>=y&&p<t)&&d.preventDefault(),t=p)},s=d=>{let p=d.target;isInput(p)&&p!==document.activeElement&&(d.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=d=>{let p=d.target;isInput(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",visualViewport&&(visualViewport.height<window.innerHeight?requestAnimationFrame(()=>{scrollIntoView(p)}):visualViewport.addEventListener("resize",()=>scrollIntoView(p),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},l=window.pageXOffset,c=window.pageYOffset,u=chain$1(setStyle(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=chain$1(addEvent(document,"touchstart",i,{passive:!1,capture:!0}),addEvent(document,"touchmove",n,{passive:!1,capture:!0}),addEvent(document,"touchend",s,{passive:!1,capture:!0}),addEvent(document,"focus",a,!0),addEvent(window,"scroll",o));return()=>{u(),f(),window.scrollTo(l,c)}}function setStyle(e,t,i){let n=e.style[t];return e.style[t]=i,()=>{e.style[t]=n}}function addEvent(e,t,i,n){return e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i,n)}}function scrollIntoView(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let i=getScrollParent(e);if(i!==document.documentElement&&i!==document.body&&i!==e){let n=i.getBoundingClientRect().top,s=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const o=i.getBoundingClientRect().bottom+KEYBOARD_BUFFER;a>o&&(i.scrollTop+=s-n)}e=i.parentElement}}function isInput(e){return e instanceof HTMLInputElement&&!nonTextInputTypes.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function setRef(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function composeRefs(...e){return t=>e.forEach(i=>setRef(i,t))}function useComposedRefs(...e){return React__namespace.useCallback(composeRefs(...e),e)}const cache=new WeakMap;function set(e,t,i=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([s,a])=>{if(s.startsWith("--")){e.style.setProperty(s,a);return}n[s]=e.style[s],e.style[s]=a}),!i&&cache.set(e,n)}function reset(e,t){if(!e||!(e instanceof HTMLElement))return;let i=cache.get(e);i&&(e.style[t]=i[t])}const isVertical=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function getTranslate(e,t){if(!e)return null;const i=window.getComputedStyle(e),n=i.transform||i.webkitTransform||i.mozTransform;let s=n.match(/^matrix3d\((.+)\)$/);return s?parseFloat(s[1].split(", ")[isVertical(t)?13:12]):(s=n.match(/^matrix\((.+)\)$/),s?parseFloat(s[1].split(", ")[isVertical(t)?5:4]):null)}function dampenValue(e){return 8*(Math.log(e+1)-2)}function assignStyle(e,t){if(!e)return()=>{};const i=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=i}}function chain(...e){return(...t)=>{for(const i of e)typeof i=="function"&&i(...t)}}const TRANSITIONS={DURATION:.5,EASE:[.32,.72,0,1]},VELOCITY_THRESHOLD=.4,CLOSE_THRESHOLD=.25,SCROLL_LOCK_TIMEOUT=100,BORDER_RADIUS=8,NESTED_DISPLACEMENT=16,WINDOW_TOP_OFFSET=26,DRAG_CLASS="vaul-dragging";function useCallbackRef(e){const t=React.useRef(e);return React.useEffect(()=>{t.current=e}),React.useMemo(()=>(...i)=>t.current==null?void 0:t.current.call(t,...i),[])}function useUncontrolledState({defaultProp:e,onChange:t}){const i=React.useState(e),[n]=i,s=React.useRef(n),a=useCallbackRef(t);return React.useEffect(()=>{s.current!==n&&(a(n),s.current=n)},[n,s,a]),i}function useControllableState({prop:e,defaultProp:t,onChange:i=()=>{}}){const[n,s]=useUncontrolledState({defaultProp:t,onChange:i}),a=e!==void 0,o=a?e:n,l=useCallbackRef(i),c=React.useCallback(u=>{if(a){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else s(u)},[a,e,s,l]);return[o,c]}function useSnapPoints({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:i,drawerRef:n,overlayRef:s,fadeFromIndex:a,onSnapPointChange:o,direction:l="bottom",container:c,snapToSequentialPoint:u}){const[f,d]=useControllableState({prop:e,defaultProp:i==null?void 0:i[0],onChange:t}),[p,b]=React.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);React.useEffect(()=>{function L(){b({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);const y=React.useMemo(()=>f===(i==null?void 0:i[i.length-1])||null,[i,f]),C=React.useMemo(()=>{var L;return(L=i==null?void 0:i.findIndex(_=>_===f))!=null?L:null},[i,f]),P=i&&i.length>0&&(a||a===0)&&!Number.isNaN(a)&&i[a]===f||!i,m=React.useMemo(()=>{const L=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var _;return(_=i==null?void 0:i.map(k=>{const $=typeof k=="string";let z=0;if($&&(z=parseInt(k,10)),isVertical(l)){const N=$?z:p?k*L.height:0;return p?l==="bottom"?L.height-N:-L.height+N:N}const O=$?z:p?k*L.width:0;return p?l==="right"?L.width-O:-L.width+O:O}))!=null?_:[]},[i,p,c]),x=React.useMemo(()=>C!==null?m==null?void 0:m[C]:null,[m,C]),g=React.useCallback(L=>{var _;const k=(_=m==null?void 0:m.findIndex($=>$===L))!=null?_:null;o(k),set(n.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(l)?`translate3d(0, ${L}px, 0)`:`translate3d(${L}px, 0, 0)`}),m&&k!==m.length-1&&a!==void 0&&k!==a&&k<a?set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"0"}):set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"1"}),d(i==null?void 0:i[Math.max(k,0)])},[n.current,i,m,a,s,d]);React.useEffect(()=>{if(f||e){var L;const _=(L=i==null?void 0:i.findIndex(k=>k===e||k===f))!=null?L:-1;m&&_!==-1&&typeof m[_]=="number"&&g(m[_])}},[f,e,i,m,g]);function S({draggedDistance:L,closeDrawer:_,velocity:k,dismissible:$}){if(a===void 0)return;const z=l==="bottom"||l==="right"?(x??0)-L:(x??0)+L,O=C===a-1,N=C===0,K=L>0;if(O&&set(s.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`}),!u&&k>2&&!K){$?_():g(m[0]);return}if(!u&&k>2&&K&&m&&i){g(m[i.length-1]);return}const B=m==null?void 0:m.reduce((V,R)=>typeof V!="number"||typeof R!="number"?V:Math.abs(R-z)<Math.abs(V-z)?R:V),A=isVertical(l)?window.innerHeight:window.innerWidth;if(k>VELOCITY_THRESHOLD&&Math.abs(L)<A*.4){const V=K?1:-1;if(V>0&&y&&i){g(m[i.length-1]);return}if(N&&V<0&&$&&_(),C===null)return;g(m[C+V]);return}g(B)}function E({draggedDistance:L}){if(x===null)return;const _=l==="bottom"||l==="right"?x-L:x+L;(l==="bottom"||l==="right")&&_<m[m.length-1]||(l==="top"||l==="left")&&_>m[m.length-1]||set(n.current,{transform:isVertical(l)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function T(L,_){if(!i||typeof C!="number"||!m||a===void 0)return null;const k=C===a-1;if(C>=a&&_)return 0;if(k&&!_)return 1;if(!P&&!k)return null;const z=k?C+1:C-1,O=k?m[z]-m[z-1]:m[z+1]-m[z],N=L/Math.abs(O);return k?1-N:N}return{isLastSnapPoint:y,activeSnapPoint:f,shouldFade:P,getPercentageDragged:T,setActiveSnapPoint:d,activeSnapPointIndex:C,onRelease:S,onDrag:E,snapPointsOffset:m}}const noop$1=()=>()=>{};function useScaleBackground(){const{direction:e,isOpen:t,shouldScaleBackground:i,setBackgroundColorOnScale:n,noBodyStyles:s}=useDrawerContext(),a=React.useRef(null),o=React.useMemo(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-WINDOW_TOP_OFFSET)/window.innerWidth}React.useEffect(()=>{if(t&&i){a.current&&clearTimeout(a.current);const c=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!c)return;chain(n&&!s?assignStyle(document.body,{background:"black"}):noop$1,assignStyle(c,{transformOrigin:isVertical(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${TRANSITIONS.DURATION}s`,transitionTimingFunction:`cubic-bezier(${TRANSITIONS.EASE.join(",")})`}));const u=assignStyle(c,{borderRadius:`${BORDER_RADIUS}px`,overflow:"hidden",...isVertical(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},TRANSITIONS.DURATION*1e3)}}},[t,i,o])}let previousBodyPosition=null;function usePositionFixed({isOpen:e,modal:t,nested:i,hasBeenOpened:n,preventScrollRestoration:s,noBodyStyles:a}){const[o,l]=React.useState(()=>typeof window<"u"?window.location.href:""),c=React.useRef(0),u=React.useCallback(()=>{if(isSafari()&&previousBodyPosition===null&&e&&!a){previousBodyPosition={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:p}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const b=p-window.innerHeight;b&&c.current>=p&&(document.body.style.top=`${-(c.current+b)}px`)}),300)}},[e]),f=React.useCallback(()=>{if(isSafari()&&previousBodyPosition!==null&&!a){const d=-parseInt(document.body.style.top,10),p=-parseInt(document.body.style.left,10);Object.assign(document.body.style,previousBodyPosition),window.requestAnimationFrame(()=>{if(s&&o!==window.location.href){l(window.location.href);return}window.scrollTo(p,d)}),previousBodyPosition=null}},[o]);return React.useEffect(()=>{function d(){c.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),React.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||f()}},[t,f]),React.useEffect(()=>{i||!n||(e?(!window.matchMedia("(display-mode: standalone)").matches&&u(),t||window.setTimeout(()=>{f()},500)):f())},[e,n,o,t,i,u,f]),{restorePositionSetting:f}}function Root({open:e,onOpenChange:t,children:i,onDrag:n,onRelease:s,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:l=!0,closeThreshold:c=CLOSE_THRESHOLD,scrollLockTimeout:u=SCROLL_LOCK_TIMEOUT,dismissible:f=!0,handleOnly:d=!1,fadeFromIndex:p=a&&a.length-1,activeSnapPoint:b,setActiveSnapPoint:y,fixed:C,modal:P=!0,onClose:m,nested:x,noBodyStyles:g=!1,direction:S="bottom",defaultOpen:E=!1,disablePreventScroll:T=!0,snapToSequentialPoint:L=!1,preventScrollRestoration:_=!1,repositionInputs:k=!0,onAnimationEnd:$,container:z,autoFocus:O=!1}){var N,K;const[B=!1,A]=useControllableState({defaultProp:E,prop:e,onChange:H=>{t==null||t(H),!H&&!x&&Te(),setTimeout(()=>{$==null||$(H)},TRANSITIONS.DURATION*1e3),H&&!P&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),H||(document.body.style.pointerEvents="auto")}}),[V,R]=React.useState(!1),[M,I]=React.useState(!1),[j,W]=React.useState(!1),q=React.useRef(null),X=React.useRef(null),ee=React.useRef(null),re=React.useRef(null),ce=React.useRef(null),he=React.useRef(!1),me=React.useRef(null),pe=React.useRef(0),se=React.useRef(!1),fe=React.useRef(!E),ie=React.useRef(0),Y=React.useRef(null),Ee=React.useRef(((N=Y.current)==null?void 0:N.getBoundingClientRect().height)||0),Le=React.useRef(((K=Y.current)==null?void 0:K.getBoundingClientRect().width)||0),be=React.useRef(0),ye=React.useCallback(H=>{a&&H===we.length-1&&(X.current=new Date)},[]),{activeSnapPoint:Pe,activeSnapPointIndex:ve,setActiveSnapPoint:Ce,onRelease:xe,snapPointsOffset:we,onDrag:Se,shouldFade:Me,getPercentageDragged:Re}=useSnapPoints({snapPoints:a,activeSnapPointProp:b,setActiveSnapPointProp:y,drawerRef:Y,fadeFromIndex:p,overlayRef:q,onSnapPointChange:ye,direction:S,container:z,snapToSequentialPoint:L});usePreventScroll({isDisabled:!B||M||!P||j||!V||!k||!T});const{restorePositionSetting:Te}=usePositionFixed({isOpen:B,modal:P,nested:x??!1,hasBeenOpened:V,preventScrollRestoration:_,noBodyStyles:g});function _e(){return(window.innerWidth-WINDOW_TOP_OFFSET)/window.innerWidth}function Ve(H){var D,Z;!f&&!a||Y.current&&!Y.current.contains(H.target)||(Ee.current=((D=Y.current)==null?void 0:D.getBoundingClientRect().height)||0,Le.current=((Z=Y.current)==null?void 0:Z.getBoundingClientRect().width)||0,I(!0),ee.current=new Date,isIOS()&&window.addEventListener("touchend",()=>he.current=!1,{once:!0}),H.target.setPointerCapture(H.pointerId),pe.current=isVertical(S)?H.pageY:H.pageX)}function je(H,D){var Z;let J=H;const Q=(Z=window.getSelection())==null?void 0:Z.toString(),te=Y.current?getTranslate(Y.current,S):null,ne=new Date;if(J.tagName==="SELECT"||J.hasAttribute("data-vaul-no-drag")||J.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(X.current&&ne.getTime()-X.current.getTime()<500)return!1;if(te!==null&&(S==="bottom"?te>0:te<0))return!0;if(Q&&Q.length>0)return!1;if(ce.current&&ne.getTime()-ce.current.getTime()<u&&te===0||D)return ce.current=ne,!1;for(;J;){if(J.scrollHeight>J.clientHeight){if(J.scrollTop!==0)return ce.current=new Date,!1;if(J.getAttribute("role")==="dialog")return!0}J=J.parentNode}return!0}function De(H){if(Y.current&&M){const D=S==="bottom"||S==="right"?1:-1,Z=(pe.current-(isVertical(S)?H.pageY:H.pageX))*D,J=Z>0,Q=a&&!f&&!J;if(Q&&ve===0)return;const te=Math.abs(Z),ne=document.querySelector("[data-vaul-drawer-wrapper]"),le=S==="bottom"||S==="top"?Ee.current:Le.current;let ae=te/le;const oe=Re(te,J);if(oe!==null&&(ae=oe),Q&&ae>=1||!he.current&&!je(H.target,J))return;if(Y.current.classList.add(DRAG_CLASS),he.current=!0,set(Y.current,{transition:"none"}),set(q.current,{transition:"none"}),a&&Se({draggedDistance:Z}),J&&!a){const ue=dampenValue(Z),ge=Math.min(ue*-1,0)*D;set(Y.current,{transform:isVertical(S)?`translate3d(0, ${ge}px, 0)`:`translate3d(${ge}px, 0, 0)`});return}const de=1-ae;if((Me||p&&ve===p-1)&&(n==null||n(H,ae),set(q.current,{opacity:`${de}`,transition:"none"},!0)),ne&&q.current&&o){const ue=Math.min(_e()+ae*(1-_e()),1),ge=8-ae*8,Ie=Math.max(0,14-ae*14);set(ne,{borderRadius:`${ge}px`,transform:isVertical(S)?`scale(${ue}) translate3d(0, ${Ie}px, 0)`:`scale(${ue}) translate3d(${Ie}px, 0, 0)`,transition:"none"},!0)}if(!a){const ue=te*D;set(Y.current,{transform:isVertical(S)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`})}}}React.useEffect(()=>{window.requestAnimationFrame(()=>{fe.current=!0})},[]),React.useEffect(()=>{var H;function D(){if(!Y.current||!k)return;const Z=document.activeElement;if(isInput(Z)||se.current){var J;const Q=((J=window.visualViewport)==null?void 0:J.height)||0,te=window.innerHeight;let ne=te-Q;const le=Y.current.getBoundingClientRect().height||0,ae=le>te*.8;be.current||(be.current=le);const oe=Y.current.getBoundingClientRect().top;if(Math.abs(ie.current-ne)>60&&(se.current=!se.current),a&&a.length>0&&we&&ve){const de=we[ve]||0;ne+=de}if(ie.current=ne,le>Q||se.current){const de=Y.current.getBoundingClientRect().height;let ue=de;de>Q&&(ue=Q-(ae?oe:WINDOW_TOP_OFFSET)),C?Y.current.style.height=`${de-Math.max(ne,0)}px`:Y.current.style.height=`${Math.max(ue,Q-oe)}px`}else isMobileFirefox()||(Y.current.style.height=`${be.current}px`);a&&a.length>0&&!se.current?Y.current.style.bottom="0px":Y.current.style.bottom=`${Math.max(ne,0)}px`}}return(H=window.visualViewport)==null||H.addEventListener("resize",D),()=>{var Z;return(Z=window.visualViewport)==null?void 0:Z.removeEventListener("resize",D)}},[ve,a,we]);function Ae(H){Fe(),m==null||m(),H||A(!1),setTimeout(()=>{a&&Ce(a[0])},TRANSITIONS.DURATION*1e3)}function ke(){if(!Y.current)return;const H=document.querySelector("[data-vaul-drawer-wrapper]"),D=getTranslate(Y.current,S);set(Y.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`}),set(q.current,{transition:`opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,opacity:"1"}),o&&D&&D>0&&B&&set(H,{borderRadius:`${BORDER_RADIUS}px`,overflow:"hidden",...isVertical(S)?{transform:`scale(${_e()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${_e()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${TRANSITIONS.DURATION}s`,transitionTimingFunction:`cubic-bezier(${TRANSITIONS.EASE.join(",")})`},!0)}function Fe(){!M||!Y.current||(Y.current.classList.remove(DRAG_CLASS),he.current=!1,I(!1),re.current=new Date)}function He(H){if(!M||!Y.current)return;Y.current.classList.remove(DRAG_CLASS),he.current=!1,I(!1),re.current=new Date;const D=getTranslate(Y.current,S);if(!H||!je(H.target,!1)||!D||Number.isNaN(D)||ee.current===null)return;const Z=re.current.getTime()-ee.current.getTime(),J=pe.current-(isVertical(S)?H.pageY:H.pageX),Q=Math.abs(J)/Z;if(Q>.05&&(W(!0),setTimeout(()=>{W(!1)},200)),a){xe({draggedDistance:J*(S==="bottom"||S==="right"?1:-1),closeDrawer:Ae,velocity:Q,dismissible:f}),s==null||s(H,!0);return}if(S==="bottom"||S==="right"?J>0:J<0){ke(),s==null||s(H,!0);return}if(Q>VELOCITY_THRESHOLD){Ae(),s==null||s(H,!1);return}var te;const ne=Math.min((te=Y.current.getBoundingClientRect().height)!=null?te:0,window.innerHeight);var le;const ae=Math.min((le=Y.current.getBoundingClientRect().width)!=null?le:0,window.innerWidth),oe=S==="left"||S==="right";if(Math.abs(D)>=(oe?ae:ne)*c){Ae(),s==null||s(H,!1);return}s==null||s(H,!0),ke()}React.useEffect(()=>(B&&(set(document.documentElement,{scrollBehavior:"auto"}),X.current=new Date),()=>{reset(document.documentElement,"scrollBehavior")}),[B]);function U(H){const D=H?(window.innerWidth-NESTED_DISPLACEMENT)/window.innerWidth:1,Z=H?-NESTED_DISPLACEMENT:0;me.current&&window.clearTimeout(me.current),set(Y.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(S)?`scale(${D}) translate3d(0, ${Z}px, 0)`:`scale(${D}) translate3d(${Z}px, 0, 0)`}),!H&&Y.current&&(me.current=setTimeout(()=>{const J=getTranslate(Y.current,S);set(Y.current,{transition:"none",transform:isVertical(S)?`translate3d(0, ${J}px, 0)`:`translate3d(${J}px, 0, 0)`})},500))}function F(H,D){if(D<0)return;const Z=(window.innerWidth-NESTED_DISPLACEMENT)/window.innerWidth,J=Z+D*(1-Z),Q=-NESTED_DISPLACEMENT+D*NESTED_DISPLACEMENT;set(Y.current,{transform:isVertical(S)?`scale(${J}) translate3d(0, ${Q}px, 0)`:`scale(${J}) translate3d(${Q}px, 0, 0)`,transition:"none"})}function G(H,D){const Z=isVertical(S)?window.innerHeight:window.innerWidth,J=D?(Z-NESTED_DISPLACEMENT)/Z:1,Q=D?-NESTED_DISPLACEMENT:0;D&&set(Y.current,{transition:`transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,transform:isVertical(S)?`scale(${J}) translate3d(0, ${Q}px, 0)`:`scale(${J}) translate3d(${Q}px, 0, 0)`})}return React.useEffect(()=>{P||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[P]),React.createElement(Root$1,{defaultOpen:E,onOpenChange:H=>{!f&&!H||(H?R(!0):Ae(!0),A(H))},open:B},React.createElement(DrawerContext.Provider,{value:{activeSnapPoint:Pe,snapPoints:a,setActiveSnapPoint:Ce,drawerRef:Y,overlayRef:q,onOpenChange:t,onPress:Ve,onRelease:He,onDrag:De,dismissible:f,shouldAnimate:fe,handleOnly:d,isOpen:B,isDragging:M,shouldFade:Me,closeDrawer:Ae,onNestedDrag:F,onNestedOpenChange:U,onNestedRelease:G,keyboardIsOpen:se,modal:P,snapPointsOffset:we,activeSnapPointIndex:ve,direction:S,shouldScaleBackground:o,setBackgroundColorOnScale:l,noBodyStyles:g,container:z,autoFocus:O}},i))}const Overlay=React.forwardRef(function({...e},t){const{overlayRef:i,snapPoints:n,onRelease:s,shouldFade:a,isOpen:o,modal:l,shouldAnimate:c}=useDrawerContext(),u=useComposedRefs(t,i),f=n&&n.length>0;if(!l)return null;const d=React.useCallback(p=>s(p),[s]);return React.createElement(Overlay$1,{onMouseUp:d,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":o&&f?"true":"false","data-vaul-snap-points-overlay":o&&a?"true":"false","data-vaul-animate":c!=null&&c.current?"true":"false",...e})});Overlay.displayName="Drawer.Overlay";const Content=React.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:i,...n},s){const{drawerRef:a,onPress:o,onRelease:l,onDrag:c,keyboardIsOpen:u,snapPointsOffset:f,activeSnapPointIndex:d,modal:p,isOpen:b,direction:y,snapPoints:C,container:P,handleOnly:m,shouldAnimate:x,autoFocus:g}=useDrawerContext(),[S,E]=React.useState(!1),T=useComposedRefs(s,a),L=React.useRef(null),_=React.useRef(null),k=React.useRef(!1),$=C&&C.length>0;useScaleBackground();const z=(N,K,B=0)=>{if(k.current)return!0;const A=Math.abs(N.y),V=Math.abs(N.x),R=V>A,M=["bottom","right"].includes(K)?1:-1;if(K==="left"||K==="right"){if(!(N.x*M<0)&&V>=0&&V<=B)return R}else if(!(N.y*M<0)&&A>=0&&A<=B)return!R;return k.current=!0,!0};React.useEffect(()=>{$&&window.requestAnimationFrame(()=>{E(!0)})},[]);function O(N){L.current=null,k.current=!1,l(N)}return React.createElement(Content$1,{"data-vaul-drawer-direction":y,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":b&&$?"true":"false","data-vaul-custom-container":P?"true":"false","data-vaul-animate":x!=null&&x.current?"true":"false",...n,ref:T,style:f&&f.length>0?{"--snap-point-height":`${f[d??0]}px`,...t}:t,onPointerDown:N=>{m||(n.onPointerDown==null||n.onPointerDown.call(n,N),L.current={x:N.pageX,y:N.pageY},o(N))},onOpenAutoFocus:N=>{i==null||i(N),g||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!p||N.defaultPrevented){N.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:N=>{if(!p){N.preventDefault();return}},onPointerMove:N=>{if(_.current=N,m||(n.onPointerMove==null||n.onPointerMove.call(n,N),!L.current))return;const K=N.pageY-L.current.y,B=N.pageX-L.current.x,A=N.pointerType==="touch"?10:2;z({x:B,y:K},y,A)?c(N):(Math.abs(B)>A||Math.abs(K)>A)&&(L.current=null)},onPointerUp:N=>{n.onPointerUp==null||n.onPointerUp.call(n,N),L.current=null,k.current=!1,l(N)},onPointerOut:N=>{n.onPointerOut==null||n.onPointerOut.call(n,N),O(_.current)},onContextMenu:N=>{n.onContextMenu==null||n.onContextMenu.call(n,N),_.current&&O(_.current)}})});Content.displayName="Drawer.Content";const LONG_HANDLE_PRESS_TIMEOUT=250,DOUBLE_TAP_TIMEOUT=120,Handle=React.forwardRef(function({preventCycle:e=!1,children:t,...i},n){const{closeDrawer:s,isDragging:a,snapPoints:o,activeSnapPoint:l,setActiveSnapPoint:c,dismissible:u,handleOnly:f,isOpen:d,onPress:p,onDrag:b}=useDrawerContext(),y=React.useRef(null),C=React.useRef(!1);function P(){if(C.current){g();return}window.setTimeout(()=>{m()},DOUBLE_TAP_TIMEOUT)}function m(){if(a||e||C.current){g();return}if(g(),!o||o.length===0){u||s();return}if(l===o[o.length-1]&&u){s();return}const E=o.findIndex(L=>L===l);if(E===-1)return;const T=o[E+1];c(T)}function x(){y.current=window.setTimeout(()=>{C.current=!0},LONG_HANDLE_PRESS_TIMEOUT)}function g(){y.current&&window.clearTimeout(y.current),C.current=!1}return React.createElement("div",{onClick:P,onPointerCancel:g,onPointerDown:S=>{f&&p(S),x()},onPointerMove:S=>{f&&b(S)},ref:n,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...i},React.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Handle.displayName="Drawer.Handle";function NestedRoot({onDrag:e,onOpenChange:t,open:i,...n}){const{onNestedDrag:s,onNestedOpenChange:a,onNestedRelease:o}=useDrawerContext();if(!s)throw new Error("Drawer.NestedRoot must be placed in another drawer");return React.createElement(Root,{nested:!0,open:i,onClose:()=>{a(!1)},onDrag:(l,c)=>{s(l,c),e==null||e(l,c)},onOpenChange:l=>{l&&a(l),t==null||t(l)},onRelease:o,...n})}function Portal(e){const t=useDrawerContext(),{container:i=t.container,...n}=e;return React.createElement(Portal$1,{container:i,...n})}const Drawer={Root,NestedRoot,Content,Overlay,Trigger,Portal,Handle,Close,Title,Description},BottomSheet=({children:e,open:t,onOpenChange:i})=>jsxRuntime.jsx(ClientOnly,{children:jsxRuntime.jsxs(Drawer.Root,{open:t,onOpenChange:i,children:[jsxRuntime.jsx(Drawer.Overlay,{className:"gf-fixed gf-inset-0 gf-z-50 gf-h-screen gf-w-screen gf-bg-dark-grey gf-bg-opacity-40 gf-transition-colors gf-duration-500 gf-ease-cubic-in-out"}),jsxRuntime.jsx(Drawer.Portal,{children:jsxRuntime.jsxs(Drawer.Content,{className:"gf-fixed gf-bottom-0 gf-z-50 gf-h-fit gf-w-full gf-rounded-t-xl gf-bg-white/50 gf-px-4 gf-py-4 gf-outline-none gf-backdrop-blur-[20px]",children:[jsxRuntime.jsx("div",{className:"gf-mx-auto gf-mb-3 gf-h-1 gf-w-[60px] gf-rounded-full gf-bg-white/30"}),jsxRuntime.jsx("div",{className:"gf-scrollbar-hide gf-flex gf-max-h-[90vh] gf-flex-col gf-gap-5 gf-overflow-y-scroll",children:e})]})})]})}),Container=({children:e,className:t,...i})=>jsxRuntime.jsx("div",{...i,className:cn("gf-p-6 gf-rounded-2xl gf-w-fit",t),children:e}),ArrowDownwardIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.0013 17.3333L0.167969 11.5L1.33464 10.3333L5.16797 14.1458V0.666656H6.83464V14.1458L10.668 10.3125L11.8346 11.5L6.0013 17.3333Z"})}),ArrowUpwardIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.16797 17.3333V3.85416L1.33464 7.66666L0.167969 6.49999L6.0013 0.666656L11.8346 6.49999L10.668 7.68749L6.83464 3.85416V17.3333H5.16797Z"})}),ArrowLeftIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"12",viewBox:"0 0 18 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.5013 11.8333L0.667969 5.99999L6.5013 0.166656L7.66797 1.33332L3.85547 5.16666H17.3346V6.83332H3.85547L7.6888 10.6667L6.5013 11.8333Z"})}),ArrowRightIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"12",viewBox:"0 0 18 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.5013 11.8333L10.3138 10.6667L14.1471 6.83332H0.667969V5.16666H14.1471L10.3346 1.33332L11.5013 0.166656L17.3346 5.99999L11.5013 11.8333Z"})}),AddIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.16797 6.83332H0.167969V5.16666H5.16797V0.166656H6.83464V5.16666H11.8346V6.83332H6.83464V11.8333H5.16797V6.83332Z"})}),ArrowNorthEastIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.4987 12.6667L0.332031 11.5L9.9987 1.83335H4.4987V0.166687H12.832V8.50002H11.1654V3.00002L1.4987 12.6667Z"})}),ArrowNorthWestIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.5013 12.6667L1.83464 3.00002V8.50002H0.167969V0.166687H8.5013V1.83335H3.0013L12.668 11.5L11.5013 12.6667Z"})}),ArrowSouthEastIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.4987 12.8333V11.1666H9.9987L0.332031 1.49998L1.4987 0.333313L11.1654 9.99998V4.49998H12.832V12.8333H4.4987Z"})}),ArrowSouthWestIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.167969 12.8333V4.49998H1.83464V9.99998L11.5013 0.333313L12.668 1.49998L3.0013 11.1666H8.5013V12.8333H0.167969Z"})}),CheckIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.95703 11.0003L0.207031 6.25033L1.39453 5.06283L4.95703 8.62533L12.6029 0.979492L13.7904 2.16699L4.95703 11.0003Z"})}),ClockIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M11.7513 12.9167L12.918 11.75L9.83463 8.66669V4.83335H8.16797V9.33335L11.7513 12.9167ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8485 15.6667 12.4214 15.0174 13.7201 13.7188C15.0187 12.4202 15.668 10.8472 15.668 9.00002C15.668 7.1528 15.0187 5.57988 13.7201 4.28127C12.4214 2.98266 10.8485 2.33335 9.0013 2.33335C7.15408 2.33335 5.58116 2.98266 4.28255 4.28127C2.98394 5.57988 2.33464 7.1528 2.33464 9.00002C2.33464 10.8472 2.98394 12.4202 4.28255 13.7188C5.58116 15.0174 7.15408 15.6667 9.0013 15.6667Z"})}),CloseIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.33464 11.8334L0.167969 10.6667L4.83464 6.00002L0.167969 1.33335L1.33464 0.166687L6.0013 4.83335L10.668 0.166687L11.8346 1.33335L7.16797 6.00002L11.8346 10.6667L10.668 11.8334L6.0013 7.16669L1.33464 11.8334Z"})}),CopyIcon=e=>jsxRuntime.jsx("svg",{width:"15",height:"18",viewBox:"0 0 15 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.5 14C5.04167 14 4.64931 13.8368 4.32292 13.5104C3.99653 13.184 3.83333 12.7917 3.83333 12.3334V2.33335C3.83333 1.87502 3.99653 1.48266 4.32292 1.15627C4.64931 0.829881 5.04167 0.666687 5.5 0.666687H13C13.4583 0.666687 13.8507 0.829881 14.1771 1.15627C14.5035 1.48266 14.6667 1.87502 14.6667 2.33335V12.3334C14.6667 12.7917 14.5035 13.184 14.1771 13.5104C13.8507 13.8368 13.4583 14 13 14H5.5ZM5.5 12.3334H13V2.33335H5.5V12.3334ZM2.16667 17.3334C1.70833 17.3334 1.31597 17.1702 0.989583 16.8438C0.663194 16.5174 0.5 16.125 0.5 15.6667V4.00002H2.16667V15.6667H11.3333V17.3334H2.16667Z"})}),EditIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 13.8333H3.35417L11.5 5.6875L10.3125 4.5L2.16667 12.6458V13.8333ZM0.5 15.5V11.9583L11.5 0.979167C11.6667 0.826389 11.8507 0.708333 12.0521 0.625C12.2535 0.541667 12.4653 0.5 12.6875 0.5C12.9097 0.5 13.125 0.541667 13.3333 0.625C13.5417 0.708333 13.7222 0.833333 13.875 1L15.0208 2.16667C15.1875 2.31944 15.309 2.5 15.3854 2.70833C15.4618 2.91667 15.5 3.125 15.5 3.33333C15.5 3.55556 15.4618 3.76736 15.3854 3.96875C15.309 4.17014 15.1875 4.35417 15.0208 4.52083L4.04167 15.5H0.5ZM10.8958 5.10417L10.3125 4.5L11.5 5.6875L10.8958 5.10417Z"})}),ExchangeIcon=e=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("path",{d:"M12.3882 15.3333L12.3882 4.37498L11.1382 4.37498L11.1382 15.3333L11.1382 18.3333L11.7632 17.7083L15.832 13.6394L14.9715 12.75L12.3882 15.3333Z"}),jsxRuntime.jsx("path",{d:"M7.61184 4.66669L7.61184 15.625L8.86184 15.625L8.86184 4.66669L8.86181 1.66669L8.23684 2.29169L4.16797 6.36056L5.02851 7.25002L7.61184 4.66669Z"})]}),InfoIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8.16797 13.1667H9.83463V8.16669H8.16797V13.1667ZM9.0013 6.50002C9.23741 6.50002 9.43533 6.42016 9.59505 6.26044C9.75477 6.10071 9.83463 5.9028 9.83463 5.66669C9.83463 5.43058 9.75477 5.23266 9.59505 5.07294C9.43533 4.91321 9.23741 4.83335 9.0013 4.83335C8.76519 4.83335 8.56727 4.91321 8.40755 5.07294C8.24783 5.23266 8.16797 5.43058 8.16797 5.66669C8.16797 5.9028 8.24783 6.10071 8.40755 6.26044C8.56727 6.42016 8.76519 6.50002 9.0013 6.50002ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8624 15.6667 12.4388 15.0209 13.7305 13.7292C15.0221 12.4375 15.668 10.8611 15.668 9.00002C15.668 7.13891 15.0221 5.56252 13.7305 4.27085C12.4388 2.97919 10.8624 2.33335 9.0013 2.33335C7.14019 2.33335 5.5638 2.97919 4.27214 4.27085C2.98047 5.56252 2.33464 7.13891 2.33464 9.00002C2.33464 10.8611 2.98047 12.4375 4.27214 13.7292C5.5638 15.0209 7.14019 15.6667 9.0013 15.6667Z"})}),KeyboardDownIcon=e=>jsxRuntime.jsx("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5 6.83335L0 1.83335L1.16667 0.666687L5 4.50002L8.83333 0.666687L10 1.83335L5 6.83335Z"})}),KeyboardLeftIcon=e=>jsxRuntime.jsx("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.66797 10L0.667969 5L5.66797 0L6.83464 1.16667L3.0013 5L6.83464 8.83333L5.66797 10Z"})}),KeyboardRightIcon=e=>jsxRuntime.jsx("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.5013 5L0.667969 1.16667L1.83464 0L6.83464 5L1.83464 10L0.667969 8.83333L4.5013 5Z"})}),KeyboardUpIcon=e=>jsxRuntime.jsx("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5 3.00002L1.16667 6.83335L0 5.66669L5 0.666687L10 5.66669L8.83333 6.83335L5 3.00002Z"})}),LanguageIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8 16C6.90278 16 5.86806 15.7917 4.89583 15.375C3.92361 14.9583 3.07292 14.3854 2.34375 13.6562C1.61458 12.9271 1.04167 12.0764 0.625 11.1042C0.208333 10.1319 0 9.09722 0 8C0 6.88889 0.208333 5.85069 0.625 4.88542C1.04167 3.92014 1.61458 3.07292 2.34375 2.34375C3.07292 1.61458 3.92361 1.04167 4.89583 0.625C5.86806 0.208333 6.90278 0 8 0C9.11111 0 10.1493 0.208333 11.1146 0.625C12.0799 1.04167 12.9271 1.61458 13.6562 2.34375C14.3854 3.07292 14.9583 3.92014 15.375 4.88542C15.7917 5.85069 16 6.88889 16 8C16 9.09722 15.7917 10.1319 15.375 11.1042C14.9583 12.0764 14.3854 12.9271 13.6562 13.6562C12.9271 14.3854 12.0799 14.9583 11.1146 15.375C10.1493 15.7917 9.11111 16 8 16ZM8 14.4375C8.23611 14.2014 8.47222 13.7604 8.70833 13.1146C8.94444 12.4688 9.125 11.7639 9.25 11H6.75C6.875 11.7639 7.05556 12.4688 7.29167 13.1146C7.52778 13.7604 7.76389 14.2014 8 14.4375ZM6.10417 14.2292C5.90972 13.8125 5.73958 13.3333 5.59375 12.7917C5.44792 12.25 5.32639 11.6528 5.22917 11H2.25C2.65278 11.7917 3.1875 12.4688 3.85417 13.0312C4.52083 13.5938 5.27083 13.9931 6.10417 14.2292ZM9.89583 14.2292C10.7292 13.9931 11.4792 13.5938 12.1458 13.0312C12.8125 12.4688 13.3472 11.7917 13.75 11H10.7708C10.6736 11.6528 10.5521 12.25 10.4062 12.7917C10.2604 13.3333 10.0903 13.8125 9.89583 14.2292ZM1.6875 9.5H5.04167C5.01389 9.23611 4.99653 8.97569 4.98958 8.71875C4.98264 8.46181 4.97917 8.20833 4.97917 7.95833C4.97917 7.70833 4.98264 7.46181 4.98958 7.21875C4.99653 6.97569 5.01389 6.73611 5.04167 6.5H1.6875C1.61806 6.76389 1.56944 7.01736 1.54167 7.26042C1.51389 7.50347 1.5 7.75 1.5 8C1.5 8.25 1.51389 8.49653 1.54167 8.73958C1.56944 8.98264 1.61806 9.23611 1.6875 9.5ZM6.5625 9.5H9.4375C9.46528 9.22222 9.48264 8.96181 9.48958 8.71875C9.49653 8.47569 9.5 8.23611 9.5 8C9.5 7.76389 9.49653 7.52083 9.48958 7.27083C9.48264 7.02083 9.46528 6.76389 9.4375 6.5H6.5625C6.53472 6.76389 6.51736 7.02083 6.51042 7.27083C6.50347 7.52083 6.5 7.76389 6.5 8C6.5 8.23611 6.50347 8.47917 6.51042 8.72917C6.51736 8.97917 6.53472 9.23611 6.5625 9.5ZM10.9583 9.5H14.3125C14.3819 9.23611 14.4306 8.98264 14.4583 8.73958C14.4861 8.49653 14.5 8.25 14.5 8C14.5 7.75 14.4861 7.5 14.4583 7.25C14.4306 7 14.3819 6.75 14.3125 6.5H10.9583C10.9861 6.76389 11.0035 7.02431 11.0104 7.28125C11.0174 7.53819 11.0208 7.79167 11.0208 8.04167C11.0208 8.29167 11.0174 8.53819 11.0104 8.78125C11.0035 9.02431 10.9861 9.26389 10.9583 9.5ZM10.7708 5H13.75C13.3472 4.20833 12.8125 3.53125 12.1458 2.96875C11.4792 2.40625 10.7292 2.00694 9.89583 1.77083C10.0903 2.1875 10.2604 2.66667 10.4062 3.20833C10.5521 3.75 10.6736 4.34722 10.7708 5ZM6.75 5H9.25C9.125 4.23611 8.94444 3.53125 8.70833 2.88542C8.47222 2.23958 8.23611 1.79861 8 1.5625C7.76389 1.79861 7.52778 2.23958 7.29167 2.88542C7.05556 3.53125 6.875 4.23611 6.75 5ZM2.25 5H5.22917C5.32639 4.34722 5.44792 3.75 5.59375 3.20833C5.73958 2.66667 5.90972 2.1875 6.10417 1.77083C5.27083 2.00694 4.52083 2.40625 3.85417 2.96875C3.1875 3.53125 2.65278 4.20833 2.25 5Z"})}),LinkIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"10",viewBox:"0 0 18 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M8.16797 9.16665H4.83464C3.68186 9.16665 2.69922 8.7604 1.88672 7.9479C1.07422 7.1354 0.667969 6.15276 0.667969 4.99998C0.667969 3.8472 1.07422 2.86456 1.88672 2.05206C2.69922 1.23956 3.68186 0.833313 4.83464 0.833313H8.16797V2.49998H4.83464C4.14019 2.49998 3.54991 2.74304 3.0638 3.22915C2.57769 3.71526 2.33464 4.30554 2.33464 4.99998C2.33464 5.69442 2.57769 6.2847 3.0638 6.77081C3.54991 7.25692 4.14019 7.49998 4.83464 7.49998H8.16797V9.16665ZM5.66797 5.83331V4.16665H12.3346V5.83331H5.66797ZM9.83463 9.16665V7.49998H13.168C13.8624 7.49998 14.4527 7.25692 14.9388 6.77081C15.4249 6.2847 15.668 5.69442 15.668 4.99998C15.668 4.30554 15.4249 3.71526 14.9388 3.22915C14.4527 2.74304 13.8624 2.49998 13.168 2.49998H9.83463V0.833313H13.168C14.3207 0.833313 15.3034 1.23956 16.1159 2.05206C16.9284 2.86456 17.3346 3.8472 17.3346 4.99998C17.3346 6.15276 16.9284 7.1354 16.1159 7.9479C15.3034 8.7604 14.3207 9.16665 13.168 9.16665H9.83463Z"})}),LockIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"19",viewBox:"0 0 14 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.9987 18.3333C1.54036 18.3333 1.148 18.1701 0.821615 17.8437C0.495226 17.5173 0.332031 17.125 0.332031 16.6666V8.33331C0.332031 7.87498 0.495226 7.48262 0.821615 7.15623C1.148 6.82984 1.54036 6.66665 1.9987 6.66665H2.83203V4.99998C2.83203 3.8472 3.23828 2.86456 4.05078 2.05206C4.86328 1.23956 5.84592 0.833313 6.9987 0.833313C8.15148 0.833313 9.13411 1.23956 9.94661 2.05206C10.7591 2.86456 11.1654 3.8472 11.1654 4.99998V6.66665H11.9987C12.457 6.66665 12.8494 6.82984 13.1758 7.15623C13.5022 7.48262 13.6654 7.87498 13.6654 8.33331V16.6666C13.6654 17.125 13.5022 17.5173 13.1758 17.8437C12.8494 18.1701 12.457 18.3333 11.9987 18.3333H1.9987ZM1.9987 16.6666H11.9987V8.33331H1.9987V16.6666ZM6.9987 14.1666C7.45703 14.1666 7.84939 14.0035 8.17578 13.6771C8.50217 13.3507 8.66536 12.9583 8.66536 12.5C8.66536 12.0416 8.50217 11.6493 8.17578 11.3229C7.84939 10.9965 7.45703 10.8333 6.9987 10.8333C6.54036 10.8333 6.148 10.9965 5.82161 11.3229C5.49523 11.6493 5.33203 12.0416 5.33203 12.5C5.33203 12.9583 5.49523 13.3507 5.82161 13.6771C6.148 14.0035 6.54036 14.1666 6.9987 14.1666ZM4.4987 6.66665H9.4987V4.99998C9.4987 4.30554 9.25564 3.71526 8.76953 3.22915C8.28342 2.74304 7.69314 2.49998 6.9987 2.49998C6.30425 2.49998 5.71398 2.74304 5.22786 3.22915C4.74175 3.71526 4.4987 4.30554 4.4987 4.99998V6.66665Z"})}),LogoutIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 15.5C1.70833 15.5 1.31597 15.3368 0.989583 15.0104C0.663194 14.684 0.5 14.2917 0.5 13.8333V2.16667C0.5 1.70833 0.663194 1.31597 0.989583 0.989583C1.31597 0.663194 1.70833 0.5 2.16667 0.5H8V2.16667H2.16667V13.8333H8V15.5H2.16667ZM11.3333 12.1667L10.1875 10.9583L12.3125 8.83333H5.5V7.16667H12.3125L10.1875 5.04167L11.3333 3.83333L15.5 8L11.3333 12.1667Z"})}),MenuIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 10V8.33333H15.5V10H0.5ZM0.5 5.83333V4.16667H15.5V5.83333H0.5ZM0.5 1.66667V0H15.5V1.66667H0.5Z"})}),OpenInFullIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 15.5V8.83333H2.16667V12.6667L12.6667 2.16667H8.83333V0.5H15.5V7.16667H13.8333V3.33333L3.33333 13.8333H7.16667V15.5H0.5Z"})}),PageInfoIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M12.7904 13.875C11.9154 13.875 11.1758 13.5729 10.5716 12.9688C9.96745 12.3646 9.66536 11.625 9.66536 10.75C9.66536 9.875 9.96745 9.13542 10.5716 8.53125C11.1758 7.92708 11.9154 7.625 12.7904 7.625C13.6654 7.625 14.4049 7.92708 15.0091 8.53125C15.6133 9.13542 15.9154 9.875 15.9154 10.75C15.9154 11.625 15.6133 12.3646 15.0091 12.9688C14.4049 13.5729 13.6654 13.875 12.7904 13.875ZM12.7904 12.2083C13.1931 12.2083 13.5369 12.066 13.8216 11.7812C14.1063 11.4965 14.2487 11.1528 14.2487 10.75C14.2487 10.3472 14.1063 10.0035 13.8216 9.71875C13.5369 9.43403 13.1931 9.29167 12.7904 9.29167C12.3876 9.29167 12.0438 9.43403 11.7591 9.71875C11.4744 10.0035 11.332 10.3472 11.332 10.75C11.332 11.1528 11.4744 11.4965 11.7591 11.7812C12.0438 12.066 12.3876 12.2083 12.7904 12.2083ZM1.33203 11.5833V9.91667H7.9987V11.5833H1.33203ZM3.20703 6.375C2.33203 6.375 1.59245 6.07292 0.988281 5.46875C0.384115 4.86458 0.0820312 4.125 0.0820312 3.25C0.0820312 2.375 0.384115 1.63542 0.988281 1.03125C1.59245 0.427083 2.33203 0.125 3.20703 0.125C4.08203 0.125 4.82161 0.427083 5.42578 1.03125C6.02995 1.63542 6.33203 2.375 6.33203 3.25C6.33203 4.125 6.02995 4.86458 5.42578 5.46875C4.82161 6.07292 4.08203 6.375 3.20703 6.375ZM3.20703 4.70833C3.60981 4.70833 3.95356 4.56597 4.23828 4.28125C4.523 3.99653 4.66536 3.65278 4.66536 3.25C4.66536 2.84722 4.523 2.50347 4.23828 2.21875C3.95356 1.93403 3.60981 1.79167 3.20703 1.79167C2.80425 1.79167 2.4605 1.93403 2.17578 2.21875C1.89106 2.50347 1.7487 2.84722 1.7487 3.25C1.7487 3.65278 1.89106 3.99653 2.17578 4.28125C2.4605 4.56597 2.80425 4.70833 3.20703 4.70833ZM7.9987 4.08333V2.41667H14.6654V4.08333H7.9987Z"})}),RadioCheckedIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M7.83464 12.8334L13.7096 6.95835L12.543 5.79169L7.83464 10.5L5.45964 8.12502L4.29297 9.29169L7.83464 12.8334ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334Z"})}),RadioUncheckedIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M9.0013 17.3334C7.84852 17.3334 6.76519 17.1146 5.7513 16.6771C4.73741 16.2396 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.2639 1.32422 12.25C0.886719 11.2361 0.667969 10.1528 0.667969 9.00002C0.667969 7.84724 0.886719 6.76391 1.32422 5.75002C1.76172 4.73613 2.35547 3.85419 3.10547 3.10419C3.85547 2.35419 4.73741 1.76044 5.7513 1.32294C6.76519 0.885437 7.84852 0.666687 9.0013 0.666687C10.1541 0.666687 11.2374 0.885437 12.2513 1.32294C13.2652 1.76044 14.1471 2.35419 14.8971 3.10419C15.6471 3.85419 16.2409 4.73613 16.6784 5.75002C17.1159 6.76391 17.3346 7.84724 17.3346 9.00002C17.3346 10.1528 17.1159 11.2361 16.6784 12.25C16.2409 13.2639 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2396 12.2513 16.6771C11.2374 17.1146 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8624 15.6667 12.4388 15.0209 13.7305 13.7292C15.0221 12.4375 15.668 10.8611 15.668 9.00002C15.668 7.13891 15.0221 5.56252 13.7305 4.27085C12.4388 2.97919 10.8624 2.33335 9.0013 2.33335C7.14019 2.33335 5.5638 2.97919 4.27214 4.27085C2.98047 5.56252 2.33464 7.13891 2.33464 9.00002C2.33464 10.8611 2.98047 12.4375 4.27214 13.7292C5.5638 15.0209 7.14019 15.6667 9.0013 15.6667Z"})}),RemoveIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"2",viewBox:"0 0 12 2",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.167969 1.83332V0.166656H11.8346V1.83332H0.167969Z"})}),StarIcon=e=>jsxRuntime.jsx("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.3763 13.0209L9.0013 11.4375L11.6263 13.0417L10.9388 10.0417L13.2513 8.04169L10.2096 7.77085L9.0013 4.93752L7.79297 7.75002L4.7513 8.02085L7.0638 10.0417L6.3763 13.0209ZM3.85547 16.5L5.20964 10.6459L0.667969 6.70835L6.66797 6.18752L9.0013 0.666687L11.3346 6.18752L17.3346 6.70835L12.793 10.6459L14.1471 16.5L9.0013 13.3959L3.85547 16.5Z"})}),WalletIcon=e=>jsxRuntime.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2.16667 15.5C1.70833 15.5 1.31597 15.3368 0.989583 15.0104C0.663194 14.684 0.5 14.2917 0.5 13.8333V2.16667C0.5 1.70833 0.663194 1.31597 0.989583 0.989583C1.31597 0.663194 1.70833 0.5 2.16667 0.5H13.8333C14.2917 0.5 14.684 0.663194 15.0104 0.989583C15.3368 1.31597 15.5 1.70833 15.5 2.16667V4.25H13.8333V2.16667H2.16667V13.8333H13.8333V11.75H15.5V13.8333C15.5 14.2917 15.3368 14.684 15.0104 15.0104C14.684 15.3368 14.2917 15.5 13.8333 15.5H2.16667ZM8.83333 12.1667C8.375 12.1667 7.98264 12.0035 7.65625 11.6771C7.32986 11.3507 7.16667 10.9583 7.16667 10.5V5.5C7.16667 5.04167 7.32986 4.64931 7.65625 4.32292C7.98264 3.99653 8.375 3.83333 8.83333 3.83333H14.6667C15.125 3.83333 15.5174 3.99653 15.8438 4.32292C16.1701 4.64931 16.3333 5.04167 16.3333 5.5V10.5C16.3333 10.9583 16.1701 11.3507 15.8438 11.6771C15.5174 12.0035 15.125 12.1667 14.6667 12.1667H8.83333ZM14.6667 10.5V5.5H8.83333V10.5H14.6667ZM11.3333 9.25C11.6806 9.25 11.9757 9.12847 12.2188 8.88542C12.4618 8.64236 12.5833 8.34722 12.5833 8C12.5833 7.65278 12.4618 7.35764 12.2188 7.11458C11.9757 6.87153 11.6806 6.75 11.3333 6.75C10.9861 6.75 10.691 6.87153 10.4479 7.11458C10.2049 7.35764 10.0833 7.65278 10.0833 8C10.0833 8.34722 10.2049 8.64236 10.4479 8.88542C10.691 9.12847 10.9861 9.25 11.3333 9.25Z"})}),SearchIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M14.3333 15.5L9.08333 10.25C8.66667 10.5833 8.1875 10.8472 7.64583 11.0417C7.10417 11.2361 6.52778 11.3333 5.91667 11.3333C4.40278 11.3333 3.12153 10.809 2.07292 9.76042C1.02431 8.71181 0.5 7.43056 0.5 5.91667C0.5 4.40278 1.02431 3.12153 2.07292 2.07292C3.12153 1.02431 4.40278 0.5 5.91667 0.5C7.43056 0.5 8.71181 1.02431 9.76042 2.07292C10.809 3.12153 11.3333 4.40278 11.3333 5.91667C11.3333 6.52778 11.2361 7.10417 11.0417 7.64583C10.8472 8.1875 10.5833 8.66667 10.25 9.08333L15.5 14.3333L14.3333 15.5ZM5.91667 9.66667C6.95833 9.66667 7.84375 9.30208 8.57292 8.57292C9.30208 7.84375 9.66667 6.95833 9.66667 5.91667C9.66667 4.875 9.30208 3.98958 8.57292 3.26042C7.84375 2.53125 6.95833 2.16667 5.91667 2.16667C4.875 2.16667 3.98958 2.53125 3.26042 3.26042C2.53125 3.98958 2.16667 4.875 2.16667 5.91667C2.16667 6.95833 2.53125 7.84375 3.26042 8.57292C3.98958 9.30208 4.875 9.66667 5.91667 9.66667Z"})}),TimerIcon=e=>jsxRuntime.jsx("svg",{width:"16",height:"19",viewBox:"0 0 16 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M5.5 2.49998V0.833313H10.5V2.49998H5.5ZM7.16667 11.6666H8.83333V6.66665H7.16667V11.6666ZM8 18.3333C6.97222 18.3333 6.00347 18.1354 5.09375 17.7396C4.18403 17.3437 3.38889 16.8055 2.70833 16.125C2.02778 15.4444 1.48958 14.6493 1.09375 13.7396C0.697917 12.8298 0.5 11.8611 0.5 10.8333C0.5 9.80554 0.697917 8.83679 1.09375 7.92706C1.48958 7.01734 2.02778 6.2222 2.70833 5.54165C3.38889 4.86109 4.18403 4.3229 5.09375 3.92706C6.00347 3.53123 6.97222 3.33331 8 3.33331C8.86111 3.33331 9.6875 3.4722 10.4792 3.74998C11.2708 4.02776 12.0139 4.43054 12.7083 4.95831L13.875 3.79165L15.0417 4.95831L13.875 6.12498C14.4028 6.81942 14.8056 7.56248 15.0833 8.35415C15.3611 9.14581 15.5 9.9722 15.5 10.8333C15.5 11.8611 15.3021 12.8298 14.9062 13.7396C14.5104 14.6493 13.9722 15.4444 13.2917 16.125C12.6111 16.8055 11.816 17.3437 10.9062 17.7396C9.99653 18.1354 9.02778 18.3333 8 18.3333ZM8 16.6666C9.61111 16.6666 10.9861 16.0972 12.125 14.9583C13.2639 13.8194 13.8333 12.4444 13.8333 10.8333C13.8333 9.2222 13.2639 7.8472 12.125 6.70831C10.9861 5.56942 9.61111 4.99998 8 4.99998C6.38889 4.99998 5.01389 5.56942 3.875 6.70831C2.73611 7.8472 2.16667 9.2222 2.16667 10.8333C2.16667 12.4444 2.73611 13.8194 3.875 14.9583C5.01389 16.0972 6.38889 16.6666 8 16.6666Z"})}),ReferralIcon=e=>jsxRuntime.jsx("svg",{width:"20",height:"14",viewBox:"0 0 20 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M10.4167 6.95831C10.8194 6.51387 11.1285 6.00692 11.3438 5.43748C11.559 4.86804 11.6667 4.27776 11.6667 3.66665C11.6667 3.05554 11.559 2.46526 11.3438 1.89581C11.1285 1.32637 10.8194 0.819424 10.4167 0.37498C11.25 0.486091 11.9444 0.854146 12.5 1.47915C13.0556 2.10415 13.3333 2.83331 13.3333 3.66665C13.3333 4.49998 13.0556 5.22915 12.5 5.85415C11.9444 6.47915 11.25 6.8472 10.4167 6.95831ZM15 13.6666V11.1666C15 10.6666 14.8889 10.191 14.6667 9.73956C14.4444 9.28817 14.1528 8.88887 13.7917 8.54165C14.5 8.79165 15.1562 9.11456 15.7604 9.5104C16.3646 9.90623 16.6667 10.4583 16.6667 11.1666V13.6666H15ZM16.6667 7.83331V6.16665H15V4.49998H16.6667V2.83331H18.3333V4.49998H20V6.16665H18.3333V7.83331H16.6667ZM6.66667 6.99998C5.75 6.99998 4.96528 6.67359 4.3125 6.02081C3.65972 5.36804 3.33333 4.58331 3.33333 3.66665C3.33333 2.74998 3.65972 1.96526 4.3125 1.31248C4.96528 0.659702 5.75 0.333313 6.66667 0.333313C7.58333 0.333313 8.36806 0.659702 9.02083 1.31248C9.67361 1.96526 10 2.74998 10 3.66665C10 4.58331 9.67361 5.36804 9.02083 6.02081C8.36806 6.67359 7.58333 6.99998 6.66667 6.99998ZM0 13.6666V11.3333C0 10.8611 0.121528 10.4271 0.364583 10.0312C0.607639 9.6354 0.930556 9.33331 1.33333 9.12498C2.19444 8.69442 3.06944 8.37151 3.95833 8.15623C4.84722 7.94095 5.75 7.83331 6.66667 7.83331C7.58333 7.83331 8.48611 7.94095 9.375 8.15623C10.2639 8.37151 11.1389 8.69442 12 9.12498C12.4028 9.33331 12.7257 9.6354 12.9688 10.0312C13.2118 10.4271 13.3333 10.8611 13.3333 11.3333V13.6666H0ZM6.66667 5.33331C7.125 5.33331 7.51736 5.17012 7.84375 4.84373C8.17014 4.51734 8.33333 4.12498 8.33333 3.66665C8.33333 3.20831 8.17014 2.81595 7.84375 2.48956C7.51736 2.16317 7.125 1.99998 6.66667 1.99998C6.20833 1.99998 5.81597 2.16317 5.48958 2.48956C5.16319 2.81595 5 3.20831 5 3.66665C5 4.12498 5.16319 4.51734 5.48958 4.84373C5.81597 5.17012 6.20833 5.33331 6.66667 5.33331ZM1.66667 12H11.6667V11.3333C11.6667 11.1805 11.6285 11.0416 11.5521 10.9166C11.4757 10.7916 11.375 10.6944 11.25 10.625C10.5 10.25 9.74306 9.96873 8.97917 9.78123C8.21528 9.59373 7.44444 9.49998 6.66667 9.49998C5.88889 9.49998 5.11806 9.59373 4.35417 9.78123C3.59028 9.96873 2.83333 10.25 2.08333 10.625C1.95833 10.6944 1.85764 10.7916 1.78125 10.9166C1.70486 11.0416 1.66667 11.1805 1.66667 11.3333V12Z"})}),FeesIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2 13.6667C1.44444 13.6667 0.972222 13.4722 0.583333 13.0833C0.194444 12.6945 0 12.2222 0 11.6667V9.66668H2V0.333344L3 1.33334L4 0.333344L5 1.33334L6 0.333344L7 1.33334L8 0.333344L9 1.33334L10 0.333344L11 1.33334L12 0.333344V11.6667C12 12.2222 11.8056 12.6945 11.4167 13.0833C11.0278 13.4722 10.5556 13.6667 10 13.6667H2ZM10 12.3333C10.1889 12.3333 10.3472 12.2695 10.475 12.1417C10.6028 12.0139 10.6667 11.8556 10.6667 11.6667V2.33334H3.33333V9.66668H9.33333V11.6667C9.33333 11.8556 9.39722 12.0139 9.525 12.1417C9.65278 12.2695 9.81111 12.3333 10 12.3333ZM4 5.00001V3.66668H8V5.00001H4ZM4 7.00001V5.66668H8V7.00001H4ZM9.33333 5.00001C9.14444 5.00001 8.98611 4.93612 8.85833 4.80834C8.73056 4.68057 8.66667 4.52223 8.66667 4.33334C8.66667 4.14445 8.73056 3.98612 8.85833 3.85834C8.98611 3.73057 9.14444 3.66668 9.33333 3.66668C9.52222 3.66668 9.68056 3.73057 9.80833 3.85834C9.93611 3.98612 10 4.14445 10 4.33334C10 4.52223 9.93611 4.68057 9.80833 4.80834C9.68056 4.93612 9.52222 5.00001 9.33333 5.00001ZM9.33333 7.00001C9.14444 7.00001 8.98611 6.93612 8.85833 6.80834C8.73056 6.68057 8.66667 6.52223 8.66667 6.33334C8.66667 6.14445 8.73056 5.98612 8.85833 5.85834C8.98611 5.73057 9.14444 5.66668 9.33333 5.66668C9.52222 5.66668 9.68056 5.73057 9.80833 5.85834C9.93611 5.98612 10 6.14445 10 6.33334C10 6.52223 9.93611 6.68057 9.80833 6.80834C9.68056 6.93612 9.52222 7.00001 9.33333 7.00001ZM2 12.3333H8V11H1.33333V11.6667C1.33333 11.8556 1.39722 12.0139 1.525 12.1417C1.65278 12.2695 1.81111 12.3333 2 12.3333Z",fill:"currentColor"})}),OpenInNewIcon=e=>jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H6V1.33333H1.33333V10.6667H10.6667V6H12V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM4.46667 8.46667L3.53333 7.53333L9.73333 1.33333H7.33333V0H12V4.66667H10.6667V2.26667L4.46667 8.46667Z",fill:"currentColor"})}),ArrowEastIcon=e=>jsxRuntime.jsx("svg",{width:"21",height:"14",viewBox:"0 0 21 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M13.1367 14L11.7117 12.6L16.3117 8H0.136719V6H16.3117L11.7367 1.4L13.1367 0L20.1367 7L13.1367 14Z",fill:"currentColor"})}),CheckCircleIcon=e=>jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.06536 10.0667L10.7654 5.36666L9.83203 4.43333L6.06536 8.19999L4.16536 6.29999L3.23203 7.23333L6.06536 10.0667ZM6.9987 13.6667C6.07648 13.6667 5.20981 13.4917 4.3987 13.1417C3.58759 12.7917 2.88203 12.3167 2.28203 11.7167C1.68203 11.1167 1.20703 10.4111 0.857031 9.59999C0.507031 8.78888 0.332031 7.92222 0.332031 6.99999C0.332031 6.07777 0.507031 5.21111 0.857031 4.39999C1.20703 3.58888 1.68203 2.88333 2.28203 2.28333C2.88203 1.68333 3.58759 1.20833 4.3987 0.858328C5.20981 0.508328 6.07648 0.333328 6.9987 0.333328C7.92092 0.333328 8.78759 0.508328 9.5987 0.858328C10.4098 1.20833 11.1154 1.68333 11.7154 2.28333C12.3154 2.88333 12.7904 3.58888 13.1404 4.39999C13.4904 5.21111 13.6654 6.07777 13.6654 6.99999C13.6654 7.92222 13.4904 8.78888 13.1404 9.59999C12.7904 10.4111 12.3154 11.1167 11.7154 11.7167C11.1154 12.3167 10.4098 12.7917 9.5987 13.1417C8.78759 13.4917 7.92092 13.6667 6.9987 13.6667ZM6.9987 12.3333C8.48759 12.3333 9.7487 11.8167 10.782 10.7833C11.8154 9.74999 12.332 8.48888 12.332 6.99999C12.332 5.51111 11.8154 4.24999 10.782 3.21666C9.7487 2.18333 8.48759 1.66666 6.9987 1.66666C5.50981 1.66666 4.2487 2.18333 3.21536 3.21666C2.18203 4.24999 1.66536 5.51111 1.66536 6.99999C1.66536 8.48888 2.18203 9.74999 3.21536 10.7833C4.2487 11.8167 5.50981 12.3333 6.9987 12.3333Z",fill:"currentColor"})}),FingerprintIcon=e=>jsxRuntime.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.17059 2.00668C7.34517 2.00668 8.45327 2.26308 9.49488 2.77587C10.5365 3.28866 11.4064 4.02967 12.1045 4.9989C12.182 5.10033 12.207 5.19049 12.1793 5.26939C12.1515 5.34828 12.1045 5.4159 12.038 5.47225C11.9715 5.5286 11.8939 5.55396 11.8053 5.54832C11.7166 5.54269 11.6391 5.49479 11.5726 5.40463C10.9631 4.52556 10.1791 3.85217 9.22063 3.38446C8.26212 2.91675 7.24544 2.68289 6.17059 2.68289C5.09573 2.68289 4.08737 2.91675 3.14548 3.38446C2.2036 3.85217 1.42239 4.52556 0.801856 5.40463C0.73537 5.50606 0.657803 5.56241 0.569155 5.57368C0.480507 5.58495 0.40294 5.56241 0.336454 5.50606C0.258888 5.44971 0.211793 5.37927 0.195172 5.29474C0.178551 5.21022 0.203483 5.12287 0.269969 5.03271C0.956989 4.07475 1.81854 3.33092 2.85461 2.80123C3.89068 2.27153 4.99601 2.00668 6.17059 2.00668ZM6.17059 3.59577C7.66652 3.59577 8.95192 4.10293 10.0268 5.11724C11.1016 6.13155 11.6391 7.38817 11.6391 8.8871C11.6391 9.4506 11.4424 9.92113 11.049 10.2987C10.6556 10.6762 10.1764 10.865 9.61123 10.865C9.0461 10.865 8.56131 10.6762 8.15686 10.2987C7.7524 9.92113 7.55017 9.4506 7.55017 8.8871C7.55017 8.51518 7.41443 8.20244 7.14295 7.94886C6.87146 7.69528 6.54734 7.56849 6.17059 7.56849C5.79384 7.56849 5.46972 7.69528 5.19823 7.94886C4.92675 8.20244 4.79101 8.51518 4.79101 8.8871C4.79101 9.9803 5.10959 10.8932 5.74674 11.6257C6.3839 12.3583 7.20666 12.8711 8.21503 13.1641C8.31476 13.1979 8.38125 13.2543 8.41449 13.3332C8.44773 13.4121 8.45327 13.4966 8.43111 13.5867C8.40895 13.6656 8.36462 13.7332 8.29814 13.7896C8.23165 13.846 8.14854 13.8629 8.04882 13.8403C6.89639 13.5473 5.95451 12.9641 5.22317 12.0906C4.49182 11.2172 4.12615 10.1493 4.12615 8.8871C4.12615 8.32359 4.32561 7.85024 4.72452 7.46706C5.12344 7.08388 5.60546 6.89228 6.17059 6.89228C6.73572 6.89228 7.21774 7.08388 7.61666 7.46706C8.01557 7.85024 8.21503 8.32359 8.21503 8.8871C8.21503 9.25901 8.35354 9.57176 8.63057 9.82533C8.90759 10.0789 9.23448 10.2057 9.61123 10.2057C9.98799 10.2057 10.3093 10.0789 10.5753 9.82533C10.8412 9.57176 10.9742 9.25901 10.9742 8.8871C10.9742 7.57976 10.5033 6.48092 9.56137 5.59058C8.61949 4.70024 7.49477 4.25507 6.18721 4.25507C4.87966 4.25507 3.75494 4.70024 2.81305 5.59058C1.87117 6.48092 1.40023 7.57413 1.40023 8.87019C1.40023 9.14067 1.42516 9.47878 1.47503 9.8845C1.52489 10.2902 1.64401 10.7636 1.83239 11.3045C1.86563 11.406 1.86286 11.4961 1.82408 11.575C1.78529 11.6539 1.72158 11.7103 1.63293 11.7441C1.54428 11.7779 1.4584 11.7751 1.3753 11.7356C1.29219 11.6962 1.23401 11.6314 1.20077 11.5412C1.03456 11.1017 0.915436 10.665 0.843409 10.2311C0.771383 9.79716 0.73537 9.34917 0.73537 8.8871C0.73537 7.38817 1.27003 6.13155 2.33934 5.11724C3.40866 4.10293 4.68574 3.59577 6.17059 3.59577ZM6.17059 0.349976C6.87977 0.349976 7.57233 0.437319 8.24827 0.612006C8.92421 0.786693 9.57799 1.03745 10.2096 1.36429C10.3093 1.42064 10.3675 1.48826 10.3841 1.56715C10.4008 1.64604 10.3924 1.72493 10.3592 1.80382C10.326 1.88271 10.2706 1.9447 10.193 1.98978C10.1154 2.03486 10.0212 2.02922 9.91042 1.97287C9.32313 1.66858 8.71644 1.43473 8.09037 1.27131C7.46429 1.10789 6.82437 1.02618 6.17059 1.02618C5.52789 1.02618 4.89628 1.10226 4.27574 1.2544C3.65521 1.40655 3.06238 1.64604 2.49725 1.97287C2.4086 2.02922 2.31995 2.04331 2.2313 2.01514C2.14265 1.98696 2.07617 1.92779 2.03184 1.83763C1.98752 1.74747 1.97644 1.66576 1.9986 1.59251C2.02076 1.51925 2.07617 1.45445 2.16482 1.3981C2.78535 1.05999 3.43359 0.800781 4.10953 0.620459C4.78547 0.440137 5.47249 0.349976 6.17059 0.349976ZM6.17059 5.23558C7.20112 5.23558 8.0876 5.58777 8.83002 6.29215C9.57245 6.99653 9.94366 7.86151 9.94366 8.8871C9.94366 8.98853 9.91319 9.07024 9.85225 9.13222C9.7913 9.19421 9.71096 9.2252 9.61123 9.2252C9.52259 9.2252 9.44502 9.19421 9.37853 9.13222C9.31205 9.07024 9.2788 8.98853 9.2788 8.8871C9.2788 8.04184 8.97131 7.33464 8.35631 6.76549C7.74132 6.19635 7.01274 5.91178 6.17059 5.91178C5.32844 5.91178 4.6054 6.19635 4.00149 6.76549C3.39758 7.33464 3.09562 8.04184 3.09562 8.8871C3.09562 9.79998 3.25075 10.5748 3.56102 11.2116C3.87129 11.8483 4.32561 12.4879 4.92398 13.1303C4.99047 13.1979 5.02371 13.2768 5.02371 13.367C5.02371 13.4571 4.99047 13.536 4.92398 13.6036C4.85749 13.6713 4.77993 13.7051 4.69128 13.7051C4.60263 13.7051 4.52506 13.6713 4.45858 13.6036C3.8048 12.9049 3.30339 12.1921 2.95434 11.4651C2.60528 10.7382 2.43076 9.87887 2.43076 8.8871C2.43076 7.86151 2.79643 6.99653 3.52778 6.29215C4.25912 5.58777 5.14006 5.23558 6.17059 5.23558ZM6.15397 8.54899C6.2537 8.54899 6.33403 8.5828 6.39498 8.65042C6.45592 8.71804 6.4864 8.79693 6.4864 8.8871C6.4864 9.73236 6.78558 10.4255 7.38396 10.9664C7.98233 11.5074 8.68043 11.7779 9.47826 11.7779C9.54475 11.7779 9.63894 11.7722 9.76083 11.761C9.88272 11.7497 10.0101 11.7328 10.1431 11.7103C10.2428 11.6877 10.3287 11.7018 10.4008 11.7525C10.4728 11.8032 10.5199 11.8793 10.542 11.9807C10.5642 12.0709 10.5476 12.1498 10.4922 12.2174C10.4368 12.285 10.3647 12.3301 10.2761 12.3527C10.0766 12.409 9.90211 12.44 9.75252 12.4456C9.60292 12.4513 9.5115 12.4541 9.47826 12.4541C8.49205 12.4541 7.63605 12.116 6.91025 11.4398C6.18444 10.7636 5.82154 9.91268 5.82154 8.8871C5.82154 8.79693 5.85201 8.71804 5.91296 8.65042C5.9739 8.5828 6.05424 8.54899 6.15397 8.54899Z",fill:"currentColor"})}),CompareArrowsIcon=e=>jsxRuntime.jsx("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M4.53203 11.666L3.55203 10.6863L5.35453 8.91602H0.332031V7.54102H5.35453L3.55203 5.7707L4.53203 4.79102L8.03203 8.22852L4.53203 11.666ZM10.132 7.54102L6.63203 4.10352L10.132 0.666016L11.112 1.6457L9.30953 3.41602H14.332V4.79102H9.30953L11.112 6.56133L10.132 7.54102Z",fill:"currentColor"})}),MinusIcon=({rectFill:e="#F7CFDB",pathFill:t="#E36492",...i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[jsxRuntime.jsx("rect",{width:"20",height:"20",rx:"10",fill:e}),jsxRuntime.jsx("mask",{id:"mask0_16264_15926",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:jsxRuntime.jsx("rect",{x:"2",y:"2",width:"16",height:"16",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_16264_15926)",children:jsxRuntime.jsx("path",{d:"M5.9987 10.6668C5.80981 10.6668 5.65148 10.6029 5.5237 10.4752C5.39592 10.3474 5.33203 10.1891 5.33203 10.0002C5.33203 9.81127 5.39592 9.65294 5.5237 9.52516C5.65148 9.39738 5.80981 9.3335 5.9987 9.3335H13.9987C14.1876 9.3335 14.3459 9.39738 14.4737 9.52516C14.6015 9.65294 14.6654 9.81127 14.6654 10.0002C14.6654 10.1891 14.6015 10.3474 14.4737 10.4752C14.3459 10.6029 14.1876 10.6668 13.9987 10.6668H5.9987Z",fill:t})})]}),PlusIcon=({rectFill:e="#99DFC7",pathFill:t="#2CAC7F",...i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[jsxRuntime.jsx("rect",{width:"20",height:"20",rx:"10",fill:e}),jsxRuntime.jsx("mask",{id:"mask0_16264_15930",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:jsxRuntime.jsx("rect",{x:"2",y:"2",width:"16",height:"16",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_16264_15930)",children:jsxRuntime.jsx("path",{d:"M9.33203 10.6685H5.9987C5.80981 10.6685 5.65148 10.6046 5.5237 10.4769C5.39592 10.3491 5.33203 10.1908 5.33203 10.0019C5.33203 9.81298 5.39592 9.65465 5.5237 9.52687C5.65148 9.39909 5.80981 9.3352 5.9987 9.3352H9.33203V6.00187C9.33203 5.81298 9.39592 5.65465 9.5237 5.52687C9.65148 5.39909 9.80981 5.33521 9.9987 5.33521C10.1876 5.33521 10.3459 5.39909 10.4737 5.52687C10.6015 5.65465 10.6654 5.81298 10.6654 6.00187V9.3352H13.9987C14.1876 9.3352 14.3459 9.39909 14.4737 9.52687C14.6015 9.65465 14.6654 9.81298 14.6654 10.0019C14.6654 10.1908 14.6015 10.3491 14.4737 10.4769C14.3459 10.6046 14.1876 10.6685 13.9987 10.6685H10.6654V14.0019C10.6654 14.1908 10.6015 14.3491 10.4737 14.4769C10.3459 14.6046 10.1876 14.6685 9.9987 14.6685C9.80981 14.6685 9.65148 14.6046 9.5237 14.4769C9.39592 14.3491 9.33203 14.1908 9.33203 14.0019V10.6685Z",fill:t})})]}),Checked=e=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[jsxRuntime.jsx("mask",{id:"mask0_14594_15086",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntime.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_14594_15086)",children:jsxRuntime.jsx("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03333 10.975 7.75 10.975C7.46667 10.975 7.23333 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63333 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z",fill:e.color||"#E36492"})})]}),Unchecked=e=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[jsxRuntime.jsx("mask",{id:"mask0_14594_15093",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:jsxRuntime.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),jsxRuntime.jsx("g",{mask:"url(#mask0_14594_15093)",children:jsxRuntime.jsx("path",{d:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"})})]}),Share=e=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:jsxRuntime.jsx("path",{d:"M11.333 14.6663C10.7775 14.6663 10.3052 14.4719 9.91634 14.083C9.52745 13.6941 9.33301 13.2219 9.33301 12.6663C9.33301 12.5997 9.34968 12.4441 9.38301 12.1997L4.69967 9.46634C4.5219 9.63301 4.31634 9.76356 4.08301 9.85801C3.84967 9.95245 3.59967 9.99967 3.33301 9.99967C2.77745 9.99967 2.30523 9.80523 1.91634 9.41634C1.52745 9.02745 1.33301 8.55523 1.33301 7.99967C1.33301 7.44412 1.52745 6.9719 1.91634 6.58301C2.30523 6.19412 2.77745 5.99967 3.33301 5.99967C3.59967 5.99967 3.84967 6.0469 4.08301 6.14134C4.31634 6.23579 4.5219 6.36634 4.69967 6.53301L9.38301 3.79967C9.36079 3.7219 9.3469 3.6469 9.34134 3.57467C9.33579 3.50245 9.33301 3.4219 9.33301 3.33301C9.33301 2.77745 9.52745 2.30523 9.91634 1.91634C10.3052 1.52745 10.7775 1.33301 11.333 1.33301C11.8886 1.33301 12.3608 1.52745 12.7497 1.91634C13.1386 2.30523 13.333 2.77745 13.333 3.33301C13.333 3.88856 13.1386 4.36079 12.7497 4.74967C12.3608 5.13856 11.8886 5.33301 11.333 5.33301C11.0663 5.33301 10.8163 5.28579 10.583 5.19134C10.3497 5.0969 10.1441 4.96634 9.96634 4.79967L5.28301 7.53301C5.30523 7.61079 5.31912 7.68579 5.32467 7.75801C5.33023 7.83023 5.33301 7.91079 5.33301 7.99967C5.33301 8.08856 5.33023 8.16912 5.32467 8.24134C5.31912 8.31356 5.30523 8.38856 5.28301 8.46634L9.96634 11.1997C10.1441 11.033 10.3497 10.9025 10.583 10.808C10.8163 10.7136 11.0663 10.6663 11.333 10.6663C11.8886 10.6663 12.3608 10.8608 12.7497 11.2497C13.1386 11.6386 13.333 12.1108 13.333 12.6663C13.333 13.2219 13.1386 13.6941 12.7497 14.083C12.3608 14.4719 11.8886 14.6663 11.333 14.6663ZM11.333 13.333C11.5219 13.333 11.6802 13.2691 11.808 13.1413C11.9358 13.0136 11.9997 12.8552 11.9997 12.6663C11.9997 12.4775 11.9358 12.3191 11.808 12.1913C11.6802 12.0636 11.5219 11.9997 11.333 11.9997C11.1441 11.9997 10.9858 12.0636 10.858 12.1913C10.7302 12.3191 10.6663 12.4775 10.6663 12.6663C10.6663 12.8552 10.7302 13.0136 10.858 13.1413C10.9858 13.2691 11.1441 13.333 11.333 13.333ZM3.33301 8.66634C3.5219 8.66634 3.68023 8.60245 3.80801 8.47467C3.93579 8.3469 3.99967 8.18856 3.99967 7.99967C3.99967 7.81079 3.93579 7.65245 3.80801 7.52467C3.68023 7.3969 3.5219 7.33301 3.33301 7.33301C3.14412 7.33301 2.98579 7.3969 2.85801 7.52467C2.73023 7.65245 2.66634 7.81079 2.66634 7.99967C2.66634 8.18856 2.73023 8.3469 2.85801 8.47467C2.98579 8.60245 3.14412 8.66634 3.33301 8.66634ZM11.333 3.99967C11.5219 3.99967 11.6802 3.93579 11.808 3.80801C11.9358 3.68023 11.9997 3.5219 11.9997 3.33301C11.9997 3.14412 11.9358 2.98579 11.808 2.85801C11.6802 2.73023 11.5219 2.66634 11.333 2.66634C11.1441 2.66634 10.9858 2.73023 10.858 2.85801C10.7302 2.98579 10.6663 3.14412 10.6663 3.33301C10.6663 3.5219 10.7302 3.68023 10.858 3.80801C10.9858 3.93579 11.1441 3.99967 11.333 3.99967Z",fill:"currentColor"})}),InfinityIcon=e=>jsxRuntime.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M6.41599 20.1249C4.70841 20.1249 3.26069 19.5311 2.07281 18.3434C0.884946 17.1558 0.291016 15.7083 0.291016 14.001C0.291016 12.2937 0.884946 10.8459 2.07281 9.65752C3.26069 8.46918 4.70841 7.875 6.41599 7.875C7.0959 7.875 7.74825 7.99578 8.37304 8.23734C8.99781 8.4789 9.56147 8.82179 10.064 9.26602L12.2942 11.2314L10.9705 12.4025L8.89294 10.5673C8.5519 10.2741 8.16824 10.0438 7.74196 9.87624C7.31568 9.70871 6.87342 9.62494 6.41517 9.62494C5.20705 9.62494 4.17599 10.0522 3.32199 10.9067C2.46799 11.7613 2.04099 12.7929 2.04099 14.0018C2.04099 15.2106 2.46799 16.2417 3.32199 17.095C4.17599 17.9483 5.20705 18.375 6.41517 18.375C6.87342 18.375 7.31568 18.2912 7.74196 18.1237C8.16824 17.9562 8.5519 17.7258 8.89294 17.4327L17.9346 9.26602C18.4297 8.8143 18.9908 8.46953 19.618 8.23171C20.2452 7.9939 20.9001 7.875 21.5827 7.875C23.2902 7.875 24.738 8.46883 25.9258 9.6565C27.1137 10.8442 27.7076 12.2917 27.7076 13.999C27.7076 15.7063 27.1137 17.1541 25.9258 18.3424C24.738 19.5308 23.2902 20.1249 21.5827 20.1249C20.9006 20.1249 20.2496 20.0023 19.6296 19.757C19.0096 19.5117 18.4446 19.1707 17.9346 18.7339L15.7269 16.7685L17.0281 15.5862L19.1057 17.4327C19.4467 17.7348 19.8304 17.9674 20.2567 18.1304C20.683 18.2935 21.1252 18.375 21.5835 18.375C22.7916 18.375 23.8227 17.9477 24.6767 17.0932C25.5307 16.2387 25.9577 15.207 25.9577 13.9982C25.9577 12.7893 25.5307 11.7582 24.6767 10.9049C23.8227 10.0516 22.7916 9.62494 21.5835 9.62494C21.1252 9.62494 20.683 9.70871 20.2567 9.87624C19.8304 10.0438 19.4467 10.2741 19.1057 10.5673L10.064 18.7339C9.56896 19.1856 9.00782 19.5304 8.38062 19.7682C7.7534 20.006 7.09852 20.1249 6.41599 20.1249Z",fill:"currentColor"})}),WalletIconRose=e=>jsxRuntime.jsx("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M2 18C1.45 18 0.979167 17.8042 0.5875 17.4125C0.195833 17.0208 0 16.55 0 16V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H16C16.55 0 17.0208 0.195833 17.4125 0.5875C17.8042 0.979167 18 1.45 18 2H10C8.81667 2 7.85417 2.37083 7.1125 3.1125C6.37083 3.85417 6 4.81667 6 6V12C6 13.1833 6.37083 14.1458 7.1125 14.8875C7.85417 15.6292 8.81667 16 10 16H18C18 16.55 17.8042 17.0208 17.4125 17.4125C17.0208 17.8042 16.55 18 16 18H2ZM10 14C9.45 14 8.97917 13.8042 8.5875 13.4125C8.19583 13.0208 8 12.55 8 12V6C8 5.45 8.19583 4.97917 8.5875 4.5875C8.97917 4.19583 9.45 4 10 4H17C17.55 4 18.0208 4.19583 18.4125 4.5875C18.8042 4.97917 19 5.45 19 6V12C19 12.55 18.8042 13.0208 18.4125 13.4125C18.0208 13.8042 17.55 14 17 14H10ZM13 10.5C13.4333 10.5 13.7917 10.3583 14.075 10.075C14.3583 9.79167 14.5 9.43333 14.5 9C14.5 8.56667 14.3583 8.20833 14.075 7.925C13.7917 7.64167 13.4333 7.5 13 7.5C12.5667 7.5 12.2083 7.64167 11.925 7.925C11.6417 8.20833 11.5 8.56667 11.5 9C11.5 9.43333 11.6417 9.79167 11.925 10.075C12.2083 10.3583 12.5667 10.5 13 10.5Z",fill:"#E36492"})}),PasskeyIcon=({...e})=>jsxRuntime.jsx("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsxRuntime.jsx("path",{d:"M0.5 16V13.2C0.5 12.6333 0.645833 12.1125 0.9375 11.6375C1.22917 11.1625 1.61667 10.8 2.1 10.55C3.13333 10.0333 4.18333 9.64583 5.25 9.3875C6.31667 9.12917 7.4 9 8.5 9C8.83333 9 9.16667 9.0125 9.5 9.0375C9.83333 9.0625 10.1667 9.1 10.5 9.15C10.4333 10.1167 10.6083 11.0292 11.025 11.8875C11.4417 12.7458 12.05 13.45 12.85 14V16H0.5ZM16.5 19L15 17.5V12.85C14.2667 12.6333 13.6667 12.2208 13.2 11.6125C12.7333 11.0042 12.5 10.3 12.5 9.5C12.5 8.53333 12.8417 7.70833 13.525 7.025C14.2083 6.34167 15.0333 6 16 6C16.9667 6 17.7917 6.34167 18.475 7.025C19.1583 7.70833 19.5 8.53333 19.5 9.5C19.5 10.25 19.2875 10.9167 18.8625 11.5C18.4375 12.0833 17.9 12.5 17.25 12.75L18.5 14L17 15.5L18.5 17L16.5 19ZM8.5 8C7.4 8 6.45833 7.60833 5.675 6.825C4.89167 6.04167 4.5 5.1 4.5 4C4.5 2.9 4.89167 1.95833 5.675 1.175C6.45833 0.391667 7.4 0 8.5 0C9.6 0 10.5417 0.391667 11.325 1.175C12.1083 1.95833 12.5 2.9 12.5 4C12.5 5.1 12.1083 6.04167 11.325 6.825C10.5417 7.60833 9.6 8 8.5 8ZM16 10C16.2833 10 16.5208 9.90417 16.7125 9.7125C16.9042 9.52083 17 9.28333 17 9C17 8.71667 16.9042 8.47917 16.7125 8.2875C16.5208 8.09583 16.2833 8 16 8C15.7167 8 15.4792 8.09583 15.2875 8.2875C15.0958 8.47917 15 8.71667 15 9C15 9.28333 15.0958 9.52083 15.2875 9.7125C15.4792 9.90417 15.7167 10 16 10Z",fill:"#E36492"})}),ChainflipIcon=e=>jsxRuntime.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#222222"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_radial_16260_59346)",fillOpacity:"0.15"}),jsxRuntime.jsxs("g",{clipPath:"url(#clip0_16260_59346)",children:[jsxRuntime.jsx("path",{d:"M17.9999 5.98035V11.0893C17.9999 11.9975 17.7125 12.8774 17.1939 13.6012C17.0326 13.8282 16.8504 14.034 16.6471 14.2256L16.6331 14.2327H14.2359V9.49982H12.0139H9.77096H9.57469H7.35974L7.38778 9.47144L9.26628 7.70461L9.96021 7.0589C10.7453 6.32094 11.7125 5.98035 12.778 5.98035H17.9999Z",fill:"url(#paint1_linear_16260_59346)"}),jsxRuntime.jsx("path",{d:"M16.6333 14.2398L16.6263 14.2469L16.6193 14.254L16.4931 14.3747L16.0165 14.8288L14.2852 16.4537L14.1169 16.6098C13.3319 17.3407 12.3015 17.738 11.2431 17.738H6.00012V15.4532L6.00713 14.2327L6.02115 12.6078C6.02816 11.4228 6.5118 10.3017 7.36694 9.4928H9.5819H9.58891V14.2327H16.6333V14.2398Z",fill:"url(#paint2_linear_16260_59346)"})]}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("radialGradient",{id:"paint0_radial_16260_59346",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(0.999999) rotate(48.8141) scale(31.8904)",children:[jsxRuntime.jsx("stop",{stopColor:"white"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint1_linear_16260_59346",x1:"12.9315",y1:"5.47634",x2:"12.2436",y2:"18.4428",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#48EF8A"}),jsxRuntime.jsx("stop",{offset:"0.5458",stopColor:"#43B4A6"}),jsxRuntime.jsx("stop",{offset:"0.6918",stopColor:"#2D796F"}),jsxRuntime.jsx("stop",{offset:"0.9662",stopColor:"black"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint2_linear_16260_59346",x1:"11.6332",y1:"18.3813",x2:"9.82728",y2:"5.0946",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#FF5F96"}),jsxRuntime.jsx("stop",{offset:"0.6103",stopColor:"#FF33AF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"black"})]}),jsxRuntime.jsx("clipPath",{id:"clip0_16260_59346",children:jsxRuntime.jsx("rect",{width:"12",height:"11.7647",fill:"white",transform:"translate(6 5.98035)"})})]})]}),RelayLinkIcon=e=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 600 600",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("path",{d:"M299.4 447.057L387.768 396.038V249.701L261.037 176.533L172.76 227.5L299.4 300.615V447.057Z",fill:"url(#paint0_linear_61_2)"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300 128.75L346.737 101.662L304.683 77.3819C301.785 75.709 298.215 75.709 295.317 77.3819L109.548 184.636C106.651 186.309 104.866 189.4 104.866 192.746V407.254C104.866 410.6 106.651 413.692 109.548 415.364L295.317 522.618C298.215 524.291 301.785 524.291 304.683 522.618L490.452 415.364C493.349 413.692 495.134 410.6 495.134 407.254V358.613L448.307 385.625L300 471.25L151.693 385.625V214.375L300 128.75Z",fill:"url(#paint1_linear_61_2)"}),jsxRuntime.jsx("path",{d:"M407.406 384.568L495.078 333.951V193.022C495.078 189.676 493.292 186.584 490.395 184.911L368.346 114.447L281.771 164.431L407.406 236.966V384.568Z",fill:"url(#paint2_linear_61_2)"}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"paint0_linear_61_2",x1:"241.468",y1:"193.157",x2:"207.525",y2:"429.887",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#624AFF"}),jsxRuntime.jsx("stop",{offset:"0.98",stopColor:"#DD09FF"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint1_linear_61_2",x1:"180.056",y1:"494.56",x2:"234.169",y2:"49.7161",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#EF41FF"}),jsxRuntime.jsx("stop",{offset:"0.67",stopColor:"#1F6BFF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"#7DEFFF"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint2_linear_61_2",x1:"372.264",y1:"86.2467",x2:"319.851",y2:"316.686",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#7DEFFF"}),jsxRuntime.jsx("stop",{offset:"0.985",stopColor:"#5707FF"})]})]})]}),ThorswapIcon=e=>jsxRuntime.jsxs("svg",{version:"1.1",id:"Layer_2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,viewBox:"0 0 2988 2988",style:{background:"new 0 0 2988 2988"},xmlSpace:"preserve",...e,children:[jsxRuntime.jsx("style",{type:"text/css",children:`.st0{enable-background:new;}
|
|
48
48
|
.st1{fill:url(#SVGID_1_);}`}),jsxRuntime.jsx("ellipse",{className:"st0",cx:"1494.8",cy:"1494",rx:"1443.3",ry:"1442.6"}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:"SVGID_1_",gradientUnits:"userSpaceOnUse",x1:"2551.4639",y1:"437.3013",x2:"438.0661",y2:"2550.699",children:[jsxRuntime.jsx("stop",{offset:"0",style:{stopColor:"#3EF8F3"}}),jsxRuntime.jsx("stop",{offset:"1",style:{stopColor:"#07AEFE"}})]})}),jsxRuntime.jsx("path",{className:"st1",d:`M2872.1,912.5c-75.3-177.9-183.1-337.7-320.3-474.9c-26.2-26.2-53.2-51.3-81-75.3c-3.1-2.6-6.2-5.3-9.3-7.9
|
|
49
49
|
c-115.6-98.2-244.6-177.6-384.9-236.9C1892.3,39.5,1696.5,0,1494.7,0C1293,0,1097.2,39.5,912.9,117.4
|
|
50
50
|
c-178,75.3-337.9,182.9-475.1,320.1c-137.3,137.2-245,297-320.3,474.9C39.5,1096.7,0,1292.3,0,1494c0,201.7,39.5,397.3,117.5,581.5
|
|
@@ -62,7 +62,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
62
62
|
top: ${c}px !important;
|
|
63
63
|
left: ${u}px !important;
|
|
64
64
|
}
|
|
65
|
-
`),()=>{document.head.removeChild(f)}},[t]),jsxRuntime.jsx(PopChildMeasure,{isPresent:t,childRef:n,sizeRef:s,children:React__namespace.cloneElement(e,{ref:n})})}const PresenceChild=({children:e,initial:t,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:a,mode:o})=>{const l=useConstant(newChildrenMap),c=React.useId(),u=React.useMemo(()=>({id:c,initial:t,isPresent:i,custom:s,onExitComplete:f=>{l.set(f,!0);for(const d of l.values())if(!d)return;n&&n()},register:f=>(l.set(f,!1),()=>l.delete(f))}),a?[Math.random()]:[i]);return React.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[i]),React__namespace.useEffect(()=>{!i&&!l.size&&n&&n()},[i]),o==="popLayout"&&(e=jsxRuntime.jsx(PopChild,{isPresent:i,children:e})),jsxRuntime.jsx(PresenceContext.Provider,{value:u,children:e})};function newChildrenMap(){return new Map}const getChildKey=e=>e.key||"";function onlyElements(e){const t=[];return React.Children.forEach(e,i=>{React.isValidElement(i)&&t.push(i)}),t}const AnimatePresence=({children:e,exitBeforeEnter:t,custom:i,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{invariant(!t,"Replace exitBeforeEnter with mode='wait'");const l=React.useMemo(()=>onlyElements(e),[e]),c=l.map(getChildKey),u=React.useRef(!0),f=React.useRef(l),d=useConstant(()=>new Map),[p,b]=React.useState(l),[y,C]=React.useState(l);useIsomorphicLayoutEffect(()=>{u.current=!1,f.current=l;for(let x=0;x<y.length;x++){const g=getChildKey(y[x]);c.includes(g)?d.delete(g):d.get(g)!==!0&&d.set(g,!1)}},[y,c.length,c.join("-")]);const P=[];if(l!==p){let x=[...l];for(let g=0;g<y.length;g++){const S=y[g],E=getChildKey(S);c.includes(E)||(x.splice(g,0,S),P.push(S))}o==="wait"&&P.length&&(x=P),C(onlyElements(x)),b(l);return}process.env.NODE_ENV!=="production"&&o==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:m}=React.useContext(LayoutGroupContext);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:y.map(x=>{const g=getChildKey(x),S=l===y||c.includes(g),E=()=>{if(d.has(g))d.set(g,!0);else return;let T=!0;d.forEach(L=>{L||(T=!1)}),T&&(m==null||m(),C(f.current),s&&s())};return jsxRuntime.jsx(PresenceChild,{isPresent:S,initial:!u.current||n?void 0:!1,custom:S?void 0:i,presenceAffectsLayout:a,mode:o,onExitComplete:S?void 0:E,children:x},g)})})};function useMotionValue(e){const t=useConstant(()=>motionValue(e)),{isStatic:i}=React.useContext(MotionConfigContext);if(i){const[,n]=React.useState(e);React.useEffect(()=>t.on("change",n),[])}return t}function useCombineMotionValues(e,t){const i=useMotionValue(t()),n=()=>i.set(t());return n(),useIsomorphicLayoutEffect(()=>{const s=()=>frame.preRender(n,!1,!0),a=e.map(o=>o.on("change",s));return()=>{a.forEach(o=>o()),cancelFrame(n)}}),i}const isCustomValueType=e=>e&&typeof e=="object"&&e.mix,getMixer=e=>isCustomValueType(e)?e.mix:void 0;function transform(...e){const t=!Array.isArray(e[0]),i=t?0:-1,n=e[0+i],s=e[1+i],a=e[2+i],o=e[3+i],l=interpolate(s,a,{mixer:getMixer(a[0]),...o});return t?l(n):l}function useComputed(e){collectMotionValues.current=[],e();const t=useCombineMotionValues(collectMotionValues.current,e);return collectMotionValues.current=void 0,t}function useTransform(e,t,i,n){if(typeof e=="function")return useComputed(e);const s=typeof t=="function"?t:transform(t,i,n);return Array.isArray(e)?useListTransform(e,s):useListTransform([e],([a])=>s(a))}function useListTransform(e,t){const i=useConstant(()=>[]);return useCombineMotionValues(e,()=>{i.length=0;const n=e.length;for(let s=0;s<n;s++)i[s]=e[s].get();return t(i)})}function resolveElements(e,t,i){var n;if(typeof e=="string"){let s=document;t&&(invariant(!!t.current,"Scope provided, but no element detected."),s=t.current),i?((n=i[e])!==null&&n!==void 0||(i[e]=s.querySelectorAll(e)),e=i[e]):e=s.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function useUnmountEffect(e){return React.useEffect(()=>()=>e(),[])}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function createVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=isSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function createGeneratorEasing(e,t=100){const i=spring({keyframes:[0,t],...e}),n=Math.min(calcGeneratorDuration(i),maxGeneratorDuration);return{type:"keyframes",ease:s=>i.next(n*s).value/t,duration:millisecondsToSeconds(n)}}function calcNextTime(e,t,i,n){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?i:(s=n.get(t))!==null&&s!==void 0?s:e}const wrap=(e,t,i)=>{const n=t-e;return((i-e)%n+n)%n+e};function getEasingForSegment(e,t){return isEasingArray(e)?e[wrap(0,e.length,t)]:e}function eraseKeyframes(e,t,i){for(let n=0;n<e.length;n++){const s=e[n];s.at>t&&s.at<i&&(removeItem(e,s),n--)}}function addKeyframes(e,t,i,n,s,a){eraseKeyframes(e,s,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:mixNumber$1(s,a,n[o]),easing:getEasingForSegment(i,o)})}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(e,{defaultTransition:t={},...i}={},n){const s=t.duration||.3,a=new Map,o=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let p=0;p<e.length;p++){const b=e[p];if(typeof b=="string"){c.set(b,f);continue}else if(!Array.isArray(b)){c.set(b.name,calcNextTime(f,b.at,u,c));continue}let[y,C,P={}]=b;P.at!==void 0&&(f=calcNextTime(f,P.at,u,c));let m=0;const x=(g,S,E,T=0,L=0)=>{const _=keyframesAsList(g),{delay:k=0,times:$=defaultOffset(_),type:z="keyframes",...O}=S;let{ease:N=t.ease||"easeOut",duration:K}=S;const B=typeof k=="function"?k(T,L):k,A=_.length;if(A<=2&&z==="spring"){let I=100;if(A===2&&isNumberKeyframesArray(_)){const q=_[1]-_[0];I=Math.abs(q)}const j={...O};K!==void 0&&(j.duration=secondsToMilliseconds(K));const W=createGeneratorEasing(j,I);N=W.ease,K=W.duration}K??(K=s);const V=f+B,R=V+K;$.length===1&&$[0]===0&&($[1]=1);const M=$.length-_.length;M>0&&fillOffset($,M),_.length===1&&_.unshift(null),addKeyframes(E,_,N,$,V,R),m=Math.max(B+K,m),d=Math.max(R,d)};if(isMotionValue(y)){const g=getSubjectSequence(y,o);x(C,P,getValueSequence("default",g))}else{const g=resolveElements(y,n,l),S=g.length;for(let E=0;E<S;E++){C=C,P=P;const T=g[E],L=getSubjectSequence(T,o);for(const _ in C)x(C[_],getValueTransition(P,_),getValueSequence(_,L),E,S)}}u=f,f+=m}return o.forEach((p,b)=>{for(const y in p){const C=p[y];C.sort(compareByTime);const P=[],m=[],x=[];for(let S=0;S<C.length;S++){const{at:E,value:T,easing:L}=C[S];P.push(T),m.push(progress(0,d,E)),x.push(L||"easeOut")}m[0]!==0&&(m.unshift(0),P.unshift(P[0]),x.unshift(defaultSegmentEasing)),m[m.length-1]!==1&&(m.push(1),P.push(null)),a.has(b)||a.set(b,{keyframes:{},transition:{}});const g=a.get(b);g.keyframes[y]=P,g.transition[y]={...t,duration:d,ease:x,times:m,...i}}}),a}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e[t]?{...e,...e[t]}:{...e}}const isNumber=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber);function animateElements(e,t,i,n){const s=resolveElements(e,n),a=s.length;invariant(!!a,"No valid element provided.");const o=[];for(let l=0;l<a;l++){const c=s[l];visualElementStore.has(c)||createVisualElement(c);const u=visualElementStore.get(c),f={...i};typeof f.delay=="function"&&(f.delay=f.delay(l,a)),o.push(...animateTarget(u,{...t,transition:f},{}))}return new GroupPlaybackControls(o)}const isSequence=e=>Array.isArray(e)&&Array.isArray(e[0]);function animateSequence(e,t,i){const n=[];return createAnimationsFromSequence(e,t,i).forEach(({keyframes:a,transition:o},l)=>{let c;isMotionValue(l)?c=animateSingleValue(l,a.default,o.default):c=animateElements(l,a,o),n.push(c)}),new GroupPlaybackControls(n)}const createScopedAnimate=e=>{function t(i,n,s){let a;return isSequence(i)?a=animateSequence(i,n,e):isDOMKeyframes(n)?a=animateElements(i,n,s,e):a=animateSingleValue(i,n,s),e&&e.animations.push(a),a}return t};function useAnimate(){const e=useConstant(()=>({current:null,animations:[]})),t=useConstant(()=>createScopedAnimate(e));return useUnmountEffect(()=>{e.animations.forEach(i=>i.stop())}),[e,t]}function getOriginIndex(e,t){if(e==="first")return 0;{const i=t-1;return e==="last"?i:i/2}}function stagger(e=.1,{startDelay:t=0,from:i=0,ease:n}={}){return(s,a)=>{const o=typeof i=="number"?i:getOriginIndex(i,a),l=Math.abs(o-s);let c=e*l;if(n){const u=a*e;c=easingDefinitionToFunction(n)(c/u)*u}return t+c}}const FooterBackgroundAnimation=({isMobile:e,isLogoHovered:t,maskUrl:i})=>{const[n]=React.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[s,a]=React.useState("initial"),o=React.useRef(null),l=React.useRef(null),c=useMotionValue(45),u=useTransform(c,f=>`${f}% center`);return React.useEffect(()=>{if(t)a("visible");else{a("exit");const f=setTimeout(()=>{a("initial")},800);return()=>clearTimeout(f)}},[t]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("video",{ref:o,src:n,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),jsxRuntime.jsx(AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(motion.div,{animate:s,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${i}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:jsxRuntime.jsx("video",{ref:l,src:n,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},ScaleY=({children:e,triggerAnimation:t})=>{const i={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:cubicBezier(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return jsxRuntime.jsx(motion.div,{animate:t?"animation":"idle",variants:i,style:{transformOrigin:"bottom"},children:e})},Shine=({children:e})=>jsxRuntime.jsx(motion.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),RollingText=React.forwardRef(({value:e,isHovered:t,className:i,delay:n},s)=>{const a=e.split(""),[o,l]=useAnimate(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:n?stagger(.014,{startDelay:n}):stagger(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:n?stagger(.014,{startDelay:n}):stagger(.014),ease:[.76,0,.24,1]}]])};return React.useImperativeHandle(s,()=>({startAnimation:c,stopAnimation:u})),React.useEffect(()=>{t?c():u()},[t]),React.useEffect(()=>{const f=()=>{t||c()},d=()=>{t||u()},p=o.current;if(p)return p.addEventListener("mouseenter",f),p.addEventListener("mouseleave",d),()=>{p.removeEventListener("mouseenter",f),p.removeEventListener("mouseleave",d)}},[o,t]),jsxRuntime.jsx("div",{ref:o,children:jsxRuntime.jsx("span",{className:cn("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",i),children:a.map((f,d)=>jsxRuntime.jsx("span",{"data-letter":f,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:f},`${f}-${d}`))})})});RollingText.displayName="RollingText";const FooterLinks=({title:e,links:t,hoveredIndex:i,onHover:n,className:s="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:a="gf-flex gf-flex-col gf-gap-1",isRoutes:o=!1})=>jsxRuntime.jsxs("div",{className:s,children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:jsxRuntime.jsx("span",{children:e})}),jsxRuntime.jsx("ul",{className:a,children:Object.values(t).map((l,c)=>l.link&&jsxRuntime.jsx("li",{className:o?"gf-w-fit":"",onMouseEnter:()=>{n==null||n(c)},onMouseLeave:()=>{n==null||n(null)},children:jsxRuntime.jsxs(Typography,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${o?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&jsxRuntime.jsx(RollingText,{value:l.inputAsset||"",isHovered:i===c}),o&&l.inputChain&&jsxRuntime.jsx(RollingText,{delay:.1,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:i===c}),jsxRuntime.jsx(RollingText,{delay:.15,value:l.title,isHovered:i===c}),o&&l.chain&&jsxRuntime.jsx(RollingText,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:i===c})]})},c))})]}),MaskURL="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Footer=({className:e,network:t="mainnet",maskUrl:i=MaskURL,...n})=>{const[s,a]=React.useState(!1),[o,l]=React.useState(null),c=useClientOnly(),u=React.useRef(null);React.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const f=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",d="https://garden.finance",p={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${f}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${f}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${f}/stake`,isExternal:!0},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0}},Resources:{blog:{title:"Blog",link:`${d}/blog`,isExternal:!0},faq:{title:"FAQs",link:`${d}/faq`,isExternal:!0},brandKit:{title:"Brand kit",link:`${d}/brand-kit`,isExternal:!0},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0},Audits:{title:"Audits",link:"https://github.com/gardenfi/audits",isExternal:!0}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0}}},b={btcToSol:{title:"BTC to SOL",link:d+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:d+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:d+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:d+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:d+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBTC",link:d+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:d+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToWbtcUni:{title:"BTC to WBTC",link:d+"/routes/bridge-btc-to-wbtc-unichain",chain:"Unichain",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:d+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},btcToMon:{title:"BTC to MON",link:d+"/routes/bridge-btc-to-mon",chain:"Monad",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBTC",link:d+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBTC",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:d+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",isExternal:!0},btcToUsdtEthereum:{title:" to USDT",link:d+"/routes/bridge-btc-to-usdt-ethereum",inputAsset:"BTC",chain:"Ethereum",isExternal:!0},btcToUsdcSolana:{title:" to USDC",link:d+"/routes/bridge-btc-to-usdc-solana",inputAsset:"BTC",chain:"Solana",isExternal:!0},usdcEthereumToBtc:{title:" to BTC",link:d+"/routes/bridge-usdc-ethereum-to-btc",inputAsset:"USDC",inputChain:"Ethereum",isExternal:!0},solToBtc:{title:" to BTC",link:d+"/routes/bridge-sol-to-btc",inputAsset:"SOL",inputChain:"Solana",isExternal:!0},usdcEthereumToUsdcBase:{title:" to USDC",link:d+"/routes/bridge-usdc-ethereum-to-usdc-base",inputAsset:"USDC",inputChain:"Ethereum",chain:"Base",isExternal:!0}},y={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/gardenfi"},{Products:C,Resources:P,Developers:m}=p;return jsxRuntime.jsxs("footer",{className:cn("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,s?"gf-text-white":"gf-text-dark-grey"),...n,children:[jsxRuntime.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[jsxRuntime.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[jsxRuntime.jsx(GardenIcon,{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{a(!0)},300)},onMouseLeave:()=>{u.current&&(clearTimeout(u.current),u.current=null),a(!1)},className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:x=>x.preventDefault()}),jsxRuntime.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[jsxRuntime.jsx(XIcon,{onClick:()=>{c&&window.open(y.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),jsxRuntime.jsx(DiscordIcon,{onClick:()=>{c&&window.open(y.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[jsxRuntime.jsx("div",{className:"gf-w-full md:gf-hidden",children:jsxRuntime.jsx(FooterLinks,{title:"Resources",links:P,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),jsxRuntime.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:jsxRuntime.jsx(FooterLinks,{title:"Routes",links:b,hoveredIndex:o,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[jsxRuntime.jsx(FooterLinks,{title:"Products",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),jsxRuntime.jsx(FooterLinks,{title:"Developers",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),jsxRuntime.jsx("div",{className:"gf-hidden md:gf-flex",children:jsxRuntime.jsx(FooterLinks,{title:"Resources",links:P,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),jsxRuntime.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[jsxRuntime.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${s?"gf-bg-white":"gf-bg-dark-grey"}`}),jsxRuntime.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[jsxRuntime.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:jsxRuntime.jsxs(Typography,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[jsxRuntime.jsx(CopyrightsIcon,{}),jsxRuntime.jsx("span",{children:"Garden"}),jsxRuntime.jsx("span",{children:"2025"})]})}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[jsxRuntime.jsx(Typography,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/privacy.pdf",target:"_blank",children:"Privacy Policy"}),jsxRuntime.jsx(Typography,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),jsxRuntime.jsx(FooterBackgroundAnimation,{isMobile:!1,isLogoHovered:s,maskUrl:i})]})};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var build={exports:{}};(()=>{var e={181:(s,a,o)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,p=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,b=typeof self=="object"&&self&&self.Object===Object&&self,y=p||b||Function("return this")(),C=Object.prototype.toString,P=Math.max,m=Math.min,x=function(){return y.Date.now()};function g(E){var T=typeof E;return!!E&&(T=="object"||T=="function")}function S(E){if(typeof E=="number")return E;if(function(_){return typeof _=="symbol"||function(k){return!!k&&typeof k=="object"}(_)&&C.call(_)=="[object Symbol]"}(E))return NaN;if(g(E)){var T=typeof E.valueOf=="function"?E.valueOf():E;E=g(T)?T+"":T}if(typeof E!="string")return E===0?E:+E;E=E.replace(l,"");var L=u.test(E);return L||f.test(E)?d(E.slice(2),L?2:8):c.test(E)?NaN:+E}s.exports=function(E,T,L){var _,k,$,z,O,N,K=0,B=!1,A=!1,V=!0;if(typeof E!="function")throw new TypeError("Expected a function");function R(q){var X=_,ee=k;return _=k=void 0,K=q,z=E.apply(ee,X)}function M(q){var X=q-N;return N===void 0||X>=T||X<0||A&&q-K>=$}function I(){var q=x();if(M(q))return j(q);O=setTimeout(I,function(X){var ee=T-(X-N);return A?m(ee,$-(X-K)):ee}(q))}function j(q){return O=void 0,V&&_?R(q):(_=k=void 0,z)}function W(){var q=x(),X=M(q);if(_=arguments,k=this,N=q,X){if(O===void 0)return function(ee){return K=ee,O=setTimeout(I,T),B?R(ee):z}(N);if(A)return O=setTimeout(I,T),R(N)}return O===void 0&&(O=setTimeout(I,T)),z}return T=S(T)||0,g(L)&&(B=!!L.leading,$=(A="maxWait"in L)?P(S(L.maxWait)||0,T):$,V="trailing"in L?!!L.trailing:V),W.cancel=function(){O!==void 0&&clearTimeout(O),K=0,_=N=k=O=void 0},W.flush=function(){return O===void 0?z:j(x())},W}},858:(s,a,o)=>{var l="Expected a function",c=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt,C=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,P=typeof self=="object"&&self&&self.Object===Object&&self,m=C||P||Function("return this")(),x=Object.prototype.toString,g=Math.max,S=Math.min,E=function(){return m.Date.now()};function T(_){var k=typeof _;return!!_&&(k=="object"||k=="function")}function L(_){if(typeof _=="number")return _;if(function(z){return typeof z=="symbol"||function(O){return!!O&&typeof O=="object"}(z)&&x.call(z)==u}(_))return c;if(T(_)){var k=typeof _.valueOf=="function"?_.valueOf():_;_=T(k)?k+"":k}if(typeof _!="string")return _===0?_:+_;_=_.replace(f,"");var $=p.test(_);return $||b.test(_)?y(_.slice(2),$?2:8):d.test(_)?c:+_}s.exports=function(_,k,$){var z=!0,O=!0;if(typeof _!="function")throw new TypeError(l);return T($)&&(z="leading"in $?!!$.leading:z,O="trailing"in $?!!$.trailing:O),function(N,K,B){var A,V,R,M,I,j,W=0,q=!1,X=!1,ee=!0;if(typeof N!="function")throw new TypeError(l);function re(se){var fe=A,ie=V;return A=V=void 0,W=se,M=N.apply(ie,fe)}function ce(se){var fe=se-j;return j===void 0||fe>=K||fe<0||X&&se-W>=R}function he(){var se=E();if(ce(se))return me(se);I=setTimeout(he,function(fe){var ie=K-(fe-j);return X?S(ie,R-(fe-W)):ie}(se))}function me(se){return I=void 0,ee&&A?re(se):(A=V=void 0,M)}function pe(){var se=E(),fe=ce(se);if(A=arguments,V=this,j=se,fe){if(I===void 0)return function(ie){return W=ie,I=setTimeout(he,K),q?re(ie):M}(j);if(X)return I=setTimeout(he,K),re(j)}return I===void 0&&(I=setTimeout(he,K)),M}return K=L(K)||0,T(B)&&(q=!!B.leading,R=(X="maxWait"in B)?g(L(B.maxWait)||0,K):R,ee="trailing"in B?!!B.trailing:ee),pe.cancel=function(){I!==void 0&&clearTimeout(I),W=0,A=j=V=I=void 0},pe.flush=function(){return I===void 0?M:me(E())},pe}(_,k,{leading:z,maxWait:k,trailing:O})}},694:(s,a,o)=>{var l=o(925);function c(){}function u(){}u.resetWarningCache=c,s.exports=function(){function f(b,y,C,P,m,x){if(x!==l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function d(){return f}f.isRequired=f;var p={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:d,element:f,elementType:f,instanceOf:d,node:f,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:c};return p.PropTypes=p,p}},556:(s,a,o)=>{s.exports=o(694)()},925:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function i(s){var a=t[s];if(a!==void 0)return a.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return i.d(a,{a}),a},i.d=(s,a)=>{for(var o in a)i.o(a,o)&&!i.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:a[o]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var n={};(()=>{i.r(n),i.d(n,{LazyLoadComponent:()=>ve,LazyLoadImage:()=>He,trackWindowScroll:()=>q});const s=React;var a=i.n(s),o=i(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(U){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},c(U)}function u(U,F){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(U);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(U,D).enumerable})),G.push.apply(G,H)}return G}function f(U,F,G){return(F=p(F))in U?Object.defineProperty(U,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[F]=G,U}function d(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,p(H.key),H)}}function p(U){var F=function(G,H){if(c(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(c(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return c(F)=="symbol"?F:F+""}function b(U,F,G){return F=C(F),function(H,D){if(D&&(c(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,y()?Reflect.construct(F,G||[],C(U).constructor):F.apply(U,G))}function y(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y=function(){return!!U})()}function C(U){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},C(U)}function P(U,F){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},P(U,F)}var m=function(U){U.forEach(function(F){F.isIntersecting&&F.target.onVisible()})},x={},g=function(U){function F(D){var Z;if(function(Q,te){if(!(Q instanceof te))throw new TypeError("Cannot call a class as a function")}(this,F),(Z=b(this,F,[D])).supportsObserver=!D.scrollPosition&&D.useIntersectionObserver&&l(),Z.supportsObserver){var J=D.threshold;Z.observer=function(Q){return x[Q]=x[Q]||new IntersectionObserver(m,{rootMargin:Q+"px"}),x[Q]}(J)}return Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&P(D,Z)}(F,U),G=F,H=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,Z=this.placeholder.getBoundingClientRect(),J=this.placeholder.style,Q=parseInt(J.getPropertyValue("margin-left"),10)||0,te=parseInt(J.getPropertyValue("margin-top"),10)||0;return{bottom:D.y+Z.bottom+te,left:D.x+Z.left+Q,right:D.x+Z.right+Q,top:D.y+Z.top+te}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var D=this.props,Z=D.scrollPosition,J=D.threshold,Q=this.getPlaceholderBoundingBox(Z),te=Z.y+window.innerHeight,ne=Z.x,le=Z.x+window.innerWidth,ae=Z.y;return ae-J<=Q.bottom&&te+J>=Q.top&&ne-J<=Q.right&&le+J>=Q.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var D=this,Z=this.props,J=Z.className,Q=Z.height,te=Z.placeholder,ne=Z.style,le=Z.width;if(te&&typeof te.type!="function")return a().cloneElement(te,{ref:function(oe){return D.placeholder=oe}});var ae=function(oe){for(var de=1;de<arguments.length;de++){var ue=arguments[de]!=null?arguments[de]:{};de%2?u(Object(ue),!0).forEach(function(ge){f(oe,ge,ue[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors(ue)):u(Object(ue)).forEach(function(ge){Object.defineProperty(oe,ge,Object.getOwnPropertyDescriptor(ue,ge))})}return oe}({display:"inline-block"},ne);return le!==void 0&&(ae.width=le),Q!==void 0&&(ae.height=Q),a().createElement("span",{className:J,ref:function(oe){return D.placeholder=oe},style:ae},te)}}],H&&d(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);g.propTypes={onVisible:o.PropTypes.func.isRequired,className:o.PropTypes.string,height:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),placeholder:o.PropTypes.element,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,scrollPosition:o.PropTypes.shape({x:o.PropTypes.number.isRequired,y:o.PropTypes.number.isRequired}),width:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string])},g.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const S=g;var E=i(181),T=i.n(E),L=i(858),_=i.n(L),k=function(U){var F=getComputedStyle(U,null);return F.getPropertyValue("overflow")+F.getPropertyValue("overflow-y")+F.getPropertyValue("overflow-x")};const $=function(U){if(!(U instanceof HTMLElement))return window;for(var F=U;F&&F instanceof HTMLElement;){if(/(scroll|auto)/.test(k(F)))return F;F=F.parentNode}return window};function z(U){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},z(U)}var O=["delayMethod","delayTime"];function N(){return N=Object.assign?Object.assign.bind():function(U){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var H in G)({}).hasOwnProperty.call(G,H)&&(U[H]=G[H])}return U},N.apply(null,arguments)}function K(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,B(H.key),H)}}function B(U){var F=function(G,H){if(z(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(z(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return z(F)=="symbol"?F:F+""}function A(U,F,G){return F=M(F),V(U,R()?Reflect.construct(F,G||[],M(U).constructor):F.apply(U,G))}function V(U,F){if(F&&(z(F)=="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(U)}function R(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=function(){return!!U})()}function M(U){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},M(U)}function I(U,F){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},I(U,F)}var j=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},W=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const q=function(U){var F=function(G){function H(J){var Q;if(function(ne,le){if(!(ne instanceof le))throw new TypeError("Cannot call a class as a function")}(this,H),(Q=A(this,H,[J])).useIntersectionObserver=J.useIntersectionObserver&&l(),Q.useIntersectionObserver)return V(Q);var te=Q.onChangeScroll.bind(Q);return J.delayMethod==="debounce"?Q.delayedScroll=T()(te,J.delayTime):J.delayMethod==="throttle"&&(Q.delayedScroll=_()(te,J.delayTime)),Q.state={scrollPosition:{x:j(),y:W()}},Q.baseComponentRef=a().createRef(),Q}return function(J,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Q&&I(J,Q)}(H,G),D=H,Z=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||$(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=$(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:j(),y:W()}})}},{key:"render",value:function(){var J=this.props,Q=(J.delayMethod,J.delayTime,function(ne,le){if(ne==null)return{};var ae,oe,de=function(ge,Ie){if(ge==null)return{};var Be={};for(var Oe in ge)if({}.hasOwnProperty.call(ge,Oe)){if(Ie.indexOf(Oe)>=0)continue;Be[Oe]=ge[Oe]}return Be}(ne,le);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(ne);for(oe=0;oe<ue.length;oe++)ae=ue[oe],le.indexOf(ae)>=0||{}.propertyIsEnumerable.call(ne,ae)&&(de[ae]=ne[ae])}return de}(J,O)),te=this.useIntersectionObserver?null:this.state.scrollPosition;return a().createElement(U,N({forwardRef:this.baseComponentRef,scrollPosition:te},Q))}}],Z&&K(D.prototype,Z),Object.defineProperty(D,"prototype",{writable:!1}),D;var D,Z}(a().Component);return F.propTypes={delayMethod:o.PropTypes.oneOf(["debounce","throttle"]),delayTime:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool},F.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},F};function X(U){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},X(U)}function ee(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,re(H.key),H)}}function re(U){var F=function(G,H){if(X(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(X(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return X(F)=="symbol"?F:F+""}function ce(U,F,G){return F=me(F),function(H,D){if(D&&(X(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,he()?Reflect.construct(F,G||[],me(U).constructor):F.apply(U,G))}function he(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(he=function(){return!!U})()}function me(U){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},me(U)}function pe(U,F){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},pe(U,F)}var se=function(U){function F(D){return function(Z,J){if(!(Z instanceof J))throw new TypeError("Cannot call a class as a function")}(this,F),ce(this,F,[D])}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&pe(D,Z)}(F,U),G=F,(H=[{key:"render",value:function(){return a().createElement(S,this.props)}}])&&ee(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);const fe=q(se);function ie(U){return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},ie(U)}function Y(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,Ee(H.key),H)}}function Ee(U){var F=function(G,H){if(ie(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(ie(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return ie(F)=="symbol"?F:F+""}function Le(U,F,G){return F=ye(F),function(H,D){if(D&&(ie(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,be()?Reflect.construct(F,G||[],ye(U).constructor):F.apply(U,G))}function be(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(be=function(){return!!U})()}function ye(U){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},ye(U)}function Pe(U,F){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},Pe(U,F)}var Ce=function(U){function F(D){var Z;(function(le,ae){if(!(le instanceof ae))throw new TypeError("Cannot call a class as a function")})(this,F),Z=Le(this,F,[D]);var J=D.afterLoad,Q=D.beforeLoad,te=D.scrollPosition,ne=D.visibleByDefault;return Z.state={visible:ne},ne&&(Q(),J()),Z.onVisible=Z.onVisible.bind(Z),Z.isScrollTracked=!!(te&&Number.isFinite(te.x)&&te.x>=0&&Number.isFinite(te.y)&&te.y>=0),Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&Pe(D,Z)}(F,U),G=F,(H=[{key:"componentDidUpdate",value:function(D,Z){Z.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var D=this.props,Z=D.className,J=D.delayMethod,Q=D.delayTime,te=D.height,ne=D.placeholder,le=D.scrollPosition,ae=D.style,oe=D.threshold,de=D.useIntersectionObserver,ue=D.width;return this.isScrollTracked||de&&l()?a().createElement(S,{className:Z,height:te,onVisible:this.onVisible,placeholder:ne,scrollPosition:le,style:ae,threshold:oe,useIntersectionObserver:de,width:ue}):a().createElement(fe,{className:Z,delayMethod:J,delayTime:Q,height:te,onVisible:this.onVisible,placeholder:ne,style:ae,threshold:oe,width:ue})}}])&&Y(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);Ce.propTypes={afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool},Ce.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const ve=Ce;function xe(U){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},xe(U)}var we=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Se(U,F){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(U);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(U,D).enumerable})),G.push.apply(G,H)}return G}function Me(U){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?Se(Object(G),!0).forEach(function(H){Re(U,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(G)):Se(Object(G)).forEach(function(H){Object.defineProperty(U,H,Object.getOwnPropertyDescriptor(G,H))})}return U}function Re(U,F,G){return(F=Ve(F))in U?Object.defineProperty(U,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[F]=G,U}function Te(){return Te=Object.assign?Object.assign.bind():function(U){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var H in G)({}).hasOwnProperty.call(G,H)&&(U[H]=G[H])}return U},Te.apply(null,arguments)}function _e(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,Ve(H.key),H)}}function Ve(U){var F=function(G,H){if(xe(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(xe(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return xe(F)=="symbol"?F:F+""}function je(U,F,G){return F=Ae(F),function(H,D){if(D&&(xe(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,De()?Reflect.construct(F,G||[],Ae(U).constructor):F.apply(U,G))}function De(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(De=function(){return!!U})()}function Ae(U){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},Ae(U)}function ke(U,F){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},ke(U,F)}var Fe=function(U){function F(D){var Z;return function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,F),(Z=je(this,F,[D])).state={loaded:!1},Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&ke(D,Z)}(F,U),G=F,H=[{key:"onImageLoad",value:function(){var D=this;return this.state.loaded?null:function(Z){D.props.onLoad(Z),D.props.afterLoad(),D.setState({loaded:!0})}}},{key:"getImg",value:function(){var D=this.props,Z=(D.afterLoad,D.beforeLoad,D.delayMethod,D.delayTime,D.effect,D.placeholder,D.placeholderSrc,D.scrollPosition,D.threshold,D.useIntersectionObserver,D.visibleByDefault,D.wrapperClassName,D.wrapperProps,function(J,Q){if(J==null)return{};var te,ne,le=function(oe,de){if(oe==null)return{};var ue={};for(var ge in oe)if({}.hasOwnProperty.call(oe,ge)){if(de.indexOf(ge)>=0)continue;ue[ge]=oe[ge]}return ue}(J,Q);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(J);for(ne=0;ne<ae.length;ne++)te=ae[ne],Q.indexOf(te)>=0||{}.propertyIsEnumerable.call(J,te)&&(le[te]=J[te])}return le}(D,we));return a().createElement("img",Te({},Z,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var D=this.props,Z=D.beforeLoad,J=D.className,Q=D.delayMethod,te=D.delayTime,ne=D.height,le=D.placeholder,ae=D.scrollPosition,oe=D.style,de=D.threshold,ue=D.useIntersectionObserver,ge=D.visibleByDefault,Ie=D.width;return a().createElement(ve,{beforeLoad:Z,className:J,delayMethod:Q,delayTime:te,height:ne,placeholder:le,scrollPosition:ae,style:oe,threshold:de,useIntersectionObserver:ue,visibleByDefault:ge,width:Ie},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(D){var Z=this.props,J=Z.effect,Q=Z.height,te=Z.placeholderSrc,ne=Z.width,le=Z.wrapperClassName,ae=Z.wrapperProps,oe=this.state.loaded,de=oe?" lazy-load-image-loaded":"",ue=oe||!te?{}:{backgroundImage:"url(".concat(te,")"),backgroundSize:"100% 100%"};return a().createElement("span",Te({className:le+" lazy-load-image-background "+J+de,style:Me(Me({},ue),{},{color:"transparent",display:"inline-block",height:Q,width:ne})},ae),D)}},{key:"render",value:function(){var D=this.props,Z=D.effect,J=D.placeholderSrc,Q=D.visibleByDefault,te=D.wrapperClassName,ne=D.wrapperProps,le=this.getLazyLoadImage();return(Z||J)&&!Q||te||ne?this.getWrappedLazyLoadImage(le):le}}],H&&_e(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);Fe.propTypes={onLoad:o.PropTypes.func,afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,delayMethod:o.PropTypes.string,delayTime:o.PropTypes.number,effect:o.PropTypes.string,placeholderSrc:o.PropTypes.string,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool,wrapperClassName:o.PropTypes.string,wrapperProps:o.PropTypes.object},Fe.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const He=Fe})(),build.exports=n})();var buildExports=build.exports;const placeholderUrl="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",BlogCard=({thumbnail:e,category:t,date:i,title:n,className:s,thumbnailClassName:a})=>{const[o,l]=React.useState(!1),[c,u]=React.useState(e??placeholderUrl);React.useEffect(()=>{u(e??placeholderUrl)},[e]);const f=()=>{u(placeholderUrl)};return jsxRuntime.jsx(Opacity,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:jsxRuntime.jsxs("div",{className:cn(s,"gf-overflow-hidden gf-rounded-2xl"),children:[jsxRuntime.jsx("div",{className:cn(a,`${o?"":"gf-filter gf-blur-md"}`),children:jsxRuntime.jsx(buildExports.LazyLoadImage,{alt:n,effect:"blur",src:c,onLoad:()=>l(!0),onError:f})}),jsxRuntime.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[jsxRuntime.jsx(Typography,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),jsxRuntime.jsx(Typography,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:i})]}),jsxRuntime.jsx(Typography,{size:"h3",weight:"bold",children:n})]})]})})},questCardStyles=cva(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),QuestCard=({variant:e,title:t,description:i,chipContent:n,logo:s})=>jsxRuntime.jsxs("div",{className:cn(questCardStyles({variant:e})),children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[jsxRuntime.jsxs(Chip,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[jsxRuntime.jsx(Chip.Logo,{children:s}),t,jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]}),e==="default"?jsxRuntime.jsx(OpenInFullIcon,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):jsxRuntime.jsx(LockIcon,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),jsxRuntime.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:jsxRuntime.jsx(Typography,{size:"h3",weight:"medium",children:i})}),jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[jsxRuntime.jsxs(Chip,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",children:"Quest Access"}),jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]}),jsxRuntime.jsxs(Chip,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",children:n}),jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]})]})]});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,n=e.length,s;for(i=0;i<n;i+=1){s=e[i].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].pause()},resume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].resume()},setRate:function(i){var n,s=this.audios.length;for(n=0;n<s;n+=1)this.audios[n].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,n){var s=0,a=[],o;switch(i){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(s=0;s<n;s+=1)a.push(o);return a}function t(i,n){return i==="float32"?new Float32Array(n):i==="int16"?new Int16Array(n):i==="uint8c"?new Uint8ClampedArray(n):e(i,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(i){return typeof i}:_typeof$6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var i=createSizedArray(e.length),n,s=e.length;for(n=0;n<s;n+=1)i[n]=Math.abs(e[n]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,n){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,n){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,i){var n,s,a,o,l,c,u,f;switch(o=Math.floor(e*6),l=e*6-o,c=i*(1-t),u=i*(1-l*t),f=i*(1-(1-l)*t),o%6){case 0:n=i,s=f,a=c;break;case 1:n=u,s=i,a=c;break;case 2:n=c,s=i,a=f;break;case 3:n=c,s=u,a=i;break;case 4:n=f,s=c,a=i;break;case 5:n=i,s=c,a=u;break}return[n,s,a]}function RGBtoHSV(e,t,i){var n=Math.max(e,t,i),s=Math.min(e,t,i),a=n-s,o,l=n===0?0:a/n,c=n/255;switch(n){case s:o=0;break;case e:o=t-i+a*(t<i?6:0),o/=6*a;break;case t:o=i-e+a*2,o/=6*a;break;case i:o=e-t+a*4,o/=6*a;break}return[o,l,c]}function addSaturationToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],t,i;for(t=0;t<256;t+=1)i=t.toString(16),e[t]=i.length===1?"0"+i:i;return function(n,s,a){return n<0&&(n=0),s<0&&(s=0),a<0&&(a=0),"#"+e[n]+e[s]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(i){return typeof i}:_typeof$5=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(e)}var dataManager=function(){var e=1,t=[],i,n,s={onmessage:function(){},postMessage:function(b){i({data:b})}},a={postMessage:function(b){s.onmessage({data:b})}};function o(p){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),y=URL.createObjectURL(b);return new Worker(y)}return i=p,s}function l(){n||(n=o(function(b){function y(){function P(B,A){var V,R,M=B.length,I,j,W,q;for(R=0;R<M;R+=1)if(V=B[R],"ks"in V&&!V.completed){if(V.completed=!0,V.hasMask){var X=V.masksProperties;for(j=X.length,I=0;I<j;I+=1)if(X[I].pt.k.i)E(X[I].pt.k);else for(q=X[I].pt.k.length,W=0;W<q;W+=1)X[I].pt.k[W].s&&E(X[I].pt.k[W].s[0]),X[I].pt.k[W].e&&E(X[I].pt.k[W].e[0])}V.ty===0?(V.layers=g(V.refId,A),P(V.layers,A)):V.ty===4?S(V.shapes):V.ty===5&&N(V)}}function m(B,A){if(B){var V=0,R=B.length;for(V=0;V<R;V+=1)B[V].t===1&&(B[V].data.layers=g(B[V].data.refId,A),P(B[V].data.layers,A))}}function x(B,A){for(var V=0,R=A.length;V<R;){if(A[V].id===B)return A[V];V+=1}return null}function g(B,A){var V=x(B,A);return V?V.layers.__used?JSON.parse(JSON.stringify(V.layers)):(V.layers.__used=!0,V.layers):null}function S(B){var A,V=B.length,R,M;for(A=V-1;A>=0;A-=1)if(B[A].ty==="sh")if(B[A].ks.k.i)E(B[A].ks.k);else for(M=B[A].ks.k.length,R=0;R<M;R+=1)B[A].ks.k[R].s&&E(B[A].ks.k[R].s[0]),B[A].ks.k[R].e&&E(B[A].ks.k[R].e[0]);else B[A].ty==="gr"&&S(B[A].it)}function E(B){var A,V=B.i.length;for(A=0;A<V;A+=1)B.i[A][0]+=B.v[A][0],B.i[A][1]+=B.v[A][1],B.o[A][0]+=B.v[A][0],B.o[A][1]+=B.v[A][1]}function T(B,A){var V=A?A.split("."):[100,100,100];return B[0]>V[0]?!0:V[0]>B[0]?!1:B[1]>V[1]?!0:V[1]>B[1]?!1:B[2]>V[2]?!0:V[2]>B[2]?!1:null}var L=function(){var B=[4,4,14];function A(R){var M=R.t.d;R.t.d={k:[{s:M,t:0}]}}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===5&&A(R[M])}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),_=function(){var B=[4,7,99];return function(A){if(A.chars&&!T(B,A.v)){var V,R=A.chars.length;for(V=0;V<R;V+=1){var M=A.chars[V];M.data&&M.data.shapes&&(S(M.data.shapes),M.data.ip=0,M.data.op=99999,M.data.st=0,M.data.sr=1,M.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},A.chars[V].t||(M.data.shapes.push({ty:"no"}),M.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),k=function(){var B=[5,7,15];function A(R){var M=R.t.p;typeof M.a=="number"&&(M.a={a:0,k:M.a}),typeof M.p=="number"&&(M.p={a:0,k:M.p}),typeof M.r=="number"&&(M.r={a:0,k:M.r})}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===5&&A(R[M])}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),$=function(){var B=[4,1,9];function A(R){var M,I=R.length,j,W;for(M=0;M<I;M+=1)if(R[M].ty==="gr")A(R[M].it);else if(R[M].ty==="fl"||R[M].ty==="st")if(R[M].c.k&&R[M].c.k[0].i)for(W=R[M].c.k.length,j=0;j<W;j+=1)R[M].c.k[j].s&&(R[M].c.k[j].s[0]/=255,R[M].c.k[j].s[1]/=255,R[M].c.k[j].s[2]/=255,R[M].c.k[j].s[3]/=255),R[M].c.k[j].e&&(R[M].c.k[j].e[0]/=255,R[M].c.k[j].e[1]/=255,R[M].c.k[j].e[2]/=255,R[M].c.k[j].e[3]/=255);else R[M].c.k[0]/=255,R[M].c.k[1]/=255,R[M].c.k[2]/=255,R[M].c.k[3]/=255}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===4&&A(R[M].shapes)}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),z=function(){var B=[4,4,18];function A(R){var M,I=R.length,j,W;for(M=I-1;M>=0;M-=1)if(R[M].ty==="sh")if(R[M].ks.k.i)R[M].ks.k.c=R[M].closed;else for(W=R[M].ks.k.length,j=0;j<W;j+=1)R[M].ks.k[j].s&&(R[M].ks.k[j].s[0].c=R[M].closed),R[M].ks.k[j].e&&(R[M].ks.k[j].e[0].c=R[M].closed);else R[M].ty==="gr"&&A(R[M].it)}function V(R){var M,I,j=R.length,W,q,X,ee;for(I=0;I<j;I+=1){if(M=R[I],M.hasMask){var re=M.masksProperties;for(q=re.length,W=0;W<q;W+=1)if(re[W].pt.k.i)re[W].pt.k.c=re[W].cl;else for(ee=re[W].pt.k.length,X=0;X<ee;X+=1)re[W].pt.k[X].s&&(re[W].pt.k[X].s[0].c=re[W].cl),re[W].pt.k[X].e&&(re[W].pt.k[X].e[0].c=re[W].cl)}M.ty===4&&A(M.shapes)}}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}();function O(B){B.__complete||($(B),L(B),_(B),k(B),z(B),P(B.layers,B.assets),m(B.chars,B.assets),B.__complete=!0)}function N(B){B.t.a.length===0&&"m"in B.t.p}var K={};return K.completeData=O,K.checkColors=$,K.checkChars=_,K.checkPathProperties=k,K.checkShapes=z,K.completeLayers=P,K}if(a.dataManager||(a.dataManager=y()),a.assetLoader||(a.assetLoader=function(){function P(x){var g=x.getResponseHeader("content-type");return g&&x.responseType==="json"&&g.indexOf("json")!==-1||x.response&&_typeof$5(x.response)==="object"?x.response:x.response&&typeof x.response=="string"?JSON.parse(x.response):x.responseText?JSON.parse(x.responseText):null}function m(x,g,S,E){var T,L=new XMLHttpRequest;try{L.responseType="json"}catch{}L.onreadystatechange=function(){if(L.readyState===4)if(L.status===200)T=P(L),S(T);else try{T=P(L),S(T)}catch(_){E&&E(_)}};try{L.open(["G","E","T"].join(""),x,!0)}catch{L.open(["G","E","T"].join(""),g+"/"+x,!0)}L.send()}return{load:m}}()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(P){a.dataManager.completeData(P),a.postMessage({id:b.data.id,payload:P,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var C=b.data.animation;a.dataManager.completeData(C),a.postMessage({id:b.data.id,payload:C,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(P){a.postMessage({id:b.data.id,payload:P,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),n.onmessage=function(p){var b=p.data,y=b.id,C=t[y];t[y]=null,b.status==="success"?C.onComplete(b.payload):C.onError&&C.onError()})}function c(p,b){e+=1;var y="processId_"+e;return t[y]={onComplete:p,onError:b},y}function u(p,b,y){l();var C=c(b,y);n.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:C})}function f(p,b,y){l();var C=c(b,y);n.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:C})}function d(p,b,y){l();var C=c(b,y);n.postMessage({type:"complete",animation:p,id:C})}return{loadAnimation:u,loadData:f,completeAnimation:d}}(),ImagePreloader=function(){var e=function(){var m=createTag("canvas");m.width=1,m.height=1;var x=m.getContext("2d");return x.fillStyle="rgba(0,0,0,0)",x.fillRect(0,0,1,1),m}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(m,x,g){var S="";if(m.e)S=m.p;else if(x){var E=m.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),S=x+E}else S=g,S+=m.u?m.u:"",S+=m.p;return S}function s(m){var x=0,g=setInterval((function(){var S=m.getBBox();(S.width||x>500)&&(this._imageLoaded(),clearInterval(g)),x+=1}).bind(this),50)}function a(m){var x=n(m,this.assetsPath,this.path),g=createNS("image");isSafari?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",x),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var S={img:g,assetData:m};return S}function o(m){var x=n(m,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),g.src=x;var S={img:g,assetData:m};return S}function l(m){var x={assetData:m},g=n(m,this.assetsPath,this.path);return dataManager.loadData(g,(function(S){x.img=S,this._footageLoaded()}).bind(this),(function(){x.img={},this._footageLoaded()}).bind(this)),x}function c(m,x){this.imagesLoadedCb=x;var g,S=m.length;for(g=0;g<S;g+=1)m[g].layers||(!m[g].t||m[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(m[g]))):m[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(m[g]))))}function u(m){this.path=m||""}function f(m){this.assetsPath=m||""}function d(m){for(var x=0,g=this.images.length;x<g;){if(this.images[x].assetData===m)return this.images[x].img;x+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function y(){return this.totalFootages===this.loadedFootagesCount}function C(m,x){m==="svg"?(this._elementHelper=x,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function P(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return P.prototype={loadAssets:c,setAssetsPath:f,setPath:u,loadedImages:b,loadedFootages:y,destroy:p,getAsset:d,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:i,setCacheType:C},P}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var n=this._cbs[t],s=0;s<n.length;s+=1)n[s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),(function(){this.removeEventListener(t,i)}).bind(this)},removeEventListener:function(t,i){if(!i)this._cbs[t]=null;else if(this._cbs[t]){for(var n=0,s=this._cbs[t].length;n<s;)this._cbs[t][n]===i&&(this._cbs[t].splice(n,1),n-=1,s-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var i=t.split(`\r
|
|
65
|
+
`),()=>{document.head.removeChild(f)}},[t]),jsxRuntime.jsx(PopChildMeasure,{isPresent:t,childRef:n,sizeRef:s,children:React__namespace.cloneElement(e,{ref:n})})}const PresenceChild=({children:e,initial:t,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:a,mode:o})=>{const l=useConstant(newChildrenMap),c=React.useId(),u=React.useMemo(()=>({id:c,initial:t,isPresent:i,custom:s,onExitComplete:f=>{l.set(f,!0);for(const d of l.values())if(!d)return;n&&n()},register:f=>(l.set(f,!1),()=>l.delete(f))}),a?[Math.random()]:[i]);return React.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[i]),React__namespace.useEffect(()=>{!i&&!l.size&&n&&n()},[i]),o==="popLayout"&&(e=jsxRuntime.jsx(PopChild,{isPresent:i,children:e})),jsxRuntime.jsx(PresenceContext.Provider,{value:u,children:e})};function newChildrenMap(){return new Map}const getChildKey=e=>e.key||"";function onlyElements(e){const t=[];return React.Children.forEach(e,i=>{React.isValidElement(i)&&t.push(i)}),t}const AnimatePresence=({children:e,exitBeforeEnter:t,custom:i,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{invariant(!t,"Replace exitBeforeEnter with mode='wait'");const l=React.useMemo(()=>onlyElements(e),[e]),c=l.map(getChildKey),u=React.useRef(!0),f=React.useRef(l),d=useConstant(()=>new Map),[p,b]=React.useState(l),[y,C]=React.useState(l);useIsomorphicLayoutEffect(()=>{u.current=!1,f.current=l;for(let x=0;x<y.length;x++){const g=getChildKey(y[x]);c.includes(g)?d.delete(g):d.get(g)!==!0&&d.set(g,!1)}},[y,c.length,c.join("-")]);const P=[];if(l!==p){let x=[...l];for(let g=0;g<y.length;g++){const S=y[g],E=getChildKey(S);c.includes(E)||(x.splice(g,0,S),P.push(S))}o==="wait"&&P.length&&(x=P),C(onlyElements(x)),b(l);return}process.env.NODE_ENV!=="production"&&o==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:m}=React.useContext(LayoutGroupContext);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:y.map(x=>{const g=getChildKey(x),S=l===y||c.includes(g),E=()=>{if(d.has(g))d.set(g,!0);else return;let T=!0;d.forEach(L=>{L||(T=!1)}),T&&(m==null||m(),C(f.current),s&&s())};return jsxRuntime.jsx(PresenceChild,{isPresent:S,initial:!u.current||n?void 0:!1,custom:S?void 0:i,presenceAffectsLayout:a,mode:o,onExitComplete:S?void 0:E,children:x},g)})})};function useMotionValue(e){const t=useConstant(()=>motionValue(e)),{isStatic:i}=React.useContext(MotionConfigContext);if(i){const[,n]=React.useState(e);React.useEffect(()=>t.on("change",n),[])}return t}function useCombineMotionValues(e,t){const i=useMotionValue(t()),n=()=>i.set(t());return n(),useIsomorphicLayoutEffect(()=>{const s=()=>frame.preRender(n,!1,!0),a=e.map(o=>o.on("change",s));return()=>{a.forEach(o=>o()),cancelFrame(n)}}),i}const isCustomValueType=e=>e&&typeof e=="object"&&e.mix,getMixer=e=>isCustomValueType(e)?e.mix:void 0;function transform(...e){const t=!Array.isArray(e[0]),i=t?0:-1,n=e[0+i],s=e[1+i],a=e[2+i],o=e[3+i],l=interpolate(s,a,{mixer:getMixer(a[0]),...o});return t?l(n):l}function useComputed(e){collectMotionValues.current=[],e();const t=useCombineMotionValues(collectMotionValues.current,e);return collectMotionValues.current=void 0,t}function useTransform(e,t,i,n){if(typeof e=="function")return useComputed(e);const s=typeof t=="function"?t:transform(t,i,n);return Array.isArray(e)?useListTransform(e,s):useListTransform([e],([a])=>s(a))}function useListTransform(e,t){const i=useConstant(()=>[]);return useCombineMotionValues(e,()=>{i.length=0;const n=e.length;for(let s=0;s<n;s++)i[s]=e[s].get();return t(i)})}function resolveElements(e,t,i){var n;if(typeof e=="string"){let s=document;t&&(invariant(!!t.current,"Scope provided, but no element detected."),s=t.current),i?((n=i[e])!==null&&n!==void 0||(i[e]=s.querySelectorAll(e)),e=i[e]):e=s.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function useUnmountEffect(e){return React.useEffect(()=>()=>e(),[])}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function createVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=isSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function createGeneratorEasing(e,t=100){const i=spring({keyframes:[0,t],...e}),n=Math.min(calcGeneratorDuration(i),maxGeneratorDuration);return{type:"keyframes",ease:s=>i.next(n*s).value/t,duration:millisecondsToSeconds(n)}}function calcNextTime(e,t,i,n){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?i:(s=n.get(t))!==null&&s!==void 0?s:e}const wrap=(e,t,i)=>{const n=t-e;return((i-e)%n+n)%n+e};function getEasingForSegment(e,t){return isEasingArray(e)?e[wrap(0,e.length,t)]:e}function eraseKeyframes(e,t,i){for(let n=0;n<e.length;n++){const s=e[n];s.at>t&&s.at<i&&(removeItem(e,s),n--)}}function addKeyframes(e,t,i,n,s,a){eraseKeyframes(e,s,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:mixNumber$1(s,a,n[o]),easing:getEasingForSegment(i,o)})}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(e,{defaultTransition:t={},...i}={},n){const s=t.duration||.3,a=new Map,o=new Map,l={},c=new Map;let u=0,f=0,d=0;for(let p=0;p<e.length;p++){const b=e[p];if(typeof b=="string"){c.set(b,f);continue}else if(!Array.isArray(b)){c.set(b.name,calcNextTime(f,b.at,u,c));continue}let[y,C,P={}]=b;P.at!==void 0&&(f=calcNextTime(f,P.at,u,c));let m=0;const x=(g,S,E,T=0,L=0)=>{const _=keyframesAsList(g),{delay:k=0,times:$=defaultOffset(_),type:z="keyframes",...O}=S;let{ease:N=t.ease||"easeOut",duration:K}=S;const B=typeof k=="function"?k(T,L):k,A=_.length;if(A<=2&&z==="spring"){let I=100;if(A===2&&isNumberKeyframesArray(_)){const q=_[1]-_[0];I=Math.abs(q)}const j={...O};K!==void 0&&(j.duration=secondsToMilliseconds(K));const W=createGeneratorEasing(j,I);N=W.ease,K=W.duration}K??(K=s);const V=f+B,R=V+K;$.length===1&&$[0]===0&&($[1]=1);const M=$.length-_.length;M>0&&fillOffset($,M),_.length===1&&_.unshift(null),addKeyframes(E,_,N,$,V,R),m=Math.max(B+K,m),d=Math.max(R,d)};if(isMotionValue(y)){const g=getSubjectSequence(y,o);x(C,P,getValueSequence("default",g))}else{const g=resolveElements(y,n,l),S=g.length;for(let E=0;E<S;E++){C=C,P=P;const T=g[E],L=getSubjectSequence(T,o);for(const _ in C)x(C[_],getValueTransition(P,_),getValueSequence(_,L),E,S)}}u=f,f+=m}return o.forEach((p,b)=>{for(const y in p){const C=p[y];C.sort(compareByTime);const P=[],m=[],x=[];for(let S=0;S<C.length;S++){const{at:E,value:T,easing:L}=C[S];P.push(T),m.push(progress(0,d,E)),x.push(L||"easeOut")}m[0]!==0&&(m.unshift(0),P.unshift(P[0]),x.unshift(defaultSegmentEasing)),m[m.length-1]!==1&&(m.push(1),P.push(null)),a.has(b)||a.set(b,{keyframes:{},transition:{}});const g=a.get(b);g.keyframes[y]=P,g.transition[y]={...t,duration:d,ease:x,times:m,...i}}}),a}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e[t]?{...e,...e[t]}:{...e}}const isNumber=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber);function animateElements(e,t,i,n){const s=resolveElements(e,n),a=s.length;invariant(!!a,"No valid element provided.");const o=[];for(let l=0;l<a;l++){const c=s[l];visualElementStore.has(c)||createVisualElement(c);const u=visualElementStore.get(c),f={...i};typeof f.delay=="function"&&(f.delay=f.delay(l,a)),o.push(...animateTarget(u,{...t,transition:f},{}))}return new GroupPlaybackControls(o)}const isSequence=e=>Array.isArray(e)&&Array.isArray(e[0]);function animateSequence(e,t,i){const n=[];return createAnimationsFromSequence(e,t,i).forEach(({keyframes:a,transition:o},l)=>{let c;isMotionValue(l)?c=animateSingleValue(l,a.default,o.default):c=animateElements(l,a,o),n.push(c)}),new GroupPlaybackControls(n)}const createScopedAnimate=e=>{function t(i,n,s){let a;return isSequence(i)?a=animateSequence(i,n,e):isDOMKeyframes(n)?a=animateElements(i,n,s,e):a=animateSingleValue(i,n,s),e&&e.animations.push(a),a}return t};function useAnimate(){const e=useConstant(()=>({current:null,animations:[]})),t=useConstant(()=>createScopedAnimate(e));return useUnmountEffect(()=>{e.animations.forEach(i=>i.stop())}),[e,t]}function getOriginIndex(e,t){if(e==="first")return 0;{const i=t-1;return e==="last"?i:i/2}}function stagger(e=.1,{startDelay:t=0,from:i=0,ease:n}={}){return(s,a)=>{const o=typeof i=="number"?i:getOriginIndex(i,a),l=Math.abs(o-s);let c=e*l;if(n){const u=a*e;c=easingDefinitionToFunction(n)(c/u)*u}return t+c}}const FooterBackgroundAnimation=({isMobile:e,isLogoHovered:t,maskUrl:i})=>{const[n]=React.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[s,a]=React.useState("initial"),o=React.useRef(null),l=React.useRef(null),c=useMotionValue(45),u=useTransform(c,f=>`${f}% center`);return React.useEffect(()=>{if(t)a("visible");else{a("exit");const f=setTimeout(()=>{a("initial")},800);return()=>clearTimeout(f)}},[t]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("video",{ref:o,src:n,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),jsxRuntime.jsx(AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(motion.div,{animate:s,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${i}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:jsxRuntime.jsx("video",{ref:l,src:n,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},ScaleY=({children:e,triggerAnimation:t})=>{const i={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:cubicBezier(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return jsxRuntime.jsx(motion.div,{animate:t?"animation":"idle",variants:i,style:{transformOrigin:"bottom"},children:e})},Shine=({children:e})=>jsxRuntime.jsx(motion.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),RollingText=React.forwardRef(({value:e,isHovered:t,className:i,delay:n},s)=>{const a=e.split(""),[o,l]=useAnimate(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:n?stagger(.014,{startDelay:n}):stagger(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:n?stagger(.014,{startDelay:n}):stagger(.014),ease:[.76,0,.24,1]}]])};return React.useImperativeHandle(s,()=>({startAnimation:c,stopAnimation:u})),React.useEffect(()=>{t?c():u()},[t]),React.useEffect(()=>{const f=()=>{t||c()},d=()=>{t||u()},p=o.current;if(p)return p.addEventListener("mouseenter",f),p.addEventListener("mouseleave",d),()=>{p.removeEventListener("mouseenter",f),p.removeEventListener("mouseleave",d)}},[o,t]),jsxRuntime.jsx("div",{ref:o,children:jsxRuntime.jsx("span",{className:cn("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",i),children:a.map((f,d)=>jsxRuntime.jsx("span",{"data-letter":f,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:f},`${f}-${d}`))})})});RollingText.displayName="RollingText";const FooterLinks=({title:e,links:t,hoveredIndex:i,onHover:n,className:s="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:a="gf-flex gf-flex-col gf-gap-1",isRoutes:o=!1})=>jsxRuntime.jsxs("div",{className:s,children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:jsxRuntime.jsx("span",{children:e})}),jsxRuntime.jsx("ul",{className:a,children:Object.values(t).map((l,c)=>l.link&&jsxRuntime.jsx("li",{className:o?"gf-w-fit":"",onMouseEnter:()=>{n==null||n(c)},onMouseLeave:()=>{n==null||n(null)},children:jsxRuntime.jsxs(Typography,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${o?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&jsxRuntime.jsx(RollingText,{value:l.inputAsset||"",isHovered:i===c}),o&&l.inputChain&&jsxRuntime.jsx(RollingText,{delay:.1,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:i===c}),jsxRuntime.jsx(RollingText,{delay:.15,value:l.title,isHovered:i===c}),o&&l.chain&&jsxRuntime.jsx(RollingText,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:i===c})]})},c))})]}),MaskURL="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Footer=({className:e,network:t="mainnet",maskUrl:i=MaskURL,...n})=>{const[s,a]=React.useState(!1),[o,l]=React.useState(null),c=useClientOnly(),u=React.useRef(null);React.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const f=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",d="https://garden.finance",p={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${f}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${f}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${f}/stake`,isExternal:!0},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0}},Resources:{blog:{title:"Blog",link:`${d}/blog`,isExternal:!0},routes:{title:"Routes",link:`${d}/routes`,isExternal:!0},faq:{title:"FAQs",link:`${d}/faq`,isExternal:!0},brandKit:{title:"Brand kit",link:`${d}/brand-kit`,isExternal:!0},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0},Audits:{title:"Audits",link:"https://github.com/gardenfi/audits",isExternal:!0},Governance:{title:"Governance",link:"https://docs.garden.finance/home/governance",isExternal:!0}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0},security:{title:"Security",link:`${d}/security`,isExternal:!0}}},b={btcToSol:{title:"BTC to SOL",link:d+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:d+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:d+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:d+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:d+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBTC",link:d+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:d+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToWbtcUni:{title:"BTC to WBTC",link:d+"/routes/bridge-btc-to-wbtc-unichain",chain:"Unichain",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:d+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},btcToMon:{title:"BTC to MON",link:d+"/routes/bridge-btc-to-mon",chain:"Monad",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBTC",link:d+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBTC",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:d+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",isExternal:!0},btcToUsdtEthereum:{title:" to USDT",link:d+"/routes/bridge-btc-to-usdt-ethereum",inputAsset:"BTC",chain:"Ethereum",isExternal:!0},btcToUsdcSolana:{title:" to USDC",link:d+"/routes/bridge-btc-to-usdc-solana",inputAsset:"BTC",chain:"Solana",isExternal:!0},usdcEthereumToBtc:{title:" to BTC",link:d+"/routes/bridge-usdc-ethereum-to-btc",inputAsset:"USDC",inputChain:"Ethereum",isExternal:!0},solToBtc:{title:" to BTC",link:d+"/routes/bridge-sol-to-btc",inputAsset:"SOL",inputChain:"Solana",isExternal:!0},usdcEthereumToUsdcBase:{title:" to USDC",link:d+"/routes/bridge-usdc-ethereum-to-usdc-base",inputAsset:"USDC",inputChain:"Ethereum",chain:"Base",isExternal:!0}},y={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/gardenfi"},{Products:C,Resources:P,Developers:m}=p;return jsxRuntime.jsxs("footer",{className:cn("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,s?"gf-text-white":"gf-text-dark-grey"),...n,children:[jsxRuntime.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[jsxRuntime.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[jsxRuntime.jsx(GardenIcon,{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{a(!0)},300)},onMouseLeave:()=>{u.current&&(clearTimeout(u.current),u.current=null),a(!1)},className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:x=>x.preventDefault()}),jsxRuntime.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[jsxRuntime.jsx(XIcon,{onClick:()=>{c&&window.open(y.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),jsxRuntime.jsx(DiscordIcon,{onClick:()=>{c&&window.open(y.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[jsxRuntime.jsx("div",{className:"gf-w-full md:gf-hidden",children:jsxRuntime.jsx(FooterLinks,{title:"Resources",links:P,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),jsxRuntime.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:jsxRuntime.jsx(FooterLinks,{title:"Routes",links:b,hoveredIndex:o,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[jsxRuntime.jsx(FooterLinks,{title:"Products",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),jsxRuntime.jsx(FooterLinks,{title:"Developers",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),jsxRuntime.jsx("div",{className:"gf-hidden md:gf-flex",children:jsxRuntime.jsx(FooterLinks,{title:"Resources",links:P,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),jsxRuntime.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[jsxRuntime.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${s?"gf-bg-white":"gf-bg-dark-grey"}`}),jsxRuntime.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[jsxRuntime.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:jsxRuntime.jsxs(Typography,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[jsxRuntime.jsx(CopyrightsIcon,{}),jsxRuntime.jsx("span",{children:"Garden"}),jsxRuntime.jsx("span",{children:"2025"})]})}),jsxRuntime.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[jsxRuntime.jsx(Typography,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/privacy.pdf",target:"_blank",children:"Privacy Policy"}),jsxRuntime.jsx(Typography,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),jsxRuntime.jsx(FooterBackgroundAnimation,{isMobile:!1,isLogoHovered:s,maskUrl:i})]})};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var build={exports:{}};(()=>{var e={181:(s,a,o)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,p=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,b=typeof self=="object"&&self&&self.Object===Object&&self,y=p||b||Function("return this")(),C=Object.prototype.toString,P=Math.max,m=Math.min,x=function(){return y.Date.now()};function g(E){var T=typeof E;return!!E&&(T=="object"||T=="function")}function S(E){if(typeof E=="number")return E;if(function(_){return typeof _=="symbol"||function(k){return!!k&&typeof k=="object"}(_)&&C.call(_)=="[object Symbol]"}(E))return NaN;if(g(E)){var T=typeof E.valueOf=="function"?E.valueOf():E;E=g(T)?T+"":T}if(typeof E!="string")return E===0?E:+E;E=E.replace(l,"");var L=u.test(E);return L||f.test(E)?d(E.slice(2),L?2:8):c.test(E)?NaN:+E}s.exports=function(E,T,L){var _,k,$,z,O,N,K=0,B=!1,A=!1,V=!0;if(typeof E!="function")throw new TypeError("Expected a function");function R(q){var X=_,ee=k;return _=k=void 0,K=q,z=E.apply(ee,X)}function M(q){var X=q-N;return N===void 0||X>=T||X<0||A&&q-K>=$}function I(){var q=x();if(M(q))return j(q);O=setTimeout(I,function(X){var ee=T-(X-N);return A?m(ee,$-(X-K)):ee}(q))}function j(q){return O=void 0,V&&_?R(q):(_=k=void 0,z)}function W(){var q=x(),X=M(q);if(_=arguments,k=this,N=q,X){if(O===void 0)return function(ee){return K=ee,O=setTimeout(I,T),B?R(ee):z}(N);if(A)return O=setTimeout(I,T),R(N)}return O===void 0&&(O=setTimeout(I,T)),z}return T=S(T)||0,g(L)&&(B=!!L.leading,$=(A="maxWait"in L)?P(S(L.maxWait)||0,T):$,V="trailing"in L?!!L.trailing:V),W.cancel=function(){O!==void 0&&clearTimeout(O),K=0,_=N=k=O=void 0},W.flush=function(){return O===void 0?z:j(x())},W}},858:(s,a,o)=>{var l="Expected a function",c=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt,C=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g,P=typeof self=="object"&&self&&self.Object===Object&&self,m=C||P||Function("return this")(),x=Object.prototype.toString,g=Math.max,S=Math.min,E=function(){return m.Date.now()};function T(_){var k=typeof _;return!!_&&(k=="object"||k=="function")}function L(_){if(typeof _=="number")return _;if(function(z){return typeof z=="symbol"||function(O){return!!O&&typeof O=="object"}(z)&&x.call(z)==u}(_))return c;if(T(_)){var k=typeof _.valueOf=="function"?_.valueOf():_;_=T(k)?k+"":k}if(typeof _!="string")return _===0?_:+_;_=_.replace(f,"");var $=p.test(_);return $||b.test(_)?y(_.slice(2),$?2:8):d.test(_)?c:+_}s.exports=function(_,k,$){var z=!0,O=!0;if(typeof _!="function")throw new TypeError(l);return T($)&&(z="leading"in $?!!$.leading:z,O="trailing"in $?!!$.trailing:O),function(N,K,B){var A,V,R,M,I,j,W=0,q=!1,X=!1,ee=!0;if(typeof N!="function")throw new TypeError(l);function re(se){var fe=A,ie=V;return A=V=void 0,W=se,M=N.apply(ie,fe)}function ce(se){var fe=se-j;return j===void 0||fe>=K||fe<0||X&&se-W>=R}function he(){var se=E();if(ce(se))return me(se);I=setTimeout(he,function(fe){var ie=K-(fe-j);return X?S(ie,R-(fe-W)):ie}(se))}function me(se){return I=void 0,ee&&A?re(se):(A=V=void 0,M)}function pe(){var se=E(),fe=ce(se);if(A=arguments,V=this,j=se,fe){if(I===void 0)return function(ie){return W=ie,I=setTimeout(he,K),q?re(ie):M}(j);if(X)return I=setTimeout(he,K),re(j)}return I===void 0&&(I=setTimeout(he,K)),M}return K=L(K)||0,T(B)&&(q=!!B.leading,R=(X="maxWait"in B)?g(L(B.maxWait)||0,K):R,ee="trailing"in B?!!B.trailing:ee),pe.cancel=function(){I!==void 0&&clearTimeout(I),W=0,A=j=V=I=void 0},pe.flush=function(){return I===void 0?M:me(E())},pe}(_,k,{leading:z,maxWait:k,trailing:O})}},694:(s,a,o)=>{var l=o(925);function c(){}function u(){}u.resetWarningCache=c,s.exports=function(){function f(b,y,C,P,m,x){if(x!==l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function d(){return f}f.isRequired=f;var p={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:d,element:f,elementType:f,instanceOf:d,node:f,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:c};return p.PropTypes=p,p}},556:(s,a,o)=>{s.exports=o(694)()},925:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function i(s){var a=t[s];if(a!==void 0)return a.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return i.d(a,{a}),a},i.d=(s,a)=>{for(var o in a)i.o(a,o)&&!i.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:a[o]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var n={};(()=>{i.r(n),i.d(n,{LazyLoadComponent:()=>Ce,LazyLoadImage:()=>He,trackWindowScroll:()=>q});const s=React;var a=i.n(s),o=i(556);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(U){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},c(U)}function u(U,F){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(U);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(U,D).enumerable})),G.push.apply(G,H)}return G}function f(U,F,G){return(F=p(F))in U?Object.defineProperty(U,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[F]=G,U}function d(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,p(H.key),H)}}function p(U){var F=function(G,H){if(c(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(c(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return c(F)=="symbol"?F:F+""}function b(U,F,G){return F=C(F),function(H,D){if(D&&(c(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,y()?Reflect.construct(F,G||[],C(U).constructor):F.apply(U,G))}function y(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y=function(){return!!U})()}function C(U){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},C(U)}function P(U,F){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},P(U,F)}var m=function(U){U.forEach(function(F){F.isIntersecting&&F.target.onVisible()})},x={},g=function(U){function F(D){var Z;if(function(Q,te){if(!(Q instanceof te))throw new TypeError("Cannot call a class as a function")}(this,F),(Z=b(this,F,[D])).supportsObserver=!D.scrollPosition&&D.useIntersectionObserver&&l(),Z.supportsObserver){var J=D.threshold;Z.observer=function(Q){return x[Q]=x[Q]||new IntersectionObserver(m,{rootMargin:Q+"px"}),x[Q]}(J)}return Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&P(D,Z)}(F,U),G=F,H=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,Z=this.placeholder.getBoundingClientRect(),J=this.placeholder.style,Q=parseInt(J.getPropertyValue("margin-left"),10)||0,te=parseInt(J.getPropertyValue("margin-top"),10)||0;return{bottom:D.y+Z.bottom+te,left:D.x+Z.left+Q,right:D.x+Z.right+Q,top:D.y+Z.top+te}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var D=this.props,Z=D.scrollPosition,J=D.threshold,Q=this.getPlaceholderBoundingBox(Z),te=Z.y+window.innerHeight,ne=Z.x,le=Z.x+window.innerWidth,ae=Z.y;return ae-J<=Q.bottom&&te+J>=Q.top&&ne-J<=Q.right&&le+J>=Q.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var D=this,Z=this.props,J=Z.className,Q=Z.height,te=Z.placeholder,ne=Z.style,le=Z.width;if(te&&typeof te.type!="function")return a().cloneElement(te,{ref:function(oe){return D.placeholder=oe}});var ae=function(oe){for(var de=1;de<arguments.length;de++){var ue=arguments[de]!=null?arguments[de]:{};de%2?u(Object(ue),!0).forEach(function(ge){f(oe,ge,ue[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(oe,Object.getOwnPropertyDescriptors(ue)):u(Object(ue)).forEach(function(ge){Object.defineProperty(oe,ge,Object.getOwnPropertyDescriptor(ue,ge))})}return oe}({display:"inline-block"},ne);return le!==void 0&&(ae.width=le),Q!==void 0&&(ae.height=Q),a().createElement("span",{className:J,ref:function(oe){return D.placeholder=oe},style:ae},te)}}],H&&d(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);g.propTypes={onVisible:o.PropTypes.func.isRequired,className:o.PropTypes.string,height:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),placeholder:o.PropTypes.element,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,scrollPosition:o.PropTypes.shape({x:o.PropTypes.number.isRequired,y:o.PropTypes.number.isRequired}),width:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string])},g.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const S=g;var E=i(181),T=i.n(E),L=i(858),_=i.n(L),k=function(U){var F=getComputedStyle(U,null);return F.getPropertyValue("overflow")+F.getPropertyValue("overflow-y")+F.getPropertyValue("overflow-x")};const $=function(U){if(!(U instanceof HTMLElement))return window;for(var F=U;F&&F instanceof HTMLElement;){if(/(scroll|auto)/.test(k(F)))return F;F=F.parentNode}return window};function z(U){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},z(U)}var O=["delayMethod","delayTime"];function N(){return N=Object.assign?Object.assign.bind():function(U){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var H in G)({}).hasOwnProperty.call(G,H)&&(U[H]=G[H])}return U},N.apply(null,arguments)}function K(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,B(H.key),H)}}function B(U){var F=function(G,H){if(z(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(z(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return z(F)=="symbol"?F:F+""}function A(U,F,G){return F=M(F),V(U,R()?Reflect.construct(F,G||[],M(U).constructor):F.apply(U,G))}function V(U,F){if(F&&(z(F)=="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(U)}function R(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R=function(){return!!U})()}function M(U){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},M(U)}function I(U,F){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},I(U,F)}var j=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},W=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const q=function(U){var F=function(G){function H(J){var Q;if(function(ne,le){if(!(ne instanceof le))throw new TypeError("Cannot call a class as a function")}(this,H),(Q=A(this,H,[J])).useIntersectionObserver=J.useIntersectionObserver&&l(),Q.useIntersectionObserver)return V(Q);var te=Q.onChangeScroll.bind(Q);return J.delayMethod==="debounce"?Q.delayedScroll=T()(te,J.delayTime):J.delayMethod==="throttle"&&(Q.delayedScroll=_()(te,J.delayTime)),Q.state={scrollPosition:{x:j(),y:W()}},Q.baseComponentRef=a().createRef(),Q}return function(J,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Q&&I(J,Q)}(H,G),D=H,Z=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||$(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=$(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:j(),y:W()}})}},{key:"render",value:function(){var J=this.props,Q=(J.delayMethod,J.delayTime,function(ne,le){if(ne==null)return{};var ae,oe,de=function(ge,Ie){if(ge==null)return{};var Be={};for(var Oe in ge)if({}.hasOwnProperty.call(ge,Oe)){if(Ie.indexOf(Oe)>=0)continue;Be[Oe]=ge[Oe]}return Be}(ne,le);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(ne);for(oe=0;oe<ue.length;oe++)ae=ue[oe],le.indexOf(ae)>=0||{}.propertyIsEnumerable.call(ne,ae)&&(de[ae]=ne[ae])}return de}(J,O)),te=this.useIntersectionObserver?null:this.state.scrollPosition;return a().createElement(U,N({forwardRef:this.baseComponentRef,scrollPosition:te},Q))}}],Z&&K(D.prototype,Z),Object.defineProperty(D,"prototype",{writable:!1}),D;var D,Z}(a().Component);return F.propTypes={delayMethod:o.PropTypes.oneOf(["debounce","throttle"]),delayTime:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool},F.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},F};function X(U){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},X(U)}function ee(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,re(H.key),H)}}function re(U){var F=function(G,H){if(X(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(X(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return X(F)=="symbol"?F:F+""}function ce(U,F,G){return F=me(F),function(H,D){if(D&&(X(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,he()?Reflect.construct(F,G||[],me(U).constructor):F.apply(U,G))}function he(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(he=function(){return!!U})()}function me(U){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},me(U)}function pe(U,F){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},pe(U,F)}var se=function(U){function F(D){return function(Z,J){if(!(Z instanceof J))throw new TypeError("Cannot call a class as a function")}(this,F),ce(this,F,[D])}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&pe(D,Z)}(F,U),G=F,(H=[{key:"render",value:function(){return a().createElement(S,this.props)}}])&&ee(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);const fe=q(se);function ie(U){return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},ie(U)}function Y(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,Ee(H.key),H)}}function Ee(U){var F=function(G,H){if(ie(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(ie(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return ie(F)=="symbol"?F:F+""}function Le(U,F,G){return F=ye(F),function(H,D){if(D&&(ie(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,be()?Reflect.construct(F,G||[],ye(U).constructor):F.apply(U,G))}function be(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(be=function(){return!!U})()}function ye(U){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},ye(U)}function Pe(U,F){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},Pe(U,F)}var ve=function(U){function F(D){var Z;(function(le,ae){if(!(le instanceof ae))throw new TypeError("Cannot call a class as a function")})(this,F),Z=Le(this,F,[D]);var J=D.afterLoad,Q=D.beforeLoad,te=D.scrollPosition,ne=D.visibleByDefault;return Z.state={visible:ne},ne&&(Q(),J()),Z.onVisible=Z.onVisible.bind(Z),Z.isScrollTracked=!!(te&&Number.isFinite(te.x)&&te.x>=0&&Number.isFinite(te.y)&&te.y>=0),Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&Pe(D,Z)}(F,U),G=F,(H=[{key:"componentDidUpdate",value:function(D,Z){Z.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var D=this.props,Z=D.className,J=D.delayMethod,Q=D.delayTime,te=D.height,ne=D.placeholder,le=D.scrollPosition,ae=D.style,oe=D.threshold,de=D.useIntersectionObserver,ue=D.width;return this.isScrollTracked||de&&l()?a().createElement(S,{className:Z,height:te,onVisible:this.onVisible,placeholder:ne,scrollPosition:le,style:ae,threshold:oe,useIntersectionObserver:de,width:ue}):a().createElement(fe,{className:Z,delayMethod:J,delayTime:Q,height:te,onVisible:this.onVisible,placeholder:ne,style:ae,threshold:oe,width:ue})}}])&&Y(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);ve.propTypes={afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool},ve.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Ce=ve;function xe(U){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},xe(U)}var we=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Se(U,F){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(U);F&&(H=H.filter(function(D){return Object.getOwnPropertyDescriptor(U,D).enumerable})),G.push.apply(G,H)}return G}function Me(U){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?Se(Object(G),!0).forEach(function(H){Re(U,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(G)):Se(Object(G)).forEach(function(H){Object.defineProperty(U,H,Object.getOwnPropertyDescriptor(G,H))})}return U}function Re(U,F,G){return(F=Ve(F))in U?Object.defineProperty(U,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[F]=G,U}function Te(){return Te=Object.assign?Object.assign.bind():function(U){for(var F=1;F<arguments.length;F++){var G=arguments[F];for(var H in G)({}).hasOwnProperty.call(G,H)&&(U[H]=G[H])}return U},Te.apply(null,arguments)}function _e(U,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(U,Ve(H.key),H)}}function Ve(U){var F=function(G,H){if(xe(G)!="object"||!G)return G;var D=G[Symbol.toPrimitive];if(D!==void 0){var Z=D.call(G,"string");if(xe(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(G)}(U);return xe(F)=="symbol"?F:F+""}function je(U,F,G){return F=Ae(F),function(H,D){if(D&&(xe(D)=="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}(H)}(U,De()?Reflect.construct(F,G||[],Ae(U).constructor):F.apply(U,G))}function De(){try{var U=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(De=function(){return!!U})()}function Ae(U){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},Ae(U)}function ke(U,F){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,H){return G.__proto__=H,G},ke(U,F)}var Fe=function(U){function F(D){var Z;return function(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,F),(Z=je(this,F,[D])).state={loaded:!1},Z}return function(D,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(Z&&Z.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),Z&&ke(D,Z)}(F,U),G=F,H=[{key:"onImageLoad",value:function(){var D=this;return this.state.loaded?null:function(Z){D.props.onLoad(Z),D.props.afterLoad(),D.setState({loaded:!0})}}},{key:"getImg",value:function(){var D=this.props,Z=(D.afterLoad,D.beforeLoad,D.delayMethod,D.delayTime,D.effect,D.placeholder,D.placeholderSrc,D.scrollPosition,D.threshold,D.useIntersectionObserver,D.visibleByDefault,D.wrapperClassName,D.wrapperProps,function(J,Q){if(J==null)return{};var te,ne,le=function(oe,de){if(oe==null)return{};var ue={};for(var ge in oe)if({}.hasOwnProperty.call(oe,ge)){if(de.indexOf(ge)>=0)continue;ue[ge]=oe[ge]}return ue}(J,Q);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(J);for(ne=0;ne<ae.length;ne++)te=ae[ne],Q.indexOf(te)>=0||{}.propertyIsEnumerable.call(J,te)&&(le[te]=J[te])}return le}(D,we));return a().createElement("img",Te({},Z,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var D=this.props,Z=D.beforeLoad,J=D.className,Q=D.delayMethod,te=D.delayTime,ne=D.height,le=D.placeholder,ae=D.scrollPosition,oe=D.style,de=D.threshold,ue=D.useIntersectionObserver,ge=D.visibleByDefault,Ie=D.width;return a().createElement(Ce,{beforeLoad:Z,className:J,delayMethod:Q,delayTime:te,height:ne,placeholder:le,scrollPosition:ae,style:oe,threshold:de,useIntersectionObserver:ue,visibleByDefault:ge,width:Ie},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(D){var Z=this.props,J=Z.effect,Q=Z.height,te=Z.placeholderSrc,ne=Z.width,le=Z.wrapperClassName,ae=Z.wrapperProps,oe=this.state.loaded,de=oe?" lazy-load-image-loaded":"",ue=oe||!te?{}:{backgroundImage:"url(".concat(te,")"),backgroundSize:"100% 100%"};return a().createElement("span",Te({className:le+" lazy-load-image-background "+J+de,style:Me(Me({},ue),{},{color:"transparent",display:"inline-block",height:Q,width:ne})},ae),D)}},{key:"render",value:function(){var D=this.props,Z=D.effect,J=D.placeholderSrc,Q=D.visibleByDefault,te=D.wrapperClassName,ne=D.wrapperProps,le=this.getLazyLoadImage();return(Z||J)&&!Q||te||ne?this.getWrappedLazyLoadImage(le):le}}],H&&_e(G.prototype,H),Object.defineProperty(G,"prototype",{writable:!1}),G;var G,H}(a().Component);Fe.propTypes={onLoad:o.PropTypes.func,afterLoad:o.PropTypes.func,beforeLoad:o.PropTypes.func,delayMethod:o.PropTypes.string,delayTime:o.PropTypes.number,effect:o.PropTypes.string,placeholderSrc:o.PropTypes.string,threshold:o.PropTypes.number,useIntersectionObserver:o.PropTypes.bool,visibleByDefault:o.PropTypes.bool,wrapperClassName:o.PropTypes.string,wrapperProps:o.PropTypes.object},Fe.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const He=Fe})(),build.exports=n})();var buildExports=build.exports;const placeholderUrl="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",BlogCard=({thumbnail:e,category:t,date:i,title:n,className:s,thumbnailClassName:a})=>{const[o,l]=React.useState(!1),[c,u]=React.useState(e??placeholderUrl);React.useEffect(()=>{u(e??placeholderUrl)},[e]);const f=()=>{u(placeholderUrl)};return jsxRuntime.jsx(Opacity,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:jsxRuntime.jsxs("div",{className:cn(s,"gf-overflow-hidden gf-rounded-2xl"),children:[jsxRuntime.jsx("div",{className:cn(a,`${o?"":"gf-filter gf-blur-md"}`),children:jsxRuntime.jsx(buildExports.LazyLoadImage,{alt:n,effect:"blur",src:c,onLoad:()=>l(!0),onError:f})}),jsxRuntime.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[jsxRuntime.jsx(Typography,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),jsxRuntime.jsx(Typography,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:i})]}),jsxRuntime.jsx(Typography,{size:"h3",weight:"bold",children:n})]})]})})},questCardStyles=cva(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),QuestCard=({variant:e,title:t,description:i,chipContent:n,logo:s})=>jsxRuntime.jsxs("div",{className:cn(questCardStyles({variant:e})),children:[jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[jsxRuntime.jsxs(Chip,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[jsxRuntime.jsx(Chip.Logo,{children:s}),t,jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]}),e==="default"?jsxRuntime.jsx(OpenInFullIcon,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):jsxRuntime.jsx(LockIcon,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),jsxRuntime.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:jsxRuntime.jsx(Typography,{size:"h3",weight:"medium",children:i})}),jsxRuntime.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[jsxRuntime.jsxs(Chip,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",children:"Quest Access"}),jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]}),jsxRuntime.jsxs(Chip,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[jsxRuntime.jsx(Typography,{size:"h4",weight:"medium",children:n}),jsxRuntime.jsx(Chip.CheckBox,{checked:!1})]})]})]});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,n=e.length,s;for(i=0;i<n;i+=1){s=e[i].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].pause()},resume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].resume()},setRate:function(i){var n,s=this.audios.length;for(n=0;n<s;n+=1)this.audios[n].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,n){var s=0,a=[],o;switch(i){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(s=0;s<n;s+=1)a.push(o);return a}function t(i,n){return i==="float32"?new Float32Array(n):i==="int16"?new Int16Array(n):i==="uint8c"?new Uint8ClampedArray(n):e(i,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(i){return typeof i}:_typeof$6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var i=createSizedArray(e.length),n,s=e.length;for(n=0;n<s;n+=1)i[n]=Math.abs(e[n]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,n){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,n){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,i){var n,s,a,o,l,c,u,f;switch(o=Math.floor(e*6),l=e*6-o,c=i*(1-t),u=i*(1-l*t),f=i*(1-(1-l)*t),o%6){case 0:n=i,s=f,a=c;break;case 1:n=u,s=i,a=c;break;case 2:n=c,s=i,a=f;break;case 3:n=c,s=u,a=i;break;case 4:n=f,s=c,a=i;break;case 5:n=i,s=c,a=u;break}return[n,s,a]}function RGBtoHSV(e,t,i){var n=Math.max(e,t,i),s=Math.min(e,t,i),a=n-s,o,l=n===0?0:a/n,c=n/255;switch(n){case s:o=0;break;case e:o=t-i+a*(t<i?6:0),o/=6*a;break;case t:o=i-e+a*2,o/=6*a;break;case i:o=e-t+a*4,o/=6*a;break}return[o,l,c]}function addSaturationToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],t,i;for(t=0;t<256;t+=1)i=t.toString(16),e[t]=i.length===1?"0"+i:i;return function(n,s,a){return n<0&&(n=0),s<0&&(s=0),a<0&&(a=0),"#"+e[n]+e[s]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(i){return typeof i}:_typeof$5=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(e)}var dataManager=function(){var e=1,t=[],i,n,s={onmessage:function(){},postMessage:function(b){i({data:b})}},a={postMessage:function(b){s.onmessage({data:b})}};function o(p){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),y=URL.createObjectURL(b);return new Worker(y)}return i=p,s}function l(){n||(n=o(function(b){function y(){function P(B,A){var V,R,M=B.length,I,j,W,q;for(R=0;R<M;R+=1)if(V=B[R],"ks"in V&&!V.completed){if(V.completed=!0,V.hasMask){var X=V.masksProperties;for(j=X.length,I=0;I<j;I+=1)if(X[I].pt.k.i)E(X[I].pt.k);else for(q=X[I].pt.k.length,W=0;W<q;W+=1)X[I].pt.k[W].s&&E(X[I].pt.k[W].s[0]),X[I].pt.k[W].e&&E(X[I].pt.k[W].e[0])}V.ty===0?(V.layers=g(V.refId,A),P(V.layers,A)):V.ty===4?S(V.shapes):V.ty===5&&N(V)}}function m(B,A){if(B){var V=0,R=B.length;for(V=0;V<R;V+=1)B[V].t===1&&(B[V].data.layers=g(B[V].data.refId,A),P(B[V].data.layers,A))}}function x(B,A){for(var V=0,R=A.length;V<R;){if(A[V].id===B)return A[V];V+=1}return null}function g(B,A){var V=x(B,A);return V?V.layers.__used?JSON.parse(JSON.stringify(V.layers)):(V.layers.__used=!0,V.layers):null}function S(B){var A,V=B.length,R,M;for(A=V-1;A>=0;A-=1)if(B[A].ty==="sh")if(B[A].ks.k.i)E(B[A].ks.k);else for(M=B[A].ks.k.length,R=0;R<M;R+=1)B[A].ks.k[R].s&&E(B[A].ks.k[R].s[0]),B[A].ks.k[R].e&&E(B[A].ks.k[R].e[0]);else B[A].ty==="gr"&&S(B[A].it)}function E(B){var A,V=B.i.length;for(A=0;A<V;A+=1)B.i[A][0]+=B.v[A][0],B.i[A][1]+=B.v[A][1],B.o[A][0]+=B.v[A][0],B.o[A][1]+=B.v[A][1]}function T(B,A){var V=A?A.split("."):[100,100,100];return B[0]>V[0]?!0:V[0]>B[0]?!1:B[1]>V[1]?!0:V[1]>B[1]?!1:B[2]>V[2]?!0:V[2]>B[2]?!1:null}var L=function(){var B=[4,4,14];function A(R){var M=R.t.d;R.t.d={k:[{s:M,t:0}]}}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===5&&A(R[M])}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),_=function(){var B=[4,7,99];return function(A){if(A.chars&&!T(B,A.v)){var V,R=A.chars.length;for(V=0;V<R;V+=1){var M=A.chars[V];M.data&&M.data.shapes&&(S(M.data.shapes),M.data.ip=0,M.data.op=99999,M.data.st=0,M.data.sr=1,M.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},A.chars[V].t||(M.data.shapes.push({ty:"no"}),M.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),k=function(){var B=[5,7,15];function A(R){var M=R.t.p;typeof M.a=="number"&&(M.a={a:0,k:M.a}),typeof M.p=="number"&&(M.p={a:0,k:M.p}),typeof M.r=="number"&&(M.r={a:0,k:M.r})}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===5&&A(R[M])}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),$=function(){var B=[4,1,9];function A(R){var M,I=R.length,j,W;for(M=0;M<I;M+=1)if(R[M].ty==="gr")A(R[M].it);else if(R[M].ty==="fl"||R[M].ty==="st")if(R[M].c.k&&R[M].c.k[0].i)for(W=R[M].c.k.length,j=0;j<W;j+=1)R[M].c.k[j].s&&(R[M].c.k[j].s[0]/=255,R[M].c.k[j].s[1]/=255,R[M].c.k[j].s[2]/=255,R[M].c.k[j].s[3]/=255),R[M].c.k[j].e&&(R[M].c.k[j].e[0]/=255,R[M].c.k[j].e[1]/=255,R[M].c.k[j].e[2]/=255,R[M].c.k[j].e[3]/=255);else R[M].c.k[0]/=255,R[M].c.k[1]/=255,R[M].c.k[2]/=255,R[M].c.k[3]/=255}function V(R){var M,I=R.length;for(M=0;M<I;M+=1)R[M].ty===4&&A(R[M].shapes)}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}(),z=function(){var B=[4,4,18];function A(R){var M,I=R.length,j,W;for(M=I-1;M>=0;M-=1)if(R[M].ty==="sh")if(R[M].ks.k.i)R[M].ks.k.c=R[M].closed;else for(W=R[M].ks.k.length,j=0;j<W;j+=1)R[M].ks.k[j].s&&(R[M].ks.k[j].s[0].c=R[M].closed),R[M].ks.k[j].e&&(R[M].ks.k[j].e[0].c=R[M].closed);else R[M].ty==="gr"&&A(R[M].it)}function V(R){var M,I,j=R.length,W,q,X,ee;for(I=0;I<j;I+=1){if(M=R[I],M.hasMask){var re=M.masksProperties;for(q=re.length,W=0;W<q;W+=1)if(re[W].pt.k.i)re[W].pt.k.c=re[W].cl;else for(ee=re[W].pt.k.length,X=0;X<ee;X+=1)re[W].pt.k[X].s&&(re[W].pt.k[X].s[0].c=re[W].cl),re[W].pt.k[X].e&&(re[W].pt.k[X].e[0].c=re[W].cl)}M.ty===4&&A(M.shapes)}}return function(R){if(T(B,R.v)&&(V(R.layers),R.assets)){var M,I=R.assets.length;for(M=0;M<I;M+=1)R.assets[M].layers&&V(R.assets[M].layers)}}}();function O(B){B.__complete||($(B),L(B),_(B),k(B),z(B),P(B.layers,B.assets),m(B.chars,B.assets),B.__complete=!0)}function N(B){B.t.a.length===0&&"m"in B.t.p}var K={};return K.completeData=O,K.checkColors=$,K.checkChars=_,K.checkPathProperties=k,K.checkShapes=z,K.completeLayers=P,K}if(a.dataManager||(a.dataManager=y()),a.assetLoader||(a.assetLoader=function(){function P(x){var g=x.getResponseHeader("content-type");return g&&x.responseType==="json"&&g.indexOf("json")!==-1||x.response&&_typeof$5(x.response)==="object"?x.response:x.response&&typeof x.response=="string"?JSON.parse(x.response):x.responseText?JSON.parse(x.responseText):null}function m(x,g,S,E){var T,L=new XMLHttpRequest;try{L.responseType="json"}catch{}L.onreadystatechange=function(){if(L.readyState===4)if(L.status===200)T=P(L),S(T);else try{T=P(L),S(T)}catch(_){E&&E(_)}};try{L.open(["G","E","T"].join(""),x,!0)}catch{L.open(["G","E","T"].join(""),g+"/"+x,!0)}L.send()}return{load:m}}()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(P){a.dataManager.completeData(P),a.postMessage({id:b.data.id,payload:P,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var C=b.data.animation;a.dataManager.completeData(C),a.postMessage({id:b.data.id,payload:C,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(P){a.postMessage({id:b.data.id,payload:P,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),n.onmessage=function(p){var b=p.data,y=b.id,C=t[y];t[y]=null,b.status==="success"?C.onComplete(b.payload):C.onError&&C.onError()})}function c(p,b){e+=1;var y="processId_"+e;return t[y]={onComplete:p,onError:b},y}function u(p,b,y){l();var C=c(b,y);n.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:C})}function f(p,b,y){l();var C=c(b,y);n.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:C})}function d(p,b,y){l();var C=c(b,y);n.postMessage({type:"complete",animation:p,id:C})}return{loadAnimation:u,loadData:f,completeAnimation:d}}(),ImagePreloader=function(){var e=function(){var m=createTag("canvas");m.width=1,m.height=1;var x=m.getContext("2d");return x.fillStyle="rgba(0,0,0,0)",x.fillRect(0,0,1,1),m}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(m,x,g){var S="";if(m.e)S=m.p;else if(x){var E=m.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),S=x+E}else S=g,S+=m.u?m.u:"",S+=m.p;return S}function s(m){var x=0,g=setInterval((function(){var S=m.getBBox();(S.width||x>500)&&(this._imageLoaded(),clearInterval(g)),x+=1}).bind(this),50)}function a(m){var x=n(m,this.assetsPath,this.path),g=createNS("image");isSafari?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",x),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var S={img:g,assetData:m};return S}function o(m){var x=n(m,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),g.src=x;var S={img:g,assetData:m};return S}function l(m){var x={assetData:m},g=n(m,this.assetsPath,this.path);return dataManager.loadData(g,(function(S){x.img=S,this._footageLoaded()}).bind(this),(function(){x.img={},this._footageLoaded()}).bind(this)),x}function c(m,x){this.imagesLoadedCb=x;var g,S=m.length;for(g=0;g<S;g+=1)m[g].layers||(!m[g].t||m[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(m[g]))):m[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(m[g]))))}function u(m){this.path=m||""}function f(m){this.assetsPath=m||""}function d(m){for(var x=0,g=this.images.length;x<g;){if(this.images[x].assetData===m)return this.images[x].img;x+=1}return null}function p(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function y(){return this.totalFootages===this.loadedFootagesCount}function C(m,x){m==="svg"?(this._elementHelper=x,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function P(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return P.prototype={loadAssets:c,setAssetsPath:f,setPath:u,loadedImages:b,loadedFootages:y,destroy:p,getAsset:d,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:i,setCacheType:C},P}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var n=this._cbs[t],s=0;s<n.length;s+=1)n[s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),(function(){this.removeEventListener(t,i)}).bind(this)},removeEventListener:function(t,i){if(!i)this._cbs[t]=null;else if(this._cbs[t]){for(var n=0,s=this._cbs[t].length;n<s;)this._cbs[t][n]===i&&(this._cbs[t].splice(n,1),n-=1,s-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var i=t.split(`\r
|
|
66
66
|
`),n={},s,a=0,o=0;o<i.length;o+=1)s=i[o].split(":"),s.length===2&&(n[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return n}return function(t){for(var i=[],n=0;n<t.length;n+=1){var s=t[n],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[n].cm)}catch{try{a.payload=e(t[n].cm)}catch{a.payload={name:t[n].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(i){for(var n=0,s=this.compositions.length;n<s;){if(this.compositions[n].data&&this.compositions[n].data.nm===i)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,i){renderers[t]=i};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(i){return typeof i}:_typeof$4=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var i=getRenderer(t);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var i={wrapper:e,animationData:t},n=e.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";s==="false"?i.loop=!1:s==="true"?i.loop=!0:s!==""&&(i.loop=parseInt(s,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;i.autoplay=a!=="false",i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var o=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";o==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,i,n=t.length,s=e.layers,a,o=s.length;for(a=0;a<o;a+=1)for(i=0;i<n;){if(t[i].id===s[a].id){t[i]=s[a];break}i+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,i=0;i<n;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var i=typeof e=="number"?e:void 0,n=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(i,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,i=0;i<this.markers.length;i+=1)if(t=this.markers[i],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!(i&&this.name!==i)){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!(i&&this.name!==i)){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(n,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,i=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(i=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,t=0)):this.setCurrentRawFrameValue(t),i&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,n=e.length;for(i=0;i<n;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,i){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(t,i)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],i=0,n=0,s=0,a=!0,o=!1;function l(A){for(var V=0,R=A.target;V<n;)t[V].animation===R&&(t.splice(V,1),V-=1,n-=1,R.isPaused||d()),V+=1}function c(A,V){if(!A)return null;for(var R=0;R<n;){if(t[R].elem===A&&t[R].elem!==null)return t[R].animation;R+=1}var M=new AnimationItem;return p(M,A),M.setData(A,V),M}function u(){var A,V=t.length,R=[];for(A=0;A<V;A+=1)R.push(t[A].animation);return R}function f(){s+=1,$()}function d(){s-=1}function p(A,V){A.addEventListener("destroy",l),A.addEventListener("_active",f),A.addEventListener("_idle",d),t.push({elem:V,animation:A}),n+=1}function b(A){var V=new AnimationItem;return p(V,null),V.setParams(A),V}function y(A,V){var R;for(R=0;R<n;R+=1)t[R].animation.setSpeed(A,V)}function C(A,V){var R;for(R=0;R<n;R+=1)t[R].animation.setDirection(A,V)}function P(A){var V;for(V=0;V<n;V+=1)t[V].animation.play(A)}function m(A){var V=A-i,R;for(R=0;R<n;R+=1)t[R].animation.advanceTime(V);i=A,s&&!o?window.requestAnimationFrame(m):a=!0}function x(A){i=A,window.requestAnimationFrame(m)}function g(A){var V;for(V=0;V<n;V+=1)t[V].animation.pause(A)}function S(A,V,R){var M;for(M=0;M<n;M+=1)t[M].animation.goToAndStop(A,V,R)}function E(A){var V;for(V=0;V<n;V+=1)t[V].animation.stop(A)}function T(A){var V;for(V=0;V<n;V+=1)t[V].animation.togglePause(A)}function L(A){var V;for(V=n-1;V>=0;V-=1)t[V].animation.destroy(A)}function _(A,V,R){var M=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),I,j=M.length;for(I=0;I<j;I+=1)R&&M[I].setAttribute("data-bm-type",R),c(M[I],A);if(V&&j===0){R||(R="svg");var W=document.getElementsByTagName("body")[0];W.innerText="";var q=createTag("div");q.style.width="100%",q.style.height="100%",q.setAttribute("data-bm-type",R),W.appendChild(q),c(q,A)}}function k(){var A;for(A=0;A<n;A+=1)t[A].animation.resize()}function $(){!o&&s&&a&&(window.requestAnimationFrame(x),a=!1)}function z(){o=!0}function O(){o=!1,$()}function N(A,V){var R;for(R=0;R<n;R+=1)t[R].animation.setVolume(A,V)}function K(A){var V;for(V=0;V<n;V+=1)t[V].animation.mute(A)}function B(A){var V;for(V=0;V<n;V+=1)t[V].animation.unmute(A)}return e.registerAnimation=c,e.loadAnimation=b,e.setSpeed=y,e.setDirection=C,e.play=P,e.pause=g,e.stop=E,e.togglePause=T,e.searchAnimations=_,e.resize=k,e.goToAndStop=S,e.destroy=L,e.freeze=z,e.unfreeze=O,e.setVolume=N,e.mute=K,e.unmute=B,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var t={};function i(x,g,S,E,T){var L=T||("bez_"+x+"_"+g+"_"+S+"_"+E).replace(/\./g,"p");if(t[L])return t[L];var _=new m([x,g,S,E]);return t[L]=_,_}var n=4,s=.001,a=1e-7,o=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function f(x,g){return 1-3*g+3*x}function d(x,g){return 3*g-6*x}function p(x){return 3*x}function b(x,g,S){return((f(g,S)*x+d(g,S))*x+p(g))*x}function y(x,g,S){return 3*f(g,S)*x*x+2*d(g,S)*x+p(g)}function C(x,g,S,E,T){var L,_,k=0;do _=g+(S-g)/2,L=b(_,E,T)-x,L>0?S=_:g=_;while(Math.abs(L)>a&&++k<o);return _}function P(x,g,S,E){for(var T=0;T<n;++T){var L=y(g,S,E);if(L===0)return g;var _=b(g,S,E)-x;g-=_/L}return g}function m(x){this._p=x,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return m.prototype={get:function(g){var S=this._p[0],E=this._p[1],T=this._p[2],L=this._p[3];return this._precomputed||this._precompute(),S===E&&T===L?g:g===0?0:g===1?1:b(this._getTForX(g),E,L)},_precompute:function(){var g=this._p[0],S=this._p[1],E=this._p[2],T=this._p[3];this._precomputed=!0,(g!==S||E!==T)&&this._calcSampleValues()},_calcSampleValues:function(){for(var g=this._p[0],S=this._p[2],E=0;E<l;++E)this._mSampleValues[E]=b(E*c,g,S)},_getTForX:function(g){for(var S=this._p[0],E=this._p[2],T=this._mSampleValues,L=0,_=1,k=l-1;_!==k&&T[_]<=g;++_)L+=c;--_;var $=(g-T[_])/(T[_+1]-T[_]),z=L+$*c,O=y(z,S,E);return O>=s?P(g,z,S,E):O===0?z:C(g,L,L+c,S,E)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,i){var n=0,s=e,a=createSizedArray(s),o={newElement:l,release:c};function l(){var u;return n?(n-=1,u=a[n]):u=t(),u}function c(u){n===s&&(a=pooling.double(a),s*=2),i&&i(u),a[n]=u,n+=1}return o}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(i){var n,s=i.lengths.length;for(n=0;n<s;n+=1)bezierLengthPool.release(i.lengths[n]);i.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(p,b,y,C,P,m){var x=p*C+b*P+y*m-P*C-m*p-y*b;return x>-.001&&x<.001}function i(p,b,y,C,P,m,x,g,S){if(y===0&&m===0&&S===0)return t(p,b,C,P,x,g);var E=e.sqrt(e.pow(C-p,2)+e.pow(P-b,2)+e.pow(m-y,2)),T=e.sqrt(e.pow(x-p,2)+e.pow(g-b,2)+e.pow(S-y,2)),L=e.sqrt(e.pow(x-C,2)+e.pow(g-P,2)+e.pow(S-m,2)),_;return E>T?E>L?_=E-T-L:_=L-T-E:L>T?_=L-T-E:_=T-E-L,_>-1e-4&&_<1e-4}var n=function(){return function(p,b,y,C){var P=getDefaultCurveSegments(),m,x,g,S,E,T=0,L,_=[],k=[],$=bezierLengthPool.newElement();for(g=y.length,m=0;m<P;m+=1){for(E=m/(P-1),L=0,x=0;x<g;x+=1)S=bmPow(1-E,3)*p[x]+3*bmPow(1-E,2)*E*y[x]+3*(1-E)*bmPow(E,2)*C[x]+bmPow(E,3)*b[x],_[x]=S,k[x]!==null&&(L+=bmPow(_[x]-k[x],2)),k[x]=_[x];L&&(L=bmSqrt(L),T+=L),$.percents[m]=E,$.lengths[m]=T}return $.addedLength=T,$}}();function s(p){var b=segmentsLengthPool.newElement(),y=p.c,C=p.v,P=p.o,m=p.i,x,g=p._length,S=b.lengths,E=0;for(x=0;x<g-1;x+=1)S[x]=n(C[x],C[x+1],P[x],m[x+1]),E+=S[x].addedLength;return y&&g&&(S[x]=n(C[x],C[0],P[x],m[0]),E+=S[x].addedLength),b.totalLength=E,b}function a(p){this.segmentLength=0,this.points=new Array(p)}function o(p,b){this.partialLength=p,this.point=b}var l=function(){var p={};return function(b,y,C,P){var m=(b[0]+"_"+b[1]+"_"+y[0]+"_"+y[1]+"_"+C[0]+"_"+C[1]+"_"+P[0]+"_"+P[1]).replace(/\./g,"p");if(!p[m]){var x=getDefaultCurveSegments(),g,S,E,T,L,_=0,k,$,z=null;b.length===2&&(b[0]!==y[0]||b[1]!==y[1])&&t(b[0],b[1],y[0],y[1],b[0]+C[0],b[1]+C[1])&&t(b[0],b[1],y[0],y[1],y[0]+P[0],y[1]+P[1])&&(x=2);var O=new a(x);for(E=C.length,g=0;g<x;g+=1){for($=createSizedArray(E),L=g/(x-1),k=0,S=0;S<E;S+=1)T=bmPow(1-L,3)*b[S]+3*bmPow(1-L,2)*L*(b[S]+C[S])+3*(1-L)*bmPow(L,2)*(y[S]+P[S])+bmPow(L,3)*y[S],$[S]=T,z!==null&&(k+=bmPow($[S]-z[S],2));k=bmSqrt(k),_+=k,O.points[g]=new o(k,$),z=$}O.segmentLength=_,p[m]=O}return p[m]}}();function c(p,b){var y=b.percents,C=b.lengths,P=y.length,m=bmFloor((P-1)*p),x=p*b.addedLength,g=0;if(m===P-1||m===0||x===C[m])return y[m];for(var S=C[m]>x?-1:1,E=!0;E;)if(C[m]<=x&&C[m+1]>x?(g=(x-C[m])/(C[m+1]-C[m]),E=!1):m+=S,m<0||m>=P-1){if(m===P-1)return y[m];E=!1}return y[m]+(y[m+1]-y[m])*g}function u(p,b,y,C,P,m){var x=c(P,m),g=1-x,S=e.round((g*g*g*p[0]+(x*g*g+g*x*g+g*g*x)*y[0]+(x*x*g+g*x*x+x*g*x)*C[0]+x*x*x*b[0])*1e3)/1e3,E=e.round((g*g*g*p[1]+(x*g*g+g*x*g+g*g*x)*y[1]+(x*x*g+g*x*x+x*g*x)*C[1]+x*x*x*b[1])*1e3)/1e3;return[S,E]}var f=createTypedArray("float32",8);function d(p,b,y,C,P,m,x){P<0?P=0:P>1&&(P=1);var g=c(P,x);m=m>1?1:m;var S=c(m,x),E,T=p.length,L=1-g,_=1-S,k=L*L*L,$=g*L*L*3,z=g*g*L*3,O=g*g*g,N=L*L*_,K=g*L*_+L*g*_+L*L*S,B=g*g*_+L*g*S+g*L*S,A=g*g*S,V=L*_*_,R=g*_*_+L*S*_+L*_*S,M=g*S*_+L*S*S+g*_*S,I=g*S*S,j=_*_*_,W=S*_*_+_*S*_+_*_*S,q=S*S*_+_*S*S+S*_*S,X=S*S*S;for(E=0;E<T;E+=1)f[E*4]=e.round((k*p[E]+$*y[E]+z*C[E]+O*b[E])*1e3)/1e3,f[E*4+1]=e.round((N*p[E]+K*y[E]+B*C[E]+A*b[E])*1e3)/1e3,f[E*4+2]=e.round((V*p[E]+R*y[E]+M*C[E]+I*b[E])*1e3)/1e3,f[E*4+3]=e.round((j*p[E]+W*y[E]+q*C[E]+X*b[E])*1e3)/1e3;return f}return{getSegmentsLength:s,getNewSegment:d,getPointInSegment:u,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i=this.offsetTime,n;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,o=this.keyframes.length-1,l=!0,c,u,f;l;){if(c=this.keyframes[a],u=this.keyframes[a+1],a===o-1&&e>=u.t-i){c.h&&(c=u),s=0;break}if(u.t-i>e){s=a;break}a<o-1?a+=1:(s=0,l=!1)}f=this.keyframesMetadata[a]||{};var d,p,b,y,C,P,m=u.t-i,x=c.t-i,g;if(c.to){f.bezierData||(f.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var S=f.bezierData;if(e>=m||e<x){var E=e>=m?S.points.length-1:0;for(p=S.points[E].point.length,d=0;d<p;d+=1)n[d]=S.points[E].point[d]}else{f.__fnct?P=f.__fnct:(P=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,f.__fnct=P),b=P((e-x)/(m-x));var T=S.segmentLength*b,L,_=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(C=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,l=!0,y=S.points.length;l;){if(_+=S.points[C].partialLength,T===0||b===0||C===S.points.length-1){for(p=S.points[C].point.length,d=0;d<p;d+=1)n[d]=S.points[C].point[d];break}else if(T>=_&&T<_+S.points[C+1].partialLength){for(L=(T-_)/S.points[C+1].partialLength,p=S.points[C].point.length,d=0;d<p;d+=1)n[d]=S.points[C].point[d]+(S.points[C+1].point[d]-S.points[C].point[d])*L;break}C<y-1?C+=1:l=!1}t._lastPoint=C,t._lastAddedLength=_-S.points[C].partialLength,t._lastKeyframeIndex=a}}else{var k,$,z,O,N;if(o=c.s.length,g=u.s||c.e,this.sh&&c.h!==1)if(e>=m)n[0]=g[0],n[1]=g[1],n[2]=g[2];else if(e<=x)n[0]=c.s[0],n[1]=c.s[1],n[2]=c.s[2];else{var K=createQuaternion(c.s),B=createQuaternion(g),A=(e-x)/(m-x);quaternionToEuler(n,slerp(K,B,A))}else for(a=0;a<o;a+=1)c.h!==1&&(e>=m?b=1:e<x?b=0:(c.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[a]?P=f.__fnct[a]:(k=c.o.x[a]===void 0?c.o.x[0]:c.o.x[a],$=c.o.y[a]===void 0?c.o.y[0]:c.o.y[a],z=c.i.x[a]===void 0?c.i.x[0]:c.i.x[a],O=c.i.y[a]===void 0?c.i.y[0]:c.i.y[a],P=BezierFactory.getBezierEasing(k,$,z,O).get,f.__fnct[a]=P)):f.__fnct?P=f.__fnct:(k=c.o.x,$=c.o.y,z=c.i.x,O=c.i.y,P=BezierFactory.getBezierEasing(k,$,z,O).get,c.keyframeMetadata=P),b=P((e-x)/(m-x)))),g=u.s||c.e,N=c.h===1?c.s[a]:c.s[a]+(g[a]-c.s[a])*b,this.propType==="multidimensional"?n[a]=N:n=N}return t.lastIndex=s,n}function slerp(e,t,i){var n=[],s=e[0],a=e[1],o=e[2],l=e[3],c=t[0],u=t[1],f=t[2],d=t[3],p,b,y,C,P;return b=s*c+a*u+o*f+l*d,b<0&&(b=-b,c=-c,u=-u,f=-f,d=-d),1-b>1e-6?(p=Math.acos(b),y=Math.sin(p),C=Math.sin((1-i)*p)/y,P=Math.sin(i*p)/y):(C=1-i,P=i),n[0]=C*s+P*c,n[1]=C*a+P*u,n[2]=C*o+P*f,n[3]=C*l+P*d,n}function quaternionToEuler(e,t){var i=t[0],n=t[1],s=t[2],a=t[3],o=Math.atan2(2*n*a-2*i*s,1-2*n*n-2*s*s),l=Math.asin(2*i*n+2*s*a),c=Math.atan2(2*i*a-2*n*s,1-2*i*i-2*s*s);e[0]=o/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,n=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(i/2),o=Math.cos(n/2),l=Math.sin(t/2),c=Math.sin(i/2),u=Math.sin(n/2),f=s*a*o-l*c*u,d=l*c*o+s*a*u,p=l*a*o+s*c*u,b=s*c*o-l*a*u;return[d,p,b,f]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,i,n){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,n){this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=i||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,i,n){this.propType="multidimensional";var s,a=t.k.length,o,l,c,u;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(o=t.k[s].s,l=t.k[s+1].s,c=t.k[s].to,u=t.k[s].ti,(o.length===2&&!(o[0]===l[0]&&o[1]===l[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],o[0]+c[0],o[1]+c[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],l[0]+u[0],l[1]+u[1])||o.length===3&&!(o[0]===l[0]&&o[1]===l[1]&&o[2]===l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],o[0]+c[0],o[1]+c[1],o[2]+c[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],l[0]+u[0],l[1]+u[1],l[2]+u[2]))&&(t.k[s].to=null,t.k[s].ti=null),o[0]===l[0]&&o[1]===l[1]&&c[0]===0&&c[1]===0&&u[0]===0&&u[1]===0&&(o.length===2||o[2]===l[2]&&c[2]===0&&u[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var f=t.k[0].s.length;for(this.v=createTypedArray("float32",f),this.pv=createTypedArray("float32",f),s=0;s<f;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",f)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,n,s,a,o){n.sid&&(n=i.globalData.slotManager.getProp(n));var l;if(!n.k.length)l=new ValueProperty(i,n,a,o);else if(typeof n.k[0]=="number")l=new MultiDimensionalProperty(i,n,a,o);else switch(s){case 0:l=new KeyframedValueProperty(i,n,a,o);break;case 1:l=new KeyframedMultidimensionalProperty(i,n,a,o);break}return l.effectsSequence.length&&o.addDynamicProperty(l),l}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,i,n,s){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[n]||a[n]&&!s)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,n,s,a,o,l){this.setXYAt(e,t,"v",o,l),this.setXYAt(i,n,"o",o,l),this.setXYAt(s,a,"i",o,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,n=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,o=this._length,l;for(l=s;l<o;l+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],i[a][0],i[a][1],l,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(s){var a=s._length,o;for(o=0;o<a;o+=1)pointPool.release(s.v[o]),pointPool.release(s.i[o]),pointPool.release(s.o[o]),s.v[o]=null,s.i[o]=null,s.o[o]=null;s._length=0,s.c=!1}function i(s){var a=n.newElement(),o,l=s._length===void 0?s.v.length:s._length;for(a.setLength(l),a.c=s.c,o=0;o<l;o+=1)a.setTripleAt(s.v[o][0],s.v[o][1],s.o[o][0],s.o[o][1],s.i[o][0],s.i[o][1],o);return a}var n=poolFactory(4,e,t);return n.clone=i,n}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:s,release:a},t=0,i=4,n=createSizedArray(i);function s(){var o;return t?(t-=1,o=n[t]):o=new ShapeCollection,o}function a(o){var l,c=o._length;for(l=0;l<c;l+=1)shapePool.release(o.shapes[l]);o._length=0,t===i&&(n=pooling.double(n),i*=2),n[t]=o,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(m,x,g){var S=g.lastIndex,E,T,L,_,k,$,z,O,N,K=this.keyframes;if(m<K[0].t-this.offsetTime)E=K[0].s[0],L=!0,S=0;else if(m>=K[K.length-1].t-this.offsetTime)E=K[K.length-1].s?K[K.length-1].s[0]:K[K.length-2].e[0],L=!0;else{for(var B=S,A=K.length-1,V=!0,R,M,I;V&&(R=K[B],M=K[B+1],!(M.t-this.offsetTime>m));)B<A-1?B+=1:V=!1;if(I=this.keyframesMetadata[B]||{},L=R.h===1,S=B,!L){if(m>=M.t-this.offsetTime)O=1;else if(m<R.t-this.offsetTime)O=0;else{var j;I.__fnct?j=I.__fnct:(j=BezierFactory.getBezierEasing(R.o.x,R.o.y,R.i.x,R.i.y).get,I.__fnct=j),O=j((m-(R.t-this.offsetTime))/(M.t-this.offsetTime-(R.t-this.offsetTime)))}T=M.s?M.s[0]:R.e[0]}E=R.s[0]}for($=x._length,z=E.i[0].length,g.lastIndex=S,_=0;_<$;_+=1)for(k=0;k<z;k+=1)N=L?E.i[_][k]:E.i[_][k]+(T.i[_][k]-E.i[_][k])*O,x.i[_][k]=N,N=L?E.o[_][k]:E.o[_][k]+(T.o[_][k]-E.o[_][k])*O,x.o[_][k]=N,N=L?E.v[_][k]:E.v[_][k]+(T.v[_][k]-E.v[_][k])*O,x.v[_][k]=N}function i(){var m=this.comp.renderedFrame-this.offsetTime,x=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<x&&m<x||S>g&&m>g)||(this._caching.lastIndex=S<m?this._caching.lastIndex:0,this.interpolateShape(m,this.pv,this._caching)),this._caching.lastFrame=m,this.pv}function n(){this.paths=this.localShapeCollection}function s(m,x){if(m._length!==x._length||m.c!==x.c)return!1;var g,S=m._length;for(g=0;g<S;g+=1)if(m.v[g][0]!==x.v[g][0]||m.v[g][1]!==x.v[g][1]||m.o[g][0]!==x.o[g][0]||m.o[g][1]!==x.o[g][1]||m.i[g][0]!==x.i[g][0]||m.i[g][1]!==x.i[g][1])return!1;return!0}function a(m){s(this.v,m)||(this.v=shapePool.clone(m),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var m;this.kf?m=this.pv:this.data.ks?m=this.data.ks.k:m=this.data.pt.k;var x,g=this.effectsSequence.length;for(x=0;x<g;x+=1)m=this.effectsSequence[x](m);this.setVValue(m),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(m,x,g){this.propType="shape",this.comp=m.comp,this.container=m,this.elem=m,this.data=x,this.k=!1,this.kf=!1,this._mdf=!1;var S=g===3?x.pt.k:x.ks.k;this.v=shapePool.clone(S),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function c(m){this.effectsSequence.push(m),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=o,l.prototype.setVValue=a,l.prototype.addEffect=c;function u(m,x,g){this.propType="shape",this.comp=m.comp,this.elem=m,this.container=m,this.offsetTime=m.data.st,this.keyframes=g===3?x.pt.k:x.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}u.prototype.getValue=o,u.prototype.interpolateShape=t,u.prototype.setVValue=a,u.prototype.addEffect=c;var f=function(){var m=roundCorner;function x(g,S){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=PropertyFactory.getProp(g,S.p,1,0,this),this.s=PropertyFactory.getProp(g,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return x.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],E=this.p.v[1],T=this.s.v[0]/2,L=this.s.v[1]/2,_=this.d!==3,k=this.v;k.v[0][0]=S,k.v[0][1]=E-L,k.v[1][0]=_?S+T:S-T,k.v[1][1]=E,k.v[2][0]=S,k.v[2][1]=E+L,k.v[3][0]=_?S-T:S+T,k.v[3][1]=E,k.i[0][0]=_?S-T*m:S+T*m,k.i[0][1]=E-L,k.i[1][0]=_?S+T:S-T,k.i[1][1]=E-L*m,k.i[2][0]=_?S+T*m:S-T*m,k.i[2][1]=E+L,k.i[3][0]=_?S-T:S+T,k.i[3][1]=E+L*m,k.o[0][0]=_?S+T*m:S-T*m,k.o[0][1]=E-L,k.o[1][0]=_?S+T:S-T,k.o[1][1]=E+L*m,k.o[2][0]=_?S-T*m:S+T*m,k.o[2][1]=E+L,k.o[3][0]=_?S-T:S+T,k.o[3][1]=E-L*m}},extendPrototype([DynamicPropertyContainer],x),x}(),d=function(){function m(x,g){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=x,this.comp=x.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(x),g.sy===1?(this.ir=PropertyFactory.getProp(x,g.ir,0,0,this),this.is=PropertyFactory.getProp(x,g.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(x,g.pt,0,0,this),this.p=PropertyFactory.getProp(x,g.p,1,0,this),this.r=PropertyFactory.getProp(x,g.r,0,degToRads,this),this.or=PropertyFactory.getProp(x,g.or,0,0,this),this.os=PropertyFactory.getProp(x,g.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return m.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g=Math.floor(this.pt.v)*2,S=Math.PI*2/g,E=!0,T=this.or.v,L=this.ir.v,_=this.os.v,k=this.is.v,$=2*Math.PI*T/(g*2),z=2*Math.PI*L/(g*2),O,N,K,B,A=-Math.PI/2;A+=this.r.v;var V=this.data.d===3?-1:1;for(this.v._length=0,O=0;O<g;O+=1){N=E?T:L,K=E?_:k,B=E?$:z;var R=N*Math.cos(A),M=N*Math.sin(A),I=R===0&&M===0?0:M/Math.sqrt(R*R+M*M),j=R===0&&M===0?0:-R/Math.sqrt(R*R+M*M);R+=+this.p.v[0],M+=+this.p.v[1],this.v.setTripleAt(R,M,R-I*B*K*V,M-j*B*K*V,R+I*B*K*V,M+j*B*K*V,O,!0),E=!E,A+=S*V}},convertPolygonToPath:function(){var g=Math.floor(this.pt.v),S=Math.PI*2/g,E=this.or.v,T=this.os.v,L=2*Math.PI*E/(g*4),_,k=-Math.PI*.5,$=this.data.d===3?-1:1;for(k+=this.r.v,this.v._length=0,_=0;_<g;_+=1){var z=E*Math.cos(k),O=E*Math.sin(k),N=z===0&&O===0?0:O/Math.sqrt(z*z+O*O),K=z===0&&O===0?0:-z/Math.sqrt(z*z+O*O);z+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(z,O,z-N*L*T*$,O-K*L*T*$,z+N*L*T*$,O+K*L*T*$,_,!0),k+=S*$}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],m),m}(),p=function(){function m(x,g){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=x,this.comp=x.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(x),this.p=PropertyFactory.getProp(x,g.p,1,0,this),this.s=PropertyFactory.getProp(x,g.s,1,0,this),this.r=PropertyFactory.getProp(x,g.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return m.prototype={convertRectToPath:function(){var g=this.p.v[0],S=this.p.v[1],E=this.s.v[0]/2,T=this.s.v[1]/2,L=bmMin(E,T,this.r.v),_=L*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+E,S-T+L,g+E,S-T+L,g+E,S-T+_,0,!0),this.v.setTripleAt(g+E,S+T-L,g+E,S+T-_,g+E,S+T-L,1,!0),L!==0?(this.v.setTripleAt(g+E-L,S+T,g+E-L,S+T,g+E-_,S+T,2,!0),this.v.setTripleAt(g-E+L,S+T,g-E+_,S+T,g-E+L,S+T,3,!0),this.v.setTripleAt(g-E,S+T-L,g-E,S+T-L,g-E,S+T-_,4,!0),this.v.setTripleAt(g-E,S-T+L,g-E,S-T+_,g-E,S-T+L,5,!0),this.v.setTripleAt(g-E+L,S-T,g-E+L,S-T,g-E+_,S-T,6,!0),this.v.setTripleAt(g+E-L,S-T,g+E-_,S-T,g+E-L,S-T,7,!0)):(this.v.setTripleAt(g-E,S+T,g-E+_,S+T,g-E,S+T,2),this.v.setTripleAt(g-E,S-T,g-E,S-T+_,g-E,S-T,3))):(this.v.setTripleAt(g+E,S-T+L,g+E,S-T+_,g+E,S-T+L,0,!0),L!==0?(this.v.setTripleAt(g+E-L,S-T,g+E-L,S-T,g+E-_,S-T,1,!0),this.v.setTripleAt(g-E+L,S-T,g-E+_,S-T,g-E+L,S-T,2,!0),this.v.setTripleAt(g-E,S-T+L,g-E,S-T+L,g-E,S-T+_,3,!0),this.v.setTripleAt(g-E,S+T-L,g-E,S+T-_,g-E,S+T-L,4,!0),this.v.setTripleAt(g-E+L,S+T,g-E+L,S+T,g-E+_,S+T,5,!0),this.v.setTripleAt(g+E-L,S+T,g+E-_,S+T,g+E-L,S+T,6,!0),this.v.setTripleAt(g+E,S+T-L,g+E,S+T-L,g+E,S+T-_,7,!0)):(this.v.setTripleAt(g-E,S-T,g-E+_,S-T,g-E,S-T,1,!0),this.v.setTripleAt(g-E,S+T,g-E,S+T-_,g-E,S+T,2,!0),this.v.setTripleAt(g+E,S+T,g+E-_,S+T,g+E,S+T,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],m),m}();function b(m,x,g){var S;if(g===3||g===4){var E=g===3?x.pt:x.ks,T=E.k;T.length?S=new u(m,x,g):S=new l(m,x,g)}else g===5?S=new p(m,x):g===6?S=new f(m,x):g===7&&(S=new d(m,x));return S.k&&m.addDynamicProperty(S),S}function y(){return l}function C(){return u}var P={};return P.getShapeProp=b,P.getConstructorFunction=y,P.getKeyframedConstructorFunction=C,P}();/*!
|
|
67
67
|
Transformation Matrix v2.0
|
|
68
68
|
(c) Epistemex 2014-2015
|
|
@@ -70,6 +70,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
70
70
|
By Ken Fyrstenberg
|
|
71
71
|
Contributions by leeoniya.
|
|
72
72
|
License: MIT, header required.
|
|
73
|
-
*/var Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,n=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,-I,0,0,I,M,0,0,0,0,1,0,0,0,0,1)}function o(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(1,0,0,0,0,M,-I,0,0,I,M,0,0,0,0,1)}function l(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,0,I,0,0,1,0,0,-I,0,M,0,0,0,0,1)}function c(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,-I,0,0,I,M,0,0,0,0,1,0,0,0,0,1)}function u(R,M){return this._t(1,M,R,1,0,0)}function f(R,M){return this.shear(i(R),i(M))}function d(R,M){var I=e(M),j=t(M);return this._t(I,j,0,0,-j,I,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(R),1,0,0,0,0,1,0,0,0,0,1)._t(I,-j,0,0,j,I,0,0,0,0,1,0,0,0,0,1)}function p(R,M,I){return!I&&I!==0&&(I=1),R===1&&M===1&&I===1?this:this._t(R,0,0,0,0,M,0,0,0,0,I,0,0,0,0,1)}function b(R,M,I,j,W,q,X,ee,re,ce,he,me,pe,se,fe,ie){return this.props[0]=R,this.props[1]=M,this.props[2]=I,this.props[3]=j,this.props[4]=W,this.props[5]=q,this.props[6]=X,this.props[7]=ee,this.props[8]=re,this.props[9]=ce,this.props[10]=he,this.props[11]=me,this.props[12]=pe,this.props[13]=se,this.props[14]=fe,this.props[15]=ie,this}function y(R,M,I){return I=I||0,R!==0||M!==0||I!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,R,M,I,1):this}function C(R,M,I,j,W,q,X,ee,re,ce,he,me,pe,se,fe,ie){var Y=this.props;if(R===1&&M===0&&I===0&&j===0&&W===0&&q===1&&X===0&&ee===0&&re===0&&ce===0&&he===1&&me===0)return Y[12]=Y[12]*R+Y[15]*pe,Y[13]=Y[13]*q+Y[15]*se,Y[14]=Y[14]*he+Y[15]*fe,Y[15]*=ie,this._identityCalculated=!1,this;var Ee=Y[0],Le=Y[1],be=Y[2],ye=Y[3],Pe=Y[4],Ce=Y[5],ve=Y[6],xe=Y[7],we=Y[8],Se=Y[9],Me=Y[10],Re=Y[11],Te=Y[12],_e=Y[13],Ve=Y[14],je=Y[15];return Y[0]=Ee*R+Le*W+be*re+ye*pe,Y[1]=Ee*M+Le*q+be*ce+ye*se,Y[2]=Ee*I+Le*X+be*he+ye*fe,Y[3]=Ee*j+Le*ee+be*me+ye*ie,Y[4]=Pe*R+Ce*W+ve*re+xe*pe,Y[5]=Pe*M+Ce*q+ve*ce+xe*se,Y[6]=Pe*I+Ce*X+ve*he+xe*fe,Y[7]=Pe*j+Ce*ee+ve*me+xe*ie,Y[8]=we*R+Se*W+Me*re+Re*pe,Y[9]=we*M+Se*q+Me*ce+Re*se,Y[10]=we*I+Se*X+Me*he+Re*fe,Y[11]=we*j+Se*ee+Me*me+Re*ie,Y[12]=Te*R+_e*W+Ve*re+je*pe,Y[13]=Te*M+_e*q+Ve*ce+je*se,Y[14]=Te*I+_e*X+Ve*he+je*fe,Y[15]=Te*j+_e*ee+Ve*me+je*ie,this._identityCalculated=!1,this}function P(R){var M=R.props;return this.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15])}function m(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function x(R){for(var M=0;M<16;){if(R.props[M]!==this.props[M])return!1;M+=1}return!0}function g(R){var M;for(M=0;M<16;M+=1)R.props[M]=this.props[M];return R}function S(R){var M;for(M=0;M<16;M+=1)this.props[M]=R[M]}function E(R,M,I){return{x:R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12],y:R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13],z:R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]}}function T(R,M,I){return R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12]}function L(R,M,I){return R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13]}function _(R,M,I){return R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]}function k(){var R=this.props[0]*this.props[5]-this.props[1]*this.props[4],M=this.props[5]/R,I=-this.props[1]/R,j=-this.props[4]/R,W=this.props[0]/R,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/R,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/R,ee=new Matrix;return ee.props[0]=M,ee.props[1]=I,ee.props[4]=j,ee.props[5]=W,ee.props[12]=q,ee.props[13]=X,ee}function $(R){var M=this.getInverseMatrix();return M.applyToPointArray(R[0],R[1],R[2]||0)}function z(R){var M,I=R.length,j=[];for(M=0;M<I;M+=1)j[M]=$(R[M]);return j}function O(R,M,I){var j=createTypedArray("float32",6);if(this.isIdentity())j[0]=R[0],j[1]=R[1],j[2]=M[0],j[3]=M[1],j[4]=I[0],j[5]=I[1];else{var W=this.props[0],q=this.props[1],X=this.props[4],ee=this.props[5],re=this.props[12],ce=this.props[13];j[0]=R[0]*W+R[1]*X+re,j[1]=R[0]*q+R[1]*ee+ce,j[2]=M[0]*W+M[1]*X+re,j[3]=M[0]*q+M[1]*ee+ce,j[4]=I[0]*W+I[1]*X+re,j[5]=I[0]*q+I[1]*ee+ce}return j}function N(R,M,I){var j;return this.isIdentity()?j=[R,M,I]:j=[R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12],R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13],R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]],j}function K(R,M){if(this.isIdentity())return R+","+M;var I=this.props;return Math.round((R*I[0]+M*I[4]+I[12])*100)/100+","+Math.round((R*I[1]+M*I[5]+I[13])*100)/100}function B(){for(var R=0,M=this.props,I="matrix3d(",j=1e4;R<16;)I+=n(M[R]*j)/j,I+=R===15?")":",",R+=1;return I}function A(R){var M=1e4;return R<1e-6&&R>0||R>-1e-6&&R<0?n(R*M)/M:R}function V(){var R=this.props,M=A(R[0]),I=A(R[1]),j=A(R[4]),W=A(R[5]),q=A(R[12]),X=A(R[13]);return"matrix("+M+","+I+","+j+","+W+","+q+","+X+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=d,this.shear=u,this.scale=p,this.setTransform=b,this.translate=y,this.transform=C,this.multiply=P,this.applyToPoint=E,this.applyToX=T,this.applyToY=L,this.applyToZ=_,this.applyToPointArray=N,this.applyToTriplePoints=O,this.applyToPointStringified=K,this.toCSS=B,this.to2dCSS=V,this.clone=g,this.cloneFromProps=S,this.equals=x,this.inversePoints=z,this.inversePoint=$,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(i){return typeof i}:_typeof$3=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var n=t[i].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=i,e.getModifier=n;function i(s,a){t[s]||(t[s]=a)}function n(s,a,o){return new t[s](a,o)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o=[],l,c=a.length,u;for(l=0;l<c;l+=1)if(u=a[l],!(u.e*s<n||u.s*s>n+i)){var f,d;u.s*s<=n?f=0:f=(u.s*s-n)/i,u.e*s>=n+i?d=1:d=(u.e*s-n)/i,o.push([f,d])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?t=1+n:this.s.v<0?t=0+n:t=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,t>i){var s=t;t=i,i=s}t=Math.round(t*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var a,o,l=this.shapes.length,c,u,f,d,p,b=0;if(i===t)for(o=0;o<l;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(i===1&&t===0||i===0&&t===1){if(this._mdf)for(o=0;o<l;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var y=[],C,P;for(o=0;o<l;o+=1)if(C=this.shapes[o],!C.shape._mdf&&!this._mdf&&!e&&this.m!==2)C.shape.paths=C.localShapeCollection;else{if(a=C.shape.paths,u=a._length,p=0,!C.shape._mdf&&C.pathsData.length)p=C.totalShapeLength;else{for(f=this.releasePathsData(C.pathsData),c=0;c<u;c+=1)d=bez.getSegmentsLength(a.shapes[c]),f.push(d),p+=d.totalLength;C.totalShapeLength=p,C.pathsData=f}b+=p,C.shape._mdf=!0}var m=t,x=i,g=0,S;for(o=l-1;o>=0;o-=1)if(C=this.shapes[o],C.shape._mdf){for(P=C.localShapeCollection,P.releaseShapes(),this.m===2&&l>1?(S=this.calculateShapeEdges(t,i,C.totalShapeLength,g,b),g+=C.totalShapeLength):S=[[m,x]],u=S.length,c=0;c<u;c+=1){m=S[c][0],x=S[c][1],y.length=0,x<=1?y.push({s:C.totalShapeLength*m,e:C.totalShapeLength*x}):m>=1?y.push({s:C.totalShapeLength*(m-1),e:C.totalShapeLength*(x-1)}):(y.push({s:C.totalShapeLength*m,e:C.totalShapeLength}),y.push({s:0,e:C.totalShapeLength*(x-1)}));var E=this.addShapes(C,y[0]);if(y[0].s!==y[0].e){if(y.length>1){var T=C.shape.paths.shapes[C.shape.paths._length-1];if(T.c){var L=E.pop();this.addPaths(E,P),E=this.addShapes(C,y[1],L)}else this.addPaths(E,P),E=this.addShapes(C,y[1])}this.addPaths(E,P)}}C.shape.paths=P}}},TrimModifier.prototype.addPaths=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,n,s,a,o){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),o&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,n){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),n&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var n=e.pathsData,s=e.shape.paths.shapes,a,o=e.shape.paths._length,l,c,u=0,f,d,p,b,y=[],C,P=!0;for(i?(d=i._length,C=i._length):(i=shapePool.newElement(),d=0,C=0),y.push(i),a=0;a<o;a+=1){for(p=n[a].lengths,i.c=s[a].c,c=s[a].c?p.length:p.length+1,l=1;l<c;l+=1)if(f=p[l-1],u+f.addedLength<t.s)u+=f.addedLength,i.c=!1;else if(u>t.e){i.c=!1;break}else t.s<=u&&t.e>=u+f.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,d,P),P=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(t.s-u)/f.addedLength,(t.e-u)/f.addedLength,p[l-1]),this.addSegmentFromArray(b,i,d,P),P=!1,i.c=!1),u+=f.addedLength,d+=1;if(s[a].c&&p.length){if(f=p[l-1],u<=t.e){var m=p[l-1].addedLength;t.s<=u&&t.e>=u+m?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,d,P),P=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(t.s-u)/m,(t.e-u)/m,p[l-1]),this.addSegmentFromArray(b,i,d,P),P=!1,i.c=!1)}else i.c=!1;u+=f.addedLength,d+=1}if(i._length&&(i.setXYAt(i.v[C][0],i.v[C][1],"i",C),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>t.e)break;a<o-1&&(i=shapePool.newElement(),P=!0,y.push(i),d=0)}return y};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var o=shapePool.newElement();o.c=e.c;var l,c,u,f,d,p;for(a=0;a<s;a+=1)l=e.v[a][0]+(n[0]-e.v[a][0])*i,c=e.v[a][1]+(n[1]-e.v[a][1])*i,u=e.o[a][0]+(n[0]-e.o[a][0])*-i,f=e.o[a][1]+(n[1]-e.o[a][1])*-i,d=e.i[a][0]+(n[0]-e.i[a][0])*-i,p=e.i[a][1]+(n[1]-e.i[a][1])*-i,o.setTripleAt(l,c,u,f,d,p,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var f,d;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],d=[];var p=this.px,b=this.py;p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t?(f[0]=p.getValueAtTime((p.keyframes[0].t+.01)/u,0),f[1]=b.getValueAtTime((b.keyframes[0].t+.01)/u,0),d[0]=p.getValueAtTime(p.keyframes[0].t/u,0),d[1]=b.getValueAtTime(b.keyframes[0].t/u,0)):p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t?(f[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/u,0),f[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/u,0),d[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/u,0),d[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/u,0)):(f=[p.pv,b.pv],d[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/u,p.offsetTime),d[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/u,b.offsetTime))}else d=e,f=d;this.v.rotate(-Math.atan2(f[1]-d[1],f[0]-d[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function o(c,u,f){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var d,p=u.or.k.length;for(d=0;d<p;d+=1)u.or.k[d].to=null,u.or.k[d].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:i,precalculateMatrix:n,autoOrient:s},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new o(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,n,s,a){var o=a?-1:1,l=n.s.v[0]+(1-n.s.v[0])*(1-s),c=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*o*s,n.p.v[1]*o*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*o*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(a?1/l:l,a?1/c:c),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,n){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._render=t,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,n,s,a,o=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var u;for(n=0;n<=this._groups.length-1;n+=1){if(u=a<l,this._groups[n]._render=u,this.changeGroupRender(this._groups[n].it,u),!u){var f=this.elemsData[n].it,d=f[f.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,b=p%1,y=p>0?Math.floor(p):Math.ceil(p),C=this.pMatrix.props,P=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(p>0){for(;x<y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,b,!1),x+=b)}else if(p<0){for(;x>y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),x-=b)}n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var g,S;a;){if(t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,S=i.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),x!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],P[8],P[9],P[10],P[11],P[12],P[13],P[14],P[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),g=0;g<S;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<S;g+=1)i[g]=this.matrix.props[g];x+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=s;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i=shapePool.newElement();i.c=e.c;var n,s=e._length,a,o,l,c,u,f,d=0,p,b,y,C,P,m;for(n=0;n<s;n+=1)a=e.v[n],l=e.o[n],o=e.i[n],a[0]===l[0]&&a[1]===l[1]&&a[0]===o[0]&&a[1]===o[1]?(n===0||n===s-1)&&!e.c?(i.setTripleAt(a[0],a[1],l[0],l[1],o[0],o[1],d),d+=1):(n===0?c=e.v[s-1]:c=e.v[n-1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,P=a[0]+(c[0]-a[0])*f,p=P,m=a[1]-(a[1]-c[1])*f,b=m,y=p-(p-a[0])*roundCorner,C=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,y,C,P,m,d),d+=1,n===s-1?c=e.v[0]:c=e.v[n+1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,y=a[0]+(c[0]-a[0])*f,p=y,C=a[1]+(c[1]-a[1])*f,b=C,P=p-(p-a[0])*roundCorner,m=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,y,C,P,m,d),d+=1):(i.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],d),d+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.rd.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(e===0)return[];var n=t*t-4*e*i;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,i,n){return[-e+3*t-3*i+n,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(i,n)&&(i=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],i[0],n[0]),o=polynomialCoefficients(e[1],t[1],i[1],n[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,i,n]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,i,e),a=lerpPoint(i,n,e),o=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,o,!0),new PolynomialBezier(o,a,n,this.points[3],!0)]};function extrema(e,t){var i=e.points[0][t],n=e.points[e.points.length-1][t];if(i>n){var s=n;n=i,i=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var l=e.point(a[o])[t];l<i?i=l:l>n&&(n=l)}return{min:i,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,i){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,i,n,s,a){if(boxIntersect(e,t)){if(i>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){s.push([e.t,t.t]);return}var o=splitData(e),l=splitData(t);intersectsImpl(o[0],l[0],i+1,n,s,a),intersectsImpl(o[0],l[1],i+1,n,s,a),intersectsImpl(o[1],l[0],i+1,n,s,a),intersectsImpl(o[1],l[1],i+1,n,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,i){t===void 0&&(t=2),i===void 0&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,i),n},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],o=[i[0],i[1],1],l=[n[0],n[1],1],c=crossProduct(crossProduct(s,a),crossProduct(o,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,i,n,s,a,o){var l=i-Math.PI/2,c=i+Math.PI/2,u=t[0]+Math.cos(i)*n*s,f=t[1]-Math.sin(i)*n*s;e.setTripleAt(u,f,u+Math.cos(l)*a,f-Math.sin(l)*a,u+Math.cos(c)*o,f-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],n=-Math.PI*.5,s=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return s}function getProjectingAngle(e,t){var i=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=e.v[i],a=e.v[n],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,i,n,s,a,o){var l=getProjectingAngle(t,i),c=t.v[i%t._length],u=t.v[i===0?t._length-1:i-1],f=t.v[(i+1)%t._length],d=a===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,p=a===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,t.v[i%t._length],l,o,n,p/((s+1)*2),d/((s+1)*2))}function zigZagSegment(e,t,i,n,s,a){for(var o=0;o<n;o+=1){var l=(o+1)/(n+1),c=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(l),f=t.point(l);setPoint(e,f,u,a,i,c/((n+1)*2),c/((n+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,i,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var o=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,i,n,o);for(var c=0;c<s;c+=1)o=zigZagSegment(a,l,t,i,n,-o),c===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%s),zigZagCorner(a,e,c+1,t,i,n,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,i){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,i),polarOffset(t,n,i)]}function offsetSegment(e,t){var i,n,s,a,o,l,c;c=linearOffset(e.points[0],e.points[1],t),i=c[0],n=c[1],c=linearOffset(e.points[1],e.points[2],t),s=c[0],a=c[1],c=linearOffset(e.points[2],e.points[3],t),o=c[0],l=c[1];var u=lineIntersection(i,n,s,a);u===null&&(u=n);var f=lineIntersection(o,l,s,a);return f===null&&(f=o),new PolynomialBezier(i,u,f,l)}function joinLines(e,t,i,n,s){var a=t.points[3],o=i.points[0];if(n===3||pointEqual(a,o))return a;if(n===2){var l=-t.tangentAngle(1),c=-i.tangentAngle(0)+Math.PI,u=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),o,polarOffset(o,l+Math.PI/2,100)),f=u?pointDistance(u,a):pointDistance(a,o)/2,d=polarOffset(a,l,2*f*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(o,c,2*f*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=pointEqual(a,t.points[2])?t.points[0]:t.points[2],b=pointEqual(o,i.points[1])?i.points[3]:i.points[1],y=lineIntersection(p,a,o,b);return y&&pointDistance(y,a)<s?(e.setTripleAt(y[0],y[1],y[0],y[1],y[0],y[1],e.length()),y):a}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(i[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[i,n]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i=e.inflectionPoints(),n,s,a,o;if(i.length===0)return[offsetSegment(e,t)];if(i.length===1||floatEqual(i[1],1))return a=e.split(i[0]),n=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(s,t)];a=e.split(i[0]),n=a[0];var l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),o=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,i,n){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var o,l,c,u=[];for(o=0;o<a;o+=1)c=PolynomialBezier.shapeSegment(e,o),u.push(offsetSegmentSplit(c,t));if(!e.c)for(o=a-1;o>=0;o-=1)c=PolynomialBezier.shapeSegmentInverted(e,o),u.push(offsetSegmentSplit(c,t));u=pruneIntersections(u);var f=null,d=null;for(o=0;o<u.length;o+=1){var p=u[o];for(d&&(f=joinLines(s,d,p[0],i,n)),d=p[p.length-1],l=0;l<p.length;l+=1)c=p[l],f&&pointEqual(c.points[0],f)?s.setXYAt(c.points[1][0],c.points[1][1],"o",s.length()-1):s.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],s.length()),s.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],s.length()),f=c.points[3]}return u.length&&joinLines(s,d,u[0][0],i,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",n="normal",s=t.length,a,o=0;o<s;o+=1)switch(a=t[o].toLowerCase(),a){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:n,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,s=917631,a=917601,o=917626,l=65039,c=8205,u=127462,f=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(A){var V=A.split(","),R,M=V.length,I=[];for(R=0;R<M;R+=1)V[R]!=="sans-serif"&&V[R]!=="monospace"&&I.push(V[R]);return I.join(",")}function b(A,V){var R=createTag("span");R.setAttribute("aria-hidden",!0),R.style.fontFamily=V;var M=createTag("span");M.innerText="giItT1WQy@!-/#",R.style.position="absolute",R.style.left="-10000px",R.style.top="-10000px",R.style.fontSize="300px",R.style.fontVariant="normal",R.style.fontStyle="normal",R.style.fontWeight="normal",R.style.letterSpacing="0",R.appendChild(M),document.body.appendChild(R);var I=M.offsetWidth;return M.style.fontFamily=p(A)+", "+V,{node:M,w:I,parent:R}}function y(){var A,V=this.fonts.length,R,M,I=V;for(A=0;A<V;A+=1)this.fonts[A].loaded?I-=1:this.fonts[A].fOrigin==="n"||this.fonts[A].origin===0?this.fonts[A].loaded=!0:(R=this.fonts[A].monoCase.node,M=this.fonts[A].monoCase.w,R.offsetWidth!==M?(I-=1,this.fonts[A].loaded=!0):(R=this.fonts[A].sansCase.node,M=this.fonts[A].sansCase.w,R.offsetWidth!==M&&(I-=1,this.fonts[A].loaded=!0)),this.fonts[A].loaded&&(this.fonts[A].sansCase.parent.parentNode.removeChild(this.fonts[A].sansCase.parent),this.fonts[A].monoCase.parent.parentNode.removeChild(this.fonts[A].monoCase.parent)));I!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function C(A,V){var R=document.body&&V?"svg":"canvas",M,I=getFontProperties(A);if(R==="svg"){var j=createNS("text");j.style.fontSize="100px",j.setAttribute("font-family",A.fFamily),j.setAttribute("font-style",I.style),j.setAttribute("font-weight",I.weight),j.textContent="1",A.fClass?(j.style.fontFamily="inherit",j.setAttribute("class",A.fClass)):j.style.fontFamily=A.fFamily,V.appendChild(j),M=j}else{var W=new OffscreenCanvas(500,500).getContext("2d");W.font=I.style+" "+I.weight+" 100px "+A.fFamily,M=W}function q(X){return R==="svg"?(M.textContent=X,M.getComputedTextLength()):M.measureText(X).width}return{measureText:q}}function P(A,V){if(!A){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=A.list;return}if(!document.body){this.isLoaded=!0,A.list.forEach(function(he){he.helper=C(he),he.cache={}}),this.fonts=A.list;return}var R=A.list,M,I=R.length,j=I;for(M=0;M<I;M+=1){var W=!0,q,X;if(R[M].loaded=!1,R[M].monoCase=b(R[M].fFamily,"monospace"),R[M].sansCase=b(R[M].fFamily,"sans-serif"),!R[M].fPath)R[M].loaded=!0,j-=1;else if(R[M].fOrigin==="p"||R[M].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+R[M].fFamily+'"], style[f-origin="3"][f-family="'+R[M].fFamily+'"]'),q.length>0&&(W=!1),W){var ee=createTag("style");ee.setAttribute("f-forigin",R[M].fOrigin),ee.setAttribute("f-origin",R[M].origin),ee.setAttribute("f-family",R[M].fFamily),ee.type="text/css",ee.innerText="@font-face {font-family: "+R[M].fFamily+"; font-style: normal; src: url('"+R[M].fPath+"');}",V.appendChild(ee)}}else if(R[M].fOrigin==="g"||R[M].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),X=0;X<q.length;X+=1)q[X].href.indexOf(R[M].fPath)!==-1&&(W=!1);if(W){var re=createTag("link");re.setAttribute("f-forigin",R[M].fOrigin),re.setAttribute("f-origin",R[M].origin),re.type="text/css",re.rel="stylesheet",re.href=R[M].fPath,document.body.appendChild(re)}}else if(R[M].fOrigin==="t"||R[M].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),X=0;X<q.length;X+=1)R[M].fPath===q[X].src&&(W=!1);if(W){var ce=createTag("link");ce.setAttribute("f-forigin",R[M].fOrigin),ce.setAttribute("f-origin",R[M].origin),ce.setAttribute("rel","stylesheet"),ce.setAttribute("href",R[M].fPath),V.appendChild(ce)}}R[M].helper=C(R[M],V),R[M].cache={},this.fonts.push(R[M])}j===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function m(A){if(A){this.chars||(this.chars=[]);var V,R=A.length,M,I=this.chars.length,j;for(V=0;V<R;V+=1){for(M=0,j=!1;M<I;)this.chars[M].style===A[V].style&&this.chars[M].fFamily===A[V].fFamily&&this.chars[M].ch===A[V].ch&&(j=!0),M+=1;j||(this.chars.push(A[V]),I+=1)}}}function x(A,V,R){for(var M=0,I=this.chars.length;M<I;){if(this.chars[M].ch===A&&this.chars[M].style===V&&this.chars[M].fFamily===R)return this.chars[M];M+=1}return(typeof A=="string"&&A.charCodeAt(0)!==13||!A)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",A,V,R)),t}function g(A,V,R){var M=this.getFontByName(V),I=A;if(!M.cache[I]){var j=M.helper;if(A===" "){var W=j.measureText("|"+A+"|"),q=j.measureText("||");M.cache[I]=(W-q)/100}else M.cache[I]=j.measureText(A)/100}return M.cache[I]*R}function S(A){for(var V=0,R=this.fonts.length;V<R;){if(this.fonts[V].fName===A)return this.fonts[V];V+=1}return this.fonts[0]}function E(A){var V=0,R=A.charCodeAt(0);if(R>=55296&&R<=56319){var M=A.charCodeAt(1);M>=56320&&M<=57343&&(V=(R-55296)*1024+M-56320+65536)}return V}function T(A,V){var R=A.toString(16)+V.toString(16);return d.indexOf(R)!==-1}function L(A){return A===c}function _(A){return A===l}function k(A){var V=E(A);return V>=u&&V<=f}function $(A){return k(A.substr(0,2))&&k(A.substr(2,2))}function z(A){return i.indexOf(A)!==-1}function O(A,V){var R=E(A.substr(V,2));if(R!==n)return!1;var M=0;for(V+=2;M<5;){if(R=E(A.substr(V,2)),R<a||R>o)return!1;M+=1,V+=2}return E(A.substr(V,2))===s}function N(){this.isLoaded=!0}var K=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};K.isModifier=T,K.isZeroWidthJoiner=L,K.isFlagEmoji=$,K.isRegionalCode=k,K.isCombinedCharacter=z,K.isRegionalFlag=O,K.isVariationSelector=_,K.BLACK_FLAG_CODE_POINT=n;var B={addChars:m,addFonts:P,getCharData:x,getFontByName:S,measureText:g,checkLoadedFonts:y,setIsLoaded:N};return K.prototype=B,K}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i=e.ef||[];this.effectElements=[];var n,s=i.length,a;for(n=0;n<s;n+=1)a=new GroupEffect(i[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,n=this.data.ef.length,s,a=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],t,this);break;case 1:s=new AngleEffect(a[i],t,this);break;case 2:s=new ColorEffect(a[i],t,this);break;case 3:s=new PointEffect(a[i],t,this);break;case 4:case 7:s=new CheckboxEffect(a[i],t,this);break;case 10:s=new LayerIndexEffect(a[i],t,this);break;case 11:s=new MaskIndexEffect(a[i],t,this);break;case 5:s=new EffectsManager(a[i],t);break;default:s=new NoValueEffect(a[i]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var i=t("layer"),n=t("effects"),s=t("shape"),a=t("text"),o=t("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=t},initBaseData:function(t,i,n){this.globalData=i,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var n,s=this.dynamicProperties.length;for(n=0;n<s;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,i=this.layers.length,n;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t],n.ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,i=e.length,n,s=this.layers.length;for(t=0;t<i;t+=1)for(n=0;n<s;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var n=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==t&&(!n[a]||n[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(i.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,i):e.setHierarchy(i))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),i;if(typeof t=="number")i=this.elements[t];else{var n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===t){i=this.elements[n];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,i=this.finalTransform.mat,n=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,i.cloneFromProps(t),n=0;n<s;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<i;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<i;t+=1){var s=this.localTransforms[t].matrix;n.multiply(s)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<i;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,n=t.length;for(i=0;i<n;i+=1)this.localTransforms.push(t[i])}}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&i.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,o=i.length,l;for(a=0;a<o;a+=1)l=i[a].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l=this.masksProperties,c=0,u=[],f,d,p=createElementID(),b,y,C,P,m="clipPath",x="clip-path";for(s=0;s<a;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(m="mask",x="mask"),(l[s].mode==="s"||l[s].mode==="i")&&c===0?(b=createNS("rect"),b.setAttribute("fill","#ffffff"),b.setAttribute("width",this.element.comp.data.w||0),b.setAttribute("height",this.element.comp.data.h||0),u.push(b)):b=null,o=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:o,lastPath:""},n.appendChild(o);else{c+=1,o.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var g;if(l[s].x.k!==0?(m="mask",x="mask",P=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),g=createElementID(),y=createNS("filter"),y.setAttribute("id",g),C=createNS("feMorphology"),C.setAttribute("operator","erode"),C.setAttribute("in","SourceGraphic"),C.setAttribute("radius","0"),y.appendChild(C),n.appendChild(y),o.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(C=null,P=null),this.storedData[s]={elem:o,x:P,expan:C,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},l[s].mode==="i"){d=u.length;var S=createNS("g");for(f=0;f<d;f+=1)S.appendChild(u[f]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",p+"_"+c),E.appendChild(o),n.appendChild(E),S.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+c+")"),u.length=0,u.push(S)}else u.push(o);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:b},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(m),a=u.length,s=0;s<a;s+=1)this.maskElement.appendChild(u[s]);c>0&&(this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(x,"url("+getLocationHref()+"#"+p+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var s=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),s.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,i){var n=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==n){var o="";i.elem&&(t.c&&(o=e.inv?this.solidPath+n:n),i.elem.setAttribute("d",o)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=i;function t(n,s){var a=createNS("filter");return a.setAttribute("id",n),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i="SourceGraphic",n=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var l;for(t=0;t<n;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(a,e.effectsManager.effectElements[t],e,idPrefix+o,i),i=idPrefix+o,registeredEffects$1[c].countsAsEffect&&(o+=1)}l&&this.filters.push(l)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),t=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(s),this.globalData.defs.appendChild(n),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var i=this.layerId+"_"+t,n,s,a,o;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",i),l.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),n=createElementID(),s=filtersFactory.createFilter(n),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),l.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",i),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),n=createElementID(),s=filtersFactory.createFilter(n);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),s.appendChild(f);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),f.appendChild(d),this.globalData.defs.appendChild(s);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),u.appendChild(p),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),u.appendChild(p),o.appendChild(this.layerElement),u.appendChild(o)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=i}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,n,s){this.initFrame(),this.initBaseData(i,n,s),this.initTransform(i,n,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();i=this.shapeModifiers.length;var n;for(t=i-1;t>=0&&(n=this.shapeModifiers[t].processShapes(this._isFirstFrame),!n);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,n=0,s=i.length;n<s;){if(i[n].elem===t)return i[n].pos;n+=1}return 0},addProcessedElement:function(t,i){for(var n=this.processedElements,s=n.length;s;)if(s-=1,n[s].elem===t){n[s].pos=i;return}n.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,i,n){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=t.length||0,o;for(s=0;s<a;s+=1)o=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=o.k||this.k,this.dataProps[s]={n:t[s].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<i;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var n=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,n=this.o.length/2,s;i<n;){if(s=Math.abs(e[i*4]-e[t*4+i*2]),s>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i=this.data.p*4,n,s;for(t=0;t<i;t+=1)n=t%4===0?100:255,s=Math.round(this.prop.v[t]*n),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=this.data.p*4;t<i;t+=1)n=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,o,l;for(l=t.g.p*4,o=0;o<l;o+=4)a=createNS("stop"),n.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(n=e.g.p*4;n<s;n+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(i),f.push(i);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=f,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,i,n,s){if(i===0)return"";var a=t.o,o=t.i,l=t.v,c,u=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<i;c+=1)u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[c][0],o[c][1])+" "+s.applyToPointStringified(l[c][0],l[c][1]);return n&&i&&(u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,i={createRenderFunction:n};function n(d){switch(d.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}function s(d,p,b){(b||p.transform.op._mdf)&&p.transform.container.setAttribute("opacity",p.transform.op.v),(b||p.transform.mProps._mdf)&&p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function a(){}function o(d,p,b){var y,C,P,m,x,g,S=p.styles.length,E=p.lvl,T,L,_,k;for(g=0;g<S;g+=1){if(m=p.sh._mdf||b,p.styles[g].lvl<E){for(L=t.reset(),_=E-p.styles[g].lvl,k=p.transformers.length-1;!m&&_>0;)m=p.transformers[k].mProps._mdf||m,_-=1,k-=1;if(m)for(_=E-p.styles[g].lvl,k=p.transformers.length-1;_>0;)L.multiply(p.transformers[k].mProps.v),_-=1,k-=1}else L=e;if(T=p.sh.paths,C=T._length,m){for(P="",y=0;y<C;y+=1)x=T.shapes[y],x&&x._length&&(P+=buildShapeString(x,x._length,x.c,L));p.caches[g]=P}else P=p.caches[g];p.styles[g].d+=d.hd===!0?"":P,p.styles[g]._mdf=m||p.styles[g]._mdf}}function l(d,p,b){var y=p.style;(p.c._mdf||b)&&y.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&y.pElem.setAttribute("fill-opacity",p.o.v)}function c(d,p,b){u(d,p,b),f(d,p,b)}function u(d,p,b){var y=p.gf,C=p.g._hasOpacity,P=p.s.v,m=p.e.v;if(p.o._mdf||b){var x=d.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(x,p.o.v)}if(p.s._mdf||b){var g=d.t===1?"x1":"cx",S=g==="x1"?"y1":"cy";y.setAttribute(g,P[0]),y.setAttribute(S,P[1]),C&&!p.g._collapsable&&(p.of.setAttribute(g,P[0]),p.of.setAttribute(S,P[1]))}var E,T,L,_;if(p.g._cmdf||b){E=p.cst;var k=p.g.c;for(L=E.length,T=0;T<L;T+=1)_=E[T],_.setAttribute("offset",k[T*4]+"%"),_.setAttribute("stop-color","rgb("+k[T*4+1]+","+k[T*4+2]+","+k[T*4+3]+")")}if(C&&(p.g._omdf||b)){var $=p.g.o;for(p.g._collapsable?E=p.cst:E=p.ost,L=E.length,T=0;T<L;T+=1)_=E[T],p.g._collapsable||_.setAttribute("offset",$[T*2]+"%"),_.setAttribute("stop-opacity",$[T*2+1])}if(d.t===1)(p.e._mdf||b)&&(y.setAttribute("x2",m[0]),y.setAttribute("y2",m[1]),C&&!p.g._collapsable&&(p.of.setAttribute("x2",m[0]),p.of.setAttribute("y2",m[1])));else{var z;if((p.s._mdf||p.e._mdf||b)&&(z=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)),y.setAttribute("r",z),C&&!p.g._collapsable&&p.of.setAttribute("r",z)),p.e._mdf||p.h._mdf||p.a._mdf||b){z||(z=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)));var O=Math.atan2(m[1]-P[1],m[0]-P[0]),N=p.h.v;N>=1?N=.99:N<=-1&&(N=-.99);var K=z*N,B=Math.cos(O+p.a.v)*K+P[0],A=Math.sin(O+p.a.v)*K+P[1];y.setAttribute("fx",B),y.setAttribute("fy",A),C&&!p.g._collapsable&&(p.of.setAttribute("fx",B),p.of.setAttribute("fy",A))}}}function f(d,p,b){var y=p.style,C=p.d;C&&(C._mdf||b)&&C.dashStr&&(y.pElem.setAttribute("stroke-dasharray",C.dashStr),y.pElem.setAttribute("stroke-dashoffset",C.dashoffset[0])),p.c&&(p.c._mdf||b)&&y.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&y.pElem.setAttribute("stroke-opacity",p.o.v),(p.w._mdf||b)&&(y.pElem.setAttribute("stroke-width",p.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",p.w.v))}return i}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,i,n,s=this.stylesList.length,a,o=[],l=!1;for(n=0;n<s;n+=1){for(a=this.stylesList[n],l=!1,o.length=0,e=0;e<t;e+=1)i=this.shapes[e],i.styles.indexOf(a)!==-1&&(o.push(i),l=i._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,n=new SVGStyleData(e,t),s=n.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,n);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new a(this,e,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=ShapePropertyFactory.getShapeProp(this,e,n,this),a=new SVGShapeData(t,i,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)this.stylesList[i].closed||t.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,n,s,a,o){var l=[].concat(a),c,u=e.length-1,f,d,p=[],b=[],y,C,P;for(c=u;c>=0;c-=1){if(P=this.searchProcessedElement(e[c]),P?t[c]=i[P-1]:e[c]._render=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")P?t[c].style.closed=!1:t[c]=this.createStyleElement(e[c],s),e[c]._render&&t[c].style.pElem.parentNode!==n&&n.appendChild(t[c].style.pElem),p.push(t[c].style);else if(e[c].ty==="gr"){if(!P)t[c]=this.createGroupElement(e[c]);else for(d=t[c].it.length,f=0;f<d;f+=1)t[c].prevViewData[f]=t[c].it[f];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,s+1,l,o),e[c]._render&&t[c].gr.parentNode!==n&&n.appendChild(t[c].gr)}else e[c].ty==="tr"?(P||(t[c]=this.createTransformElement(e[c],n)),y=t[c].transform,l.push(y)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(P||(t[c]=this.createShapeElement(e[c],l,s)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(P?(C=t[c],C.closed=!1):(C=ShapeModifiers.getModifier(e[c].ty),C.init(this,e[c]),t[c]=C,this.shapeModifiers.push(C)),b.push(C)):e[c].ty==="rp"&&(P?(C=t[c],C.closed=!0):(C=ShapeModifiers.getModifier(e[c].ty),t[c]=C,C.init(this,e,c,t),this.shapeModifiers.push(C),o=!1),b.push(C));this.addProcessedElement(e[c],c+1)}for(u=p.length,c=0;c<u;c+=1)p[c].closed=!0;for(u=b.length,c=0;c<u;c+=1)b[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,i;for(e=0;e<t;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,i,n,s,a){this.o=e,this.sw=t,this.sc=i,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,i,n,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)i!==this.keysIndex?a=this.effectsSequence[n](a,a.t):a=this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,n=e.length;i<=n-1&&!(i===n-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],i=0,n=e.length,s,a,o=!1,l=!1,c="";i<n;)o=l,l=!1,s=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(s)?o=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(a=e.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(c=e.substr(i,2),o=!0):FontManager.isFlagEmoji(e.substr(i,4))?c=e.substr(i,4):c=e.substr(i,2))):s>56319?(a=e.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,l=!0),o?(t[t.length-1]+=c,o=!1):t.push(c),i+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,i=this.data,n=[],s,a,o,l=0,c,u=i.m.g,f=0,d=0,p=0,b=[],y=0,C=0,P,m,x=t.getFontByName(e.f),g,S=0,E=getFontProperties(x);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var T=e.tr/1e3*e.finalSize,L;if(e.sz)for(var _=!0,k=e.sz[0],$=e.sz[1],z,O;_;){O=this.buildFinalText(e.t),z=0,y=0,a=O.length,T=e.tr/1e3*e.finalSize;var N=-1;for(s=0;s<a;s+=1)L=O[s].charCodeAt(0),o=!1,O[s]===" "?N=s:(L===13||L===3)&&(y=0,o=!0,z+=e.finalLineHeight||e.finalSize*1.2),t.chars?(g=t.getCharData(O[s],x.fStyle,x.fFamily),S=o?0:g.w*e.finalSize/100):S=t.measureText(O[s],e.f,e.finalSize),y+S>k&&O[s]!==" "?(N===-1?a+=1:s=N,z+=e.finalLineHeight||e.finalSize*1.2,O.splice(s,N===s?1:0,"\r"),N=-1,y=0):(y+=S,y+=T);z+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&$<z?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,a=e.finalText.length,_=!1)}y=-T,S=0;var K=0,B;for(s=0;s<a;s+=1)if(o=!1,B=e.finalText[s],L=B.charCodeAt(0),L===13||L===3?(K=0,b.push(y),C=y>C?y:C,y=-2*T,c="",o=!0,p+=1):c=B,t.chars?(g=t.getCharData(B,x.fStyle,t.getFontByName(e.f).fFamily),S=o?0:g.w*e.finalSize/100):S=t.measureText(c,e.f,e.finalSize),B===" "?K+=S+T:(y+=S+T+K,K=0),n.push({l:S,an:S,add:f,n:o,anIndexes:[],val:c,line:p,animatorJustifyOffset:0}),u==2){if(f+=S,c===""||c===" "||s===a-1){for((c===""||c===" ")&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;l+=1,f=0}}else if(u==3){if(f+=S,c===""||s===a-1){for(c===""&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;f=0,l+=1}}else n[l].ind=l,n[l].extra=0,l+=1;if(e.l=n,C=y>C?y:C,b.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=C,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=b;var A=i.a,V,R;m=A.length;var M,I,j=[];for(P=0;P<m;P+=1){for(V=A[P],V.a.sc&&(e.strokeColorAnim=!0),V.a.sw&&(e.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(e.fillColorAnim=!0),I=0,M=V.s.b,s=0;s<a;s+=1)R=n[s],R.anIndexes[P]=I,(M==1&&R.val!==""||M==2&&R.val!==""&&R.val!==" "||M==3&&(R.n||R.val==" "||s==a-1)||M==4&&(R.n||s==a-1))&&(V.s.rn===1&&j.push(I),I+=1);i.a[P].s.totalChars=I;var W=-1,q;if(V.s.rn===1)for(s=0;s<a;s+=1)R=n[s],W!=R.anIndexes[P]&&(W=R.anIndexes[P],q=j.splice(Math.floor(Math.random()*j.length),1)[0]),R.anIndexes[P]=q}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=x.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function n(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,f=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:f=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(l,c,u,f).get,p=0,b=this.finalS,y=this.finalE,C=this.data.sh;if(C===2)y===b?p=o>=y?1:0:p=e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p=d(p);else if(C===3)y===b?p=o>=y?0:1:p=1-e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p=d(p);else if(C===4)y===b?p=0:(p=e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p<.5?p*=2:p=1-2*(p-.5)),p=d(p);else if(C===5){if(y===b)p=0;else{var P=y-b;o=t(e(0,o+.5-b),y-b);var m=-P/2+o,x=P/2;p=Math.sqrt(1-m*m/(x*x))}p=d(p)}else C===6?(y===b?p=0:(o=t(e(0,o+.5-b),y-b),p=(1+Math.cos(Math.PI+Math.PI*2*o/(y-b)))/2),p=d(p)):(o>=i(b)&&(o-b<0?p=e(0,t(t(y,1)-(b-o),1)):p=e(0,t(y-o,1))),p=d(p));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var S=.5-g*.5;p<S?p=0:(p=(p-S)/g,p>1&&(p=1))}return p*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,f=this.e.v/l+c;if(u>f){var d=u;u=f,f=d}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],n);function s(a,o,l){return new n(a,o)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,i){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,i):n,rx:a.rx?s(e,a.rx,0,degToRads,i):n,ry:a.ry?s(e,a.ry,0,degToRads,i):n,sk:a.sk?s(e,a.sk,0,degToRads,i):n,sa:a.sa?s(e,a.sa,0,degToRads,i):n,s:a.s?s(e,a.s,1,.01,i):n,a:a.a?s(e,a.a,1,0,i):n,o:a.o?s(e,a.o,0,.01,i):n,p:a.p?s(e,a.p,1,0,i):n,sw:a.sw?s(e,a.sw,0,0,i):n,sc:a.sc?s(e,a.sc,1,0,i):n,fc:a.fc?s(e,a.fc,1,0,i):n,fh:a.fh?s(e,a.fh,0,0,i):n,fs:a.fs?s(e,a.fs,0,.01,i):n,fb:a.fb?s(e,a.fb,0,.01,i):n,t:a.t?s(e,a.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,i,n=PropertyFactory.getProp;for(e=0;e<t;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,s=this._textData,a=this.mHelper,o=this._renderType,l=this.renderedLetters.length,c,u,f,d,p=e.l,b,y,C,P,m,x,g,S,E,T,L,_,k,$,z;if(this._hasMaskedPath){if(z=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=z.v;this._pathData.r.v&&(O=O.reverse()),b={tLength:0,segments:[]},d=O._length-1;var N;for(_=0,f=0;f<d;f+=1)N=bez.buildBezierData(O.v[f],O.v[f+1],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[f+1][0]-O.v[f+1][0],O.i[f+1][1]-O.v[f+1][1]]),b.tLength+=N.segmentLength,b.segments.push(N),_+=N.segmentLength;f=d,z.v.c&&(N=bez.buildBezierData(O.v[f],O.v[0],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),b.tLength+=N.segmentLength,b.segments.push(N),_+=N.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,y=this._pathData.f.v,g=0,x=1,P=0,m=!0,T=b.segments,y<0&&z.v.c)for(b.tLength<Math.abs(y)&&(y=-Math.abs(y)%b.tLength),g=T.length-1,E=T[g].points,x=E.length-1;y<0;)y+=E[x].partialLength,x-=1,x<0&&(g-=1,E=T[g].points,x=E.length-1);E=T[g].points,S=E[x-1],C=E[x],L=C.partialLength}d=p.length,c=0,u=0;var K=e.finalSize*1.2*.714,B=!0,A,V,R,M,I;M=n.length;var j,W=-1,q,X,ee,re=y,ce=g,he=x,me=-1,pe,se,fe,ie,Y,Ee,Le,be,ye="",Pe=this.defaultPropsArray,Ce;if(e.j===2||e.j===1){var ve=0,xe=0,we=e.j===2?-.5:-1,Se=0,Me=!0;for(f=0;f<d;f+=1)if(p[f].n){for(ve&&(ve+=xe);Se<f;)p[Se].animatorJustifyOffset=ve,Se+=1;ve=0,Me=!0}else{for(R=0;R<M;R+=1)A=n[R].a,A.t.propType&&(Me&&e.j===2&&(xe+=A.t.v*we),V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?ve+=A.t.v*j[0]*we:ve+=A.t.v*j*we);Me=!1}for(ve&&(ve+=xe);Se<f;)p[Se].animatorJustifyOffset=ve,Se+=1}for(f=0;f<d;f+=1){if(a.reset(),pe=1,p[f].n)c=0,u+=e.yOffset,u+=B?1:0,y=re,B=!1,this._hasMaskedPath&&(g=ce,x=he,E=T[g].points,S=E[x-1],C=E[x],L=C.partialLength,P=0),ye="",be="",Ee="",Ce="",Pe=this.defaultPropsArray;else{if(this._hasMaskedPath){if(me!==p[f].line){switch(e.j){case 1:y+=_-e.lineWidths[p[f].line];break;case 2:y+=(_-e.lineWidths[p[f].line])/2;break}me=p[f].line}W!==p[f].ind&&(p[W]&&(y+=p[W].extra),y+=p[f].an/2,W=p[f].ind),y+=i[0]*p[f].an*.005;var Re=0;for(R=0;R<M;R+=1)A=n[R].a,A.p.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?Re+=A.p.v[0]*j[0]:Re+=A.p.v[0]*j),A.a.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?Re+=A.a.v[0]*j[0]:Re+=A.a.v[0]*j);for(m=!0,this._pathData.a.v&&(y=p[0].an*.5+(_-this._pathData.f.v-p[0].an*.5-p[p.length-1].an*.5)*W/(d-1),y+=this._pathData.f.v);m;)P+L>=y+Re||!E?(k=(y+Re-P)/C.partialLength,X=S.point[0]+(C.point[0]-S.point[0])*k,ee=S.point[1]+(C.point[1]-S.point[1])*k,a.translate(-i[0]*p[f].an*.005,-(i[1]*K)*.01),m=!1):E&&(P+=C.partialLength,x+=1,x>=E.length&&(x=0,g+=1,T[g]?E=T[g].points:z.v.c?(x=0,g=0,E=T[g].points):(P-=C.partialLength,E=null)),E&&(S=C,C=E[x],L=C.partialLength));q=p[f].an/2-p[f].add,a.translate(-q,0,0)}else q=p[f].an/2-p[f].add,a.translate(-q,0,0),a.translate(-i[0]*p[f].an*.005,-i[1]*K*.01,0);for(R=0;R<M;R+=1)A=n[R].a,A.t.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?j.length?y+=A.t.v*j[0]:y+=A.t.v*j:j.length?c+=A.t.v*j[0]:c+=A.t.v*j));for(e.strokeWidthAnim&&(fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(ie=[e.fc[0],e.fc[1],e.fc[2]]),R=0;R<M;R+=1)A=n[R].a,A.a.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?a.translate(-A.a.v[0]*j[0],-A.a.v[1]*j[1],A.a.v[2]*j[2]):a.translate(-A.a.v[0]*j,-A.a.v[1]*j,A.a.v[2]*j));for(R=0;R<M;R+=1)A=n[R].a,A.s.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?a.scale(1+(A.s.v[0]-1)*j[0],1+(A.s.v[1]-1)*j[1],1):a.scale(1+(A.s.v[0]-1)*j,1+(A.s.v[1]-1)*j,1));for(R=0;R<M;R+=1){if(A=n[R].a,V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),A.sk.propType&&(j.length?a.skewFromAxis(-A.sk.v*j[0],A.sa.v*j[1]):a.skewFromAxis(-A.sk.v*j,A.sa.v*j)),A.r.propType&&(j.length?a.rotateZ(-A.r.v*j[2]):a.rotateZ(-A.r.v*j)),A.ry.propType&&(j.length?a.rotateY(A.ry.v*j[1]):a.rotateY(A.ry.v*j)),A.rx.propType&&(j.length?a.rotateX(A.rx.v*j[0]):a.rotateX(A.rx.v*j)),A.o.propType&&(j.length?pe+=(A.o.v*j[0]-pe)*j[0]:pe+=(A.o.v*j-pe)*j),e.strokeWidthAnim&&A.sw.propType&&(j.length?fe+=A.sw.v*j[0]:fe+=A.sw.v*j),e.strokeColorAnim&&A.sc.propType)for(Y=0;Y<3;Y+=1)j.length?se[Y]+=(A.sc.v[Y]-se[Y])*j[0]:se[Y]+=(A.sc.v[Y]-se[Y])*j;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(Y=0;Y<3;Y+=1)j.length?ie[Y]+=(A.fc.v[Y]-ie[Y])*j[0]:ie[Y]+=(A.fc.v[Y]-ie[Y])*j;A.fh.propType&&(j.length?ie=addHueToRGB(ie,A.fh.v*j[0]):ie=addHueToRGB(ie,A.fh.v*j)),A.fs.propType&&(j.length?ie=addSaturationToRGB(ie,A.fs.v*j[0]):ie=addSaturationToRGB(ie,A.fs.v*j)),A.fb.propType&&(j.length?ie=addBrightnessToRGB(ie,A.fb.v*j[0]):ie=addBrightnessToRGB(ie,A.fb.v*j))}}for(R=0;R<M;R+=1)A=n[R].a,A.p.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),this._hasMaskedPath?j.length?a.translate(0,A.p.v[1]*j[0],-A.p.v[2]*j[1]):a.translate(0,A.p.v[1]*j,-A.p.v[2]*j):j.length?a.translate(A.p.v[0]*j[0],A.p.v[1]*j[1],-A.p.v[2]*j[2]):a.translate(A.p.v[0]*j,A.p.v[1]*j,-A.p.v[2]*j));if(e.strokeWidthAnim&&(Ee=fe<0?0:fe),e.strokeColorAnim&&(Le="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(be="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,i[1]*K*.01+u,0),this._pathData.p.v){$=(C.point[1]-S.point[1])/(C.point[0]-S.point[0]);var Te=Math.atan($)*180/Math.PI;C.point[0]<S.point[0]&&(Te+=180),a.rotate(-Te*Math.PI/180)}a.translate(X,ee,0),y-=i[0]*p[f].an*.005,p[f+1]&&W!==p[f+1].ind&&(y+=p[f].an/2,y+=e.tr*.001*e.finalSize)}else{switch(a.translate(c,u,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line]),0,0);break;case 2:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(q,0,0),a.translate(i[0]*p[f].an*.005,i[1]*K*.01,0),c+=p[f].l+e.tr*.001*e.finalSize}o==="html"?ye=a.toCSS():o==="svg"?ye=a.to2dCSS():Pe=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],Ce=pe}l<=f?(I=new LetterProps(Ce,Ee,Le,be,ye,Pe),this.renderedLetters.push(I),l+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[f],this.lettersChangedFlag=I.update(Ce,Ee,Le,be,ye,Pe)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,n=t.length,s,a="";for(i=0;i<n;i+=1)t[i].ty==="sh"&&(s=t[i].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,n,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}t.translate(n,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,n=[],s="";t<i;)e[t]==="\r"||e[t]===""?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",i.t);var o=i.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,u=this.mHelper,f="",d=this.data.singleShape,p=0,b=0,y=!0,C=i.tr*.001*i.finalSize;if(d&&!l&&!i.sz){var P=this.textContainer,m="start";switch(i.j){case 1:m="end";break;case 2:m="middle";break;default:m="start";break}P.setAttribute("text-anchor",m),P.setAttribute("letter-spacing",C);var x=this.buildTextContents(i.finalText);for(t=x.length,b=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=x[e],c.setAttribute("x",0),c.setAttribute("y",b),c.style.display="inherit",P.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,b+=i.finalLineHeight;this.layerElement.appendChild(P)}else{var g=this.textSpans.length,S;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||e===0){if(c=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var E=createNS("g");c.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),d&&(o[e].n&&(p=-C,b+=i.yOffset,b+=y?1:0,y=!1),this.applyTextPropertiesToMatrix(i,u,o[e].line,p,b),p+=o[e].l||0,p+=C),l){S=this.globalData.fontManager.getCharData(i.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var T;if(S.t===1)T=new SVGCompElement(S.data,this.globalData,this);else{var L=emptyShapeData;S.data&&S.data.shapes&&(L=this.buildShapeData(S.data,i.finalSize)),T=new SVGShapeElement(L,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=T,T._debug=!0,T.prepareFrame(0),T.renderFrame(),this.textSpans[e].childSpan.appendChild(T.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=o[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&c&&c.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,a,o;for(e=0;e<t;e+=1)n[e].n||(s=i[e],a=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();i.setAttribute("id",s),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var s=t[n],a=s.getMatte(this.layers[e].tt);i.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var n=0,s;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),i+=s}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var i,n=t.length,s="_";for(i=0;i<n;i+=1)s+=t[i].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,i){for(var n=0,s=t.transforms.length,a=i;n<s&&!i;){if(t.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(t.finalTransform.reset(),n=s-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=a},processSequences:function(t){var i,n=this.sequenceList.length;for(i=0;i<n;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",i=null,n=null,s=null;function a(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",t),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(f),c.appendChild(u),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function o(){i||(s=a(),document.body.appendChild(s),i=createTag("canvas"),n=i.getContext("2d"),n.filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function l(c){return i||o(),i.width=c.width,i.height=c.height,n.filter="url(#"+t+")",i}return{load:o,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,i=e.data.ef?e.data.ef.length:0;this.filters=[];var n;for(t=0;t<i;t+=1){n=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;n=new a(e.effectsManager.effectElements[t],e)}n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,n=this.masksProperties.length,s=!1;for(i=0;i<n;i+=1)this.masksProperties[i].mode!=="n"&&(s=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,i,n=this.masksProperties.length,s,a,o;for(t.beginPath(),i=0;i<n;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[i].v,s=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(s[0],s[1]);var l,c=o._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(o.o[l-1],o.i[l],o.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(o.o[l-1],o.i[0],o.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i);var n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=i.length,l;for(a=0;a<o;a+=1)i[a].closed||(l={transforms:n.addTransformSequence(i[a].transforms),trNodes:[]},this.styledShapes.push(l),i[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(i.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,n,s){var a,o=e.length-1,l,c,u=[],f=[],d,p,b,y=[].concat(s);for(a=o;a>=0;a-=1){if(d=this.searchProcessedElement(e[a]),d?t[a]=i[d-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")d?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],y),u.push(t[a].style);else if(e[a].ty==="gr"){if(!d)t[a]=this.createGroupElement(e[a]);else for(c=t[a].it.length,l=0;l<c;l+=1)t[a].prevViewData[l]=t[a].it[l];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,y)}else e[a].ty==="tr"?(d||(b=this.createTransformElement(e[a]),t[a]=b),y.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?d||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(d?(p=t[a],p.closed=!1):(p=ShapeModifiers.getModifier(e[a].ty),p.init(this,e[a]),t[a]=p,this.shapeModifiers.push(p)),f.push(p)):e[a].ty==="rp"&&(d?(p=t[a],p.closed=!0):(p=ShapeModifiers.getModifier(e[a].ty),t[a]=p,p.init(this,e,a,t),this.shapeModifiers.push(p),n=!1),f.push(p));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),o=f.length,a=0;a<o;a+=1)f[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,i,n,s,a,o,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,d;for(e=0;e<t;e+=1)if(d=this.stylesList[e],f=d.type,!((f==="st"||f==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),o=d.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?d.co:d.grd),c.ctxLineWidth(d.wi),c.ctxLineCap(d.lc),c.ctxLineJoin(d.lj),c.ctxMiterLimit(d.ml||0)):c.ctxFillStyle(f==="fl"?d.co:d.grd),c.ctxOpacity(d.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(d.preTransforms.finalTransform.props),n=o.length,i=0;i<n;i+=1){for((f==="st"||f==="gs")&&(u.beginPath(),d.da&&(u.setLineDash(d.da),u.lineDashOffset=d.do)),l=o[i].trNodes,a=l.length,s=0;s<a;s+=1)l[s].t==="m"?u.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?u.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):u.closePath();(f==="st"||f==="gs")&&(c.ctxStroke(),d.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(d.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,n){var s,a=t.length-1,o;for(o=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(o=i[s].transform,this.renderShapeTransform(e,o)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],i[s]):t[s].ty==="fl"?this.renderFill(t[s],i[s],o):t[s].ty==="st"?this.renderStroke(t[s],i[s],o):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],i[s],o):t[s].ty==="gr"?this.renderShape(o,t[s].it,i[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i=e.trNodes,n=t.paths,s,a,o,l=n._length;i.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var u=n.shapes[o];if(u&&u.v){for(a=u._length,s=1;s<a;s+=1)s===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[s],u.v[s])});a===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&a&&(i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[0],u.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var i,n=t.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var n=t.style,s;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(e.t===1)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var d=c*f,p=Math.cos(u+t.a.v)*d+o[0],b=Math.sin(u+t.a.v)*d+o[1];s=a.createRadialGradient(p,b,0,o[0],o[1],c)}var y,C=e.g.p,P=t.g.c,m=1;for(y=0;y<C;y+=1)t.g._hasOpacity&&t.g._collapsable&&(m=t.g.o[y*2+1]),s.addColorStop(P[y*4]/100,"rgba("+P[y*4+1]+","+P[y*4+2]+","+P[y*4+3]+","+m+")");n.grd=s}n.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n=this.globalData.fontManager.getFontByName(e.f),s,a,o=e.l,l=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var c,u,f,d,p,b,y,C,P,m,x=this.data.singleShape,g=e.tr*.001*e.finalSize,S=0,E=0,T=!0,L=0;for(s=0;s<a;s+=1){c=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),x&&o[s].n&&(S=-g,E+=e.yOffset,E+=T?1:0,T=!1),p=u.shapes?u.shapes[0].it:[],y=p.length,l.scale(e.finalSize/100,e.finalSize/100),x&&this.applyTextPropertiesToMatrix(e,l,o[s].line,S,E),P=createSizedArray(y-1);var _=0;for(b=0;b<y;b+=1)if(p[b].ty==="sh"){for(d=p[b].ks.k.i.length,C=p[b].ks.k,m=[],f=1;f<d;f+=1)f===1&&m.push(l.applyToX(C.v[0][0],C.v[0][1],0),l.applyToY(C.v[0][0],C.v[0][1],0)),m.push(l.applyToX(C.o[f-1][0],C.o[f-1][1],0),l.applyToY(C.o[f-1][0],C.o[f-1][1],0),l.applyToX(C.i[f][0],C.i[f][1],0),l.applyToY(C.i[f][0],C.i[f][1],0),l.applyToX(C.v[f][0],C.v[f][1],0),l.applyToY(C.v[f][0],C.v[f][1],0));m.push(l.applyToX(C.o[f-1][0],C.o[f-1][1],0),l.applyToY(C.o[f-1][0],C.o[f-1][1],0),l.applyToX(C.i[0][0],C.i[0][1],0),l.applyToY(C.i[0][0],C.i[0][1],0),l.applyToX(C.v[0][0],C.v[0][1],0),l.applyToY(C.v[0][0],C.v[0][1],0)),P[_]=m,_+=1}x&&(S+=o[s].l,S+=g),this.textSpans[L]?this.textSpans[L].elem=P:this.textSpans[L]={elem:P},L+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,i,n,s,a,o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;i=c.length;var u,f=null,d=null,p=null,b,y,C=this.globalData.renderer;for(t=0;t<i;t+=1)if(!c[t].n){if(u=l[t],u&&(C.save(),C.ctxTransform(u.p),C.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(C.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,C.ctxFillStyle(this.values.fill)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(y=b[n],o=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(y[a],y[a+1],y[a+2],y[a+3],y[a+4],y[a+5]);this.globalData.canvasContext.closePath(),C.ctxFill()}if(this.stroke){for(u&&u.sw?p!==u.sw&&(p=u.sw,C.ctxLineWidth(u.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,C.ctxLineWidth(this.values.sWidth)),u&&u.sc?d!==u.sc&&(d=u.sc,C.ctxStrokeStyle(u.sc)):d!==this.values.stroke&&(d=this.values.stroke,C.ctxStrokeStyle(this.values.stroke)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(y=b[n],o=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(y[a],y[a+1],y[a+2],y[a+3],y[a+4],y[a+5]);this.globalData.canvasContext.closePath(),C.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,a=this.assetData.w/this.assetData.h,o,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&c==="xMidYMid slice"||s<a&&c!=="xMidYMid slice"?(l=n,o=l*a):(o=i,l=o/a),t.drawImage(this.img,(i-o)/2,(n-l)/2,o,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,n){this.canvasContext.fillRect(e,t,i,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var i,n;e?(i=e,n=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",u=c.substr(0,4),f=c.substr(4);s=i/n,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&l==="meet"||a<s&&l==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],i=t.transform,n,s=this.cTr.props;for(n=0;n<16;n+=1)s[n]=i[n];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)i.transform[n]=t[n];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=i.opacity,s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,s.lineWidth=i.lineWidth,s.lineCap=i.lineCap,s.lineJoin=i.lineJoin,s.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,i=this.layers.length;for(t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();t.transform=i,t.webkitTransform=i}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i=e.sh.v,n=e.transformers,s,a=i._length,o,l,c,u;if(!(a<=1)){for(s=0;s<a-1;s+=1)o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[s+1]),u=this.getTransformedPoint(n,i.v[s+1]),this.checkBounds(o,l,c,u,t);i.c&&(o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[0]),u=this.getTransformedPoint(n,i.v[0]),this.checkBounds(o,l,c,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,n,s){this.getBoundsOfCurve(e,t,i,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,n){for(var s=[[e[0],n[0]],[e[1],n[1]]],a,o,l,c,u,f,d,p=0;p<2;++p)o=6*e[p]-12*t[p]+6*i[p],a=-3*e[p]+9*t[p]-9*i[p]+3*n[p],l=3*t[p]-3*e[p],o|=0,a|=0,l|=0,a===0&&o===0||(a===0?(c=-l/o,c>0&&c<1&&s[p].push(this.calculateF(c,e,t,i,n,p))):(u=o*o-4*l*a,u>=0&&(f=(-o+bmSqrt(u))/(2*a),f>0&&f<1&&s[p].push(this.calculateF(f,e,t,i,n,p)),d=(-o-bmSqrt(u))/(2*a),d>0&&d<1&&s[p].push(this.calculateF(d,e,t,i,n,p)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,i,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*i[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>i&&(i=s)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}};function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var o,l,c=e.l;l=c.length;var u,f,d,p=this.mHelper,b,y="",C=0;for(o=0;o<l;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[C]?u=this.textPaths[C]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[C]?(f=this.textSpans[C],d=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,d=createNS("svg"),d.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[C]?this.textPaths[C]:createNS("text"):this.textSpans[C]?(f=this.textSpans[C],u=this.textPaths[C]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var P=this.globalData.fontManager.getCharData(e.finalText[o],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),m;if(P?m=P.data:m=null,p.reset(),m&&m.shapes&&m.shapes.length&&(b=m.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),y=this.createPathShape(p,b),u.setAttribute("d",y)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),m&&m.shapes){document.body.appendChild(d);var x=d.getBBox();d.setAttribute("width",x.width+2),d.setAttribute("height",x.height+2),d.setAttribute("viewBox",x.x-1+" "+(x.y-1)+" "+(x.width+2)+" "+(x.height+2));var g=d.style,S="translate("+(x.x-1)+"px,"+(x.y-1)+"px)";g.transform=S,g.webkitTransform=S,c[o].yOffset=x.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);f.appendChild(d)}}else if(u.textContent=c[o].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(f);var E=u.style,T="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=T,E.webkitTransform=T}this.isMasked?this.textSpans[C]=u:this.textSpans[C]=f,this.textSpans[C].style.display="block",this.textPaths[C]=u,C+=1}for(;C<this.textSpans.length;)this.textSpans[C].style.display="none",C+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,n,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;n=o.length;var l,c,u;for(i=0;i<n;i+=1)o[i].n?s+=1:(c=this.textSpans[i],u=this.textPaths[i],l=a[s],s+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var d=1;if(this.currentBBox.w!==f.width+d*2||this.currentBBox.h!==f.height+d*2||this.currentBBox.x!==f.x-d||this.currentBBox.y!==f.y-d){this.currentBBox.w=f.width+d*2,this.currentBBox.h=f.height+d*2,this.currentBBox.x=f.x-d,this.currentBBox.y=f.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}};function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,i,n,s;for(e=0;e<t;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){n=i.perspectiveElem.style,s=i.container.style;var a=this.pe.v+"px",o="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,n.transform=l,n.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,i;if(this.hierarchy)for(i=this.hierarchy.length,t=0;t<i;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=this.hierarchy.length-1,t=i;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],l=Math.sqrt(o[2]*o[2]+o[0]*o[0]),c=Math.atan2(o[1],l),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var d,p,b;for(t=0;t<i;t+=1)if(d=this.comp.threeDElements[t],d.type==="3d"){if(f){var y=this.mat.toCSS();b=d.container.style,b.transform=y,b.webkitTransform=y}this.pe._mdf&&(p=d.perspectiveElem.style,p.perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var n=this.layers[t];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var s=0,a,o,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(o=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),a=l||a),s+=1;a?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,a):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i=createTag("div"),n,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),t==="3d"){n=i.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o,s=a.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}i.appendChild(a);var c={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,i,n="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(n!=="2d"&&(n="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,n=this.threeDElements.length;i<n;){if(t<=this.threeDElements[i].endPos){for(var s=this.threeDElements[i].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[i].container.insertBefore(e,a):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,i=e/t,n=this.globalData.compSize.w/this.globalData.compSize.h,s,a,o,l;n>i?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,o=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,i,n=this.threeDElements.length;for(i=0;i<n;i+=1){var s=this.threeDElements[i].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,n=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i=0,n;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(i){for(var n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===i||e.layers[n].ind===i)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(i){return typeof i}:_typeof$2=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(e)}function seedRandom(e,t){var i=this,n=256,s=6,a=52,o="random",l=t.pow(n,s),c=t.pow(2,a),u=c*2,f=n-1,d;function p(g,S,E){var T=[];S=S===!0?{entropy:!0}:S||{};var L=P(C(S.entropy?[g,x(e)]:g===null?m():g,3),T),_=new b(T),k=function(){for(var z=_.g(s),O=l,N=0;z<c;)z=(z+N)*n,O*=n,N=_.g(1);for(;z>=u;)z/=2,O/=2,N>>>=1;return(z+N)/O};return k.int32=function(){return _.g(4)|0},k.quick=function(){return _.g(4)/4294967296},k.double=k,P(x(_.S),e),(S.pass||E||function($,z,O,N){return N&&(N.S&&y(N,_),$.state=function(){return y(_,{})}),O?(t[o]=$,z):$})(k,L,"global"in S?S.global:this==t,S.state)}t["seed"+o]=p;function b(g){var S,E=g.length,T=this,L=0,_=T.i=T.j=0,k=T.S=[];for(E||(g=[E++]);L<n;)k[L]=L++;for(L=0;L<n;L++)k[L]=k[_=f&_+g[L%E]+(S=k[L])],k[_]=S;T.g=function($){for(var z,O=0,N=T.i,K=T.j,B=T.S;$--;)z=B[N=f&N+1],O=O*n+B[f&(B[N]=B[K=f&K+z])+(B[K]=z)];return T.i=N,T.j=K,O}}function y(g,S){return S.i=g.i,S.j=g.j,S.S=g.S.slice(),S}function C(g,S){var E=[],T=_typeof$2(g),L;if(S&&T=="object")for(L in g)try{E.push(C(g[L],S-1))}catch{}return E.length?E:T=="string"?g:g+"\0"}function P(g,S){for(var E=g+"",T,L=0;L<E.length;)S[f&L]=f&(T^=S[f&L]*19)+E.charCodeAt(L++);return x(S)}function m(){try{var g=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(g),x(g)}catch{var S=i.navigator,E=S&&S.plugins;return[+new Date,i,E,i.screen,x(e)]}}function x(g){return String.fromCharCode.apply(0,g)}P(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(i){return typeof i}:_typeof$1=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,n=e.length,s=[];for(i=0;i<n;i+=1)s[i]=-e[i];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t)||i==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t))return i==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e*t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e/t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var n=i;i=t,t=n}return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var i,n=Math.min(e.length,t.length),s=0;for(i=0;i<n;i+=1)s+=Math.pow(t[i]-e[i],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],i=e[1],n=e[2],s=Math.max(t,i,n),a=Math.min(t,i,n),o,l,c=(s+a)/2;if(s===a)o=0,l=0;else{var u=s-a;switch(l=c>.5?u/(2-s-a):u/(s+a),s){case t:o=(i-n)/u+(i<n?6:0);break;case i:o=(n-t)/u+2;break;case n:o=(t-i)/u+4;break}o/=6}return[o,l,c,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t=e[0],i=e[1],n=e[2],s,a,o;if(i===0)s=n,o=n,a=n;else{var l=n<.5?n*(1+i):n+i-n*i,c=2*n-l;s=hue2rgb(c,l,t+1/3),a=hue2rgb(c,l,t),o=hue2rgb(c,l,t-1/3)}return[s,a,o,e[3]]}function linear(e,t,i,n,s){if((n===void 0||s===void 0)&&(n=t,s=i,t=0,i=1),i<t){var a=i;i=t,t=a}if(e<=t)return n;if(e>=i)return s;var o=i===t?0:(e-t)/(i-t);if(!n.length)return n+(s-n)*o;var l,c=n.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=n[l]+(s[l]-n[l])*o;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var i,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(i=0;i<n;i+=1)s[i]=e[i]+a*(t[i]-e[i]);return s}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,i,n){var s,a=e.length,o=shapePool.newElement();o.setPathData(!!n,a);var l=[0,0],c,u;for(s=0;s<a;s+=1)c=t&&t[s]?t[s]:l,u=i&&i[s]?i[s]:l,o.setTripleAt(e[s][0],e[s][1],u[0]+e[s][0],u[1]+e[s][1],c[0]+e[s][0],c[1]+e[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,i){var n,s,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);t=5;var l=Math.floor(time*t);for(n=0,s=0;n<l;){for(s=0;s<a;s+=1)o[s]+=-i+i*2*BMMath.random();n+=1}var c=time*t,u=c-Math.floor(c),f=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)f[s]=this.pv[s]+o[s]+(-i+i*2*BMMath.random())*u;return f}return this.pv+o[0]+(-i+i*2*BMMath.random())*u}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,s=-Math.atan2(i[1],i[2])/degToRads;return[s,n,0]}function easeOut(e,t,i,n,s){return applyEase(easeOutBez,e,t,i,n,s)}function easeIn(e,t,i,n,s){return applyEase(easeInBez,e,t,i,n,s)}function ease(e,t,i,n,s){return applyEase(easeInOutBez,e,t,i,n,s)}function applyEase(e,t,i,n,s,a){s===void 0?(s=i,a=n):t=(t-i)/(n-i),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(s)){var l,c=s.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(a[l]-s[l])*o+s[l];return u}return(a-s)*o+s}function nearestKey(e){var t,i=data.k.length,n,s;if(!data.k.length||typeof data.k[0]=="number")n=0,s=0;else if(n=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)n=1,s=data.k[0].t;else{for(t=0;t<i-1;t+=1)if(e===data.k[t].t){n=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,s=data.k[t+1].t):(n=t+1,s=data.k[t].t);break}n===-1&&(n=t+1,s=data.k[t].t)}var a={};return a.index=n,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,i,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,i=0;i<n;i+=1)t[i]=s[i],t.value[i]=s[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(i){var n=0,s=[];function a(){n+=1}function o(){n-=1,n===0&&c()}function l(u){s.indexOf(u)===-1&&s.push(u)}function c(){var u,f=s.length;for(u=0;u<f;u+=1)s[u].release();s.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=a,i.renderer.globalData.popExpression=o,i.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(i,n){this._mask=i,this._data=n}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(n){var s=createSizedArray(n.viewData.length),a,o=n.viewData.length;for(a=0;a<o;a+=1)s[a]=new e(n.viewData[a],n.masksProperties[a]);var l=function(u){for(a=0;a<o;){if(n.masksProperties[a].nm===u)return s[a];a+=1}return null};return l};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(o,l,c){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(u){if(!o.numKeys)return 0;var f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var d=c==="unidimensional"?new Number(f):Object.assign({},f);return d.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,d.value=c==="unidimensional"?f[0]:f,d},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function n(o){(!o||!("pv"in o))&&(o=e);var l=1/o.mult,c=o.pv*l,u=new Number(c);return u.value=c,i(u,o,"unidimensional"),function(){return o.k&&o.getValue(),c=o.v*l,u.value!==c&&(u=new Number(c),u.value=c,i(u,o,"unidimensional")),u}}function s(o){(!o||!("pv"in o))&&(o=t);var l=1/o.mult,c=o.data&&o.data.l||o.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,i(u,o,"multidimensional"),function(){o.k&&o.getValue();for(var d=0;d<c;d+=1)f[d]=o.v[d]*l,u[d]=f[d];return u}}function a(){return e}return function(o){return o?o.propType==="unidimensional"?n(o):s(o):a}}(),TransformExpressionInterface=function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var i,n,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[i(),n(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(u);d.clone(f)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(f)}return f}function t(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,u)}function i(u,f){var d=this.getMatrix(f);return this.applyPoint(d,u)}function n(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,u)}function s(u,f){var d=this.getMatrix(f);return this.invertPoint(d,u)}function a(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function d(C){b.mask=new MaskManagerInterface(C,u)}function p(C){b.effect=C}function b(C){switch(C){case"ADBE Root Vectors Group":case"Contents":case 2:return b.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return b.effect;case"ADBE Text Properties":return b.textInterface;default:return null}}b.getMatrix=e,b.invertPoint=o,b.applyPoint=a,b.toWorld=i,b.toWorldVec=t,b.fromWorld=s,b.fromWorldVec=n,b.toComp=i,b.fromComp=l,b.sampleImage=c,b.sourceRectAtTime=u.sourceRectAtTime.bind(u),b._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var y=getDescriptor(f,"anchorPoint");return Object.defineProperties(b,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:y,anchor_point:y,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),b.startTime=u.data.st,b.index=u.data.ind,b.source=u.data.refId,b.height=u.data.ty===0?u.data.h:100,b.width=u.data.ty===0?u.data.w:100,b.inPoint=u.data.ip/u.comp.globalData.frameRate,b.outPoint=u.data.op/u.comp.globalData.frameRate,b._name=u.data.nm,b.registerMaskInterface=d,b.registerEffectsInterface=p,b}}(),propertyGroupFactory=function(){return function(e,t){return function(i){return i=i===void 0?1:i,i<=0?e:t(i-1)}}}(),PropertyInterface=function(){return function(e,t){var i={_name:e};function n(s){return s=s===void 0?1:s,s<=0?i:t(s-1)}return n}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var o=[],l=s.data.ef,c,u=s.effectsManager.effectElements.length;for(c=0;c<u;c+=1)o.push(i(l[c],s.effectsManager.effectElements[c],a,s));var f=s.data.ef||[],d=function(b){for(c=0,u=f.length;c<u;){if(b===f[c].nm||b===f[c].mn||b===f[c].ix)return o[c];c+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return f.length}}),d}return null}function i(s,a,o,l){function c(b){for(var y=s.ef,C=0,P=y.length;C<P;){if(b===y[C].nm||b===y[C].mn||b===y[C].ix)return y[C].ty===5?f[C]:f[C]();C+=1}throw new Error}var u=propertyGroupFactory(c,o),f=[],d,p=s.ef.length;for(d=0;d<p;d+=1)s.ef[d].ty===5?f.push(i(s.ef[d],a.effectElements[d],a.effectElements[d].propertyGroup,l)):f.push(n(a.effectElements[d],s.ef[d].ty,l,u));return s.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:u}}),c.enabled=s.en!==0,c.active=c.enabled,c}function n(s,a,o,l){var c=ExpressionPropertyInterface(s.p);function u(){return a===10?o.comp.compInterface(s.p.v):c()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(t,i,n){var s=i.sh;function a(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?a.path:null}var o=propertyGroupFactory(a,n);return s.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),a}}(),ShapeExpressionInterface=function(){function e(y,C,P){var m=[],x,g=y?y.length:0;for(x=0;x<g;x+=1)y[x].ty==="gr"?m.push(i(y[x],C[x],P)):y[x].ty==="fl"?m.push(n(y[x],C[x],P)):y[x].ty==="st"?m.push(o(y[x],C[x],P)):y[x].ty==="tm"?m.push(l(y[x],C[x],P)):y[x].ty==="tr"||(y[x].ty==="el"?m.push(u(y[x],C[x],P)):y[x].ty==="sr"?m.push(f(y[x],C[x],P)):y[x].ty==="sh"?m.push(ShapePathInterface(y[x],C[x],P)):y[x].ty==="rc"?m.push(d(y[x],C[x],P)):y[x].ty==="rd"?m.push(p(y[x],C[x],P)):y[x].ty==="rp"?m.push(b(y[x],C[x],P)):y[x].ty==="gf"?m.push(s(y[x],C[x],P)):m.push(a(y[x],C[x])));return m}function t(y,C,P){var m,x=function(E){for(var T=0,L=m.length;T<L;){if(m[T]._name===E||m[T].mn===E||m[T].propertyIndex===E||m[T].ix===E||m[T].ind===E)return m[T];T+=1}return typeof E=="number"?m[E-1]:null};x.propertyGroup=propertyGroupFactory(x,P),m=e(y.it,C.it,x.propertyGroup),x.numProperties=m.length;var g=c(y.it[y.it.length-1],C.it[C.it.length-1],x.propertyGroup);return x.transform=g,x.propertyIndex=y.cix,x._name=y.nm,x}function i(y,C,P){var m=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return m.content;default:return m.transform}};m.propertyGroup=propertyGroupFactory(m,P);var x=t(y,C,m.propertyGroup),g=c(y.it[y.it.length-1],C.it[C.it.length-1],m.propertyGroup);return m.content=x,m.transform=g,Object.defineProperty(m,"_name",{get:function(){return y.nm}}),m.numProperties=y.np,m.propertyIndex=y.ix,m.nm=y.nm,m.mn=y.mn,m}function n(y,C,P){function m(x){return x==="Color"||x==="color"?m.color:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{color:{get:ExpressionPropertyInterface(C.c)},opacity:{get:ExpressionPropertyInterface(C.o)},_name:{value:y.nm},mn:{value:y.mn}}),C.c.setGroupProperty(PropertyInterface("Color",P)),C.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function s(y,C,P){function m(x){return x==="Start Point"||x==="start point"?m.startPoint:x==="End Point"||x==="end point"?m.endPoint:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{startPoint:{get:ExpressionPropertyInterface(C.s)},endPoint:{get:ExpressionPropertyInterface(C.e)},opacity:{get:ExpressionPropertyInterface(C.o)},type:{get:function(){return"a"}},_name:{value:y.nm},mn:{value:y.mn}}),C.s.setGroupProperty(PropertyInterface("Start Point",P)),C.e.setGroupProperty(PropertyInterface("End Point",P)),C.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function a(){function y(){return null}return y}function o(y,C,P){var m=propertyGroupFactory(L,P),x=propertyGroupFactory(T,m);function g(_){Object.defineProperty(T,y.d[_].nm,{get:ExpressionPropertyInterface(C.d.dataProps[_].p)})}var S,E=y.d?y.d.length:0,T={};for(S=0;S<E;S+=1)g(S),C.d.dataProps[S].p.setGroupProperty(x);function L(_){return _==="Color"||_==="color"?L.color:_==="Opacity"||_==="opacity"?L.opacity:_==="Stroke Width"||_==="stroke width"?L.strokeWidth:null}return Object.defineProperties(L,{color:{get:ExpressionPropertyInterface(C.c)},opacity:{get:ExpressionPropertyInterface(C.o)},strokeWidth:{get:ExpressionPropertyInterface(C.w)},dash:{get:function(){return T}},_name:{value:y.nm},mn:{value:y.mn}}),C.c.setGroupProperty(PropertyInterface("Color",m)),C.o.setGroupProperty(PropertyInterface("Opacity",m)),C.w.setGroupProperty(PropertyInterface("Stroke Width",m)),L}function l(y,C,P){function m(g){return g===y.e.ix||g==="End"||g==="end"?m.end:g===y.s.ix?m.start:g===y.o.ix?m.offset:null}var x=propertyGroupFactory(m,P);return m.propertyIndex=y.ix,C.s.setGroupProperty(PropertyInterface("Start",x)),C.e.setGroupProperty(PropertyInterface("End",x)),C.o.setGroupProperty(PropertyInterface("Offset",x)),m.propertyIndex=y.ix,m.propertyGroup=P,Object.defineProperties(m,{start:{get:ExpressionPropertyInterface(C.s)},end:{get:ExpressionPropertyInterface(C.e)},offset:{get:ExpressionPropertyInterface(C.o)},_name:{value:y.nm}}),m.mn=y.mn,m}function c(y,C,P){function m(g){return y.a.ix===g||g==="Anchor Point"?m.anchorPoint:y.o.ix===g||g==="Opacity"?m.opacity:y.p.ix===g||g==="Position"?m.position:y.r.ix===g||g==="Rotation"||g==="ADBE Vector Rotation"?m.rotation:y.s.ix===g||g==="Scale"?m.scale:y.sk&&y.sk.ix===g||g==="Skew"?m.skew:y.sa&&y.sa.ix===g||g==="Skew Axis"?m.skewAxis:null}var x=propertyGroupFactory(m,P);return C.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",x)),C.transform.mProps.p.setGroupProperty(PropertyInterface("Position",x)),C.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",x)),C.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",x)),C.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",x)),C.transform.mProps.sk&&(C.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",x)),C.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",x))),C.transform.op.setGroupProperty(PropertyInterface("Opacity",x)),Object.defineProperties(m,{opacity:{get:ExpressionPropertyInterface(C.transform.mProps.o)},position:{get:ExpressionPropertyInterface(C.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(C.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(C.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(C.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(C.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(C.transform.mProps.sa)},_name:{value:y.nm}}),m.ty="tr",m.mn=y.mn,m.propertyGroup=P,m}function u(y,C,P){function m(S){return y.p.ix===S?m.position:y.s.ix===S?m.size:null}var x=propertyGroupFactory(m,P);m.propertyIndex=y.ix;var g=C.sh.ty==="tm"?C.sh.prop:C.sh;return g.s.setGroupProperty(PropertyInterface("Size",x)),g.p.setGroupProperty(PropertyInterface("Position",x)),Object.defineProperties(m,{size:{get:ExpressionPropertyInterface(g.s)},position:{get:ExpressionPropertyInterface(g.p)},_name:{value:y.nm}}),m.mn=y.mn,m}function f(y,C,P){function m(S){return y.p.ix===S?m.position:y.r.ix===S?m.rotation:y.pt.ix===S?m.points:y.or.ix===S||S==="ADBE Vector Star Outer Radius"?m.outerRadius:y.os.ix===S?m.outerRoundness:y.ir&&(y.ir.ix===S||S==="ADBE Vector Star Inner Radius")?m.innerRadius:y.is&&y.is.ix===S?m.innerRoundness:null}var x=propertyGroupFactory(m,P),g=C.sh.ty==="tm"?C.sh.prop:C.sh;return m.propertyIndex=y.ix,g.or.setGroupProperty(PropertyInterface("Outer Radius",x)),g.os.setGroupProperty(PropertyInterface("Outer Roundness",x)),g.pt.setGroupProperty(PropertyInterface("Points",x)),g.p.setGroupProperty(PropertyInterface("Position",x)),g.r.setGroupProperty(PropertyInterface("Rotation",x)),y.ir&&(g.ir.setGroupProperty(PropertyInterface("Inner Radius",x)),g.is.setGroupProperty(PropertyInterface("Inner Roundness",x))),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(g.p)},rotation:{get:ExpressionPropertyInterface(g.r)},points:{get:ExpressionPropertyInterface(g.pt)},outerRadius:{get:ExpressionPropertyInterface(g.or)},outerRoundness:{get:ExpressionPropertyInterface(g.os)},innerRadius:{get:ExpressionPropertyInterface(g.ir)},innerRoundness:{get:ExpressionPropertyInterface(g.is)},_name:{value:y.nm}}),m.mn=y.mn,m}function d(y,C,P){function m(S){return y.p.ix===S?m.position:y.r.ix===S?m.roundness:y.s.ix===S||S==="Size"||S==="ADBE Vector Rect Size"?m.size:null}var x=propertyGroupFactory(m,P),g=C.sh.ty==="tm"?C.sh.prop:C.sh;return m.propertyIndex=y.ix,g.p.setGroupProperty(PropertyInterface("Position",x)),g.s.setGroupProperty(PropertyInterface("Size",x)),g.r.setGroupProperty(PropertyInterface("Rotation",x)),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(g.p)},roundness:{get:ExpressionPropertyInterface(g.r)},size:{get:ExpressionPropertyInterface(g.s)},_name:{value:y.nm}}),m.mn=y.mn,m}function p(y,C,P){function m(S){return y.r.ix===S||S==="Round Corners 1"?m.radius:null}var x=propertyGroupFactory(m,P),g=C;return m.propertyIndex=y.ix,g.rd.setGroupProperty(PropertyInterface("Radius",x)),Object.defineProperties(m,{radius:{get:ExpressionPropertyInterface(g.rd)},_name:{value:y.nm}}),m.mn=y.mn,m}function b(y,C,P){function m(S){return y.c.ix===S||S==="Copies"?m.copies:y.o.ix===S||S==="Offset"?m.offset:null}var x=propertyGroupFactory(m,P),g=C;return m.propertyIndex=y.ix,g.c.setGroupProperty(PropertyInterface("Copies",x)),g.o.setGroupProperty(PropertyInterface("Offset",x)),Object.defineProperties(m,{copies:{get:ExpressionPropertyInterface(g.c)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:y.nm}}),m.mn=y.mn,m}return function(y,C,P){var m;function x(S){if(typeof S=="number")return S=S===void 0?1:S,S===0?P:m[S-1];for(var E=0,T=m.length;E<T;){if(m[E]._name===S)return m[E];E+=1}return null}function g(){return P}return x.propertyGroup=propertyGroupFactory(x,g),m=e(y,C,x.propertyGroup),x.numProperties=m.length,x._name="Contents",x}}(),TextExpressionInterface=function(){return function(e){var t;function i(n){switch(n){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(i){return typeof i}:_typeof=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(e)}var FootageInterface=function(){var e=function(n){var s="",a=n.getFootageData();function o(){return s="",a=n.getFootageData(),l}function l(c){if(a[c])return s=c,a=a[c],_typeof(a)==="object"?l:a;var u=c.indexOf(s);if(u!==-1){var f=parseInt(c.substr(u+s.length),10);return a=a[f],_typeof(a)==="object"?l:a}return""}return o},t=function(n){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(n),s};return function(i){function n(s){return s==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=t(i),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(o,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(o,l,c).bind(c)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function i(o){var l=-.01,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f=0;if(c.length){var d;for(d=0;d<c.length;d+=1)f+=Math.pow(u[d]-c[d],2);f=Math.sqrt(f)*100}else f=0;return f}function n(o){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f;if(c.length){f=createTypedArray("float32",c.length);var d;for(d=0;d<c.length;d+=1)f[d]=(u[d]-c[d])/l}else f=(u-c)/l;return f}function s(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:n,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(p,b,y){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var C=this.comp.renderedFrame,P=this.keyframes,m=P[P.length-1].t;if(C<=m)return this.pv;var x,g;y?(b?x=Math.abs(m-this.elem.comp.globalData.frameRate*b):x=Math.max(0,m-this.elem.data.ip),g=m-x):((!b||b>P.length-1)&&(b=P.length-1),g=P[P.length-1-b].t,x=m-g);var S,E,T;if(p==="pingpong"){var L=Math.floor((C-g)/x);if(L%2!==0)return this.getValueAtTime((x-(C-g)%x+g)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(g/this.comp.globalData.frameRate,0),k=this.getValueAtTime(m/this.comp.globalData.frameRate,0),$=this.getValueAtTime(((C-g)%x+g)/this.comp.globalData.frameRate,0),z=Math.floor((C-g)/x);if(this.pv.length){for(T=new Array(_.length),E=T.length,S=0;S<E;S+=1)T[S]=(k[S]-_[S])*z+$[S];return T}return(k-_)*z+$}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(O.length),E=T.length,S=0;S<E;S+=1)T[S]=O[S]+(O[S]-N[S])*((C-m)/this.comp.globalData.frameRate)/5e-4;return T}return O+(O-N)*((C-m)/.001)}return this.getValueAtTime(((C-g)%x+g)/this.comp.globalData.frameRate,0)}function t(p,b,y){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var C=this.comp.renderedFrame,P=this.keyframes,m=P[0].t;if(C>=m)return this.pv;var x,g;y?(b?x=Math.abs(this.elem.comp.globalData.frameRate*b):x=Math.max(0,this.elem.data.op-m),g=m+x):((!b||b>P.length-1)&&(b=P.length-1),g=P[b].t,x=g-m);var S,E,T;if(p==="pingpong"){var L=Math.floor((m-C)/x);if(L%2===0)return this.getValueAtTime(((m-C)%x+m)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(m/this.comp.globalData.frameRate,0),k=this.getValueAtTime(g/this.comp.globalData.frameRate,0),$=this.getValueAtTime((x-(m-C)%x+m)/this.comp.globalData.frameRate,0),z=Math.floor((m-C)/x)+1;if(this.pv.length){for(T=new Array(_.length),E=T.length,S=0;S<E;S+=1)T[S]=$[S]-(k[S]-_[S])*z;return T}return $-(k-_)*z}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(O.length),E=T.length,S=0;S<E;S+=1)T[S]=O[S]+(O[S]-N[S])*(m-C)/.001;return T}return O+(O-N)*(m-C)/.001}return this.getValueAtTime((x-((m-C)%x+m))/this.comp.globalData.frameRate,0)}function i(p,b){if(!this.k)return this.pv;if(p=(p||.4)*.5,b=Math.floor(b||5),b<=1)return this.pv;var y=this.comp.renderedFrame/this.comp.globalData.frameRate,C=y-p,P=y+p,m=b>1?(P-C)/(b-1):1,x=0,g=0,S;this.pv.length?S=createTypedArray("float32",this.pv.length):S=0;for(var E;x<b;){if(E=this.getValueAtTime(C+x*m),this.pv.length)for(g=0;g<this.pv.length;g+=1)S[g]+=E[g];else S+=E;x+=1}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)S[g]/=b;else S/=b;return S}function n(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var b=this._transformCachingAtTime.v;if(b.cloneFromProps(this.pre.props),this.appliedTransformations<1){var y=this.a.getValueAtTime(p);b.translate(-y[0]*this.a.mult,-y[1]*this.a.mult,y[2]*this.a.mult)}if(this.appliedTransformations<2){var C=this.s.getValueAtTime(p);b.scale(C[0]*this.s.mult,C[1]*this.s.mult,C[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var P=this.sk.getValueAtTime(p),m=this.sa.getValueAtTime(p);b.skewFromAxis(-P*this.sk.mult,m*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var x=this.r.getValueAtTime(p);b.rotate(-x*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var g=this.rz.getValueAtTime(p),S=this.ry.getValueAtTime(p),E=this.rx.getValueAtTime(p),T=this.or.getValueAtTime(p);b.rotateZ(-g*this.rz.mult).rotateY(S*this.ry.mult).rotateX(E*this.rx.mult).rotateZ(-T[2]*this.or.mult).rotateY(T[1]*this.or.mult).rotateX(T[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var L=this.px.getValueAtTime(p),_=this.py.getValueAtTime(p);if(this.data.p.z){var k=this.pz.getValueAtTime(p);b.translate(L*this.px.mult,_*this.py.mult,-k*this.pz.mult)}else b.translate(L*this.px.mult,_*this.py.mult,0)}else{var $=this.p.getValueAtTime(p);b.translate($[0]*this.p.mult,$[1]*this.p.mult,-$[2]*this.p.mult)}return b}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,b,y){var C=a(p,b,y);return C.dynamicProperties.length?C.getValueAtTime=n.bind(C):C.getValueAtTime=s.bind(C),C.setGroupProperty=expressionHelpers.setGroupProperty,C};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(p,b,y,C,P){var m=o(p,b,y,C,P);m.kf?m.getValueAtTime=expressionHelpers.getValueAtTime.bind(m):m.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m.loopOut=e,m.loopIn=t,m.smooth=i,m.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(m),m.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(m),m.numKeys=b.a===1?b.k.length:0,m.propertyIndex=b.ix;var x=0;return y!==0&&(x=createTypedArray("float32",b.a===1?b.k[0].s.length:b.k.length)),m._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:x},expressionHelpers.searchExpressions(p,b,m),m.k&&P.addDynamicProperty(m),m};function l(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(b,y){this.k&&this.getValue();var C=this.v;y!==void 0&&(C=this.getValueAtTime(y,0));var P,m=C._length,x=C[b],g=C.v,S=createSizedArray(m);for(P=0;P<m;P+=1)b==="i"||b==="o"?S[P]=[x[P][0]-g[P][0],x[P][1]-g[P][1]]:S[P]=[x[P][0],x[P][1]];return S},points:function(b){return this.vertices("v",b)},inTangents:function(b){return this.vertices("i",b)},outTangents:function(b){return this.vertices("o",b)},isClosed:function(){return this.v.c},pointOnPath:function(b,y){var C=this.v;y!==void 0&&(C=this.getValueAtTime(y,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(C));for(var P=this._segmentsLength,m=P.lengths,x=P.totalLength*b,g=0,S=m.length,E=0,T;g<S;){if(E+m[g].addedLength>x){var L=g,_=C.c&&g===S-1?0:g+1,k=(x-E)/m[g].addedLength;T=bez.getPointInSegment(C.v[L],C.v[_],C.o[L],C.i[_],k,m[g]);break}else E+=m[g].addedLength;g+=1}return T||(T=C.c?[C.v[0][0],C.v[0][1]]:[C.v[C._length-1][0],C.v[C._length-1][1]]),T},vectorOnPath:function(b,y,C){b==1?b=this.v.c:b==0&&(b=.999);var P=this.pointOnPath(b,y),m=this.pointOnPath(b+.001,y),x=m[0]-P[0],g=m[1]-P[1],S=Math.sqrt(Math.pow(x,2)+Math.pow(g,2));if(S===0)return[0,0];var E=C==="tangent"?[x/S,g/S]:[-g/S,x/S];return E},tangentOnPath:function(b,y){return this.vectorOnPath(b,y,"tangent")},normalOnPath:function(b,y){return this.vectorOnPath(b,y,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,b,y,C,P){var m=d(p,b,y,C,P);return m.propertyIndex=b.ix,m.lock=!1,y===3?expressionHelpers.searchExpressions(p,b.pt,m):y===4&&expressionHelpers.searchExpressions(p,b.ks,m),m.k&&p.addDynamicProperty(m),m}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,i){var n=this.calculateExpression(i);if(t.t!==n){var s={};return this.copyData(s,t),s.t=n.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,i){var n=createNS("feMerge");n.setAttribute("result",t);var s,a;for(a=0;a<i.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",i[a]),n.appendChild(s),n.appendChild(s);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,i,n,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,s=n+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),n;n<s;n+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:n});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(i),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=a,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,i=this.paths.length,n,s;for(t=0;t<i;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&s.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=s.getTotalLength();a="0 0 0 "+c*o+" ";var u=c*(l-o),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/f),p;for(p=0;p<d;p+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+c*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var b=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(b[0]*255)+","+bmFloor(b[1]*255)+","+bmFloor(b[2]*255)+")")}};function SVGTritoneFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+i[0]+" "+t[0],a=n[1]+" "+i[1]+" "+t[1],o=n[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,i,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,n,s){for(var a=0,o=256,l,c=Math.min(e,t),u=Math.max(e,t),f=Array.call(null,{length:o}),d,p=0,b=s-n,y=t-e;a<=256;)l=a/256,l<=c?d=y<0?s:n:l>=u?d=y<0?n:s:d=n+b*Math.pow((l-e)/y,1/i),f[p]=d,p+=1,a+=256/(o-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,i,n,s){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",n+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var f=createNS("feComposite");f.setAttribute("in",n+"_drop_shadow_3"),f.setAttribute("in2",n+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(f);var d=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(n),a=i*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var n=i.children,s=0,a=n.length;s<a&&n[s]!==e.layerElement;)s+=1;var o;s<=a-2&&(o=n[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),o?i.insertBefore(l,o):i.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(t,i),a.appendChild(t.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+i),n.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,n=t.length;i<n;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,i,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,i=this.filterManager.effectElements[0].p.v*t,n=this.filterManager.effectElements[1].p.v,s=n==3?0:i,a=n==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,o=s?a:t[4].p.v,l=t[5].p.v,c=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _iterableToArrayLimit(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,s,a,o,l=[],c=!0,u=!1;try{if(a=(i=i.call(e)).next,t!==0)for(;!(c=(n=a.call(i)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(f){u=!0,s=f}finally{try{if(!c&&i.return!=null&&(o=i.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,n)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(n){_defineProperty(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function _defineProperty(e,t,i){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var i={},n=Object.keys(e),s,a;for(a=0;a<n.length;a++)s=n[a],!(t.indexOf(s)>=0)&&(i[s]=e[s]);return i}function _objectWithoutProperties(e,t){if(e==null)return{};var i=_objectWithoutPropertiesLoose(e,t),n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
73
|
+
*/var Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,n=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,-I,0,0,I,M,0,0,0,0,1,0,0,0,0,1)}function o(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(1,0,0,0,0,M,-I,0,0,I,M,0,0,0,0,1)}function l(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,0,I,0,0,1,0,0,-I,0,M,0,0,0,0,1)}function c(R){if(R===0)return this;var M=e(R),I=t(R);return this._t(M,-I,0,0,I,M,0,0,0,0,1,0,0,0,0,1)}function u(R,M){return this._t(1,M,R,1,0,0)}function f(R,M){return this.shear(i(R),i(M))}function d(R,M){var I=e(M),j=t(M);return this._t(I,j,0,0,-j,I,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(R),1,0,0,0,0,1,0,0,0,0,1)._t(I,-j,0,0,j,I,0,0,0,0,1,0,0,0,0,1)}function p(R,M,I){return!I&&I!==0&&(I=1),R===1&&M===1&&I===1?this:this._t(R,0,0,0,0,M,0,0,0,0,I,0,0,0,0,1)}function b(R,M,I,j,W,q,X,ee,re,ce,he,me,pe,se,fe,ie){return this.props[0]=R,this.props[1]=M,this.props[2]=I,this.props[3]=j,this.props[4]=W,this.props[5]=q,this.props[6]=X,this.props[7]=ee,this.props[8]=re,this.props[9]=ce,this.props[10]=he,this.props[11]=me,this.props[12]=pe,this.props[13]=se,this.props[14]=fe,this.props[15]=ie,this}function y(R,M,I){return I=I||0,R!==0||M!==0||I!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,R,M,I,1):this}function C(R,M,I,j,W,q,X,ee,re,ce,he,me,pe,se,fe,ie){var Y=this.props;if(R===1&&M===0&&I===0&&j===0&&W===0&&q===1&&X===0&&ee===0&&re===0&&ce===0&&he===1&&me===0)return Y[12]=Y[12]*R+Y[15]*pe,Y[13]=Y[13]*q+Y[15]*se,Y[14]=Y[14]*he+Y[15]*fe,Y[15]*=ie,this._identityCalculated=!1,this;var Ee=Y[0],Le=Y[1],be=Y[2],ye=Y[3],Pe=Y[4],ve=Y[5],Ce=Y[6],xe=Y[7],we=Y[8],Se=Y[9],Me=Y[10],Re=Y[11],Te=Y[12],_e=Y[13],Ve=Y[14],je=Y[15];return Y[0]=Ee*R+Le*W+be*re+ye*pe,Y[1]=Ee*M+Le*q+be*ce+ye*se,Y[2]=Ee*I+Le*X+be*he+ye*fe,Y[3]=Ee*j+Le*ee+be*me+ye*ie,Y[4]=Pe*R+ve*W+Ce*re+xe*pe,Y[5]=Pe*M+ve*q+Ce*ce+xe*se,Y[6]=Pe*I+ve*X+Ce*he+xe*fe,Y[7]=Pe*j+ve*ee+Ce*me+xe*ie,Y[8]=we*R+Se*W+Me*re+Re*pe,Y[9]=we*M+Se*q+Me*ce+Re*se,Y[10]=we*I+Se*X+Me*he+Re*fe,Y[11]=we*j+Se*ee+Me*me+Re*ie,Y[12]=Te*R+_e*W+Ve*re+je*pe,Y[13]=Te*M+_e*q+Ve*ce+je*se,Y[14]=Te*I+_e*X+Ve*he+je*fe,Y[15]=Te*j+_e*ee+Ve*me+je*ie,this._identityCalculated=!1,this}function P(R){var M=R.props;return this.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15])}function m(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function x(R){for(var M=0;M<16;){if(R.props[M]!==this.props[M])return!1;M+=1}return!0}function g(R){var M;for(M=0;M<16;M+=1)R.props[M]=this.props[M];return R}function S(R){var M;for(M=0;M<16;M+=1)this.props[M]=R[M]}function E(R,M,I){return{x:R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12],y:R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13],z:R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]}}function T(R,M,I){return R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12]}function L(R,M,I){return R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13]}function _(R,M,I){return R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]}function k(){var R=this.props[0]*this.props[5]-this.props[1]*this.props[4],M=this.props[5]/R,I=-this.props[1]/R,j=-this.props[4]/R,W=this.props[0]/R,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/R,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/R,ee=new Matrix;return ee.props[0]=M,ee.props[1]=I,ee.props[4]=j,ee.props[5]=W,ee.props[12]=q,ee.props[13]=X,ee}function $(R){var M=this.getInverseMatrix();return M.applyToPointArray(R[0],R[1],R[2]||0)}function z(R){var M,I=R.length,j=[];for(M=0;M<I;M+=1)j[M]=$(R[M]);return j}function O(R,M,I){var j=createTypedArray("float32",6);if(this.isIdentity())j[0]=R[0],j[1]=R[1],j[2]=M[0],j[3]=M[1],j[4]=I[0],j[5]=I[1];else{var W=this.props[0],q=this.props[1],X=this.props[4],ee=this.props[5],re=this.props[12],ce=this.props[13];j[0]=R[0]*W+R[1]*X+re,j[1]=R[0]*q+R[1]*ee+ce,j[2]=M[0]*W+M[1]*X+re,j[3]=M[0]*q+M[1]*ee+ce,j[4]=I[0]*W+I[1]*X+re,j[5]=I[0]*q+I[1]*ee+ce}return j}function N(R,M,I){var j;return this.isIdentity()?j=[R,M,I]:j=[R*this.props[0]+M*this.props[4]+I*this.props[8]+this.props[12],R*this.props[1]+M*this.props[5]+I*this.props[9]+this.props[13],R*this.props[2]+M*this.props[6]+I*this.props[10]+this.props[14]],j}function K(R,M){if(this.isIdentity())return R+","+M;var I=this.props;return Math.round((R*I[0]+M*I[4]+I[12])*100)/100+","+Math.round((R*I[1]+M*I[5]+I[13])*100)/100}function B(){for(var R=0,M=this.props,I="matrix3d(",j=1e4;R<16;)I+=n(M[R]*j)/j,I+=R===15?")":",",R+=1;return I}function A(R){var M=1e4;return R<1e-6&&R>0||R>-1e-6&&R<0?n(R*M)/M:R}function V(){var R=this.props,M=A(R[0]),I=A(R[1]),j=A(R[4]),W=A(R[5]),q=A(R[12]),X=A(R[13]);return"matrix("+M+","+I+","+j+","+W+","+q+","+X+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=d,this.shear=u,this.scale=p,this.setTransform=b,this.translate=y,this.transform=C,this.multiply=P,this.applyToPoint=E,this.applyToX=T,this.applyToY=L,this.applyToZ=_,this.applyToPointArray=N,this.applyToTriplePoints=O,this.applyToPointStringified=K,this.toCSS=B,this.to2dCSS=V,this.clone=g,this.cloneFromProps=S,this.equals=x,this.inversePoints=z,this.inversePoint=$,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(i){return typeof i}:_typeof$3=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var n=t[i].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=i,e.getModifier=n;function i(s,a){t[s]||(t[s]=a)}function n(s,a,o){return new t[s](a,o)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o=[],l,c=a.length,u;for(l=0;l<c;l+=1)if(u=a[l],!(u.e*s<n||u.s*s>n+i)){var f,d;u.s*s<=n?f=0:f=(u.s*s-n)/i,u.e*s>=n+i?d=1:d=(u.e*s-n)/i,o.push([f,d])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?t=1+n:this.s.v<0?t=0+n:t=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,t>i){var s=t;t=i,i=s}t=Math.round(t*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var a,o,l=this.shapes.length,c,u,f,d,p,b=0;if(i===t)for(o=0;o<l;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(i===1&&t===0||i===0&&t===1){if(this._mdf)for(o=0;o<l;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var y=[],C,P;for(o=0;o<l;o+=1)if(C=this.shapes[o],!C.shape._mdf&&!this._mdf&&!e&&this.m!==2)C.shape.paths=C.localShapeCollection;else{if(a=C.shape.paths,u=a._length,p=0,!C.shape._mdf&&C.pathsData.length)p=C.totalShapeLength;else{for(f=this.releasePathsData(C.pathsData),c=0;c<u;c+=1)d=bez.getSegmentsLength(a.shapes[c]),f.push(d),p+=d.totalLength;C.totalShapeLength=p,C.pathsData=f}b+=p,C.shape._mdf=!0}var m=t,x=i,g=0,S;for(o=l-1;o>=0;o-=1)if(C=this.shapes[o],C.shape._mdf){for(P=C.localShapeCollection,P.releaseShapes(),this.m===2&&l>1?(S=this.calculateShapeEdges(t,i,C.totalShapeLength,g,b),g+=C.totalShapeLength):S=[[m,x]],u=S.length,c=0;c<u;c+=1){m=S[c][0],x=S[c][1],y.length=0,x<=1?y.push({s:C.totalShapeLength*m,e:C.totalShapeLength*x}):m>=1?y.push({s:C.totalShapeLength*(m-1),e:C.totalShapeLength*(x-1)}):(y.push({s:C.totalShapeLength*m,e:C.totalShapeLength}),y.push({s:0,e:C.totalShapeLength*(x-1)}));var E=this.addShapes(C,y[0]);if(y[0].s!==y[0].e){if(y.length>1){var T=C.shape.paths.shapes[C.shape.paths._length-1];if(T.c){var L=E.pop();this.addPaths(E,P),E=this.addShapes(C,y[1],L)}else this.addPaths(E,P),E=this.addShapes(C,y[1])}this.addPaths(E,P)}}C.shape.paths=P}}},TrimModifier.prototype.addPaths=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,n,s,a,o){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),o&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,n){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),n&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var n=e.pathsData,s=e.shape.paths.shapes,a,o=e.shape.paths._length,l,c,u=0,f,d,p,b,y=[],C,P=!0;for(i?(d=i._length,C=i._length):(i=shapePool.newElement(),d=0,C=0),y.push(i),a=0;a<o;a+=1){for(p=n[a].lengths,i.c=s[a].c,c=s[a].c?p.length:p.length+1,l=1;l<c;l+=1)if(f=p[l-1],u+f.addedLength<t.s)u+=f.addedLength,i.c=!1;else if(u>t.e){i.c=!1;break}else t.s<=u&&t.e>=u+f.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,d,P),P=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(t.s-u)/f.addedLength,(t.e-u)/f.addedLength,p[l-1]),this.addSegmentFromArray(b,i,d,P),P=!1,i.c=!1),u+=f.addedLength,d+=1;if(s[a].c&&p.length){if(f=p[l-1],u<=t.e){var m=p[l-1].addedLength;t.s<=u&&t.e>=u+m?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,d,P),P=!1):(b=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(t.s-u)/m,(t.e-u)/m,p[l-1]),this.addSegmentFromArray(b,i,d,P),P=!1,i.c=!1)}else i.c=!1;u+=f.addedLength,d+=1}if(i._length&&(i.setXYAt(i.v[C][0],i.v[C][1],"i",C),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>t.e)break;a<o-1&&(i=shapePool.newElement(),P=!0,y.push(i),d=0)}return y};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var o=shapePool.newElement();o.c=e.c;var l,c,u,f,d,p;for(a=0;a<s;a+=1)l=e.v[a][0]+(n[0]-e.v[a][0])*i,c=e.v[a][1]+(n[1]-e.v[a][1])*i,u=e.o[a][0]+(n[0]-e.o[a][0])*-i,f=e.o[a][1]+(n[1]-e.o[a][1])*-i,d=e.i[a][0]+(n[0]-e.i[a][0])*-i,p=e.i[a][1]+(n[1]-e.i[a][1])*-i,o.setTripleAt(l,c,u,f,d,p,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var f,d;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],d=[];var p=this.px,b=this.py;p._caching.lastFrame+p.offsetTime<=p.keyframes[0].t?(f[0]=p.getValueAtTime((p.keyframes[0].t+.01)/u,0),f[1]=b.getValueAtTime((b.keyframes[0].t+.01)/u,0),d[0]=p.getValueAtTime(p.keyframes[0].t/u,0),d[1]=b.getValueAtTime(b.keyframes[0].t/u,0)):p._caching.lastFrame+p.offsetTime>=p.keyframes[p.keyframes.length-1].t?(f[0]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/u,0),f[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/u,0),d[0]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/u,0),d[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/u,0)):(f=[p.pv,b.pv],d[0]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/u,p.offsetTime),d[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/u,b.offsetTime))}else d=e,f=d;this.v.rotate(-Math.atan2(f[1]-d[1],f[0]-d[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function o(c,u,f){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var d,p=u.or.k.length;for(d=0;d<p;d+=1)u.or.k[d].to=null,u.or.k[d].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:i,precalculateMatrix:n,autoOrient:s},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new o(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,n,s,a){var o=a?-1:1,l=n.s.v[0]+(1-n.s.v[0])*(1-s),c=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*o*s,n.p.v[1]*o*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*o*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(a?1/l:l,a?1/c:c),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,n){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._render=t,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,n,s,a,o=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var u;for(n=0;n<=this._groups.length-1;n+=1){if(u=a<l,this._groups[n]._render=u,this.changeGroupRender(this._groups[n].it,u),!u){var f=this.elemsData[n].it,d=f[f.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}a+=1}this._currentCopies=l;var p=this.o.v,b=p%1,y=p>0?Math.floor(p):Math.ceil(p),C=this.pMatrix.props,P=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(p>0){for(;x<y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,b,!1),x+=b)}else if(p<0){for(;x>y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),x-=b)}n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var g,S;a;){if(t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,S=i.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),x!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],P[8],P[9],P[10],P[11],P[12],P[13],P[14],P[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),g=0;g<S;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<S;g+=1)i[g]=this.matrix.props[g];x+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)t=this.elemsData[n].it,i=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=s;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i=shapePool.newElement();i.c=e.c;var n,s=e._length,a,o,l,c,u,f,d=0,p,b,y,C,P,m;for(n=0;n<s;n+=1)a=e.v[n],l=e.o[n],o=e.i[n],a[0]===l[0]&&a[1]===l[1]&&a[0]===o[0]&&a[1]===o[1]?(n===0||n===s-1)&&!e.c?(i.setTripleAt(a[0],a[1],l[0],l[1],o[0],o[1],d),d+=1):(n===0?c=e.v[s-1]:c=e.v[n-1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,P=a[0]+(c[0]-a[0])*f,p=P,m=a[1]-(a[1]-c[1])*f,b=m,y=p-(p-a[0])*roundCorner,C=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,y,C,P,m,d),d+=1,n===s-1?c=e.v[0]:c=e.v[n+1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),f=u?Math.min(u/2,t)/u:0,y=a[0]+(c[0]-a[0])*f,p=y,C=a[1]+(c[1]-a[1])*f,b=C,P=p-(p-a[0])*roundCorner,m=b-(b-a[1])*roundCorner,i.setTripleAt(p,b,y,C,P,m,d),d+=1):(i.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],d),d+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.rd.v;if(o!==0){var l,c;for(i=0;i<n;i+=1){if(l=this.shapes[i],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(e===0)return[];var n=t*t-4*e*i;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,i,n){return[-e+3*t-3*i+n,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(i,n)&&(i=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],i[0],n[0]),o=polynomialCoefficients(e[1],t[1],i[1],n[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,i,n]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,i,e),a=lerpPoint(i,n,e),o=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,o,!0),new PolynomialBezier(o,a,n,this.points[3],!0)]};function extrema(e,t){var i=e.points[0][t],n=e.points[e.points.length-1][t];if(i>n){var s=n;n=i,i=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var l=e.point(a[o])[t];l<i?i=l:l>n&&(n=l)}return{min:i,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,i){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,i,n,s,a){if(boxIntersect(e,t)){if(i>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){s.push([e.t,t.t]);return}var o=splitData(e),l=splitData(t);intersectsImpl(o[0],l[0],i+1,n,s,a),intersectsImpl(o[0],l[1],i+1,n,s,a),intersectsImpl(o[1],l[0],i+1,n,s,a),intersectsImpl(o[1],l[1],i+1,n,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,i){t===void 0&&(t=2),i===void 0&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,i),n},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],o=[i[0],i[1],1],l=[n[0],n[1],1],c=crossProduct(crossProduct(s,a),crossProduct(o,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,i,n,s,a,o){var l=i-Math.PI/2,c=i+Math.PI/2,u=t[0]+Math.cos(i)*n*s,f=t[1]-Math.sin(i)*n*s;e.setTripleAt(u,f,u+Math.cos(l)*a,f-Math.sin(l)*a,u+Math.cos(c)*o,f-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],n=-Math.PI*.5,s=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return s}function getProjectingAngle(e,t){var i=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=e.v[i],a=e.v[n],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,i,n,s,a,o){var l=getProjectingAngle(t,i),c=t.v[i%t._length],u=t.v[i===0?t._length-1:i-1],f=t.v[(i+1)%t._length],d=a===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,p=a===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,t.v[i%t._length],l,o,n,p/((s+1)*2),d/((s+1)*2))}function zigZagSegment(e,t,i,n,s,a){for(var o=0;o<n;o+=1){var l=(o+1)/(n+1),c=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(l),f=t.point(l);setPoint(e,f,u,a,i,c/((n+1)*2),c/((n+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,i,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var o=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,i,n,o);for(var c=0;c<s;c+=1)o=zigZagSegment(a,l,t,i,n,-o),c===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%s),zigZagCorner(a,e,c+1,t,i,n,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,i){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,i),polarOffset(t,n,i)]}function offsetSegment(e,t){var i,n,s,a,o,l,c;c=linearOffset(e.points[0],e.points[1],t),i=c[0],n=c[1],c=linearOffset(e.points[1],e.points[2],t),s=c[0],a=c[1],c=linearOffset(e.points[2],e.points[3],t),o=c[0],l=c[1];var u=lineIntersection(i,n,s,a);u===null&&(u=n);var f=lineIntersection(o,l,s,a);return f===null&&(f=o),new PolynomialBezier(i,u,f,l)}function joinLines(e,t,i,n,s){var a=t.points[3],o=i.points[0];if(n===3||pointEqual(a,o))return a;if(n===2){var l=-t.tangentAngle(1),c=-i.tangentAngle(0)+Math.PI,u=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),o,polarOffset(o,l+Math.PI/2,100)),f=u?pointDistance(u,a):pointDistance(a,o)/2,d=polarOffset(a,l,2*f*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(o,c,2*f*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],d[0],d[1],e.length()),o}var p=pointEqual(a,t.points[2])?t.points[0]:t.points[2],b=pointEqual(o,i.points[1])?i.points[3]:i.points[1],y=lineIntersection(p,a,o,b);return y&&pointDistance(y,a)<s?(e.setTripleAt(y[0],y[1],y[0],y[1],y[0],y[1],e.length()),y):a}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(i[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[i,n]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i=e.inflectionPoints(),n,s,a,o;if(i.length===0)return[offsetSegment(e,t)];if(i.length===1||floatEqual(i[1],1))return a=e.split(i[0]),n=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(s,t)];a=e.split(i[0]),n=a[0];var l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),o=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(o,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,i,n){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var o,l,c,u=[];for(o=0;o<a;o+=1)c=PolynomialBezier.shapeSegment(e,o),u.push(offsetSegmentSplit(c,t));if(!e.c)for(o=a-1;o>=0;o-=1)c=PolynomialBezier.shapeSegmentInverted(e,o),u.push(offsetSegmentSplit(c,t));u=pruneIntersections(u);var f=null,d=null;for(o=0;o<u.length;o+=1){var p=u[o];for(d&&(f=joinLines(s,d,p[0],i,n)),d=p[p.length-1],l=0;l<p.length;l+=1)c=p[l],f&&pointEqual(c.points[0],f)?s.setXYAt(c.points[1][0],c.points[1][1],"o",s.length()-1):s.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],s.length()),s.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],s.length()),f=c.points[3]}return u.length&&joinLines(s,d,u[0][0],i,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,i,n=this.shapes.length,s,a,o=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(o!==0){var u,f;for(i=0;i<n;i+=1){if(u=this.shapes[i],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],o,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",n="normal",s=t.length,a,o=0;o<s;o+=1)switch(a=t[o].toLowerCase(),a){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:n,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,s=917631,a=917601,o=917626,l=65039,c=8205,u=127462,f=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(A){var V=A.split(","),R,M=V.length,I=[];for(R=0;R<M;R+=1)V[R]!=="sans-serif"&&V[R]!=="monospace"&&I.push(V[R]);return I.join(",")}function b(A,V){var R=createTag("span");R.setAttribute("aria-hidden",!0),R.style.fontFamily=V;var M=createTag("span");M.innerText="giItT1WQy@!-/#",R.style.position="absolute",R.style.left="-10000px",R.style.top="-10000px",R.style.fontSize="300px",R.style.fontVariant="normal",R.style.fontStyle="normal",R.style.fontWeight="normal",R.style.letterSpacing="0",R.appendChild(M),document.body.appendChild(R);var I=M.offsetWidth;return M.style.fontFamily=p(A)+", "+V,{node:M,w:I,parent:R}}function y(){var A,V=this.fonts.length,R,M,I=V;for(A=0;A<V;A+=1)this.fonts[A].loaded?I-=1:this.fonts[A].fOrigin==="n"||this.fonts[A].origin===0?this.fonts[A].loaded=!0:(R=this.fonts[A].monoCase.node,M=this.fonts[A].monoCase.w,R.offsetWidth!==M?(I-=1,this.fonts[A].loaded=!0):(R=this.fonts[A].sansCase.node,M=this.fonts[A].sansCase.w,R.offsetWidth!==M&&(I-=1,this.fonts[A].loaded=!0)),this.fonts[A].loaded&&(this.fonts[A].sansCase.parent.parentNode.removeChild(this.fonts[A].sansCase.parent),this.fonts[A].monoCase.parent.parentNode.removeChild(this.fonts[A].monoCase.parent)));I!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function C(A,V){var R=document.body&&V?"svg":"canvas",M,I=getFontProperties(A);if(R==="svg"){var j=createNS("text");j.style.fontSize="100px",j.setAttribute("font-family",A.fFamily),j.setAttribute("font-style",I.style),j.setAttribute("font-weight",I.weight),j.textContent="1",A.fClass?(j.style.fontFamily="inherit",j.setAttribute("class",A.fClass)):j.style.fontFamily=A.fFamily,V.appendChild(j),M=j}else{var W=new OffscreenCanvas(500,500).getContext("2d");W.font=I.style+" "+I.weight+" 100px "+A.fFamily,M=W}function q(X){return R==="svg"?(M.textContent=X,M.getComputedTextLength()):M.measureText(X).width}return{measureText:q}}function P(A,V){if(!A){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=A.list;return}if(!document.body){this.isLoaded=!0,A.list.forEach(function(he){he.helper=C(he),he.cache={}}),this.fonts=A.list;return}var R=A.list,M,I=R.length,j=I;for(M=0;M<I;M+=1){var W=!0,q,X;if(R[M].loaded=!1,R[M].monoCase=b(R[M].fFamily,"monospace"),R[M].sansCase=b(R[M].fFamily,"sans-serif"),!R[M].fPath)R[M].loaded=!0,j-=1;else if(R[M].fOrigin==="p"||R[M].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+R[M].fFamily+'"], style[f-origin="3"][f-family="'+R[M].fFamily+'"]'),q.length>0&&(W=!1),W){var ee=createTag("style");ee.setAttribute("f-forigin",R[M].fOrigin),ee.setAttribute("f-origin",R[M].origin),ee.setAttribute("f-family",R[M].fFamily),ee.type="text/css",ee.innerText="@font-face {font-family: "+R[M].fFamily+"; font-style: normal; src: url('"+R[M].fPath+"');}",V.appendChild(ee)}}else if(R[M].fOrigin==="g"||R[M].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),X=0;X<q.length;X+=1)q[X].href.indexOf(R[M].fPath)!==-1&&(W=!1);if(W){var re=createTag("link");re.setAttribute("f-forigin",R[M].fOrigin),re.setAttribute("f-origin",R[M].origin),re.type="text/css",re.rel="stylesheet",re.href=R[M].fPath,document.body.appendChild(re)}}else if(R[M].fOrigin==="t"||R[M].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),X=0;X<q.length;X+=1)R[M].fPath===q[X].src&&(W=!1);if(W){var ce=createTag("link");ce.setAttribute("f-forigin",R[M].fOrigin),ce.setAttribute("f-origin",R[M].origin),ce.setAttribute("rel","stylesheet"),ce.setAttribute("href",R[M].fPath),V.appendChild(ce)}}R[M].helper=C(R[M],V),R[M].cache={},this.fonts.push(R[M])}j===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function m(A){if(A){this.chars||(this.chars=[]);var V,R=A.length,M,I=this.chars.length,j;for(V=0;V<R;V+=1){for(M=0,j=!1;M<I;)this.chars[M].style===A[V].style&&this.chars[M].fFamily===A[V].fFamily&&this.chars[M].ch===A[V].ch&&(j=!0),M+=1;j||(this.chars.push(A[V]),I+=1)}}}function x(A,V,R){for(var M=0,I=this.chars.length;M<I;){if(this.chars[M].ch===A&&this.chars[M].style===V&&this.chars[M].fFamily===R)return this.chars[M];M+=1}return(typeof A=="string"&&A.charCodeAt(0)!==13||!A)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",A,V,R)),t}function g(A,V,R){var M=this.getFontByName(V),I=A;if(!M.cache[I]){var j=M.helper;if(A===" "){var W=j.measureText("|"+A+"|"),q=j.measureText("||");M.cache[I]=(W-q)/100}else M.cache[I]=j.measureText(A)/100}return M.cache[I]*R}function S(A){for(var V=0,R=this.fonts.length;V<R;){if(this.fonts[V].fName===A)return this.fonts[V];V+=1}return this.fonts[0]}function E(A){var V=0,R=A.charCodeAt(0);if(R>=55296&&R<=56319){var M=A.charCodeAt(1);M>=56320&&M<=57343&&(V=(R-55296)*1024+M-56320+65536)}return V}function T(A,V){var R=A.toString(16)+V.toString(16);return d.indexOf(R)!==-1}function L(A){return A===c}function _(A){return A===l}function k(A){var V=E(A);return V>=u&&V<=f}function $(A){return k(A.substr(0,2))&&k(A.substr(2,2))}function z(A){return i.indexOf(A)!==-1}function O(A,V){var R=E(A.substr(V,2));if(R!==n)return!1;var M=0;for(V+=2;M<5;){if(R=E(A.substr(V,2)),R<a||R>o)return!1;M+=1,V+=2}return E(A.substr(V,2))===s}function N(){this.isLoaded=!0}var K=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};K.isModifier=T,K.isZeroWidthJoiner=L,K.isFlagEmoji=$,K.isRegionalCode=k,K.isCombinedCharacter=z,K.isRegionalFlag=O,K.isVariationSelector=_,K.BLACK_FLAG_CODE_POINT=n;var B={addChars:m,addFonts:P,getCharData:x,getFontByName:S,measureText:g,checkLoadedFonts:y,setIsLoaded:N};return K.prototype=B,K}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,i=this.renderableComponents.length;for(t=0;t<i;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i=e.ef||[];this.effectElements=[];var n,s=i.length,a;for(n=0;n<s;n+=1)a=new GroupEffect(i[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,n=this.data.ef.length,s,a=this.data.ef;for(i=0;i<n;i+=1){switch(s=null,a[i].ty){case 0:s=new SliderEffect(a[i],t,this);break;case 1:s=new AngleEffect(a[i],t,this);break;case 2:s=new ColorEffect(a[i],t,this);break;case 3:s=new PointEffect(a[i],t,this);break;case 4:case 7:s=new CheckboxEffect(a[i],t,this);break;case 10:s=new LayerIndexEffect(a[i],t,this);break;case 11:s=new MaskIndexEffect(a[i],t,this);break;case 5:s=new EffectsManager(a[i],t);break;default:s=new NoValueEffect(a[i]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,i=this.data.masksProperties.length;t<i;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var i=t("layer"),n=t("effects"),s=t("shape"),a=t("text"),o=t("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=t},initBaseData:function(t,i,n){this.globalData=i,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,i){var n,s=this.dynamicProperties.length;for(n=0;n<s;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,i=this.layers.length,n;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t],n.ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,i=e.length,n,s=this.layers.length;for(t=0;t<i;t+=1)for(n=0;n<s;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var n=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==t&&(!n[a]||n[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(i.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,i):e.setHierarchy(i))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),i;if(typeof t=="number")i=this.elements[t];else{var n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===t){i=this.elements[n];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,i=this.finalTransform.mat,n=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,i.cloneFromProps(t),n=0;n<s;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<i;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<i;t+=1){var s=this.localTransforms[t].matrix;n.multiply(s)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<i;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,n=t.length;for(i=0;i<n;i+=1)this.localTransforms.push(t[i])}}},globalToLocal:function(t){var i=[];i.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&i.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,o=i.length,l;for(a=0;a<o;a+=1)l=i[a].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l=this.masksProperties,c=0,u=[],f,d,p=createElementID(),b,y,C,P,m="clipPath",x="clip-path";for(s=0;s<a;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(m="mask",x="mask"),(l[s].mode==="s"||l[s].mode==="i")&&c===0?(b=createNS("rect"),b.setAttribute("fill","#ffffff"),b.setAttribute("width",this.element.comp.data.w||0),b.setAttribute("height",this.element.comp.data.h||0),u.push(b)):b=null,o=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:o,lastPath:""},n.appendChild(o);else{c+=1,o.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var g;if(l[s].x.k!==0?(m="mask",x="mask",P=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),g=createElementID(),y=createNS("filter"),y.setAttribute("id",g),C=createNS("feMorphology"),C.setAttribute("operator","erode"),C.setAttribute("in","SourceGraphic"),C.setAttribute("radius","0"),y.appendChild(C),n.appendChild(y),o.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(C=null,P=null),this.storedData[s]={elem:o,x:P,expan:C,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},l[s].mode==="i"){d=u.length;var S=createNS("g");for(f=0;f<d;f+=1)S.appendChild(u[f]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",p+"_"+c),E.appendChild(o),n.appendChild(E),S.setAttribute("mask","url("+getLocationHref()+"#"+p+"_"+c+")"),u.length=0,u.push(S)}else u.push(o);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:b},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(m),a=u.length,s=0;s<a;s+=1)this.maskElement.appendChild(u[s]);c>0&&(this.maskElement.setAttribute("id",p),this.element.maskedElement.setAttribute(x,"url("+getLocationHref()+"#"+p+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var s=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),s.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,i){var n=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==n){var o="";i.elem&&(t.c&&(o=e.inv?this.solidPath+n:n),i.elem.setAttribute("d",o)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=i;function t(n,s){var a=createNS("filter");return a.setAttribute("id",n),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i="SourceGraphic",n=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var l;for(t=0;t<n;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(a,e.effectsManager.effectElements[t],e,idPrefix+o,i),i=idPrefix+o,registeredEffects$1[c].countsAsEffect&&(o+=1)}l&&this.filters.push(l)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),t=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(s),this.globalData.defs.appendChild(n),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var i=this.layerId+"_"+t,n,s,a,o;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",i),l.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),n=createElementID(),s=filtersFactory.createFilter(n),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),l.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",i),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),n=createElementID(),s=filtersFactory.createFilter(n);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),s.appendChild(f);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),f.appendChild(d),this.globalData.defs.appendChild(s);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),u.appendChild(p),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),u.appendChild(p),o.appendChild(this.layerElement),u.appendChild(o)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=i}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(i,n,s){this.initFrame(),this.initBaseData(i,n,s),this.initTransform(i,n,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,i=this.shapes.length;for(t=0;t<i;t+=1)this.shapes[t].sh.reset();i=this.shapeModifiers.length;var n;for(t=i-1;t>=0&&(n=this.shapeModifiers[t].processShapes(this._isFirstFrame),!n);t-=1);}},searchProcessedElement:function(t){for(var i=this.processedElements,n=0,s=i.length;n<s;){if(i[n].elem===t)return i[n].pos;n+=1}return 0},addProcessedElement:function(t,i){for(var n=this.processedElements,s=n.length;s;)if(s-=1,n[s].elem===t){n[s].pos=i;return}n.push(new ProcessedElement(t,i))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,i,n){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=t.length||0,o;for(s=0;s<a;s+=1)o=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=o.k||this.k,this.dataProps[s]={n:t[s].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<i;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var n=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,n=this.o.length/2,s;i<n;){if(s=Math.abs(e[i*4]-e[t*4+i*2]),s>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i=this.data.p*4,n,s;for(t=0;t<i;t+=1)n=t%4===0?100:255,s=Math.round(this.prop.v[t]*n),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=this.data.p*4;t<i;t+=1)n=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,o,l;for(l=t.g.p*4,o=0;o<l;o+=4)a=createNS("stop"),n.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(n=e.g.p*4;n<s;n+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(i),f.push(i);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=f,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,i,n,s){if(i===0)return"";var a=t.o,o=t.i,l=t.v,c,u=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<i;c+=1)u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[c][0],o[c][1])+" "+s.applyToPointStringified(l[c][0],l[c][1]);return n&&i&&(u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,i={createRenderFunction:n};function n(d){switch(d.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}function s(d,p,b){(b||p.transform.op._mdf)&&p.transform.container.setAttribute("opacity",p.transform.op.v),(b||p.transform.mProps._mdf)&&p.transform.container.setAttribute("transform",p.transform.mProps.v.to2dCSS())}function a(){}function o(d,p,b){var y,C,P,m,x,g,S=p.styles.length,E=p.lvl,T,L,_,k;for(g=0;g<S;g+=1){if(m=p.sh._mdf||b,p.styles[g].lvl<E){for(L=t.reset(),_=E-p.styles[g].lvl,k=p.transformers.length-1;!m&&_>0;)m=p.transformers[k].mProps._mdf||m,_-=1,k-=1;if(m)for(_=E-p.styles[g].lvl,k=p.transformers.length-1;_>0;)L.multiply(p.transformers[k].mProps.v),_-=1,k-=1}else L=e;if(T=p.sh.paths,C=T._length,m){for(P="",y=0;y<C;y+=1)x=T.shapes[y],x&&x._length&&(P+=buildShapeString(x,x._length,x.c,L));p.caches[g]=P}else P=p.caches[g];p.styles[g].d+=d.hd===!0?"":P,p.styles[g]._mdf=m||p.styles[g]._mdf}}function l(d,p,b){var y=p.style;(p.c._mdf||b)&&y.pElem.setAttribute("fill","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&y.pElem.setAttribute("fill-opacity",p.o.v)}function c(d,p,b){u(d,p,b),f(d,p,b)}function u(d,p,b){var y=p.gf,C=p.g._hasOpacity,P=p.s.v,m=p.e.v;if(p.o._mdf||b){var x=d.ty==="gf"?"fill-opacity":"stroke-opacity";p.style.pElem.setAttribute(x,p.o.v)}if(p.s._mdf||b){var g=d.t===1?"x1":"cx",S=g==="x1"?"y1":"cy";y.setAttribute(g,P[0]),y.setAttribute(S,P[1]),C&&!p.g._collapsable&&(p.of.setAttribute(g,P[0]),p.of.setAttribute(S,P[1]))}var E,T,L,_;if(p.g._cmdf||b){E=p.cst;var k=p.g.c;for(L=E.length,T=0;T<L;T+=1)_=E[T],_.setAttribute("offset",k[T*4]+"%"),_.setAttribute("stop-color","rgb("+k[T*4+1]+","+k[T*4+2]+","+k[T*4+3]+")")}if(C&&(p.g._omdf||b)){var $=p.g.o;for(p.g._collapsable?E=p.cst:E=p.ost,L=E.length,T=0;T<L;T+=1)_=E[T],p.g._collapsable||_.setAttribute("offset",$[T*2]+"%"),_.setAttribute("stop-opacity",$[T*2+1])}if(d.t===1)(p.e._mdf||b)&&(y.setAttribute("x2",m[0]),y.setAttribute("y2",m[1]),C&&!p.g._collapsable&&(p.of.setAttribute("x2",m[0]),p.of.setAttribute("y2",m[1])));else{var z;if((p.s._mdf||p.e._mdf||b)&&(z=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)),y.setAttribute("r",z),C&&!p.g._collapsable&&p.of.setAttribute("r",z)),p.e._mdf||p.h._mdf||p.a._mdf||b){z||(z=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)));var O=Math.atan2(m[1]-P[1],m[0]-P[0]),N=p.h.v;N>=1?N=.99:N<=-1&&(N=-.99);var K=z*N,B=Math.cos(O+p.a.v)*K+P[0],A=Math.sin(O+p.a.v)*K+P[1];y.setAttribute("fx",B),y.setAttribute("fy",A),C&&!p.g._collapsable&&(p.of.setAttribute("fx",B),p.of.setAttribute("fy",A))}}}function f(d,p,b){var y=p.style,C=p.d;C&&(C._mdf||b)&&C.dashStr&&(y.pElem.setAttribute("stroke-dasharray",C.dashStr),y.pElem.setAttribute("stroke-dashoffset",C.dashoffset[0])),p.c&&(p.c._mdf||b)&&y.pElem.setAttribute("stroke","rgb("+bmFloor(p.c.v[0])+","+bmFloor(p.c.v[1])+","+bmFloor(p.c.v[2])+")"),(p.o._mdf||b)&&y.pElem.setAttribute("stroke-opacity",p.o.v),(p.w._mdf||b)&&(y.pElem.setAttribute("stroke-width",p.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",p.w.v))}return i}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,i,n,s=this.stylesList.length,a,o=[],l=!1;for(n=0;n<s;n+=1){for(a=this.stylesList[n],l=!1,o.length=0,e=0;e<t;e+=1)i=this.shapes[e],i.styles.indexOf(a)!==-1&&(o.push(i),l=i._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,n=new SVGStyleData(e,t),s=n.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,n);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new a(this,e,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=ShapePropertyFactory.getShapeProp(this,e,n,this),a=new SVGShapeData(t,i,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)this.stylesList[i].closed||t.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,n,s,a,o){var l=[].concat(a),c,u=e.length-1,f,d,p=[],b=[],y,C,P;for(c=u;c>=0;c-=1){if(P=this.searchProcessedElement(e[c]),P?t[c]=i[P-1]:e[c]._render=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")P?t[c].style.closed=!1:t[c]=this.createStyleElement(e[c],s),e[c]._render&&t[c].style.pElem.parentNode!==n&&n.appendChild(t[c].style.pElem),p.push(t[c].style);else if(e[c].ty==="gr"){if(!P)t[c]=this.createGroupElement(e[c]);else for(d=t[c].it.length,f=0;f<d;f+=1)t[c].prevViewData[f]=t[c].it[f];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,s+1,l,o),e[c]._render&&t[c].gr.parentNode!==n&&n.appendChild(t[c].gr)}else e[c].ty==="tr"?(P||(t[c]=this.createTransformElement(e[c],n)),y=t[c].transform,l.push(y)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(P||(t[c]=this.createShapeElement(e[c],l,s)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(P?(C=t[c],C.closed=!1):(C=ShapeModifiers.getModifier(e[c].ty),C.init(this,e[c]),t[c]=C,this.shapeModifiers.push(C)),b.push(C)):e[c].ty==="rp"&&(P?(C=t[c],C.closed=!0):(C=ShapeModifiers.getModifier(e[c].ty),t[c]=C,C.init(this,e,c,t),this.shapeModifiers.push(C),o=!1),b.push(C));this.addProcessedElement(e[c],c+1)}for(u=p.length,c=0;c<u;c+=1)p[c].closed=!0;for(u=b.length,c=0;c<u;c+=1)b[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,i;for(e=0;e<t;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,i,n,s,a){this.o=e,this.sw=t,this.sc=i,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,i,n,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)i!==this.keysIndex?a=this.effectsSequence[n](a,a.t):a=this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,n=e.length;i<=n-1&&!(i===n-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],i=0,n=e.length,s,a,o=!1,l=!1,c="";i<n;)o=l,l=!1,s=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(s)?o=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(a=e.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(c=e.substr(i,2),o=!0):FontManager.isFlagEmoji(e.substr(i,4))?c=e.substr(i,4):c=e.substr(i,2))):s>56319?(a=e.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,l=!0),o?(t[t.length-1]+=c,o=!1):t.push(c),i+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,i=this.data,n=[],s,a,o,l=0,c,u=i.m.g,f=0,d=0,p=0,b=[],y=0,C=0,P,m,x=t.getFontByName(e.f),g,S=0,E=getFontProperties(x);e.fWeight=E.weight,e.fStyle=E.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var T=e.tr/1e3*e.finalSize,L;if(e.sz)for(var _=!0,k=e.sz[0],$=e.sz[1],z,O;_;){O=this.buildFinalText(e.t),z=0,y=0,a=O.length,T=e.tr/1e3*e.finalSize;var N=-1;for(s=0;s<a;s+=1)L=O[s].charCodeAt(0),o=!1,O[s]===" "?N=s:(L===13||L===3)&&(y=0,o=!0,z+=e.finalLineHeight||e.finalSize*1.2),t.chars?(g=t.getCharData(O[s],x.fStyle,x.fFamily),S=o?0:g.w*e.finalSize/100):S=t.measureText(O[s],e.f,e.finalSize),y+S>k&&O[s]!==" "?(N===-1?a+=1:s=N,z+=e.finalLineHeight||e.finalSize*1.2,O.splice(s,N===s?1:0,"\r"),N=-1,y=0):(y+=S,y+=T);z+=x.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&$<z?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,a=e.finalText.length,_=!1)}y=-T,S=0;var K=0,B;for(s=0;s<a;s+=1)if(o=!1,B=e.finalText[s],L=B.charCodeAt(0),L===13||L===3?(K=0,b.push(y),C=y>C?y:C,y=-2*T,c="",o=!0,p+=1):c=B,t.chars?(g=t.getCharData(B,x.fStyle,t.getFontByName(e.f).fFamily),S=o?0:g.w*e.finalSize/100):S=t.measureText(c,e.f,e.finalSize),B===" "?K+=S+T:(y+=S+T+K,K=0),n.push({l:S,an:S,add:f,n:o,anIndexes:[],val:c,line:p,animatorJustifyOffset:0}),u==2){if(f+=S,c===""||c===" "||s===a-1){for((c===""||c===" ")&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;l+=1,f=0}}else if(u==3){if(f+=S,c===""||s===a-1){for(c===""&&(f-=S);d<=s;)n[d].an=f,n[d].ind=l,n[d].extra=S,d+=1;f=0,l+=1}}else n[l].ind=l,n[l].extra=0,l+=1;if(e.l=n,C=y>C?y:C,b.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=C,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=b;var A=i.a,V,R;m=A.length;var M,I,j=[];for(P=0;P<m;P+=1){for(V=A[P],V.a.sc&&(e.strokeColorAnim=!0),V.a.sw&&(e.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(e.fillColorAnim=!0),I=0,M=V.s.b,s=0;s<a;s+=1)R=n[s],R.anIndexes[P]=I,(M==1&&R.val!==""||M==2&&R.val!==""&&R.val!==" "||M==3&&(R.n||R.val==" "||s==a-1)||M==4&&(R.n||s==a-1))&&(V.s.rn===1&&j.push(I),I+=1);i.a[P].s.totalChars=I;var W=-1,q;if(V.s.rn===1)for(s=0;s<a;s+=1)R=n[s],W!=R.anIndexes[P]&&(W=R.anIndexes[P],q=j.splice(Math.floor(Math.random()*j.length),1)[0]),R.anIndexes[P]=q}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=x.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function n(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,f=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:f=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(l,c,u,f).get,p=0,b=this.finalS,y=this.finalE,C=this.data.sh;if(C===2)y===b?p=o>=y?1:0:p=e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p=d(p);else if(C===3)y===b?p=o>=y?0:1:p=1-e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p=d(p);else if(C===4)y===b?p=0:(p=e(0,t(.5/(y-b)+(o-b)/(y-b),1)),p<.5?p*=2:p=1-2*(p-.5)),p=d(p);else if(C===5){if(y===b)p=0;else{var P=y-b;o=t(e(0,o+.5-b),y-b);var m=-P/2+o,x=P/2;p=Math.sqrt(1-m*m/(x*x))}p=d(p)}else C===6?(y===b?p=0:(o=t(e(0,o+.5-b),y-b),p=(1+Math.cos(Math.PI+Math.PI*2*o/(y-b)))/2),p=d(p)):(o>=i(b)&&(o-b<0?p=e(0,t(t(y,1)-(b-o),1)):p=e(0,t(y-o,1))),p=d(p));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var S=.5-g*.5;p<S?p=0:(p=(p-S)/g,p>1&&(p=1))}return p*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,f=this.e.v/l+c;if(u>f){var d=u;u=f,f=d}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],n);function s(a,o,l){return new n(a,o)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,i){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,i):n,rx:a.rx?s(e,a.rx,0,degToRads,i):n,ry:a.ry?s(e,a.ry,0,degToRads,i):n,sk:a.sk?s(e,a.sk,0,degToRads,i):n,sa:a.sa?s(e,a.sa,0,degToRads,i):n,s:a.s?s(e,a.s,1,.01,i):n,a:a.a?s(e,a.a,1,0,i):n,o:a.o?s(e,a.o,0,.01,i):n,p:a.p?s(e,a.p,1,0,i):n,sw:a.sw?s(e,a.sw,0,0,i):n,sc:a.sc?s(e,a.sc,1,0,i):n,fc:a.fc?s(e,a.fc,1,0,i):n,fh:a.fh?s(e,a.fh,0,0,i):n,fs:a.fs?s(e,a.fs,0,.01,i):n,fb:a.fb?s(e,a.fb,0,.01,i):n,t:a.t?s(e,a.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,i,n=PropertyFactory.getProp;for(e=0;e<t;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,s=this._textData,a=this.mHelper,o=this._renderType,l=this.renderedLetters.length,c,u,f,d,p=e.l,b,y,C,P,m,x,g,S,E,T,L,_,k,$,z;if(this._hasMaskedPath){if(z=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=z.v;this._pathData.r.v&&(O=O.reverse()),b={tLength:0,segments:[]},d=O._length-1;var N;for(_=0,f=0;f<d;f+=1)N=bez.buildBezierData(O.v[f],O.v[f+1],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[f+1][0]-O.v[f+1][0],O.i[f+1][1]-O.v[f+1][1]]),b.tLength+=N.segmentLength,b.segments.push(N),_+=N.segmentLength;f=d,z.v.c&&(N=bez.buildBezierData(O.v[f],O.v[0],[O.o[f][0]-O.v[f][0],O.o[f][1]-O.v[f][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),b.tLength+=N.segmentLength,b.segments.push(N),_+=N.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,y=this._pathData.f.v,g=0,x=1,P=0,m=!0,T=b.segments,y<0&&z.v.c)for(b.tLength<Math.abs(y)&&(y=-Math.abs(y)%b.tLength),g=T.length-1,E=T[g].points,x=E.length-1;y<0;)y+=E[x].partialLength,x-=1,x<0&&(g-=1,E=T[g].points,x=E.length-1);E=T[g].points,S=E[x-1],C=E[x],L=C.partialLength}d=p.length,c=0,u=0;var K=e.finalSize*1.2*.714,B=!0,A,V,R,M,I;M=n.length;var j,W=-1,q,X,ee,re=y,ce=g,he=x,me=-1,pe,se,fe,ie,Y,Ee,Le,be,ye="",Pe=this.defaultPropsArray,ve;if(e.j===2||e.j===1){var Ce=0,xe=0,we=e.j===2?-.5:-1,Se=0,Me=!0;for(f=0;f<d;f+=1)if(p[f].n){for(Ce&&(Ce+=xe);Se<f;)p[Se].animatorJustifyOffset=Ce,Se+=1;Ce=0,Me=!0}else{for(R=0;R<M;R+=1)A=n[R].a,A.t.propType&&(Me&&e.j===2&&(xe+=A.t.v*we),V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?Ce+=A.t.v*j[0]*we:Ce+=A.t.v*j*we);Me=!1}for(Ce&&(Ce+=xe);Se<f;)p[Se].animatorJustifyOffset=Ce,Se+=1}for(f=0;f<d;f+=1){if(a.reset(),pe=1,p[f].n)c=0,u+=e.yOffset,u+=B?1:0,y=re,B=!1,this._hasMaskedPath&&(g=ce,x=he,E=T[g].points,S=E[x-1],C=E[x],L=C.partialLength,P=0),ye="",be="",Ee="",ve="",Pe=this.defaultPropsArray;else{if(this._hasMaskedPath){if(me!==p[f].line){switch(e.j){case 1:y+=_-e.lineWidths[p[f].line];break;case 2:y+=(_-e.lineWidths[p[f].line])/2;break}me=p[f].line}W!==p[f].ind&&(p[W]&&(y+=p[W].extra),y+=p[f].an/2,W=p[f].ind),y+=i[0]*p[f].an*.005;var Re=0;for(R=0;R<M;R+=1)A=n[R].a,A.p.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?Re+=A.p.v[0]*j[0]:Re+=A.p.v[0]*j),A.a.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?Re+=A.a.v[0]*j[0]:Re+=A.a.v[0]*j);for(m=!0,this._pathData.a.v&&(y=p[0].an*.5+(_-this._pathData.f.v-p[0].an*.5-p[p.length-1].an*.5)*W/(d-1),y+=this._pathData.f.v);m;)P+L>=y+Re||!E?(k=(y+Re-P)/C.partialLength,X=S.point[0]+(C.point[0]-S.point[0])*k,ee=S.point[1]+(C.point[1]-S.point[1])*k,a.translate(-i[0]*p[f].an*.005,-(i[1]*K)*.01),m=!1):E&&(P+=C.partialLength,x+=1,x>=E.length&&(x=0,g+=1,T[g]?E=T[g].points:z.v.c?(x=0,g=0,E=T[g].points):(P-=C.partialLength,E=null)),E&&(S=C,C=E[x],L=C.partialLength));q=p[f].an/2-p[f].add,a.translate(-q,0,0)}else q=p[f].an/2-p[f].add,a.translate(-q,0,0),a.translate(-i[0]*p[f].an*.005,-i[1]*K*.01,0);for(R=0;R<M;R+=1)A=n[R].a,A.t.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?j.length?y+=A.t.v*j[0]:y+=A.t.v*j:j.length?c+=A.t.v*j[0]:c+=A.t.v*j));for(e.strokeWidthAnim&&(fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(ie=[e.fc[0],e.fc[1],e.fc[2]]),R=0;R<M;R+=1)A=n[R].a,A.a.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?a.translate(-A.a.v[0]*j[0],-A.a.v[1]*j[1],A.a.v[2]*j[2]):a.translate(-A.a.v[0]*j,-A.a.v[1]*j,A.a.v[2]*j));for(R=0;R<M;R+=1)A=n[R].a,A.s.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),j.length?a.scale(1+(A.s.v[0]-1)*j[0],1+(A.s.v[1]-1)*j[1],1):a.scale(1+(A.s.v[0]-1)*j,1+(A.s.v[1]-1)*j,1));for(R=0;R<M;R+=1){if(A=n[R].a,V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),A.sk.propType&&(j.length?a.skewFromAxis(-A.sk.v*j[0],A.sa.v*j[1]):a.skewFromAxis(-A.sk.v*j,A.sa.v*j)),A.r.propType&&(j.length?a.rotateZ(-A.r.v*j[2]):a.rotateZ(-A.r.v*j)),A.ry.propType&&(j.length?a.rotateY(A.ry.v*j[1]):a.rotateY(A.ry.v*j)),A.rx.propType&&(j.length?a.rotateX(A.rx.v*j[0]):a.rotateX(A.rx.v*j)),A.o.propType&&(j.length?pe+=(A.o.v*j[0]-pe)*j[0]:pe+=(A.o.v*j-pe)*j),e.strokeWidthAnim&&A.sw.propType&&(j.length?fe+=A.sw.v*j[0]:fe+=A.sw.v*j),e.strokeColorAnim&&A.sc.propType)for(Y=0;Y<3;Y+=1)j.length?se[Y]+=(A.sc.v[Y]-se[Y])*j[0]:se[Y]+=(A.sc.v[Y]-se[Y])*j;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(Y=0;Y<3;Y+=1)j.length?ie[Y]+=(A.fc.v[Y]-ie[Y])*j[0]:ie[Y]+=(A.fc.v[Y]-ie[Y])*j;A.fh.propType&&(j.length?ie=addHueToRGB(ie,A.fh.v*j[0]):ie=addHueToRGB(ie,A.fh.v*j)),A.fs.propType&&(j.length?ie=addSaturationToRGB(ie,A.fs.v*j[0]):ie=addSaturationToRGB(ie,A.fs.v*j)),A.fb.propType&&(j.length?ie=addBrightnessToRGB(ie,A.fb.v*j[0]):ie=addBrightnessToRGB(ie,A.fb.v*j))}}for(R=0;R<M;R+=1)A=n[R].a,A.p.propType&&(V=n[R].s,j=V.getMult(p[f].anIndexes[R],s.a[R].s.totalChars),this._hasMaskedPath?j.length?a.translate(0,A.p.v[1]*j[0],-A.p.v[2]*j[1]):a.translate(0,A.p.v[1]*j,-A.p.v[2]*j):j.length?a.translate(A.p.v[0]*j[0],A.p.v[1]*j[1],-A.p.v[2]*j[2]):a.translate(A.p.v[0]*j,A.p.v[1]*j,-A.p.v[2]*j));if(e.strokeWidthAnim&&(Ee=fe<0?0:fe),e.strokeColorAnim&&(Le="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(be="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,i[1]*K*.01+u,0),this._pathData.p.v){$=(C.point[1]-S.point[1])/(C.point[0]-S.point[0]);var Te=Math.atan($)*180/Math.PI;C.point[0]<S.point[0]&&(Te+=180),a.rotate(-Te*Math.PI/180)}a.translate(X,ee,0),y-=i[0]*p[f].an*.005,p[f+1]&&W!==p[f+1].ind&&(y+=p[f].an/2,y+=e.tr*.001*e.finalSize)}else{switch(a.translate(c,u,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line]),0,0);break;case 2:a.translate(p[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[p[f].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(q,0,0),a.translate(i[0]*p[f].an*.005,i[1]*K*.01,0),c+=p[f].l+e.tr*.001*e.finalSize}o==="html"?ye=a.toCSS():o==="svg"?ye=a.to2dCSS():Pe=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ve=pe}l<=f?(I=new LetterProps(ve,Ee,Le,be,ye,Pe),this.renderedLetters.push(I),l+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[f],this.lettersChangedFlag=I.update(ve,Ee,Le,be,ye,Pe)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,n=t.length,s,a="";for(i=0;i<n;i+=1)t[i].ty==="sh"&&(s=t[i].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,n,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}t.translate(n,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,n=[],s="";t<i;)e[t]==="\r"||e[t]===""?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",i.t);var o=i.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,u=this.mHelper,f="",d=this.data.singleShape,p=0,b=0,y=!0,C=i.tr*.001*i.finalSize;if(d&&!l&&!i.sz){var P=this.textContainer,m="start";switch(i.j){case 1:m="end";break;case 2:m="middle";break;default:m="start";break}P.setAttribute("text-anchor",m),P.setAttribute("letter-spacing",C);var x=this.buildTextContents(i.finalText);for(t=x.length,b=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=x[e],c.setAttribute("x",0),c.setAttribute("y",b),c.style.display="inherit",P.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,b+=i.finalLineHeight;this.layerElement.appendChild(P)}else{var g=this.textSpans.length,S;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||e===0){if(c=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var E=createNS("g");c.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),d&&(o[e].n&&(p=-C,b+=i.yOffset,b+=y?1:0,y=!1),this.applyTextPropertiesToMatrix(i,u,o[e].line,p,b),p+=o[e].l||0,p+=C),l){S=this.globalData.fontManager.getCharData(i.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var T;if(S.t===1)T=new SVGCompElement(S.data,this.globalData,this);else{var L=emptyShapeData;S.data&&S.data.shapes&&(L=this.buildShapeData(S.data,i.finalSize)),T=new SVGShapeElement(L,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=T,T._debug=!0,T.prepareFrame(0),T.renderFrame(),this.textSpans[e].childSpan.appendChild(T.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=o[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&c&&c.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,a,o;for(e=0;e<t;e+=1)n[e].n||(s=i[e],a=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();i.setAttribute("id",s),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var s=t[n],a=s.getMatte(this.layers[e].tt);i.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var n=0,s;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),i+=s}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var i,n=t.length,s="_";for(i=0;i<n;i+=1)s+=t[i].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,i){for(var n=0,s=t.transforms.length,a=i;n<s&&!i;){if(t.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(t.finalTransform.reset(),n=s-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=a},processSequences:function(t){var i,n=this.sequenceList.length;for(i=0;i<n;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",i=null,n=null,s=null;function a(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",t),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(f),c.appendChild(u),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function o(){i||(s=a(),document.body.appendChild(s),i=createTag("canvas"),n=i.getContext("2d"),n.filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function l(c){return i||o(),i.width=c.width,i.height=c.height,n.filter="url(#"+t+")",i}return{load:o,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,i=e.data.ef?e.data.ef.length:0;this.filters=[];var n;for(t=0;t<i;t+=1){n=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;n=new a(e.effectsManager.effectElements[t],e)}n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,n=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,n=this.masksProperties.length,s=!1;for(i=0;i<n;i+=1)this.masksProperties[i].mode!=="n"&&(s=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,i,n=this.masksProperties.length,s,a,o;for(t.beginPath(),i=0;i<n;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[i].v,s=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(s[0],s[1]);var l,c=o._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(o.o[l-1],o.i[l],o.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(o.o[l-1],o.i[0],o.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i);var n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],i=t.getContext("2d");this.clearCanvas(i),i.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=i.length,l;for(a=0;a<o;a+=1)i[a].closed||(l={transforms:n.addTransformSequence(i[a].transforms),trNodes:[]},this.styledShapes.push(l),i[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(i.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,n,s){var a,o=e.length-1,l,c,u=[],f=[],d,p,b,y=[].concat(s);for(a=o;a>=0;a-=1){if(d=this.searchProcessedElement(e[a]),d?t[a]=i[d-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")d?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],y),u.push(t[a].style);else if(e[a].ty==="gr"){if(!d)t[a]=this.createGroupElement(e[a]);else for(c=t[a].it.length,l=0;l<c;l+=1)t[a].prevViewData[l]=t[a].it[l];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,y)}else e[a].ty==="tr"?(d||(b=this.createTransformElement(e[a]),t[a]=b),y.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?d||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(d?(p=t[a],p.closed=!1):(p=ShapeModifiers.getModifier(e[a].ty),p.init(this,e[a]),t[a]=p,this.shapeModifiers.push(p)),f.push(p)):e[a].ty==="rp"&&(d?(p=t[a],p.closed=!0):(p=ShapeModifiers.getModifier(e[a].ty),t[a]=p,p.init(this,e,a,t),this.shapeModifiers.push(p),n=!1),f.push(p));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),o=f.length,a=0;a<o;a+=1)f[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,i,n,s,a,o,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,d;for(e=0;e<t;e+=1)if(d=this.stylesList[e],f=d.type,!((f==="st"||f==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),o=d.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?d.co:d.grd),c.ctxLineWidth(d.wi),c.ctxLineCap(d.lc),c.ctxLineJoin(d.lj),c.ctxMiterLimit(d.ml||0)):c.ctxFillStyle(f==="fl"?d.co:d.grd),c.ctxOpacity(d.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(d.preTransforms.finalTransform.props),n=o.length,i=0;i<n;i+=1){for((f==="st"||f==="gs")&&(u.beginPath(),d.da&&(u.setLineDash(d.da),u.lineDashOffset=d.do)),l=o[i].trNodes,a=l.length,s=0;s<a;s+=1)l[s].t==="m"?u.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?u.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):u.closePath();(f==="st"||f==="gs")&&(c.ctxStroke(),d.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(d.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,n){var s,a=t.length-1,o;for(o=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(o=i[s].transform,this.renderShapeTransform(e,o)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],i[s]):t[s].ty==="fl"?this.renderFill(t[s],i[s],o):t[s].ty==="st"?this.renderStroke(t[s],i[s],o):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],i[s],o):t[s].ty==="gr"?this.renderShape(o,t[s].it,i[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i=e.trNodes,n=t.paths,s,a,o,l=n._length;i.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var u=n.shapes[o];if(u&&u.v){for(a=u._length,s=1;s<a;s+=1)s===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[s],u.v[s])});a===1&&i.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&a&&(i.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[0],u.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var i,n=t.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var n=t.style,s;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(e.t===1)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var d=c*f,p=Math.cos(u+t.a.v)*d+o[0],b=Math.sin(u+t.a.v)*d+o[1];s=a.createRadialGradient(p,b,0,o[0],o[1],c)}var y,C=e.g.p,P=t.g.c,m=1;for(y=0;y<C;y+=1)t.g._hasOpacity&&t.g._collapsable&&(m=t.g.o[y*2+1]),s.addColorStop(P[y*4]/100,"rgba("+P[y*4+1]+","+P[y*4+2]+","+P[y*4+3]+","+m+")");n.grd=s}n.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n=this.globalData.fontManager.getFontByName(e.f),s,a,o=e.l,l=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var c,u,f,d,p,b,y,C,P,m,x=this.data.singleShape,g=e.tr*.001*e.finalSize,S=0,E=0,T=!0,L=0;for(s=0;s<a;s+=1){c=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),x&&o[s].n&&(S=-g,E+=e.yOffset,E+=T?1:0,T=!1),p=u.shapes?u.shapes[0].it:[],y=p.length,l.scale(e.finalSize/100,e.finalSize/100),x&&this.applyTextPropertiesToMatrix(e,l,o[s].line,S,E),P=createSizedArray(y-1);var _=0;for(b=0;b<y;b+=1)if(p[b].ty==="sh"){for(d=p[b].ks.k.i.length,C=p[b].ks.k,m=[],f=1;f<d;f+=1)f===1&&m.push(l.applyToX(C.v[0][0],C.v[0][1],0),l.applyToY(C.v[0][0],C.v[0][1],0)),m.push(l.applyToX(C.o[f-1][0],C.o[f-1][1],0),l.applyToY(C.o[f-1][0],C.o[f-1][1],0),l.applyToX(C.i[f][0],C.i[f][1],0),l.applyToY(C.i[f][0],C.i[f][1],0),l.applyToX(C.v[f][0],C.v[f][1],0),l.applyToY(C.v[f][0],C.v[f][1],0));m.push(l.applyToX(C.o[f-1][0],C.o[f-1][1],0),l.applyToY(C.o[f-1][0],C.o[f-1][1],0),l.applyToX(C.i[0][0],C.i[0][1],0),l.applyToY(C.i[0][0],C.i[0][1],0),l.applyToX(C.v[0][0],C.v[0][1],0),l.applyToY(C.v[0][0],C.v[0][1],0)),P[_]=m,_+=1}x&&(S+=o[s].l,S+=g),this.textSpans[L]?this.textSpans[L].elem=P:this.textSpans[L]={elem:P},L+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,i,n,s,a,o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;i=c.length;var u,f=null,d=null,p=null,b,y,C=this.globalData.renderer;for(t=0;t<i;t+=1)if(!c[t].n){if(u=l[t],u&&(C.save(),C.ctxTransform(u.p),C.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(C.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,C.ctxFillStyle(this.values.fill)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(y=b[n],o=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(y[a],y[a+1],y[a+2],y[a+3],y[a+4],y[a+5]);this.globalData.canvasContext.closePath(),C.ctxFill()}if(this.stroke){for(u&&u.sw?p!==u.sw&&(p=u.sw,C.ctxLineWidth(u.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,C.ctxLineWidth(this.values.sWidth)),u&&u.sc?d!==u.sc&&(d=u.sc,C.ctxStrokeStyle(u.sc)):d!==this.values.stroke&&(d=this.values.stroke,C.ctxStrokeStyle(this.values.stroke)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(y=b[n],o=y.length,this.globalData.canvasContext.moveTo(y[0],y[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(y[a],y[a+1],y[a+2],y[a+3],y[a+4],y[a+5]);this.globalData.canvasContext.closePath(),C.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,a=this.assetData.w/this.assetData.h,o,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&c==="xMidYMid slice"||s<a&&c!=="xMidYMid slice"?(l=n,o=l*a):(o=i,l=o/a),t.drawImage(this.img,(i-o)/2,(n-l)/2,o,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,n){this.canvasContext.fillRect(e,t,i,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var i,n;e?(i=e,n=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",u=c.substr(0,4),f=c.substr(4);s=i/n,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&l==="meet"||a<s&&l==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],i=t.transform,n,s=this.cTr.props;for(n=0;n<16;n+=1)s[n]=i[n];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)i.transform[n]=t[n];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=i.opacity,s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,s.lineWidth=i.lineWidth,s.lineCap=i.lineCap,s.lineJoin=i.lineJoin,s.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,i=this.layers.length;for(t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();t.transform=i,t.webkitTransform=i}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,i){this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i=e.sh.v,n=e.transformers,s,a=i._length,o,l,c,u;if(!(a<=1)){for(s=0;s<a-1;s+=1)o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[s+1]),u=this.getTransformedPoint(n,i.v[s+1]),this.checkBounds(o,l,c,u,t);i.c&&(o=this.getTransformedPoint(n,i.v[s]),l=this.getTransformedPoint(n,i.o[s]),c=this.getTransformedPoint(n,i.i[0]),u=this.getTransformedPoint(n,i.v[0]),this.checkBounds(o,l,c,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,n,s){this.getBoundsOfCurve(e,t,i,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,n){for(var s=[[e[0],n[0]],[e[1],n[1]]],a,o,l,c,u,f,d,p=0;p<2;++p)o=6*e[p]-12*t[p]+6*i[p],a=-3*e[p]+9*t[p]-9*i[p]+3*n[p],l=3*t[p]-3*e[p],o|=0,a|=0,l|=0,a===0&&o===0||(a===0?(c=-l/o,c>0&&c<1&&s[p].push(this.calculateF(c,e,t,i,n,p))):(u=o*o-4*l*a,u>=0&&(f=(-o+bmSqrt(u))/(2*a),f>0&&f<1&&s[p].push(this.calculateF(f,e,t,i,n,p)),d=(-o-bmSqrt(u))/(2*a),d>0&&d<1&&s[p].push(this.calculateF(d,e,t,i,n,p)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,i,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*i[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,n=e.length;for(i=0;i<n;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>i&&(i=s)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}};function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var o,l,c=e.l;l=c.length;var u,f,d,p=this.mHelper,b,y="",C=0;for(o=0;o<l;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[C]?u=this.textPaths[C]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[C]?(f=this.textSpans[C],d=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,d=createNS("svg"),d.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[C]?this.textPaths[C]:createNS("text"):this.textSpans[C]?(f=this.textSpans[C],u=this.textPaths[C]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var P=this.globalData.fontManager.getCharData(e.finalText[o],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),m;if(P?m=P.data:m=null,p.reset(),m&&m.shapes&&m.shapes.length&&(b=m.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),y=this.createPathShape(p,b),u.setAttribute("d",y)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),m&&m.shapes){document.body.appendChild(d);var x=d.getBBox();d.setAttribute("width",x.width+2),d.setAttribute("height",x.height+2),d.setAttribute("viewBox",x.x-1+" "+(x.y-1)+" "+(x.width+2)+" "+(x.height+2));var g=d.style,S="translate("+(x.x-1)+"px,"+(x.y-1)+"px)";g.transform=S,g.webkitTransform=S,c[o].yOffset=x.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);f.appendChild(d)}}else if(u.textContent=c[o].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(f);var E=u.style,T="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=T,E.webkitTransform=T}this.isMasked?this.textSpans[C]=u:this.textSpans[C]=f,this.textSpans[C].style.display="block",this.textPaths[C]=u,C+=1}for(;C<this.textSpans.length;)this.textSpans[C].style.display="none",C+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,n,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;n=o.length;var l,c,u;for(i=0;i<n;i+=1)o[i].n?s+=1:(c=this.textSpans[i],u=this.textPaths[i],l=a[s],s+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var d=1;if(this.currentBBox.w!==f.width+d*2||this.currentBBox.h!==f.height+d*2||this.currentBBox.x!==f.x-d||this.currentBBox.y!==f.y-d){this.currentBBox.w=f.width+d*2,this.currentBBox.h=f.height+d*2,this.currentBBox.x=f.x-d,this.currentBBox.y=f.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}};function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,i,n,s;for(e=0;e<t;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){n=i.perspectiveElem.style,s=i.container.style;var a=this.pe.v+"px",o="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,n.transform=l,n.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,i;if(this.hierarchy)for(i=this.hierarchy.length,t=0;t<i;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=this.hierarchy.length-1,t=i;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],l=Math.sqrt(o[2]*o[2]+o[0]*o[0]),c=Math.atan2(o[1],l),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var d,p,b;for(t=0;t<i;t+=1)if(d=this.comp.threeDElements[t],d.type==="3d"){if(f){var y=this.mat.toCSS();b=d.container.style,b.transform=y,b.webkitTransform=y}this.pe._mdf&&(p=d.perspectiveElem.style,p.perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var n=this.layers[t];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var s=0,a,o,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(o=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),a=l||a),s+=1;a?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,a):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i=createTag("div"),n,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),t==="3d"){n=i.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o,s=a.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}i.appendChild(a);var c={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,i,n="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(n!=="2d"&&(n="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,n=this.threeDElements.length;i<n;){if(t<=this.threeDElements[i].endPos){for(var s=this.threeDElements[i].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[i].container.insertBefore(e,a):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,i=e/t,n=this.globalData.compSize.w/this.globalData.compSize.h,s,a,o,l;n>i?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,o=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,i,n=this.threeDElements.length;for(i=0;i<n;i+=1){var s=this.threeDElements[i].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,n=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i=0,n;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(i){for(var n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===i||e.layers[n].ind===i)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(i){return typeof i}:_typeof$2=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(e)}function seedRandom(e,t){var i=this,n=256,s=6,a=52,o="random",l=t.pow(n,s),c=t.pow(2,a),u=c*2,f=n-1,d;function p(g,S,E){var T=[];S=S===!0?{entropy:!0}:S||{};var L=P(C(S.entropy?[g,x(e)]:g===null?m():g,3),T),_=new b(T),k=function(){for(var z=_.g(s),O=l,N=0;z<c;)z=(z+N)*n,O*=n,N=_.g(1);for(;z>=u;)z/=2,O/=2,N>>>=1;return(z+N)/O};return k.int32=function(){return _.g(4)|0},k.quick=function(){return _.g(4)/4294967296},k.double=k,P(x(_.S),e),(S.pass||E||function($,z,O,N){return N&&(N.S&&y(N,_),$.state=function(){return y(_,{})}),O?(t[o]=$,z):$})(k,L,"global"in S?S.global:this==t,S.state)}t["seed"+o]=p;function b(g){var S,E=g.length,T=this,L=0,_=T.i=T.j=0,k=T.S=[];for(E||(g=[E++]);L<n;)k[L]=L++;for(L=0;L<n;L++)k[L]=k[_=f&_+g[L%E]+(S=k[L])],k[_]=S;T.g=function($){for(var z,O=0,N=T.i,K=T.j,B=T.S;$--;)z=B[N=f&N+1],O=O*n+B[f&(B[N]=B[K=f&K+z])+(B[K]=z)];return T.i=N,T.j=K,O}}function y(g,S){return S.i=g.i,S.j=g.j,S.S=g.S.slice(),S}function C(g,S){var E=[],T=_typeof$2(g),L;if(S&&T=="object")for(L in g)try{E.push(C(g[L],S-1))}catch{}return E.length?E:T=="string"?g:g+"\0"}function P(g,S){for(var E=g+"",T,L=0;L<E.length;)S[f&L]=f&(T^=S[f&L]*19)+E.charCodeAt(L++);return x(S)}function m(){try{var g=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(g),x(g)}catch{var S=i.navigator,E=S&&S.plugins;return[+new Date,i,E,i.screen,x(e)]}}function x(g){return String.fromCharCode.apply(0,g)}P(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(i){return typeof i}:_typeof$1=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,n=e.length,s=[];for(i=0;i<n;i+=1)s[i]=-e[i];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t)||i==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),n=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(n,t))return i==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e*t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var i=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(i,e)&&isNumerable(n,t))return e/t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/t;return s}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var n=i;i=t,t=n}return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var i,n=Math.min(e.length,t.length),s=0;for(i=0;i<n;i+=1)s+=Math.pow(t[i]-e[i],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],i=e[1],n=e[2],s=Math.max(t,i,n),a=Math.min(t,i,n),o,l,c=(s+a)/2;if(s===a)o=0,l=0;else{var u=s-a;switch(l=c>.5?u/(2-s-a):u/(s+a),s){case t:o=(i-n)/u+(i<n?6:0);break;case i:o=(n-t)/u+2;break;case n:o=(t-i)/u+4;break}o/=6}return[o,l,c,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t=e[0],i=e[1],n=e[2],s,a,o;if(i===0)s=n,o=n,a=n;else{var l=n<.5?n*(1+i):n+i-n*i,c=2*n-l;s=hue2rgb(c,l,t+1/3),a=hue2rgb(c,l,t),o=hue2rgb(c,l,t-1/3)}return[s,a,o,e[3]]}function linear(e,t,i,n,s){if((n===void 0||s===void 0)&&(n=t,s=i,t=0,i=1),i<t){var a=i;i=t,t=a}if(e<=t)return n;if(e>=i)return s;var o=i===t?0:(e-t)/(i-t);if(!n.length)return n+(s-n)*o;var l,c=n.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=n[l]+(s[l]-n[l])*o;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var i,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(i=0;i<n;i+=1)s[i]=e[i]+a*(t[i]-e[i]);return s}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,i,n){var s,a=e.length,o=shapePool.newElement();o.setPathData(!!n,a);var l=[0,0],c,u;for(s=0;s<a;s+=1)c=t&&t[s]?t[s]:l,u=i&&i[s]?i[s]:l,o.setTripleAt(e[s][0],e[s][1],u[0]+e[s][0],u[1]+e[s][1],c[0]+e[s][0],c[1]+e[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,i){var n,s,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);t=5;var l=Math.floor(time*t);for(n=0,s=0;n<l;){for(s=0;s<a;s+=1)o[s]+=-i+i*2*BMMath.random();n+=1}var c=time*t,u=c-Math.floor(c),f=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)f[s]=this.pv[s]+o[s]+(-i+i*2*BMMath.random())*u;return f}return this.pv+o[0]+(-i+i*2*BMMath.random())*u}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,s=-Math.atan2(i[1],i[2])/degToRads;return[s,n,0]}function easeOut(e,t,i,n,s){return applyEase(easeOutBez,e,t,i,n,s)}function easeIn(e,t,i,n,s){return applyEase(easeInBez,e,t,i,n,s)}function ease(e,t,i,n,s){return applyEase(easeInOutBez,e,t,i,n,s)}function applyEase(e,t,i,n,s,a){s===void 0?(s=i,a=n):t=(t-i)/(n-i),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(s)){var l,c=s.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(a[l]-s[l])*o+s[l];return u}return(a-s)*o+s}function nearestKey(e){var t,i=data.k.length,n,s;if(!data.k.length||typeof data.k[0]=="number")n=0,s=0;else if(n=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)n=1,s=data.k[0].t;else{for(t=0;t<i-1;t+=1)if(e===data.k[t].t){n=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,s=data.k[t+1].t):(n=t+1,s=data.k[t].t);break}n===-1&&(n=t+1,s=data.k[t].t)}var a={};return a.index=n,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,i,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,i=0;i<n;i+=1)t[i]=s[i],t.value[i]=s[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(i){var n=0,s=[];function a(){n+=1}function o(){n-=1,n===0&&c()}function l(u){s.indexOf(u)===-1&&s.push(u)}function c(){var u,f=s.length;for(u=0;u<f;u+=1)s[u].release();s.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=a,i.renderer.globalData.popExpression=o,i.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(i,n){this._mask=i,this._data=n}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(n){var s=createSizedArray(n.viewData.length),a,o=n.viewData.length;for(a=0;a<o;a+=1)s[a]=new e(n.viewData[a],n.masksProperties[a]);var l=function(u){for(a=0;a<o;){if(n.masksProperties[a].nm===u)return s[a];a+=1}return null};return l};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(o,l,c){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(u){if(!o.numKeys)return 0;var f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var d=c==="unidimensional"?new Number(f):Object.assign({},f);return d.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,d.value=c==="unidimensional"?f[0]:f,d},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function n(o){(!o||!("pv"in o))&&(o=e);var l=1/o.mult,c=o.pv*l,u=new Number(c);return u.value=c,i(u,o,"unidimensional"),function(){return o.k&&o.getValue(),c=o.v*l,u.value!==c&&(u=new Number(c),u.value=c,i(u,o,"unidimensional")),u}}function s(o){(!o||!("pv"in o))&&(o=t);var l=1/o.mult,c=o.data&&o.data.l||o.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,i(u,o,"multidimensional"),function(){o.k&&o.getValue();for(var d=0;d<c;d+=1)f[d]=o.v[d]*l,u[d]=f[d];return u}}function a(){return e}return function(o){return o?o.propType==="unidimensional"?n(o):s(o):a}}(),TransformExpressionInterface=function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var i,n,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[i(),n(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(u);d.clone(f)}else{var p=this._elem.finalTransform.mProp;p.applyToMatrix(f)}return f}function t(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,u)}function i(u,f){var d=this.getMatrix(f);return this.applyPoint(d,u)}function n(u,f){var d=this.getMatrix(f);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,u)}function s(u,f){var d=this.getMatrix(f);return this.invertPoint(d,u)}function a(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var d,p=this._elem.hierarchy.length;for(d=0;d<p;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function d(C){b.mask=new MaskManagerInterface(C,u)}function p(C){b.effect=C}function b(C){switch(C){case"ADBE Root Vectors Group":case"Contents":case 2:return b.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return b.effect;case"ADBE Text Properties":return b.textInterface;default:return null}}b.getMatrix=e,b.invertPoint=o,b.applyPoint=a,b.toWorld=i,b.toWorldVec=t,b.fromWorld=s,b.fromWorldVec=n,b.toComp=i,b.fromComp=l,b.sampleImage=c,b.sourceRectAtTime=u.sourceRectAtTime.bind(u),b._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var y=getDescriptor(f,"anchorPoint");return Object.defineProperties(b,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:y,anchor_point:y,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),b.startTime=u.data.st,b.index=u.data.ind,b.source=u.data.refId,b.height=u.data.ty===0?u.data.h:100,b.width=u.data.ty===0?u.data.w:100,b.inPoint=u.data.ip/u.comp.globalData.frameRate,b.outPoint=u.data.op/u.comp.globalData.frameRate,b._name=u.data.nm,b.registerMaskInterface=d,b.registerEffectsInterface=p,b}}(),propertyGroupFactory=function(){return function(e,t){return function(i){return i=i===void 0?1:i,i<=0?e:t(i-1)}}}(),PropertyInterface=function(){return function(e,t){var i={_name:e};function n(s){return s=s===void 0?1:s,s<=0?i:t(s-1)}return n}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var o=[],l=s.data.ef,c,u=s.effectsManager.effectElements.length;for(c=0;c<u;c+=1)o.push(i(l[c],s.effectsManager.effectElements[c],a,s));var f=s.data.ef||[],d=function(b){for(c=0,u=f.length;c<u;){if(b===f[c].nm||b===f[c].mn||b===f[c].ix)return o[c];c+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return f.length}}),d}return null}function i(s,a,o,l){function c(b){for(var y=s.ef,C=0,P=y.length;C<P;){if(b===y[C].nm||b===y[C].mn||b===y[C].ix)return y[C].ty===5?f[C]:f[C]();C+=1}throw new Error}var u=propertyGroupFactory(c,o),f=[],d,p=s.ef.length;for(d=0;d<p;d+=1)s.ef[d].ty===5?f.push(i(s.ef[d],a.effectElements[d],a.effectElements[d].propertyGroup,l)):f.push(n(a.effectElements[d],s.ef[d].ty,l,u));return s.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:u}}),c.enabled=s.en!==0,c.active=c.enabled,c}function n(s,a,o,l){var c=ExpressionPropertyInterface(s.p);function u(){return a===10?o.comp.compInterface(s.p.v):c()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(t,i,n){var s=i.sh;function a(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?a.path:null}var o=propertyGroupFactory(a,n);return s.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),a}}(),ShapeExpressionInterface=function(){function e(y,C,P){var m=[],x,g=y?y.length:0;for(x=0;x<g;x+=1)y[x].ty==="gr"?m.push(i(y[x],C[x],P)):y[x].ty==="fl"?m.push(n(y[x],C[x],P)):y[x].ty==="st"?m.push(o(y[x],C[x],P)):y[x].ty==="tm"?m.push(l(y[x],C[x],P)):y[x].ty==="tr"||(y[x].ty==="el"?m.push(u(y[x],C[x],P)):y[x].ty==="sr"?m.push(f(y[x],C[x],P)):y[x].ty==="sh"?m.push(ShapePathInterface(y[x],C[x],P)):y[x].ty==="rc"?m.push(d(y[x],C[x],P)):y[x].ty==="rd"?m.push(p(y[x],C[x],P)):y[x].ty==="rp"?m.push(b(y[x],C[x],P)):y[x].ty==="gf"?m.push(s(y[x],C[x],P)):m.push(a(y[x],C[x])));return m}function t(y,C,P){var m,x=function(E){for(var T=0,L=m.length;T<L;){if(m[T]._name===E||m[T].mn===E||m[T].propertyIndex===E||m[T].ix===E||m[T].ind===E)return m[T];T+=1}return typeof E=="number"?m[E-1]:null};x.propertyGroup=propertyGroupFactory(x,P),m=e(y.it,C.it,x.propertyGroup),x.numProperties=m.length;var g=c(y.it[y.it.length-1],C.it[C.it.length-1],x.propertyGroup);return x.transform=g,x.propertyIndex=y.cix,x._name=y.nm,x}function i(y,C,P){var m=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return m.content;default:return m.transform}};m.propertyGroup=propertyGroupFactory(m,P);var x=t(y,C,m.propertyGroup),g=c(y.it[y.it.length-1],C.it[C.it.length-1],m.propertyGroup);return m.content=x,m.transform=g,Object.defineProperty(m,"_name",{get:function(){return y.nm}}),m.numProperties=y.np,m.propertyIndex=y.ix,m.nm=y.nm,m.mn=y.mn,m}function n(y,C,P){function m(x){return x==="Color"||x==="color"?m.color:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{color:{get:ExpressionPropertyInterface(C.c)},opacity:{get:ExpressionPropertyInterface(C.o)},_name:{value:y.nm},mn:{value:y.mn}}),C.c.setGroupProperty(PropertyInterface("Color",P)),C.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function s(y,C,P){function m(x){return x==="Start Point"||x==="start point"?m.startPoint:x==="End Point"||x==="end point"?m.endPoint:x==="Opacity"||x==="opacity"?m.opacity:null}return Object.defineProperties(m,{startPoint:{get:ExpressionPropertyInterface(C.s)},endPoint:{get:ExpressionPropertyInterface(C.e)},opacity:{get:ExpressionPropertyInterface(C.o)},type:{get:function(){return"a"}},_name:{value:y.nm},mn:{value:y.mn}}),C.s.setGroupProperty(PropertyInterface("Start Point",P)),C.e.setGroupProperty(PropertyInterface("End Point",P)),C.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function a(){function y(){return null}return y}function o(y,C,P){var m=propertyGroupFactory(L,P),x=propertyGroupFactory(T,m);function g(_){Object.defineProperty(T,y.d[_].nm,{get:ExpressionPropertyInterface(C.d.dataProps[_].p)})}var S,E=y.d?y.d.length:0,T={};for(S=0;S<E;S+=1)g(S),C.d.dataProps[S].p.setGroupProperty(x);function L(_){return _==="Color"||_==="color"?L.color:_==="Opacity"||_==="opacity"?L.opacity:_==="Stroke Width"||_==="stroke width"?L.strokeWidth:null}return Object.defineProperties(L,{color:{get:ExpressionPropertyInterface(C.c)},opacity:{get:ExpressionPropertyInterface(C.o)},strokeWidth:{get:ExpressionPropertyInterface(C.w)},dash:{get:function(){return T}},_name:{value:y.nm},mn:{value:y.mn}}),C.c.setGroupProperty(PropertyInterface("Color",m)),C.o.setGroupProperty(PropertyInterface("Opacity",m)),C.w.setGroupProperty(PropertyInterface("Stroke Width",m)),L}function l(y,C,P){function m(g){return g===y.e.ix||g==="End"||g==="end"?m.end:g===y.s.ix?m.start:g===y.o.ix?m.offset:null}var x=propertyGroupFactory(m,P);return m.propertyIndex=y.ix,C.s.setGroupProperty(PropertyInterface("Start",x)),C.e.setGroupProperty(PropertyInterface("End",x)),C.o.setGroupProperty(PropertyInterface("Offset",x)),m.propertyIndex=y.ix,m.propertyGroup=P,Object.defineProperties(m,{start:{get:ExpressionPropertyInterface(C.s)},end:{get:ExpressionPropertyInterface(C.e)},offset:{get:ExpressionPropertyInterface(C.o)},_name:{value:y.nm}}),m.mn=y.mn,m}function c(y,C,P){function m(g){return y.a.ix===g||g==="Anchor Point"?m.anchorPoint:y.o.ix===g||g==="Opacity"?m.opacity:y.p.ix===g||g==="Position"?m.position:y.r.ix===g||g==="Rotation"||g==="ADBE Vector Rotation"?m.rotation:y.s.ix===g||g==="Scale"?m.scale:y.sk&&y.sk.ix===g||g==="Skew"?m.skew:y.sa&&y.sa.ix===g||g==="Skew Axis"?m.skewAxis:null}var x=propertyGroupFactory(m,P);return C.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",x)),C.transform.mProps.p.setGroupProperty(PropertyInterface("Position",x)),C.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",x)),C.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",x)),C.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",x)),C.transform.mProps.sk&&(C.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",x)),C.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",x))),C.transform.op.setGroupProperty(PropertyInterface("Opacity",x)),Object.defineProperties(m,{opacity:{get:ExpressionPropertyInterface(C.transform.mProps.o)},position:{get:ExpressionPropertyInterface(C.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(C.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(C.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(C.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(C.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(C.transform.mProps.sa)},_name:{value:y.nm}}),m.ty="tr",m.mn=y.mn,m.propertyGroup=P,m}function u(y,C,P){function m(S){return y.p.ix===S?m.position:y.s.ix===S?m.size:null}var x=propertyGroupFactory(m,P);m.propertyIndex=y.ix;var g=C.sh.ty==="tm"?C.sh.prop:C.sh;return g.s.setGroupProperty(PropertyInterface("Size",x)),g.p.setGroupProperty(PropertyInterface("Position",x)),Object.defineProperties(m,{size:{get:ExpressionPropertyInterface(g.s)},position:{get:ExpressionPropertyInterface(g.p)},_name:{value:y.nm}}),m.mn=y.mn,m}function f(y,C,P){function m(S){return y.p.ix===S?m.position:y.r.ix===S?m.rotation:y.pt.ix===S?m.points:y.or.ix===S||S==="ADBE Vector Star Outer Radius"?m.outerRadius:y.os.ix===S?m.outerRoundness:y.ir&&(y.ir.ix===S||S==="ADBE Vector Star Inner Radius")?m.innerRadius:y.is&&y.is.ix===S?m.innerRoundness:null}var x=propertyGroupFactory(m,P),g=C.sh.ty==="tm"?C.sh.prop:C.sh;return m.propertyIndex=y.ix,g.or.setGroupProperty(PropertyInterface("Outer Radius",x)),g.os.setGroupProperty(PropertyInterface("Outer Roundness",x)),g.pt.setGroupProperty(PropertyInterface("Points",x)),g.p.setGroupProperty(PropertyInterface("Position",x)),g.r.setGroupProperty(PropertyInterface("Rotation",x)),y.ir&&(g.ir.setGroupProperty(PropertyInterface("Inner Radius",x)),g.is.setGroupProperty(PropertyInterface("Inner Roundness",x))),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(g.p)},rotation:{get:ExpressionPropertyInterface(g.r)},points:{get:ExpressionPropertyInterface(g.pt)},outerRadius:{get:ExpressionPropertyInterface(g.or)},outerRoundness:{get:ExpressionPropertyInterface(g.os)},innerRadius:{get:ExpressionPropertyInterface(g.ir)},innerRoundness:{get:ExpressionPropertyInterface(g.is)},_name:{value:y.nm}}),m.mn=y.mn,m}function d(y,C,P){function m(S){return y.p.ix===S?m.position:y.r.ix===S?m.roundness:y.s.ix===S||S==="Size"||S==="ADBE Vector Rect Size"?m.size:null}var x=propertyGroupFactory(m,P),g=C.sh.ty==="tm"?C.sh.prop:C.sh;return m.propertyIndex=y.ix,g.p.setGroupProperty(PropertyInterface("Position",x)),g.s.setGroupProperty(PropertyInterface("Size",x)),g.r.setGroupProperty(PropertyInterface("Rotation",x)),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(g.p)},roundness:{get:ExpressionPropertyInterface(g.r)},size:{get:ExpressionPropertyInterface(g.s)},_name:{value:y.nm}}),m.mn=y.mn,m}function p(y,C,P){function m(S){return y.r.ix===S||S==="Round Corners 1"?m.radius:null}var x=propertyGroupFactory(m,P),g=C;return m.propertyIndex=y.ix,g.rd.setGroupProperty(PropertyInterface("Radius",x)),Object.defineProperties(m,{radius:{get:ExpressionPropertyInterface(g.rd)},_name:{value:y.nm}}),m.mn=y.mn,m}function b(y,C,P){function m(S){return y.c.ix===S||S==="Copies"?m.copies:y.o.ix===S||S==="Offset"?m.offset:null}var x=propertyGroupFactory(m,P),g=C;return m.propertyIndex=y.ix,g.c.setGroupProperty(PropertyInterface("Copies",x)),g.o.setGroupProperty(PropertyInterface("Offset",x)),Object.defineProperties(m,{copies:{get:ExpressionPropertyInterface(g.c)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:y.nm}}),m.mn=y.mn,m}return function(y,C,P){var m;function x(S){if(typeof S=="number")return S=S===void 0?1:S,S===0?P:m[S-1];for(var E=0,T=m.length;E<T;){if(m[E]._name===S)return m[E];E+=1}return null}function g(){return P}return x.propertyGroup=propertyGroupFactory(x,g),m=e(y,C,x.propertyGroup),x.numProperties=m.length,x._name="Contents",x}}(),TextExpressionInterface=function(){return function(e){var t;function i(n){switch(n){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(i){return typeof i}:_typeof=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(e)}var FootageInterface=function(){var e=function(n){var s="",a=n.getFootageData();function o(){return s="",a=n.getFootageData(),l}function l(c){if(a[c])return s=c,a=a[c],_typeof(a)==="object"?l:a;var u=c.indexOf(s);if(u!==-1){var f=parseInt(c.substr(u+s.length),10);return a=a[f],_typeof(a)==="object"?l:a}return""}return o},t=function(n){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(n),s};return function(i){function n(s){return s==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=t(i),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(o,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(o,l,c).bind(c)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function i(o){var l=-.01,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f=0;if(c.length){var d;for(d=0;d<c.length;d+=1)f+=Math.pow(u[d]-c[d],2);f=Math.sqrt(f)*100}else f=0;return f}function n(o){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),f;if(c.length){f=createTypedArray("float32",c.length);var d;for(d=0;d<c.length;d+=1)f[d]=(u[d]-c[d])/l}else f=(u-c)/l;return f}function s(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:n,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(p,b,y){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var C=this.comp.renderedFrame,P=this.keyframes,m=P[P.length-1].t;if(C<=m)return this.pv;var x,g;y?(b?x=Math.abs(m-this.elem.comp.globalData.frameRate*b):x=Math.max(0,m-this.elem.data.ip),g=m-x):((!b||b>P.length-1)&&(b=P.length-1),g=P[P.length-1-b].t,x=m-g);var S,E,T;if(p==="pingpong"){var L=Math.floor((C-g)/x);if(L%2!==0)return this.getValueAtTime((x-(C-g)%x+g)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(g/this.comp.globalData.frameRate,0),k=this.getValueAtTime(m/this.comp.globalData.frameRate,0),$=this.getValueAtTime(((C-g)%x+g)/this.comp.globalData.frameRate,0),z=Math.floor((C-g)/x);if(this.pv.length){for(T=new Array(_.length),E=T.length,S=0;S<E;S+=1)T[S]=(k[S]-_[S])*z+$[S];return T}return(k-_)*z+$}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(O.length),E=T.length,S=0;S<E;S+=1)T[S]=O[S]+(O[S]-N[S])*((C-m)/this.comp.globalData.frameRate)/5e-4;return T}return O+(O-N)*((C-m)/.001)}return this.getValueAtTime(((C-g)%x+g)/this.comp.globalData.frameRate,0)}function t(p,b,y){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var C=this.comp.renderedFrame,P=this.keyframes,m=P[0].t;if(C>=m)return this.pv;var x,g;y?(b?x=Math.abs(this.elem.comp.globalData.frameRate*b):x=Math.max(0,this.elem.data.op-m),g=m+x):((!b||b>P.length-1)&&(b=P.length-1),g=P[b].t,x=g-m);var S,E,T;if(p==="pingpong"){var L=Math.floor((m-C)/x);if(L%2===0)return this.getValueAtTime(((m-C)%x+m)/this.comp.globalData.frameRate,0)}else if(p==="offset"){var _=this.getValueAtTime(m/this.comp.globalData.frameRate,0),k=this.getValueAtTime(g/this.comp.globalData.frameRate,0),$=this.getValueAtTime((x-(m-C)%x+m)/this.comp.globalData.frameRate,0),z=Math.floor((m-C)/x)+1;if(this.pv.length){for(T=new Array(_.length),E=T.length,S=0;S<E;S+=1)T[S]=$[S]-(k[S]-_[S])*z;return T}return $-(k-_)*z}else if(p==="continue"){var O=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(T=new Array(O.length),E=T.length,S=0;S<E;S+=1)T[S]=O[S]+(O[S]-N[S])*(m-C)/.001;return T}return O+(O-N)*(m-C)/.001}return this.getValueAtTime((x-((m-C)%x+m))/this.comp.globalData.frameRate,0)}function i(p,b){if(!this.k)return this.pv;if(p=(p||.4)*.5,b=Math.floor(b||5),b<=1)return this.pv;var y=this.comp.renderedFrame/this.comp.globalData.frameRate,C=y-p,P=y+p,m=b>1?(P-C)/(b-1):1,x=0,g=0,S;this.pv.length?S=createTypedArray("float32",this.pv.length):S=0;for(var E;x<b;){if(E=this.getValueAtTime(C+x*m),this.pv.length)for(g=0;g<this.pv.length;g+=1)S[g]+=E[g];else S+=E;x+=1}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)S[g]/=b;else S/=b;return S}function n(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var b=this._transformCachingAtTime.v;if(b.cloneFromProps(this.pre.props),this.appliedTransformations<1){var y=this.a.getValueAtTime(p);b.translate(-y[0]*this.a.mult,-y[1]*this.a.mult,y[2]*this.a.mult)}if(this.appliedTransformations<2){var C=this.s.getValueAtTime(p);b.scale(C[0]*this.s.mult,C[1]*this.s.mult,C[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var P=this.sk.getValueAtTime(p),m=this.sa.getValueAtTime(p);b.skewFromAxis(-P*this.sk.mult,m*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var x=this.r.getValueAtTime(p);b.rotate(-x*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var g=this.rz.getValueAtTime(p),S=this.ry.getValueAtTime(p),E=this.rx.getValueAtTime(p),T=this.or.getValueAtTime(p);b.rotateZ(-g*this.rz.mult).rotateY(S*this.ry.mult).rotateX(E*this.rx.mult).rotateZ(-T[2]*this.or.mult).rotateY(T[1]*this.or.mult).rotateX(T[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var L=this.px.getValueAtTime(p),_=this.py.getValueAtTime(p);if(this.data.p.z){var k=this.pz.getValueAtTime(p);b.translate(L*this.px.mult,_*this.py.mult,-k*this.pz.mult)}else b.translate(L*this.px.mult,_*this.py.mult,0)}else{var $=this.p.getValueAtTime(p);b.translate($[0]*this.p.mult,$[1]*this.p.mult,-$[2]*this.p.mult)}return b}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,b,y){var C=a(p,b,y);return C.dynamicProperties.length?C.getValueAtTime=n.bind(C):C.getValueAtTime=s.bind(C),C.setGroupProperty=expressionHelpers.setGroupProperty,C};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(p,b,y,C,P){var m=o(p,b,y,C,P);m.kf?m.getValueAtTime=expressionHelpers.getValueAtTime.bind(m):m.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m.loopOut=e,m.loopIn=t,m.smooth=i,m.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(m),m.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(m),m.numKeys=b.a===1?b.k.length:0,m.propertyIndex=b.ix;var x=0;return y!==0&&(x=createTypedArray("float32",b.a===1?b.k[0].s.length:b.k.length)),m._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:x},expressionHelpers.searchExpressions(p,b,m),m.k&&P.addDynamicProperty(m),m};function l(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(b,y){this.k&&this.getValue();var C=this.v;y!==void 0&&(C=this.getValueAtTime(y,0));var P,m=C._length,x=C[b],g=C.v,S=createSizedArray(m);for(P=0;P<m;P+=1)b==="i"||b==="o"?S[P]=[x[P][0]-g[P][0],x[P][1]-g[P][1]]:S[P]=[x[P][0],x[P][1]];return S},points:function(b){return this.vertices("v",b)},inTangents:function(b){return this.vertices("i",b)},outTangents:function(b){return this.vertices("o",b)},isClosed:function(){return this.v.c},pointOnPath:function(b,y){var C=this.v;y!==void 0&&(C=this.getValueAtTime(y,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(C));for(var P=this._segmentsLength,m=P.lengths,x=P.totalLength*b,g=0,S=m.length,E=0,T;g<S;){if(E+m[g].addedLength>x){var L=g,_=C.c&&g===S-1?0:g+1,k=(x-E)/m[g].addedLength;T=bez.getPointInSegment(C.v[L],C.v[_],C.o[L],C.i[_],k,m[g]);break}else E+=m[g].addedLength;g+=1}return T||(T=C.c?[C.v[0][0],C.v[0][1]]:[C.v[C._length-1][0],C.v[C._length-1][1]]),T},vectorOnPath:function(b,y,C){b==1?b=this.v.c:b==0&&(b=.999);var P=this.pointOnPath(b,y),m=this.pointOnPath(b+.001,y),x=m[0]-P[0],g=m[1]-P[1],S=Math.sqrt(Math.pow(x,2)+Math.pow(g,2));if(S===0)return[0,0];var E=C==="tangent"?[x/S,g/S]:[-g/S,x/S];return E},tangentOnPath:function(b,y){return this.vectorOnPath(b,y,"tangent")},normalOnPath:function(b,y){return this.vectorOnPath(b,y,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,b,y,C,P){var m=d(p,b,y,C,P);return m.propertyIndex=b.ix,m.lock=!1,y===3?expressionHelpers.searchExpressions(p,b.pt,m):y===4&&expressionHelpers.searchExpressions(p,b.ks,m),m.k&&p.addDynamicProperty(m),m}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,i){var n=this.calculateExpression(i);if(t.t!==n){var s={};return this.copyData(s,t),s.t=n.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),i=this.searchExpressions();return this.kf=t||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,i){var n=createNS("feMerge");n.setAttribute("result",t);var s,a;for(a=0;a<i.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",i[a]),n.appendChild(s),n.appendChild(s);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,i,n,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,s=n+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),n;n<s;n+=1)t=createNS("path"),i.appendChild(t),this.paths.push({p:t,m:n});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(i),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=a,i.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,i=this.paths.length,n,s;for(t=0;t<i;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&s.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=s.getTotalLength();a="0 0 0 "+c*o+" ";var u=c*(l-o),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/f),p;for(p=0;p<d;p+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+c*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var b=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(b[0]*255)+","+bmFloor(b[1]*255)+","+bmFloor(b[2]*255)+")")}};function SVGTritoneFilter(e,t,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+i[0]+" "+t[0],a=n[1]+" "+i[1]+" "+t[1],o=n[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,i,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,n,s){for(var a=0,o=256,l,c=Math.min(e,t),u=Math.max(e,t),f=Array.call(null,{length:o}),d,p=0,b=s-n,y=t-e;a<=256;)l=a/256,l<=c?d=y<0?s:n:l>=u?d=y<0?n:s:d=n+b*Math.pow((l-e)/y,1/i),f[p]=d,p+=1,a+=256/(o-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,i,n,s){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",n+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var f=createNS("feComposite");f.setAttribute("in",n+"_drop_shadow_3"),f.setAttribute("in2",n+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(f);var d=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(n),a=i*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var n=i.children,s=0,a=n.length;s<a&&n[s]!==e.layerElement;)s+=1;var o;s<=a-2&&(o=n[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),o?i.insertBefore(l,o):i.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(t,i),a.appendChild(t.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+i),n.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,n=t.length;i<n;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,i,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,i=this.filterManager.effectElements[0].p.v*t,n=this.filterManager.effectElements[1].p.v,s=n==3?0:i,a=n==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,o=s?a:t[4].p.v,l=t[5].p.v,c=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _iterableToArrayLimit(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,s,a,o,l=[],c=!0,u=!1;try{if(a=(i=i.call(e)).next,t!==0)for(;!(c=(n=a.call(i)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(f){u=!0,s=f}finally{try{if(!c&&i.return!=null&&(o=i.return(),Object(o)!==o))return}finally{if(u)throw s}}return l}}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),i.push.apply(i,n)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(n){_defineProperty(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function _defineProperty(e,t,i){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var i={},n=Object.keys(e),s,a;for(a=0;a<n.length;a++)s=n[a],!(t.indexOf(s)>=0)&&(i[s]=e[s]);return i}function _objectWithoutProperties(e,t){if(e==null)return{};var i=_objectWithoutPropertiesLoose(e,t),n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
74
74
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toPrimitive(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:String(t)}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,i){var n=t.animationData,s=t.loop,a=t.autoplay,o=t.initialSegment,l=t.onComplete,c=t.onLoopComplete,u=t.onEnterFrame,f=t.onSegmentStart,d=t.onConfigReady,p=t.onDataReady,b=t.onDataFailed,y=t.onLoadedImages,C=t.onDOMLoaded,P=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var m=_objectWithoutProperties(t,_excluded$1),x=React.useState(!1),g=_slicedToArray(x,2),S=g[0],E=g[1],T=React.useRef(),L=React.useRef(null),_=function(){var W;(W=T.current)===null||W===void 0||W.play()},k=function(){var W;(W=T.current)===null||W===void 0||W.stop()},$=function(){var W;(W=T.current)===null||W===void 0||W.pause()},z=function(W){var q;(q=T.current)===null||q===void 0||q.setSpeed(W)},O=function(W,q){var X;(X=T.current)===null||X===void 0||X.goToAndPlay(W,q)},N=function(W,q){var X;(X=T.current)===null||X===void 0||X.goToAndStop(W,q)},K=function(W){var q;(q=T.current)===null||q===void 0||q.setDirection(W)},B=function(W,q){var X;(X=T.current)===null||X===void 0||X.playSegments(W,q)},A=function(W){var q;(q=T.current)===null||q===void 0||q.setSubframe(W)},V=function(W){var q;return(q=T.current)===null||q===void 0?void 0:q.getDuration(W)},R=function(){var W;(W=T.current)===null||W===void 0||W.destroy(),T.current=void 0},M=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q;if(L.current){(q=T.current)===null||q===void 0||q.destroy();var X=_objectSpread2(_objectSpread2(_objectSpread2({},t),W),{},{container:L.current});return T.current=lottie.loadAnimation(X),E(!!T.current),function(){var ee;(ee=T.current)===null||ee===void 0||ee.destroy(),T.current=void 0}}};React.useEffect(function(){var j=M();return function(){return j==null?void 0:j()}},[n,s]),React.useEffect(function(){T.current&&(T.current.autoplay=!!a)},[a]),React.useEffect(function(){if(T.current){if(!o){T.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((T.current.currentRawFrame<o[0]||T.current.currentRawFrame>o[1])&&(T.current.currentRawFrame=o[0]),T.current.setSegment(o[0],o[1]))}},[o]),React.useEffect(function(){var j=[{name:"complete",handler:l},{name:"loopComplete",handler:c},{name:"enterFrame",handler:u},{name:"segmentStart",handler:f},{name:"config_ready",handler:d},{name:"data_ready",handler:p},{name:"data_failed",handler:b},{name:"loaded_images",handler:y},{name:"DOMLoaded",handler:C},{name:"destroy",handler:P}],W=j.filter(function(X){return X.handler!=null});if(W.length){var q=W.map(function(X){var ee;return(ee=T.current)===null||ee===void 0||ee.addEventListener(X.name,X.handler),function(){var re;(re=T.current)===null||re===void 0||re.removeEventListener(X.name,X.handler)}});return function(){q.forEach(function(X){return X()})}}},[l,c,u,f,d,p,b,y,C,P]);var I=React.createElement("div",_objectSpread2({style:i,ref:L},m));return{View:I,play:_,stop:k,pause:$,setSpeed:z,goToAndStop:N,goToAndPlay:O,setDirection:K,playSegments:B,setSubframe:A,getDuration:V,destroy:R,animationContainerRef:L,animationLoaded:S,animationItem:T.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),i=t.top,n=t.height,s=window.innerHeight-i,a=window.innerHeight+n;return s/a}function getContainerCursorPosition(e,t,i){var n=e.getBoundingClientRect(),s=n.top,a=n.left,o=n.width,l=n.height,c=(t-a)/o,u=(i-s)/l;return{x:c,y:u}}var useInitInteractivity=function e(t){var i=t.wrapperRef,n=t.animationItem,s=t.mode,a=t.actions;React.useEffect(function(){var o=i.current;if(!(!o||!n||!a.length)){n.stop();var l=function(){var f=null,d=function(){var b=getContainerVisibility(o),y=a.find(function(P){var m=P.visibility;return m&&b>=m[0]&&b<=m[1]});if(y){if(y.type==="seek"&&y.visibility&&y.frames.length===2){var C=y.frames[0]+Math.ceil((b-y.visibility[0])/(y.visibility[1]-y.visibility[0])*y.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
75
75
|
n.goToAndStop(C-n.firstFrame-1,!0)}y.type==="loop"&&(f===null||f!==y.frames||n.isPaused)&&(n.playSegments(y.frames,!0),f=y.frames),y.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),y.type==="stop"&&n.goToAndStop(y.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",d),function(){document.removeEventListener("scroll",d)}},c=function(){var f=function(y,C){var P=y,m=C;if(P!==-1&&m!==-1){var x=getContainerCursorPosition(o,P,m);P=x.x,m=x.y}var g=a.find(function(T){var L=T.position;return L&&Array.isArray(L.x)&&Array.isArray(L.y)?P>=L.x[0]&&P<=L.x[1]&&m>=L.y[0]&&m<=L.y[1]:L&&!Number.isNaN(L.x)&&!Number.isNaN(L.y)?P===L.x&&m===L.y:!1});if(g){if(g.type==="seek"&&g.position&&Array.isArray(g.position.x)&&Array.isArray(g.position.y)&&g.frames.length===2){var S=(P-g.position.x[0])/(g.position.x[1]-g.position.x[0]),E=(m-g.position.y[0])/(g.position.y[1]-g.position.y[0]);n.playSegments(g.frames,!0),n.goToAndStop(Math.ceil((S+E)/2*(g.frames[1]-g.frames[0])),!0)}g.type==="loop"&&n.playSegments(g.frames,!0),g.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(g.frames)),g.type==="stop"&&n.goToAndStop(g.frames[0],!0)}},d=function(y){f(y.clientX,y.clientY)},p=function(){f(-1,-1)};return o.addEventListener("mousemove",d),o.addEventListener("mouseout",p),function(){o.removeEventListener("mousemove",d),o.removeEventListener("mouseout",p)}};switch(s){case"scroll":return l();case"cursor":return c()}}},[s,n])},useLottieInteractivity=function e(t){var i=t.actions,n=t.mode,s=t.lottieObj,a=s.animationItem,o=s.View,l=s.animationContainerRef;return useInitInteractivity({actions:i,animationItem:a,mode:n,wrapperRef:l}),o},_excluded=["style","interactivity"],Lottie=function e(t){var i,n,s,a=t.style,o=t.interactivity,l=_objectWithoutProperties(t,_excluded),c=useLottie(l,a),u=c.View,f=c.play,d=c.stop,p=c.pause,b=c.setSpeed,y=c.goToAndStop,C=c.goToAndPlay,P=c.setDirection,m=c.playSegments,x=c.setSubframe,g=c.getDuration,S=c.destroy,E=c.animationContainerRef,T=c.animationLoaded,L=c.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:f,stop:d,pause:p,setSpeed:b,goToAndPlay:C,goToAndStop:y,setDirection:P,playSegments:m,setSubframe:x,getDuration:g,destroy:S,animationContainerRef:E,animationLoaded:T,animationItem:L})},[(i=t.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:u,play:f,stop:d,pause:p,setSpeed:b,goToAndStop:y,goToAndPlay:C,setDirection:P,playSegments:m,setSubframe:x,getDuration:g,destroy:S,animationContainerRef:E,animationLoaded:T,animationItem:L},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(s=o==null?void 0:o.mode)!==null&&s!==void 0?s:"scroll"})};const index_es=Object.freeze(Object.defineProperty({__proto__:null,LottiePlayer:lottie,default:Lottie,useLottie,useLottieInteractivity},Symbol.toStringTag,{value:"Module"}));exports.APIIcon=APIIcon,exports.AddIcon=AddIcon,exports.ArbitrumLogo=ArbitrumLogo,exports.ArrowDownwardIcon=ArrowDownwardIcon,exports.ArrowEastIcon=ArrowEastIcon,exports.ArrowInwardIcon=ArrowInwardIcon,exports.ArrowLeftIcon=ArrowLeftIcon,exports.ArrowNorthEastIcon=ArrowNorthEastIcon,exports.ArrowNorthWestIcon=ArrowNorthWestIcon,exports.ArrowRightIcon=ArrowRightIcon,exports.ArrowSouthEastIcon=ArrowSouthEastIcon,exports.ArrowSouthWestIcon=ArrowSouthWestIcon,exports.ArrowSyncIcon=ArrowSyncIcon,exports.ArrowUpwardIcon=ArrowUpwardIcon,exports.BTCLogo=BTCLogo,exports.BlogCard=BlogCard,exports.BlogIcon=BlogIcon,exports.BottomSheet=BottomSheet,exports.BrandKitIcon=BrandKitIcon,exports.Button=Button,exports.Camelot=Camelot,exports.CancelIcon=CancelIcon,exports.CatalogLogo=CatalogLogo,exports.ChainflipIcon=ChainflipIcon,exports.CheckBox=CheckBox$1,exports.CheckCircleIcon=CheckCircleIcon,exports.CheckIcon=CheckIcon,exports.Checked=Checked,exports.Chip=Chip,exports.ClientOnly=ClientOnly,exports.ClockIcon=ClockIcon,exports.CloseIcon=CloseIcon,exports.CodeBlockIcon=CodeBlockIcon,exports.Coinbase=Coinbase,exports.CompareArrowsIcon=CompareArrowsIcon,exports.ConsoleIcon=ConsoleIcon,exports.Container=Container,exports.CopyIcon=CopyIcon,exports.CopyrightsIcon=CopyrightsIcon,exports.DLCBTC=DLCBTC,exports.Debridge=Debridge,exports.DeleteIcon=DeleteIcon,exports.DiscordIcon=DiscordIcon,exports.Dodo=Dodo,exports.DollarChipIcon=DollarChipIcon,exports.DraftIcon=DraftIcon,exports.EditIcon=EditIcon,exports.EncryptedIcon=EncryptedIcon,exports.EthereumLogo=EthereumLogo,exports.ExchangeIcon=ExchangeIcon,exports.FaqIcon=FaqIcon,exports.FeesIcon=FeesIcon,exports.FingerprintIcon=FingerprintIcon,exports.FolderIcon=FolderIcon,exports.Footer=Footer,exports.GMX=GMX,exports.GMXLogo=GMXLogo,exports.GardenDocs=GardenDocs,exports.GardenExplorer=GardenExplorer,exports.GardenExplorerAlt=GardenExplorerAlt,exports.GardenFullLogo=GardenFullLogo,exports.GardenIcon=GardenIcon,exports.GardenIconOutline=GardenIconOutline,exports.GardenLogo=GardenLogo,exports.GardenLogoDark=GardenLogoDark,exports.GardenLogoLight=GardenLogoLight,exports.GardenLogoMarkDark=GardenLogoMarkDark,exports.GardenLogoMarkLight=GardenLogoMarkLight,exports.GardenLogoText=GardenLogoText,exports.GardenStrokeIcon=GardenStrokeIcon,exports.GasStationIcon=GasStationIcon,exports.GiftBoxIcon=GiftBoxIcon,exports.GradientScroll=GradientScroll,exports.HorizontalSwap=HorizontalSwap,exports.HubIcon=HubIcon,exports.InfinityIcon=InfinityIcon,exports.InfoBadge=InfoBadge,exports.InfoIcon=InfoIcon,exports.KeyboardDownIcon=KeyboardDownIcon,exports.KeyboardLeftIcon=KeyboardLeftIcon,exports.KeyboardRightIcon=KeyboardRightIcon,exports.KeyboardUpIcon=KeyboardUpIcon,exports.LanguageIcon=LanguageIcon,exports.LinkIcon=LinkIcon,exports.LockIcon=LockIcon,exports.LogoutIcon=LogoutIcon,exports.MenuIcon=MenuIcon,exports.MinusIcon=MinusIcon,exports.Modal=Modal,exports.NFTIcon=NFTIcon,exports.Opacity=Opacity,exports.OpenInFullIcon=OpenInFullIcon,exports.OpenInNewIcon=OpenInNewIcon,exports.OtterSecIcon=OtterSecIcon,exports.PageInfoIcon=PageInfoIcon,exports.PancakeSwap=PancakeSwap,exports.PasskeyIcon=PasskeyIcon,exports.PhantomIcon=PhantomIcon,exports.PlusIcon=PlusIcon,exports.PolygonLogo=PolygonLogo,exports.QuestCard=QuestCard,exports.Radiant=Radiant,exports.RadiantLogo=RadiantLogo,exports.RadioCheckedIcon=RadioCheckedIcon,exports.RadioUncheckedIcon=RadioUncheckedIcon,exports.RaiseHandIcon=RaiseHandIcon,exports.ReferralIcon=ReferralIcon,exports.RelayLinkIcon=RelayLinkIcon,exports.RemoveIcon=RemoveIcon,exports.RollingText=RollingText,exports.Rotate360Icon=Rotate360Icon,exports.RoutingIcon=RoutingIcon,exports.RowInfoIcon=RowInfoIcon,exports.SDKIcon=SDKIcon,exports.ScaleY=ScaleY,exports.SearchIcon=SearchIcon,exports.SearchIconThin=SearchIconThin,exports.Share=Share,exports.Shine=Shine,exports.Sidebar=Sidebar,exports.Solv=Solv,exports.StakeIcon=StakeIcon,exports.StarIcon=StarIcon,exports.SwapHorizontalIcon=SwapHorizontalIcon,exports.SwellBTC=SwellBTC,exports.ThorswapIcon=ThorswapIcon,exports.TimerIcon=TimerIcon,exports.TokenInfo=TokenInfo,exports.TokenNetworkLogos=TokenNetworkLogos,exports.TraderJoe=TraderJoe,exports.TrailOfBits=TrailOfBits,exports.TrustWallet=TrustWallet,exports.Typography=Typography,exports.Unchecked=Unchecked,exports.Vertex=Vertex,exports.WalletConnect=WalletConnect,exports.WalletIcon=WalletIcon,exports.WalletIconRose=WalletIconRose,exports.WarningIcon=WarningIcon,exports.XIcon=XIcon,exports.XSolidIcon=XSolidIcon,exports.ZellicIcon=ZellicIcon,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
|