PageSourceSearch

https://netboxlabs.com/_next/static/chunks/pages/_app-9bb50ffa6c11e5b5.js?dpl=dpl_2kg8VS9rUsGpwnEcDTRoNpGimCS4

js netboxlabs.com collected 2026-10-02 04:53:34 UTC 464,289 bytes, 19 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{50:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>r,PP:()=>o,WG:()=>a,uv:()=>s});var i=n(620);let{schedule:r,cancel:a,state:s,steps:o}=(0,n(6845).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},75:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var i=n(7876),r=n(8983),a=n(1370);n(4232);var s=n(8230),o=n.n(s);function l(e){let{link:t,type:n,href:r,to:s,target:l,children:d,className:h,trackingLocation:f,...p}=e,m=t?.url||r||s||"#",v=!1,g=m.trim().replace(/^[a-zA-Z]{3,5}:\/{2}[a-zA-Z0-9_.:-]+\//,"");"/"!==g.slice(0,1)&&"#"!==g.slice(0,1)&&(g=`/${g}`),m.includes("https://netboxlabscms.kinsta.cloud")||"http"!==m.slice(0,4)&&"mailto:"!==m.slice(0,7)&&"tel:"!==m.slice(0,4)||(v=!0,g=m);let y=t?.target||l||"",b="_blank"===y?"noopener noreferrer":void 0,w=`inline-block ${h||""} ${0===m.length||"#"===m?"pointer-events-none cursor-default":""}`;return v?(0,i.jsx)("a",{href:g,target:y,rel:b,className:w,onClick:()=>{if(v)try{let{hostname:e}=new URL(g);(0,a.$K)(g,{link_text:t?.title||d?.toString()||"External Link",link_type:u(e)?"social":"external",link_location:f,destination_domain:e,social_platform:u(e)})}catch(e){}},...p,children:(0,i.jsx)(c,{...e})}):(0,i.jsx)(o(),{href:g,target:y,rel:b,className:w,...p,children:(0,i.jsx)(c,{...e})})}function c(e){let{type:t,link:n,children:a}=e;return(0,i.jsxs)(i.Fragment,{children:[!t&&!a&&n?.title?.length>0&&(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:n?.title}}),"button"===t&&(0,i.jsx)(r.$,{...e}),"text"===t&&(0,i.jsx)(r.Y,{...e}),a]})}function u(e){let t={"twitter.com":"twitter","x.com":"twitter","facebook.com":"facebook","linkedin.com":"linkedin","github.com":"github","youtube.com":"youtube","instagram.com":"instagram","discord.com":"discord","slack.com":"slack"};return t[e]||t[e.replace("www.","")]}},92:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2672)}])}
1,103:(e,t,n)=>{"use strict";n.d(t,{n:()=>T});var i=n(50),r=n(2022),a=n(4984),s=n(373);function o(e,t){let n=(0,s.K)(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}var l=n(8901);function c(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let a=r["onHover"+n];a&&i.Gt.postRender(()=>a(t,(0,l.e)(t)))}class u extends r.X{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,r,s]=o(e,n);return i.forEach(e=>{let n,i=!1,s=!1,o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",c)},l=e=>{i=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,o(e))},c=e=>{if("touch"!==e.pointerType){if(i){s=!0;return}o(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||(0,a.D)())return;s=!1;let o=t(e,i);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",c,r))},r),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(e,(e,t)=>(c(this.node,t,"Start"),e=>c(this.node,e,"End"))))}unmount(){}}var d=n(6810),h=n(1784);class f extends r.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,h.F)((0,d.k)(this.node.current,"focus",()=>this.onFocus()),(0,d.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var p=n(7990);let m=(e,t)=>!!t&&(e===t||m(e,t.parentElement));var v=n(1497),g=n(1501);let y=new WeakSet;function b(e){return t=>{"Enter"===t.key&&e(t)}}function w(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function x(e){return(0,v.M)(e)&&!(0,a.D)()}let _=new WeakSet;function C(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let a=r["onTap"+("End"===n?"":n)];a&&i.Gt.postRender(()=>a(t,(0,l.e)(t)))}class k extends r.X{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[i,r,a]=o(e,n),s=e=>{let i=e.currentTarget;if(!x(e)||_.has(e))return;y.add(i),n.stopPropagation&&_.add(e);let a=t(i,e),s={...r,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),y.has(i)&&y.delete(i),x(e)&&"function"==typeof a&&a(e,{success:t})},l=e=>{o(e,i===window||i===document||n.useGlobalTarget||m(i,e.target))},c=e=>{o(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),(0,p.s)(e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=b(()=>{if(y.has(n))return;w(n,"down");let e=b(()=>{w(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>w(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)})(e,r)),(0,g.c)(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(C(this.node,t,"Start"),(e,{success:t})=>C(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let E=new WeakMap,S=new WeakMap,M=e=>{let t=E.get(e.target);t&&t(e)},A=e=>{e.forEach(M)},P={some:0,all:1};class j extends r.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:P[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=t?n:i;a&&a(e)};this.stopObserver=function(e,t,n){let i=function({root:e,...t}){let n=e||document;S.has(n)||S.set(n,{});
1let i=S.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(A,{root:e,...t})),i[r]}(t);return E.set(e,n),i.observe(e),()=>{E.delete(e),i.unobserve(e)}}(this.node.current,a,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let T={inView:{Feature:j},tap:{Feature:k},focus:{Feature:f},hover:{Feature:u}}},105:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});let i=e=>t=>t.test(e)},149:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4269);let r={post:"Blog",ebook:"eBook",event:"Event",podcast:"Podcast",article:"Article",customer_story:"Customer Story",webinar:"Webinar"};var a=n(4794),s=n(4232);function o(e){let{post_type:t,acf:n,permalink:o,featured_image:l,post_title:c,categories:u=[],news_category:d=[],customer_story_category:h=[]}=e,[f]=(0,s.useContext)(i.F),p={event:f?.options?.global?.resources?.events,post:f?.options?.global?.resources?.blog,article:f?.options?.global?.resources?.news,podcast:f?.options?.global?.resources?.podcasts,customer_story:f?.options?.global?.resources?.customer_stories}[t]||{},m=r[t]||t,v="Podcast"===m,g=n?.podcast_details?.video_url||"";return{resourceType:m,isPodcast:v,hasPermalink:!!(v&&g||o),resourceUrl:v&&g?g:o||null,target:v&&g?"_blank":"_self",image:{src:(l?.src&&!l?.src.includes("images/media/default.svg")?l?.src:p?.thumbnail_fallback?.url)||"/images/resources/Resource-Tile.png",alt:l?.alt||c||"",width:l?.width,height:l?.height},singleCategory:(0,a.A)({post:u,article:d,customer_story:h}[t]||[])}}},334:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n(1783);let r={...i.f,getAnimatableNone:e=>{let t=i.f.parse(e);return i.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}}},373:(e,t,n)=>{"use strict";function i(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}n.d(t,{K:()=>i})},462:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var i=n(8355);function r(e){return e.props[i.n]}},475:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});let i=e=>"string"==typeof e&&"svg"===e.toLowerCase()},487:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,r:()=>r});let i={current:null},r={current:!1}},490:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(4933);let r=e=>{let t=(0,i.lW)();return!!t.width&&t.width<e}},508:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(4232),r=n(373);let a={some:0,all:1};function s(e,{root:t,margin:n,amount:o,once:l=!1,initial:c=!1}={}){let[u,d]=(0,i.useState)(c);return(0,i.useEffect)(()=>{if(!e.current||l&&u)return;let i={root:t&&t.current||void 0,margin:n,amount:o};return function(e,t,{root:n,margin:i,amount:s="some"}={}){let o=(0,r.K)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?l.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),l.delete(e.target))})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:a[s]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(d(!0),l?void 0:()=>d(!1)),i)},[t,e,n,l,o]),u}},514:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});let i=e=>Math.round(1e5*e)/1e5},570:(e,t,n)=>{"use strict";n.d(t,{c:()=>r,k:()=>i});let{schedule:i,cancel:r}=(0,n(6845).I)(queueMicrotask,!1)},620:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});let i=e=>e},630:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});let i=(e,t)=>t?1e3/t*e:0},736:(e,t,n)=>{"use strict";function i({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function r({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function a(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(t,{FY:()=>i,bS:()=>a,pA:()=>r})},810:(e,t,n)=>{"use strict";n.d(t,{m:()=>v});var i=n(7605),r=n(1750),a=n(620),s=n(5965),o=n(9739),l=n(6711),c=n(5063),u=n(1252);let d=(0,n(7673).J)(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var h=n(8038);let f=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,p={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:f([0,.65,.55,1]),circOut:f([.55,0,1,.45]),backIn:f([.31,.01,.66,-.59]),backOut:f([.33,1.53,.69,.99])};var m=n(5609);class v extends c.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:c,onComplete:v}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,(0,i.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let g=function({type:e,...t}){return(0,m.W)(e)&&d()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:r=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},c){let m={[t]:n};l&&(m.offset=l);let v=function e(t,n){if(t)return"function"==typeof t?d()?(0,h.K)(t,n):"ease-out":(0,u.D)(t)?f(t):Array.isArray(t)?t.map(t=>e(t,n)||p.easeOut):p[t]}(o,r);Array.isArray(v)&&(m.easing=v);let g={delay:i,duration:r,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};return c&&(g.pseudoElement=c),e.animate(m,g)}(t,n,r,g,a),!1===g.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=(0,l.X)(r,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(e),(0,s.e)(t,n,e),this.animation.cancel()}v?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,r.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,r.X)(e)}get time(){return(0,r.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,r.f)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&(0,o.J)())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),a.l):i(this)}}},858:function(e,t,n){"use strict";var i=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let a=r(n(3513)),s=n(3949);t.GoogleAnalytics=e=>{var t=i(e,[]);return(0,s.formatData)(a.default,t)}},879:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,q:()=>s});var i=n(1923);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,a=(e,t)=>n=>!!("string"==typeof n&&r.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),s=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[a,s,o,l]=r.match(i.S);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}}
1,943:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});let i=e=>t=>1-e(1-t)},1018:e=>{"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},1166:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(8738),r=n(8737);function a(e,t,n){let a=e.style,s=t?.style,o={};if(!a)return o;for(let t in a)((0,i.S)(a[t])||s&&(0,i.S)(s[t])||(0,r.zK)(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=a[t]);return o}},1200:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(4232);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},1252:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});let i=e=>Array.isArray(e)&&"number"==typeof e[0]},1370:(e,t,n)=>{"use strict";n.d(t,{$K:()=>u,Dd:()=>o,Nf:()=>d,Oz:()=>m,Sf:()=>v,Ut:()=>f,_D:()=>l,aD:()=>s,aG:()=>h,lR:()=>p,oe:()=>a,r2:()=>c});class i{constructor(){this.isInitialized=!1,this.errorCount=0,this.maxErrors=10,this.sessionData={sessionId:"",startTime:Date.now(),pageViews:0,engagement:{totalTimeOnSite:0,pagesViewed:[],maxScrollDepth:0}},this.safeInitialize()}static getInstance(){return i.instance||(i.instance=new i),i.instance}safeInitialize(){try{this.initializeSession()}catch(e){this.handleError("Analytics initialization failed",e)}}initializeSession(){this.sessionData.sessionId=this.generateSessionId(),this.isInitialized=!0}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}handleError(e,t){this.errorCount+=1,this.errorCount>=this.maxErrors&&(this.isInitialized=!1)}safeExecute(e,t){try{if(!this.isInitialized||this.errorCount>=this.maxErrors)return t;return e()}catch(e){return this.handleError("Analytics operation failed",e),t}}trackPageView(e,t,n){this.safeExecute(()=>{this.sessionData.pageViews+=1,this.sessionData.engagement.pagesViewed.push({url:e,timestamp:Date.now(),title:t||document.title});let i={page_path:e,page_title:t||document.title,page_location:window.location.href,content_group1:n||this.getContentType(e),session_id:this.sessionData.sessionId};this.sendEvent("page_view",i),this.sendEvent("page_navigation",{...i,session_page_number:this.sessionData.pageViews,previous_page:this.getPreviousPage()})})}trackEngagement(e){this.safeExecute(()=>{this.sendEvent("user_engagement",{...e,session_id:this.sessionData.sessionId,total_session_time:Date.now()-this.sessionData.startTime})})}trackScrollDepth(e){this.safeExecute(()=>{e>this.sessionData.engagement.maxScrollDepth&&(this.sessionData.engagement.maxScrollDepth=e,[25,50,75,90,100].includes(e)&&this.sendEvent("scroll",{event_category:"engagement",event_label:`${e}%`,value:e,page_path:window.location.pathname,session_id:this.sessionData.sessionId,content_group1:this.getContentType(window.location.pathname),percent_scrolled:e}))})}trackCustomEvent(e,t={}){this.safeExecute(()=>{this.sendEvent(e,{...t,session_id:this.sessionData.sessionId,timestamp:Date.now()})})}trackGenerateLead(e){this.safeExecute(()=>{this.sendEvent("generate_lead",{currency:"USD",value:1,...e,session_id:this.sessionData.sessionId})})}trackSearch(e,t){this.safeExecute(()=>{let n={search_term:e,result_count:t,session_id:this.sessionData.sessionId,content_group1:this.getContentType(window.location.pathname)};this.sendEvent("search",n)})}trackSelectContent(e,t){this.safeExecute(()=>{let n={content_type:e,content_id:t,item_id:t,session_id:this.sessionData.sessionId};this.sendEvent("select_content",n)})}trackSignUp(e){this.safeExecute(()=>{this.sendEvent("sign_up",{method:e||"email",session_id:this.sessionData.sessionId})})}trackLogin(e){this.safeExecute(()=>{this.sendEvent("login",{method:e||"email",session_id:this.sessionData.sessionId})})}getSessionSummary(){return this.safeExecute(()=>({sessionId:this.sessionData.sessionId,duration:Date.now()-this.sessionData.startTime,pageViews:this.sessionData.pageViews,userJourney:this.sessionData.engagement.pagesViewed,maxScrollDepth:this.sessionData.engagement.maxScrollDepth}),{sessionId:"",duration:0,pageViews:0,userJourney:[],maxScrollDepth:0})}trackSessionEnd(){this.safeExecute(()=>
1{this.sendEvent("session_summary",this.getSessionSummary())})}sendEvent(e,t={}){try{if(!e||"string"!=typeof e)throw Error("Invalid event name");window.gtag?window.gtag("event",e,t):window.dataLayer&&window.dataLayer.push({event:e,...t})}catch(t){this.handleError(`Failed to send event: ${e}`,t)}}getContentType(e){try{if(e.includes("/blog/"))return"blog";if(e.includes("/ebooks/"))return"ebook";if(e.includes("/events/"))return"event";if(e.includes("/news/"))return"news";if(e.includes("/customer-stories/"))return"customer_story";if(e.includes("/integrations/"))return"integration";if(e.includes("/plugins/"))return"plugin";if(e.includes("/partners/"))return"partner";if(e.includes("/docs/"))return"documentation";if(e.includes("/pricing/"))return"pricing";if(e.includes("/about/"))return"about";if(e.includes("/careers/"))return"careers";if(e.includes("/community/"))return"community";return"page"}catch(e){return this.handleError("Failed to determine content type",e),"page"}}getPreviousPage(){try{let e=this.sessionData.engagement.pagesViewed;return e.length>1?e[e.length-2].url:null}catch(e){return this.handleError("Failed to get previous page",e),null}}trackNavigation(e,t){this.safeExecute(()=>{this.trackCustomEvent("navigation_interaction",{navigation_action:e,menu_item:t.menu_item,submenu_item:t.submenu_item,device_type:t.device_type,menu_type:t.menu_type,destination_url:t.destination_url,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackPricingInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("pricing_interaction",{pricing_action:e,plan_name:t.plan_name,plan_type:t.plan_type,pricing_tier:t.pricing_tier,platform:t.platform,interaction_type:t.interaction_type,price_amount:t.price_amount,features_viewed:t.features_viewed?.join(", "),session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackCarouselInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("carousel_interaction",{carousel_action:e,carousel_type:t.carousel_type,slide_index:t.slide_index,slide_title:t.slide_title,total_slides:t.total_slides,interaction_method:t.interaction_method,time_on_slide:t.time_on_slide,carousel_location:t.carousel_location,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackAccordionInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("accordion_interaction",{accordion_action:e,accordion_type:t.accordion_type,item_title:t.item_title,item_index:t.item_index,total_items:t.total_items,expansion_state:t.expansion_state,time_expanded:t.time_expanded,accordion_location:t.accordion_location,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackVideoInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("video_interaction",{video_action:e,video_title:t.video_title,video_url:t.video_url,video_duration:t.video_duration,current_time:t.current_time,video_type:t.video_type,video_location:t.video_location,interaction_type:t.interaction_type,engagement_percentage:t.engagement_percentage,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackTestimonialInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("testimonial_interaction",{testimonial_action:e,testimonial_author:t.testimonial_author,testimonial_company:t.testimonial_company,testimonial_type:t.testimonial_type,testimonial_location:t.testimonial_location,interaction_type:t.interaction_type,testimonial_index:t.testimonial_index,total_testimonials:t.total_testimonials,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackNewsletterInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("newsletter_interaction",{newsletter_action:e,newsletter_location:t.newsletter_location,newsletter_type:t.newsletter_type,interaction_type:t.interaction_type,email_entered:t.email_entered,error_message:t.error_message,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackCTAInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("cta_interaction",{cta_action:e,cta_text:t.cta_text,cta_type:t.cta_type,cta_location:t.cta_location,destination_url:t.destination_url,button_color:t.button_color,button_size:t.button_size,surrounding_content:t.surrounding_content,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackSearchInteraction(e,t){this.safeExecute(()=>{this.trackCustomEvent("search_interaction",{search_action:e,search_query:t.search_query,search_type:t.search_type,search_location:t.search_location,results_count:t.results_count,filter_applied:t.filter_applied,sort_method:t.sort_method,interaction_type:t.interaction_type,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackSectionEngagement(e,t){this.safeExecute(()=>{this.trackCustomEvent("section_engagement",{section_action:e,section_name:t.section_name,section_type:t.section_type,visibility_percentage:t.visibility_percentage,time_in_view:t.time_in_view,scroll_depth:t.scroll_depth,interaction_occurred:t.interaction_occurred,session_id:this.sessionData.sessionId,timestamp:new Date().toISOString()})})}trackUserIntent(e,t){this.safeExecute(()=>{this.sendEvent("user_intent",{intent_action:e,intent_type:t.intent_type,confidence_score:t.confidence_score,behavioral_signals:t.behavioral_signals?.join(", "),page_context:t.page_context||window.location.pathname,user_segment:t.user_segment,predicted_action:t.predicted_action,session_id:this.sessionData.sessionId})})}trackImageInteraction(e,t){this.safeExecute(()=>{this.sendEvent("image_interaction",{image_action:e,image_src:t.image_src,image_alt:t.image_alt,image_type:t.image_type,image_location:t.image_location,interaction_type:t.interaction_type,image_size:t.image_size,loading_time:t.loading_time,session_id:this.sessionData.sessionId,page_path:window.location.pathname})})}trackExternalLink(e,t){this.safeExecute(()=>{this.sendEvent("external_link",{link_action:e,link_url:t.link_url,link_text:t.link_text,link_type:t.link_type,link_location:t.link_location,destination_domain:t.destination_domain,social_platform:t.social_platform,partner_name:t.partner_name,session_id:this.sessionData.sessionId,source_page:window.location.pathname}),this.sendEvent("select_content",{content_type:"external_link",content_id:t.link_url,item_id:t.link_text,session_id:this.sessionData.sessionId})})}trackClipboardInteraction(e,t){this.safeExecute(()=>{this.sendEvent("clipboard_interaction",{clipboard_action:e,content_type:t.content_type,content_preview:t.content_preview?.substring(0,100),content_length:t.content_length,clipboard_location:t.clipboard_location,copy_method:t.copy_method,success:t.success,session_id:this.sessionData.sessionId,page_path:window.location.pathname})})}trackPrintShare(e,t){this.safeExecute(()=>{this.sendEvent("print_share",{share_action:e,share_method:t.share_method,share_platform:t.share_platform,content_type:t.content_type,content_title:t.content_title,share_url:t.share_url,print_settings:t.print_settings,session_id:this.sessionData.sessionId,page_path:window.location.pathname}),"share"===e&&this.sendEvent("share",{method:t.share_platform,content_type:t.content_type,item_id:t.content_title,session_id:this.sessionData.sessionId})})}trackKeyboardNavigation(e,t){this.safeExecute(()=>{this.sendEvent("keyboard_navigation",{keyboard_action:e,key_pressed:t.key_pressed,navigation_type:t.navigation_type,element_type:t.element_type,element_label:t.element_label,accessibility_feature:t.accessibility_feature,navigation_path:t.navigation_path,skip_link_used:t.skip_link_used,session_id:this.sessionData.sessionId,page_path:window.location.pathname})})}trackErrorPage(e,t){this.safeExecute(()=>{this.sendEvent("error_page",{error_action:e,error_type:t.error_type,error_code:t.error_code,error_message:t.error_message,broken_url:t.broken_url,referrer_page:t.referrer_page,user_agent:t.user_agent?.substring(0,200),recovery_action:t.recovery_action,session_id:this.sessionData.sessionId,timestamp:Date.now()}),this.sendEvent("exception",{description:t.error_message,fatal:404!==t.error_code,session_id:this.sessionData.sessionId})})}trackPerformance(e,t){this.safeExecute(()=>{this.sendEvent("performance_metric",{performance_action:e,metric_name:t.metric_name,metric_value:t.metric_value,metric_unit:t.metric_unit,page_load_time:t.page_load_time,interaction_delay:t.interaction_delay,resource_type:t.resource_type,resource_url:t.resource_url,network_type:t.network_type,device_memory:t.device_memory,session_id:this.sessionData.sessionId,page_path:window.location.pathname,timestamp:Date.now()})})}}let r=i.getInstance(),a=(e,t,n)=>{try{r.trackPageView(e,t,n)}catch(e){}},s=e=>{try{r.trackScrollDepth(e)}catch(e){}},o=(e,t)=>{try{r.trackCustomEvent(e,t)}catch(e){}},l=(e,t)=>
1{try{r.trackGenerateLead({form_name:e,...t})}catch(e){}},c=(e,t)=>{try{r.trackImageInteraction(e,t)}catch(e){}},u=(e,t)=>{try{r.trackExternalLink("click",{link_url:e,...t})}catch(e){}},d=(e,t)=>{try{r.trackClipboardInteraction("copy",{content_type:e,...t})}catch(e){}},h=e=>{try{r.trackPrintShare("print",e)}catch(e){}},f=(e,t)=>{try{r.trackPrintShare("share",{share_platform:e,...t})}catch(e){}},p=(e,t)=>{try{r.trackKeyboardNavigation("navigate",{key_pressed:e,...t})}catch(e){}},m=(e,t)=>{try{r.trackErrorPage("error",{error_type:e,...t})}catch(e){}},v=(e,t,n)=>{try{r.trackPerformance("measure",{metric_name:e,metric_value:t,...n})}catch(e){}}},1402:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var i=n(1435);let r={test:(0,n(879).$)("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:i.B.transform}},1435:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var i=n(2679),r=n(6882),a=n(514),s=n(879);let o={...r.ai,transform:e=>Math.round((0,i.q)(0,255,e))},l={test:(0,s.$)("rgb","red"),parse:(0,s.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+o.transform(e)+", "+o.transform(t)+", "+o.transform(n)+", "+(0,a.a)(r.X4.transform(i))+")"}},1497:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});let i=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},1501:(e,t,n)=>{"use strict";n.d(t,{a:()=>s,c:()=>r});let i=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r(e){return i.has(e.tagName)||!0===e.isContentEditable}let a=new Set(["INPUT","SELECT","TEXTAREA"]);function s(e){return a.has(e.tagName)||!0===e.isContentEditable}},1507:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var i=n(6241),r=n(8328),a=n(334);let s={...n(5914).W,color:i.y,backgroundColor:i.y,outlineColor:i.y,fill:i.y,stroke:i.y,borderColor:i.y,borderTopColor:i.y,borderRightColor:i.y,borderBottomColor:i.y,borderLeftColor:i.y,filter:r.p,WebkitFilter:r.p,mask:a.d,WebkitMask:a.d},o=e=>s[e]},1531:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});let i=e=>/^0[^.\s]+$/u.test(e)},1574:(e,t,n)=>{"use strict";n.d(t,{G:()=>u});var i=n(7454),r=n(620),a=n(1784),s=n(7605),o=n(2589),l=n(2679),c=n(6751);function u(e,t,{clamp:n=!0,ease:d,mixer:h}={}){let f=e.length;if((0,s.V)(f===t.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>t[0];if(2===f&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,n){let s=[],o=n||i.W.mix||c.j,l=e.length-1;for(let n=0;n<l;n++){let i=o(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||r.l:t;i=(0,a.F)(e,i)}s.push(i)}return s}(t,d,h),v=m.length,g=n=>{if(p&&n<e[0])return t[0];let i=0;if(v>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=(0,o.q)(e[i],e[i+1],n);return m[i](r)};return n?t=>g((0,l.q)(e[0],e[f-1],t)):g}},1750:(e,t,n)=>{"use strict";n.d(t,{X:()=>r,f:()=>i});let i=e=>1e3*e,r=e=>e/1e3},1783:(e,t,n)=>{"use strict";n.d(t,{V:()=>u,f:()=>h});var i=n(6241);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var a=n(1923),s=n(514);let o="number",l="color",c=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function u(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[],s=0,u=t.replace(c,e=>(i.y.test(e)?(r.color.push(s),a.push(l),n.push(i.y.parse(e))):e.startsWith("var(")?(r.var.push(s),a.push("var"),n.push(e)):(r.number.push(s),a.push(o),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:u,indexes:r,types:a}}function d({split:e,types:t}){let n=e.length;return r=>{let a="";for(let c=0;c<n;c++)if(a+=e[c],void 0!==r[c]){let e=t[c];e===o?a+=(0,s.a)(r[c]):e===l?a+=i.y.transform(r[c]):a+=r[c]}return a}}let h={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(a.S)?.length||0)+(e.match(r)?.length||0)>0},parse:function(e){return u(e).values},createTransformer:function(e){return d(u(e))},getAnimatableNone:function(e){let t=u(e);return d(t)(t.values.map((e,n)=>{var r;let a;return r=t.split[n],"number"==typeof e?r?.trim().endsWith("/")?e:0:"number"==typeof(a=e)?0:i.y.test(a)?i.y.getAnimatableNone(a):a}))}}},1784:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});let i=(...e)=>e.reduce((e,t)=>
1n=>t(e(n)))},1853:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});let i=(e,t,n)=>e+(t-e)*n},1923:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});let i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},1983:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var i=n(6882),r=n(6227),a=n(514),s=n(879);let o={test:(0,s.$)("hsl","hue"),parse:(0,s.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+r.KN.transform((0,a.a)(t))+", "+r.KN.transform((0,a.a)(n))+", "+(0,a.a)(i.X4.transform(s))+")"}},2022:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});class i{constructor(e){this.isMounted=!1,this.node=e}update(){}}},2304:(e,t,n)=>{"use strict";n.d(t,{Uu:()=>a});var i=n(487);let r="undefined"!=typeof window;function a(){if(i.r.current=!0,r)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i.O.current=e.matches;e.addEventListener("change",t),t()}else i.O.current=!1}},2433:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var i=n(8205);class r{constructor(){this.subscriptions=[]}add(e){return(0,i.Kq)(this.subscriptions,e),()=>(0,i.Ai)(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},2466:(e,t,n)=>{"use strict";function i(e,t=""){return e?e.replace(/\|(.*?)\|/g,`<span class="${t}">$1</span>`):null}n.d(t,{A:()=>i})},2506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({html:e,height:t=null,width:n=null,children:a,dataNtpc:s=""}){return(0,r.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,i.jsxs)(i.Fragment,{children:[a,e?(0,i.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=n?`${n}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})};let i=n(7876),r=n(4232)},2549:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var i=n(7594);function r(e){return(0,i.G)(e)&&"ownerSVGElement"in e}},2589:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let i=(e,t,n)=>{let i=t-e;return i?(n-e)/i:1}},2672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ed});var i,r=n(7876);n(6367);var a=n(4269),s=n(490),o=n(1370),l=n(4232);function c(){let e=(0,s.A)(1024),t=(0,l.useCallback)(t=>{try{(0,o.Dd)("navigation_interaction",{navigation_action:"click",menu_item:t.menu_item,submenu_item:t.submenu_item,device_type:e?"mobile":"desktop",menu_type:t.menu_type||"main",destination_url:t.destination_url})}catch(e){}},[e]),n=(0,l.useCallback)(t=>{try{e||(0,o.Dd)("navigation_interaction",{navigation_action:"hover",menu_item:t.menu_item,device_type:"desktop",menu_type:t.menu_type||"main"})}catch(e){}},[e]),i=(0,l.useCallback)(e=>{try{(0,o.Dd)("navigation_interaction",{navigation_action:e?"mobile_menu_open":"mobile_menu_close",device_type:"mobile",menu_type:"mobile"})}catch(e){}},[]),r=(0,l.useCallback)(t=>{try{(0,o.Dd)("navigation_interaction",{navigation_action:t.isOpen?"submenu_open":"submenu_close",menu_item:t.menu_item,device_type:e?"mobile":"desktop",menu_type:"submenu"})}catch(e){}},[e]);return{trackNavClick:t,trackNavHover:n,trackMobileMenuToggle:i,trackSubmenuToggle:r,trackLogoClick:(0,l.useCallback)(()=>{try{(0,o.Dd)("navigation_interaction",{navigation_action:"logo_click",destination_url:"/",device_type:e?"mobile":"desktop",menu_type:"main"})}catch(e){}},[e]),trackAnnouncementClick:(0,l.useCallback)(t=>{try{(0,o.Dd)("navigation_interaction",{navigation_action:"announcement_click",menu_item:t.announcement_text,destination_url:t.destination_url,device_type:e?"mobile":"desktop",menu_type:"announcement"})}catch(e){}},[e])}}var u=n(2466),d=n(7496);function h({...e}){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 131 21",fill:"none",...e,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_1437_10427)",children:[(0,r.jsx)("path",{d:"M11.5713 9.91525C11.8627 10.6493 12.0019 11.436 11.9801 12.2257V20.6898H8.54567V12.8802C8.55562 12.4505 8.49296 12.0218 8.36167 11.613C8.24729 11.3266 8.0802 11.063 7.87133 10.8363C7.6734 10.6443 7.43669 10.4971 7.1761 10.4066C6.89065 10.324 6.59425 10.2833 6.29686 10.2842C5.90797 10.2803 5.52008 10.3429 5.15207 10.4683C4.8149 10.5896 4.51254 10.7935 4.27284 11.061C3.99335 11.3743 3.78448 11.7433 3.65916 12.1442C3.50202 12.6892 3.42643 13.2542 3.43438 13.8211V20.6898H0V7.29844H3.43438V8.19756C3.6711 7.99963 3.92373 7.8216 4.19128 7.66644C5.04465 7.20693 6.00246 6.97519 6.97121 6.9921C7.61074 6.98911 8.2463 7.09255 8.85201 7.29844C9.45475 7.49537 10.0068 7.82359 10.4673 8.25923C10.9586 8.71874 11.3356 9.28566 11.5713 9.91525ZM26.8435 11.5305C27.0703 12.3421 27.1876 13.1815 27.1906 14.025V15.3945H17.3977C17.4355 15.6263 17.519 15.8491 17.6434 16.049C17.8254 16.424 18.0919 16.7532 18.4201 17.0098C18.7603 17.2883 19.1482 17.5031 19.5649 17.6434C20.0046 17.7995 20.468 17.8751 20.9345 17.8681C21.4945 17.892 22.0495 17.7498 22.5289 17.4594C23.0451 17.1301 23.5016 16.7154 23.8786 16.233L24.2257 15.8242L26.8425 17.8274L26.5153 18.2769C25.1049 20.0762 23.1217 20.9962 20.6272 20.9962C19.6545 21.0051 18.6887 20.8251 17.7856 20.4651C16.9561 20.1329 16.2101 19.6236 15.5984 18.9722C14.9997 18.3267 14.5342 17.5698 14.2289 16.7442C13.9126 15.866 13.7534 14.938 13.7584 14.0051C13.7564 13.0612 13.9295 12.1253 14.2696 11.245C14.6038 10.4145 15.0972 9.65765 15.7208 9.01712C16.3414 8.37659 17.0854 7.86934 17.9079 7.52421C18.7772 7.16814 19.7082 6.98712 20.6471 6.99309C21.8326 6.99309 22.8342 7.19798 23.6727 7.62666C24.4604 8.01455 25.1517 8.57352 25.6967 9.26179C26.2298 9.93216 26.6197 10.704 26.8415 11.5315L26.8435 11.5305ZM23.5513 12.4296C23.5086 12.1949 23.4539 11.9631 23.3882 11.7344C23.2748 11.3912 23.0859 11.077 22.8362 10.8144C22.5925 10.5379 22.2832 10.327 21.9371 10.2007C21.0738 9.86055 20.111 9.87547 19.2586 10.2415C18.8737 10.4096 18.5256 10.6523 18.2361 10.9566C17.9567 11.2381 17.7339 11.5
1713 17.5817 11.9383C17.5091 12.0954 17.4544 12.2595 17.4186 12.4286H23.5513V12.4296ZM35.0818 17.6434C34.8272 17.7 34.5666 17.7269 34.305 17.7249C34.0653 17.7368 33.8256 17.6881 33.6098 17.5817C33.4686 17.4743 33.3562 17.334 33.2826 17.1729C33.1901 16.9382 33.1413 16.6885 33.1394 16.4369C33.1185 16.1097 33.0986 15.7824 33.0986 15.4552V10.4255H36.4514V7.29744H33.0986V3.86306H29.6642V7.29744H27.4969V10.4255H29.6642V16.2728C29.6602 16.785 29.6881 17.2972 29.7458 17.8065C29.7835 18.3595 29.9437 18.8976 30.2162 19.3809C30.5355 19.8961 30.997 20.3079 31.545 20.5665C32.1179 20.853 32.8738 20.9962 33.8754 20.9962C34.2444 20.9922 34.6134 20.9653 34.9794 20.9146C35.424 20.8589 35.8536 20.7207 36.2465 20.5058L36.533 20.3626V16.9481L35.6945 17.4385C35.5025 17.5399 35.2957 17.6095 35.0808 17.6434H35.0818ZM51.9693 11.244C52.2836 12.1302 52.4427 13.0642 52.4397 14.0041C52.4437 14.9311 52.2846 15.8511 51.9693 16.7233C51.6639 17.5489 51.1985 18.3068 50.5997 18.9513C49.993 19.6037 49.254 20.1189 48.4324 20.4641C47.5433 20.8241 46.5914 21.0051 45.6316 20.9952C44.7196 20.9912 43.8195 20.7893 42.9939 20.4024C42.5842 20.2323 42.2052 19.9976 41.869 19.7072V20.6888H38.4346V0H41.869V8.25923C42.1903 8.00162 42.5404 7.78182 42.9114 7.60477C43.7608 7.19997 44.6897 6.99011 45.6306 6.9911C46.5904 6.98215 47.5423 7.16217 48.4315 7.52222C49.245 7.87232 49.9811 8.37957 50.5987 9.01513C51.1865 9.66958 51.65 10.4245 51.9683 11.2431L51.9693 11.244ZM48.5956 12.4714C48.4553 12.0348 48.2176 11.6369 47.9003 11.3057C47.595 10.9815 47.226 10.7239 46.8172 10.5488C45.8753 10.1937 44.8359 10.1937 43.8941 10.5488C43.4843 10.7239 43.1153 10.9815 42.8109 11.3057C42.5006 11.6409 42.2639 12.0387 42.1157 12.4714C41.9456 12.9647 41.8621 13.4829 41.87 14.0051C41.8651 14.5263 41.9476 15.0444 42.1157 15.5388C42.2689 15.9635 42.5046 16.3524 42.8109 16.6836C43.1103 17.0138 43.4813 17.2724 43.8941 17.4405C44.831 17.8214 45.8803 17.8214 46.8172 17.4405C47.231 17.2734 47.601 17.0148 47.9003 16.6836C48.2136 16.3573 48.4513 15.9664 48.5956 15.5388C48.7627 15.0454 48.8462 14.5263 48.8412 14.0051C48.8482 13.4839 48.7646 12.9647 48.5956 12.4714ZM65.851 18.9722C63.0423 21.6725 58.6013 21.6725 55.7926 18.9722C54.4827 17.6503 53.7476 15.865 53.7486 14.0041C53.7387 11.1794 55.4345 8.62823 58.0424 7.5441C59.8227 6.80809 61.8229 6.80809 63.6032 7.5441C66.2031 8.63817 67.8949 11.1834 67.8969 14.0041C67.8969 15.865 67.1629 17.6503 65.853 18.9722H65.851ZM64.0518 12.4714C63.9105 12.0397 63.6808 11.6429 63.3774 11.3057C63.0691 10.9854 62.7011 10.7288 62.2943 10.5488C61.3445 10.1947 60.3001 10.1947 59.3503 10.5488
1C58.9435 10.7288 58.5755 10.9854 58.2671 11.3057C57.9638 11.6429 57.734 12.0397 57.5928 12.4714C57.4058 12.9607 57.3153 13.4809 57.3272 14.0051C57.3193 14.5282 57.4088 15.0484 57.5928 15.5388C57.739 15.9615 57.9678 16.3514 58.2671 16.6836C58.5705 17.0098 58.9405 17.2674 59.3503 17.4405C60.2941 17.8224 61.3504 17.8224 62.2943 17.4405C62.7051 17.2674 63.0741 17.0098 63.3774 16.6836C63.6768 16.3514 63.9066 15.9615 64.0518 15.5388C64.2258 15.0464 64.3163 14.5282 64.3173 14.0051C64.3173 13.4829 64.2278 12.9637 64.0518 12.4714ZM81.2655 7.29844H77.0543L74.4166 11.2242L71.7381 7.29844H67.3221L72.1061 13.5744L66.7084 20.6888H70.9812L74.3131 15.9456L77.666 20.6888H82.0611L76.6634 13.5744L81.2635 7.29844H81.2655Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M85.8848 0H89.3191V20.6898H85.8848V0ZM102.834 20.0762L102.896 20.6898H99.7058L99.6651 20.1786C99.6442 20.0155 99.6442 19.8514 99.6243 19.6883C99.2831 20.0016 98.8972 20.2641 98.4795 20.4651C97.0532 21.0569 95.4708 21.1583 93.9819 20.7515C93.4259 20.5814 92.9067 20.3119 92.4482 19.9538C91.9956 19.5858 91.6256 19.1263 91.3651 18.6041C91.1035 18.0263 90.9702 17.3987 90.9762 16.7641C90.9453 15.9535 91.1671 15.1539 91.6097 14.4745C92.0205 13.8469 92.5835 13.3337 93.2449 12.9816C93.9719 12.5927 94.7606 12.3302 95.5752 12.2048C96.4714 12.0367 97.3824 11.9542 98.2945 11.9592H99.4602C99.4403 11.7225 99.3925 11.4897 99.3169 11.2639C99.2125 11.0222 99.0673 10.8014 98.8873 10.6095C98.6804 10.4096 98.4377 10.2494 98.1722 10.139C97.8191 10.0077 97.4441 9.94608 97.0681 9.95503C96.717 9.95006 96.3659 9.99183 96.0258 10.0774C95.7453 10.148 95.4718 10.2435 95.2082 10.3638C94.9785 10.4732 94.7597 10.6035 94.5538 10.7527L93.9202 11.2431L93.5114 11.5494L91.3849 9.34136L91.8146 8.95247C92.5258 8.29304 93.3
1692 7.79077 94.2882 7.48045C95.1724 7.1572 96.1064 6.9921 97.0482 6.99011C97.8947 6.9722 98.7371 7.09653 99.5427 7.35811C100.206 7.57295 100.818 7.92007 101.342 8.38057C101.801 8.80228 102.164 9.31849 102.405 9.89337C102.616 10.4484 102.726 11.0372 102.732 11.6309V17.9069C102.732 18.3366 102.732 18.7245 102.753 19.0726C102.774 19.4197 102.794 19.7678 102.835 20.0742L102.834 20.0762ZM98.7649 14.7809C98.2338 14.7809 97.6818 14.8217 97.1298 14.8624C96.6345 14.9112 96.1471 15.0216 95.6787 15.1897C95.3166 15.311 94.9884 15.5139 94.7179 15.7824C94.511 15.9953 94.3996 16.2827 94.4115 16.5801C94.4115 17.2754 94.4931 17.4186 94.882 17.6632C95.2709 17.9089 95.802 18.0313 96.5171 18.0313C96.9945 18.0501 97.47 17.9586 97.9076 17.7657C98.2527 17.6085 98.5541 17.3708 98.7868 17.0705C99.0235 16.79 99.1976 16.4628 99.298 16.1097C99.4025 15.7506 99.4572 15.3796 99.4612 15.0057V14.7809H98.7659H98.7649ZM118.411 11.244C118.726 12.1302 118.885 13.0642 118.882 14.0041C118.886 14.9311 118.727 15.8511 118.411 16.7233C118.106 17.5489 117.641 18.3068 117.042 18.9513C116.435 19.6037 115.696 20.1189 114.875 20.4641C113.991 20.8221 113.047 21.0031 112.095 20.9952C111.177 20.9912 110.27 20.7893 109.437 20.4024C109.027 20.2323 108.648 19.9976 108.312 19.7072V20.6888H104.878V0H108.312V8.25923C108.633 8.00162 108.984 7.78182 109.355 7.60477C110.21 7.19699 111.147 6.98812 112.094 6.9911C113.047 6.98314 113.991 7.16416 114.874 7.52222C115.69 7.86735 116.427 8.3756 117.041 9.01513C117.629 9.66958 118.092 10.4245 118.41 11.2431L118.411 11.244ZM115.039 12.4714C114.898 12.0348 114.661 11.6369 114.343 11.3057C114.038 10.9815 113.669 10.7239 113.26 10.5488C112.318 10.1937 111.279 10.1937 110.337 10.5488C109.927 10.7239 109.558 10.9815 109.254 11.3057C108.944 11.6409 108.707 12.0387 108.559 12.4714C108.389 12.9647 108.305 13.4829 108.313 14.0051C108.308 14.5263 108.391 15.0444 108.559 15.5388C108.712 15.9635 108.948 16.3524 109.254 16.6836C109.553 17.0138 109.924 17.2724 110.337 17.4405C111.274 17.8214 112.323 17.8214 113.26 17.4405C113.674 17.2734 114.044 17.0148 114.343 16.6836C114.657 16.3573 114.895 15.9664 115.039 15.5388C115.206 15.0454 115.289 14.5263 115.284 14.0051C115.291 13.4839 115.208 12.9647 115.039 12.4714ZM130.044 14.9042C129.835 14.4487 129.527 14.0439 129.145 13.7186C128.763 13.3775 128.319 13.1139 127.836 12.9418C127.358 12.7489 126.866 12.5917 126.364 12.4714H126.343L125.403 12.2874C125.093 12.2357 124.791 12.1462 124.503 12.0218C124.254 11.9134 124.025 11.7612 123.829 11.5723C123.698 11.4529 123.63 11.2789 123.645 11.1018C123.636 10.8701 123.764 10.6542 123.972 10.5498C124.331 10.3618 124.733 10.2693 125.138 10.2842C125.563 10.2663 125.985 10.3579 126.364 10.5498C126.695 10.7388 126.986 10.9884 127.223 11.2858L127.57 11.7155L130.207 9.71235L129.942 9.28268C129.465 8.47406 128.73 7.84746 127.856 7.50432C127.041 7.16217 126.164 6.98911 125.28 6.99309C124.651 6.99011 124.023 7.07962 123.42 7.25865C122.827 7.41679 122.266 7.67937 121.764 8.03544C121.259 8.38753 120.839 8.84803 120.538 9.38512C120.208 9.97791 120.046 10.6493 120.067 11.3276C120.05 11.9283 120.176 12.5241 120.435 13.0652C120.67 13.5227 121.005 13.9215 121.417 14.2309C121.826 14.5342 122.281 14.7689 122.767 14.9261C123.23 15.0892 123.721 15.2324 124.239 15.3558H124.26L125.139 15.5398C125.435 15.6014 125.724 15.6969 125.997 15.8262C126.225 15.9137 126.428 16.054 126.59 16.235C126.721 16.3543 126.789 16.5284 126.774 16.7054C126.778 16.8328 126.734 16.9561 126.652 17.0526C126.547 17.1938 126.415 17.3122 126.263 17.3997C126.055 17.5021 125.835 17.5777 125.608 17.6245C125.352 17.6732 125.092 17.7 124.832 17.706C124.335 17.7269 123.844 17.5986 123.421 17.338C122.996 17.0725 122.599 16.7641 122.236 16.418L121.889 16.05L119.333 18.1765L119.64 18.6061C120.223 19.4327 121.022 20.0831 121.95 20.4869C122.867 20.848 123.848 21.021 124.833 20.9982C125.48 21.0051 126.126 20.9295 126.754 20.7734C127.389 20.6431 127.992 20.3934 128.533 20.0374C129.064 19.6734 129.51 19.1989 129.841 18.6469C130.199 18.0183 130.376 17.3042 130.353 16.5821C130.366 16.0082 130.261 15.4383 130.046 14.9052L130.044 14.9042Z",fill:"#00F2D4"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_1437_10427",children:(0,r.jsx)("rect",{width:"130.353",height:"20.9982",fill:"white"})})})]})}var f=n(149),p=n(9198),m=n(5994),v=n(8230),g=n.n(v),y=n(9241);function b({left_column:e={},middle_column:t={},right_column:n={}}){let i=e=>e?.submenu_modules?.length>0,{handleCloseSubmenu:a,handleCloseMobileNav:s}=W(),o={handleCloseAll:()=>{a(),s()}};return(0,r.jsxs)("div",{className:"flex flex-col gap-9 pb-9 pt-2 lg:flex-row lg:justify-between lg:gap-12 lg:pb-20 lg:pt-[3.25rem]",children:[(0,r.jsxs)("div",{className:"grid flex-1 gap-9 lg:max-w-[42.5rem] lg:grid-cols-2 lg:gap-20",children:[i(e)&&(0,r.jsx)(w,{modules:e?.
1submenu_modules,...o}),i(t)&&(0,r.jsx)(w,{modules:t?.submenu_modules,...o})]}),(0,r.jsx)("div",{className:"w-full shrink-0 lg:w-1/4 lg:max-w-[18.75rem]",children:i(n)&&(0,r.jsx)(w,{modules:n?.submenu_modules,...o})})]})}function w({modules:e=[],handleCloseAll:t}){if(!e)return null;let n={link_list:x,featured_resource:_,card_cta:k,tile_cta:E};return(0,r.jsx)("div",{className:"w-full space-y-8",children:e.map((e,i)=>{let a=n[e.acf_fc_layout];return a?(0,r.jsx)(a,{...e,handleCloseAll:t},`module-${i}`):null})})}function x({link_list:e={},handleCloseAll:t}){let{subheading:n="",links:i=[]}=e,{theme:a}=W();return(0,r.jsxs)("div",{className:"space-y-6 lg:space-y-5",children:[n&&(0,r.jsx)("div",{className:(0,y.A)("text-13-mobHeading","black"===a?"text-grey-8":"text-black/50"),children:n}),i.length>0&&(0,r.jsx)("ul",{className:"space-y-6 lg:space-y-[1.875rem]",children:i.map(({link:e,icon:n,icon_background:i=!1,description:s=""})=>{let o=e?.title&&function(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value}(e.title);return e?.url&&(0,r.jsx)("li",{children:(0,r.jsxs)(g(),{href:e?.url,target:e?.target,className:"group flex items-start gap-x-3",onClick:t,children:[n?.url&&(0,r.jsx)("div",{className:(0,y.A)("w-6",i&&"white"===a&&"rounded bg-grey-11 p-1"),children:(0,r.jsx)(p.A,{image:n,className:"w-full"})}),(0,r.jsxs)("div",{className:(0,y.A)("block space-y-2 leading-none","black"===a?"text-white":"text-black"),children:[(0,r.jsxs)("div",{className:"inline-flex gap-x-2 transition-colors duration-200 group-hover:text-teal",children:[(0,r.jsx)("span",{className:"text-13-mobHeading !leading-none",dangerouslySetInnerHTML:{__html:`${o}`}}),e?.target==="_blank"&&(0,r.jsx)(d.S5,{className:"w-3"})]}),s&&(0,r.jsx)("div",{className:(0,y.A)("text-13-mobSubText lg:!leading-none","black"===a?"text-grey-7":"text-grey-9"),children:s})]})]})},e?.title)})})]})}function _({featured_resource:e,handleCloseAll:t}){let{subheading:n="",resource_type:i,resource:a,page_card:s}=e,{theme:o}=W(),{resourceUrl:l,resourceType:c,target:u,hasPermalink:d,image:h}=(0,f.A)({permalink:a?.permalink,featured_image:a?.featured_image,post_title:a?.post_title,post_type:a?.post_type,categories:a?.categories,news_category:a?.news_category,customer_story_category:a?.custom_category});return(0,r.jsxs)("div",{className:"space-y-5",children:[n&&(0,r.jsx)("div",{className:(0,y.A)("text-13-mobHeading","black"===o?"text-grey-8":"text-black/50"),children:n}),"page"===i&&s?.link?.url&&(0,r.jsx)(C,{link:s?.link?.url,target:s?.link?.target,title:s?.link?.title,tag:s?.tag,thumbnail:s?.thumbnail,theme:o,handleCloseAll:t}),"page"!==i&&d&&(0,r.jsx)(C,{link:l,target:u,title:a?.post_title,tag:c,thumbnail:h,theme:o,handleCloseAll:t})]})}function C({link:e,target:t,title:n,tag:i,thumbnail:a,theme:s,handleCloseAll:o}){return(0,r.jsxs)(g(),{href:e,target:t,className:"group block space-y-8",onClick:o,children:[(0,r.jsxs)("div",{className:"w-full lg:max-w-[16.25rem]",children:[(0,r.jsx)("div",{className:(0,y.A)("text-13-subText transition-colors duration-200 group-hover:text-teal","black"===s?"text-white":"text-black"),children:n}),(0,r.jsx)("div",{className:"mt-4 inline-flex gap-x-2",children:(0,r.jsx)("div",{className:"rounded bg-grey-12 px-2 py-1 text-[0.6875rem] text-white",children:i})})]}),(0,r.jsx)("div",{className:"overflow-hidden rounded transition-opacity duration-200 group-hover:opacity-80",children:(0,r.jsx)(p.A,{image:{...a}})})]})}function k({card_cta:e,handleCloseAll:t}){let{link:n,asset:i}=e;return n?.url?(0,r.jsxs)(g(),{href:n?.url,target:n?.target,className:"group relative block aspect-[300/220] w-full overflow-hidden rounded lg:max-w-[18.75rem]",onClick:t,children:[(0,r.jsx)(m.A,{...i,className:"object-cover transition-opacity duration-200 group-hover:opacity-80",isFill:!0}),(0,r.jsx)("div",{className:"absolute left-3 top-3 rounded bg-grey-12 px-2 py-1 text-[0.8125rem] leading-[1.5] tracking-[0.26px] text-white",children:n?.title})]}):null}function E({tile_cta:e,handleCloseAll:t}){let{link:n,asset:i,description:a=""}=e,{theme:s}=W();return n?.url?(0,r.jsxs)(g(),{href:n?.url,target:n?.target,className:"group flex flex-col-reverse gap-y-6 lg:max-w-[21.75rem] lg:flex-col",onClick:t,children:[(0,r.jsx)("div",{className:"relative block aspect-[348/220] w-full overflow-hidden rounded transition-opacity duration-200 group-hover:opacity-80",children:(0,r.jsx)(m.A,{...i,className:"object-cover",isFill:!0})}),(0,r.jsxs)("div",{className:(0,y.A)("space-y-1 leading-none max-lg:pt-2 lg:space-y-2","black"===s?"text-white":"text-black"),children:[(0,r.jsx)("div",{className:"text-13-mobHeading !leading-none transition-colors duration-200 group-hover:text-teal",children:n?.title}),a&&(0,r.jsx)("div",{className:(0,y.A)("text-13-mobSubText lg:!leading-none","black"===s?"text-grey-7":"text-grey-9"),children:a})]})]}):null}var S=n(6719),M=n(5784);function A({navItems:e=[],className:t=""}){let{theme:n,isSubmenuOpen:i,setIsSubmenuOpen:a,activeMenuItem:s}=W();return(0,r.jsxs)(S.PY1.div,{initial:{opacity:0}
1,animate:{opacity:+!!i},transition:{duration:.3},className:(0,y.A)("flex flex-col","black"===n?"bg-grey-16 text-white":"bg-grey-1 text-black",i?"pointer-events-auto":"pointer-events-none",t),children:[(0,r.jsx)("div",{className:"absolute inset-0",onMouseEnter:()=>a(!1)}),(0,r.jsx)("div",{className:"container-force-width container relative z-10",children:(0,r.jsx)(M.N,{mode:"popLayout",children:e?.map(({has_submenu:e=!1,submenu:t={three_column_submenu:{}}},n)=>e&&s===n&&(0,r.jsx)(S.PY1.div,{initial:{opacity:0,x:40},animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.5,ease:[.5,.16,.1,1]},className:"will-change-transform",children:(0,r.jsx)(b,{...t?.three_column_submenu})},`tagline-${n}`))})})]})}function P({link:e,has_submenu:t=!1,index:n}){let{title:i,url:a,target:s="_self"}=e,[o,u]=(0,l.useState)(!1),{theme:d,isSubmenuOpen:h,setIsSubmenuOpen:f,activeMenuItem:p,setActiveMenuItem:m}=W(),{trackNavClick:v,trackNavHover:y,trackSubmenuToggle:b}=c(),w=()=>{u(!0),t?(f(!0),m(n),y({menu_item:i,menu_type:"main"}),b({menu_item:i,isOpen:!0})):(f(!1),y({menu_item:i,menu_type:"main"}))},x=()=>{u(!1)},_="text-13 relative block px-3.5 xl:px-[0.9375rem] py-2.5 !leading-none",C=h&&p===n;return(0,r.jsx)("li",{children:t?(0,r.jsxs)("button",{type:"button",className:_,onMouseEnter:w,onMouseLeave:x,children:[(0,r.jsx)("span",{className:`relative z-10 transition-opacity duration-200 ${o||C?"opacity-100":"opacity-70"}`,children:i}),(0,r.jsx)(j,{isHovered:o||C,theme:d})]}):a&&""!==a&&(0,r.jsxs)(g(),{href:a,target:s,className:_,onMouseEnter:w,onMouseLeave:x,onClick:()=>{v({menu_item:i,destination_url:a,menu_type:t?"submenu":"main"})},children:[(0,r.jsx)("span",{className:`relative z-10 transition-opacity duration-200 ${o?"opacity-100":"opacity-70"}`,children:i}),(0,r.jsx)(j,{isHovered:o,theme:d})]})})}function j({isHovered:e,theme:t="black"}){return(0,r.jsx)(M.N,{children:e&&(0,r.jsx)(S.PY1.div,{layoutId:"headerNavHover",className:`absolute inset-x-[0.3125rem] inset-y-0 rounded-[0.1875rem] ${"black"===t?"bg-grey-12":"bg-grey-3"}`,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{opacity:{duration:.2},visualDuration:.4,type:"spring",bounce:.1}})})}var T=n(8983);function I({ctas:e={secondary_cta:{},primary_cta:{}}}){let{secondary_cta:t,primary_cta:n}=e,{theme:i,handleCloseSubmenu:a}=W();return(0,r.jsxs)("div",{className:"flex items-center gap-x-2.5",children:[t?.url&&(0,r.jsx)(g(),{href:t.url,target:t?.target||"_self",className:"flex items-center leading-none",onMouseEnter:a,children:(0,r.jsx)(T.$,{link:{title:t.title,url:t.url},button:{size:"small",background_color:"black"===i?"black":"grey-1"}})}),n?.url&&(0,r.jsx)(g(),{href:n.url,target:n?.target||"_self",className:"flex items-center leading-none",onMouseEnter:a,children:(0,r.jsx)(T.$,{link:{title:n.title,url:n.url},button:{size:"small",background_color:"black"===i?"white":"black"}})})]})}function L(){let{showMobileNav:e,setShowMobileNav:t}=W(),{trackMobileMenuToggle:n}=c(),i={initial:{opacity:0},animate:{opacity:1},transition:{duration:.6}};return(0,r.jsx)("button",{type:"button","aria-label":"Toggle Mobile Navigation",className:"w-7",onClick:()=>{let i=!e;t(i),n(i)},children:e?(0,r.jsxs)(S.PY1.svg,{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 28 28",fill:"none",...i,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_1265_20648)",children:[(0,r.jsx)("path",{d:"M21.875 6.125L6.125 21.875",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"square",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M21.875 21.875L6.125 6.125",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"square",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_1265_20648",children:(0,r.jsx)("rect",{width:"28",height:"28",fill:"currentColor"})})})]},"cross-icon"):(0,r.jsxs)(S.PY1.svg,{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 28 28",fill:"none",...i,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_1201_26894)",children:[(0,r.jsx)("path",{d:"M4.375 14H23.625",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"square",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.375 7H23.625",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"square",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.375 21H23.625",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"square",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_1201_26894",children:(0,r.jsx)("rect",{width:"28",height:"28",fill:"currentColor"})})})]},"burger-icon")})}function R({navItem:e,buttonClasses:t=""}){let[n,i]=(0,l.useState)(!1),a={height:0,opacity:0};return(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{type:"button","aria-label":"Toggle submenu",className:`flex items-center gap-x-3 text-left ${t}`,onClick:()=>i(!n),children:[(0,r.jsx)("div",{className:"flex-1",children:e?.link?.title}),(0,r.jsx)(d.bD,{className:`w-4 text-grey-8 transition-transform duration-200 ${n&&"rotate-180"}`})]}),(0,r.jsx)(M.N,{children:n&&(0,r.jsx)(S.PY1.div,{initial:a,animate:{height:"auto",opacity:1},exit:a,transition:{duration:.3,ease:[.5,.16,.1,1]},children:(0,r.jsx)(b,{...e?.submenu?.three_column_submenu})})})]})}var O=n(4933);function F({navItems:e=[],ctas:t={},className:n="",theme:i="black"}){let a={duration:.3,ease:"easeInOut"};return(0,O._p)(),(0,r.jsxs)(S.PY1.div,{variants:{initial:{opacity:0,transition:a},animate:{opacity:1,transition:a},exit:{opacity:0,transition:a}},initial:"initial",animate:"animate",exit:"exit",className:(0,y.A)("black"===i?"bg-grey-16 text-white":"bg-grey-1 text-grey-16",n),children:[(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("nav",{children:(0,r.jsx)("ul",{children:e?.map((e,t)=>(0,r.jsx)(S.PY1.li,{initial:{opacity:0,x:20},animate:{x:0,opacity:1},transition:{duration:.3,ease:"easeInOut",delay:.07*t},className:(0,y.A)("overflow-hidden border-b","black"===i?"border-white/[0.08]":"border-grey-2"),children:(0,r.jsx)(V,{navItem:e})},`navLink-${t}`))})})}),(0,r.jsx)("div",{className:"container mt-24 border-t border-white/[0.08] pb-14 pt-6",children:(0,r.jsx)(D,{ctas:t})})]},"mobileNav")}function V({navItem:e}){let{has_submenu:t=!1,link:n}=e,{handleCloseMobileNav:i}=W(),a="w-full py-6 text-[1rem] leading-[1.5]";
1return t?(0,r.jsx)(R,{navItem:e,buttonClasses:a}):(0,r.jsx)(g(),{href:n?.url,target:n?.target,className:`block ${a}`,onClick:i,children:n?.title})}function D({ctas:e={secondary_cta:{},primary_cta:{}}}){let{secondary_cta:t,primary_cta:n}=e;return(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-x-2.5",children:[t?.url&&(0,r.jsx)(N,{link:t,backgroundColor:"grey-13"}),n?.url&&(0,r.jsx)(N,{link:n,backgroundColor:"white"})]})}function N({link:e,backgroundColor:t="grey-13"}){let{handleCloseMobileNav:n}=W();return(0,r.jsx)(g(),{href:e.url,className:"block",onClick:n,children:(0,r.jsx)("div",{className:`rounded px-3.5 py-[1.125rem] text-center text-[0.9375rem] font-medium leading-none transition-colors duration-200 ${{"grey-13":"bg-grey-13 text-white",white:"bg-white text-grey-16"}[t]}`,children:e.title})})}var B=n(9099);let H=(0,l.createContext)(null);function W(){let e=(0,l.useContext)(H);if(null==e)throw Error("useHeaderContext must be used within a Header");return e}function U({options:{header:e},theme:t="black"}){let{nav:n={items:[]},ctas:i,announcement_banner:a}=e,[o,u]=(0,l.useState)(!1),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(!1),v=(0,s.A)(1024),{trackLogoClick:b,trackMobileMenuToggle:w,trackSubmenuToggle:x}=c(),_=(0,B.useRouter)(),C=n?.items?.length>0&&n?.items[0]?.link?.url?.length>0,k=(0,l.useCallback)(()=>{if(o&&null!==d){let e=n?.items?.[d];x({menu_item:e?.link?.title,isOpen:!1})}u(!1),f(null)},[o,d,n?.items,x]);return(0,l.useEffect)(()=>(_.events.on("routeChangeStart",k),()=>{_.events.off("routeChangeStart",k)}),[_,k]),(0,l.useEffect)(()=>{if(!o)return()=>{};let e=()=>{k()};return document.documentElement.addEventListener("mouseleave",e),()=>{document.documentElement.removeEventListener("mouseleave",e)}},[o,k]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{...a,router:_}),(0,r.jsx)(H.Provider,{value:{theme:t,isSubmenuOpen:o,setIsSubmenuOpen:u,activeMenuItem:d,setActiveMenuItem:f,handleCloseSubmenu:k,handleCloseMobileNav:()=>{p&&w(!1),m(!1)},showMobileNav:p,setShowMobileNav:m},children:(0,r.jsxs)("div",{className:"sticky inset-x-0 top-0 z-[101]",children:[(0,r.jsx)("header",{className:(0,y.A)("relative z-10 flex h-[var(--header-height)] w-full transition-shadow duration-300","black"===t?"bg-grey-16 text-white":"bg-grey-1 text-black"),children:(0,r.jsxs)("div",{className:"container flex flex-1 items-center justify-between py-3 sm:py-4",children:[(0,r.jsx)(g(),{href:"/","aria-label":"Back to Home",className:"block h-5 transition-opacity duration-200 hover:opacity-70 sm:h-[1.3125rem]",onMouseEnter:()=>u(!1),onClick:b,children:(0,r.jsx)(h,{className:"w-auto will-change-transform"})}),C&&!v&&(0,r.jsx)("nav",{children:(0,r.jsx)("ul",{className:"hidden items-center lg:flex",children:n?.items?.map(({link:e,has_submenu:t},n)=>(0,r.jsx)(P,{link:e,has_submenu:t,index:n},e?.title))})}),!v&&(0,r.jsx)(I,{ctas:i}),v&&(0,r.jsx)(L,{})]})}),(0,r.jsx)(A,{navItems:n?.items,className:"absolute inset-x-0 top-full h-[calc(100vh-var(--header-height))] w-full overflow-scroll"}),(0,r.jsx)(M.N,{children:p&&(0,r.jsx)(F,{navItems:n?.items,ctas:i,className:"absolute inset-x-0 top-full h-[calc(100vh-var(--header-height))] w-full overflow-scroll lg:hidden",theme:t})})]})})]})}function z({icon:e,link:t,homepage_only:n=!1,router:i}){let a=(0,s.A)(640),o="/"===i.asPath,{trackAnnouncementClick:l}=c(),h=a&&t?.title?.length>32?`${t?.title.slice(0,32)}...`:(0,u.A)(t?.title,"text-white");return n&&!o?null:(0,r.jsx)(g(),{href:t?.url,target:t?.target,className:"group sticky top-0 z-[101] block border-b border-grey-13 bg-grey-16 py-2.5 text-white transition-colors duration-200 hover:bg-grey-13",onClick:()=>{l({announcement_text:t?.title,destination_url:t?.url})},children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"flex items-center justify-center gap-x-2.5",children:[e?.url&&(0,r.jsx)(p.A,{image:e,className:"shrink-0"}),(0,r.jsx)("p",{className:"text-13 text-grey-6",dangerouslySetInnerHTML:{__html:h}}),!a&&(0,r.jsx)("div",{className:"h-3.5 w-px shrink-0 bg-grey-13"}),(0,r.jsx)(d.fl,{className:"w-3 shrink-0 text-grey-6 transition-transform duration-200 group-hover:translate-x-0.5"})]})})})}let $=function(){return(0,r.jsx)("header",{className:"fixed inset-x-0 top-0 z-[101] flex h-[var(--header-height)] w-full text-white transition-shadow duration-300",children:(0,r.jsx)("div",{className:"container flex flex-1 items-center justify-start py-3 sm:py-4",children:(0,r.jsx)(g(),{href:"/","aria-label":"Back to Home",className:"block w-28 transition-opacity duration-200 hover:opacity-70 sm:w-[8.125rem]",children:(0,r.jsx)(h,{})})})})};var G=n(7839),X=n(75),Y=n(4587),q=n.n(Y);function K({heading:e="",links:t=[],className:n="",isLight:i=!1,footerOptions:a}){let{override_pre_footer_cta:s=!1,pre_footer_cta:o={heading:"",links:[]}}=a||{},l=s?o.heading:e,c=s?o.links:t,u=c?.length>0&&c[0]?.link?.link?.url?.length>0;return l||u?(0,r.jsxs)("div",{className:"relative overflow-hidden py-20 sm:py-32 lg:py-44",children:[(0,r.jsx)("div",{className:`container relative z-[2] ${n}`,children:(0,r.jsxs)("div",{className:(0,y.A)("flex flex-col items-center gap-y-8 text-center",i?"text-grey-15":"text-white"),children:[l&&(0,r.jsx)("div",{className:"text-h1 w-full max-w-[31.25rem]",children:l}),u&&(0,r.jsx)("div",{className:"flex gap-x-2.5",children:c?.map(({link:e},t)=>(0,r.jsx)(X.v,{...e,className:e.className||""},`${e?.link?.title}-${t}`))})]})}),(0,r.jsxs)("div",{className:"absolute inset-0 h-full w-full",children:[i&&(0,r.jsx)(q(),{src:"/images/footer/CTALight.svg",alt:"Backgroun
1d",fill:!0,className:"h-full w-full !object-cover !object-center"}),!i&&(0,r.jsx)(q(),{src:"/images/footer/CTABackground.svg",alt:"Background",fill:!0,className:"h-full w-full !object-cover !object-center"})]})]}):null}var Z=n(8592);function Q({options:{footer:e},page:{page_options:t}}){let{pre_footer_cta:n,nav:i=[],ctas:a=[],newsletter_signup:s,legal:o={copyright_text:"",nav:[]}}=e,c=t?.footer||{},{exclude_footer_cta:u=!1}=c,{theme:d="black"}=t||{},{isLightMode:f}=(0,G.A)(),{isOperational:m,isLoading:v}=function(){let[e,t]=(0,l.useState)(!1),[n,i]=(0,l.useState)(!0),[r,a]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=async()=>{try{i(!0);let e=await fetch("https://6809448998428445.hostedstatus.com/1.0/status/6434360a66f3a4053a18ac1f");if(!e.ok)throw Error(`HTTP error! status: ${e.status}`);let n=await e.json();t(100===n.result.status_overall.status_code)}catch(e){a(e instanceof Error?e:Error("Unknown error occurred")),t(!1)}finally{i(!1)}};e();let n=setInterval(e,3e5);return()=>clearInterval(n)},[]),{isOperational:e,isLoading:n,error:r}}(),{isLight:b=!1,footerWrapperClasses:w="",footerClasses:x="",ctaClasses:_="",navGroupHeadingClasses:C="",navLinkClasses:k="",subFooterClasses:E="",systemStatusClasses:S="",copyrightClasses:M="",legalNavLinkClasses:A=""}=(()=>{let e=f||"white"===d;return{isLight:e,footerWrapperClasses:e?"bg-white":"bg-grey-16",footerClasses:e?"bg-white border-grey-2 text-grey-13":"border-grey-13 bg-grey-16/80 text-white",ctaClasses:e?"bg-grey-1 border-grey-2 text-grey-14":"border-white/20  bg-grey-15 text-grey-5",navGroupHeadingClasses:e?"text-grey-15":"text-white",navLinkClasses:e?"text-grey-8 hover:text-black":"text-grey-5 hover:text-white",subFooterClasses:e?"border-grey-2":"border-white/10",systemStatusClasses:e?"bg-grey-1 text-grey-15 hover:bg-grey-2":"bg-grey-14 text-white/70 hover:bg-grey-13",copyrightClasses:e?"text-grey-5":"text-white/30",legalNavLinkClasses:e?"text-grey-5 hover:text-black":"text-white/30 hover:text-white"}})(),P=(0,l.useRef)(null);return(0,r.jsxs)("div",{id:"site-footer",ref:P,className:(0,y.A)("relative overflow-hidden",w),children:[!u&&(0,r.jsx)(K,{...n,footerOptions:c,className:"relative z-10",isLight:b}),(0,r.jsxs)("footer",{className:(0,y.A)("footer-blur relative z-10 border-t py-16 transition-colors duration-300 sm:pb-24 sm:pt-24 xl:pt-40",x),children:[!u&&(0,r.jsxs)("div",{className:"absolute inset-0 hidden h-full w-full md:block",children:[b&&(0,r.jsx)(q(),{src:"/images/footer/patternLight.svg",alt:"Background",fill:!0,className:"h-full w-full !object-cover !object-center blur-[37px]"}),!b&&(0,r.jsx)(q(),{src:"/images/footer/patternDark.svg",alt:"Background",fill:!0,className:"h-full w-full !object-cover !object-center blur-[37px]"})]}),(0,r.jsxs)("div",{className:"container relative space-y-16 sm:space-y-20 lg:space-y-28",children:[(0,r.jsxs)("div",{className:"flex flex-col-reverse justify-between gap-16 lg:flex-row lg:gap-12",children:[(0,r.jsxs)("div",{className:"w-full shrink-0 sm:max-w-[18.375rem] lg:w-1/4",children:[(0,r.jsx)(Z.A,{layout:"resourcesFooter",newsletter_signup:s,isLight:b}),a?.length>0&&(0,r.jsx)("div",{className:"mt-8 space-y-3.5 sm:mt-12",children:a.map(({link:e,icon:t,name:n},i)=>(0,r.jsxs)(g(),{href:e?.url,target:e?.target,className:(0,y.A)("flex items-center gap-x-3 rounded-[0.3125rem] border p-2 shadow-[0px_0px_20px_0px_rgba(0,242,212,0.05)] backdrop-blur-[10px] transition-[box-shadow] duration-200 hover:shadow-[0px_0px_20px_0px_rgba(0,242,212,0.3)]",_),children:[t?.url&&(0,r.jsx)(p.A,{image:t,className:"w-[1.375rem] shrink-0"}),(0,r.jsxs)("div",{className:"text-13 flex items-center gap-x-2",children:[n&&(0,r.jsx)("span",{children:n}),e?.title&&(0,r.jsx)("span",{className:"text-grey-8",children:e?.title})]})]},`cta-${i}`))})]}),i?.length>0&&(0,r.jsx)("div",{className:"grid flex-1 grid-cols-2 gap-10 sm:auto-cols-fr sm:grid-flow-col sm:grid-cols-none lg:max-w-[46rem] xl:gap-x-14",children:i?.map(({heading:e="",items:t=[]})=>(0,r.jsxs)("div",{className:"space-y-4 sm:space-y-6",children:[e&&(0,r.jsx)("div",{className:(0,y.A)("text-14 !leading-none",C),children:e}),t?.length>0&&(0,r.jsx)("ul",{className:"space-y-1.5",children:t?.map(({link:e})=>(0,r.jsx)("li",{children:(0,r.jsx)(g(),{href:e?.url,target:e?.target,className:(0,y.A)("text-14 transition-colors duration-200",k),children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.title}}
1)})},e?.title))})]},e))})]}),(0,r.jsxs)("div",{className:"space-y-8 lg:space-y-10",children:[(0,r.jsx)(h,{className:"w-[7.625rem] transition-colors duration-200 max-sm:mx-auto"}),(0,r.jsxs)("div",{className:(0,y.A)("flex w-full flex-col justify-between gap-8 border-t pt-6 sm:flex-row sm:gap-12",E),children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:gap-7 lg:gap-10",children:[(0,r.jsxs)(g(),{href:"https://status.netboxlabs.com/",target:"_blank",className:(0,y.A)("flex items-center gap-x-2.5 rounded-[0.1875rem] py-2 pl-2.5 pr-3 transition-colors duration-200",S),children:[(0,r.jsx)("div",{className:(0,y.A)("aspect-[1/1] w-2.5 shrink-0 rounded-full border border-white/10",m?"bg-teal":"bg-red-500")}),(0,r.jsx)("div",{className:"text-13 transition-colors duration-200",children:v?"Checking system status...":m?"All systems normal":"System issues detected"})]}),(0,r.jsxs)("div",{className:(0,y.A)("text-12-footer transition-colors duration-200",M),children:["\xa9",new Date().getFullYear()," ",o?.copyright_text||"NetBox Labs"]})]}),o?.nav?.length>0&&(0,r.jsx)("ul",{className:"flex flex-col items-center gap-x-7 sm:flex-row lg:gap-x-10",children:o.nav.map(({link:e})=>(0,r.jsx)("li",{children:(0,r.jsx)(g(),{href:e?.url,className:(0,y.A)("text-12-footer transition-colors duration-200",A),children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e?.title}})})},e?.title))})]})]})]})]})]})}function J(){let e=(0,B.useRouter)();return(0,l.useEffect)(()=>{let t=()=>{let e=window?.location?.href;e&&localStorage.setItem("netboxlabs_referrer",e)},n=()=>{let{plan:t}=e.query;"string"==typeof t&&localStorage.setItem("netboxlabs_plan",t)};return e.isReady&&n(),e.events.on("routeChangeStart",t),e.events.on("routeChangeComplete",n),()=>{e.events.off("routeChangeStart",t),e.events.off("routeChangeComplete",n)}},[e]),null}let ee=null;function et(e){let t={"twitter.com":"twitter","x.com":"twitter","facebook.com":"facebook","linkedin.com":"linkedin","github.com":"github","youtube.com":"youtube","instagram.com":"instagram","discord.com":"discord","slack.com":"slack"};return t[e]||t[e.replace("www.","")]}function en(e){return e.includes("/blog")?"blog":e.includes("/events")?"events":e.includes("/webinars")?"webinars":e.includes("/ebooks")?"ebooks":e.includes("/pricing")?"pricing":e.includes("/about")?"about":e.includes("/careers")?"careers":e.includes("/community")?"community":e.includes("/integrations")?"integrations":e.includes("/partners")?"partners":"page"}let ei=function(){let e=(0,B.useRouter)();(0,l.useEffect)(()=>{let t=e=>{e.startsWith("/docs/")||e.includes("/docs/")||(((e,t)=>{if(ee===e)return;ee=e;let n={page_path:e,page_title:t||document.title,page_location:window.location.href};window.gtag?window.gtag("config","G-DPRZFFRD4C",n):window.dataLayer&&window.dataLayer.push({event:"page_view",...n})})(e),(0,o.oe)(e,document.title))};return e.isReady&&t(e.asPath),e.events.on("routeChangeComplete",t),()=>{e.events.off("routeChangeComplete",t)}},[e]);let t=(0,l.useRef)(new Set);return(0,l.useEffect)(()=>{let e=()=>{try{{let{pathname:e}=window.location;if(e.startsWith("/docs/")||e.includes("/docs/"))return}let e=window.pageYOffset||document.documentElement.scrollTop,n=document.documentElement.scrollHeight-window.innerHeight,i=Math.round(e/n*100);[25,50,75,90,100].forEach(e=>{i>=e&&!t.current.has(e)&&(t.current.add(e),(0,o.aD)(e))})}catch(e){}};try{return window.addEventListener("scroll",e,{passive:!0}),()=>{try{window.removeEventListener("scroll",e)}catch(e){}}}catch(e){return()=>{}}},[]),(0,l.useEffect)(()=>()=>{t.current.clear()},[]),!function(){let e=(0,l.useRef)({}),t=(0,l.useCallback)(()=>{let{pathname:e}=window.location;return e.startsWith("/docs/")||e.includes("/docs/")},[]),n=((0,l.useCallback)((e,n)=>{try{if(t())return;(0,o.r2)("click",{image_src:e.src,image_alt:e.alt,image_type:e.src.split(".").pop()?.toLowerCase(),image_location:n,interaction_type:"click",image_size:`${e.naturalWidth}x${e.naturalHeight}`})}catch(e){}},[t]),(0,l.useCallback)((e,n)=>{try{if(t())return;(0,o.r2)("error",{image_src:e.src,image_alt:e.alt,image_location:n,interaction_type:"error"})}catch(e){}},[t]),(0,l.useCallback)((e,n)=>{try{if(t())return;let i=new URL(e.href);i.hostname!==window.location.hostname&&(0,o.$K)(e.href,{link_text:e.textContent,link_type:et(i.hostname)?"social":"external",link_location:n,destination_domain:i.hostname,social_platform:et(i.hostname)})}catch(e){}},[t]),(0,l.useCallback)((e,n,i,r)=>{try{if(t())return;(0,o.Nf)(n,{content_preview:e.substring(0,100),content_length:e.length,clipboard_location:r,copy_method:i,success:!0})}catch(e){}},[t]),(0,l.useCallback)(()=>{try{if(t())return;(0,o.aG)({content_type:en(window.location.pathname),content_title:document.title,print_settings:"browser_default"})}catch(e){}},[t])),i=((0,l.useCallback)((e,n)=>{try{if(t())return;(0,o.Ut)(e,{share_method:"native_share",content_type:en(window.location.pathname),content_title:document.title,share_url:n||window.location.href})}catch(e){}},[t]),(0,l.useCallback)((e,n,i)=>{try{if(t())return;["Tab","Enter","Space","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Escape"].includes(e.ke
1y)&&(0,o.lR)(e.key,{navigation_type:{Tab:"tab_navigation",Enter:"activation",Space:"activation",ArrowUp:"vertical_navigation",ArrowDown:"vertical_navigation",ArrowLeft:"horizontal_navigation",ArrowRight:"horizontal_navigation",Escape:"dismissal"}[e.key]||"keyboard_navigation",element_type:n,element_label:i,accessibility_feature:"Tab"===e.key?"tab_navigation":"keyboard_navigation"})}catch(e){}},[t])),r=(0,l.useCallback)((e,n)=>{try{if(t())return;(0,o.Oz)("javascript_error",{error_message:e.message,error_code:500,broken_url:window.location.href,referrer_page:document.referrer,user_agent:navigator.userAgent})}catch(e){}},[t]),a=(0,l.useCallback)((n,i,r="ms")=>{try{if(t())return;(0,o.Sf)(n,i,{metric_unit:r,page_load_time:e.current.pageLoadTime,network_type:function(){try{let e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e?.effectiveType||"unknown"}catch{return"unknown"}}(),device_memory:function(){try{return navigator.deviceMemory||0}catch{return 0}}()})}catch(e){}},[t]);(0,l.useEffect)(()=>{try{if(t())return()=>{};let s=()=>n();window.addEventListener("beforeprint",s);let o=e=>{let t=e.target;i(e,t.tagName.toLowerCase(),t.textContent?.substring(0,50))};document.addEventListener("keydown",o);let l=e=>{r(Error(e.message),{filename:e.filename,lineno:e.lineno,colno:e.colno})};if(window.addEventListener("error",l),window.performance&&window.performance.timing){let{timing:t}=window.performance,n=t.loadEventEnd-t.navigationStart;e.current.pageLoadTime=n,setTimeout(()=>{a("page_load_time",n)},1e3)}return()=>{try{window.removeEventListener("beforeprint",s),document.removeEventListener("keydown",o),window.removeEventListener("error",l)}catch(e){}}}catch(e){return()=>{}}},[n,i,r,a,t])}(),null};var er=n(5105);function ea(){return null}var es=n(6988);!function(e){e.ENGLISH="en",e.DANISH="da",e.GERMAN="de",e.SPANISH="es",e.SPANISH_MEXICO="es-mx",e.FINNISH="fi",e.FRENCH="fr",e.ITALIAN="it",e.JAPANESE="ja",e.DUTCH="nl",e.POLISH="pl",e.PORTUGUESE="pt-br",e.SWEDISH="sv",e.CHINESE="zh-cn",e.CHINESE_HONG_KONG="zh-hk"}(i||(i={}));let eo=(0,l.createContext)({isScriptLoaded:!1,isScriptError:!1,scriptError:null}),el=({children:e,strategy:t="afterInteractive",src:n,onReady:i,onError:r,...a})=>{let[s,o]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),d=!!c,h=(0,l.useCallback)(()=>{u(null),o(!0),window.dispatchEvent(new Event("hubspot_loaded")),i?.()},[i]),f=(0,l.useCallback)(e=>{console.error("HubSpot script failed to load:",e),u(e),r?.(e)},[r]),p=(0,l.useMemo)(()=>({isScriptLoaded:s,isScriptError:d,scriptError:c}),[s,d,c]);return l.createElement(eo.Provider,{value:p},e,l.createElement(er,{src:n||"https://js.hsforms.net/forms/v2.js",strategy:t,onReady:h,onError:f,...a}))};var ec=n(7328),eu=n.n(ec);function ed({Component:e,pageProps:t}){let[n,i]=(0,l.useState)(t);if(!t?.options)return null;let s=t.page?.page_options?.header?.logo_only_header,o=t.page?.page_options?.footer?.exclude_footer;return(0,r.jsx)(el,{children:(0,r.jsxs)(a.F.Provider,{value:[n,i],children:[(0,r.jsxs)(eu(),{children:[(0,r.jsx)("link",{rel:"preload",href:"/fonts/OpenSauceTwo-Regular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preload",href:"/fonts/OpenSauceTwo-Medium.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(J,{}),(0,r.jsx)(ei,{}),s?(0,r.jsx)($,{}):(0,r.jsx)(U,{options:t.options,theme:t.page?.page_options?.theme}),(0,r.jsx)(e,{...t}),!o&&(0,r.jsx)(Q,{options:t.options,page:t.page}),(0,r.jsx)(es.GoogleTagManager,{gtmId:"GTM-K44LXH42"}),(0,r.jsx)(ea,{})]})]})})}},2679:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});let i=(e,t,n)=>n>t?t:n<e?e:n},2717:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,e:()=>s});var i=n(9622),r=n(6793),a=n(8372);function s(e){return(0,i.N)(e.animate)||a._.some(t=>(0,r.w)(e[t]))}function o(e){return!!(s(e)||e.variants)}},2818:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:i="dataLayer",auth:l,preview:c,dataLayer:u,nonce:d}=e;o=i;let h="dataLayer"!==i?`&l=${i}`:"",f=l?`&gtm_auth=${l}`:"",p=c?`&gtm_preview=${c}&gtm_cookies_win=x`:"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${u?`w[l].push(${JSON.stringify(u)})`:""}
6      })(window,'${i}');`},nonce:d}),(0,r.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:`${n}?id=${t}${h}${f}${p}`,nonce:d})]})};let r=n(7876),a=n(4232),s=i(n(5105)),o="dataLayer";t.sendGTMEvent=(e,t)=>
6{let n=t||o;window[n]=window[n]||[],window[n].push(e)}},2822:(e,t,n)=>{"use strict";function i(e){return void 0===e||1===e}function r({scale:e,scaleX:t,scaleY:n}){return!i(e)||!i(t)||!i(n)}function a(e){return r(e)||s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}n.d(t,{HD:()=>a,vF:()=>s,vk:()=>r})},2871:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,f:()=>r});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set([...i,"pathRotation"])},2891:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var i=n(5907);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"},s=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function o(e,{attrX:t,attrY:n,attrScale:o,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},h,f,p){if((0,i.O)(e,d,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:v}=e;for(let e of(m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),s))void 0!==m[e]&&(v[e]=m[e],delete m[e]);void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==o&&(m.scale=o),void 0!==l&&function(e,t,n=1,i=0,s=!0){e.pathLength=1;let o=s?r:a;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(m,l,c,u,!1)}},2924:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let i=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function r(e){if("string"!=typeof e||e.includes("-"));else if(i.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},3408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(6201);let i=n(8637),r=n(9161),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var n,l;let c,u,d,{src:h,sizes:f,unoptimized:p=!1,priority:m=!1,loading:v,className:g,quality:y,width:b,height:w,fill:x=!1,style:_,overrideSrc:C,onLoad:k,onLoadingComplete:E,placeholder:S="empty",blurDataURL:M,fetchPriority:A,decoding:P="async",layout:j,objectFit:T,objectPosition:I,lazyBoundary:L,lazyRoot:R,...O}=e,{imgConf:F,showAltText:V,blurComplete:D,defaultLoader:N}=t,B=F||r.imageConfigDefault;if("allSizes"in B)c=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),i=null==(n=B.qualities)?void 0:n.sort((e,t)=>e-t);c={...B,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=O.loader||N;delete O.loader,delete O.srcSet;let W="__next_img_default"in H;if(W){if("custom"===c.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:n,...i}=t;return e(i)}}if(j){"fill"===j&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!f&&(f=t)}let U="",z=o(b),$=o(w);if((l=h)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,
6configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=e.blurWidth,d=e.blurHeight,M=M||e.blurDataURL,U=e.src,!x)if(z||$){if(z&&!$){let t=z/e.width;$=Math.round(e.height*t)}else if(!z&&$){let t=$/e.height;z=Math.round(e.width*t)}}else z=e.width,$=e.height}let G=!m&&("lazy"===v||void 0===v);(!(h="string"==typeof h?h:U)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,G=!1),c.unoptimized&&(p=!0),W&&!c.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let X=o(y),Y=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:I}:{},V?{}:{color:"transparent"},_),q=D||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:z,heightInt:$,blurWidth:u,blurHeight:d,blurDataURL:M||"",objectFit:Y.objectFit})+'")':'url("'+S+'")',K=a.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,Z=q?{backgroundSize:K,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function(e){let{config:t,src:n,unoptimized:i,width:r,quality:a,sizes:s,loader:o}=e;if(i)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n){let{deviceSizes:i,allSizes:r}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(n);)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:r.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof t?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>r.find(t=>t>=e)||r[r.length-1]))],kind:"x"}}(t,r,s),u=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((e,i)=>o({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:i+1)+c).join(", "),src:o({config:t,src:n,quality:a,width:l[u]})}}({config:c,src:h,unoptimized:p,width:z,quality:X,sizes:f,loader:H});return{props:{...O,loading:G?"lazy":v,fetchPriority:A,width:z,height:$,decoding:P,className:g,style:{...Y,...Z},sizes:Q.sizes,srcSet:Q.srcSet,src:C||Q.src},meta:{unoptimized:p,priority:m,placeholder:S,fill:x}}}},3413:(e,t,n)=>{"use strict";n.d(t,{E4:()=>o,Hr:()=>d,W9:()=>u});var i=n(5523),r=n(2871),a=n(6882),s=n(6227);let o=e=>e===a.ai||e===s.px,l=new Set(["x","y","z"]),c=r.U.filter(e=>!l.has(e));function u(e){let t=[];return c.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t}let d={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>(0,i.ry)(t,"x"),y:(e,{transform:t})=>(0,i.ry)(t,"y")};d.translateX=d.x,d.translateY=d.y},3421:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{apiKey:t,...n}=e,i={...n,key:t},{html:o}=(0,a.GoogleMapsEmbed)(i);return(0,r.jsx)(s.default,{height:i.height||null,width:i.width||null,html:o,dataNtpc:"GoogleMapsEmbed"})};let r=n(7876),a=n(6087),s=i(n(2506))},3513:e=>{"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},3597:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});let i=new Set(["opacity","clipPath","filter","transform","backgroundColor"])},3786:(e,t,n)=>{"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let i=n(4232),r=n(3273),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,c=l||!a,[u,d]=(0,i.useState)(!1),h=(0,i.useRef)(null),f=(0,i.useCallback)(e=>{h.current=e},[]);return(0,i.useEffect)(()=>{if(a){if(c||u)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:i,observer:r,elements:a}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},i=o.find(e=>e.root===n.root&&e.margin===n.margin);if(i&&(t=s.get(i)))return t;let r=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:r},o.push(n),s.set(n,t),t}(n);return a.set(e,t),r.observe(e),function(){if(a.delete(e),r.unobserve(e),0===a.size){r.disconnect(),s.delete(i);let e=o.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,r.requestIdleCallback)(()=>d(!0));return()=>(0,r.cancelIdleCallback)(e)}},[c,n,t,u,h.current]),[f,u,(0,i.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3866:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});let i=(0,n(4232).createContext)(null)},3885:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>a});var i=n(4232),r=n(3866);function a(e=!0){let t=(0,i.useContext)(r.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:o}=t,l=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return o(l)},[e]);let c=(0,i.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,c]:[!0]}},3903:(e,t,n)=>{"use strict";n.d(t,{OQ:()=>c,bt:()=>o});var i=n(2433),r=n(630),a=n(4704),s=n(50);let o={current:void 0};class l{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=a.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=a.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new i.v);let n=this.events[e].add(t);return"change"===e?()=>{n(),s.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=a.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new l(e,t)}},3949:(e,t)=>
6{"use strict";function n(e,t,i=!1){return t?Object.keys(e).filter(e=>i?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function i(e,t,n,i){let r=i&&Object.keys(i).length>0?new URL(Object.values(i)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&r.searchParams.set(e,n[e])}),r.toString()}function r(e,t,n,r,a){var s;if(!t)return`<${e}></${e}>`;let o=(null==(s=t.src)?void 0:s.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,r,a)}):t,l=Object.keys(Object.assign(Object.assign({},o),n)).reduce((e,t)=>{let i=null==n?void 0:n[t],r=o[t],a=null!=i?i:r,s=!0===a?t:`${t}="${a}"`;return a?e+` ${s}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=i,t.createHtml=r,t.formatData=function(e,t){var a,s,o,l,c;let u=n(t,null==(a=e.scripts)?void 0:a.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null==(o=null==(s=e.html)?void 0:s.attributes.src)?void 0:o.params),h=n(t,[null==(c=null==(l=e.html)?void 0:l.attributes.src)?void 0:c.slugParam]),f=n(t,[...Object.keys(u),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?r(e.html.element,e.html.attributes,f,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,u)})):null})}},3983:(e,t,n)=>{"use strict";n.d(t,{T:()=>s,n:()=>o});var i=n(6882),r=n(6227),a=n(105);let s=[i.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:e=>"auto"===e,parse:e=>e}],o=e=>s.find((0,a.w)(e))},4009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return _},useLinkStatus:function(){return x}});let i=n(8365),r=n(7876),a=i._(n(4232)),s=n(4727),o=n(1623),l=n(170),c=n(464),u=n(125),d=n(242),h=n(3786),f=n(4327),p=n(9094),m=n(9203);n(5785);let v=new Set;function g(e,t,n,i){if((0,o.isLocalURL)(t)){if(!i.bypassPrefetchedCheck){let r=t+"%"+n+"%"+(void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0);if(v.has(r))return;v.add(r)}e.prefetch(t,n,i).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=a.default.forwardRef(function(e,t){let n,i,{href:l,as:v,children:b,prefetch:w=null,passHref:x,replace:_,shallow:C,scroll:k,locale:E,onClick:S,onNavigate:M,onMouseEnter:A,onTouchStart:P,legacyBehavior:j=!1,...T}=e;n=b,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,r.jsx)("a",{children:n}));let I=a.default.useContext(d.RouterContext),L=!1!==w,{href:R,as:O}=a.default.useMemo(()=>{if(!I){let e=y(l);return{href:e,as:v?y(v):e}}let[e,t]=(0,s.resolveHref)(I,l,!0);return{href:e,as:v?(0,s.resolveHref)(I,v):t||e}},[I,l,v]),F=a.default.useRef(R),V=a.default.useRef(O);j&&(i=a.default.Children.only(n));let D=j?i&&"object"==typeof i&&i.ref:t,[N,B,H]=(0,h.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(V.current!==O||F.current!==R)&&(H(),V.current=O,F.current=R),N(e)},[O,R,H,N]),U=(0,m.useMergedRef)(W,D);a.default.useEffect(()=>{I&&B&&L&&g(I,R,O,{locale:E})},[O,R,B,E,L,null==I?void 0:I.locale,I]);let z={ref:U,onClick(e){j||"function"!=typeof S||S(e),j&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),I&&(e.defaultPrevented||function(e,t,n,i,r,a,s,l,c){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(n)){r&&(e.preventDefault(),location.replace(n));return}e.preventDefault(),(()=>{if(c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[r?"replace":"push"](n,i,{shallow:a,locale:l,scroll:e}):t[r?"replace":"push"](i||n,{scroll:e})})()}}(e,I,R,O,_,C,k,E,M))},onMouseEnter(e){j||"function"!=typeof A||A(e),j&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),I&&g(I,R,O,{locale:E,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){j||"function"!=typeof P||P(e),j&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),I&&g(I,R,O,{locale:E,priority:!0,bypassPrefetchedCheck:!0})}};if((0,c.isAbsoluteUrl)(O))z.href=O;
6else if(!j||x||"a"===i.type&&!("href"in i.props)){let e=void 0!==E?E:null==I?void 0:I.locale;z.href=(null==I?void 0:I.isLocaleDomain)&&(0,f.getDomainLocale)(O,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales)||(0,p.addBasePath)((0,u.addLocale)(O,e,null==I?void 0:I.defaultLocale))}return j?a.default.cloneElement(i,z):(0,r.jsx)("a",{...T,...z,children:n})}),w=(0,a.createContext)({pending:!1}),x=()=>(0,a.useContext)(w),_=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4269:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});let i=(0,n(4232).createContext)([])},4327:(e,t,n)=>{"use strict";function i(e,t,n,i){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}}),n(9783),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(2589),r=n(1853);function a(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let a=1;a<=t;a++){let s=(0,i.q)(0,t,a);e.push((0,r.k)(n,1,s))}}(t,e.length-1),t}},4419:(e,t,n)=>{"use strict";n.d(t,{W:()=>j});var i=n(2022),r=n(6627);function a(e,t,n){let i=e.getProps();return(0,r.a)(i,t,void 0!==n?n:i.custom,e)}var s=n(7774),o=n(9570),l=n(8254),c=n(3903);let u=e=>Array.isArray(e);var d=n(9954),h=n(462),f=n(4650),p=n(50);function m(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:v,transitionEnd:g,...y}=t,b=e.getDefaultTransition();v=v?(0,o.K)(v,b):b;let w=v?.reduceMotion,x=v?.skipAnimations;i&&(v=i);let _=[],C=r&&e.animationState&&e.animationState.getState()[r],k=v?.path;for(let t in k&&k.animateVisualElement(e,y,v,n,_),y){let i=e.getValue(t,e.latestValues[t]??null),r=y[t];if(void 0===r||C&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(C,t))continue;let a={delay:n,...(0,s.r)(v||{},t)};x&&(a.skipAnimations=!0);let o=i.get();if(void 0!==o&&!i.isAnimating()&&!Array.isArray(r)&&r===o&&!a.velocity){p.Gt.update(()=>i.set(r));continue}let c=!1;if(window.MotionHandoffAnimation){let n=(0,h.P)(e);if(n){let e=window.MotionHandoffAnimation(n,t,p.Gt);null!==e&&(a.startTime=e,c=!0)}}(0,d.g)(e,t);let u=w??e.shouldReduceMotion;i.start((0,f.f)(t,i,r,u&&l.$.has(t)?{type:!1}:a,e,c));let m=i.animation;m&&_.push(m)}if(g){let t=()=>p.Gt.update(()=>{g&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=a(e,t)||{};for(let t in r={...r,...n}){var s;let n=u(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,c.OQ)(n))}}(e,g)});_.length?Promise.all(_).then(t):t()}return _}function v(e,t,n,i=0,r=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,o=(s-1)*i;return"function"==typeof n?n(a,s):1===r?a*i:o-a*i}function g(e,t,n={}){let i=a(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let s=i?()=>Promise.all(m(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=r;return function(e,t,n=0,i=0,r=0,a=1,s){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(g(l,t,{...s,delay:n+("function"==typeof i?0:i)+v(e.variantChildren,l,i,r,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,i,a,s,o,n)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),o(n.delay)]);{let[e,t]="beforeChildren"===l?[s,o]:[o,s];return e().then(()=>t())}}var y=n(6793),b=n(8372);let w=b._.length;var x=n(9622);function _(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let C=[...b.U].reverse(),k=b.U.length;function E(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function S(){return{animate:E(!0),whileInView:E(),whileHover:E(),whileTap:E(),whileDrag:E(),whileFocus:E(),exit:E()}}class M extends i.X{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>g(e,t,n)));else if("string"==typeof t)i=g(e,t,n);else{let r="function"==typeof t?a(e,t,n.custom):t;i=Promise.all(m(e,r,n))}return i.then(()=>
6{e.notify("AnimationComplete",t)})})(e,t,n))),n=S(),i=!0,r=!1,s=t=>(n,i)=>{let r=a(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function o(o){let{props:l}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<w;e++){let i=b._[e],r=t.props[i];((0,y.w)(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},d=[],h=new Set,f={},p=1/0;for(let t=0;t<k;t++){var m,g;let b=C[t],w=n[b],k=void 0!==l[b]?l[b]:c[b],E=(0,y.w)(k),S=b===o?w.isActive:null;!1===S&&(p=t);let M=k===c[b]&&k!==l[b]&&E;if(M&&(i||r)&&e.manuallyAnimateOnMount&&(M=!1),w.protectedKeys={...f},!w.isActive&&null===S||!k&&!w.prevProp||(0,x.N)(k)||"boolean"==typeof k)continue;if("exit"===b&&w.isActive&&!0!==S){w.prevResolvedValues&&(f={...f,...w.prevResolvedValues});continue}let A=(m=w.prevProp,"string"==typeof(g=k)?g!==m:!!Array.isArray(g)&&!_(g,m)),P=A||b===o&&w.isActive&&!M&&E||t>p&&E,j=!1,T=Array.isArray(k)?k:[k],I=T.reduce(s(b),{});!1===S&&(I={});let{prevResolvedValues:L={}}=w,R={...L,...I},O=t=>{P=!0,h.has(t)&&(j=!0,h.delete(t)),w.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in R){let t=I[e],n=L[e];if(!f.hasOwnProperty(e))(u(t)&&u(n)?!_(t,n)||A:t!==n)?null!=t?O(e):h.add(e):void 0!==t&&h.has(e)?O(e):w.protectedKeys[e]=!0}w.prevProp=k,w.prevResolvedValues=I,w.isActive&&(f={...f,...I}),(i||r)&&e.blockInitialAnimation&&(P=!1);let F=M&&A,V=!F||j;P&&V&&d.push(...T.map(t=>{let n={type:b};if("string"==typeof t&&(i||r)&&!F&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,r=a(i,t);if(i.enteringChildren&&r){let{delayChildren:t}=r.transition||{};n.delay=v(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(h.size){let t={};if("boolean"!=typeof l.initial){let n=a(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}h.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),d.push({animation:t})}let E=!!d.length;return i&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,r=!1,E?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=o(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=S(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,x.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let A=0;class P extends i.X{constructor(){super(...arguments),this.id=A++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=a(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let j={animation:{Feature:M},exit:{Feature:P}}},4429:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});let i=(0,n(4232).createContext)({strict:!1})},4464:function(e,t,n){"use strict";let i;var r=this&&this.__importDefault||function(e){return e&&e.__esMo
6dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:r="dataLayer",nonce:l}=e;return void 0===i&&(i=r),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${r}'] = window['${r}'] || [];
8          function gtag(){window['${r}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${n?",{ 'debug_mode': true }":""});`},nonce:l}),(0,a.jsx)(o.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},t.sendGAEvent=function(){if(void 0===i)return void console.warn("@next/third-parties: GA has not been initialized");window[i]?window[i].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${i} does not exist`)};let a=n(7876),s=n(4232),o=r(n(5105))},4468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return o}});let i=n(4252),r=n(3408),a=n(9420),s=i._(n(5540));function o(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},4587:(e,t,n)=>{e.exports=n(4468)},4609:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(7876),r=n(508),a=n(9602),s=n(4232);function o({rive_file:e,aspect_ratio:t="1/1",isFill:n=!1,className:a=""}){let o=(0,s.useRef)(null),c=(0,r.W)(o,{once:!0});return e?(0,i.jsx)("div",{ref:o,className:`h-full w-full max-sm:pointer-events-none ${n?"absolute inset-0":"relative"} ${a}`,style:{aspectRatio:t},children:c&&(0,i.jsx)(l,{riveFile:e,isInView:c,className:"canvas h-full w-full"})}):null}function l({riveFile:e,isInView:t,className:n=""}){let r={src:e?.url,autoplay:!0,artBoard:"New Artboard",stateMachines:"State Machine 1",layout:new a.Layout({fit:a.Fit.Cover})},{rive:o,RiveComponent:l}=(0,a.useRive)(r);return(0,s.useEffect)(()=>{o&&(t?o.play():o.pause())},[o,t]),(0,i.jsx)(l,{className:n})}},4650:(e,t,n)=>{"use strict";n.d(t,{f:()=>em});var i=n(1750),r=n(7454),a=n(620),s=n(4704),o=n(1784),l=n(2679),c=n(6751),u=n(50);let d=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u.Gt.update(t,e),stop:()=>(0,u.WG)(t),now:()=>u.uv.isProcessing?u.uv.timestamp:s.k.now()}};var h=n(7605),f=n(8038);function p(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let m={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function v(e,t){return e*Math.sqrt(1-t*t)}let g=["duration","bounce"],y=["stiffness","damping","mass"];function b(e,t){return t.some(t=>void 0!==e[t])}function w(e=m.visualDuration,t=m.bounce){let n,r,a,s,o,c,u="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:d,restDelta:x}=u,_=u.keyframes[0],C=u.keyframes[u.keyframes.length-1],k={done:!1,value:_},{stiffness:E,damping:S,mass:M,duration:A,velocity:P,isResolvedFromDuration:j}=function(e){let t={velocity:m.velocity,stiffness:m.stiffness,damping:m.damping,mass:m.mass,isResolvedFromDuration:!1,...e};if(!b(e,y)&&b(e,g))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*(0,l.q)(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:m.mass,stiffness:i,damping:r}}else{let n=function({duration:e=m.duration,bounce:t=m.bounce,velocity:n=m.velocity,mass:r=m.mass}){let a,s;(0,h.$)(e<=(0,i.f)(m.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,l.q)(m.minDamping,m.maxDamping,o),e=(0,l.q)(m.minDuration,m.maxDuration,(0,i.X)(e)),o<1?(a=t=>{let i=t*o,r=i*e;return .001-(i-n)/v(t,o)*Math.exp(-r)},s=t=>{let i=t*o*e,r=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-i),l=v(Math.pow(t,2),o);return(i*n+n-r)*s*(-a(t)+.001>0?-1:1)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let c=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(a,s,5/e);if(e=(0,i.f)(e),isNaN(c))return{stiffness:m.stiffness,damping:m.damping,duration:e};{let t=Math.pow(c,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:m.mass}).isResolvedFromDuration=!0}return t}({...u,velocity:-(0,i.X)(u.velocity||0)}),T=P||0,I=S/(2*Math.sqrt(E*M)),L=C-_,R=(0,i.X)(Math.sqrt(E/M)),O=5>Math.abs(L);if(d||(d=O?m.restSpeed.granular:m.restSpeed.default),x||(x=O?m.restDelta.granular:m.restDelta.default),I<1)a=v(R,I),s=(T+I*R*L)/a,n=e=>C-Math.exp(-I*R*e)*(s*Math.sin(a*e)+L*Math.cos(a*e)),o=I*R*s+L*a,c=I*R*L-s*a,r
11=e=>Math.exp(-I*R*e)*(o*Math.sin(a*e)+c*Math.cos(a*e));else if(1===I){n=e=>C-Math.exp(-R*e)*(L+(T+R*L)*e);let e=T+R*L;r=t=>Math.exp(-R*t)*(R*e*t-T)}else{let e=R*Math.sqrt(I*I-1);n=t=>{let n=Math.exp(-I*R*t),i=Math.min(e*t,300);return C-n*((T+I*R*L)*Math.sinh(i)+e*L*Math.cosh(i))/e};let t=(T+I*R*L)/e,i=I*R*t-L*e,a=I*R*L-t*e;r=t=>{let n=Math.exp(-I*R*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let F={calculatedDuration:j&&A||null,velocity:e=>(0,i.f)(r(e)),next:e=>{if(!j&&I<1){let t=Math.exp(-I*R*e),n=Math.sin(a*e),r=Math.cos(a*e),l=C-t*(s*n+L*r);return k.done=Math.abs((0,i.f)(t*(o*n+c*r)))<=d&&Math.abs(C-l)<=x,k.value=k.done?C:l,k}let t=n(e);return j?k.done=e>=A:k.done=Math.abs((0,i.f)(r(e)))<=d&&Math.abs(C-t)<=x,k.value=k.done?C:t,k},toString:()=>{let e=Math.min(p(F),2e4),t=(0,f.K)(t=>F.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return F}w.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),a=Math.min(p(r),2e4);return{type:"keyframes",ease:e=>r.next(a*e).value/t,duration:(0,i.X)(a)}}(e,100,w);return e.ease=t.ease,e.duration=(0,i.f)(t.duration),e.type="keyframes",e};var x=n(630);function _(e,t,n){let i=Math.max(t-5,0);return(0,x.f)(n-e(i),t-i)}function C({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:u}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,v=f+m,g=void 0===s?v:s(v);g!==v&&(m=g-f);let y=e=>-m*Math.exp(-e/i),b=e=>g+y(e),x=e=>{let t=y(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n},C=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;d=e,h=w({keyframes:[p.value,(n=p.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:_(b,e,p.value),damping:r,stiffness:a,restDelta:c,restSpeed:u})}};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),C(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}let k=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function E(e,t,n,i){return e===t&&n===i?a.l:r=>0===r||1===r?r:k(function(e,t,n,i,r){let a,s,o=0;do(a=k(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s}(r,0,1,e,n),t,i)}let S=E(.42,0,1,1),M=E(0,0,.58,1),A=E(.42,0,.58,1);var P=n(5108),j=n(943);let T=E(.33,1.53,.69,.99),I=(0,j.G)(T),L=(0,P.V)(I),R=e=>e>=1?1:(e*=2)<1?.5*I(e):.5*(2-Math.pow(2,-10*(e-1)));var O=n(6453),F=n(1252);let V={linear:a.l,easeIn:S,easeInOut:A,easeOut:M,circIn:O.po,circInOut:O.tn,circOut:O.yT,backIn:I,backInOut:L,backOut:T,anticipate:R},D=e=>{if((0,F.D)(e)){(0,h.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,r]=e;return E(t,n,i,r)}return"string"==typeof e?((0,h.V)(void 0!==V[e],`Invalid easing type '${e}'`,"invalid-easing-type"),V[e]):e};var N=n(1574),B=n(4384);function H({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let a=Array.isArray(i)&&"number"!=typeof i[0]?i.map(D):D(i),s={done:!1,value:t[0]},o=(r=n&&n.length===t.length?n:(0,B.Z)(t),r.map(t=>t*e)),l=(0,N.G)(o,t,{ease:Array.isArray(a)?a:t.map(()=>a||A).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var W=n(6711);let U={decay:C,inertia:C,tween:H,keyframes:H,spring:w};function z(e){"string"==typeof e.type&&(e.type=U[e.type])}var $=n(5063);let G=e=>e/100;class X extends $.q{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==s.k.now()&&this.tick(s.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;z(e);let{type:t=H,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=e,{keyframes:s}=e,l=t||H;l!==H&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,o.F)(G,(0,c.j)(s[0],s[1])),s=[0,100]);let u=l({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=p(u));let{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:i,totalDuration:r,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:c}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,x=i;if(h){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/o)):"mirror"===f&&(x=s)),w=(0,l.q)(0,1,n)*o}b?(this.delayState.value=d[0],n=this.delayState):n=x.next(w),a&&!b&&(n.value=a(n.value));let{done:_}=n;b||null===c||(_=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return k&&m!==C&&(n.value=(0,W.X)(d,this.options,g,this.speed)),v&&v(n.value),k&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,i.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,i.X)(e)}get time(){return(0,i.X)(this.currentTime)}set time(e){e=(0,i.f)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return _(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(s.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=d,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(s.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var Y=n(8331),q=n(5965),K=n(810);let Z={anticipate:R,backInOut:L,circInOut:O.tn};class Q extends K.m{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in Z&&(e.ease=Z[e.ease])}(e),z(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new X({...a,autoplay:!1}),c=Math.max(10,s.k.now()-this.startTime),u=(0,l.q)(0,10,c-10),d=o.sample(c).value,{name:h}=this.options;r&&h&&(0,q.e)(r,h,d),t.setWithVelocity(o.sample(Math.max(0,c-u)).value,d,u),o.stop()}}var J=n(5609),ee=n(1783);let et=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ee.f.test(e)||"0"===e)&&!e.startsWith("url("));function en(e){e.duration=0,e.type="keyframes"}var ei=n(7862),er=n(3597);let ea=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,es=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),eo=(0,ei.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class el extends $.q{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a="loop",keyframes:o,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=s.k.now();let h={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:a,name:l,motionValue:c,element:u,...d},f=u?.KeyframeResolver||Y.h;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){let o;this.keyframeResolver=void 0;let{name:l,type:c,velocity:u,delay:d,isHandoff:f,onUpdate:p}=n;this.resolvedAt=s.k.now();let m=!0;!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=et(r,t),o=et(a,t);return(0,h.$)(s===o,`You are trying to animate ${t} from "${r}" to "${a}". "${s?a:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||(0,J.W)(n))&&i)}(e,l,c,u)&&(m=!1,(r.W.instantAnimations||!d)&&p?.((0,W.X)(e,n,t)),e[0]=e[e.length-1],en(n),n.repeat=0);let v={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},g=m&&!f&&function(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:a,type:s,keyframes:o}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
11let{onUpdate:c,transformTemplate:u}=t.owner.getProps();return eo()&&n&&(er.M.has(n)||es.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ea.test(e[t]))return!0;return!1}(o))&&("transform"!==n||!u)&&!c&&!i&&"mirror"!==r&&0!==a&&"inertia"!==s}(v),y=v.motionValue?.owner?.current;if(g)try{o=new Q({...v,element:y})}catch{o=new X(v)}else o=new X(v);o.finished.then(()=>{this.notifyFinished()}).catch(a.l),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,Y.q)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var ec=n(7774),eu=n(2871);let ed={type:"spring",stiffness:500,damping:25,restSpeed:10},eh={type:"keyframes",duration:.8},ef={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ep=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),em=(e,t,n,a={},s,o)=>l=>{let c=(0,ec.r)(a,e)||{},d=c.delay||a.delay||0,{elapsed:h=0}=a;h-=(0,i.f)(d);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};!function(e){for(let t in e)if(!ep.has(t))return!0;return!1}(c)&&Object.assign(f,((e,{keyframes:t})=>t.length>2?eh:eu.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ed:ef)(e,f)),f.duration&&(f.duration=(0,i.f)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,i.f)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(en(f),0===f.delay&&(p=!0)),(r.W.instantAnimations||r.W.skipAnimations||s?.shouldSkipAnimations||c.skipAnimations)&&(p=!0,en(f),f.delay=0),f.allowFlatten=!c.type&&!c.ease,p&&!o&&void 0!==t.get()){let e=(0,W.X)(f.keyframes,c);if(void 0!==e)return void u.Gt.update(()=>{f.onUpdate(e),f.onComplete()})}return c.isSync?new X(f):new el(f)}}
11,4704:(e,t,n)=>{"use strict";let i;n.d(t,{k:()=>o});var r=n(7454),a=n(50);function s(){i=void 0}let o={now:()=>(void 0===i&&o.set(a.uv.isProcessing||r.W.useManualTiming?a.uv.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(s)}}},4794:(e,t,n)=>{"use strict";function i(e){return e?.length>0?e[0]:null}n.d(t,{A:()=>i})},4896:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var i=n(4232);let r="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},4933:(e,t,n)=>{"use strict";n.d(t,{W3:()=>r,W_:()=>s,_p:()=>a,lW:()=>o});var i=n(4232);function r(e){let t=i.useRef(null),n=i.useRef(e);return i.useLayoutEffect(()=>{n.current=e}),i.useEffect(()=>{let e=e=>{let i=t.current;i&&!i.contains(e.target)&&n.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),t}function a(){i.useLayoutEffect(()=>{let e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[])}function s(){let[e,t]=i.useState({width:null,height:null}),n=i.useRef(null);return[i.useCallback(e=>{if(n.current&&(n.current.disconnect(),n.current=null),e?.nodeType===Node.ELEMENT_NODE){let i=new ResizeObserver(([e])=>{if(e&&e.borderBoxSize){let{inlineSize:n,blockSize:i}=e.borderBoxSize[0];t({width:n,height:i})}});i.observe(e),n.current=i}},[]),e]}function o(){let[e,t]=i.useState({width:null,height:null});return i.useLayoutEffect(()=>{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},4984:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,I:()=>i});let i={x:!1,y:!1};function r(){return i.x||i.y}},5027:(e,t,n)=>{"use strict";n.d(t,{BX:()=>I,vK:()=>T,lr:()=>j});var i=n(1750),r=n(9647),a=n(1531),s=n(2433),o=n(8331),l=n(810),c=n(3597),u=n(570),d=n(4704),h=n(7362),f=n(3903),p=n(1783),m=n(5080),v=n(6241),g=n(3983),y=n(105);let b=[...g.T,v.y,p.f];var w=n(8738);let x=new WeakMap;var _=n(2717),C=n(2871),k=n(2304),E=n(6627),S=n(487),M=n(50);let A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],P={};function j(e){P=e}function T(){return P}class I{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=o.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=d.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,M.Gt.render(this.render,!1,!0))};let{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=(0,_.e)(t),this.isVariantNode=(0,_.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in f){let t=f[e];void 0!==c[e]&&(0,w.S)(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,x.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
11h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(S.r.current||(0,k.Uu)(),this.shouldReduceMotion=S.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,M.WG)(this.notifyUpdate),(0,M.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&c.M.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:a,ease:s,duration:o}=t.accelerate,c=new l.m({element:this.current,name:e,keyframes:r,times:a,ease:s,duration:(0,i.f)(o)}),u=n(c);this.valueSubscriptions.set(e,()=>{u(),c.cancel()});return}let r=C.f.has(e);r&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&M.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in P){let t=P[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,h.ge)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<A.length;t++){let n=A[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],a=n[i];if((0,w.S)(r))e.addValue(i,r);else if((0,w.S)(a))e.addValue(i,(0,f.OQ)(r,{owner:e}));else if(a!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,(0,f.OQ)(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,f.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];
11if(null!=n){if("string"==typeof n&&((0,r.i)(n)||(0,a.$)(n)))n=parseFloat(n);else{let i;i=n,!b.find((0,y.w)(i))&&p.f.test(t)&&(n=(0,m.J)(e,t))}this.setBaseTarget(e,(0,w.S)(n)?n.get():n)}return(0,w.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,E.a)(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,w.S)(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new s.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){u.k.render(this.render)}}},5048:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});let i=(0,n(4232).createContext)({})},5063:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});class i{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},5080:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var i=n(1783),r=n(8328),a=n(334),s=n(1507);let o=new Set([r.p,a.d]);function l(e,t){let n=(0,s.D)(e);return o.has(n)||(n=i.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},5105:(e,t,n)=>{e.exports=n(6758)},5108:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});let i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},5523:(e,t,n)=>{"use strict";n.d(t,{Ib:()=>h,ry:()=>d,zs:()=>u});let i=e=>180*e/Math.PI,r=e=>s(i(Math.atan2(e[1],e[0]))),a={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:r,rotateZ:r,skewX:e=>i(Math.atan(e[1])),skewY:e=>i(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},s=e=>((e%=360)<0&&(e+=360),e),o=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),l=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o,scaleY:l,scale:e=>(o(e)+l(e))/2,rotateX:e=>s(i(Math.atan2(e[6],e[5]))),rotateY:e=>s(i(Math.atan2(-e[2],e[0]))),rotateZ:r,rotate:r,skewX:e=>i(Math.atan(e[4])),skewY:e=>i(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function u(e){return+!!e.includes("scale")}function d(e,t){let n,i;if(!e||"none"===e)return u(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=c,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=a,i=t}if(!i)return u(t);let s=n[t],o=i[1].split(",").map(f);return"function"==typeof s?s(o):o[s]}let h=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return d(n,t)};function f(e){return parseFloat(e.trim())}},5540:(e,t)=>{"use strict";function n(e){var t;let{config:n,src:i,width:r,quality:a}=e,s=a||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(i)+"&w="+r+"&q="+s+(i.startsWith("/_next/static/media/")&&1?"&dpl=dpl_2kg8VS9rUsGpwnEcDTRoNpGimCS4":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n.__next_img_default=!0;let i=n},5609:(e,t,n)=>{"use strict";function i(e){return"function"==typeof e&&"applyToOptions"in e}n.d(t,{W:()=>i})},5625:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:n,stylesheets:i}=(0,s.YouTubeEmbed)(e);return(0,r.jsx)(o.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,r.jsx)(a.default,{src:e.url,strategy:l[e.strategy],stylesheets:i},e.url))})};let r=n(7876),a=i(n(5105)),s=n(6087),o=i(n(2506)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},5784:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var i=n(7876),r=n(4232),a=n(5048),s=n(1200),o=n(4896),l=n(3866),c=n(7990),u=n(9751);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class h extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,c.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,c.s)(e)&&e.offsetWidth||0,i=(0,c.s)(e)&&e.offsetHeight||0,r=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(r.height),a.width=parseFloat(r.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:n,anchorY:a,root:s,pop:o}){let l=(0,r.useId)(),c=(0,r.useRef)(null),f=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,r.useContext)(u.Q),m=function(...e){return r.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=d(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(c,!1!==o?e.props?.ref??e?.ref:void 0);return(0,r.useInsertionEffect)(()=>{let{width:e,height:i,top:r,left:u,right:d,bottom:h,direction:m}=f.current;if(t||!1===o||!c.current||!e||!i)return;let v="rtl"===m,g="left"===n?v?`right: ${d}`:`left: ${u}`:v?`left: ${u}`:`right: ${d}`,y="bottom"===a?`bottom: ${h}`:`top: ${r}`;c.current.dataset.motionPopId=l;let b=document.createElement("style");p&&(b.nonce=p);let w=s??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
12          [data-motion-pop-id="${l}"] {
13            position: absolute !important;
14            width: ${e}px !important;
15            height: ${i}px !important;
16            ${g}px !important;
17            ${y}px !important;
18          }
19        `),()=>{c.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,i.jsx)(h,{isPresent:t,childRef:c,sizeRef:f,pop:o,children:!1===o?e:r.cloneElement(e,{ref:m})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:c,presenceAffectsLayout:u,mode:d,anchorX:h,anchorY:p,root:v})=>{let g=(0,s.M)(m),y=(0,r.useId)(),b=(0,r.useRef)(n),w=(0,r.useRef)(a);(0,o.E)(()=>{b.current=n,w.current=a});let x=!0,_=(0,r.useMemo)(()=>(x=!1,{id:y,initial:t,isPresent:n,custom:c,onExitComplete:e=>
19{for(let t of(g.set(e,!0),g.values()))if(!t)return;a&&a()},register:e=>(g.set(e,!1),()=>{g.delete(e),b.current||g.size||w.current?.()})}),[n,g,a]);return u&&x&&(_={..._}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[n]),r.useEffect(()=>{n||g.size||!a||a()},[n]),e=(0,i.jsx)(f,{pop:"popLayout"===d,isPresent:n,anchorX:h,anchorY:p,root:v,children:e}),(0,i.jsx)(l.t.Provider,{value:_,children:e})};function m(){return new Map}var v=n(3885);let g=e=>e.key||"";function y(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:m})=>{let[b,w]=(0,v.xQ)(d),x=(0,r.useMemo)(()=>y(e),[e]),_=d&&!b?[]:x.map(g),C=(0,r.useRef)(!0),k=(0,r.useRef)(x),E=(0,s.M)(()=>new Map),S=(0,r.useRef)(new Set),[M,A]=(0,r.useState)(x),[P,j]=(0,r.useState)(x);(0,o.E)(()=>{C.current=!1,k.current=x;for(let e=0;e<P.length;e++){let t=g(P[e]);_.includes(t)?(E.delete(t),S.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[P,_.length,_.join("-")]);let T=[];if(x!==M){let e=[...x];for(let t=0;t<P.length;t++){let n=P[t],i=g(n);_.includes(i)||(e.splice(t,0,n),T.push(n))}return"wait"===u&&T.length&&(e=T),j(y(e)),A(x),null}let{forceRender:I}=(0,r.useContext)(a.L);return(0,i.jsx)(i.Fragment,{children:P.map(e=>{let r=g(e),a=(!d||!!b)&&(x===P||_.includes(r));return(0,i.jsx)(p,{isPresent:a,initial:(!C.current||!!n)&&void 0,custom:t,presenceAffectsLayout:c,mode:u,root:m,onExitComplete:a?void 0:()=>{if(S.current.has(r)||!E.has(r))return;S.current.add(r),E.set(r,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(I?.(),j(k.current),d&&w?.(),l&&l())},anchorX:h,anchorY:f,children:e},r)})})}},5785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},5907:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});let i=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var r=n(5914),a=n(2871),s=n(8975);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=a.U.length;function c(e,t,n){let{style:c,vars:u,transformOrigin:d}=e,h=!1,f=!1;for(let e in t){let n=t[e];if(a.f.has(e)){h=!0;continue}if((0,s.j4)(e)){u[e]=n;continue}{let t=i(n,r.W[e]);e.startsWith("origin")?(f=!0,d[e]=t):c[e]=t}}if(!t.transform&&(h||n?c.transform=function(e,t,n){let s="",c=!0;for(let u=0;u<l;u++){let l=a.U[u],d=e[l];if(void 0===d)continue;let h=!0;if("number"==typeof d)h=d===+!!l.startsWith("scale");else{let e=parseFloat(d);h=l.startsWith("scale")?1===e:0===e}if(!h||n){let e=i(d,r.W[l]);if(!h){c=!1;let t=o[l]||l;s+=`${t}(${e}) `}n&&(t[l]=e)}}let u=e.pathRotation;return u&&(c=!1,s+=`rotate(${i(u,r.W.pathRotation)}) `),s=s.trim(),n?s=n(t,c?"":s):c&&(s="none"),s}(t,e.transform,n):c.transform&&(c.transform="none")),f){let{originX:e="50%",originY:t="50%",originZ:n=0}=d;c.transformOrigin=`${e} ${t} ${n}`}}},5914:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var i=n(6882);let r={...i.ai,transform:Math.round};var a=n(6227);let s={rotate:a.uj,pathRotation:a.uj,rotateX:a.uj,rotateY:a.uj,rotateZ:a.uj,scale:i.hs,scaleX:i.hs,scaleY:i.hs,scaleZ:i.hs,skew:a.uj,skewX:a.uj,skewY:a.uj,distance:a.px,translateX:a.px,translateY:a.px,translateZ:a.px,x:a.px,y:a.px,z:a.px,perspective:a.px,transformPerspective:a.px,opacity:i.X4,originX:a.gQ,originY:a.gQ,originZ:a.px},o={borderWidth:a.px,borderTopWidth:a.px,borderRightWidth:a.px,borderBottomWidth:a.px,borderLeftWidth:a.px,borderRadius:a.px,borderTopLeftRadius:a.px,borderTopRightRadius:a.px,borderBottomRightRadius:a.px,borderBottomLeftRadius:a.px,width:a.px,maxWidth:a.px,height:a.px,maxHeight:a.px,top:a.px,right:a.px,bottom:a.px,left:a.px,inset:a.px,insetBlock:a.px,insetBlockStart:a.px,insetBlockEnd:a.px,insetInline:a.px,insetInlineStart:a.px,insetInlineEnd:a.px,padding:a.px,paddingTop:a.px,paddingRight:a.px,paddingBottom:a.px,paddingLeft:a.px,paddingBlock:a.px,paddingBlockStart:a.px,paddingBlockEnd:a.px,paddingInline:a.px,paddingInlineStart:a.px,paddingInlineEnd:a.px,margin:a.px,marginTop:a.px,marginRight:a.px,marginBottom:a.px,marginLeft:a.px,marginBlock:a.px,marginBlockStart:a.px,marginBlockEnd:a.px,marginInline:a.px,marginInlineStart:a.px,marginInlineEnd:a.px,fontSize:a.px,backgroundPositionX:a.px,backgroundPositionY:a.px,...s,zIndex:r,fillOpacity:i.X4,strokeOpacity:i.X4,numOctaves:r}},5965:(e,t,n)=>{"use strict";function i(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}n.d(t,{e:()=>i})},5994:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(7876),r=n(9198),a=n(4609);function s(e){let{type:t,image:n,animation:r,...s}=e;return"image"===t?(0,i.jsx)(o,{image:n,...s}):(0,i.jsx)(a.A,{...r,...s})}
19function o({image:e,isPriority:t=!1,className:n="",isFill:a=!1}){return e?(0,i.jsx)(r.A,{image:e,isPriority:t,isFill:a,className:n}):null}n(4232)},6001:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var i=n(5027);let r={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},a=!1;function s(){return!function(){if(a)return;let e={};for(let t in r)e[t]={isEnabled:e=>r[t].some(t=>!!e[t])};(0,i.lr)(e),a=!0}(),(0,i.vK)()}},6087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var i=n(858);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return i.GoogleAnalytics}});var r=n(9938);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r.GoogleMapsEmbed}});var a=n(6110);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return a.YouTubeEmbed}})},6110:function(e,t,n){"use strict";var i=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let a=r(n(6198)),s=n(3949);t.YouTubeEmbed=e=>{var t=i(e,[]);return(0,s.formatData)(a.default,t)}},6117:(e,t,n)=>{"use strict";n.d(t,{H:()=>c});var i=n(7950),r=n(6227);function a(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let s={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!r.px.test(e))return e;else e=parseFloat(e);let n=a(e,t.target.x),i=a(e,t.target.y);return`${n}% ${i}%`}};var o=n(1783),l=n(1853);let c={borderRadius:{...s,applyTo:[...i.S]},borderTopLeftRadius:s,borderTopRightRadius:s,borderBottomLeftRadius:s,borderBottomRightRadius:s,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=o.f.parse(e);if(i.length>5)return e;let r=o.f.createTransformer(e),a=+("number"!=typeof i[0]),s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;let u=(0,l.k)(s,c,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),r(i)}}}},6198:e=>{"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')},6227:(e,t,n)=>{"use strict";n.d(t,{KN:()=>a,gQ:()=>c,px:()=>s,uj:()=>r,vh:()=>o,vw:()=>l});let i=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),r=i("deg"),a=i("%"),s=i("px"),o=i("vh"),l=i("vw"),c={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},6235:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var i=n(5027),r=n(6001);function a(e){let t=(0,r.j)();for(let n in e)t[n]={...t[n],...e[n]};(0,i.lr)(t)}},6241:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var i=n(1402),r=n(1983),a=n(1435);let s={test:e=>a.B.test(e)||i.u.test(e)||r.V.test(e),parse:e=>a.B.test(e)?a.B.parse(e):r.V.test(e)?r.V.parse(e):i.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?a.B.transform(e):r.V.transform(e),getAnimatableNone:e=>{let t=s.parse(e);return t.alpha=0,s.transform(t)}}},6367:()=>{},6451:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var i=n(8738),r=n(2871),a=n(1166);
19function s(e,t,n){let s=(0,a.x)(e,t,n);for(let n in e)((0,i.S)(e[n])||(0,i.S)(t[n]))&&(s[-1!==r.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return s}},6453:(e,t,n)=>{"use strict";n.d(t,{po:()=>a,tn:()=>o,yT:()=>s});var i=n(5108),r=n(943);let a=e=>1-Math.sin(Math.acos(e)),s=(0,r.G)(a),o=(0,i.V)(a)},6627:(e,t,n)=>{"use strict";function i(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function r(e,t,n,r){if("function"==typeof t){let[a,s]=i(r);t=t(void 0!==n?n:e.custom,a,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,s]=i(r);t=t(void 0!==n?n:e.custom,a,s)}return t}n.d(t,{a:()=>r})},6711:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});let i=e=>null!==e;function r(e,{repeat:t,repeatType:n="loop"},a,s=1){let o=e.filter(i),l=s<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return l&&void 0!==a?a:o[l]}},6719:(e,t,n)=>{"use strict";n.d(t,{m:()=>t0,PY1:()=>tJ});var i=n(9957),r=n(7876),a=n(4232),s=n(5048),o=n(4429),l=n(9751);let c=(0,a.createContext)({});var u=n(2717),d=n(6793);function h(e){return Array.isArray(e)?e.join(" "):e}var f=n(8738),p=n(8737),m=n(5907);let v=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function g(e,t,n){for(let i in t)(0,f.S)(t[i])||(0,p.zK)(i,n)||(e[i]=t[i])}var y=n(2891),b=n(475);let w=()=>({...v(),attrs:{}}),x=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function _(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||x.has(e)}let C=e=>!_(e);try{!function(e){"function"==typeof e&&(C=t=>t.startsWith("on")?!_(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var k=n(2924),E=n(1166);function S(e){return(0,f.S)(e)?e.get():e}var M=n(9622),A=n(6627),P=n(3866),j=n(1200);let T=e=>(t,n)=>{let i=(0,a.useContext)(c),r=(0,a.useContext)(P.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:function(e,t,n,i){let r={},a=i(e,{});for(let e in a)r[e]=S(a[e]);let{initial:s,animate:o}=e,l=(0,u.e)(e),c=(0,u.O)(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let d=!!n&&!1===n.initial,h=(d=d||!1===s)?o:s;if(h&&"boolean"!=typeof h&&!(0,M.N)(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let i=(0,A.a)(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(n,i,r,e),renderState:t()}})(e,t,i,r);return n?s():(0,j.M)(s)},I=T({scrapeMotionValuesFromProps:E.x,createRenderState:v}),L=T({scrapeMotionValuesFromProps:n(6451).x,createRenderState:w});var R=n(6001),O=n(6235);let F=Symbol.for("motionComponentSymbol");var V=n(8355);let D=(0,a.createContext)({});function N(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var B=n(4896);function H(e,{forwardMotionProps:t=!1,type:n}={},i,p){i&&(0,O.Y)(i);let x=n?"svg"===n:(0,k.Q)(e),E=x?L:I;function S(n,i){let S,M={...(0,a.useContext)(l.Q),...n,layoutId:function({layoutId:e}){let t=(0,a.useContext)(s.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:A}=M,j=function(e){let{initial:t,animate:n}=function(e,t){if((0,u.e)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,d.w)(t)?t:void 0,animate:(0,d.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(c));return(0,a.useMemo)(()=>({initial:t,animate:n}),[h(t),h(n)])}(n),T=E(n,A);if(!A&&"undefined"!=typeof window){(0,a.useContext)(o.Y).strict;let t=function(e){let{drag:t,layout:n}=(0,R.j)();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
19(M);S=t.MeasureLayout,j.visualElement=function(e,t,n,i,r,s){let{visualElement:u}=(0,a.useContext)(c),d=(0,a.useContext)(o.Y),h=(0,a.useContext)(P.t),f=(0,a.useContext)(l.Q),p=f.reducedMotion,m=f.skipAnimations,v=(0,a.useRef)(null),g=(0,a.useRef)(!1);i=i||d.renderer,!v.current&&i&&(v.current=i(e,{visualState:t,parent:u,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:s}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,b=(0,a.useContext)(D);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(e,t,n,i){let{layoutId:r,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&N(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(v.current,n,r,b);let w=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{y&&w.current&&y.update(n,h)});let x=n[V.n],_=(0,a.useRef)(!!x&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return(0,B.E)(()=>{g.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),_.current&&y.animationState&&y.animationState.animateChanges())}),(0,a.useEffect)(()=>{y&&(!_.current&&y.animationState&&y.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),_.current=!1),y.enteringChildren=void 0)}),y}(e,T,M,p,t.ProjectionNode,x)}return(0,r.jsxs)(c.Provider,{value:j,children:[S&&j.visualElement?(0,r.jsx)(S,{visualElement:j.visualElement,...M}):null,function(e,t,n,{latestValues:i},r,s=!1,o){let l=(o??(0,k.Q)(e)?function(e,t,n,i){let r=(0,a.useMemo)(()=>{let n=w();return(0,y.B)(n,t,(0,b.n)(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};g(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n={},i=function(e,t){let n=e.style||{},i={};return g(i,n,e),Object.assign(i,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let n=v();return(0,m.O)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(t,i,r,e),c=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!(0,f.S)(e[r])&&(C(r)||!0===n&&_(r)||!t&&!_(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(t,"string"==typeof e,s),u=e!==a.Fragment?{...c,...l,ref:n}:{},{children:d}=t,h=(0,a.useMemo)(()=>(0,f.S)(d)?d.get():d,[d]);return(0,a.createElement)(e,{...u,children:h})}(e,n,function(e,t,n){let i=(0,a.useRef)(n);(0,a.useInsertionEffect)(()=>{i.current=n});let r=(0,a.useRef)(null);return(0,a.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=i.current;if("function"==typeof a)if(n){let e=a(n);"function"==typeof e&&(r.current=e)}else r.current?(r.current(),r.current=null):a(n);else a&&(a.current=n)},[t])}(T,j.visualElement,i),T,A,t,x)]})}S.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let M=(0,a.forwardRef)(S);return M[F]=e,M}function W(e,t){if("undefined"==typeof Proxy)return H;let n=new Map,i=(n,i)=>H(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(r,a)=>"create"===a?i:(n.has(a)||n.set(a,H(a,void 0,e,t)),n.get(a))})}var U=n(4419),z=n(2022),$=n(620),G=n(7362),X=n(4984);function Y(e){return[e("x"),e("y")]}var q=n(6227),K=n(1853);function Z(e){return e.max-e.min}function Q(e,t,n,i=.5){e.origin=i,e.originPoint=(0,K.k)(t.min,t.max,e.origin),e.scale=Z(n)/Z(t),e.translate=(0,K.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function J(e,t,n,i){Q(e.x,t.x,n.x,i?i.originX:void 0),Q(e.y,t.y,n.y,i?i.originY:void 0)}function ee(e,t,n,i=0){e.min=(i?(0,K.k)(n.min,n.max,i):n.min)+t.min,e.max=e.min+Z(t)}function et(e,t,n,i=0){let r=i?(0,K.k)(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+Z(t)}function en(e,t,n,i){et(e.x,t.x,n.x,i?.x),et(e.y,t.y,n.y,i?.y)}var ei=n(50),er=n(9954),ea=n(7189),es=n(736),eo=n(4650),el=n(1501),ec=n(6810),eu=n(9280),ed=n(7605),eh=n(8901);function ef(e,t,n,i){return(0,ec.k)(e,t,(0,eh.F)(n),i)}let ep=({current:e})=>e?e.ownerDocument.defaultView:null;var em=n(1497),ev=n(1784),eg=n(1750);let ey=(e,t)=>Math.abs(e-t),eb=new Set(["auto","scroll"]);class ew{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ex(this.lastRawMoveEventInfo,this.transformPagePoint));let e=eC(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(e
19y(e.x,t.x)**2+ey(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=ei.uv;this.history.push({...i,timestamp:r});let{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ex(t,this.transformPagePoint),ei.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=eC("pointercancel"===e.type?this.lastMoveEventInfo:ex(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),i&&i(e,a)},!(0,em.M)(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=i||window;let o=ex((0,eh.e)(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=ei.uv;this.history=[{...l,timestamp:c}];let{onSessionStart:u}=t;u&&u(e,eC(o,this.history));let d={passive:!0,capture:!0};this.removeListeners=(0,ev.F)(ef(this.contextWindow,"pointermove",this.handlePointerMove,d),ef(this.contextWindow,"pointerup",this.handlePointerUp,d),ef(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(eb.has(e.overflowX)||eb.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),ei.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ei.WG)(this.updatePoint)}}function ex(e,t){return t?{point:t(e.point)}:e}function e_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eC({point:e},t){return{point:e,delta:e_(e,ek(t)),offset:e_(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=ek(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>(0,eg.f)(.1)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>2*(0,eg.f)(t)&&(i=e[1]);let a=(0,eg.X)(r.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let s={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function ek(e){return e[e.length-1]}var eE=n(2589),eS=n(2679);function eM(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function eA(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function eP(e,t,n){return{min:ej(e,t),max:ej(e,n)}}function ej(e,t){return"number"==typeof e?e:e[t]||0}let eT=new WeakMap;class eI{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,G.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{t&&this.snapToCursor((0,eh.e)(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
19y"===e)if(X.I[e])return null;else return X.I[e]=!0,()=>{X.I[e]=!1};return X.I.x||X.I.y?null:(X.I.x=X.I.y=!0,()=>{X.I.x=X.I.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(q.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=Z(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&ei.Gt.update(()=>r(e,t),!1,!0),(0,er.g)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&ei.Gt.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new ew(e,{onSessionStart:r,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:ep(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:a}=i;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&ei.Gt.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!eR(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?(0,K.k)(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?(0,K.k)(n,e,i.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),r.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:eM(e.x,n,r),y:eM(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:eP(e,"left","right"),y:eP(e,"top","bottom")}}(t),i!==this.constraints&&!N(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!N(t))return!1;let i=t.current;(0,ed.V)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let a=(0,ea.L)(i,r.root,this.visualElement.getTransformPagePoint()),s=(e=r.layout.layoutBox,{x:eA(e.x,a.x),y:eA(e.y,a.y)});if(n){let e=n((0,es.pA)(s));this.hasMutatedConstraints=!!e,e&&(s=(0,es.FY)(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(Y(s=>{if(!eR(s,t,this.currentDirection))return;let l=o&&o[s]||{};(!0===a||a===s)&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,c)}
19)).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,er.g)(this.visualElement,e),n.start((0,eo.f)(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!eR(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[t],s=r.get()||0;r.set(e[t]-(0,K.k)(n,a,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!N(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=Z(e),r=Z(t);return r>i?n=(0,eE.q)(t.min,t.max-i,e.min):i>r&&(n=(0,eE.q)(e.min,e.max-r,t.min)),(0,eS.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!eR(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:a}=this.constraints[t];n.set((0,K.k)(r,a,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;eT.set(this.visualElement,this);let t=this.visualElement.current,n=ef(t,"pointerdown",e=>{let{drag:n,dragListener:i=!0}=this.getProps(),r=e.target,a=r!==t&&(0,el.a)(r);n&&i&&!a&&this.start(e)}),i=()=>{let{dragConstraints:n}=this.getProps();N(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let i=(0,eu.X)(e,eL(n)),r=(0,eu.X)(t,eL(n));return()=>{i(),r()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,a=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ei.Gt.read(i);let s=(0,ec.k)(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:a,dragMomentum:s}}}function eL(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function eR(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class eO extends z.X{constructor(e){super(e),this.removeGroupControls=$.l,this.removeListeners=$.l,this.controls=new eI(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let eF=e=>(t,n)=>{e&&ei.Gt.update(()=>e(t,n),!1,!0)};class eV extends z.X{constructor(){super(...arguments),this.removePointerDownListener=$.l}onPointerDown(e){this.session=new ew(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ep(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:eF(e),onStart:eF(t),onMove:eF(n),onEnd:(e,t)=>{delete this.session,i&&ei.Gt.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=ef(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let eD={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var eN=n(570),eB=n(3885);let eH=!1;class eW extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),eH&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eD.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:a}=n;return a&&(a.isPresent=r,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),eH=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?a.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?a.promote():a.relegate()||ei.Gt.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),eN.k.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;eH=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eU(e){let[t,n]=(0,eB.xQ)(),i=(0,a.useContext)(s.L);return(0,r.jsx)(eW,{...e,layoutGroup:i,switchLayoutGroup:(0,a.useContext)(D),isPresent:t,safeToRemove:n})}var ez=n(2433),e$=n(3903),eG=n(462),eX=n(7774),eY=n(4704),eq=n(6117);let eK={value:null,addProjectionMetrics:null};var eZ=n(2549),eQ=n(6453),eJ=n(7950);let e0=eJ.S.length,e1=e=>"string"==typeof e?parseFloat(e):e,e2=e=>"number"==typeof e||q.px.test(e);function e3(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let e5=e6(0,.5,eQ.yT),e4=e6(.5,.95,$.l);function e6(e,t,n){return i=>i<e?0:i>t?1:n((0,eE.q)(e,t,i))}function e9(e,t){e.min=t.min,e.max=t.max}function e8(e,t){e9(e.x,t.x),e9(e.y,t.y)}function e7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var te=n(8943);function tt(e,t,n,i,r){return e-=t,e=(0,te.hq)(e,1/n,i),void 0!==r&&(e=(0,te.hq)(e,1/r,i)),e}function tn(e,t,[n,i,r],a,s){!function(e,t=0,n=1,i=.5,r,a=e,s=e){if(q.KN.test(t)&&(t=parseFloat(t),t=(0,K.k)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=(0,K.k)(a.min,a.max,i);e===a&&(o-=t),e.min=tt(e.min,t,n,o,r),e.max=tt(e.max,t,n,o,r)}(e,t[n],t[i],t[r],t.scale,a,s)}let ti=["x","scaleX","originX"],tr=["y","scaleY","originY"];function ta(e,t,n,i){tn(e.x,t,ti,n?n.x:void 0,i?i.x:void 0),tn(e.y,t,tr,n?n.y:void 0,i?i.y:void 0)}function ts(e){return 0===e.translate&&1===e.scale}function to(e){return ts(e.x)&&ts(e.y)}function tl(e,t){return e.min===t.min&&e.max===t.max}function tc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tu(e,t){return tc(e.x,t.x)&&tc(e.y,t.y)}function td(e){return Z(e.x)/Z(e.y)}function th(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var tf=n(8205);class tp{constructor(){this.members=[]}add(e){(0,tf.Kq)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||((0,tf.Ai)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,tf.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=e.options;(void 0===i||i!==r)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
19pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let tm=(e,t)=>e.depth-t.depth;class tv{constructor(){this.children=[],this.isDirty=!1}add(e){(0,tf.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,tf.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tm),this.isDirty=!1,this.children.forEach(e)}}var tg=n(2822);let ty={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tb=["","X","Y","Z"],tw=0;function tx(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function t_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=tw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eK.value&&(ty.nodes=ty.calculatedTargetDeltas=ty.calculatedProjections=0),this.nodes.forEach(tE),this.nodes.forEach(tR),this.nodes.forEach(tO),this.nodes.forEach(tS),eK.addProjectionMetrics&&eK.addProjectionMetrics(ty)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new tv)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ez.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,eZ.x)(t)&&(!(0,eZ.x)(t)||"svg"!==t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;ei.Gt.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==i&&(i=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=eY.k.now(),i=({timestamp:t})=>{let r=t-n;r>=250&&((0,ei.WG)(i),e(r-250))};return ei.Gt.setup(i,!0),()=>(0,ei.WG)(i)}(r,250),eD.hasAnimatedSinceResize&&(eD.hasAnimatedSinceResize=!1,this.nodes.forEach(tL)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||r.getDefaultTransition()||tH,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!tu(this.targetLayout,i),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,eX.r)(a,"layout"),onPlay:s,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||tL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ei.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
19h(tF),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=(0,eG.P)(n);if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",ei.Gt,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(tP),this.nodes.forEach(tA);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tj);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tT),this.nodes.forEach(tI),this.nodes.forEach(tC),this.nodes.forEach(tk)):this.nodes.forEach(tj),this.clearAllSnapshots();let e=eY.k.now();ei.uv.delta=(0,eS.q)(0,1e3/60,e-ei.uv.timestamp),ei.uv.timestamp=e,ei.uv.isProcessing=!0,ei.PP.update.process(ei.uv),ei.PP.preRender.process(ei.uv),ei.PP.render.process(ei.uv),ei.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eN.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tM),this.sharedNodes.forEach(tV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ei.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ei.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Z(this.snapshot.measuredBox.x)||Z(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,G.ge)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!to(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,a=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,tg.HD)(this.latestValues)||a)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),tz((t=i).x),tz(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,G.ge)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tG))){let{scroll:e}=this.root;e&&((0,te.Ql)(t.x,e.offset.x),(0,te.Ql)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,G.ge)();if(e8(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:a}=i;i!==this.root&&r&&a.layoutScroll&&(r.wasRoot&&e8(t,e),(0,te.Ql)(t.x,r.offset.x),(0,te.Ql)(t.y,r.offset.y))}return t}applyTransform(e,t=!1,n){let i=n||(0,G.ge)();e8(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&((0,te.Ql)(i.x,-n.scroll.offset.x),(0,te.Ql)(i.y,-n.scroll.offset.y)),(0,tg.HD)(n.latestValues)&&(0,te.Ww)(i,n.latestValues,n.layout?.layoutBox)}return(0,tg.HD)(this.latestValues)&&(0,te.Ww)(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=(0,G.ge)();e8(t,e);for(let e=0;e<this.path.length;e++){let n,i=this.path[e];(0,tg.HD)(i.latestValues)&&(i.instance&&((0,tg.vk)(i.latestValues)&&i.updateSnapshot(),e8(n=(0,G.ge)(),i.measurePageBox())),ta(t,i.latestValues,i.snapshot?.layoutBox,n))}return(0,tg.HD)(this.latestValues)&&ta(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ei.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
19isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=ei.uv.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,G.ge)(),this.targetWithTransforms=(0,G.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,l,c;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,ee(s.x,o.x,l.x,c?.x),ee(s.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):e8(this.target,this.layout.layoutBox),(0,te.o4)(this.target,this.targetDelta)):e8(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),eK.value&&ty.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,tg.vk)(this.parent.latestValues)||(0,tg.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,G.ge)(),this.relativeTargetOrigin=(0,G.ge)(),en(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),e8(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ei.uv.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;e8(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;(0,te.OU)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,G.ge)());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(e7(this.prevProjectionDelta.x,this.projectionDelta.x),e7(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),J(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&th(this.projectionDelta.x,this.prevProjectionDelta.x)&&th(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),eK.value&&ty.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,G.xU)(),this.projectionDelta=(0,G.xU)(),this.projectionDeltaWithTransform=(0,G.xU)()}setAnimationOrigin(e,t=!1,n){let i,r=this.snapshot,a=r?r.latestValues:{},s={...this.latestValues},o=(0,G.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=(0,G.ge)(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(tB));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=f?.(n);if(r?(o.x.translate=r.x,o.x.scale=(0,K.k)(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=(0,K.k)(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(tD(o.x,e.x,n),tD(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,v,g,y;en(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,v=this.relativeTargetOrigin,g=l,y=n,tN(m.x,v.x,g.x,y),tN(m.y,v.y,g.y,y),i&&(u=this.relativeTarget,p=i,tl(u.x,p.x)&&tl(u.y,p.y))&&(this.isProjectionDirty=!1),i||(i=(0,G.ge)()),e8(i,this.relativeTarget)}c&&(this.animationValues=s,function(e,t,n,i,r,a){r?(e.opacity=(0,K.k)(0,n.opacity??1,e5(i)),e.opacityExit=(0,K.k)(t.opacity??1,0,e4(i))):a&&(e.opacity=(0,K.k)(t.opacity??1,n.opacity??1,i));for(let r=0;r<e0;r++){let a=eJ.S[r],s=e3(t,a),o=e3(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||e2(s)===e2(o)?(e[a]=Math.max((0,K.k)(e1(s),e1(o),i),0),(q.KN.test(o)||q.KN.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=(0,K.k)(t.rotate||0,n.rotate||0,i))}(s,a,this.latestValues,n,h,d)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ei.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ei.Gt.update(()=>{eD.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,e$.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let i=(0,f.S)(e)?e:(0,e$.OQ)(e);return i.start((0,eo.f)("",i,t,n)),i.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;
19if(t&&n&&i){if(this!==e&&this.layout&&i&&t$(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,G.ge)();let t=Z(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=Z(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}e8(t,n),(0,te.Ww)(t,r),J(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tp),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&tx("z",e,i,this.animationValues);for(let t=0;t<tb.length;t++)tx(`rotate${tb[t]}`,e,i,this.animationValues),tx(`skew${tb[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=S(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=S(t?.pointerEvents)||""),this.hasProjected&&!(0,tg.HD)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let a=function(e,t,n){let i="",r=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((r||a||s)&&(i=`translate3d(${r}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:r,rotateX:a,rotateY:s,skewX:o,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotate(${r}deg) `),a&&(i+=`rotateX(${a}deg) `),s&&(i+=`rotateY(${s}deg) `),o&&(i+=`skewX(${o}deg) `),l&&(i+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(i+=`scale(${o}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(a=n(r,a)),e.transform=a;let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,i.animationValues?e.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eq.H){if(void 0===r[t])continue;let{correct:n,applyTo:s,isCSSVariable:o}=eq.H[t],l="none"===a?r[t]:n(r[t],i);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=i===this?S(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(tA),this.root.sharedNodes.clear()}}}function tC(e){e.updateLayout()}function tk(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,a=t.source!==e.layout.source;if("size"===r)Y(e=>{let i=a?t.measuredBox[e]:t.layoutBox[e],r=Z(i);i.min=n[e].min,i.max=i.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";e9(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else t$(r,t.layoutBox,n)&&Y(i=>{let r=a?t.measuredBox[i]:t.layoutBox[i],s=Z(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=(0,G.xU)();J(s,n,t.layoutBox);let o=(0,G.xU)();a?J(o,e.applyTransform(i,!0),t.measuredBox):J(o,n,t.layoutBox);let l=!to(s),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:a}=i;if(r&&a){let s=e.options.layoutAnchor||void 0,o=(0,G.ge)();en(o,t.layoutBox,r.layoutBox,s);let l=(0,G.ge)();en(l,n,a.layoutBox,s),tu(o,l)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tE(e){eK.value&&ty.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tM(e){e.clearSnapshot()}function tA(e){e.clearMeasurements()}function tP(e){e.isLayoutDirty=!0,e.updateLayout()}function tj(e){e.isLayoutDirty=!1}function tT(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function tI(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tR(e){e.resolveTargetDelta()}function tO(e){e.calcProjection()}
19function tF(e){e.resetSkewAndRotation()}function tV(e){e.removeLeadSnapshot()}function tD(e,t,n){e.translate=(0,K.k)(t.translate,0,n),e.scale=(0,K.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tN(e,t,n,i){e.min=(0,K.k)(t.min,n.min,i),e.max=(0,K.k)(t.max,n.max,i)}function tB(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tH={duration:.45,ease:[.4,0,.1,1]},tW=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tU=tW("applewebkit/")&&!tW("chrome/")?Math.round:$.l;function tz(e){e.min=tU(e.min),e.max=tU(e.max)}function t$(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(td(t)-td(n)))}function tG(e){return e!==e.root&&e.scroll?.wasRoot}let tX=t_({attachResizeListener:(e,t)=>(0,ec.k)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tY={current:void 0},tq=t_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tY.current){let e=new tX({});e.mount(window),e.setOptions({layoutScroll:!0}),tY.current=e}return tY.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var tK=n(103);let tZ=W({...U.W,...tK.n,pan:{Feature:eV},drag:{Feature:eO,ProjectionNode:tq,MeasureLayout:eU},layout:{ProjectionNode:tq,MeasureLayout:eU}},i.J),tQ=W(),tJ=tZ,t0=tQ},6751:(e,t,n)=>{"use strict";n.d(t,{j:()=>k});var i=n(1784),r=n(7605),a=n(8975),s=n(6241),o=n(1783),l=n(1402),c=n(1983);function u(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=n(1435);function h(e,t){return n=>n>0?t:e}var f=n(1853);let p=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},m=[l.u,d.B,c.V];function v(e){let t=m.find(t=>t.test(e));if((0,r.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===c.V&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,a=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;r=u(o,i,e+1/3),a=u(o,i,e),s=u(o,i,e-1/3)}else r=a=s=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let g=(e,t)=>{let n=v(e),i=v(t);if(!n||!i)return h(e,t);let r={...n};return e=>(r.red=p(n.red,i.red,e),r.green=p(n.green,i.green,e),r.blue=p(n.blue,i.blue,e),r.alpha=(0,f.k)(n.alpha,i.alpha,e),d.B.transform(r))},y=new Set(["none","hidden"]);function b(e,t){return n=>(0,f.k)(e,t,n)}function w(e){return"number"==typeof e?b:"string"==typeof e?(0,a.pG)(e)?h:s.y.test(e)?g:C:Array.isArray(e)?x:"object"==typeof e?s.y.test(e)?g:_:h}function x(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>w(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function _(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=w(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let C=(e,t)=>{let n=o.f.createTransformer(t),a=(0,o.V)(e),s=(0,o.V)(t);return a.indexes.var.length===s.indexes.var.length&&a.indexes.color.length===s.indexes.color.length&&a.indexes.number.length>=s.indexes.number.length?y.has(e)&&!s.values.length||y.has(t)&&!a.values.length?function(e,t){return y.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,i.F)(x(function(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let a=t.types[r],s=e.indexes[a][i[a]],o=e.values[s]??0;n[r]=o,i[a]++}return n}(a,s),s.values),n):((0,r.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),h(e,t))};function k(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,f.k)(e,t,n):w(e)(e,t)}},6793:(e,t,n)=>{"use strict";function i(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>i})},6810:(e,t,n)=>{"use strict";function i(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}n.d(t,{k:()=>i})},6845:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var i=n(7454);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function a(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=r.reduce((e,t)=>
19(e[t]=function(e){let t=new Set,n=new Set,i=!1,r=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function o(t){a.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,r=!1,s=!1)=>{let o=s&&i?t:n;return r&&a.add(e),o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(s=e,i){r=!0;return}i=!0;let a=t;t=n,n=a,t.forEach(o),t.clear(),i=!1,r&&(r=!1,l.process(e))}};return l}(o),e),{}),{setup:c,read:u,resolveKeyframes:d,preUpdate:h,update:f,preRender:p,render:m,postRender:v}=l,g=()=>{let r=i.W.useManualTiming,o=r?s.timestamp:performance.now();n=!1,r||(s.delta=a?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),f.process(s),p.process(s),m.process(s),v.process(s),s.isProcessing=!1,n&&t&&(a=!1,e(g))};return{schedule:r.reduce((t,i)=>{let r=l[i];return t[i]=(t,i=!1,o=!1)=>(!n&&(n=!0,a=!0,s.isProcessing||e(g)),r.schedule(t,i,o)),t},{}),cancel:e=>{for(let t=0;t<r.length;t++)l[r[t]].cancel(e)},state:s,steps:l}}},6882:(e,t,n)=>{"use strict";n.d(t,{X4:()=>a,ai:()=>r,hs:()=>s});var i=n(2679);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},a={...r,transform:e=>(0,i.q)(0,1,e)},s={...r,default:1}},6988:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var r=n(3421);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i(r).default}});var a=n(5625);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return i(a).default}});var s=n(2818);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var o=n(4464);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return o.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return o.sendGAEvent}})},7189:(e,t,n)=>{"use strict";n.d(t,{L:()=>s,m:()=>a});var i=n(736),r=n(8943);function a(e,t){return(0,i.FY)((0,i.bS)(e.getBoundingClientRect(),t))}function s(e,t,n){let i=a(e,n),{scroll:s}=t;return s&&((0,r.Ql)(i.x,s.offset.x),(0,r.Ql)(i.y,s.offset.y)),i}},7307:function(e){e.exports=(()=>{"use strict";var e,t,n,i,r,a,s,o,l,c,u,d,h,f,p,m,v,g,y,b,w,x,_,C,k,E,S,M,A,P,j,T,I,L,R,O,F,V,D,N,B,H,W,U,z,$,G,X,Y,q,K,Z,Q,J,ee,et,en,ei,er,ea,es,eo,el,ec,eu,ed,eh,ef=[,(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>i.Animation});var i=n(2)},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>i});var i=function(){function e(e,t,n,i){this.animation=e,this.artboard=t,this.playing=i,this.loopCount=0,this.scrubTo=null,this.instance=new n.LinearAnimationInstance(e,t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.instance.time},set:function(e){this.instance.time=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){null===this.scrubTo?this.instance.advance(e):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},e.prototype.apply=function(e){this.instance.apply(e)},e.prototype.cleanup=function(){this.instance.delete()},e}()},(e,t,n)=>{n.r(t),n.d(t,{RuntimeLoader:()=>s});var i=n(4),r=n(5),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=function(){function e(){}return e.notifyError=function(t){var n;for(e.isLoading=!1;e.errorCallbackQueue.length>0;)null==(n=e.errorCallbackQueue.shift())||n(t);e.callBackQueue=[]},e.loadRuntime=function(){var t=e.wasmURL,n=e.wasmBinary;e.enablePerfMarks&&performance.mark("rive:wasm-init:start"),i.default(a({locateFile:function(){return t}},n?{wasmBinary:n}:{})).then(function(t){var n;for(e.enablePerfMarks&&(performance.mark("rive:wasm-init:end"),performance.measure("rive:wasm-init","rive:wasm-init:start","rive:wasm-init:end")),e.runtime=t,e.errorCallbackQueue=[];e.callBackQueue.length>0;)null==(n=e.callBackQueue.shift())||n(e.runtime)}).catch(function(n){var i={message:(null==n?void 0:n.message)||"Unknown error",type:(null==n?void 0:n.name)||"Error",wasmError:n 
19instanceof WebAssembly.CompileError||n instanceof WebAssembly.RuntimeError,originalError:n};console.debug("Rive WASM load error details:",i);var r=e.wasmFallbackURL,a=null!==r&&t.toLowerCase()===r.toLowerCase();if(null===r||a){var s=a?"the configured WASM URL or its fallback (".concat(r,")"):t,o=["Could not load Rive WASM file from ".concat(s,"."),"Possible reasons:\n- Network connection is down\n- WebAssembly is not supported in this environment\n- The WASM file is corrupted or incompatible\n\nError details:","- Type: ".concat(i.type),"- Message: ".concat(i.message),"- WebAssembly-specific error: ".concat(i.wasmError),"\nTo resolve, you may need to:\n1. Check your network connection\n2. Set a new WASM source via RuntimeLoader.setWasmUrl()\n3. Call RuntimeLoader.awaitInstance() again"].join("\n");console.error(o),e.notifyError(Error(o))}else console.warn("Failed to load WASM from ".concat(t," (").concat(i.message,"), trying fallback URL: ").concat(r)),e.wasmBinary=null,e.setWasmUrl(r),e.loadRuntime()})},e.getInstance=function(t,n){e.isLoading||(e.isLoading=!0,e.loadRuntime()),e.runtime?t(e.runtime):(e.callBackQueue.push(t),n&&e.errorCallbackQueue.push(n))},e.awaitInstance=function(){return new Promise(function(t,n){return e.getInstance(t,n)})},e.setWasmUrl=function(t){e.wasmURL=t},e.getWasmUrl=function(){return e.wasmURL},e.setWasmFallbackUrl=function(t){e.wasmFallbackURL=t},e.getWasmFallbackUrl=function(){return e.wasmFallbackURL},e.setWasmBinary=function(t){if(t instanceof ArrayBuffer||null===t){e.wasmBinary=t;return}console.error("setWasmBinary expects an ArrayBuffer or null")},e.getWasmBinary=function(){return e.wasmBinary},e.isLoading=!1,e.callBackQueue=[],e.wasmURL="https://unpkg.com/".concat(r.name,"@").concat(r.version,"/rive.wasm"),e.wasmFallbackURL="https://cdn.jsdelivr.net/npm/".concat(r.name,"@").concat(r.version,"/rive_fallback.wasm"),e.wasmBinary=null,e.errorCallbackQueue=[],e.enablePerfMarks=!1,e}()},(e,t,n)=>{var i;n.r(t),n.d(t,{default:()=>r});let r=(i=globalThis.document?.currentScript?.src,async function(e={}){var t,n=!!globalThis.window,r=!!globalThis.WorkerGlobalScope;function a(){function e(e){let a=i;n=t=0,i=new Map,a.forEach(t=>{try{t(e)}catch(e){console.error(e)}}),this.Vd(),r&&r.we()}let t=0,n=0,i=new Map,r=null,a=null;this.requestAnimationFrame=function(r){t||=requestAnimationFrame(e.bind(this));let a=++n;return i.set(a,r),a},this.cancelAnimationFrame=function(e){i.delete(e),t&&0==i.size&&(cancelAnimationFrame(t),t=0)},this.se=function(e){a&&(document.body.remove(a),a=null),e||((a=document.createElement("div")).style.backgroundColor="black",a.style.position="fixed",a.style.right=0,a.style.top=0,a.style.color="white",a.style.padding="4px",a.innerHTML="RIVE FPS",e=function(e){a.innerHTML="RIVE FPS "+e.toFixed(1)},document.body.appendChild(a)),r=new function(){let t=0,n=0;this.we=function(){var i=performance.now();n?(++t,1e3<(i-=n)&&(e(1e3*t/i),t=n=0)):(n=i,t=0)}}},this.Vd=function(){}}function s(){console.assert(!0);let e=new Map,t=-1/0;this.push=function(n){return n=n+255>>8,e.has(n)&&clearTimeout(e.get(n)),e.set(n,setTimeout(function(){e.delete(n),0==e.length?t=-1/0:n==t&&console.assert((t=Math.max(...e.keys()))<n)},1e3)),(t=Math.max(n,t))<<8}}let o=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){o&&o();let t=e.decodeAudio;
19e.decodeAudio=function(e,n){n(e=t(e))};let n=e.decodeFont;e.decodeFont=function(e,t){t(e=n(e))};let i=e.setFallbackFontCb;e.setFallbackFontCallback="function"==typeof i?function(e){i(e)}:function(){console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.")};let r=e.FileAssetLoader;e.ptrToAsset=t=>{let n=e.ptrToFileAsset(t);return n.isImage?e.ptrToImageAsset(t):n.isFont?e.ptrToFontAsset(t):n.isAudio?e.ptrToAudioAsset(t):n},e.CustomFileAssetLoader=r.extend("CustomFileAssetLoader",{__construct:function({loadContents:e}){this.__parent.__construct.call(this),this.ie=e},loadContents:function(t,n){return t=e.ptrToAsset(t),this.ie(t,n)}}),e.CDNFileAssetLoader=r.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(t){var n,i,r;let a=e.ptrToAsset(t);return""!==(t=a.cdnUuid)&&(n=a.cdnBaseUrl+"/"+t,i=e=>{a.decode(new Uint8Array(e.response))},(r=new XMLHttpRequest).responseType="arraybuffer",r.onreadystatechange=function(){4==r.readyState&&200==r.status&&i(r)},r.open("GET",n,!0),r.send(null),!0)}}),e.FallbackFileAssetLoader=r.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.Qd=[]},addLoader:function(e){this.Qd.push(e)},loadContents:function(e,t){for(let n of this.Qd)if(n.loadContents(e,t))return!0;return!1}});let a=e.computeAlignment;e.computeAlignment=function(e,t,n,i,r=1){return a.call(this,e,t,n,i,r)}};let l=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){function t(e){this.uc=e,this.he=e.getContext("2d"),this.Kd=r,this.Gc=[],this.Wc=0,this.clear=function(){console.assert(0==this.Wc),this.Gc=[],o.delete(this)},this.save=function(){++this.Wc,this.Gc.push(r.save.bind(r))},this.restore=function(){0<this.Wc&&(this.Gc.push(r.restore.bind(r)),--this.Wc)},this.transform=function(e){this.Gc.push(r.transform.bind(r,e))},this.align=function(e,t,n,i,a=1){this.Gc.push(r.align.bind(r,e,t,n,i,a))},this.flush=function(){console.assert(0==this.Wc),o.add(this),r.Jd||i()},this.bindContext=function(){let e=this.Kd;e&&e.Pc&&t5(e.Pc)},this.delete=function(){}}function n(e,t=!1){var i={alpha:!0,depth:t,stencil:t,antialias:t,premultipliedAlpha:!0,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:!1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0};if(!(t=e.getContext("webgl2",i)))return null;t5(i=t3(t,i));let r=c(e.width,e.height);r.Pc=i,r.uc=e,r.xd=e.width,r.wd=e.height,r.Hc=t,r.me=function(){this.Pc&&t5(this.Pc)};var a=r.delete;return r.delete=function(){this.me(),a.call(this);var e=this.Pc;ty===tK[e]&&(ty=null),"object"==typeof JSEvents&&JSEvents.sf(tK[e].tc.canvas),tK[e]?.tc.canvas&&(tK[e].tc.canvas.ge=void 0),this.Pc=this.uc=this.xd=this.wd=this.Hc=tK[e]=null},r}function i(){if(r){var t=r.ke,n=0,i=0,a=0,s=Array(o.size),l=0;for(var c of o)c.Tc=Math.min(c.uc.width,t),c.Sc=Math.min(c.uc.height,t),c.ud=c.Sc*c.Tc,n=Math.max(n,c.Tc),i=Math.max(i,c.Sc),a+=c.ud,s[l++]=c;if(o.clear(),!(0>=a)){for(n=1<<(0>=n?0:32-Math.clz32(n-1)),i=1<<(0>=i?0:32-Math.clz32(i-1));i*n<a;)n<=i?n*=2:i*=2;
19for(n=Math.min(n,t),n=Math.min(i,t),s.sort((e,t)=>t.ud-e.ud),a=new e.DynamicRectanizer(t),c=0;c<s.length;){for(a.reset(n,i),l=c;l<s.length;++l){var u=s[l],d=a.addRect(u.Tc,u.Sc);if(0>d){console.assert(l>c);break}u.cd=65535&d,u.dd=d>>16}for(u=h.push(a.drawWidth()),d=f.push(a.drawHeight()),console.assert(u>=a.drawWidth()),console.assert(d>=a.drawHeight()),console.assert(u<=t),console.assert(d<=t),r.uc.width!=u&&(r.uc.width=u),r.uc.height!=d&&(r.uc.height=d),r.clear(),u=c;u<l;++u){d=s[u],r.saveClipRect(d.cd,d.dd,d.cd+d.Tc,d.dd+d.Sc);let t=new e.Mat2D;for(let e of(t.xx=d.Tc/d.uc.width,t.yy=d.Sc/d.uc.height,t.xy=t.yx=0,t.tx=d.cd,t.ty=d.dd,r.transform(t),d.Gc))e();r.restoreClipRect(),d.Gc=[]}for(r.flush();c<l;++c)(d=(u=s[c]).he).globalCompositeOperation="copy",d.drawImage(r.uc,u.cd,u.dd,u.Tc,u.Sc,0,0,u.uc.width,u.uc.height);c=l}}}}l&&l();let r=null,o=new Set,c=e.makeRenderer;e.makeRenderer=function(e,i){if(!r){function a(e){var t=document.createElement("canvas");return(t.width=1,t.height=1,r=n(t,e))?(r.Jd=!!r.Hc.getExtension("WEBGL_shader_pixel_local_storage"),r.ke=Math.min(r.Hc.getParameter(r.Hc.MAX_RENDERBUFFER_SIZE),r.Hc.getParameter(r.Hc.MAX_TEXTURE_SIZE)),r.vd=!r.Jd,(e=r.Hc.getExtension("WEBGL_debug_renderer_info"))&&(t=r.Hc.getParameter(e.UNMASKED_RENDERER_WEBGL),r.Hc.getParameter(e.UNMASKED_VENDOR_WEBGL).includes("Google")&&t.includes("ANGLE Metal Renderer")&&(r.vd=!1)),r):null}if(!(r=a(!0)))throw"Unable to create WebGL context, your environment may not support WebGL. Try out @rive-app/canvas as an alternative.";r.vd||(r=a(!1))}return i?new t(e):n(e,r.vd)};let u=e.Artboard.prototype.delete;e.Artboard.prototype.delete=function(){this.le=!0,u.call(this)};let d=e.Artboard.prototype.draw;e.Artboard.prototype.draw=function(e){e.Gc?e.Gc.push(()=>{this.le||d.call(this,e.Kd)}):d.call(this,e)};let h=new s,f=new s,p=new a;e.requestAnimationFrame=p.requestAnimationFrame.bind(p),e.cancelAnimationFrame=p.cancelAnimationFrame.bind(p),e.enableFPSCounter=p.se.bind(p),p.Vd=i,e.resolveAnimationFrame=i;let m=e.load;e.load=function(t,n,i=!0){let r=new e.FallbackFileAssetLoader;return void 0!==n&&r.addLoader(n),i&&(n=new e.CDNFileAssetLoader,r.addLoader(n)),Promise.resolve(m(t,r))};let v=e.WebGL2Renderer.prototype.clear;e.WebGL2Renderer.prototype.clear=function(){t5(this.Pc);let e=this.uc;(this.xd!=e.width||this.wd!=e.height)&&(this.resize(e.width,e.height),this.xd=e.width,this.wd=e.height),v.call(this)},e.decodeImage=function(t,n){n(t=e.decodeWebGL2Image(t))};let g=e.Renderer.prototype.align;e.Renderer.prototype.align=function(e,t,n,i,r=1){g.call(this,e,t,n,i,r)}};var c="./this.program";r&&(i=self.location.href);var u,d,h="";if(n||r){try{h=new URL(".",i).href}catch{}r&&(d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),u=async e=>{if(P(e))return new Promise((t,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{200==i.status||0==i.status&&i.response?t(i.response):n(i.status)},i.onerror=n,i.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)}}var f,p,m,v,g,y,b,w,x,_,C,k,E,S=console.log.bind(console),M=console.error.bind(console),A=!1,P=e=>e.startsWith("file://"),j=!1;function T(){var t=ng.buffer;e.HEAP8=v=new Int8Array(t),y=new Int16Array(t),e.HEAPU8=g=new Uint8Array(t),e.HEAPU16=b=new Uint16Array(t),e.HEAP32=w=new Int32Array(t),e.HEAPU32=x=new Uint32Array(t),e.HEAPF32=_=new Float32Array(t),C=new Float64Array(t),k=new BigInt64Array(t),E=new BigUint64Array(t)}function I(t){throw e.onAbort?.(t),M(t="Aborted("+t+")"),A=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),m?.(t),t}async function L(e){if(!f)try{var t=await u(e);return new Uint8Array(t)}catch{}if(e==tm&&f)e=new Uint8Array(f);else if(d)e=d(e);else throw"both async and sync fetching of the wasm failed";return e}async function R(e,t){try{var n=await L(e);return await WebAssembly.instantiate(n,t)}catch(e){M(`failed to asynchronously prepare wasm: ${e}`),I(e)}}async function O(e){if(!f&&!P(tm))try{var t=fetch(tm,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(e){M(`wasm streaming compile failed: ${e}`),M("falling back to ArrayBuffer instantiation")}return R(tm,e)}var F=t=>{for(;0<t.length;)t.shift()(e)},V=[],D=[],N=()=>{var t=e.preRun.shift();D.push(t)},B=()=>{var e=w[eL>>2];return eL+=4,e},H=(e,t)=>{for(var n=0,i=e.length-1;0<=i;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},W=e=>{var t="/"===e.charAt(0),n="/"===e.slice(-1);return(e=H(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},U=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return(e=t[0],t=t[1],e||t)?e+(t&&=t.slice(0,-1)):"."},z=e=>{(z=e=>crypto.getRandomValues(e))(e)},$=globalThis.TextDecoder&&new TextDecoder,G=(e,t,n,i)=>{if(n=t+n,i)return n;for(;e[t]&&!(t>=n);)++t;return t},X=(e,t=0,n,i)=>{if(16<(n=G(e,t,n,i))-t&&e.buffer&&$)return $.decode(e.subarray(t,n));for(i="";t<n;){var r=e[t++];if(128&r){var a=63&e[t++];if(192==(224&r))i+=String.fromCharCode((31&r)<<6|a);else{var s=63&e[t++];65536>(r=224==(240&r)?(15&r)<<12|a<<6|s:(7&r)<<18|a<<12|s<<6|63&e[t++])?i+=String.fromCharCode(r):(r-=65536,i+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else i+=String.fromCharCode(r)}return i},Y=[],q=e=>{for(var t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}return t},K=(e,t,n,i)=>{if(!(0<i))return 0;var r=n;i=n+i-1;for(var a=0;a<e.length;++a){var s=e.codePointAt(a);if(127>=s){if(n>=i)break;t[n++]=s}else if(2047>=s){if(n+1>=i)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(65535>=s){if(n+2>=i)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=i)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s,a++}}return t[n]=0,n-r},Z=[];function Q(e,t){Z[e]={input:[],output:[],Kc:t},eC(e,J)}var J={open(e){var t=Z[e.node.rd];
19if(!t)throw new ec(43);e.mc=t,e.seekable=!1},close(e){e.mc.Kc.gd(e.mc)},gd(e){e.mc.Kc.gd(e.mc)},read(e,t,n,i){if(!e.mc||!e.mc.Kc.Pd)throw new ec(60);for(var r=0,a=0;a<i;a++){try{var s=e.mc.Kc.Pd(e.mc)}catch(e){throw new ec(29)}if(void 0===s&&0===r)throw new ec(6);if(null==s)break;r++,t[n+a]=s}return r&&(e.node.Qc=Date.now()),r},write(e,t,n,i){if(!e.mc||!e.mc.Kc.Fd)throw new ec(60);try{for(var r=0;r<i;r++)e.mc.Kc.Fd(e.mc,t[n+r])}catch(e){throw new ec(29)}return i&&(e.node.Ac=e.node.xc=Date.now()),r}},ee={Dc:null,Jc:()=>ee.createNode(null,"/",16895,0),createNode(e,t,n,i){if(24576==(61440&n)||4096==(61440&n))throw new ec(63);return ee.Dc||(ee.Dc={dir:{node:{Nc:ee.jc.Nc,Fc:ee.jc.Fc,Yc:ee.jc.Yc,od:ee.jc.od,$d:ee.jc.$d,ee:ee.jc.ee,be:ee.jc.be,Hd:ee.jc.Hd,td:ee.jc.td},stream:{Cc:ee.hc.Cc}},file:{node:{Nc:ee.jc.Nc,Fc:ee.jc.Fc},stream:{Cc:ee.hc.Cc,read:ee.hc.read,write:ee.hc.write,Sd:ee.hc.Sd,Ud:ee.hc.Ud}},link:{node:{Nc:ee.jc.Nc,Fc:ee.jc.Fc,Zc:ee.jc.Zc},stream:{}},Ld:{node:{Nc:ee.jc.Nc,Fc:ee.jc.Fc},stream:e_}}),16384==(61440&(n=em(e,t,n,i)).mode)?(n.jc=ee.Dc.dir.node,n.hc=ee.Dc.dir.stream,n.ic={}):32768==(61440&n.mode)?(n.jc=ee.Dc.file.node,n.hc=ee.Dc.file.stream,n.qc=0,n.ic=null):40960==(61440&n.mode)?(n.jc=ee.Dc.link.node,n.hc=ee.Dc.link.stream):8192==(61440&n.mode)&&(n.jc=ee.Dc.Ld.node,n.hc=ee.Dc.Ld.stream),n.Qc=n.Ac=n.xc=Date.now(),e&&(e.ic[t]=n,e.Qc=e.Ac=e.xc=n.Qc),n},jf:e=>e.ic?e.ic.subarray?e.ic.subarray(0,e.qc):new Uint8Array(e.ic):new Uint8Array(0),jc:{Nc(e){var t={};return t.ef=8192==(61440&e.mode)?e.id:1,t.lf=e.id,t.mode=e.mode,t.qf=1,t.uid=0,t.kf=0,t.rd=e.rd,16384==(61440&e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.qc:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.Qc=new Date(e.Qc),t.Ac=new Date(e.Ac),t.xc=new Date(e.xc),t.ne=4096,t.Ze=Math.ceil(t.size/t.ne),t},Fc(e,t){for(var n of["mode","atime","mtime","ctime"])null!=t[n]&&(e[n]=t[n]);void 0!==t.size&&(t=t.size,e.qc!=t&&(0==t?(e.ic=null,e.qc=0):(n=e.ic,e.ic=new Uint8Array(t),n&&e.ic.set(n.subarray(0,Math.min(t,e.qc))),e.qc=t)))},Yc(){throw ee.zd||(ee.zd=new ec(44),ee.zd.stack="<generic error, no stack>"),ee.zd},od:(e,t,n,i)=>ee.createNode(e,t,n,i),$d(e,t,n){try{var i=ep(t,n)}catch(e){}if(i){if(16384==(61440&e.mode))for(var r in i.ic)throw new ec(55);
19if(ea[r=ef(i.parent.id,i.name)]===i)ea[r]=i.Uc;else for(r=ea[r];r;){if(r.Uc===i){r.Uc=i.Uc;break}r=r.Uc}}delete e.parent.ic[e.name],t.ic[n]=e,e.name=n,t.xc=t.Ac=e.parent.xc=e.parent.Ac=Date.now()},ee(e,t){delete e.ic[t],e.xc=e.Ac=Date.now()},be(e,t){var n,i=ep(e,t);for(n in i.ic)throw new ec(55);delete e.ic[t],e.xc=e.Ac=Date.now()},Hd:e=>[".","..",...Object.keys(e.ic)],td:(e,t,n)=>((e=ee.createNode(e,t,41471,0)).link=n,e),Zc(e){if(40960!=(61440&e.mode))throw new ec(28);return e.link}},hc:{read(e,t,n,i,r){var a=e.node.ic;if(r>=e.node.qc)return 0;if(8<(e=Math.min(e.node.qc-r,i))&&a.subarray)t.set(a.subarray(r,r+e),n);else for(i=0;i<e;i++)t[n+i]=a[r+i];return e},write(e,t,n,i,r,a){if(t.buffer===v.buffer&&(a=!1),!i)return 0;if((e=e.node).Ac=e.xc=Date.now(),t.subarray&&(!e.ic||e.ic.subarray)){if(a)return e.ic=t.subarray(n,n+i),e.qc=i;if(0===e.qc&&0===r)return e.ic=t.slice(n,n+i),e.qc=i;if(r+i<=e.qc)return e.ic.set(t.subarray(n,n+i),r),i}a=r+i;var s=e.ic?e.ic.length:0;if(s>=a||(a=Math.max(a,s*(1048576>s?2:1.125)>>>0),0!=s&&(a=Math.max(a,256)),s=e.ic,e.ic=new Uint8Array(a),0<e.qc&&e.ic.set(s.subarray(0,e.qc),0)),e.ic.subarray&&t.subarray)e.ic.set(t.subarray(n,n+i),r);else for(a=0;a<i;a++)e.ic[r+a]=t[n+a];return e.qc=Math.max(e.qc,r+i),i},Cc(e,t,n){if(1===n?t+=e.position:2===n&&32768==(61440&e.node.mode)&&(t+=e.node.qc),0>t)throw new ec(28);return t},Sd(e,t,n,i,r){if(32768!=(61440&e.node.mode))throw new ec(43);if(e=e.node.ic,2&r||!e||e.buffer!==v.buffer)throw i=!0,I(),r=void 0,new ec(48);return i=!1,r=e.byteOffset,{lc:r,Ye:i}},Ud:(e,t,n,i)=>(ee.hc.write(e,t,0,i,n,!1),0)}},et=null,en={},ei=[],er=1,ea=null,es=!1,eo=!0,el={},ec=class{name="ErrnoError";constructor(e){this.Lc=e}},eu=class{fd={};node=null;get flags(){return this.fd.flags}set flags(e){this.fd.flags=e}get position(){return this.fd.position}set position(e){this.fd.position=e}},ed=class{jc={};hc={};pd=null;constructor(e,t,n,i){e||=this,this.parent=e,this.Jc=e.Jc,this.id=er++,this.name=t,this.mode=n,this.rd=i,this.Qc=this.Ac=this.xc=Date.now()}get read(){return 365==(365&this.mode)}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return 146==(146&this.mode)}set write(e){e?this.mode|=146:this.mode&=-147}};function eh(e,t={}){if(!e)throw new ec(44);t.Bd??(t.Bd=!0),"/"===e.charAt(0)||(e="//"+e);var n=0;e:for(;40>n;n++){e=e.split("/").filter(e=>!!e);for(var i=et,r="/",a=0;a<e.length;a++){var s=a===e.length-1;if(s&&t.parent)break;if("."!==e[a])if(".."===e[a])if(r=U(r),i===i.parent){e=r+"/"+e.slice(a+1).join("/"),n--;continue e}else i=i.parent;else{r=W(r+"/"+e[a]);try{i=ep(i,e[a])}catch(e){if(44===e?.Lc&&s&&t.Le)return{path:r};throw e}if(i.pd&&(!s||t.Bd)&&(i=i.pd.root),40960==(61440&i.mode)&&(!s||t.Ad)){if(!i.jc.Zc)throw new ec(52);"/"===(i=i.jc.Zc(i)).charAt(0)||(i=U(r)+"/"+i),e=i+"/"+e.slice(a+1).join("/");continue e}}}return{path:r,node:i}}throw new ec(32)}function ef(e,t){for(var n=0,i=0;i<t.length;i++)n=(n<<5)-n+t.charCodeAt(i)|0;return(e+n>>>0)%ea.length}function ep(e,t){var n=16384==(61440&e.mode)?(n=eg(e,"x"))?n:2*!e.jc.Yc:54;if(n)throw new ec(n);for(n=ea[ef(e.id,t)];n;n=n.Uc){var i=n.name;if(n.parent.id===e.id&&i===t)return n}return e.jc.Yc(e,t)}function em(e,t,n,i){return t=ef((e=new ed(e,t,n,i)).parent.id,e.name),e.Uc=ea[t],ea[t]=e}function ev(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function eg(e,t){return eo?0:t.includes("r")&&!(292&e.mode)||t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0}function ey(e,t){if(16384!=(61440&e.mode))return 54;try{return ep(e,t),20}catch(e){}
19return eg(e,"wx")}function eb(e){if(!(e=ei[e]))throw new ec(8);return e}function ew(e,t=-1){if(e=Object.assign(new eu,e),-1==t)e:{for(t=0;4096>=t;t++)if(!ei[t])break e;throw new ec(33)}return e.Mc=t,ei[t]=e}function ex(e,t){var n=void 0,i=n?null:e;if(!(n??=e.jc.Fc))throw new ec(63);n(i,t)}var e_={open(e){e.hc=en[e.node.rd].hc,e.hc.open?.(e)},Cc(){throw new ec(70)}};function eC(e,t){en[e]={hc:t}}function ek(e,t){var n="/"===t;if(n&&et)throw new ec(10);if(!n&&t){var i=eh(t,{Bd:!1});if(t=i.path,(i=i.node).pd)throw new ec(10);if(16384!=(61440&i.mode))throw new ec(54)}t={type:e,rf:{},Td:t,Je:[]},(e=e.Jc(t)).Jc=t,t.root=e,n?et=e:i&&(i.pd=t,i.Jc&&i.Jc.Je.push(t))}function eE(e,t,n){var i=eh(e,{parent:!0}).node;if(!(e=e&&e.match(/([^\/]+|\/)\/*$/)[1]))throw new ec(28);if("."===e||".."===e)throw new ec(20);var r=ey(i,e);if(r)throw new ec(r);if(!i.jc.od)throw new ec(63);return i.jc.od(i,e,t,n)}function eS(e){return eE(e,16895,0)}function eM(e,t,n){void 0===n&&(n=t,t=438),eE(e,8192|t,n)}function eA(e,t){if(!((...e)=>{for(var t="",n=!1,i=e.length-1;-1<=i&&!n;i--){if("string"!=typeof(n=0<=i?e[i]:"/"))throw TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,n="/"===n.charAt(0)}return t=H(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."})(e))throw new ec(44);var n=eh(t,{parent:!0}).node;if(!n)throw new ec(44);var i=ey(n,t=t&&t.match(/([^\/]+|\/)\/*$/)[1]);if(i)throw new ec(i);if(!n.jc.td)throw new ec(63);n.jc.td(n,t,e)}function eP(t,n,i=438){if(""===t)throw new ec(44);if("string"==typeof n){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[n];if(void 0===r)throw Error(`Unknown file open mode: ${n}`);n=r}if(i=64&n?4095&i|32768:0,"object"==typeof t)r=t;else{var a=t.endsWith("/");r=(t=eh(t,{Ad:!(131072&n),Le:!0})).node,t=t.path}var s=!1;if(64&n)if(r){if(128&n)throw new ec(20)}else{if(a)throw new ec(31);r=eE(t,511|i,0),s=!0}if(!r)throw new ec(44);if(8192==(61440&r.mode)&&(n&=-513),65536&n&&16384!=(61440&r.mode))throw new ec(54);if(!s&&(a=r?40960==(61440&r.mode)?32:16384==(61440&r.mode)&&("r"!==ev(n)||576&n)?31:eg(r,ev(n)):44))throw new ec(a);if(512&n&&!s){if(16384==(61440&(a="string"==typeof(a=r)?eh(a,{Ad:!0}).node:a).mode))throw new ec(31);if(32768!=(61440&a.mode))throw new ec(28);var o=eg(a,"w");if(o)throw new ec(o);ex(a,{size:0,timestamp:Date.now()})}for(n&=-131713,a=r;;){if(a===a.parent){a=a.Jc.Td;var l=l?"/"!==a[a.length-1]?`${a}/${l}`:a+l:a;break}l=l?`${a.name}/${l}`:a.name,a=a.parent}return(l=ew({node:r,path:l,flags:n,seekable:!0,position:0,hc:r.hc,Se:[],error:!1})).hc.open&&l.hc.open(l),s&&(i&=511,ex(r="string"==typeof r?eh(r,{Ad:!0}).node:r,{mode:4095&i|-4096&r.mode,xc:Date.now(),gf:void 0})),!e.logReadFiles||1&n||t in el||(el[t]=1),l}function ej(e,t,n){if(null===e.Mc)throw new ec(8);if(!e.seekable||!e.hc.Cc)throw new ec(70);if(0!=n&&1!=n&&2!=n)throw new ec(28);e.position=e.hc.Cc(e,t,n),e.Se=[]}function eT(e,t,n){e=W("/dev/"+e);var i,r=(i=0,t&&(i|=365),n&&(i|=146),i);eT.Rd??(eT.Rd=64);var a=eT.Rd++<<8;eC(a,{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,n,i,r){for(var a=0,s=0;s<r;s++){try{var o=t()}catch(e){throw new ec(29)}if(void 0===o&&0===a)throw new ec(6);if(null==o)break;a++,n[i+s]=o}return a&&(e.node.Qc=Date.now()),a},write(e,t,i,r){for(var a=0;a<r;a++)try{n(t[i+a])}catch(e){throw new ec(29)}return r&&(e.node.Ac=e.node.xc=Date.now()),a}}),eM(e,r,a)}var eI={},eL=void 0,eR=(e,t)=>Object.defineProperty(t,"name",{value:e}),eO=[],eF=[0,1,,1,null,1,!0,1,!1,1],eV=class extends Error{constructor(e){super(e),this.name="BindingError"}},eD=e=>{if(!e)throw new eV(`Cannot use deleted val. handle = ${e}`);return eF[e]},eN=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=eO.pop()||eF.length;return eF[t]=e,eF[t+1]=1,t}};class eB extends Error{}var eH=e=>{for(var t="";;){var n=g[e++];if(!n)return t;t+=String.fromCharCode(n)}},eW={},eU=(e,t)=>{if(void 0===t)throw new eV("ptr should not be undefined");for(;e.rc;)t=e.ad(t),e=e.rc;return t},ez={},e$=e=>{var t=eH(e=nu(e));return nl(e),t},eG=(e,t)=>{var n=ez[e];if(void 0===n)throw new eV(e=`${t} has unknown type ${e$(e)}`);return n},eX=()=>{},eY=!1,eq=e=>globalThis.FinalizationRegistry?(eY=new FinalizationRegistry(e=>{e=e.ec,--e.count.value,0===e.count.value&&(e.sc?e.yc.Ec(e.sc):e.nc.fc.Ec(e.lc))}),eq=e=>{var t=e.ec;return t.sc&&eY.register(e,{ec:t},e),e},eX=e=>{eY.unregister(e)},eq(e)):(eq=e=>e,e),eK={},eZ=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function eQ(e){return this.kc(x[e>>2])}var eJ={},e0={}
19,e1=class extends Error{constructor(e){super(e),this.name="InternalError"}},e2=(e,t,n)=>{function i(t){if((t=n(t)).length!==e.length)throw new e1("Mismatched type converter count");for(var i=0;i<e.length;++i)e3(e[i],t[i])}e.forEach(e=>e0[e]=t);var r=Array(t.length),a=[],s=0;for(let[e,n]of t.entries())ez.hasOwnProperty(n)?r[e]=ez[n]:(a.push(n),eJ.hasOwnProperty(n)||(eJ[n]=[]),eJ[n].push(()=>{r[e]=ez[n],++s===a.length&&i(r)}));0===a.length&&i(r)};function e3(e,t,n={}){return function(e,t,n={}){var i=t.name;if(!e)throw new eV(`type "${i}" must have a positive integer typeid pointer`);if(ez.hasOwnProperty(e)){if(n.Ce)return;throw new eV(`Cannot register type '${i}' twice`)}ez[e]=t,delete e0[e],eJ.hasOwnProperty(e)&&(t=eJ[e],delete eJ[e],t.forEach(e=>e()))}(e,t,n)}var e5=(e,t,n)=>{switch(t){case 1:return n?e=>v[e]:e=>g[e];case 2:return n?e=>y[e>>1]:e=>b[e>>1];case 4:return n?e=>w[e>>2]:e=>x[e>>2];case 8:return n?e=>k[e>>3]:e=>E[e>>3];default:throw TypeError(`invalid integer width (${t}): ${e}`)}},e4=e=>{throw new eV(e.ec.nc.fc.name+" instance already deleted")},e6=[];function e9(){}var e8={},e7=(e,t,n)=>{if(void 0===e[t].pc){var i=e[t];e[t]=function(...i){if(!e[t].pc.hasOwnProperty(i.length))throw new eV(`Function '${n}' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].pc})!`);return e[t].pc[i.length].apply(this,i)},e[t].pc=[],e[t].pc[i.Ic]=i}},te=(t,n,i)=>{if(e.hasOwnProperty(t)){if(void 0===i||void 0!==e[t].pc&&void 0!==e[t].pc[i])throw new eV(`Cannot register public name '${t}' twice`);if(e7(e,t,t),e[t].pc.hasOwnProperty(i))throw new eV(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);e[t].pc[i]=n}else e[t]=n,e[t].Ic=i};function tt(e,t,n,i,r,a,s,o){this.name=e,this.constructor=t,this.Bc=n,this.Ec=i,this.rc=r,this.xe=a,this.ad=s,this.qe=o,this.Xd=[]}var tn=(e,t,n)=>{for(;t!==n;){if(!t.ad)throw new eV(`Expected null or instance of ${n.name}, got an instance of ${t.name}`);e=t.ad(e),t=t.rc}return e},ti=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e};function tr(e,t){if(null===t){if(this.Dd)throw new eV(`null is not a valid ${this.name}`);return 0}if(!t.ec)throw new eV(`Cannot pass "${ti(t)}" as a ${this.name}`);if(!t.ec.lc)throw new eV(`Cannot pass deleted object as a pointer of type ${this.name}`);return tn(t.ec.lc,t.ec.nc.fc,this.fc)}function ta(e,t){if(null===t){if(this.Dd)throw new eV(`null is not a valid ${this.name}`);if(this.kd){var n=this.Gd();return null!==e&&e.push(this.Ec,n),n}return 0}if(!t||!t.ec)throw new eV(`Cannot pass "${ti(t)}" as a ${this.name}`);if(!t.ec.lc)throw new eV(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.jd&&t.ec.nc.jd)throw new eV(`Cannot convert argument of type ${t.ec.yc?t.ec.yc.name:t.ec.nc.name} to parameter type ${this.name}`);if(n=tn(t.ec.lc,t.ec.nc.fc,this.fc),this.kd){if(void 0===t.ec.sc)throw new eV("Passing raw pointer to smart pointer is illegal");switch(this.Re){case 0:if(t.ec.yc===this)n=t.ec.sc;else throw new eV(`Cannot convert argument of type ${t.ec.yc?t.ec.yc.name:t.ec.nc.name} to parameter type ${this.name}`);break;case 1:n=t.ec.sc;break;case 2:if(t.ec.yc===this)n=t.ec.sc;else{var i=t.clone();n=this.Ne(n,eN(()=>i.delete())),null!==e&&e.push(this.Ec,n)}break;default:throw new eV("Unsupported sharing policy")}}return n}function ts(e,t){if(null===t){if(this.Dd)throw new eV(`null is not a valid ${this.name}`);return 0}if(!t.ec)throw new eV(`Cannot pass "${ti(t)}" as a ${this.name}`);if(!t.ec.lc)throw new eV(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ec.nc.jd)throw new eV(`Cannot convert argument of type ${t.ec.nc.name} to parameter type ${this.name}`);return tn(t.ec.lc,t.ec.nc.fc,this.fc)}var to=(e,t,n)=>t===n?e:void 0===n.rc||null===(e=to(e,t,n.rc))?null:n.qe(e),tl=(e,t)=>{if(!t.nc||!t.lc)throw new e1("makeClassHandle requires ptr and ptrType");if(!!t.yc!=!!t.sc)throw new e1("Both smartPtrType and smartPtr must be specified");return t.count={value:1},eq(Object.create(e,{ec:{value:t,writable:!0}}))};function tc(e,t,n,i,r,a,s,o,l,c,u){this.name=e,this.fc=t,this.Dd=n,this.jd=i,this.kd=r,this.Me=a,this.Re=s,this.Zd=o,this.Gd=l,this.Ne=c,this.Ec=u,r||void 0!==t.rc?this.oc=ta:(this.oc=i?tr:ts,this.vc=null)}var tu=(t,n,i)=>{if(!e.hasOwnProperty(t))throw new e1("Replacing nonexistent public symbol");void 0!==e[t].pc&&void 0!==i?e[t].pc[i]=n:(e[t]=n,e[t].Ic=i)},td=(e,t)=>{e=eH(e);var n=ny.get(t);if("function"!=typeof n)throw new eV(`unknown function pointer with signature ${e}: ${t}`);return n};
19class th extends Error{}var tf=(e,t)=>{var n=[],i={};throw t.forEach(function e(t){i[t]||ez[t]||(e0[t]?e0[t].forEach(e):(n.push(t),i[t]=!0))}),new th(`${e}: `+n.map(e$).join([", "]))};function tp(e,t,n,i,r){var a=t.length;if(2>a)throw new eV("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==n,o=function(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].vc)return!0;return!1}(t),l=!t[0].Ie,c=a-2,u=Array(c),d=[],h=[];return eR(e,function(...e){if(h.length=0,d.length=s?2:1,d[0]=r,s){var n=t[1].oc(h,this);d[1]=n}for(var a=0;a<c;++a)u[a]=t[a+2].oc(h,e[a]),d.push(u[a]);if(e=i(...d),o)eZ(h);else for(a=s?1:2;a<t.length;a++){var f=1===a?n:u[a-2];null!==t[a].vc&&t[a].vc(f)}return l?t[0].kc(e):void 0})}var tm,tv,tg,ty,tb,tw=(e,t)=>{for(var n=[],i=0;i<e;i++)n.push(x[t+4*i>>2]);return n},tx=e=>{let t=(e=e.trim()).indexOf("(");return -1===t?e:e.slice(0,t)},t_=(e,t,n)=>{if(!(e instanceof Object))throw new eV(`${n} with invalid "this": ${e}`);if(!(e instanceof t.fc.constructor))throw new eV(`${n} incompatible with "this" of type ${e.constructor.name}`);if(!e.ec.lc)throw new eV(`cannot call emscripten binding method ${n} on deleted object`);return tn(e.ec.lc,e.ec.nc.fc,t.fc)},tC=e=>{9<e&&0==--eF[e+1]&&(eF[e]=void 0,eO.push(e))},tk={name:"emscripten::val",kc:e=>{var t=eD(e);return tC(e),t},oc:(e,t)=>eN(t),wc:eQ,vc:null},tE=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.kc(v[e])}:function(e){return this.kc(g[e])};case 2:return n?function(e){return this.kc(y[e>>1])}:function(e){return this.kc(b[e>>1])};case 4:return n?function(e){return this.kc(w[e>>2])}:function(e){return this.kc(x[e>>2])};default:throw TypeError(`invalid integer width (${t}): ${e}`)}},tS=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,tM=(e,t,n)=>{if(e>>=1,16<(t=G(b,e,t/2,n))-e&&tS)return tS.decode(b.subarray(e,t));for(n="";e<t;++e)n+=String.fromCharCode(b[e]);return n},tA=(e,t,n)=>{if(2>(n??=0x7fffffff))return 0;n-=2;var i=t;n=n<2*e.length?n/2:e.length;for(var r=0;r<n;++r)y[t>>1]=e.charCodeAt(r),t+=2;return y[t>>1]=0,t-i},tP=e=>2*e.length,tj=(e,t,n)=>{var i="";e>>=2;for(var r=0;!(r>=t/4);r++){var a=x[e+r];if(!a&&!n)break;i+=String.fromCodePoint(a)}return i},tT=(e,t,n)=>{if(4>(n??=0x7fffffff))return 0;var i=t;n=i+n-4;for(var r=0;r<e.length;++r){var a=e.codePointAt(r);if(65535<a&&r++,w[t>>2]=a,(t+=4)+4>n)break}return w[t>>2]=0,t-i},tI=e=>{for(var t=0,n=0;n<e.length;++n)65535<e.codePointAt(n)&&n++,t+=4;return t},tL=[],tR={},tO=e=>{var t=tR[e];return void 0===t?eH(e):t},tF=[0,31,60,91,121,152,182,213,244,274,305,335],tV=[0,31,59,90,120,151,181,212,243,273,304,334],tD=[],tN=e=>{e.ff=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")},tB=e=>{e.pf=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance")},tH=e=>{var t="EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_clip_control EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_polygon_offset_clamp EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw WEBGL_polygon_mode".split(" ");return(e.getSupportedExtensions()||[]).filter(e=>t.includes(e))},tW=1,tU=[],tz=[],t$=[],tG=[],tX=[],tY=[],tq=[],tK=[],tZ=[],tQ={},tJ=4,t0=0,t1=e=>{for(var t=tW++,n=e.length;n<t;n++)e[n]=null;return t},t2=(e,t,n,i)=>{for(var r=0;r<e;r++){var a=tv[n](),s=a&&t1(i);a?(a.name=s,i[s]=a):tg||=1282,w[t+4*r>>2]=s}},t3=(e,t)=>{var n=t1(tK),i={handle:n,attributes:t,version:t.nf,tc:e};if(e.canvas&&(e.canvas.ge=i),tK[n]=i,(void 0===t.re||t.re)&&((e=i)||(e=ty),!e.De))for(var r of(e.De=!0,(t=e.tc).Ke=t.getExtension("WEBGL_multi_draw"),t.ue=t.getExtension("EXT_polygon_offset_clamp"),t.te=t.getExtension("EXT_clip_control"),t.Te=t.getExtension("WEBGL_polygon_mode"),tN(t),tB(t),2<=e.version&&(t.Nd=t.getExtension("EXT_disjoint_timer_query_webgl2")),(2>e.version||!t.Nd)&&(t.Nd=t.getExtension("EXT_disjoint_timer_query")),tH(t)))r.includes("lose_context")||r.includes("debug")||t.getExtension(r);return n},t5=t=>(ty=tK[t],e.ctx=tv=ty?.tc,!(t&&!tv)),t4={},t6=()=>
19{if(!tb){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:c||"./this.program"};for(e in t4)void 0===t4[e]?delete t[e]:t[e]=t4[e];var n=[];for(e in t)n.push(`${e}=${t[e]}`);tb=n}return tb},t9=[],t8=()=>{var e=tH(tv);return e.concat(e.map(e=>"GL_"+e))},t7=e=>{var t=q(e)+1,n=nc(t);return n&&K(e,g,n,t),n},ne=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),nt=e=>0==(e-=5120)?v:1==e?g:2==e?y:4==e?w:6==e?_:5==e||28922==e||28520==e||30779==e||30782==e?x:b;ea=Array(4096),ek(ee,"/"),eS("/tmp"),eS("/home"),eS("/home/web_user"),eS("/dev"),eC(259,{read:()=>0,write:(e,t,n,i)=>i,Cc:()=>0}),eM("/dev/null",259),Q(1280,{Pd(){e:{if(!Y.length){var e=null;if(globalThis.window?.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e){var t=null;break e}t=Array(q(e)+1),e=K(e,t,0,t.length),t.length=e,Y=t}t=Y.shift()}return t},Fd(e,t){null===t||10===t?(S(X(e.output)),e.output=[]):0!=t&&e.output.push(t)},gd(e){0<e.output?.length&&(S(X(e.output)),e.output=[])},Fe:()=>({bf:25856,df:5,af:191,cf:35387,$e:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),Ge:()=>0,He:()=>[24,80]}),Q(1536,{Fd(e,t){null===t||10===t?(M(X(e.output)),e.output=[]):0!=t&&e.output.push(t)},gd(e){0<e.output?.length&&(M(X(e.output)),e.output=[])}}),eM("/dev/tty",1280),eM("/dev/tty1",1536),nr=new Uint8Array(1024),na=0,eT("random",ns=()=>
19(0===na&&(z(nr),na=nr.byteLength),nr[--na])),eT("urandom",ns),eS("/dev/shm"),eS("/dev/shm/tmp"),eS("/proc"),no=eS("/proc/self"),eS("/proc/self/fd"),ek({Jc(){var e=em(no,"fd",16895,73);return e.hc={Cc:ee.hc.Cc},e.jc={Yc(e,t){var n=eb(e=+t);return(e={parent:null,Jc:{Td:"fake"},jc:{Zc:()=>n.path},id:e+1}).parent=e},Hd:()=>Array.from(ei.entries()).filter(([,e])=>e).map(([e])=>e.toString())},e}},"/proc/self/fd");let nn=e9.prototype;Object.assign(nn,{isAliasOf:function(e){if(!(this instanceof e9&&e instanceof e9))return!1;var t=this.ec.nc.fc,n=this.ec.lc;e.ec=e.ec;var i=e.ec.nc.fc;for(e=e.ec.lc;t.rc;)n=t.ad(n),t=t.rc;for(;i.rc;)e=i.ad(e),i=i.rc;return t===i&&n===e},clone:function(){if(this.ec.lc||e4(this),this.ec.Vc)return this.ec.count.value+=1,this;var e=eq,t=Object,n=t.create,i=Object.getPrototypeOf(this),r=this.ec;return e=e(n.call(t,i,{ec:{value:{count:r.count,Xc:r.Xc,Vc:r.Vc,lc:r.lc,nc:r.nc,sc:r.sc,yc:r.yc}}})),e.ec.count.value+=1,e.ec.Xc=!1,e},delete(){if(this.ec.lc||e4(this),this.ec.Xc&&!this.ec.Vc)throw new eV("Object already scheduled for deletion");eX(this);var e=this.ec;--e.count.value,0===e.count.value&&(e.sc?e.yc.Ec(e.sc):e.nc.fc.Ec(e.lc)),this.ec.Vc||(this.ec.sc=void 0,this.ec.lc=void 0)},isDeleted:function(){return!this.ec.lc},deleteLater:function(){if(this.ec.lc||e4(this),this.ec.Xc&&!this.ec.Vc)throw new eV("Object already scheduled for deletion");return e6.push(this),this.ec.Xc=!0,this}});let ni=Symbol.dispose;ni&&(nn[ni]=nn.delete),Object.assign(tc.prototype,{ye(e){return this.Zd&&(e=this.Zd(e)),e},Md(e){this.Ec?.(e)},wc:eQ,kc:function(e){function t(){return this.kd?tl(this.fc.Bc,{nc:this.Me,lc:n,yc:this,sc:e}):tl(this.fc.Bc,{nc:this,lc:e})}var n=this.ye(e);if(!n)return this.Md(e),null;var i=eW[eU(this.fc,n)];if(void 0!==i)return 0===i.ec.count.value?(i.ec.lc=n,i.ec.sc=e,i.clone()):(i=i.clone(),this.Md(e),i);if(!(i=e8[i=this.fc.xe(n)]))return t.call(this);i=this.jd?i.oe:i.pointerType;var r=to(n,this.fc,i.fc);return null===r?t.call(this):this.kd?tl(i.fc.Bc,{nc:i,lc:r,yc:this,sc:e}):tl(i.fc.Bc,{nc:i,lc:r})}});for(let e=0;32>e;++e)t9.push(Array(e));if(e.print&&(S=e.print),e.printErr&&(M=e.printErr),e.wasmBinary&&(f=e.wasmBinary),e.thisProgram&&(c=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var nr,na,ns,no,nl,nc,nu,nd,nh,nf,np,nm,nv,ng,ny,nb={325014:(e,t,n,i,r)=>{if("undefined"==typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if(void 0===window.miniaudio){window.miniaudio={referenceCount:0},window.miniaudio.device_type={},window.miniaudio.device_type.playback=e,window.miniaudio.device_type.capture=t,window.miniaudio.device_type.duplex=n,window.miniaudio.device_state={},window.miniaudio.device_state.stopped=i,window.miniaudio.device_state.started=r;let a=window.miniaudio;a.devices=[],a.track_device=function(e){for(var t=0;t<a.devices.length;++t)if(null==a.devices[t])return a.devices[t]=e,t;return a.devices.push(e),a.devices.length-1},a.untrack_device_by_index=function(e){for(a.devices[e]=null;0<a.devices.length;)if(null==a.devices[a.devices.length-1])a.devices.pop();else break},a.untrack_device=function(e){for(var t=0;t<a.devices.length;++t)if(a.devices[t]==e)return a.untrack_device_by_index(t)},a.get_device_by_index=function(e){return a.devices[e]},a.unlock_event_types=["touchend","click"],a.unlock=function(){for(var e=0;e<a.devices.length;++e){var t=a.devices[e];null!=t&&null!=t.zc&&t.state===a.device_state.started&&t.zc.resume().then(()=>{nd(t.Wd)},e=>{console.error("Failed to resume audiocontext",e)})}a.unlock_event_types.map(function(e){document.removeEventListener(e,a.unlock,!0)})},a.unlock_event_types.map(function(e){document.addEventListener(e,a.unlock,!0)})}return window.miniaudio.referenceCount+=1,1},327192:()=>{void 0!==window.miniaudio&&(window.miniaudio.unlock_event_types.map(function(e){document.removeEventListener(e,window.miniaudio.unlock,!0)}),--window.miniaudio.referenceCount,0===window.miniaudio.referenceCount&&delete window.miniaudio)},327496:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,327600:()=>{try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.sampleRate;return e.close(),t}catch(e){return 0}},327771:(e,t,n,i,r,a)=>{if(void 0===window.miniaudio)return -1;var s={},o={};return e==window.miniaudio.device_type.playback&&0!=n&&(o.sampleRate=n),s.zc=new(window.AudioContext||window.webkitAudioContext)(o),s.zc.suspend(),s.state=window.miniaudio.device_state.stopped,n=0,e!=window.miniaudio.device_type.playback&&(n=t),s.Oc=s.zc.createScriptProcessor(i,n,t),s.Oc.onaudioprocess=function(n){if((null==s.hd||0==s.hd.length)&&(s.hd=new Float32Array(_.buffer,r,i*t)),e==window.miniaudio.device_type.capture||e==window.miniaudio.device_type.duplex){for(var o=0;o<t;o+=1)for(var l=n.inputBuffer.getChannelData(o),c=s.hd,u=0;u<i;u+=1)c[u*t+o]=l[u];nh(a,i,r)}if(e==window.miniaudio.device_type.playback||e==window.miniaudio.device_type.duplex)for(nf(a,i,r),o=0;o<n.outputBuffer.numberOfChannels;++o)for(l=n.outputBuffer.getChannelData(o),c=s.hd,u=0;u<i;u+=1)l[u]=c[u*t+o];else for(o=0;o<n.outputBuffer.numberOfChannels;++o)n.outputBuffer.getChannelData(o).fill(0)},e!=window.miniaudio.device_type.capture&&e!=window.miniaudio.device_type.duplex||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(e){s.sd=s.zc.createMediaStreamSource(e),s.sd.connect(s.Oc),s.Oc.connect(s.zc.destination)}).catch(function(e){console.log("Failed to get user media: "+e)}),e==window.miniaudio.device_type.playback&&s.Oc.connect(s.zc.destination),s.Wd=a,window.miniaudio.track_device(s)},330648:e=>window.miniaudio.get_device_by_index(e).zc.sampleRate,330721:e=>{void 0!==(e=window.miniaudio.get_device_by_index(e)).Oc&&(e.Oc.onaudioprocess=function(){},e.Oc.disconnect(),e.Oc=void 0),void 0!==e.sd&&(e.sd.disconnect(),e.sd=void 0),e.zc.close(),e.zc=void 0,e.Wd=void 0},331121:e=>{window.miniaudio.untrack_device_by_index(e)},331171:e=>{(e=window.miniaudio.get_device_by_index(e)).zc.resume(),e.state=window.miniaudio.device_state.started},331310:e=>{(e=window.miniaudio.get_device_by_index(e)).zc.suspend(),e.state=window.miniaudio.device_state.stopped}},nw={pa:function(e,t,n){eL=n;try{var i=eb(e);switch(t){case 0:var r=B();if(0>r)break;for(;ei[r];)r++;return function(e,t=-1){return e=ew(e,t),e.hc?.hf?.(e),e}(i,r).Mc;case 1:case 2:case 13:case 14:return 0;case 3:return i.flags;case 4:return r=B(),i.flags|=r,0;case 12:return y[(r=B())+0>>1]=2,0}return -28}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return-e.Lc}},vb:function(e,t,n){eL=n;try{var i=eb(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return i.mc?0:-59;case 21505:if(!i.mc)return -59;if(i.mc.Kc.Fe){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var r=B();w[r>>2]=25856,w[r+4>>2]=5,w[r+8>>2]=191,w[r+12>>2]=35387;for(var a=0;32>a;a++)v[r+a+17]=e[a]||0}return 0;case 21506:case 21507:case 21508:if(!i.mc)return -59;if(i.mc.Kc.Ge)for(r=B(),e=[],a=0;32>a;
19a++)e.push(v[r+a+17]);return 0;case 21519:if(!i.mc)return -59;return w[(r=B())>>2]=0;case 21520:return i.mc?-28:-59;case 21537:case 21531:if(r=B(),!i.hc.Ee)throw new ec(59);return i.hc.Ee(i,t,r);case 21523:if(!i.mc)return -59;return i.mc.Kc.He&&(a=[24,80],y[(r=B())>>1]=a[0],y[r+2>>1]=a[1]),0;default:return -28}}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return-e.Lc}},wb:function(e,t,n,i){eL=i;try{var r=t=t?X(g,t):"";if("/"===r.charAt(0))t=r;else{var a=-100===e?"/":eb(e).path;if(0==r.length)throw new ec(44);t=a+"/"+r}var s=i?B():0;return eP(t,n,s).Mc}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return-e.Lc}},zb:()=>I(""),la:(e,t,n)=>{e=eH(e),t=eG(t,"wrapper"),n=eD(n);var i=t.fc,r=i.Bc,a=i.rc.Bc,s=i.rc.constructor;return e=eR(e,function(...e){for(var t of i.rc.Xd)if(this[t]===a[t])throw new eB(`Pure virtual function ${t} must be implemented in JavaScript`);Object.defineProperty(this,"__parent",{value:r}),this.__construct(...e)}),r.__construct=function(...e){if(this===r)throw new eV("Pass correct 'this' to __construct");e=s.implement(this,...e),eX(e);var t=e.ec;if(e.notifyOnDestruction(),t.Vc=!0,Object.defineProperties(this,{ec:{value:t}}),eq(this),e=eU(i,e=t.lc),eW.hasOwnProperty(e))throw new eV(`Tried to register registered instance: ${e}`);eW[e]=this},r.__destruct=function(){if(this===r)throw new eV("Pass correct 'this' to __destruct");eX(this);var e=this.ec.lc;if(e=eU(i,e),eW.hasOwnProperty(e))delete eW[e];else throw new eV(`Tried to unregister unregistered instance: ${e}`)},e.prototype=Object.create(r),Object.assign(e.prototype,n),eN(e)},Cb:e=>{var t=eK[e];delete eK[e];var n=t.Gd,i=t.Ec,r=t.Od;e2([e],r.map(e=>e.Be).concat(r.map(e=>e.Pe)),e=>{var a,s,o={};for([a,s]of r.entries()){let t=e[a],n=s.ze,i=s.Ae,l=e[a+r.length],c=s.Oe,u=s.Qe;o[s.ve]={read:e=>t.kc(n(i,e)),write:(e,t)=>{var n=[];c(u,e,l.oc(n,t)),eZ(n)},optional:t.optional}}return[{name:t.name,kc:e=>{var t,n={};for(t in o)n[t]=o[t].read(e);return i(e),n},oc:(e,t)=>{for(var r in o)if(!(r in t||o[r].optional))throw TypeError(`Missing field: "${r}"`);var a=n();for(r in o)o[r].write(a,t[r]);return null!==e&&e.push(i,a),a},wc:eQ,vc:i}]})},ia:(e,t,n,i,r)=>{t=eH(t);let a=e=>e;if(i=0n===i){let e=8*n;r=(a=t=>BigInt.asUintN(e,t))(r)}e3(e,{name:t,kc:a,oc:(e,t)=>("number"==typeof t&&(t=BigInt(t)),t),wc:e5(t,n,!i),vc:null})},cb:(e,t,n,i)=>{e3(e,{name:t=eH(t),kc:function(e){return!!e},oc:function(e,t){return t?n:i},wc:function(e){return this.kc(g[e])},vc:null})},c:(e,t,n,i,r,a,s,o,l,c,u,d,h)=>{u=eH(u),a=td(r,a),o&&=td(s,o),c&&=td(l,c),h=td(d,h);var f,p,m=48<=(p=(f=(f=u).replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0))&&57>=p?`_${f}`:f;te(m,function(){tf(`Cannot construct ${u} due to unbound types`,[i])}),e2([e,t,n],i?[i]:[],t=>{if(t=t[0],i)var n,r=t.fc,s=r.Bc;else s=e9.prototype;var l=Object.create(s,{constructor:{value:t=eR(u,function(...e){if(Object.getPrototypeOf(this)!==l)throw new eV(`Use 'new' to construct ${u}`);if(void 0===d.Rc)throw new eV(`${u} has no accessible constructor`);var t=d.Rc[e.length];if(void 0===t)throw new eV(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.Rc).toString()}) parameters instead!`);return t.apply(this,e)})}});t.prototype=l;var d=new tt(u,t,l,h,r,a,o,c);return d.rc&&((n=d.rc).bd??(n.bd=[]),d.rc.bd.push(d)),r=new tc(u,d,!0,!1,!1),n=new tc(u+"*",d,!1,!1,!1),s=new tc(u+" const*",d,!1,!0,!1),e8[e]={pointerType:n,oe:s},tu(m,t),[r,n,s]})},N:(e,t,n,i,r,a,s)=>{var o=tw(n,i);t=tx(t=eH(t)),a=td(r,a),e2([],[e],e=>{function i(){tf(`Cannot call ${r} due to unbound types`,o)}e=e[0];var r=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.fc.constructor;return void 0===l[t]?(i.Ic=n-1,l[t]=i):(e7(l,t,r),l[t].pc[n-1]=i),e2([],o,i=>{if(i=tp(r,[i[0],null].concat(i.slice(1)),null,a,s),void 0===l[t].pc?(i.Ic=n-1,l[t]=i):l[t].pc[n-1]=i,e.fc.bd)for(let n of e.fc.bd)n.constructor.hasOwnProperty(t)||(n.constructor[t]=i);return[]}),[]})},V:(e,t,n,i,r,a,s,o)=>{t=eH(t),a=td(r,a),e2([],[e],e=>{e=e[0];var r=`${e.name}.${t}`,l={get(){tf(`Cannot access ${r} due to unbound types`,[n])},enumerable:!0,configurable:!0};return l.set=o?()=>{tf(`Cannot access ${r} due to unbound types`,[n])}:()=>{throw new eV(`${r} is a read-only property`)},Object.defineProperty(e.fc.constructor,t,l),e2([],[n],n=>{n=n[0];var r={get:()=>n.kc(a(i)),enumerable:!0};return o&&(o=td(s,o),r.set=e=>{var t=[];o(i,n.oc(t,e)),eZ(t)}),Object.defineProperty(e.fc.constructor,t,r),[]}),[]})},F:(e,t,n,i,r,a)=>{var s=tw(t,n);r=td(i,r),e2([],[e],e=>{e=e[0];var n=`constructor ${e.name}`;if(void 0===e.fc.Rc&&(e.fc.Rc=[]),void 0!==e.fc.Rc[t-1])throw new eV(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.fc.Rc[t-1]=()=>{tf(`Cannot construct ${e.name} due to unbound types`,s)},e2([],s,i=>(i.splice(1,0,null),e.fc.Rc[t-1]=tp(n,i,null,r,a),[])),[]})},a:(e,t,n,i,r,a,s,o)=>{var l=tw(n,i);t=tx(t=eH(t)),a=td(r,a),e2([],[e],e=>{function i(){tf(`Cannot call ${r} due to unbound types`,l)}e=e[0];var r=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),o&&e.fc.Xd.push(t);var c=e.fc.Bc,u=c[t];return void 0===u||void 0===u.pc&&u.className!==e.name&&u.Ic===n-2?(i.Ic=n-2,i.className=e.n
19ame,c[t]=i):(e7(c,t,r),c[t].pc[n-2]=i),e2([],l,i=>(i=tp(r,i,e,a,s),void 0===c[t].pc?(i.Ic=n-2,c[t]=i):c[t].pc[n-2]=i,[])),[]})},b:(e,t,n,i,r,a,s,o,l,c)=>{t=eH(t),r=td(i,r),e2([],[e],e=>{e=e[0];var i=`${e.name}.${t}`,u={get(){tf(`Cannot access ${i} due to unbound types`,[n,s])},enumerable:!0,configurable:!0};return u.set=l?()=>tf(`Cannot access ${i} due to unbound types`,[n,s]):()=>{throw new eV(i+" is a read-only property")},Object.defineProperty(e.fc.Bc,t,u),e2([],l?[n,s]:[n],n=>{var s=n[0],u={get(){var t=t_(this,e,i+" getter");return s.kc(r(a,t))},enumerable:!0};if(l){l=td(o,l);var d=n[1];u.set=function(t){var n=t_(this,e,i+" setter"),r=[];l(c,n,d.oc(r,t)),eZ(r)}}return Object.defineProperty(e.fc.Bc,t,u),[]}),[]})},$a:e=>e3(e,tk),ma:(t,n,i,r,a)=>{switch(n=eH(n),a=0===a?"object":1===a?"number":"string"){case"object":function s(){}s.values={},e3(t,{name:n,constructor:s,valueType:a,kc:function(e){return this.constructor.values[e]},oc:(e,t)=>t.value,wc:tE(n,i,r),vc:null}),te(n,s);break;case"number":var o={};e3(t,{name:n,Ed:o,valueType:a,kc:e=>e,oc:(e,t)=>t,wc:tE(n,i,r),vc:null}),te(n,o),delete e[n].Ic;break;case"string":e3(t,{name:n,fe:{},ae:{},Ed:o={},valueType:a,kc:function(e){return this.ae[e]},oc:function(e,t){return this.fe[t]},wc:tE(n,i,r),vc:null}),te(n,o),delete e[n].Ic}},k:(e,t,n)=>{var i=eG(e,"enum");switch(t=eH(t),i.valueType){case"object":e=i.constructor,i=Object.create(i.constructor.prototype,{value:{value:n},constructor:{value:eR(`${i.name}_${t}`,function(){})}}),e.values[n]=i,e[t]=i;break;case"number":i.Ed[t]=n;break;case"string":i.fe[t]=n,i.ae[n]=t,i.Ed[t]=t}},ha:(e,t,n)=>{e3(e,{name:t=eH(t),kc:e=>e,oc:(e,t)=>t,wc:((e,t)=>{switch(t){case 4:return function(e){return this.kc(_[e>>2])};case 8:return function(e){return this.kc(C[e>>3])};default:throw TypeError(`invalid float width (${t}): ${e}`)}})(t,n),vc:null})},j:(e,t,n,i,r,a)=>{var s=tw(t,n);e=tx(e=eH(e)),r=td(i,r),te(e,function(){tf(`Cannot call ${e} due to unbound types`,s)},t-1),e2([],s,n=>(tu(e,tp(e,[n[0],null].concat(n.slice(1)),null,r,a),t-1),[]))},v:(e,t,n,i,r)=>{t=eH(t);let a=e=>e;if(0===i){var s=32-8*n;r=(a=e=>e<<s>>>s)(r)}e3(e,{name:t,kc:a,oc:(e,t)=>t,wc:e5(t,n,0!==i),vc:null})},h:(e,t,n)=>{function i(e){return new r(v.buffer,x[e+4>>2],x[e>>2])}var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];e3(e,{name:n=eH(n),kc:i,wc:i},{Ce:!0})},ab:(e,t)=>{e3(e,{name:t=eH(t),kc(e){var t=(t=e+4)?X(g,t,x[e>>2],!0):"";return nl(e),t},oc(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;if(!(n||ArrayBuffer.isView(t)&&1==t.BYTES_PER_ELEMENT))throw new eV("Cannot pass non-string to std::string");var i=n?q(t):t.length,r=nc(4+i+1),a=r+4;return x[r>>2]=i,n?K(t,g,a,i+1):g.set(t,a),null!==e&&e.push(nl,r),r},wc:eQ,vc(e){nl(e)}})},S:(e,t,n)=>{if(n=eH(n),2===t)var i=tM,r=tA,a=tP;else i=tj,r=tT,a=tI;e3(e,{name:n,kc:e=>{var n=i(e+4,x[e>>2]*t,!0);return nl(e),n},oc:(e,i)=>{if("string"!=typeof i)throw new eV(`Cannot pass non-string to C++ string type ${n}`);var s=a(i),o=nc(4+s+t);return x[o>>2]=s/t,r(i,o+4,s+t),null!==e&&e.push(nl,o),o},wc:eQ,vc(e){nl(e)}})},lb:(e,t,n,i,r,a)=>{eK[e]={name:eH(t),Gd:td(n,i),Ec:td(r,a),Od:[]}},kb:(e,t,n,i,r,a,s,o,l,c)=>{eK[e].Od.push({ve:eH(t),Be:n,ze:td(i,r),Ae:a,Pe:s,Oe:td(o,l),Qe:c})},db:(e,t)=>{e3(e,{Ie:!0,name:t=eH(t),kc:()=>{},oc:()=>{}})},ob:()=>{throw 1/0},m:(e,t,n)=>{var i,r,[a,...s]=((e,t)=>{for(var n=Array(e),i=0;i<e;++i)n[i]=eG(x[t+4*i>>2],`parameter ${i}`);return n})(e,t),o=a.oc.bind(a),l=s.map(e=>e.wc.bind(e)),c=Array(--e);return i=eR(t=`methodCaller<(${s.map(e=>e.name)}) => ${a.name}>`,(t,i,r,a)=>{for(var s=0,u=0;u<e;++u)c[u]=l[u](a+s),s+=8;switch(n){case 0:var d=eD(t).apply(null,c);break;case 2:d=Reflect.construct(eD(t),c);break;case 3:d=c[0];break;case 1:d=eD(t)[tO(i)](...c)}return d=o(t=[],d),t.length&&(x[r>>2]=eN(t)),d}),r=tL.length,tL.push(i),r},jb:tC,bb:(e,t)=>eN((e=eD(e))[t=eD(t)]),ga:e=>{9<e&&(eF[e+1]+=1)},l:(e,t,n,i,r)=>tL[e](t,n,i,r),gb:()=>eN([]),ib:e=>eN(tO(e)),Ob:()=>eN({}),Fa:e=>{eZ(eD(e)),tC(e)},q:(e,t,n)=>{e=eD(e),t=eD(t),n=eD(n),e[t]=n},qb:function(e,t){e=new Date(1e3*(e=-0x20000000000000>e||0x20000000000000<e?NaN:Number(e))),w[t>>2]=e.getUTCSeconds(),w[t+4>>2]=e.getUTCMinutes(),w[t+8>>2]=e.getUTCHours(),w[t+12>>2]=e.getUTCDate(),w[t+16>>2]=e.getUTCMonth(),w[t+20>>2]=e.getUTCFullYear()-1900,w[t+24>>2]=e.getUTCDay(),w[t+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},rb:function(e,t){e=new Date(1e3*(e=-0x20000000000000>e||0x20000000000000<e?NaN:Number(e))),w[t>>2]=e.getSeconds(),w[t+4>>2]=e.getMinutes(),w[t+8>>2]=e.getHours(),w[t+12>>2]=e.getDate(),w[t+16>>2]=e.getMonth(),w[t+20>>2]=e.getFullYear()-1900,w[t+24>>2]=e.getDay();var n=e.getFullYear();w[t+28>>2]=(0!=n%4||0==n%100&&0!=n%400?tV:tF)[e.getMonth()]+e.getDate()-1|0,w[t+36>>2]=-(60*e.getTimezoneOffset()),n=new Date(e.getFullYear(),6,1).getTimezoneOffset();var i=new Date(e.getFullYear(),0,1).getTimezoneOffset();w[t+32>>2]=0|(n!=i&&e.getTimezoneOffset()==Math.min(i,n))},sb:(e,t,n,i)=>{var r=(new Date).getFullYear(),a=new Date(r,0,1).getTimezoneOffset();r=new Date(r,6,1).getTimezoneOffset(),x[e>>2]=60*Math.max(a,r),w[t>>2]=Number(a!=r),e=(t=e=>{var t=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`})(a),t=t(r),r<a?(K(e,g,n,17),K(t,g,i,17)):(K(e,g,i,17),K(t,g,n,17))},Ia:function(e,t,n){(e=tK[e].tc.qd)&&e.beginPixelLocalStorageWEBGL(new Uint32Array(ng.buffer,4*n,t))},yb:function(e,t,n){return 0<=e&&3>=e?(k[n>>3]=BigInt(Math.round(1e6*(0===e?Date.now():performance.now()))),0):28},fb:function(t,n,i){var r=e.images;r||(e.images=r=new Map);var a=new Image;r.set(t,a),n=e.HEAP8.subarray(n,n+i),(i=new Uint8Array(i)).set(n),a.src=URL.createObjectURL(new Blob([i],{type:"image/png"})),a.onload=function(){e._setWebImage(t,a.width,a.height)}},eb:function(t){var n=e.images;n&&n.get(t)&&n.delete(t)},s:(e,t,n)=>{tD.length=0;for(var i;i=g[t++];){var r=105!=i;r&=112!=i,n+=r&&n%8?4:0,tD.push(112==i?x[n>>2]:106==i?k[n>>3]:105==i?w[n>>2]:C[n>>3]),n+=r?8:4}return nb[e](...tD)},xb:()=>Date.now(),Xa:()=>performance.now(),pb:e=>{var t=g.length;if(0x80000000<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+0x6000000);e:{i=(Math.min(0x80000000,65536*Math.ceil(Math.max(e,i)/65536))-ng.buffer.byteLength+65535)/65536|0;try{ng.grow(i),T();var r=1;break e}catch(e){}r=void 0}if(r)return!0}return!1},t:(e,t)=>
19(e=tK[e],(t=t?X(g,t):"").startsWith("GL_")&&(t=t.slice(3)),"WEBGL_draw_instanced_base_vertex_base_instance"==t&&tN(tv),"WEBGL_multi_draw_instanced_base_vertex_base_instance"==t&&tB(tv),"WEBGL_multi_draw"==t&&(tv.Ke=tv.getExtension("WEBGL_multi_draw")),"EXT_polygon_offset_clamp"==t&&(tv.ue=tv.getExtension("EXT_polygon_offset_clamp")),"EXT_clip_control"==t&&(tv.te=tv.getExtension("EXT_clip_control")),"WEBGL_polygon_mode"==t&&(tv.Te=tv.getExtension("WEBGL_polygon_mode")),!!e.tc.getExtension(t)),f:()=>ty?ty.handle:0,ja:e=>t5(e)?0:-5,Ga:function(e){return(e=tK[e].tc).Yd=e.getExtension("WEBGL_provoking_vertex"),!!e.Yd},La:function(e){let t=(e=tK[e].tc).getExtension("WEBGL_shader_pixel_local_storage");if(t&&t.isCoherent()){if(5==t.framebufferTexturePixelLocalStorageWEBGL.length)return e.qd=t,!0;console.warn("WEBGL_shader_pixel_local_storage is advertised, but a deprecated version has been detected. Disabling.")}return!1},Ha:function(e,t,n){(e=tK[e].tc.qd)&&e.endPixelLocalStorageWEBGL(new Uint32Array(ng.buffer,4*n,t))},mb:(e,t)=>{var n,i=0,r=0;for(n of t6()){var a=t+i;x[e+r>>2]=a,i+=K(n,g,a,1/0)+1,r+=4}return 0},nb:(e,t)=>{var n=t6();for(var i of(x[e>>2]=n.length,e=0,n))e+=q(i)+1;return x[t>>2]=e,0},na:function(e){try{var t=eb(e);if(null===t.Mc)throw new ec(8);t.Cd&&(t.Cd=null);try{t.hc.close&&t.hc.close(t)}catch(e){throw e}finally{ei[t.Mc]=null}return t.Mc=null,0}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return e.Lc}},ub:function(e,t,n,i){try{e:{var r=eb(e);e=t;for(var a,s=t=0;s<n;s++){var o=x[e>>2],l=x[e+4>>2];e+=8;var c=a,u=v;if(0>l||0>c)throw new ec(28);if(null===r.Mc||1==(2097155&r.flags))throw new ec(8);if(16384==(61440&r.node.mode))throw new ec(31);if(!r.hc.read)throw new ec(28);var d=void 0!==c;if(d){if(!r.seekable)throw new ec(70)}else c=r.position;var h=r.hc.read(r,u,o,l,c);if(d||(r.position+=h),0>h){var f=-1;break e}if(t+=h,h<l)break;void 0!==a&&(a+=h)}f=t}return x[i>>2]=f,0}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return e.Lc}},tb:function(e,t,n,i){t=-0x20000000000000>t||0x20000000000000<t?NaN:Number(t);try{if(isNaN(t))return 61;var r=eb(e);return ej(r,t,n),k[i>>3]=BigInt(r.position),r.Cd&&0===t&&0===n&&(r.Cd=null),0}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return e.Lc}},oa:function(e,t,n,i){try{e:{var r=eb(e);e=t;for(var a,s=t=0;s<n;s++){var o=x[e>>2],l=x[e+4>>2];e+=8;var c=a,u=v;if(0>l||0>c)throw new ec(28);if(null===r.Mc||0==(2097155&r.flags))throw new ec(8);if(16384==(61440&r.node.mode))throw new ec(31);if(!r.hc.write)throw new ec(28);r.seekable&&1024&r.flags&&ej(r,0,2);var d=void 0!==c;if(d){if(!r.seekable)throw new ec(70)}else c=r.position;var h=r.hc.write(r,u,o,l,c,void 0);if(d||(r.position+=h),0>h){var f=-1;break e}if(t+=h,h<l)break;void 0!==a&&(a+=h)}f=t}return x[i>>2]=f,0}catch(e){if(void 0===eI||"ErrnoError"!==e.name)throw e;return e.Lc}},Ja:function(e,t,n,i,r,a){(e=tK[e].tc.qd)&&e.framebufferPixelLocalClearValuefvWEBGL(t,[n,i,r,a])},Ka:function(e,t,n,i,r,a){(e=tK[e].tc.qd)&&e.framebufferTexturePixelLocalStorageWEBGL(t,tX[n],i,r,a)},e:e=>tv.activeTexture(e),E:(e,t)=>{tv.attachShader(tz[e],tY[t])},M:(e,t)=>{35051==e?tv.yd=t:35052==e&&(tv.ed=t),tv.bindBuffer(e,tU[t])},va:(e,t,n,i,r)=>{tv.bindBufferRange(e,t,tU[n],i,r)},i:(e,t)=>{tv.bindFramebuffer(e,t$[t])},sa:(e,t)=>{tv.bindRenderbuffer(e,tG[t])},Kb:(e,t)=>{tv.bindSampler(e,tZ[t])},d:(e,t)=>{tv.bindTexture(e,tX[t])},Na:e=>{tv.bindVertexArray(tq[e])},g:e=>tv.blendEquation(e),L:(e,t)=>tv.blendFunc(e,t),Y:(e,t,n,i,r,a,s,o,l,c)=>tv.blitFramebuffer(e,t,n,i,r,a,s,o,l,c),y:(e,t,n,i)=>{n&&t?tv.bufferData(e,g,i,n,t):tv.bufferData(e,t,i)},ya:(e,t,n,i)=>{n&&tv.bufferSubData(e,t,g,i,n)},Db:e=>tv.clear(e),Gb:(e,t,n)=>{tv.clearBufferfv(e,t,_,n>>2)},Fb:(e,t,n)=>{tv.clearBufferuiv(e,t,x,n>>2)},Eb:(e,t,n,i)=>tv.clearColor(e,t,n,i),Ua:e=>tv.clearDepth(e),Ta:e=>tv.clearStencil(e),fa:(e,t,n,i)=>{tv.colorMask(!!e,!!t,!!n,!!i)},za:e=>{tv.compileShader(tY[e])},Jb:(e,t,n,i,r,a,s,o,l)=>{tv.ed||!o?tv.compressedTexSubImage2D(e,t,n,i,r,a,s,o,l):tv.compressedTexSubImage2D(e,t,n,i,r,a,s,g,l,o)},H:()=>{var e=t1(tz),t=tv.createProgram();return t.name=e,t.nd=t.ld=t.md=0,t.Id=1,tz[e]=t,e},Ba:e=>{var t=t1(tY);return tY[t]=tv.createShader(e),t},Ra:e=>tv.cullFace(e),$:(e,t)=>{for(var n=0;n<e;n++){var i=w[t+4*n>>2],r=tU[i];r&&(tv.deleteBuffer(r),r.name=0,tU[i]=null,i==tv.yd&&(tv.yd=0),i==tv.ed&&(tv.ed=0))}},Da:(e,t)=>{for(var n=0;n<e;++n){var i=w[t+4*n>>2],r=t$[i];r&&(tv.deleteFramebuffer(r),r.name=0,t$[i]=null)}},aa:e=>{if(e){var t=tz[e];t?(tv.deleteProgram(t),t.name=0,tz[e]=null):tg||=1281}},Ca:(e,t)=>{for(var n=0;n<e;n++){var i=w[t+4*n>>2],r=tG[i];r&&(tv.deleteRenderbuffer(r),r.name=0,tG[i]=null)}},_:e=>{if(e){var t=tY[e];t?(tv.deleteShader(t),tY[e]=null):tg||=1281}},z:(e,t)=>{for(var n=0;n<e;n++){var i=w[t+4*n>>2],r=tX[i];r&&(tv.deleteTexture(r),r.name=0,tX[i]=null)}},Ma:(e,t)=>{for(var n=0;n<e;n++){var i=w[t+4*n>>2];tv.deleteVertexArray(tq[i]),tq[i]=null}},Va:e=>tv.depthFunc(e),ea:e=>{tv.depthMask(!!e)},Wa:(e,t)=>tv.depthRange(e,t),n:e=>tv.disable(e),G:(e,t,n)=>{tv.drawArrays(e,t,n)},Hb:(e,t,n,i)=>{tv.drawArraysInstanced(e,t,n,i)},xa:(e,t)=>{for(var n=t9[e],i=0;i<e;i++)n[i]=w[t+4*i>>2];tv.drawBuffers(n)},O:(e,t,n,i,r)=>{tv.drawElementsInstanced(e,t,n,i,r)},A:e=>tv.enable(e),r:e=>{tv.enableVertexAttribArray(e)},Lb:()=>tv.finish(),ua:()=>tv.flush(),qa:(e,t,n,i)=>{tv.framebufferRenderbuffer(e,t,n,tG[i])},w:(e,t,n,i,r)=>{tv.framebufferTexture2D(e,t,n,tX[i],r)},R:e=>tv.frontFace(e),W:(e,t)=>{t2(e,t,"createBuffer",tU)},Mb:(e,t)=>
19{t2(e,t,"createFramebuffer",t$)},Bb:(e,t)=>{t2(e,t,"createRenderbuffer",tG)},B:(e,t)=>{t2(e,t,"createTexture",tX)},Nb:(e,t)=>{t2(e,t,"createVertexArray",tq)},ka:e=>tv.generateMipmap(e),T:(e,t)=>((e,t)=>{if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return;case 34814:case 36345:n=0;break;case 34466:var i=tv.getParameter(34467);n=i?i.length:0;break;case 33309:if(2>ty.version){tg||=1282;return}n=t8().length;break;case 33307:case 33308:if(2>ty.version){tg||=1280;return}n=3*(33307==e)}if(void 0===n)switch(typeof(i=tv.getParameter(e))){case"number":n=i;break;case"boolean":n=+!!i;break;case"string":tg||=1280;return;case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:tg||=1280;return}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(e=0;e<i.length;++e)w[t+4*e>>2]=i[e];return}try{n=0|i.name}catch(t){tg||=1280,M(`GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(${e})! (error: ${t})`);return}}break;default:tg||=1280,M(`GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(${e}) and it returns ${i} of type ${typeof i}!`);return}w[t>>2]=n}else tg||=1281})(e,t),wa:(e,t,n)=>{if(n)if(e>=tW)tg||=1281;else if(e=tz[e],35716==t)null===(e=tv.getProgramInfoLog(e))&&(e="(unknown error)"),w[n>>2]=e.length+1;else if(35719==t){if(!e.nd){var i=tv.getProgramParameter(e,35718);for(t=0;t<i;++t)e.nd=Math.max(e.nd,tv.getActiveUniform(e,t).name.length+1)}w[n>>2]=e.nd}else if(35722==t){if(!e.ld)for(i=tv.getProgramParameter(e,35721),t=0;t<i;++t)e.ld=Math.max(e.ld,tv.getActiveAttrib(e,t).name.length+1);w[n>>2]=e.ld}else if(35381==t){if(!e.md)for(i=tv.getProgramParameter(e,35382),t=0;t<i;++t)e.md=Math.max(e.md,tv.getActiveUniformBlockName(e,t).length+1);w[n>>2]=e.md}else w[n>>2]=tv.getProgramParameter(e,t);else tg||=1281},ta:e=>{var t=tQ[e];if(!t){switch(e){case 7939:t=t7(t8().join(" "));break;case 7936:case 7937:case 37445:case 37446:(t=tv.getParameter(e))||(tg||=1280),t=t?t7(t):0;break;case 7938:t=t7(`OpenGL ES 3.0 (${tv.getParameter(7938)})`);break;case 35724:var n=(t=tv.getParameter(35724)).match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==n&&(3==n[1].length&&(n[1]+="0"),t=`OpenGL ES GLSL ES ${n[1]} (${t})`),t=t7(t);break;default:tg||=1280}tQ[e]=t}return t},K:(e,t)=>tv.getUniformBlockIndex(tz[e],t?X(g,t):""),Q:(e,t)=>{if(t=t?X(g,t):"",e=tz[e]){var n,i=e,r=i.$c,a=i.de;if(!r){i.$c=r={},i.ce={};var s=tv.getProgramParameter(i,35718);for(n=0;n<s;++n){var o=tv.getActiveUniform(i,n),l=o.name;o=o.size;var c=ne(l);c=0<c?l.slice(0,c):l;var u=i.Id;for(i.Id+=o,a[c]=[o,u],l=0;l<o;++l)r[u]=l,i.ce[u++]=c}}if(i=e.$c,r=0,a=t,0<(n=ne(t))&&(r=parseInt(t.slice(n+1))>>>0,a=t.slice(0,n)),(a=e.de[a])&&r<a[0]&&(i[r+=a[1]]=i[r]||tv.getUniformLocation(e,t)))return r}else tg||=1281;return -1},C:(e,t,n)=>{for(var i=t9[t],r=0;r<t;r++)i[r]=w[n+4*r>>2];tv.invalidateFramebuffer(e,i)},Z:e=>{e=tz[e],tv.linkProgram(e),e.$c=0,e.de={}},x:(e,t)=>{3317==e?tJ=t:3314==e&&(t0=t),tv.pixelStorei(e,t)},Ib:(e,t,n,i,r,a,s)=>{if(tv.yd)tv.readPixels(e,t,n,i,r,a,s);else{var o=nt(a);s>>>=31-Math.clz32(o.BYTES_PER_ELEMENT),tv.readPixels(e,t,n,i,r,a,o,s)}},ra:(e,t,n,i,r)=>tv.renderbufferStorageMultisample(e,t,n,i,r),Sa:(e,t,n,i)=>tv.scissor(e,t,n,i),Aa:(e,t,n,i)=>{for(var r="",a=0;a<t;++a){var s=(s=x[n+4*a>>2])?X(g,s,i?x[i+4*a>>2]:void 0):"";r+=s}tv.shaderSource(tY[e],r)},Qa:(e,t,n)=>tv.stencilFunc(e,t,n),ca:(e,t,n,i)=>tv.stencilFuncSeparate(e,t,n,i),da:e=>tv.stencilMask(e),Pa:(e,t,n)=>tv.stencilOp(e,t,n),ba:(e,t,n,i)=>tv.stencilOpSeparate(e,t,n,i),p:(e,t,n)=>tv.texParameteri(e,t,n),o:(e,t,n,i,r)=>tv.texStorage2D(e,t,n,i,r),Ab:(e,t,n,i,r,a)=>tv.texStorage3D(e,t,n,i,r,a),D:(e,t,n,i,r,a,s,o,l)=>{if(tv.ed)tv.texSubImage2D(e,t,n,i,r,a,s,o,l);else if(l){var c=nt(o);tv.texSubImage2D(e,t,n,i,r,a,s,o,c,l>>>31-Math.clz32(c.BYTES_PER_ELEMENT))}else{if(l){c=nt(o);var u=a*((t0||r)*(({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4})[s-6402]||1)*c.BYTES_PER_ELEMENT+tJ-1&-tJ);l=c.subarray(l>>>31-Math.clz32(c.BYTES_PER_ELEMENT),l+u>>>31-Math.clz32(c.BYTES_PER_ELEMENT))}else l=null;tv.texSubImage2D(e,t,n,i,r,a,s,o,l)}},X:(e,t)=>{var n=tv,i=n.uniform1i,r=tv.pe;if(r){var a=r.$c[e];"number"==typeof a&&(r.$c[e]=a=tv.getUniformLocation(r,r.ce[e]+(0<a?`[${a}]`:""))),e=a}else tg||=1282,e=void 0;i.call(n,e,t)}
19,J:(e,t,n)=>{e=tz[e],tv.uniformBlockBinding(e,t,n)},Oa:e=>{e=tz[e],tv.useProgram(e),tv.pe=e},I:(e,t)=>{tv.vertexAttribDivisor(e,t)},U:(e,t,n,i,r)=>{tv.vertexAttribIPointer(e,t,n,i,r)},u:(e,t,n,i,r,a)=>{tv.vertexAttribPointer(e,t,n,!!i,r,a)},P:(e,t,n,i)=>tv.viewport(e,t,n,i),Ya:function(e,t,n){var i=nv();try{ny.get(e)(t,n)}catch(e){if(nm(i),e!==e+0)throw e;np(1,0)}},Za:function(){return -1<navigator.platform.indexOf("Win")},Ea:function(e,t){(e=tK[e].tc.Yd)&&e.provokingVertexWEBGL(t)},hb:function(t,n){var i=e.images;i&&(n=i.get(n))&&((t=tK[t].tc).pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1))},_a:function(t,n,i){n=new Uint8Array(ng.buffer,n,i),(i=new Uint8Array(i)).set(n),createImageBitmap(new Blob([i])).then(function(n){var i=new OffscreenCanvas(n.width,n.height).getContext("2d");i.drawImage(n,0,0);var r=(i=i.getImageData(0,0,n.width,n.height)).data.length,a=e.je(r);e.Ue.set(i.data,a),e.We(t,n.width,n.height,a,r)}).catch(function(n){n=n.message||"decode failed";var i=e.mf(n)+1,r=e.je(i);e.tf(n,r,i),e.Xe(t,r),e.Ve(r)})}};function nx(){if(e.calledRun=!0,!A){if(j=!0,!e.noFSInit&&!es){var n,i;es=!0,n??=e.stdin,i??=e.stdout,r??=e.stderr,n?eT("stdin",n):eA("/dev/tty","/dev/stdin"),i?eT("stdout",null,i):eA("/dev/tty","/dev/stdout"),r?eT("stderr",null,r):eA("/dev/tty1","/dev/stderr"),eP("/dev/stdin",0),eP("/dev/stdout",1),eP("/dev/stderr",1)}if(t.Qb(),eo=!1,p?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var r=e.postRun.shift();V.push(r)}F(V)}}if(t=await async function(){function n(n){return nl=(n=t=n.exports).Sb,nc=n.Tb,e._setWebImage=n.Ub,nu=n.Vb,e._wasm_image_decode_complete=n.Wb,e._wasm_image_decode_error=n.Xb,nd=e._ma_device__on_notification_unlocked=n.Yb,e._ma_malloc_emscripten=n.Zb,e._ma_free_emscripten=n._b,nh=e._ma_device_process_pcm_frames_capture__webaudio=n.$b,nf=e._ma_device_process_pcm_frames_playback__webaudio=n.ac,np=n.bc,nm=n.cc,nv=n.dc,ng=n.Pb,ny=n.Rb,T(),t}var i={a:nw};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(i,(e,i)=>{t(n(e,i))})}):(tm??=e.locateFile?e.locateFile("webgl2_advanced.wasm",h):h+"webgl2_advanced.wasm",n((await O(i)).instance))}(),e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)N();return F(D),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),nx()},1)):nx(),j?e:new Promise((e,t)=>{p=e,m=t})})},e=>{e.exports=JSON.parse('{"name":"@rive-app/webgl2","version":"2.40.1","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])","Chris Dalton <[email protected]> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils","semantics"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(e,t,n)=>{n.r(t),n.d(t,{AccessibilityOverlay:()=>r.AccessibilityOverlay,SemanticActionType:()=>a.SemanticActionType,SemanticMode:()=>a.SemanticMode,SemanticRole:()=>a.SemanticRole,SemanticState:()=>a.SemanticState,SemanticTrait:()=>a.SemanticTrait,SemanticTreeModel:()=>i.SemanticTreeModel,hasState:()=>a.hasState,hasTrait:()=>a.hasTrait,roleName:()=>a.roleName,stateNames:()=>a.stateNames,traitNames:()=>a.traitNames});var i=n(7),r=n(9),a=n(8)},(e,t,n)=>{n.r(t),n.d(t,{SemanticTreeModel:()=>a});var i=n(8),r=function(e,t,n){if(n||2==arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},a=function(){function e(){this._nodesById=new Map,this._roots=[],this._semanticVersion=0,this._geometryVersion=0,this._geometryChangedIds=new Set,this._semanticChangedIds=new Set,this._debug=!1}return Object.defineProperty(e.prototype,"nodeCount",{get:function(){return this._nodesById.size}
19,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"semanticVersion",{get:function(){return this._semanticVersion},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geometryVersion",{get:function(){return this._geometryVersion},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geometryChangedIds",{get:function(){return this._geometryChangedIds},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"semanticChangedIds",{get:function(){return this._semanticChangedIds},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roots",{get:function(){return this._roots},enumerable:!1,configurable:!0}),e.prototype.nodeById=function(e){return this._nodesById.get(e)},e.prototype.siblingIndexOf=function(e){var t=this._nodesById.get(e);if(!t)return -1;if(t.parentId<0)return this._roots.indexOf(e);var n=this._nodesById.get(t.parentId);return n?n.children.indexOf(e):-1},e.prototype.detach=function(e){var t=this._nodesById.get(e);if(t)if(t.parentId<0){var n=this._roots.indexOf(e);-1!==n&&this._roots.splice(n,1)}else{var i=this._nodesById.get(t.parentId);if(i){var n=i.children.indexOf(e);-1!==n&&i.children.splice(n,1)}}},e.prototype.attach=function(e,t,n){var i=this._nodesById.get(e);if(i)if(t<0){i.parentId=-1;var r,a,s,o=(r=n,a=0,s=this._roots.length,r<0?a:r>s?s:r);this._roots.splice(o,0,e)}else{var l=this._nodesById.get(t);if(l){i.parentId=t;var c,u,d,o=(c=n,u=0,d=l.children.length,c<0?u:c>d?d:c);l.children.splice(o,0,e)}else i.parentId=-1,this._roots.push(e)}},e.prototype.removeSubtree=function(e){var t=this._nodesById.get(e);if(t){for(var n=r([],t.children,!0),i=0;i<n.length;i++){var a=n[i];this.removeSubtree(a)}this.detach(e),this._nodesById.delete(e)}},e.prototype.applyDiff=function(e){var t,n,i=this;this._geometryChangedIds.clear(),this._semanticChangedIds.clear();for(var r=!1,a=!1,d=function(){r=!0},h=function(e){r=!0,i._semanticChangedIds.add(e)},f=function(e){a=!0,i._geometryChangedIds.add(e)},p=0,m=e.removed;p<m.length;p++){var v=m[p];this._nodesById.has(v)&&(this.removeSubtree(v),d())}for(var g=0,y=e.added;g<y.length;g++){var b,w=y[g],x=this._nodesById.get(w.id);x?(o(x,w)&&(c(x,w),h(w.id)),l(x,w)&&(u(x,w),f(w.id))):(this._nodesById.set(w.id,{id:(b=w).id,parentId:-1,role:b.role,label:b.label,value:b.value,hint:b.hint,stateFlags:b.stateFlags,traitFlags:b.traitFlags,headingLevel:b.headingLevel,minX:b.minX,minY:b.minY,maxX:b.maxX,maxY:b.maxY,children:[]}),h(w.id),f(w.id)),this.detach(w.id),this.attach(w.id,w.parentId,w.siblingIndex)}for(var _=0,C=e.moved;_<C.length;_++){var w=C[_],x=this._nodesById.get(w.id);if(x){var k=x.parentId!==w.parentId,E=this.siblingIndexOf(w.id);l(x,w)&&(u(x,w),f(w.id)),this.detach(w.id),this.attach(w.id,w.parentId,w.siblingIndex),(k||this.siblingIndexOf(w.id)!==E)&&d()}}for(var S=0,M=e.childrenUpdated;S<M.length;S++){var A=M[S];if(A.parentId<0){var P=A.childIds.filter(function(e){return i._nodesById.has(e)});if(!s(this._roots,P)){this._roots.length=0,(t=this._roots).push.apply(t,P);for(var j=0,T=this._roots;j<T.length;j++){var v=T[j],I=this._nodesById.get(v);I&&(I.parentId=-1)}d()}}else{var L=this._nodesById.get(A.parentId);if(!L)continue;var P=A.childIds.filter(function(e){return i._nodesById.has(e)});if(!s(L.children,P)){L.children.length=0,(n=L.children).push.apply(n,P);for(var R=0,O=L.children;R<O.length;R++){var v=O[R],I=this._nodesById.get(v);I&&(I.parentId=A.parentId)}d()}}}for(var F=0,V=e.updatedSemantic;F<V.length;F++){var w=V[F],x=this._nodesById.get(w.id);x&&o(x,w)&&(c(x,w),h(w.id))}for(var D=0,N=e.updatedGeometry;D<N.length;D++){var w=N[D],x=this._nodesById.get(w.id);x&&l(x,w)&&(u(x,w),f(w.id))}(r||a)&&(r&&this._semanticVersion++,a&&this._geometryVersion++,this._debug&&this.logDiff(e,r,a))},Object.defineProperty(e.prototype,"debug",{set:function(e){this._debug=e},enumerable:!1,configurable:!0}),e.prototype.logDiff=function(e,t,n){for(var r=["[rive:semantics] semantic v".concat(this._semanticVersion)+(n?" geometry v".concat(this._geometryVersion):"")+(t?"":" (geometry-only)")],a=0,s=e.removed;a<s.length;a++){var o=s[a];r.push("  - removed #".concat(o))}for(var l=0,c=e.added;l<c.length;l++){var u=c[l];r.push("  + added #".concat(u.id," ").concat((0,i.roleName)(u.role))+(u.label?' "'.concat(u.label,'"'):"")+" bounds:(".concat(u.minX.toFixed(1),",").concat(u.minY.toFixed(1),")-(").concat(u.maxX.toFixed(1),",").concat(u.maxY.toFixed(1),")")+" states=[".concat((0,i.stateNames)(u.stateFlags),"]")+" traits=[".concat((0,i.traitNames)(u.traitFlags),"]"))}for(var d=0,h=e.moved;d<h.length;d++){var u=h[d];r.push("  ~ moved #".concat(u.id," → parent=").concat(u.parentId," idx=").concat(u.siblingIndex)+" bounds:(".concat(u.minX.toFixed(1),",").concat(u.minY.toFixed(1),")-(").concat(u.maxX.toFixed(1),",").concat(u.maxY.toFixed(1),")"))}for(var f=0,p=e.childrenUpdated;f<p.length;f++){var m=p[f];r.push("  ↕ children of ".concat(m.parentId<0?"root":"#"+m.parentId,": [").concat(m.childIds.join(", "),"]"))}for(var v=0,g=e.updatedSemantic;v<g.length;v++){var u=g[v];r.push("  ✎ semantic #".concat(u.id," ").concat((0,i.roleName)(u.role))+(u.label?' "'.concat(u.label,'"'):"")+" states=[".concat((0,i.stateNames)(u.stateFlags),"]")+" traits=[".concat((0,i.traitNames)(u.traitFlags),"]"))}for(var y=0,b=e.updatedGeometry;y<b.length;y++){var u=b[y];
19r.push("  ⊞ geometry #".concat(u.id," (").concat(u.minX.toFixed(1),",").concat(u.minY.toFixed(1),")-(").concat(u.maxX.toFixed(1),",").concat(u.maxY.toFixed(1),")"))}console.log(r.join("\n"))},e.prototype.flattened=function(){for(var e=this,t=[],n=function(i,r){var a=e._nodesById.get(i);if(a){t.push({depth:r,node:a});for(var s=0,o=a.children;s<o.length;s++)n(o[s],r+1)}},i=0,r=this._roots;i<r.length;i++)n(r[i],0);return t},e}();function s(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function o(e,t){return e.role!==t.role||e.label!==t.label||e.value!==t.value||e.hint!==t.hint||e.stateFlags!==t.stateFlags||e.traitFlags!==t.traitFlags||e.headingLevel!==t.headingLevel}function l(e,t){return e.minX!==t.minX||e.minY!==t.minY||e.maxX!==t.maxX||e.maxY!==t.maxY}function c(e,t){e.role=t.role,e.label=t.label,e.value=t.value,e.hint=t.hint,e.stateFlags=t.stateFlags,e.traitFlags=t.traitFlags,e.headingLevel=t.headingLevel}function u(e,t){e.minX=t.minX,e.minY=t.minY,e.maxX=t.maxX,e.maxY=t.maxY}},(e,t,n)=>{n.r(t),n.d(t,{SemanticActionType:()=>c,SemanticMode:()=>s,SemanticRole:()=>i,SemanticState:()=>r,SemanticTrait:()=>o,hasState:()=>a,hasTrait:()=>l,roleName:()=>g,stateNames:()=>y,traitNames:()=>b});var i={none:0,button:1,link:2,checkbox:3,switchControl:4,slider:5,textField:6,text:7,image:8,group:9,list:10,listItem:11,tab:12,tabList:13,dialog:14,alertDialog:15,radioGroup:16,radioButton:17},r={None:0,Expanded:1,Selected:2,Checked:4,Mixed:8,Toggled:16,Required:32,Disabled:64,Focused:128,Hidden:256,LiveRegion:512,ReadOnly:1024,Modal:2048,Obscured:4096,Multiline:8192};function a(e,t){return(e&t)!=0}var s={Disabled:"disabled",Enabled:"enabled"},o={None:0,Expandable:1,Selectable:2,Checkable:4,Toggleable:8,Requirable:16,Enablable:32,Focusable:64};function l(e,t){return(e&t)!=0}for(var c={tap:0,increase:1,decrease:2},u={},d=0,h=Object.entries(i);d<h.length;d++){var f=h[d],p=f[0];u[f[1]]=p}var m=Object.entries(r).filter(function(e){return 0!==e[1]}),v=Object.entries(o).filter(function(e){return 0!==e[1]});function g(e){var t;return null!=(t=u[e])?t:"unknown(".concat(e,")")}function y(e){if(0===e)return"none";for(var t=[],n=0;n<m.length;n++){var i=m[n],r=i[0];e&i[1]&&t.push(r)}return t.join(", ")||"none"}function b(e){if(0===e)return"none";for(var t=[],n=0;n<v.length;n++){var i=v[n],r=i[0];e&i[1]&&t.push(r)}return t.join(", ")||"none"}},(e,t,n)=>{n.r(t),n.d(t,{AccessibilityOverlay:()=>r});var i=n(8),r=function(){function e(e){var t,n=this;this.elements=new Map,this.descElements=new Map,this.lastSemanticVersion=-1,this.lastGeometryVersion=-1,this.pendingTextGeometry=[],this.textGeometryKeys=new WeakMap,this.lastCanvasPositioning={width:-1,height:-1,offsetTop:-1,offsetLeft:-1},this._geometryDirty=!0,this.isUpdating=!1,this.transformContainer=null,this._artboardBounds={minX:0,minY:0,maxX:0,maxY:0},this.repositionTimer=null,this.canvasResizeObserver=null,this.parentResizeObserver=null,this.positionObserver=null,this._onWindowResize=function(){return n.scheduleReposition()},this.instanceId=e.instanceId,this.fireAction=e.fireAction,this.requestFocus=e.requestFocus,this.clearFocus=e.clearFocus,this.canvas=e.canvas,this.semanticsOptions=e.semanticsOptions,this.allowFocusInterrupt=null!=(t=e.allowFocusInterrupt)&&t,this.container=this.createContainer(e.canvas),this.attachPositionObservers()}return e.prototype.getSemanticOverlayContainer=function(){return this.container},e.prototype.attachPositionObservers=function(){var e=this;this.canvasResizeObserver=new ResizeObserver(function(){return e.scheduleReposition()}),this.canvasResizeObserver.observe(this.canvas);var t=this.canvas.parentElement;t&&(this.parentResizeObserver=new ResizeObserver(function(){return e.scheduleReposition()}),this.parentResizeObserver.observe(t)),window.addEventListener("resize",this._onWindowResize),this.observePosition()},e.prototype.observePosition=function(){var e,t=this;if("undefined"!=typeof IntersectionObserver){null==(e=this.positionObserver)||e.disconnect(),this.positionObserver=null;var n=this.canvas.getBoundingClientRect();if(n.width&&n.height){var i=[n.top,window.innerWidth-n.right,window.innerHeight-n.bottom,n.left].map(function(e){return"".concat(-Math.round(e),"px")}
19).join(" "),r=!1;this.positionObserver=new IntersectionObserver(function(){if(!r){r=!0;return}t.scheduleReposition()},{threshold:1,rootMargin:i}),this.positionObserver.observe(this.canvas)}}},e.prototype.scheduleReposition=function(){var e=this;this._geometryDirty=!0,null===this.repositionTimer&&(this.repositionTimer=setTimeout(function(){e.repositionTimer=null,e.syncContainerGeometry(),e.observePosition()},500))},e.prototype.syncContainerGeometry=function(){var e=this.canvas.getBoundingClientRect(),t=this.canvas.offsetTop,n=this.canvas.offsetLeft;(e.width!==this.lastCanvasPositioning.width||e.height!==this.lastCanvasPositioning.height||t!==this.lastCanvasPositioning.offsetTop||n!==this.lastCanvasPositioning.offsetLeft)&&(this.container.style.top=t+"px",this.container.style.left=n+"px",this.container.style.width=e.width+"px",this.container.style.height=e.height+"px",this.container.tabIndex=-1,this.lastCanvasPositioning.width=e.width,this.lastCanvasPositioning.height=e.height,this.lastCanvasPositioning.offsetTop=t,this.lastCanvasPositioning.offsetLeft=n)},e.prototype.createContainer=function(e){var t,n,i=document.createElement("div");i.id="rive-a11y-".concat(this.instanceId),i.setAttribute("role","region"),i.setAttribute("aria-label",null!=(n=null==(t=this.semanticsOptions)?void 0:t.riveCanvasLabel)?n:"Rive animation");var r=e.getBoundingClientRect();return i.style.cssText=["position:absolute","top:".concat(e.offsetTop,"px"),"left:".concat(e.offsetLeft,"px"),"width:".concat(r.width,"px"),"height:".concat(r.height,"px"),"overflow:hidden;pointer-events:none;opacity:0"].join(";"),e.insertAdjacentElement("afterend",i),i},e.prototype.needsUpdate=function(e){var t=e.semanticVersion!==this.lastSemanticVersion,n=e.geometryVersion!==this.lastGeometryVersion,i=this._geometryDirty||!this.transformContainer;return t||n||i?{semanticChanged:t,nodeGeometryChanged:n,layoutChanged:i}:null},e.prototype.update=function(e,t,n,i,r){var a=null!=r?r:this.needsUpdate(e);!a&&t&&(a={semanticChanged:!1,nodeGeometryChanged:!1,layoutChanged:!0}),a&&this.performUpdate(e,t,n,i,a)},e.prototype.performUpdate=function(e,t,n,i,r){var a,s=r.semanticChanged,o=r.nodeGeometryChanged,l=e.semanticVersion-this.lastSemanticVersion>1;if(this.lastSemanticVersion=e.semanticVersion,this.lastGeometryVersion=e.geometryVersion,this.isUpdating=!0,this._artboardBounds=i,t&&(this.syncContainerGeometry(),this.syncTransformContainer(t,n,i),this._geometryDirty=!1),s){var c=null!=(a=this.transformContainer)?a:this.container,u=new Set;this.rebuildChildren(c,e.roots,e,0,0,u,l);var d=[];this.elements.forEach(function(e,t){u.has(t)||d.push(t)});for(var h=0;h<d.length;h++){var f=d[h],p=this.elements.get(f);p&&p.parentNode&&p.parentNode.removeChild(p),this.elements.delete(f);var m=this.descElements.get(f);m&&m.parentNode&&m.parentNode.removeChild(m),this.descElements.delete(f)}}else o&&this.updateGeometryForChangedNodes(e);this.flushTextGeometry(),this.isUpdating=!1},e.prototype.destroy=function(){var e,t,n;null!==this.repositionTimer&&(clearTimeout(this.repositionTimer),this.repositionTimer=null),window.removeEventListener("resize",this._onWindowResize),null==(e=this.canvasResizeObserver)||e.disconnect(),null==(t=this.parentResizeObserver)||t.disconnect(),null==(n=this.positionObserver)||n.disconnect(),this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.elements.clear(),this.descElements.clear(),this.pendingTextGeometry.length=0},e.prototype.rebuildChildren=function(e,t,n,r,a,s,o){for(var l=0;l<t.length;l++){var c=t[l],u=n.nodeById(c);if(u){s.add(c);var d=this.elements.get(c),h=!d;d||(d=this.createElement(u),this.elements.set(c,d)),(h||o||n.semanticChangedIds.has(c))&&this.applyAttributes(d,u),this.applyPosition(d,u,r,a);var f=e.children[l];if(f!==d&&(f?e.insertBefore(d,f):e.appendChild(d)),(0,i.hasTrait)(u.traitFlags,i.SemanticTrait.Focusable)&&(0,i.hasState)(u.stateFlags,i.SemanticState.Focused)){var p=document.activeElement,m=null==p?void 0:p.closest('[aria-modal="true"]'),v=!!m&&this.container.contains(m)&&!m.contains(d);p!==d&&!v&&this.canMoveFocus()&&d.focus()}u.children.length>0&&this.rebuildChildren(d,u.children,n,u.minX,u.minY,s,o),h&&this.autoFocusDialogOnAppear(d,u,n)}}},e.prototype.updateGeometryForChangedNodes=function(e){for(var t,n,i=0,r=Array.from(e.geometryChangedIds);i<r.length;i++){var a=r[i],s=e.nodeById(a);if(s){var o=0,l=0,c=null!=(t=this.transformContainer)?t:this.container;if(s.parentId>=0){var u=e.nodeById(s.parentId);u&&(o=u.minX,l=u.minY,c=null!=(n=this.elements.get(s.parentId))?n:c)}this.updateNodeGeometrySubtree(e,a,o,l,c)}}},e.prototype.updateNodeGeometrySubtree=function(e,t,n,i,r){var a=e.n
19odeById(t);if(a){var s=this.elements.get(t);if(s){this.applyPosition(s,a,n,i);for(var o=0,l=a.children;o<l.length;o++){var c=l[o];this.updateNodeGeometrySubtree(e,c,a.minX,a.minY,s)}}}},e.prototype.canMoveFocus=function(){var e=document.activeElement;return e===this.canvas||this.container.contains(e)||this.allowFocusInterrupt},e.prototype.autoFocusDialogOnAppear=function(e,t,n){if(g(t.role,t.stateFlags)&&this.canMoveFocus()){var i,r=document.activeElement;if(!(r&&r!==e&&e.contains(r))){var a=null!=(i=this.routeDefaultFocusTarget(t,n))?i:e;a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1"),document.activeElement!==a&&a.focus({preventScroll:!0})}}},e.prototype.routeDefaultFocusTarget=function(e,t){for(var n,r=0,a=e.children;r<a.length;r++){var s=a[r],o=t.nodeById(s);if(o){var l,c=this.elements.get(s);if(c&&(v((l=o).role)||(0,i.hasTrait)(l.traitFlags,i.SemanticTrait.Focusable)))return c;if(o.children.length>0||!o.label){var u=this.routeDefaultFocusTarget(o,t);if(u)return u;continue}if(c)return null!=(n=c.querySelector(":scope > span"))?n:c}}return null},Object.defineProperty(e.prototype,"nodeIdPrefix",{get:function(){return"rive-".concat(this.instanceId,"-sem-")},enumerable:!1,configurable:!0}),e.prototype.nodeIdFromElement=function(e){if(!e.id.startsWith(this.nodeIdPrefix))return null;var t=e.id.slice(this.nodeIdPrefix.length);if(!t)return null;var n=Number(t);return Number.isNaN(n)?null:n},e.prototype.createElement=function(e){var t=function(e){switch(e){case i.SemanticRole.link:return"a";case i.SemanticRole.text:default:return"div"}}(e.role),n=document.createElement(t);if(n.id="".concat(this.nodeIdPrefix).concat(e.id),n.style.cssText=d,e.role===i.SemanticRole.text){var r=document.createElement("span");r.style.cssText=h,n.appendChild(r)}return this.attachActionHandlers(n,e),n},e.prototype.attachRovingNav=function(e,t){var n=this;e.addEventListener("keydown",function(r){var a=null;if("ArrowRight"===r.key||"ArrowDown"===r.key?a="next":"ArrowLeft"===r.key||"ArrowUp"===r.key?a="prev":t.includeHomeEnd&&"Home"===r.key?a="first":t.includeHomeEnd&&"End"===r.key&&(a="last"),a){r.preventDefault();var s=t.members(),o=s.indexOf(e);if(!(o<0)){var l=s.length,c="next"===a?s[(o+1)%l]:"prev"===a?s[(o-1+l)%l]:"first"===a?s[0]:s[l-1];if(c&&c!==e){c.focus();var u=n.nodeIdFromElement(c);null!==u&&n.fireAction(u,i.SemanticActionType.tap)}}}})},e.prototype.attachActionHandlers=function(e,t){var n=this,r=t.role,a=t.id;if(function(e){switch(e){case i.SemanticRole.button:case i.SemanticRole.link:case i.SemanticRole.checkbox:case i.SemanticRole.switchControl:case i.SemanticRole.tab:case i.SemanticRole.radioButton:return!0;default:return!1}}(r)){e.addEventListener("click",function(){n.fireAction(a,i.SemanticActionType.tap)});var s=r===i.SemanticRole.link?["Enter"]:["Enter"," "];e.addEventListener("keydown",function(e){s.includes(e.key)&&(e.preventDefault(),n.fireAction(a,i.SemanticActionType.tap))})}r===i.SemanticRole.slider&&e.addEventListener("keydown",function(e){"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),n.fireAction(a,i.SemanticActionType.increase)):("ArrowLeft"===e.key||"ArrowDown"===e.key)&&(e.preventDefault(),n.fireAction(a,i.SemanticActionType.decrease))}),r===i.SemanticRole.tab&&this.attachRovingNav(e,{includeHomeEnd:!0,members:function(){var t=e.parentElement;return t?Array.from(t.children).filter(function(e){return e instanceof HTMLElement&&"tab"===e.getAttribute("role")}):[]}}),r===i.SemanticRole.radioButton&&this.attachRovingNav(e,{includeHomeEnd:!1,members:function(){var t,n=null!=(t=e.closest('[role="radiogroup"]'))?t:e.parentElement;return n?Array.from(n.querySelectorAll('[role="radio"]')):[]}}),(0,i.hasTrait)(t.traitFlags,i.SemanticTrait.Focusable)&&e.addEventListener("focus",function(){n.requestFocus(a)})},e.prototype.applyAttributes=function(e,t){var n,r,d,h=t.role,y=t.stateFlags,b=t.traitFlags,w=function(e){switch(e){case i.SemanticRole.none:return"group";case i.SemanticRole.button:return"button";case i.SemanticRole.link:return null;case i.SemanticRole.checkbox:return"checkbox";case i.SemanticRole.switchControl:return"switch";case i.SemanticRole.slider:return"slider";case i.SemanticRole.textField:return"textbox";case i.SemanticRole.image:return"img";case i.SemanticRole.group:return"group";case i.SemanticRole.list:return"list";case i.SemanticRole.listItem:return"listitem";case i.SemanticRole.tab:return"tab";case i.SemanticRole.tabList:return"tablist";case i.SemanticRole.dialog:return"dialog";case i.SemanticRole.alertDialog:return"alertdialog";case i.SemanticRole.radioGroup:return"radiogroup";case i.SemanticRole.radioButton:return"radio";case i.SemanticRole.text:default:return null}}(h);if(w?f(e,"role",w):p(e,"role"),h===i.SemanticRole.link&&f(e,"role","link"),v(h)||(0,i.hasTrait)(b,i.SemanticTrait.Focusable)||h===i.SemanticRole.listItem?f(e,"tabindex","-1"):p(e,"tabindex"),t.label?f(e,"aria-label",t.label):p(e,"aria-label"),h===i.SemanticRole.slider){if(t.value){var x=parseFloat(t.value);Number.isFinite(x)?f(e,"aria-valuenow",String(x)):p(e,"aria-valuenow"),f(e,"aria-valuetext",t.value)}else p(e,"aria-valuenow"),p(e,"aria-valuetext");f(e,"aria-orientation","horizontal"),m(e,"aria-readonly",(0,i.hasState)(y,i.SemanticState.ReadOnly))}else p(e,"aria-valuenow"),p(e,"aria-valuetext"),p(e,"aria-orientation"),p(e,"aria-readonly");if(t.hint){var _="rive-".concat(this.instanceId,"-desc-").concat(t.id),C=this.descElements.get(t.id);C||((C=document.createElement("span")).id=_,C.style.cssText=u,this.container.appendChild(C),this.descElements.set(t.id,C)),C.textContent!==t.hint&&(C.textContent=t.hint),f(e,"aria-describedby",_)}else{p(e,"aria-describedby");var k=this.descElements.get(t.id);k&&(k.parentNode&&k.parentNode.removeChild(k),this.descElements.delete(t.id))}if(h===i.SemanticRole.text){var E=null!=(n=e.querySelector(":scope > span"))?n:e,S=null!=(r=t.label)?r:"";E.textContent!==S&&(E.textContent=S),p(e,"aria-label"),t.headingLevel>0?(f(e,"role","heading"),f(e,"aria-level",String(t.headingLevel))):p(e,"aria-level")}(0,i.hasTrait)(b,i.SemanticTrait.Expandable)&&a.has(h)?m(e,"aria-expanded",(0,i.hasState)(y,i.SemanticState.Expanded)):p(e,"aria-expanded"),h===i.SemanticRole.tab||(0,i.hasTrait)(b,i.SemanticTrait.Selectable)&&s.has(h)?m(e,"aria-selected",(0,i.hasState)(y,i.SemanticState.Selected)):p(e,"aria-selected"),(0,i.hasTrait)(b,i.SemanticTrait.Checkable)&&o.has(h)?(0,i.hasState)(y,i.SemanticState.Mixed)&&h!==i.SemanticRole.switchControl?f(e,"aria-checked","mixed"):m(e,"aria-checked",(0,i.hasState)(y,i.SemanticState.Checked)):p(e,"aria-checked"),(0,i.hasTrait)(b,i.SemanticTrait.Toggleable)?(l.has(h)?m(e,"aria-pressed",(0,i.hasState)(y,i.SemanticState.Toggled)):p(e,"aria-pressed"),h===i.SemanticRole.switchControl&&m(e,"aria-checked",(0,i.hasState)(y,i.SemanticState.Toggled))):p(e,"aria-pressed"),(0,i.hasTrait)(b,i.SemanticTrait.Requirable)&&c.has(h)?m(e,"aria-required",(0,i.hasState)(y,i.SemanticState.Required)):p(e,"aria-required"),(0,i.hasTrait)(b,i.SemanticTrait.Enablable)?m(e,"aria-disabled",(0,i.hasState)(y,i.SemanticState.Disabled)):p(e,"aria-disabled");var M=h===i.SemanticRole.image&&!t.label;if((0,i.hasState)(y,i.SemanticState.Hidden)||(0,i.hasState)(y,i.SemanticState.Obscured)||M?f(e,"aria-hidden","true"):p(e,"aria-hidden"),(0,i.hasState)(y,i.SemanticState.LiveRegion)?f(e,"aria-live","polite"):p(e,"aria-live"),h===i.SemanticRole.textField){if(m(e,"aria-readonly",(0,i.hasState)(y,i.SemanticState.ReadOnly)),m(e,"aria-multiline",(0,i.hasState)(y,i.SemanticState.Multiline)),0===t.children.length){var A=null!=(d=t.value)?d:"";e.textContent!==A&&(e.textContent=A)}}else p(e,"aria-multiline");g(h,y)?f(e,"aria-modal","true"):p(e,"aria-modal")},e.prototype.applyPosition=function(e,t,n,r){var a=this._artboardBounds,s=Math.max(t.minX,a.minX),o=Math.max(t.minY,a.minY),l=Math.min(t.maxX,a.maxX),c=Math.min(t.maxY,a.maxY),u=Math.round(Math.max(0,l-s))+"px",d=Math.round(Math.max(0,c-o))+"px",h=Math.round(s-n)+"px",f=Math.round(o-r)+"px";
19e.style.left!==h&&(e.style.left=h),e.style.top!==f&&(e.style.top=f),e.style.width!==u&&(e.style.width=u),e.style.height!==d&&(e.style.height=d),e.style.transform&&(e.style.transform=""),t.role===i.SemanticRole.text&&this.pendingTextGeometry.push(e)},e.prototype.flushTextGeometry=function(){if(0!==this.pendingTextGeometry.length){for(var e,t=[],n=0,i=this.pendingTextGeometry;n<i.length;n++){var r=i[n],a=null!=(e=r.querySelector(":scope > span"))?e:r,s="".concat(r.style.width,"|").concat(r.style.height,"|").concat(a.textContent);this.textGeometryKeys.get(r)!==s&&(a.style.width="auto",a.style.height="auto",a.style.transformOrigin="0 0",a.style.transform="",t.push({host:r,span:a,key:s}))}this.pendingTextGeometry.length=0;for(var o=t.map(function(e){var t=e.host,n=e.span,i=t.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.width>0&&r.height>0){var a=i.width/r.width,s=i.height/r.height;return"scale(".concat(a,", ").concat(s,")")}return"none"}),l=0;l<t.length;l++){var c=t[l],r=c.host,a=c.span,s=c.key;a.style.transform=o[l],this.textGeometryKeys.set(r,s)}}},e.prototype.syncTransformContainer=function(e,t,n){if(!this.transformContainer){var i=document.createElement("div");i.style.cssText="position:absolute;top:0;left:0;overflow:visible;pointer-events:none;transform-origin:0 0",this.container.appendChild(i),this.transformContainer=i}var r=n.maxX-n.minX,a=n.maxY-n.minY;this.transformContainer.style.width=Math.round(r)+"px",this.transformContainer.style.height=Math.round(a)+"px";var s=1/(t||1),o=e.xx*s,l=e.xy*s,c=e.yx*s,u=e.yy*s,d=e.tx*s,h=e.ty*s;this.transformContainer.style.transform="matrix(".concat(o,",").concat(l,",").concat(c,",").concat(u,",").concat(d,",").concat(h,")")},e}(),a=new Set([i.SemanticRole.button,i.SemanticRole.link,i.SemanticRole.checkbox,i.SemanticRole.switchControl,i.SemanticRole.tab]),s=new Set([i.SemanticRole.tab]),o=new Set([i.SemanticRole.checkbox,i.SemanticRole.radioButton,i.SemanticRole.switchControl]),l=new Set([i.SemanticRole.button]),c=new Set([i.SemanticRole.checkbox,i.SemanticRole.textField,i.SemanticRole.radioGroup]),u="position:absolute;width:1px;height:1px;overflow:hidden;pointer-events:none;left:-9999px",d="position:absolute;pointer-events:none;box-sizing:border-box;overflow:visible;margin:0;padding:0;transform-origin: 0px 0px 0px;border:none;background:transparent;color:transparent",h="display:inline-block;white-space:nowrap;pointer-events:none";function f(e,t,n){e.getAttribute(t)!==n&&e.setAttribute(t,n)}function p(e,t){e.hasAttribute(t)&&e.removeAttribute(t)}function m(e,t,n){f(e,t,n?"true":"false")}function v(e){switch(e){case i.SemanticRole.button:case i.SemanticRole.link:case i.SemanticRole.checkbox:case i.SemanticRole.switchControl:case i.SemanticRole.slider:case i.SemanticRole.tab:case i.SemanticRole.radioButton:case i.SemanticRole.textField:return!0;default:return!1}}function g(e,t){return e===i.SemanticRole.alertDialog||e===i.SemanticRole.dialog&&(0,i.hasState)(t,i.SemanticState.Modal)}},(e,t,n)=>{n.r(t),n.d(t,{AudioAssetWrapper:()=>s.AudioAssetWrapper,AudioWrapper:()=>s.AudioWrapper,BLANK_URL:()=>a.BLANK_URL,CustomFileAssetLoaderWrapper:()=>s.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>s.FileAssetWrapper,FileFinalizer:()=>s.FileFinalizer,FocusSessionState:()=>r.FocusSessionState,FontAssetWrapper:()=>s.FontAssetWrapper,FontWrapper:()=>s.FontWrapper,ImageAssetWrapper:()=>s.ImageAssetWrapper,ImageWrapper:()=>s.ImageWrapper,KeyboardInteractions:()=>r.KeyboardInteractions,RiveFont:()=>o.RiveFont,createFinalization:()=>s.createFinalization,finalizationRegistry:()=>s.finalizationRegistry,registerTouchInteractions:()=>i.registerTouchInteractions,sanitizeUrl:()=>a.sanitizeUrl});var i=n(11),r=n(12),a=n(13),s=n(14),o=n(15)},(e,t,n)=>{n.r(t),n.d(t,{registerTouchInteractions:()=>s});var i=void 0,r=function(e,t,n){var i,r=[];if(t)for(var a=0;a<e.length;a++){var s=e[a];r.push({clientX:s.clientX,clientY:s.clientY,identifier:s.identifier})}else{var o=null!==n?null!=(i=Array.from(e).find(function(e){return e.identifier===n}))?i:null:e[0];o&&r.push({clientX:o.clientX,clientY:o.clientY,identifier:o.identifier})}return r},a=function(e,t,n,i){var a;return(null==(a=e.changedTouches)?void 0:a.length)?(!t&&["touchstart","touchmove"].includes(e.type)&&e.preventDefault(),r(e.changedTouches,n,i)):[{clientX:e.clientX,clientY:e.clientY,identifier:0}]},s=function(e){var t=e.canvas,n=e.artboard,r=e.stateMachines,s=void 0===r?[]:r,o=e.renderer,l=e.rive,c=e.fit,u=e.alignment,d=e.isTouchScrollEnabled,h=void 0!==d&&d,f=e.dis
19patchPointerExit,p=void 0===f||f,m=e.enableMultiTouch,v=void 0!==m&&m,g=e.layoutScaleFactor,y=void 0===g?1:g,b=e.advanceAndDrain;if(!t||!s.length||!o||!l||!n||"undefined"==typeof window)return null;var w=null,x=!1,_=null,C=function(){_=null},k=(function(e){if(x&&e instanceof MouseEvent){"mouseup"==e.type&&(x=!1);return}x=h&&"touchend"===e.type&&"touchstart"===w,w=e.type;var t,i=e.currentTarget.getBoundingClientRect();if(!v&&"touchstart"===e.type&&null===_){var r=null==(t=e.changedTouches)?void 0:t[0];r&&(_=r.identifier)}var o=a(e,h,v,v?null:_),d=l.computeAlignment(c,u,{minX:0,minY:0,maxX:i.width,maxY:i.height},n.bounds,y),f=new l.Mat2D;switch(d.invert(f),o.forEach(function(e){var t=e.clientX,n=e.clientY;if(t||n){var r=t-i.left,a=n-i.top,s=new l.Vec2D(r,a),o=l.mapXY(f,s),c=o.x(),u=o.y();e.transformedX=c,e.transformedY=u,o.delete(),s.delete()}}),f.delete(),d.delete(),e.type){case"mouseout":for(var m=function(e){p?o.forEach(function(t){e.pointerExit(t.transformedX,t.transformedY,t.identifier)}):o.forEach(function(t){e.pointerMove(t.transformedX,t.transformedY,t.identifier)})},g=0;g<s.length;g++){var C=s[g];m(C)}break;case"touchmove":case"mouseover":case"mousemove":for(var k=function(e){o.forEach(function(t){e.pointerMove(t.transformedX,t.transformedY,t.identifier)})},E=0;E<s.length;E++){var C=s[E];k(C)}break;case"touchstart":case"mousedown":for(var S=function(e){o.forEach(function(t){e.pointerDown(t.transformedX,t.transformedY,t.identifier)})},M=0;M<s.length;M++){var C=s[M];S(C)}b(0);break;case"touchend":for(var A=function(e){o.forEach(function(t){e.pointerUp(t.transformedX,t.transformedY,t.identifier),e.pointerExit(t.transformedX,t.transformedY,t.identifier)})},P=0;P<s.length;P++){var C=s[P];A(C)}b(0),!v&&o.some(function(e){return e.identifier===_})&&(_=null);break;case"mouseup":for(var j=function(e){o.forEach(function(t){e.pointerUp(t.transformedX,t.transformedY,t.identifier)})},T=0;T<s.length;T++){var C=s[T];j(C)}b(0)}}).bind(i);return t.addEventListener("mouseover",k),t.addEventListener("mouseout",k),t.addEventListener("mousemove",k),t.addEventListener("mousedown",k),t.addEventListener("mouseup",k),t.addEventListener("touchmove",k,{passive:h}),t.addEventListener("touchstart",k,{passive:h}),t.addEventListener("touchend",k),t.addEventListener("touchcancel",C),function(){t.removeEventListener("mouseover",k),t.removeEventListener("mouseout",k),t.removeEventListener("mousemove",k),t.removeEventListener("mousedown",k),t.removeEventListener("mouseup",k),t.removeEventListener("touchmove",k),t.removeEventListener("touchstart",k),t.removeEventListener("touchend",k),t.removeEventListener("touchcancel",C)}}},(e,t,n)=>{n.r(t),n.d(t,{FocusSessionState:()=>r,KeyboardInteractions:()=>a}),(i=r||(r={})).NotFocused="notFocused",i.EntryPending="entryPending",i.RiveFocused="riveFocused";var i,r,a=function(){function e(e){var t,n=e.canvas,i=e.stateMachine,a=e.hasFocusNodes,s=e.getOverlayElement,o=this;this.focusSessionState=r.NotFocused,this.canvasHasFocus=!1,this.focusDomainReleased=!1,this.currentOverlayElement=null,this.onCanvasFocus=function(e){o.syncOverlayListener(),o.canvasHasFocus=!0,o.focusDomainReleased=!1,o.hasFocusNodes&&!o.mainSm.focusState().hasFocus&&(o.focusSessionState=r.EntryPending,o.isKeyboardDrivenFocus()&&(o.cameFromBeforeCanvas(e.relatedTarget)?o.mainSm.focusNext():o.mainSm.focusPrevious())&&(o.focusSessionState=r.RiveFocused))},this.onCanvasBlur=function(e){o.focusSessionState=r.NotFocused,o.canvasHasFocus=!1;var t=o.isInFocusDomain(e.relatedTarget),n=null===e.relatedTarget&&!document.hasFocus();t||n||o.mainSm.clearFocus()},this.onOverlayFocusIn=function(e){if(o.isInOverlay(e.target))o.focusDomainReleased=!1,o.hasFocusNodes&&o.focusSessionState===r.NotFocused&&(o.focusSessionState=o.mainSm.focusState().hasFocus?r.RiveFocused:r.EntryPending)},this.onFocusDomainHostFocusIn=function(e){o.syncOverlayListener(),o.onOverlayFocusIn(e)},this.onKeyDown=function(e){o.syncOverlayListener(),!o.focusDomainReleased&&o.shouldRiveHandleKeyEvent(e)&&"Tab"===e.code&&o.hasFocusNodes&&((e.shiftKey?o.mainSm.focusPrevious():o.mainSm.focusNext())?(o.focusSessionState=r.RiveFocused,e.preventDefault()):(o.focusSessionState=r.NotFocused,o.focusDomainReleased=!0,o.canvasHasFocus=!1),o.syncOverlayListener())},this.canvas=n,this.mainSm=i,this.hasFocusNodes=a,this.getOverlayElement=s,this.focusDomainHost=null!=(t=n.parentElement)?t:document,n.addEventListener("focus",this.onCanvasF
19ocus),n.addEventListener("blur",this.onCanvasBlur),n.addEventListener("keydown",this.onKeyDown),this.focusDomainHost.addEventListener("focusin",this.onFocusDomainHostFocusIn),this.syncOverlayListener()}return e.prototype.setFocusSessionState=function(e){this.focusSessionState=e},e.prototype.notifyRiveFocused=function(){this.focusSessionState=r.RiveFocused},e.prototype.shouldRiveHandleKeyEvent=function(e){if(this.focusSessionState===r.NotFocused)return!1;var t=this.isInFocusDomain(document.activeElement)||this.isInOverlay(e.target),n=e.target===this.canvas;return t||this.canvasHasFocus||n},e.prototype.isInFocusDomain=function(e){return e===this.canvas||this.isInOverlay(e)},e.prototype.isInOverlay=function(e){var t,n,i;return e instanceof Node&&null!=(i=null==(n=null==(t=this.getOverlayElement)?void 0:t.call(this))?void 0:n.contains(e))&&i},e.prototype.syncOverlayListener=function(){var e,t,n,i,r,a,s=null!=(t=null==(e=this.getOverlayElement)?void 0:e.call(this))?t:null;s!==this.currentOverlayElement&&(null==(n=this.currentOverlayElement)||n.removeEventListener("focusin",this.onOverlayFocusIn),null==(i=this.currentOverlayElement)||i.removeEventListener("keydown",this.onKeyDown,!0),this.currentOverlayElement=s,null==(r=this.currentOverlayElement)||r.addEventListener("focusin",this.onOverlayFocusIn),null==(a=this.currentOverlayElement)||a.addEventListener("keydown",this.onKeyDown,!0))},e.prototype.isKeyboardDrivenFocus=function(){try{return this.canvas.matches(":focus-visible")}catch(e){return!1}},e.prototype.cameFromBeforeCanvas=function(e){if(!e)return!0;var t=this.canvas.compareDocumentPosition(e);return!!(t&Node.DOCUMENT_POSITION_PRECEDING)||!(t&Node.DOCUMENT_POSITION_FOLLOWING)},e.prototype.cleanup=function(){var e,t;this.canvas.removeEventListener("focus",this.onCanvasFocus),this.canvas.removeEventListener("blur",this.onCanvasBlur),this.canvas.removeEventListener("keydown",this.onKeyDown),this.focusDomainHost.removeEventListener("focusin",this.onFocusDomainHostFocusIn),null==(e=this.currentOverlayElement)||e.removeEventListener("focusin",this.onOverlayFocusIn),null==(t=this.currentOverlayElement)||t.removeEventListener("keydown",this.onKeyDown,!0)},e}()},(e,t,n)=>{n.r(t),n.d(t,{BLANK_URL:()=>c,sanitizeUrl:()=>u});var i=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|&colon;)/gim,l=[".","/"],c="about:blank";function u(e){if(!e)return c;var t=e.replace(s,"").replace(r,function(e,t){return String.fromCharCode(t)}).replace(a,"").replace(s,"").trim();if(!t)return c;if(l.indexOf(t[0])>-1)return t;var n=t.match(o);if(!n)return t;var u=n[0];return i.test(u)?c:t}},(e,t,n)=>{n.r(t),n.d(t,{AudioAssetWrapper:()=>p,AudioWrapper:()=>c,CustomFileAssetLoaderWrapper:()=>d,FileAssetWrapper:()=>h,FileFinalizer:()=>a,FontAssetWrapper:()=>m,FontWrapper:()=>u,ImageAssetWrapper:()=>f,ImageWrapper:()=>l,createFinalization:()=>y,finalizationRegistry:()=>g});var i,r=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e){this.selfUnref=!1,this._file=e}return e.prototype.unref=function(){this._file&&this._file.unref()},e}(),s=function(){function e(e){this._finalizableObject=e}return e.prototype.unref=function(){this._finalizableObject.unref()},e}(),o=function(){function e(){this.selfUnref=!1}return e.prototype.unref=function(){},e}(),l=function(e){function t(t){var n=e.call(this)||this;return n._nativeImage=t,n}return r(t,e),Object.defineProperty(t.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},t}(o),c=function(e){function t(t){var n=e.call(this)||this;return n._nativeAudio=t,n}return r(t,e),Object.defineProperty(t.prototype,"nativeAudio",{get:function(){return this._nativeAudio}
19,enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},t}(o),u=function(e){function t(t){var n=e.call(this)||this;return n._nativeFont=t,n}return r(t,e),Object.defineProperty(t.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},t}(o),d=function(){function e(e,t){this._assetLoaderCallback=t,this.assetLoader=new e.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return e.prototype.loadContents=function(e,t){var n;if(e.isImage)n=new f(e);else if(e.isAudio)n=new p(e);else{if(!e.isFont)return!1;n=new m(e)}return this._assetLoaderCallback(n,t)},e}(),h=function(){function e(e){this._nativeFileAsset=e}return e.prototype.decode=function(e){this._nativeFileAsset.decode(e)},Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),e}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setRenderImage=function(e){this._nativeFileAsset.setRenderImage(e.nativeImage)},t}(h),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setAudioSource=function(e){this._nativeFileAsset.setAudioSource(e.nativeAudio)},t}(h),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setFont=function(e){this._nativeFileAsset.setFont(e.nativeFont)},t}(h),v=function(){function e(e){}return e.prototype.register=function(e){e.selfUnref=!0},e.prototype.unregister=function(e){},e}(),g=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:v)(function(e){null==e||e.unref()}),y=function(e,t){var n=new s(t);g.register(e,n)}},(e,t,n)=>{n.r(t),n.d(t,{RiveFont:()=>r});var i=n(3),r=function(){function e(){}return e.setFallbackFontCallback=function(t){e._fallbackFontCallback=null!=t?t:null,e._wireFallbackProc()},e._fontToPtr=function(e){if(null==e)return null;var t,n=e.nativeFont,i=null==(t=null==n?void 0:n.ptr)?void 0:t.call(n);return null!=i?i:null},e._getFallbackPtr=function(t,n){return n<0||n>=t.length?null:e._fontToPtr(t[n])},e._wireFallbackProc=function(){i.RuntimeLoader.getInstance(function(t){var n=e._fallbackFontCallback;n?t.setFallbackFontCallback(function(t,i,r){var a=n(t,r);return a?Array.isArray(a)?e._getFallbackPtr(a,i):0===i?e._fontToPtr(a):null:null}):t.setFallbackFontCallback(null)})},e._fallbackFontCallback=null,e}()}],ep={};function em(e){var t=ep[e];if(void 0!==t)return t.exports;var n=ep[e]={exports:{}};return ef[e](n,n.exports,em),n.exports}em.d=(e,t)=>{for(var n in t)em.o(t,n)&&!em.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},em.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),em.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var ev={};return em.r(ev),em.d(ev,{Alignment:()=>t,DataEnum:()=>X,DataType:()=>l,DrawOptimizationOptions:()=>n,EventType:()=>a,Fit:()=>e,Layout:()=>k,LoopType:()=>s,Rive:()=>z,RiveEventType:()=>r,RiveFile:()=>U,RiveFont:()=>f.RiveFont,RuntimeLoader:()=>
19d.RuntimeLoader,SemanticMode:()=>h.SemanticMode,StateMachineInput:()=>S,StateMachineInputType:()=>i,Testing:()=>ec,ViewModel:()=>G,ViewModelInstance:()=>q,ViewModelInstanceArtboard:()=>es,ViewModelInstanceAssetFont:()=>ea,ViewModelInstanceAssetImage:()=>er,ViewModelInstanceBoolean:()=>J,ViewModelInstanceColor:()=>ei,ViewModelInstanceEnum:()=>et,ViewModelInstanceList:()=>en,ViewModelInstanceNumber:()=>Q,ViewModelInstanceString:()=>Z,ViewModelInstanceTrigger:()=>ee,ViewModelInstanceValue:()=>K,decodeAudio:()=>eu,decodeFont:()=>eh,decodeImage:()=>ed}),u=em(1),d=em(3),h=em(6),f=em(10),p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},m=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},v=function(){return(v=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((i=i.apply(e,t||[])).next())})},y=function(e,t){var n,i,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var c=[o,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},b=function(e,t,n){if(n||2==arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isHandledError=!0,t}return m(t,e),t}(Error),(x=e||(e={})).Cover="cover",x.Contain="contain",x.Fill="fill",x.FitWidth="fitWidth",x.FitHeight="fitHeight",x.None="none",x.ScaleDown="scaleDown",x.Layout="layout",(_=t||(t={})).Center="center",_.TopLeft="topLeft",_.TopCenter="topCenter",_.TopRight="topRight",_.CenterLeft="centerLeft",_.CenterRight="centerRight",_.BottomLeft="bottomLeft",_.BottomCenter="bottomCenter",_.BottomRight="bottomRight",(C=n||(n={})).AlwaysDraw="alwaysDraw",C.DrawOnChanged="drawOnChanged",k=function(){function n(n){var i,r,a,s,o,l,c;this.fit=null!=(i=null==n?void 0:n.fit)?i:e.Contain,this.alignment=null!=(r=null==n?void 0:n.alignment)?r:t.Center,this.layoutScaleFactor=null!=(a=null==n?void 0:n.layoutScaleFactor)?a:1,this.minX=null!=(s=null==n?void 0:n.minX)?s:0,this.minY=null!=(o=null==n?void 0:n.minY)?o:0,this.maxX=null!=(l=null==n?void 0:n.maxX)?l:0,this.maxY=null!=(c=null==n?void 0:n.maxY)?c:0}return n.new=function(e){var t=e.fit,i=e.alignment,r=e.minX,a=e.minY,s=e.maxX,o=e.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new n({fit:t,alignment:i,minX:r,minY:a,maxX:s,maxY:o})},n.prototype.copyWith=function(e){var t=e.fit,i=e.alignment,r=e.layoutScaleFactor,a=e.minX,s=e.minY,o=e.maxX,l=e.maxY;return new n({fit:null!=t?t:this.fit,alignment:null!=i?i:this.alignment,layoutScaleFactor:null!=r?r:this.layoutScaleFactor,minX:null!=a?a:this.minX,minY:null!=s?s:this.minY,maxX:null!=o?o:this.maxX,maxY:null!=l?l:this.maxY})},n.prototype.runtimeFit=function(t){var n;return this.cachedRuntimeFit?this.cachedRuntimeFit:(n=this.fit===e.Cover?t.Fit.cover:this.fit===e.Contain?t.Fit.contain:this.fit===e.Fill?t.Fit.fill:this.fit===e.FitWidth?t.Fit.fitWidth:this.fit===e.FitHeight?t.Fit.fitHeight:this.fit===e.ScaleDown?t.Fit.scaleDown:this.fit===e.Layout?t.Fit.layout:t.Fit.none,this.cachedRuntimeFit=n,n)},n.prototype.runtimeAlignment=function(e){var n;return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(n=this.alignment===t.TopLeft?e.Alignment.topLeft:this.alignment===t.TopCenter?e.Alignment.topCenter:this.alignment===t.TopRight?e.Alignment.topRight:this.alignment===t.CenterLeft?e.Alignment.centerLeft:this.alignment===t.CenterRight?e.Alignment.centerRight:this.alignment===t.BottomLeft?e.Alignment.bottomLeft:this.alignment===t.BottomCenter?e.Alignment.bottomCenter:this.alignment===t.BottomRight?e.Alignment.bottomRight:e.Alignment.center,this.cachedRuntimeAlignment=n,n)},n}(),(E=i||(i={}))[E.Number=56]="Number",E[E.Trigger=58]="Trigger",E[E.Boolean=59]="Boolean",S=function(){function e(e,t){this.type=e,this.runtimeInput=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name}
19,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(e){this.runtimeInput.value=e},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===i.Trigger&&this.runtimeInput.fire()},e.prototype.delete=function(){this.runtimeInput=null},e}(),(M=r||(r={}))[M.General=128]="General",M[M.OpenUrl=131]="OpenUrl",P=function(e){function t(t,n){var i=e.call(this,!1)||this;return i.nativeArtboard=t,i.file=n,i}return m(t,e),t}(A=function(e){this.isBindableArtboard=!1,this.isBindableArtboard=e}),j=function(e){function t(t){var n=e.call(this,!0)||this;return n.selfUnref=!1,n.nativeArtboard=t,n}return m(t,e),Object.defineProperty(t.prototype,"viewModel",{set:function(e){this.nativeViewModel=e.nativeInstance},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){var e;this.selfUnref&&(this.nativeArtboard.unref(),null==(e=this.nativeViewModel)||e.unref())},t}(A),T=function(){function e(e,t,n,i){this.stateMachine=e,this.playing=n,this.artboard=i,this.inputs=[],this.instance=new t.StateMachineInstance(e,i),this.initInputs(t)}return Object.defineProperty(e.prototype,"hasFocusNodes",{get:function(){return this.instance.hasFocusNodes()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statesChanged",{get:function(){for(var e=[],t=0;t<this.instance.stateChangedCount();t++)e.push(this.instance.stateChangedNameByIndex(t));return e},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){this.instance.advance(e)},e.prototype.advanceAndApply=function(e){this.instance.advanceAndApply(e)},e.prototype.enableSemantics=function(){this.instance.enableSemantics()},e.prototype.drainSemanticsDiff=function(){return this.instance.drainSemanticsDiff()},e.prototype.fireSemanticAction=function(e,t){this.instance.fireSemanticAction(e,t)},e.prototype.focusSemanticNode=function(e){return this.instance.focusSemanticNode(e)},e.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},e.prototype.reportedEventAt=function(e){return this.instance.reportedEventAt(e)},e.prototype.initInputs=function(e){for(var t=0;t<this.instance.inputCount();t++){var n=this.instance.input(t);this.inputs.push(this.mapRuntimeInput(n,e))}},e.prototype.mapRuntimeInput=function(e,t){return e.type===t.SMIInput.bool?new S(i.Boolean,e.asBool()):e.type===t.SMIInput.number?new S(i.Number,e.asNumber()):e.type===t.SMIInput.trigger?new S(i.Trigger,e.asTrigger()):void 0},e.prototype.cleanup=function(){this.inputs.forEach(function(e){e.delete()}),this.inputs.length=0,this.instance.delete()},e.prototype.bindViewModelInstance=function(e){null!=e.runtimeInstance&&this.instance.bindViewModelInstance(e.runtimeInstance)},e.prototype.focusState=function(){return this.instance.focusState()},e.prototype.clearFocus=function(){this.instance.clearFocus()},e}(),I=function(){function e(e,t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r=[]),this.runtime=e,this.artboard=t,this.eventManager=n,this.animations=i,this.stateMachines=r}return e.prototype.add=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!1),0===(e=el(e)).length)this.animations.forEach(function(e){return e.playing=t}),this.stateMachines.forEach(function(e){return e.playing=t});else for(var r=this.animations.map(function(e){return e.name}),s=this.stateMachines.map(function(e){return e.name}),o=0;o<e.length;o++){var l=r.indexOf(e[o]),c=s.indexOf(e[o]);if(l>=0||c>=0)l>=0?this.animations[l].playing=t:this.stateMachines[c].playing=t;else{var d=this.artboard.animationByName(e[o]);if(d){var h=new u.Animation(d,this.artboard,this.runtime,t);h.advance(0),h.apply(1),this.animations.push(h)}else{var f=this.artboard.stateMachineByName(e[o]);if(f){var p=new T(f,this.runtime,t,this.artboard);i&&p.enableSemantics(),this.stateMachines.push(p)}}}}return n&&(t?this.eventManager.fire({type:a.Play,data:this.playing}):this.eventManager.fire({type:a.Pause,data:this.paused})),t?this.playing:this.paused},e.prototype.initLinearAnimations=function(e,t,n){void 0===n&&(n=!1);for(var i=this.animations.map(function(e){return e.name}),r=0;r<e.length;r++){var a=i.indexOf(e[r]);if(a>=0)this.animations[a].playing=t;else{var s=this.artboard.animationByName(e[r]);if(s){var o=new u.Animation(s,this.artboard,this.runtime,t);o.advance(0),o.apply(1),this.animations.push(o)}else if(n)throw new w("State Machine with name ".concat(e[r]," not found"));else console.error("Animation with name ".concat(e[r]," not found."))}}},e.prototype.initStateMachines=function(e,t,n){for(var i=this.stateMachines.map(function(e){return e.name}),r=0;r<e.length;r++){var a=i.indexOf(e[r]);if(a>=0)this.stateMachines[a].playing=t;else{var s=this.artboard.stateMachineByName(e[r]);if(s){var o=new T(s,this.runtime,t,this.artboard);n&&o.enableSemantics(),this.stateMachines.push(o)}else console.warn("State Machine with name ".concat(e[r]," not found. Falling back to find an animation with the same name.")),this.initLinearAnimations([e[r]],t,!0)}}},e.prototype.play=function(e){return this.add(e,!0)},e.prototype.advanceIfPaused=function(){this.stateMachines.forEac
19h(function(e){e.playing||e.advanceAndApply(0)})},e.prototype.pause=function(e){return this.add(e,!1)},e.prototype.scrub=function(e,t){var n=this.animations.filter(function(t){return e.includes(t.name)});return n.forEach(function(e){return e.scrubTo=t}),n.map(function(e){return e.name})},Object.defineProperty(e.prototype,"playing",{get:function(){return this.animations.filter(function(e){return e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.animations.filter(function(e){return!e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return!e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),e.prototype.stop=function(e){var t=this;e=el(e);var n=[];if(0===e.length)n=this.animations.map(function(e){return e.name}).concat(this.stateMachines.map(function(e){return e.name})),this.animations.forEach(function(e){return e.cleanup()}),this.stateMachines.forEach(function(e){return e.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var i=this.animations.filter(function(t){return e.includes(t.name)});i.forEach(function(e){e.cleanup(),t.animations.splice(t.animations.indexOf(e),1)});var r=this.stateMachines.filter(function(t){return e.includes(t.name)});r.forEach(function(e){e.cleanup(),t.stateMachines.splice(t.stateMachines.indexOf(e),1)}),n=i.map(function(e){return e.name}).concat(r.map(function(e){return e.name}))}return this.eventManager.fire({type:a.Stop,data:n}),n},Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(e,t){return e||t.playing},!1)||this.stateMachines.reduce(function(e,t){return e||t.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),e.prototype.atLeastOne=function(e,t,n){var i;return void 0===t&&(t=!0),void 0===n&&(n=!1),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([i=this.artboard.animationByIndex(0).name],e,t):this.artboard.stateMachineCount()>0&&this.add([i=this.artboard.stateMachineByIndex(0).name],e,t,n)),i},e.prototype.handleLooping=function(){for(var e=0,t=this.animations.filter(function(e){return e.playing});e<t.length;e++){var n=t[e];0===n.loopValue&&n.loopCount?(n.loopCount=0,this.stop(n.name)):1===n.loopValue&&n.loopCount?(this.eventManager.fire({type:a.Loop,data:{animation:n.name,type:s.Loop}}),n.loopCount=0):2===n.loopValue&&n.loopCount>1&&(this.eventManager.fire({type:a.Loop,data:{animation:n.name,type:s.PingPong}}),n.loopCount=0)}},e.prototype.handleStateChanges=function(){for(var e=[],t=0,n=this.stateMachines.filter(function(e){return e.playing});t<n.length;t++){var i=n[t];e.push.apply(e,i.statesChanged)}e.length>0&&this.eventManager.fire({type:a.StateChange,data:e})},e.prototype.handleAdvancing=function(e){this.eventManager.fire({type:a.Advance,data:e})},e}(),(L=a||(a={})).Load="load",L.LoadError="loaderror",L.Play="play",L.Pause="pause",L.Stop="stop",L.Loop="loop",L.Draw="draw",L.Advance="advance",L.StateChange="statechange",L.RiveEvent="riveevent",L.AudioStatusChange="audiostatuschange",(R=s||(s={})).OneShot="oneshot",R.Loop="loop",R.PingPong="pingpong",O=function(){function e(e){void 0===e&&(e=[]),this.listeners=e}return e.prototype.getListeners=function(e){return this.listeners.filter(function(t){return t.type===e})},e.prototype.add=function(e){this.listeners.includes(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0;t<this.listeners.length;t++){var n=this.listeners[t];if(n.type===e.type&&n.callback===e.callback){this.listeners.splice(t,1);break}}},e.prototype.removeAll=function(e){var t=this;e?this.listeners.filter(function(t){return t.type===e}
19).forEach(function(e){return t.remove(e)}):this.listeners.splice(0,this.listeners.length)},e.prototype.fire=function(e){this.getListeners(e.type).forEach(function(t){return t.callback(e)})},e}(),F=function(){function e(e){this.eventManager=e,this.queue=[]}return e.prototype.add=function(e){this.queue.push(e)},e.prototype.process=function(){for(;this.queue.length>0;){var e=this.queue.shift();(null==e?void 0:e.action)&&e.action(),(null==e?void 0:e.event)&&this.eventManager.fire(e.event)}},e}(),(V=o||(o={}))[V.AVAILABLE=0]="AVAILABLE",V[V.UNAVAILABLE=1]="UNAVAILABLE",D=new(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=o.UNAVAILABLE,t}return m(t,e),t.prototype.delay=function(e){return g(this,void 0,void 0,function(){return y(this,function(t){return[2,new Promise(function(t){return setTimeout(t,e)})]})})},t.prototype.timeout=function(){return g(this,void 0,void 0,function(){return y(this,function(e){return[2,new Promise(function(e,t){return setTimeout(t,50)})]})})},t.prototype.reportToListeners=function(){this.fire({type:a.AudioStatusChange}),this.removeAll()},t.prototype.enableAudio=function(){return g(this,void 0,void 0,function(){return y(this,function(e){return this._enabled||(this._enabled=!0,this._status=o.AVAILABLE,this.reportToListeners()),[2]})})},t.prototype.testAudio=function(){return g(this,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:if(this._status!==o.UNAVAILABLE||null===this._audioContext)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return e.sent(),this.enableAudio(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},t.prototype._establishAudio=function(){return g(this,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:if(this._started)return[3,5];if(this._started=!0,"undefined"!=typeof window)return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),e.label=2;case 2:if(this._status!==o.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return e.sent(),[4,this.delay(1e3)];case 4:return e.sent(),[3,2];case 5:return[2]}})})},t.prototype.listenForUserAction=function(){var e=this;document.addEventListener("pointerdown",function(){return g(e,void 0,void 0,function(){return y(this,function(e){return this.enableAudio(),[2]})})},{once:!0})},t.prototype.establishAudio=function(){return g(this,void 0,void 0,function(){return y(this,function(e){return this._establishAudio(),[2]})})},Object.defineProperty(t.prototype,"systemVolume",{get:function(){return this._status===o.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t}(O)),N=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),B=globalThis.ResizeObserver||N,H=new(function(){function e(){var e=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var n=e._elementsMap.get(t.target);null!==n?n.onResize(0==t.target.clientWidth||0==t.target.clientHeight):e._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(e._onObservedEntry)},this._resizeObserver=new B(this._onObserved)}return e.prototype.add=function(e,t){var n={onResize:t,element:e};return this._elementsMap.set(e,n),this._resizeObserver.observe(e),n},e.prototype.remove=function(e){this._resizeObserver.unobserve(e.element),this._elementsMap.delete(e.element)},e}()),W=0,U=function(){function e(e){this.enableRiveAssetCDN=!0,this.enablePerfMarks=!1,this.referenceCount=0,this.destroyed=!1,this.selfUnref=!1,this.bindableArtboards=[],this.src=e.src,this.buffer=e.buffer,e.assetLoader&&(this.assetLoader=e.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.enablePerfMarks=!!e.enablePerfMarks,this.enablePerfMarks&&(d.RuntimeLoader.enablePerfMarks=!0),this.eventManager=new O,e.onLoad&&this.on(a.Lo
19ad,e.onLoad),e.onLoadError&&this.on(a.LoadError,e.onLoadError)}return e.prototype.releaseFile=function(){var e;this.selfUnref&&(null==(e=this.file)||e.unref()),this.file=null},e.prototype.releaseBindableArtboards=function(){this.bindableArtboards.forEach(function(e){return e.destroy()})},e.prototype.initData=function(){return g(this,void 0,void 0,function(){var t,n,i,r,s;return y(this,function(o){switch(o.label){case 0:if(!(this.src&&!this.buffer))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),t=this,[4,eo(this.src)];case 2:return t.buffer=o.sent(),[3,4];case 3:if((n=o.sent())instanceof Error)throw n;throw new w(e.fileLoadErrorMessage);case 4:if(this.destroyed)return[2];return this.assetLoader&&(i=new f.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader).assetLoader),this.enablePerfMarks&&performance.mark("rive:file-load:start"),r=this,[4,this.runtime.load(new Uint8Array(this.buffer),i,this.enableRiveAssetCDN)];case 5:if(r.file=o.sent(),this.enablePerfMarks&&(performance.mark("rive:file-load:end"),performance.measure("rive:file-load","rive:file-load:start","rive:file-load:end")),s=new f.FileFinalizer(this.file),f.finalizationRegistry.register(this,s),this.destroyed)return this.releaseFile(),[2];return null!==this.file?this.eventManager.fire({type:a.Load,data:this}):this.fireLoadError(e.fileLoadErrorMessage),[2]}})})},e.prototype.loadRiveFileBytes=function(){return g(this,void 0,void 0,function(){var e;return y(this,function(t){return this.enablePerfMarks&&performance.mark("rive:fetch-riv:start"),e=this.src?eo(this.src):Promise.resolve(this.buffer),this.enablePerfMarks&&this.src&&e.then(function(){performance.mark("rive:fetch-riv:end"),performance.measure("rive:fetch-riv","rive:fetch-riv:start","rive:fetch-riv:end")}),[2,e]})})},e.prototype.loadRuntime=function(){return g(this,void 0,void 0,function(){var e;return y(this,function(t){return this.enablePerfMarks&&performance.mark("rive:await-wasm:start"),e=d.RuntimeLoader.awaitInstance(),this.enablePerfMarks&&e.then(function(){performance.mark("rive:await-wasm:end"),performance.measure("rive:await-wasm","rive:await-wasm:start","rive:await-wasm:end")}),[2,e]})})},e.prototype.init=function(){return g(this,void 0,void 0,function(){var t,n,i,r;return y(this,function(a){switch(a.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(e.missingErrorMessage),[2];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,Promise.all([this.loadRiveFileBytes(),this.loadRuntime()])];case 2:if(n=(t=a.sent())[0],i=t[1],this.destroyed)return[2];return this.buffer=n,this.runtime=i,this.enablePerfMarks&&performance.mark("rive:init-data:start"),[4,this.initData()];case 3:return a.sent(),this.enablePerfMarks&&(performance.mark("rive:init-data:end"),performance.measure("rive:init-data","rive:init-data:start","rive:init-data:end")),[3,5];case 4:return r=a.sent(),this.fireLoadError(r instanceof Error?r.message:e.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},e.prototype.fireLoadError=function(e){throw this.eventManager.fire({type:a.LoadError,data:e}),new w(e)},e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.cleanup=function(){this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),this.releaseFile(),this.releaseBindableArtboards(),this.destroyed=!0)},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},e.prototype.destroyIfUnused=function(){this.referenceCount<=0&&this.cleanup()},e.prototype.createBindableArtboard=function(e){if(null!=e){var t=new j(e);return(0,f.createFinalization)(t,t.nativeArtboard),this.bindableArtboards.push(t),t}return null},e.prototype.getArtboard=function(e){var t=this.file.artboardByName(e);if(null!=t)return new P(t,this)},e.prototype.getBindableArtboard=function(e){var t=this.file.bindableArtboardByName(e);return this.createBindableArtboard(t)},e.prototype.getDefaultBindableArtboard=function(){var e=this.file.bindableArtboardDefault();return this.createBindableArtboard(e)},e.prototype.internalBindableArtboardFromArtboard=function(e){var t=this.file.internalBindableArtboardFromArtboard(e);return this.createBindableArtboard(t)},e.prototype.viewModelByName=function(e){var t=this.file.viewModelByName(e);return null!==t?new G(t):null},e.prototype.globalViewModelNames=function(){return this.file.globalViewModelNames()},e.missingErrorMessage="Rive source file or data buffer required",e.fileLoadErrorMessage="The file failed to load",e}(),z=function(){function t(e){var t,i,r,s,o=this;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this._keyboardInteractions=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.dispatchPointerExit=!0,this.enableMultiTouch=!1,this.enableRiveAssetCDN=!0,this.semanticsMode=h.SemanticMode.Disabled,this.semanticsOptions={riveCanvasLabel:"Rive animation"},this._semanticsActive=!1,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._needsRedraw=!1,this._currentCanvasWidth=0,this._currentCanvasHeight=0,this._audioEventListener=null,this._boundDraw=null,this._pageVisibilityHandler=null,this._explicitlyStoppedRendering=!1,this._viewModelInstance=null,this._globalViewModelInstances=new Map,this._dataEnums=null,this._tabIndex=null,this._prevHasFocus=!1,this._focusOptions={allowFocusInterrupt:!1},this._semanticTree=null,this._accessibilityOverlay=null,this._overlayTransformDirty=!0,this._instanceId="".concat(W++),this.drawOptimization=n.DrawOnChanged,this.enablePerfMarks=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(e){var t=o._hasZeroSize!==e;o._hasZeroSize=e,e?o._layout.maxX&&o._layout.maxY||o.resizeToCanvas():t&&o.resizeDrawingSurfaceToCanvas()},this.frameRequestId=null,this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),"undefined"!=typeof document&&(this._pageVisibilityHandler=this._onPageVisibilityChange.bind(this),document.addEventListener("visibilitychange",this._pageVisibilityHandler)),this.canvas=e.canvas,e.canvas.constructor===HTMLCanvasElement&&(this._observed=H.add(this.canvas,this.onCanvasResize)),this._currentCanvasWidth=this.canvas.width,this._currentCanvasHeight=this.canvas.height,this.src=e.src,this.buffer=e.buffer,this.riveFile=e.riveFile,this.layout=null!=(t=e.layout)?t:new k,this.shouldDisableRiveListeners=!!e.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!e.isTouchScrollEnabled,this.automaticallyHandleEvents=!!e.automaticallyHandleEvents,this.dispatchPointerExit=!1===e.dispatchPointerExit?e.dispatchPointerExit:this.dispatchPointerExit,this.enableMultiTouch=!!e.enableMultiTouch,this.drawOptimization=null!=(i=e.drawingOptions)?i:this.drawOptimization,this.enableRiveAssetCDN=void 0===e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.enablePerfMarks=!!e.enablePerfMarks,this.enablePerfMarks&&(d.RuntimeLoader.enablePerfMarks=!0),this._focusOptions=null!=(r=e.focu
19sOptions)?r:this._focusOptions,this._tabIndex=null!=(s=e.tabIndex)?s:null,this.eventManager=new O,e.onLoad&&this.on(a.Load,e.onLoad),e.onLoadError&&this.on(a.LoadError,e.onLoadError),e.onPlay&&this.on(a.Play,e.onPlay),e.onPause&&this.on(a.Pause,e.onPause),e.onStop&&this.on(a.Stop,e.onStop),e.onLoop&&this.on(a.Loop,e.onLoop),e.onStateChange&&this.on(a.StateChange,e.onStateChange),e.onAdvance&&this.on(a.Advance,e.onAdvance),e.onload&&!e.onLoad&&this.on(a.Load,e.onload),e.onloaderror&&!e.onLoadError&&this.on(a.LoadError,e.onloaderror),e.onplay&&!e.onPlay&&this.on(a.Play,e.onplay),e.onpause&&!e.onPause&&this.on(a.Pause,e.onpause),e.onstop&&!e.onStop&&this.on(a.Stop,e.onstop),e.onloop&&!e.onLoop&&this.on(a.Loop,e.onloop),e.onstatechange&&!e.onStateChange&&this.on(a.StateChange,e.onstatechange),e.assetLoader&&(this.assetLoader=e.assetLoader),this.taskQueue=new F(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:e.autoplay,autoBind:e.autoBind,animations:e.animations,stateMachines:e.stateMachines,artboard:e.artboard,useOffscreenRenderer:e.useOffscreenRenderer,tabIndex:e.tabIndex,semanticsMode:e.semanticsMode,semanticsOptions:e.semanticsOptions})}return Object.defineProperty(t.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),t.new=function(e){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new t(e)},t.prototype.enableSemantics=function(){this.semanticsMode=h.SemanticMode.Enabled,this.activateSemantics()},t.prototype.activateSemantics=function(){this._semanticsActive||this.semanticsMode===h.SemanticMode.Disabled||(this._semanticsActive=!0,this.syncSemanticsOnStateMachines())},t.prototype.syncSemanticsOnStateMachines=function(){if(this._semanticsActive&&this.animator)for(var e=0,t=this.animator.stateMachines;e<t.length;e++)t[e].enableSemantics()},t.prototype.cleanupSemantics=function(){this._semanticTree=null,this._accessibilityOverlay&&(this._accessibilityOverlay.destroy(),this._accessibilityOverlay=null)},t.prototype.onSystemAudioChanged=function(){this.volume=this._volume},t.prototype.init=function(e){var n=this,i=e.src,r=e.buffer,s=e.riveFile,o=e.animations,l=e.stateMachines,c=e.artboard,u=e.autoplay,f=void 0!==u&&u,p=e.useOffscreenRenderer,m=void 0!==p&&p,v=e.autoBind,g=void 0!==v&&v,y=e.tabIndex,b=e.semanticsMode,x=e.semanticsOptions;if(!this.destroyed){if(this.src=i,this.buffer=r,this.riveFile=s,this._tabIndex=null!=y?y:null,this.semanticsMode=null!=b?b:h.SemanticMode.Disabled,this.semanticsOptions=null!=x?x:this.semanticsOptions,!this.src&&!this.buffer&&!this.riveFile)throw new w(t.missingErrorMessage);var _=el(o),C=el(l);this.loaded=!1,this.readyForPlaying=!1,d.RuntimeLoader.awaitInstance().then(function(e){if(!n.destroyed){n.runtime=e,n.removeRiveListeners(),n.cleanupSemantics(),n.deleteRiveRenderer(),n.enablePerfMarks&&performance.mark("rive:make-renderer:start");try{if(n.renderer=n.runtime.makeRenderer(n.canvas,m),!n.renderer)throw Error("Renderer is null, cannot render Rive on the canvas.")}catch(e){throw console.error(e),new w("Unable to create the renderer, your environment may not support WebGL. Try the @rive-app/canvas runtime as an alternative.")}n.enablePerfMarks&&(performance.mark("rive:make-renderer:end"),performance.measure("rive:make-renderer","rive:make-renderer:start","rive:make-renderer:end")),n.canvas.width||n.canvas.height||n.resizeDrawingSurfaceToCanvas(),n.initData(c,_,C,f,g).then(function(e){if(e)return n.setupRiveListeners()}).catch(function(e){console.error(e)})}}).catch(function(e){n.eventManager.fire({type:a.LoadError,data:e.message})})}},t.prototype.setupRiveListeners=function(e){var t=this;if(this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),!this.shouldDisableRiveListeners){var n=this.animator.stateMachines.filter(function(e){return e.playing}).filter(function(e){return t.runtime.hasListeners(e.instance)}).map(function(e){return e.instance}),i=this.isTouchScrollEnabled,r=this.dispatchPointerExit,a=this.enableMultiTouch;e&&"isTouchScrollEnabled"in e&&(i=e.isTouchScrollEnabled),this.eventCleanup=(0,f.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:n,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:i,dispatchPointerExit:r,enableMultiTouch:a,layoutScaleFactor:this._layout.layoutScaleFactor,advanceAndDrain:this.advanceAndReportChanges.bind(this)}),this.ensureKeyboardInteractions()}},t.prototype.ensureKeyboardInteractions=function(){var e=this;if(!this._keyboardInteractions&&!this.shouldDisableRiveListeners&&"undefined"!=typeof window&&this.canvas instanceof HTMLCanvasElement){var t=this.animator.stateMachines.find(function(e){return e.playing&&e.hasFocusNodes});if(t){var n=this.canvas.tabIndex;(-1===n||isNaN(n))&&(this.canvas.tabIndex=null!==this._tabIndex?this._tabIndex:0),this._keyboardInteractions=new f.KeyboardInteractions({canvas:this.canvas,stateMachine:t.instance,hasFocusNodes:!0,getOverlayElement:function(){var t,n;return null!=(n=null==(t=e._accessibilityOverlay)?void 0:t.getSemanticOverlayContainer())?n:null}})}}},t.prototype.cleanupKeyboardInteractions=function(){this._keyboardInteractions&&(this._keyboardInteractions.cleanup(),this._keyboardInteractions=null)},t.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null),this.cleanupKeyboardInteractions()},t.prototype.initializeAudio=function(){var e,t=this;D.status==o.UNAVAILABLE&&(this.file.hasAudio||(null==(e=this.artboard)?void 0:e.hasAudio)&&null===this._audioEventListener)&&(this._audioEventListener={type:a.AudioStatusChange,callback:function(){return t.onSystemAudioChanged()}},D.add(this._audioEventListener),D.establishAudio())},t.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},t.prototype.initData=function(e,t,n,i,r){return g(this,void 0,void 0,function(){var s,o,l;return y(this,function(c){switch(c.label){case 0:if(c.trys.push([0,3,,4]),null!=this.riveFile)return[3,2];return s=new U({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader,enablePerfMarks:this.enablePerfMarks}),this.riveFile=s,[4,s.init()];case 1:if(c.sent(),this.destroyed)return s.destroyIfUnused(),[2,!1];c.label=2;case 2:this.file=this.riveFile.getInstance(),this.initArtboard(e,t,n,i,r),this.initArtboardSize(),this.initializeAudio(),this.semanticsMode===h.SemanticMode.Enabled?this.activateSemantics():this._semanticsActive&&this.syncSemanticsOnStateMachines();try{this.loaded=!0,this.eventManager.fire({type:a.Load,data:null!=(l=this.src)?l:"buffer"})}catch(e){console.error(e)}return this.animator.advanceIfPaused(),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:var u;return o=(u=c.sent())&&u.isHandledError?u.message:"Problem loading file; may be corrupt!",this.eventManager.fire({type:a.LoadError,data:o}),[2,Promise.reject(o)];case 4:return[2]}})})},t.prototype.initArtboard=function(e,t,n,i,r){if(this.file){var s,o=e?this.file.artboardByName(e):this.file.defaultArtboard();if(!o)throw new w("Invalid artboard name or no default artboard");if(this.artboard=o,o.volume=this._volume*D.systemVolume,this.animator=new I(this.runtime,this.artboard,this.eventManager),t.length>0||n.length>0?(s=t.concat(n),this.animator.initLinearAnimations(t,i),this.animator.initStateMachines(n,i,this._semanticsActive)):s=[this.animator.atLeastOne(i,!1,this._semanticsActive)],this.taskQueue.add({event:{type:i?a.Play:a.Pause,data:s}}),r){var l=this.file.defaultArtboardViewModel(o);if(null!==l){var c=l.defaultInstance();if(null!==c){var u=new q(c,null);(0,f.createFinalization)(u,u.runtimeInstance),this.setViewModelInstance(u)}}for(var d=0,h=this.file.globalViewModelNames();d<h.length;d++){var p=h[d],m=this.file.viewModelByName(p);if(null!==m){var v=new G(m).defaultInstance();null!==v&&this.setGlobalViewModelInstance(p,v)}}this.bind()}}},t.prototype.drawFrame=function(){var e,t;(null==(e=null==document?void 0:document.timeline)?void 0:e.currentTime)?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),null==(t=this.runtime)||t.resolveAnimationFrame()):this.scheduleRendering()},t.prototype._canvasSizeChanged=function(){var e=!1;return this.canvas&&(this.canvas.width!==this._currentCanvasWidth&&(this._currentCanvasWidth=this.canvas.width,e=!0),this.canvas.height!==this._currentCanvasHeight&&(this._currentCanvasHeight=this.canvas.height,e=!0)),e},t.prototype.pollFocusState=function(){if(this.ensureKeyboardInteractions(),!this._keyboardInteractions){this._prevHasFocus=!1;return}var e,t,n=this.animator.stateMachines.find(function(e){return e.playing&&e.hasFocusNodes});if(!n){this._prevHasFocus=!1;return}if(this.canvas instanceof HTMLCanvasElement){if(n.focusState().hasFocus){if(this._keyboardInteractions.notifyRiveFocused(),!this._prevHasFocus){var i=null==(e=this._accessibilityOverlay)?void 0:e.getSemanticOverlayContainer();!(document.activeElement===this.canvas||null!=(t=null==i?void 0:i.contains(document.activeElement))&&t)&&this._focusOptions.allowFocusInterrupt&&this.canvas.focus(),this._prevHasFocus=!0}return}this._prevHasFocus=!1,this._keyboardInteractions.focusSessionState===f.FocusSessionState.RiveFocused&&this._keyboardInteractions.setFocusSessionState(f.FocusSessionState.NotFocused)}},t.prototype.advanceAndReportChanges=function(e){for(var t,n,i=this.animator.animations.filter(function(e){return e.playing||e.needsScrub}).sort(function(e){return e.needsScrub?-1:1}),s=0;s<i.length;s++){var o=i[s];o.advance(e),o.instance.didLoop&&(o.loopCount+=1),o.apply(1)}for(var l=this.animator.stateMachines.filter(function(e){return e.playing}),c=this.enablePerfMarks&&this.frameCount<3?this.frameCount:-1,u=0;u<l.length;u++){var d=l[u],p=d.reportedEventCount();if(p)for(var m=0;m<p;m++){var v=d.reportedEventAt(m);
19if(v)if(v.type===r.OpenUrl){if(this.eventManager.fire({type:a.RiveEvent,data:v}),this.automaticallyHandleEvents){var g=document.createElement("a"),y=v.url,b=v.target,w=(0,f.sanitizeUrl)(y);y&&g.setAttribute("href",w),b&&g.setAttribute("target",b),w&&w!==f.BLANK_URL&&g.click()}}else this.eventManager.fire({type:a.RiveEvent,data:v})}if(c>=0&&performance.mark("rive:sm-advance:start:f".concat(c)),d.advanceAndApply(e),c>=0&&(performance.mark("rive:sm-advance:end:f".concat(c)),performance.measure("rive:sm-advance:f".concat(c),"rive:sm-advance:start:f".concat(c),"rive:sm-advance:end:f".concat(c))),this._semanticsActive){var x=d.drainSemanticsDiff();x&&(this._semanticTree||(this._semanticTree=new h.SemanticTreeModel),this._semanticTree.applyDiff(x))}}if(this._semanticsActive&&this._semanticTree&&l.length>0&&this.canvas instanceof HTMLCanvasElement){if(!this._accessibilityOverlay){var _=l[0];this._accessibilityOverlay=new h.AccessibilityOverlay({canvas:this.canvas,instanceId:this._instanceId,semanticsOptions:this.semanticsOptions,allowFocusInterrupt:this._focusOptions.allowFocusInterrupt,fireAction:function(e,t){_.fireSemanticAction(e,t)},requestFocus:function(e){return _.focusSemanticNode(e)},clearFocus:function(){return _.instance.clearFocus()}})}var C=null==(t=this._accessibilityOverlay)?void 0:t.needsUpdate(this._semanticTree);if(C||this._overlayTransformDirty){var k=null;if((null==C?void 0:C.layoutChanged)||this._overlayTransformDirty){var E=this._layout.runtimeFit(this.runtime),S=this._layout.runtimeAlignment(this.runtime);k=this.runtime.computeAlignment(E,S,{minX:this._layout.minX,minY:this._layout.minY,maxX:this._layout.maxX,maxY:this._layout.maxY},this.artboard.bounds,this._devicePixelRatioUsed*this._layout.layoutScaleFactor),this._overlayTransformDirty=!1}this._accessibilityOverlay.update(this._semanticTree,k,this._devicePixelRatioUsed,this.artboard.bounds,C),null==k||k.delete()}}0==this.animator.stateMachines.length&&this.artboard.advance(e),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(e),this.pollFocusState(),null==(n=this._viewModelInstance)||n.handleCallbacks(),this._globalViewModelInstances.forEach(function(e){e&&e.handleCallbacks()})},t.prototype.draw=function(e,t){this.frameRequestId=null;var i=performance.now(),r=this.enablePerfMarks&&this.frameCount<3?this.frameCount:-1;this.lastRenderTime||(this.lastRenderTime=e),this.renderSecondTimer+=e-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==t||t());var a=(e-this.lastRenderTime)/1e3;this.lastRenderTime=e,this.advanceAndReportChanges(a);var s=this.renderer;!this._hasZeroSize&&(this.drawOptimization==n.AlwaysDraw||this.artboard.didChange()||this._needsRedraw||this._canvasSizeChanged())&&(s.clear(),s.save(),r>=0&&performance.mark("rive:align-renderer:start:f".concat(r)),this.alignRenderer(),r>=0&&(performance.mark("rive:align-renderer:end:f".concat(r)),performance.measure("rive:align-renderer:f".concat(r),"rive:align-renderer:start:f".concat(r),"rive:align-renderer:end:f".concat(r))),r>=0&&performance.mark("rive:artboard-draw:start:f".concat(r)),this.artboard.draw(s),r>=0&&(performance.mark("rive:artboard-draw:end:f".concat(r)),performance.measure("rive:artboard-draw:f".concat(r),"rive:artboard-draw:start:f".concat(r),"rive:artboard-draw:end:f".concat(r))),s.restore(),r>=0&&performance.mark("rive:renderer-flush:start:f".concat(r)),s.flush(),r>=0&&(performance.mark("rive:renderer-flush:end:f".concat(r)),performance.measure("rive:renderer-flush:f".concat(r),"rive:renderer-flush:start:f".concat(r),"rive:renderer-flush:end:f".concat(r))),this._needsRedraw=!1),this.frameCount++;var o=performance.now();for(this.frameTimes.push(o),this.durations.push(o-i);this.frameTimes[0]<=o-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.scheduleRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},t.prototype.alignRenderer=function(){var e=this.renderer,t=this.runtime,n=this._layout,i=this.artboard;e.align(n.runtimeFit(t),n.runtimeAlignment(t),{minX:n.minX,minY:n.minY,maxX:n.maxX,maxY:n.maxY},i.bounds,this._devicePixelRatioUsed*n.layoutScaleFactor)},Object.defineProperty(t.prototype,"fps",{get:function(){return this.durations.length}
19,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce(function(e,t){return e+t},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),t.prototype.cleanup=function(){var e,t,n,i;this.destroyed=!0,this.stopRendering(),null==(t=null==(e=this.renderer)?void 0:e.bindContext)||t.call(e),this.cleanupInstances(),null!==this._observed&&H.remove(this._observed),this.removeRiveListeners(),this.file&&(null==(n=this.riveFile)||n.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),null!==this._audioEventListener&&(D.remove(this._audioEventListener),this._audioEventListener=null),this._pageVisibilityHandler&&(document.removeEventListener("visibilitychange",this._pageVisibilityHandler),this._pageVisibilityHandler=null),null==(i=this._viewModelInstance)||i.cleanup(),this._viewModelInstance=null,this._globalViewModelInstances.forEach(function(e){return e.cleanup()}),this._globalViewModelInstances.clear(),this._dataEnums=null},t.prototype.deleteRiveRenderer=function(){var e;null==(e=this.renderer)||e.delete(),this.renderer=null},t.prototype.cleanupInstances=function(){null!==this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.cleanupSemantics(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},t.prototype.retrieveTextRun=function(e){if(!e)return void console.warn("No text run name provided");if(!this.artboard)return void console.warn("Tried to access text run, but the Artboard is null");var t,n=this.artboard.textRun(e);return n||void console.warn("Could not access a text run with name '".concat(e,"' in the '").concat(null==(t=this.artboard)?void 0:t.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))},t.prototype.getTextRunValue=function(e){var t=this.retrieveTextRun(e);return t?t.text:void 0},t.prototype.setTextRunValue=function(e,t){var n=this.retrieveTextRun(e);n&&(n.text=t)},t.prototype.play=function(e,t){var n=this;if(e=el(e),!this.readyForPlaying)return void this.taskQueue.add({action:function(){return n.play(e,t)}});this.animator.play(e),this.syncSemanticsOnStateMachines(),this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.setupRiveListeners(),this.startRendering()},t.prototype.pause=function(e){var t=this;if(e=el(e),!this.readyForPlaying)return void this.taskQueue.add({action:function(){return t.pause(e)}});this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.animator.pause(e)},t.prototype.scrub=function(e,t){var n=this;if(e=el(e),!this.readyForPlaying)return void this.taskQueue.add({action:function(){return n.scrub(e,t)}});this.animator.scrub(e,t||0),this.drawFrame()},t.prototype.stop=function(e){var t=this;if(e=el(e),!this.readyForPlaying)return void this.taskQueue.add({action:function(){return t.stop(e)}});this.animator&&this.animator.stop(e),this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.cleanupSemantics()},t.prototype.reset=function(e){var t,n,i=null==e?void 0:e.artboard,r=el(null==e?void 0:e.animations),a=el(null==e?void 0:e.stateMachines),s=null!=(t=null==e?void 0:e.autoplay)&&t,o=null!=(n=null==e?void 0:e.autoBind)&&n;this.cleanupInstances(),this.initArtboard(i,r,a,s,o),this.taskQueue.process()},t.prototype.load=function(e){this.file=null,this.stop(),this.init(e)},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=e,this._overlayTransformDirty=!0,e.maxX&&e.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),t.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height}),this._overlayTransformDirty=!0},t.prototype.resizeDrawingSurfaceToCanvas=function(t){if(this.canvas instanceof HTMLCanvasElement&&window){var n=this.canvas.getBoundingClientRect(),i=n.width,r=n.height,a=t||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=a,this.canvas.width=a*i,this.canvas.height=a*r,this._needsRedraw=!0,this.resizeToCanvas(),this.layout.fit===e.Layout){var s=this._layout.layoutScaleFactor;this.artboard.width=i/s,this.artboard.height=r/s}this.drawFrame()}},Object.defineProperty(t.prototype,"source",{get:function(){return this.src}
19,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"semanticTree",{get:function(){return this._semanticTree},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"accessibilityOverlay",{get:function(){return this._accessibilityOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.animationCount();t++)e.push(this.artboard.animationByIndex(t).name);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.stateMachineCount();t++)e.push(this.artboard.stateMachineByIndex(t).name);return e},enumerable:!1,configurable:!0}),t.prototype.stateMachineInputs=function(e){if(this.loaded){var t=this.animator.stateMachines.find(function(t){return t.name===e});return null==t?void 0:t.inputs}},t.prototype.retrieveInputAtPath=function(e,t){if(!e)return void console.warn("No input name provided for path '".concat(t,"'"));if(!this.artboard)return void console.warn("Tried to access input: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));var n=this.artboard.inputByPath(e,t);return n||void console.warn("Could not access an input with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.setBooleanStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===i.Boolean?r.asBool().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a boolean")))},t.prototype.setNumberStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===i.Number?r.asNumber().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a number")))},t.prototype.fireStateAtPath=function(e,t){var n=this.retrieveInputAtPath(e,t);n&&(n.type===i.Trigger?n.asTrigger().fire():console.warn("Input with name: '".concat(e,"', at path:'").concat(t,"' is not a trigger")))},t.prototype.retrieveTextAtPath=function(e,t){if(!e)return void console.warn("No text name provided for path '".concat(t,"'"));if(!t)return void console.warn("No path provided for text '".concat(e,"'"));if(!this.artboard)return void console.warn("Tried to access text: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));var n=this.artboard.textByPath(e,t);return n||void console.warn("Could not access text with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.getTextRunValueAtPath=function(e,t){var n=this.retrieveTextAtPath(e,t);return n?n.text:void console.warn("Could not get text with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.setTextRunValueAtPath=function(e,t,n){var i=this.retrieveTextAtPath(e,n);if(!i)return void console.warn("Could not set text with name: '".concat(e,"', at path:'").concat(n,"'"));i.text=t},Object.defineProperty(t.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(e){return e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(e){return e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(e){return!e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(e){return!e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}
19),Object.defineProperty(t.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStopped",{get:function(){var e,t;return null==(t=null==(e=this.animator)?void 0:e.isStopped)||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),t.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},t.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},t.prototype.unsubscribe=function(e,t){console.warn("This function is deprecated: please use `off()` instead."),this.off(e,t)},t.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},t.prototype.unsubscribeAll=function(e){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(e)},t.prototype.stopRendering=function(){this._explicitlyStoppedRendering=!0,this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},t.prototype.startRendering=function(){this._explicitlyStoppedRendering=!1,this.drawFrame()},t.prototype.scheduleRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},t.prototype._onPageVisibilityChange=function(){var e,t;document.hidden?(null!==this.frameRequestId&&((null==(e=this.runtime)?void 0:e.cancelAnimationFrame)?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null),this.lastRenderTime=0):(null==(t=this.animator)?void 0:t.isPlaying)&&!this._explicitlyStoppedRendering&&this.scheduleRendering()},t.prototype.enableFPSCounter=function(e){this.runtime.enableFPSCounter(e)},t.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(t.prototype,"contents",{get:function(){if(this.loaded){for(var e={artboards:[]},t=0;t<this.file.artboardCount();t++){for(var n=this.file.artboardByIndex(t),i={name:n.name,animations:[],stateMachines:[]},r=0;r<n.animationCount();r++){var a=n.animationByIndex(r);i.animations.push(a.name)}for(var s=0;s<n.stateMachineCount();s++){for(var o=n.stateMachineByIndex(s),l=o.name,c=new this.runtime.StateMachineInstance(o,n),u=[],d=0;d<c.inputCount();d++){var h=c.input(d);u.push({name:h.name,type:h.type})}i.stateMachines.push({name:l,inputs:u})}e.artboards.push(i)}return e}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(e){this._volume=e,this.artboard&&(this.artboard.volume=e*D.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"artboardWidth",{get:function(){var e;return this.artboard?this.artboard.width:null!=(e=this._artboardWidth)?e:0},set:function(e){this._artboardWidth=e,this.artboard&&(this.artboard.width=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"artboardHeight",{get:function(){var e;return this.artboard?this.artboard.height:null!=(e=this._artboardHeight)?e:0},set:function(e){this._artboardHeight=e,this.artboard&&(this.artboard.height=e)},enumerable:!1,configurable:!0}),t.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(t.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(e){e!==this._devicePixelRatioUsed&&(this._overlayTransformDirty=!0),this._devicePixelRatioUsed=e},enumerable:!1,configurable:!0}),t.prototype.bindViewModelInstance=function(e){e&&(this.setViewModelInstance(e),this.bind())},t.prototype.setViewModelInstance=function(e){var t,n=null==e?void 0:e.runtimeInstance;this.artboard&&!this.destroyed&&e&&n&&(e.internalIncrementReferenceCount(),null==(t=this._viewModelInstance)||t.cleanup(),this._viewModelInstance=e,this.animator.stateMachines.length>
190?this.animator.stateMachines.forEach(function(e){return e.instance.setViewModelInstance(n)}):this.artboard.setViewModelInstance(n))},t.prototype.bind=function(){this.artboard&&!this.destroyed&&(this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(e){return e.instance.bind()}):this.artboard.bind())},Object.defineProperty(t.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),t.prototype.setGlobalViewModelInstance=function(e,t){var n,i=null==t?void 0:t.runtimeInstance;if(!this.artboard||this.destroyed||!i)return!1;var r=!1;return this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(t){t.instance.setGlobalViewModelInstance(e,i)&&(r=!0)}):r=this.artboard.setGlobalViewModelInstance(e,i),r&&(t.internalIncrementReferenceCount(),null==(n=this._globalViewModelInstances.get(e))||n.cleanup(),this._globalViewModelInstances.set(e,t)),r},t.prototype.globalViewModelInstance=function(e){var t=this._globalViewModelInstances.get(e);if(t)return t;if(!this.artboard||this.destroyed)return null;var n=this.animator.stateMachines.length>0?this.animator.stateMachines[0].instance.globalViewModelInstance(e):this.artboard.globalViewModelInstance(e);if(null===n)return null;var i=new q(n,null);return(0,f.createFinalization)(i,n),i.internalIncrementReferenceCount(),this._globalViewModelInstances.set(e,i),i},t.prototype.globalViewModelNames=function(){var e,t;return null!=(t=null==(e=this.file)?void 0:e.globalViewModelNames())?t:[]},t.prototype.viewModelByIndex=function(e){var t=this.file.viewModelByIndex(e);return null!==t?new G(t):null},t.prototype.viewModelByName=function(e){var t;return null==(t=this.riveFile)?void 0:t.viewModelByName(e)},t.prototype.enums=function(){if(null===this._dataEnums){var e=this.file.enums();this._dataEnums=e.map(function(e){return new X(e)})}return this._dataEnums},t.prototype.defaultViewModel=function(){if(this.artboard){var e=this.file.defaultArtboardViewModel(this.artboard);if(e)return new G(e)}return null},t.prototype.getArtboard=function(e){var t,n;return null!=(n=null==(t=this.riveFile)?void 0:t.getArtboard(e))?n:null},t.prototype.getBindableArtboard=function(e){var t,n;return null!=(n=null==(t=this.riveFile)?void 0:t.getBindableArtboard(e))?n:null},t.prototype.getDefaultBindableArtboard=function(){var e,t;return null!=(t=null==(e=this.riveFile)?void 0:e.getDefaultBindableArtboard())?t:null},t.prototype.clearFocus=function(){this.animator.stateMachines.filter(function(e){return e.playing&&e.hasFocusNodes}).forEach(function(e){return e.clearFocus()})},t.missingErrorMessage="Rive source file or data buffer required",t.cleanupErrorMessage="Attempt to use file after calling cleanup.",t}(),($=l||(l={})).none="none",$.string="string",$.number="number",$.boolean="boolean",$.color="color",$.list="list",$.enumType="enumType",$.trigger="trigger",$.viewModel="viewModel",$.integer="integer",$.listIndex="listIndex",$.image="image",$.artboard="artboard",G=function(){function e(e){this._viewModel=e}return Object.defineProperty(e.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),e.prototype.instanceByIndex=function(e){var t=this._viewModel.instanceByIndex(e);if(null!==t){var n=new q(t,null);return(0,f.createFinalization)(n,t),n}return null},e.prototype.instanceByName=function(e){var t=this._viewModel.instanceByName(e);if(null!==t){var n=new q(t,null);return(0,f.createFinalization)(n,t),n}return null},e.prototype.defaultInstance=function(){var e=this._viewModel.defaultInstance();if(null!==e){var t=new q(e,null);return(0,f.createFinalization)(t,e),t}return null},e.prototype.instance=function(){var e=this._viewModel.instance();if(null!==e){var t=new q(e,null);return(0,f.createFinalization)(t,e),t}return null},Object.defineProperty(e.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()}
19,enumerable:!1,configurable:!0}),e}(),X=function(){function e(e){this._dataEnum=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),e}(),(Y=c||(c={})).Number="number",Y.String="string",Y.Boolean="boolean",Y.Color="color",Y.Trigger="trigger",Y.Enum="enum",Y.List="list",Y.Image="image",Y.Font="font",Y.Artboard="artboard",q=function(){function e(e,t){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this.selfUnref=!1,this._runtimeInstance=e,null!==t&&this._parents.push(t)}return Object.defineProperty(e.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),e.prototype.handleCallbacks=function(){0!==this._propertiesWithCallbacks.length&&(this._propertiesWithCallbacks.forEach(function(e){e.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(e){e.clearChanges()})),this._children.forEach(function(e){return e.handleCallbacks()})},e.prototype.addParent=function(e){!this._parents.includes(e)&&(this._parents.push(e),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&e.addToViewModelCallbacks(this))},e.prototype.removeParent=function(e){var t=this._parents.indexOf(e);-1!==t&&(this._parents[t].removeFromViewModelCallbacks(this),this._parents.splice(t,1))},e.prototype.addToPropertyCallbacks=function(e){var t=this;!this._propertiesWithCallbacks.includes(e)&&(this._propertiesWithCallbacks.push(e),this._propertiesWithCallbacks.length>0&&this._parents.forEach(function(e){e.addToViewModelCallbacks(t)}))},e.prototype.removeFromPropertyCallbacks=function(e){var t=this;this._propertiesWithCallbacks.includes(e)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(t){return t!==e}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(e){e.removeFromViewModelCallbacks(t)}))},e.prototype.addToViewModelCallbacks=function(e){var t=this;this._children.includes(e)||(this._children.push(e),this._parents.forEach(function(e){e.addToViewModelCallbacks(t)}))},e.prototype.removeFromViewModelCallbacks=function(e){var t=this;this._children.includes(e)&&(this._children=this._children.filter(function(t){return t!==e}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(e){e.removeFromViewModelCallbacks(t)}))},e.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(e){e.clearCallbacks()})},e.prototype.propertyFromPath=function(e,t){var n=e.split("/");return this.propertyFromPathSegments(n,0,t)},e.prototype.viewModelFromPathSegments=function(e,t){var n=this.internalViewModelInstance(e[t]);if(null!==n)if(t==e.length-1)return n;else return n.viewModelFromPathSegments(e,t++);return null},e.prototype.propertyFromPathSegments=function(e,t,n){if(t<e.length-1){var i,r,a,s,o,l,u,d,h,f,p,m,v,g,y,b,w,x,_,C,k=this.internalViewModelInstance(e[t]);return null!==k?k.propertyFromPathSegments(e,t+1,n):null}var E=null;switch(n){case c.Number:if(null!==(E=null!=(r=null==(i=this._runtimeInstance)?void 0:i.number(e[t]))?r:null))return new Q(E,this);break;case c.String:if(null!==(E=null!=(s=null==(a=this._runtimeInstance)?void 0:a.string(e[t]))?s:null))return new Z(E,this);break;case c.Boolean:if(null!==(E=null!=(l=null==(o=this._runtimeInstance)?void 0:o.boolean(e[t]))?l:null))return new J(E,this);break;case c.Color:if(null!==(E=null!=(d=null==(u=this._runtimeInstance)?void 0:u.color(e[t]))?d:null))return new ei(E,this);break;case c.Trigger:if(null!==(E=null!=(f=null==(h=this._runtimeInstance)?void 0:h.trigger(e[t]))?f:null))return new ee(E,this);break;case c.Enum:if(null!==(E=null!=(m=null==(p=this._runtimeInstance)?void 0:p.enum(e[t]))?m:null))return new et(E,this);break;case c.List:if(null!==(E=null!=(g=null==(v=this._runtimeInstance)?void 0:v.list(e[t]))?g:null))return new en(E,this);break;case c.Image:if(null!==(E=null!=(b=null==(y=this._runtimeInstance)?void 0:y.image(e[t]))?b:null))return new er(E,this);break;case c.Font:if(null!==(E=null!=(x=null==(w=this._runtimeInstance)?void 0:w.font(e[t]))?x:null))return new ea(E,this);break;case c.Artboard:if(null!==(E=null!=(C=null==(_=this._runtimeInstance)?void 0:_.artboard(e[t]))?C:null))return new es(E,this)}return null},e.prototype.internalViewModelInstance=function(t){if(this._viewModelInstances.has(t))return this._viewModelInstances.get(t);var n,i=null==(n=this._runtimeInstance)?void 0:n.viewModel(t);if(null!==i){var r=new e(i,this);return(0,f.createFinalization)(r,i),r.internalIncrementReferenceCount(),this._viewModelInstances.set(t,r),r}return null},e.prototype.number=function(e){return this.propertyFromPath(e,c.Number)},e.prototype.string=function(e){return this.propertyFromPath(e,c.String)},e.prototype.boolean=function(e){return this.propertyFromPath(e,c.Boolean)},e.prototype.color=function(e){return this.propertyFromPath(e,c.Color)},e.prototype.trigger=function(e){return this.propertyFromPath(e,c.Trigger)},e.prototype.enum=function(e){return this.propertyFromPath(e,c.Enum)},e.prototype.list=function(e){return this.propertyFromPath(e,c.List)},e.prototype.image=function(e){return this.propertyFromPath(e,c.Image)},e.prototype.font=function(e){return this.propertyFromPath(e,c.Font)},e.prototype.artboard=function(e){return this.propertyFromPath(e,c.Artboard)},e.prototype.viewModel=function(e){var t=e.split("/"),n=t.length>1?this.viewModelFromPathSegments(t.slice(0,t.length-1),0):this;return null!=n?n.internalViewModelInstance(t[t.length-1]):null},e.prototype.internalReplaceViewModel=function(e,t){var n;if(null!==t.runtimeInstance){var i=(null==(n=this._runtimeInstance)?void 0:n.replaceViewModel(e,t.runtimeInstance))||!1;if(i){t.internalIncrementReferenceCount();var r=this.internalViewModelInstance(e);null!==r&&(r.removeParent(this),this._children.includes(r)&&(this._children=this._children.filter(function(e){return e!==r})),r.cleanup()),this._viewModelInstances.set(e,t),t.addParent(this)}return i}return!1},e.prototype.replaceViewModel=function(e,t){var n,i=e.split("/"),r=i.length>1?this.viewModelFromPathSegments(i.slice(0,i.length-1),0):this;return null!=(n=null==r?void 0:r.internalReplaceViewModel(i[i.length-1],t))&&n},e.prototype.incrementReferenceCount=function(){var e;this._referenceCount++,null==(e=this._runtimeInstance)||e.incrementReferenceCount()},e.prototype.decrementReferenceCount=function(){var e;this._referenceCount--,null==(e=this._runtimeInstance)||e.decrementReferenceCount()},Object.defineProperty(e.prototype,"properties",{get:function(){var e;return(null==(e=this._runtimeInstance)?void 0:e.getProperties().map(function(e){return v({},e)}))||[]}
19,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelName",{get:function(){var e,t;return null!=(t=null==(e=this._runtimeInstance)?void 0:e.getViewModelName())?t:""},enumerable:!1,configurable:!0}),e.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},e.prototype.cleanup=function(){var e,t=this;if(this._referenceCount--,this._referenceCount<=0){this.selfUnref&&(null==(e=this._runtimeInstance)||e.unref()),this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(e){e.cleanup()}),this._viewModelInstances.clear();var n=b([],this._children,!0);this._children.length=0;var i=b([],this._parents,!0);this._parents.length=0,n.forEach(function(e){e.removeParent(t)}),i.forEach(function(e){e.removeFromViewModelCallbacks(t)})}},e}(),Z=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(K=function(){function e(e,t){this.callbacks=[],this._viewModelInstanceValue=e,this._parentViewModel=t}return e.prototype.on=function(e){0===this.callbacks.length&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(e)||(this.callbacks.push(e),this._parentViewModel.addToPropertyCallbacks(this))},e.prototype.off=function(e){e?this.callbacks=this.callbacks.filter(function(t){return t!==e}):this.callbacks.length=0,0===this.callbacks.length&&this._parentViewModel.removeFromPropertyCallbacks(this)},e.prototype.internalHandleCallback=function(e){},e.prototype.handleCallbacks=function(){var e=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach(function(t){e.internalHandleCallback(t)})},e.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},e.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),e}()),Q=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(K),J=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(K),ee=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),t.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},t.prototype.internalHandleCallback=function(e){e()},t}(K),et=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(e){this._viewModelInstanceValue.valueIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(K),en=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),t.prototype.addInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.addInstance(e.runtimeInstance),e.addParent(this._parentViewModel))},t.prototype.addInstanceAt=function(e,t){return!!(null!=e.runtimeInstance&&this._viewModelInstanceValue.addInstanceAt(e.runtimeInstance,t))&&(e.addParent(this._parentViewModel),!0)},t.prototype.removeInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.removeInstance(e.runtimeInstance),e.removeParent(this._parentViewModel))},t.prototype.removeInstanceAt=function(e){this._viewModelInstanceValue.removeInstanceAt(e)},t.prototype.instanceAt=function(e){var t=this._viewModelInstanceValue.instanceAt(e);if(null!=t){var n=new q(t,this._parentViewModel);return(0,f.createFinalization)(n,t),n}return null},t.prototype.swap=function(e,t){this._viewModelInstanceValue.swap(e,t)},t.prototype.internalHandleCallback=function(e){e()},t}(K),ei=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e}
19,enumerable:!1,configurable:!0}),t.prototype.rgb=function(e,t,n){this._viewModelInstanceValue.rgb(e,t,n)},t.prototype.rgba=function(e,t,n,i){this._viewModelInstanceValue.argb(i,e,t,n)},t.prototype.argb=function(e,t,n,i){this._viewModelInstanceValue.argb(e,t,n,i)},t.prototype.alpha=function(e){this._viewModelInstanceValue.alpha(e)},t.prototype.opacity=function(e){this._viewModelInstanceValue.alpha(Math.round(255*Math.max(0,Math.min(1,e))))},t.prototype.internalHandleCallback=function(e){e(this.value)},t}(K),er=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){var t;this._viewModelInstanceValue.value(null!=(t=null==e?void 0:e.nativeImage)?t:null)},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e()},t}(K),ea=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){var t;this._viewModelInstanceValue.value(null!=(t=null==e?void 0:e.nativeFont)?t:null)},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e()},t}(K),es=function(e){function t(t,n){return e.call(this,t,n)||this}return m(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){var t,n,i;i=e.isBindableArtboard?e:e.file.internalBindableArtboardFromArtboard(e.nativeArtboard),this._viewModelInstanceValue.value(null!=(t=null==i?void 0:i.nativeArtboard)?t:null),(null==i?void 0:i.nativeViewModel)&&this._viewModelInstanceValue.viewModelInstance(null!=(n=null==i?void 0:i.nativeViewModel)?n:null)},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e()},t}(K),eo=function(e){return g(void 0,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return[4,fetch(new Request(e))];case 1:if(!(t=n.sent()).ok)throw Error("Failed to fetch the Rive file: HTTP ".concat(t.status));return[4,t.arrayBuffer()];case 2:return[2,n.sent()]}})})},el=function(e){return"string"==typeof e?[e]:e instanceof Array?e:[]},ec={EventManager:O,TaskQueueManager:F},eu=function(e){return g(void 0,void 0,void 0,function(){var t,n;return y(this,function(i){switch(i.label){case 0:return[4,new Promise(function(t){return d.RuntimeLoader.getInstance(function(n){n.decodeAudio(e,t)})})];case 1:return t=i.sent(),n=new f.AudioWrapper(t),f.finalizationRegistry.register(n,t),[2,n]}})})},ed=function(e){return g(void 0,void 0,void 0,function(){var t,n;return y(this,function(i){switch(i.label){case 0:return[4,new Promise(function(t){return d.RuntimeLoader.getInstance(function(n){n.decodeImage(e,t)})})];case 1:return t=i.sent(),n=new f.ImageWrapper(t),f.finalizationRegistry.register(n,t),[2,n]}})})},eh=function(e){return g(void 0,void 0,void 0,function(){var t,n;return y(this,function(i){switch(i.label){case 0:return[4,new Promise(function(t){return d.RuntimeLoader.getInstance(function(n){n.decodeFont(e,t)})})];case 1:return t=i.sent(),n=new f.FontWrapper(t),f.finalizationRegistry.register(n,t),[2,n]}})})},ev})()},7328:(e,t,n)=>{e.exports=n(9269)}
19,7362:(e,t,n)=>{"use strict";n.d(t,{ge:()=>s,xU:()=>r});let i=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:i(),y:i()}),a=()=>({min:0,max:0}),s=()=>({x:a(),y:a()})},7454:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});let i={}},7496:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,BT:()=>f,CT:()=>h,Di:()=>u,GS:()=>p,JJ:()=>w,Nc:()=>k,O4:()=>r,S5:()=>C,US:()=>v,XR:()=>s,ZD:()=>y,af:()=>E,bD:()=>x,c1:()=>b,fl:()=>a,ik:()=>d,ky:()=>c,qY:()=>g,s3:()=>m,ud:()=>_,uv:()=>l});var i=n(7876);function r({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 12 12",fill:"none",...e,children:[(0,i.jsx)("g",{clipPath:"url(#clip0_1530_1693)",children:(0,i.jsx)("path",{d:"M6 0.941406C4.99873 0.941406 4.01995 1.23832 3.18743 1.79459C2.3549 2.35087 1.70603 3.14152 1.32286 4.06657C0.939694 4.99162 0.839439 6.00952 1.03478 6.99155C1.23011 7.97358 1.71227 8.87563 2.42027 9.58363C3.12828 10.2916 4.03033 10.7738 5.01236 10.9691C5.99439 11.1645 7.01229 11.0642 7.93734 10.681C8.86239 10.2979 9.65304 9.649 10.2093 8.81648C10.7656 7.98396 11.0625 7.00517 11.0625 6.00391C11.061 4.6617 10.5272 3.3749 9.57809 2.42582C8.62901 1.47674 7.3422 0.942895 6 0.941406ZM6 9.94141C5.22124 9.94141 4.45996 9.71048 3.81244 9.27782C3.16493 8.84516 2.66025 8.23021 2.36223 7.51072C2.06421 6.79124 1.98623 5.99954 2.13816 5.23574C2.29009 4.47194 2.6651 3.77034 3.21577 3.21967C3.76644 2.669 4.46803 2.29399 5.23183 2.14206C5.99563 1.99013 6.78733 2.06811 7.50682 2.36613C8.2263 2.66415 8.84126 3.16883 9.27391 3.81635C9.70657 4.46387 9.9375 5.22514 9.9375 6.00391C9.93639 7.04785 9.52118 8.04872 8.783 8.78691C8.04482 9.52509 7.04395 9.94029 6 9.94141ZM9.1875 6.00391C9.1875 6.15309 9.12824 6.29616 9.02275 6.40165C8.91726 6.50714 8.77419 6.56641 8.625 6.56641H6C5.85082 6.56641 5.70774 6.50714 5.60225 6.40165C5.49677 6.29616 5.4375 6.15309 5.4375 6.00391V3.37891C5.4375 3.22972 5.49677 3.08665 5.60225 2.98116C5.70774 2.87567 5.85082 2.81641 6 2.81641C6.14919 2.81641 6.29226 2.87567 6.39775 2.98116C6.50324 3.08665 6.5625 3.22972 6.5625 3.37891V5.44141H8.625C8.77419 5.44141 8.91726 5.50067 9.02275 5.60616C9.12824 5.71165 9.1875 5.85472 9.1875 6.00391Z",fill:"currentColor"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1530_1693",children:(0,i.jsx)("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 0.00390625)"})})})]})}function a({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 10 9",fill:"none",...e,children:(0,i.jsx)("path",{d:"M5.61435 8.63991L4.90341 7.93821L7.83026 5.01136H0.25V3.99574H7.83026L4.90341 1.07812L5.61435 0.367188L9.75071 4.50355L5.61435 8.63991Z",fill:"currentColor"})})}function s({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 21",fill:"none",...e,children:(0,i.jsx)("path",{d:"M2.0125 6.65607V6.65631L2.0125 14.3437L2.0125 14.3439C2.01303 14.593 2.07654 14.8378 2.19687 15.0527C2.31721 15.2677 2.49021 15.4453 2.69848 15.5663C2.69849 15.5663 2.69849 15.5663 2.6985 15.5663L9.36154 19.4378C9.36156 19.4378 9.36158 19.4379 9.36159 19.4379C9.55661 19.5522 9.77629 19.6125 10 19.6125C10.2237 19.6125 10.4434 19.5522 10.6384 19.4379C10.6384 19.4379 10.6384 19.4378 10.6385 19.4378L17.3015 15.5663C17.3015 15.5663 17.3015 15.5663 17.3015 15.5663C17.5098 15.4453 17.6828 15.2677 17.8031 15.0527C17.9235 14.8378 17.987 14.593 17.9875 14.3439V14.3437V6.65712V6.65708C17.9874 6.40751 17.9241 6.1622 17.8038 5.94678C17.6834 5.73132 17.5101 5.55331 17.3015 5.43213L10.6385 1.56216C10.6384 1.56211 10.6383 1.56206 10.6382 1.56201C10.4432 1.44772 10.2236 1.3875 10 1.3875C9.77635 1.3875 9.55673 1.44773 9.36174 1.56204C9.36168 1.56208 9.36161 1.56212 9.36154 1.56216L2.6985 5.43374C2.69849 5.43374 2.69849 5.43374 2.69848 5.43375C2.49021 5.55472 2.31721 5.73231 2.19687 5.94726C2.07654 6.16218 2.01303 6.40695 2.0125 6.65607ZM4.1404 6.32114L10 2.91463L15.8596 6.32114L10 9.72765L4.1404 6.32114ZM3.44904 14.2797V7.64189L9.28173 11.0301V17.6656L3.44904 14.2797ZM16.551 14.2765L10.7183 17.6656V11.0333L16.551 7.64198V14.2765Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.225"})})}function o({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",...e,children:(0,i.jsx)("path",{d:"M17.9438 17.0595L14.0321 13.1485C15.1659 11.7874 15.7312 10.0415 15.6106 8.27409C15.4899 6.5067 14.6925 4.85387 13.3843 3.65943C12.076 2.46499 10.3576 1.8209 8.58657 1.86115C6.81553 1.9014 5.
1912818 2.62289 3.87554 3.87554C2.62289 5.12818 1.9014 6.81553 1.86115 8.58657C1.8209 10.3576 2.46499 12.076 3.65943 13.3843C4.85387 14.6925 6.5067 15.4899 8.27409 15.6106C10.0415 15.7312 11.7874 15.1659 13.1485 14.0321L17.0595 17.9438C17.1175 18.0019 17.1865 18.048 17.2623 18.0794C17.3382 18.1108 17.4195 18.127 17.5016 18.127C17.5838 18.127 17.6651 18.1108 17.741 18.0794C17.8168 18.048 17.8858 18.0019 17.9438 17.9438C18.0019 17.8858 18.048 17.8168 18.0794 17.741C18.1108 17.6651 18.127 17.5838 18.127 17.5016C18.127 17.4195 18.1108 17.3382 18.0794 17.2623C18.048 17.1865 18.0019 17.1175 17.9438 17.0595ZM3.12664 8.75164C3.12664 7.63912 3.45654 6.55159 4.07463 5.62656C4.69271 4.70153 5.57121 3.98056 6.59905 3.55482C7.62688 3.12908 8.75788 3.01768 9.84903 3.23473C10.9402 3.45177 11.9424 3.9875 12.7291 4.77417C13.5158 5.56084 14.0515 6.56312 14.2686 7.65426C14.4856 8.7454 14.3742 9.8764 13.9485 10.9042C13.5227 11.9321 12.8018 12.8106 11.8767 13.4287C10.9517 14.0467 9.86416 14.3766 8.75164 14.3766C7.26031 14.375 5.83053 13.7818 4.77599 12.7273C3.72146 11.6728 3.1283 10.243 3.12664 8.75164Z",fill:"currentColor"})})}function l({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",...e,children:[(0,i.jsx)("path",{d:"M6.85117 8.26873L3.23903 12.3931H1.23828L5.91667 7.04883L6.85117 8.26873Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M7.94141 4.39088L11.2488 0.607422H13.2483L8.86749 5.61751L7.94141 4.39088Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M14.0197 12.3939H9.99586L0.980469 0.607422H5.10615L14.0197 12.3939ZM10.5477 11.1971H11.6556L4.5042 1.74145H3.31545L10.5477 11.1971Z",fill:"currentColor"})]})}function c({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",...e,children:[(0,i.jsx)("g",{clipPath:"url(#clip0_708_47590)",children:(0,i.jsx)("path",{d:"M13.9499 0.425781H1.04453C0.69096 0.425781 0.425781 0.69096 0.425781 1.04453V14.0383C0.425781 14.3035 0.69096 14.5686 1.04453 14.5686H14.0383C14.3919 14.5686 14.657 14.3035 14.657 13.9499V1.04453C14.5686 0.69096 14.3035 0.425781 13.9499 0.425781ZM4.58025 12.4472H2.54721V5.72935H4.66864V12.4472H4.58025ZM3.60792 4.84542C2.90078 4.84542 2.37042 4.22667 2.37042 3.60792C2.37042 2.90078 2.90078 2.37042 3.60792 2.37042C4.31507 2.37042 4.84542 2.90078 4.84542 3.60792C4.75703 4.22667 4.22667 4.84542 3.60792 4.84542ZM12.4472 12.4472H10.3258V9.17667C10.3258 8.38114 10.3258 7.40882 9.26507 7.40882C8.20435 7.40882 8.02757 8.29275 8.02757 9.17667V12.5356H5.90614V5.72935H7.93917V6.61328C8.20435 6.08292 8.9115 5.55257 9.88382 5.55257C12.0052 5.55257 12.3588 6.96685 12.3588 8.73471V12.4472H12.4472Z",fill:"currentColor"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_708_47590",children:(0,i.jsx)("rect",{width:"14.1429",height:"14.1429",fill:"white",transform:"translate(0.429688 0.427734)"})})})]})}function u({...e}){return(0,i.jsxs)("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_4924_61687)",children:[(0,i.jsx)("path",{d:"M15.8896 16.0045H13.1265V11.7199C13.1265 10.6981 13.1081 9.38289 11.6893 9.38289C10.2502 9.38289 10.03 10.4961 10.03 11.6455V16.0042H7.26683V7.19328H9.91947V8.39738H9.9566C10.2221 7.94795 10.6057 7.57824 11.0666 7.3276C11.5275 7.07697 12.0484 6.9548 12.5738 6.97412C15.3744 6.97412 15.8908 8.79808 15.8908 11.171L15.8896 16.0045ZM4.14906 5.98889C3.83192 5.98894 3.52187 5.89588 3.25815 5.72147C2.99442 5.54706 2.78887 5.29913 2.66745 5.00903C2.54603 4.71894 2.51421 4.39971 2.57603 4.09171C2.63784 3.78372 2.79052 3.50079 3.01473 3.2787C3.23894 3.05662 3.52463 2.90535 3.83567 2.84404C4.14671 2.78272 4.46912 2.8141 4.76214 2.93422C5.05516 3.05434 5.30563 3.25779 5.48187 3.51886C5.65812 3.77993 5.75222 4.08688 5.75228 4.4009C5.75231 4.6094 5.71087 4.81586 5.63032 5.00851C5.54977 5.20115 5.4317 5.3762 5.28283 5.52366C5.13396 5.67112 4.9572 5.7881 4.76267 5.86792C4.56814 5.94774 4.35964 5.98885 4.14906 5.98889ZM5.53064 16.0045H2.7646V7.19328H5.53064V16.0045ZM1
197.2672 0.272742H1.37612C1.01543 0.268712 0.667873 0.406632 0.409838 0.656194C0.151803 0.905756 0.00440193 1.24654 0 1.60367V17.4035C0.00425127 17.7608 0.151566 18.1018 0.409592 18.3517C0.667618 18.6015 1.01525 18.7397 1.37612 18.7359H17.2672C17.6288 18.7404 17.9774 18.6026 18.2364 18.3527C18.4955 18.1029 18.6438 17.7615 18.6488 17.4035V1.60253C18.6436 1.24469 18.4952 0.90352 18.2362 0.653964C17.9771 0.404408 17.6286 0.266883 17.2672 0.271602",fill:"currentColor"}),(0,i.jsx)("path",{d:"M20.7164 16.2188C20.3803 16.222 20.059 16.3568 19.823 16.5939C19.587 16.831 19.4554 17.151 19.457 17.4839C19.4587 17.8167 19.5934 18.1354 19.8317 18.3703C20.07 18.6051 20.3925 18.7369 20.7287 18.7369C21.0649 18.7369 21.3874 18.6051 21.6257 18.3703C21.864 18.1354 21.9987 17.8167 22.0003 17.4839C22.0019 17.151 21.8703 16.831 21.6343 16.5939C21.3983 16.3568 21.0771 16.222 20.7409 16.2188H20.7164ZM20.7164 18.5928C20.4959 18.5964 20.2793 18.5352 20.0939 18.4169C19.9085 18.2986 19.7627 18.1286 19.675 17.9283C19.5872 17.7279 19.5614 17.5063 19.6008 17.2915C19.6402 17.0767 19.7431 16.8782 19.8964 16.7212C20.0497 16.5643 20.2466 16.4559 20.4622 16.4097C20.6777 16.3636 20.9023 16.3817 21.1074 16.4619C21.3125 16.5421 21.489 16.6807 21.6146 16.8602C21.7401 17.0398 21.8091 17.2521 21.8128 17.4704C21.8128 17.4767 21.8128 17.4827 21.8128 17.489C21.8189 17.7754 21.71 18.0525 21.5098 18.2594C21.3097 18.4663 21.0348 18.586 20.7455 18.5922H20.7167",fill:"currentColor"}),(0,i.jsx)("path",{d:"M20.9225 17.5432C20.9697 17.5437 21.0165 17.5346 21.06 17.5165C21.1035 17.4984 21.1427 17.4717 21.1753 17.4381C21.2079 17.4045 21.2331 17.3646 21.2493 17.321C21.2656 17.2774 21.2726 17.2309 21.2699 17.1845C21.2699 16.9301 21.114 16.8086 20.7941 16.8086H20.2773V18.1404H20.4717V17.5599H20.7106L20.716 17.567L21.0867 18.1404H21.2946L20.8958 17.5469L20.9225 17.5432ZM20.6977 17.4098H20.4723V16.9595H20.758C20.9055 16.9595 21.0738 16.9833 21.0738 17.1735C21.0738 17.3923 20.9035 17.4098 20.6965 17.4098",fill:"currentColor"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_4924_61687",children:(0,i.jsx)("rect",{width:"22",height:"18.4645",fill:"currentColor",transform:"translate(0 0.271484)"})})})]})}function d({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"13",viewBox:"0 0 7 13",fill:"none",...e,children:(0,i.jsx)("path",{d:"M2.14466 12.875V7.05912H0.1875V4.79256H2.14466V3.12104C2.14466 1.18125 3.32942 0.125 5.05984 0.125C5.88873 0.125 6.60112 0.186713 6.80873 0.214296V2.24149L5.60859 2.24203C4.66749 2.24203 4.48527 2.68923 4.48527 3.34546V4.79256H6.72971L6.43747 7.05912H4.48526V12.875H2.14466Z",fill:"currentColor"})})}function h({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",...e,children:(0,i.jsx)("path",{d:"M11.5 1.00391H10V0.503906C10 0.371298 9.94732 0.244121 9.85355 0.150353C9.75979 0.0565846 9.63261 0.00390625 9.5 0.00390625C9.36739 0.00390625 9.24021 0.0565846 9.14645 0.150353C9.05268 0.244121 9 0.371298 9 0.503906V1.00391H4V0.503906C4 0.371298 3.94732 0.244121 3.85355 0.150353C3.75979 0.0565846 3.63261 0.00390625 3.5 0.00390625C3.36739 0.00390625 3.24021 0.0565846 3.14645 0.150353C3.05268 0.244121 3 0.371298 3 0.503906V1.00391H1.5C1.23478 1.00391 0.98043 1.10926 0.792893 1.2968C0.605357 1.48434 0.5 1.73869 0.5 2.00391V12.0039C0.5 12.2691 0.605357 12.5235 0.792893 12.711C0.98043 12.8985 1.23478 13.0039 1.5 13.0039H11.5C11.7652 13.0039 12.0196 12.8985 12.2071 12.711C12.3946 12.5235 12.5 12.2691 12.5 12.0039V2.00391C12.5 1.73869 12.3946 1.48434 12.2071 1.2968C12.0196 1.10926 11.7652 1.00391 11.5 1.00391ZM3 2.00391V2.50391C3 2.63651 3.05268 2.76369 3.14645 2.85746C3.24021 2.95123 3.36739 3.00391 3.5 3.00391C3.63261 3.00391 3.75979 2.95123 3.85355 2.85746C3.94732 2.76369 4 2.63651 4 2.50391V2.00391H9V2.50391C9 2.63651 9.05268 2.76369 9.14645 2.85746C9.24021 2.95123 9.36739 3.00391 9.5 3.00391C9.63261 3.00391 9.75979 2.95123 9.85355 2.85746C9.94732 2.76369 10 2.63651 10 2.50391V2.00391H11.5V4.00391H1.5V2.00391H3ZM11.5 12.0039H1.5V5.00391H11.5V12.0039Z",fill:"currentColor"})})}function f({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",...e,children:(0,i.jsx)("path",{d:"M14.5 7.00391H12.9769C12.8584 5.72397 12.296 4.52579 11.387 3.61687C10.4781 2.70795 9.27993 2.14553 8 2.02703V0.503906C8 0.371298 7.94732 0.244121 7.85355 0.150353C7.75979 0.0565846 7.63261 0.00390625 7.5 0.00390625C7.36739 0.00390625 7.24021 0.0565846 7.14645 0.150353C7.05268 0.244121 7 0.371298 7 0.503906V2.02703C5.72007 2.14553 4.52188 2.70795 3.61296 3.61687C2.70404 4.52579 2.14163 5.72397 2.02312 7.00391H0.5C0.367392 7.00391 0.240215 7.05658 0.146447 7.15035C0.0526784 7.24412 0 7.3713 0 7.50391C0 7.63651 0.0526784 7.76369 0.146447 7.85746C0.240215 7.95123 0.367392 8.00391 0.5 8.00391H2.02312C2.14163 9.28384 2.70404 10.482 3.61296 11.3909C4.52188 12.2999 5.72007 12.8623 7 12.9808V14.5039C7 14.6365 7.05268 14.7637 7.14645 14.8575C7.24021 14.9512 7.36739 15.0039 7.5 15.0039C7.63261 15.0039 7.75979 14.9512 7.85355 14.8575C7.94732 14.7637 8 14.6365 8 14.5039V12.9808C9.27993 12.8623 10.4781 12.2999 11.387 11.3909C12.296 10.482 12.8584 9.28384 12.9769 8.00391H14.5C14.6326 8.00391 14.7598 7.95123 14.8536 7.85746C14.9473 7.76369 15 7.63651 15 7.50391C1
195 7.3713 14.9473 7.24412 14.8536 7.15035C14.7598 7.05658 14.6326 7.00391 14.5 7.00391ZM7.5 12.0039C6.60998 12.0039 5.73995 11.74 4.99993 11.2455C4.25991 10.7511 3.68314 10.0482 3.34254 9.22598C3.00195 8.40371 2.91283 7.49891 3.08647 6.626C3.2601 5.75309 3.68868 4.95126 4.31802 4.32193C4.94736 3.69259 5.74918 3.26401 6.62209 3.09037C7.49501 2.91674 8.39981 3.00585 9.22208 3.34645C10.0443 3.68704 10.7471 4.26382 11.2416 5.00384C11.7361 5.74386 12 6.61389 12 7.50391C11.9987 8.69697 11.5241 9.8408 10.6805 10.6844C9.83689 11.5281 8.69307 12.0026 7.5 12.0039Z",fill:"currentColor"})})}function p({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",...e,children:(0,i.jsx)("path",{d:"M14.375 5.62495C14.3751 4.78633 14.1341 3.96535 13.6809 3.25979C13.2276 2.55422 12.5811 1.9938 11.8183 1.64526C11.0555 1.29672 10.2087 1.17475 9.37853 1.29388C8.54842 1.413 7.77002 1.76821 7.13606 2.31718C6.50209 2.86616 6.03926 3.58578 5.80269 4.39034C5.56611 5.1949 5.56576 6.05051 5.80168 6.85526C6.0376 7.66002 6.49984 8.38002 7.13336 8.92951C7.76688 9.479 8.54498 9.83484 9.375 9.95464V18.125C9.375 18.2907 9.44085 18.4497 9.55806 18.5669C9.67527 18.6841 9.83424 18.75 10 18.75C10.1658 18.75 10.3247 18.6841 10.4419 18.5669C10.5592 18.4497 10.625 18.2907 10.625 18.125V9.95464C11.6656 9.80297 12.6169 9.28218 13.3053 8.48731C13.9938 7.69244 14.3734 6.67651 14.375 5.62495ZM10 8.74995C9.38193 8.74995 8.77775 8.56668 8.26384 8.2233C7.74994 7.87992 7.3494 7.39186 7.11288 6.82084C6.87635 6.24982 6.81447 5.62149 6.93505 5.0153C7.05562 4.40911 7.35325 3.85228 7.79029 3.41525C8.22733 2.97821 8.78415 2.68058 9.39034 2.56C9.99653 2.43942 10.6249 2.50131 11.1959 2.73783C11.7669 2.97435 12.255 3.37489 12.5983 3.8888C12.9417 4.4027 13.125 5.00689 13.125 5.62495C13.125 6.03534 13.0442 6.4417 12.8871 6.82084C12.7301 7.19998 12.4999 7.54448 12.2097 7.83466C11.9195 8.12485 11.575 8.35503 11.1959 8.51208C10.8167 8.66912 10.4104 8.74995 10 8.74995Z",fill:"white",fillOpacity:"1"})})}function m({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:(0,i.jsx)("path",{d:"M9.05389 8.32819V1.62327C9.05389 1.42528 8.97524 1.23539 8.83524 1.09539C8.69524 0.955387 8.50535 0.876735 8.30736 0.876735C8.10937 0.876735 7.91948 0.955387 7.77948 1.09539C7.63948 1.23539 7.56082 1.42528 7.56082 1.62327V8.32819L5.79727 6.56397L5.79726 6.56395C5.65719 6.42388 5.46722 6.3452 5.26914 6.3452C5.0710
195 6.3452 4.88108 6.42388 4.74102 6.56395C4.60095 6.70402 4.52226 6.89399 4.52226 7.09207C4.52226 7.29015 4.60095 7.48012 4.74102 7.62019L7.77919 10.6584C7.84852 10.7278 7.93085 10.7828 8.02148 10.8204C8.11211 10.858 8.20925 10.8773 8.30736 10.8773C8.40546 10.8773 8.50261 10.858 8.59324 10.8204C8.68387 10.7828 8.7662 10.7278 8.83553 10.6584L11.8737 7.62019C11.9431 7.55083 11.9981 7.4685 12.0356 7.37789C12.0731 7.28727 12.0925 7.19015 12.0925 7.09207C12.0925 6.99399 12.0731 6.89687 12.0356 6.80625C11.9981 6.71564 11.9431 6.63331 11.8737 6.56395C11.8043 6.4946 11.722 6.43958 11.6314 6.40205C11.5408 6.36452 11.4437 6.3452 11.3456 6.3452C11.2475 6.3452 11.1504 6.36452 11.0598 6.40205C10.9692 6.43958 10.8868 6.4946 10.8175 6.56395L10.8174 6.56397L9.05389 8.32819ZM15.738 14.9914V10.1303C15.738 9.9323 15.6593 9.74242 15.5193 9.60241C15.3793 9.46241 15.1894 9.38376 14.9914 9.38376C14.7935 9.38376 14.6036 9.46241 14.4636 9.60241C14.3236 9.74242 14.2449 9.9323 14.2449 10.1303V14.2449H2.3698V10.1303C2.3698 9.9323 2.29115 9.74241 2.15115 9.60241C2.01115 9.46241 1.82126 9.38376 1.62327 9.38376C1.42528 9.38376 1.23539 9.46241 1.09539 9.60241C0.955387 9.74241 0.876735 9.9323 0.876735 10.1303V14.9914C0.876735 15.1894 0.955387 15.3793 1.09539 15.5193C1.23539 15.6593 1.42528 15.738 1.62327 15.738H14.9914C15.1894 15.738 15.3793 15.6593 15.5193 15.5193C15.6593 15.3793 15.738 15.1894 15.738 14.9914Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.27778"})})}function v({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",...e,children:[(0,i.jsx)("path",{d:"M22.4258 7.42383L7.57654 22.2731",stroke:"currentColor"}),(0,i.jsx)("path",{d:"M22.4258 22.2734L7.57654 7.42419",stroke:"currentColor"})]})}function g({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 17 17",fill:"none",...e,children:(0,i.jsx)("path",{d:"M15.5004 6.0152C15.4753 6.88561 15.1174 7.71326 14.5004 8.3277L12.3285 10.5008C12.0122 10.8189 11.6359 11.071 11.2215 11.2427C10.807 11.4143 10.3627 11.5021 9.91411 11.5008H9.91098C9.45475 11.5005 9.00322 11.4088 8.58305 11.231C8.16287 11.0532 7.78259 10.7931 7.46465 10.4659C7.14671 10.1387 6.89757 9.75107 6.73195 9.32596C6.56633 8.90086 6.48758 8.44688 6.50036 7.99083C6.50409 7.85822 6.56034 7.73252 6.65675 7.64139C6.75315 7.55026 6.88181 7.50116 7.01442 7.50489C7.14703 7.50862 7.27272 7.56487 7.36385 7.66128C7.45498 7.75769 7.50409 7.88634 7.50036 8.01895C7.49125 8.34141 7.54687 8.66241 7.66394 8.96301C7.781 9.2636 7.95713 9.53768 8.18191 9.76905C8.4067 10.0004 8.67558 10.1844 8.97267 10.3101C9.26976 10.4358 9.58902 10.5006 9.91161 10.5008C10.2287 10.5016 10.5428 10.4396 10.8358 10.3183C11.1288 10.1969 11.3948 10.0187 11.6185 9.79395L13.7904 7.62208C14.2385 7.16833 14.4888 6.55573 14.4868 5.91802C14.4849 5.28031 14.2306 4.66929 13.7797 4.21835C13.3288 3.76742 12.7178 3.51321 12.08 3.51121C11.4423 3.50922 10.8297 3.7596 10.376 4.2077L9.68848 4.8952C9.59395 4.98501 9.46808 5.03434 9.3377 5.03267C9.20731 5.031 9.08274 4.97847 8.99054 4.88627C8.89834 4.79407 8.84581 4.66949 8.84414 4.53911C8.84247 4.40873 8.8918 4.28286 8.98161 4.18833L9.66911 3.50083C9.98629 3.18353 10.3629 2.93184 10.7774 2.76011C11.1918 2.58839 11.6361 2.5 12.0847 2.5C12.5334 2.5 12.9776 2.58839 13.3921 2.76011C13.8066 2.93184 14.1832 3.18353 14.5004 3.50083C14.8289 3.83018 15.087 4.22293 15.2589 4.65519C15.4308 5.08746 15.513 5.55018 15.5004 6.0152ZM7.31286 12.1046L6.62536 12.7921C6.40112 13.0178 6.13425 13.1967 5.84026 13.3184C5.54627 13.4401 5.23103 13.5021 4.91286 13.5008C4.43555 13.5004 3.96906 13.3586 3.57233 13.0932C3.17561 12.8278 2.86645 12.4508 2.68393 12.0097C2.5014 11.5687 2.4537 11.0835 2.54684 10.6153C2.63998 10.1472 2.86979 9.71715 3.20723 9.37958L5.37536 7.2077C5.71685 6.86441 6.15367 6.63173 6.6291 6.53988C7.10453 6.44803 7.59659 6.50126 8.04138 6.69266C8.48616 6.88405 8.86312 7.20476 9.1233 7.61314C9.38348 8.02152 9.51485 8.4987 9.50036 8.9827C9.49663 9.11531 9.54573 9.24397 9.63686 9.34037C9.72799 9.43678 9.85369 9.49303 9.98629 9.49676C10.1189 9.50049 10.2476 9.45139 10.344 9.36026C10.4404 9.26913 10.4966 9.14344 10.5004 9.01083C10.5124 8.54653 10.4299 8.08464 10.258 7.65317C10.0861 7.22171 9.82835 6.82966 9.50036 6.50083C8.85985 5.86059 7.99129 5.50094 7.08567 5.50094C6.18005 5.50094 5.31149 5.86059 4.67098 6.50083L2.50036 8.6727C2.023 9.14986 1.6978 9.75782 1.56586 10.4197C1.43392 11.0817 1.50116 11.7679 1.75908 12.39
1916C2.01699 13.0153 2.45401 13.5486 3.01491 13.924C3.57581 14.2994 4.23541 14.5002 4.91036 14.5008C5.35903 14.5021 5.8035 14.4144 6.21803 14.2428C6.63257 14.0711 7.00894 13.8189 7.32536 13.5008L8.01286 12.8133C8.09377 12.718 8.13605 12.5958 8.13134 12.4709C8.12663 12.346 8.07529 12.2273 7.98744 12.1384C7.89958 12.0494 7.78159 11.9966 7.65672 11.9904C7.53185 11.9841 7.40916 12.0249 7.31286 12.1046Z",fill:"currentColor"})})}function y({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:(0,i.jsx)("path",{d:"M16 3C13.4288 3 10.9154 3.76244 8.77759 5.1909C6.63975 6.61935 4.97351 8.64968 3.98957 11.0251C3.00563 13.4006 2.74819 16.0144 3.2498 18.5362C3.75141 21.0579 4.98953 23.3743 6.80762 25.1924C8.6257 27.0105 10.9421 28.2486 13.4638 28.7502C15.9856 29.2518 18.5995 28.9944 20.9749 28.0104C23.3503 27.0265 25.3807 25.3603 26.8091 23.2224C28.2376 21.0846 29 18.5712 29 16C28.9964 12.5533 27.6256 9.24882 25.1884 6.81163C22.7512 4.37445 19.4467 3.00364 16 3ZM16 27C13.8244 27 11.6977 26.3549 9.88873 25.1462C8.07979 23.9375 6.66989 22.2195 5.83733 20.2095C5.00477 18.1995 4.78693 15.9878 5.21137 13.854C5.63581 11.7202 6.68345 9.7602 8.22183 8.22183C9.76021 6.68345 11.7202 5.6358 13.854 5.21136C15.9878 4.78692 18.1995 5.00476 20.2095 5.83733C22.2195 6.66989 23.9375 8.07979 25.1462 9.88873C26.3549 11.6977 27 13.8244 27 16C26.9967 18.9164 25.8367 21.7123 23.7745 23.7745C21.7123 25.8367 18.9164 26.9967 16 27ZM10 13.5C10 13.2033 10.088 12.9133 10.2528 12.6666C10.4176 12.42 10.6519 12.2277 10.926 12.1142C11.2001 12.0006 11.5017 11.9709 11.7926 12.0288C12.0836 12.0867 12.3509 12.2296 12.5607 12.4393C12.7704 12.6491 12.9133 12.9164 12.9712 13.2074C13.0291 13.4983 12.9994 13.7999 12.8858 14.074C12.7723 14.3481 12.58 14.5824 12.3334 14.7472C12.0867 14.912 11.7967 15 11.5 15C11.1022 15 10.7206 14.842 10.4393 14.5607C10.158 14.2794 10 13.8978 10 13.5ZM22 13.5C22 13.7967 21.912 14.0867 21.7472 14.3334C21.5824 14.58 21.3481 14.7723 21.074 14.8858C20.7999 14.9994 20.4983 15.0291 20.2074 14.9712C19.9164 14.9133 19.6491 14.7704 19.4393 14.5607C19.2296 14.3509 19.0867 14.0836 19.0288 13.7926C18.971 13.5017 19.0007 13.2001 19.1142 12.926C19.2277 12.6519 19.42 12.4176 19.6667 12.2528C19.9133 12.088 20.2033 12 20.5 12C20.8978 12 21.2794 12.158 21.5607 12.4393C21.842 12.7206 22 13.1022 22 13.5ZM21.865 21.5C21.9374 21.6138 21.9859 21.7411 22.0078 21.8742C22.0297 22.0073 22.0245 22.1434 21.9924 22.2744C21.9603 22.4054 21.902 22.5285 21.8211 22.6364C21.7402 22.7443 21.6383 22.8348 21.5215 22.9022C21.4048 22.9697 21.2756 23.0129 21.1417 23.0292C21.0078 23.0454 20.872 23.0345 20.7425 22.9969C20.6129 22.9593 20.4924 22.8959 20.388 22.8105C20.2836 22.7251 20.1975 22.6195 20.135 22.5C19.2013 20.8862 17.7338 20 16 20C14.2663 20 12.7988 20.8875 11.865 22.5C11.8025 22.6195 11.7164 22.7251 11.6121 22.8105C11.5077 22.8959 11.3871 22.9593 11.2575 22.9969C11.128 23.0345 10.9922 23.0454 10.8583 23.0292C10.7245 23.0129 10.5952 22.9697 10.4785 22.9022C10.3617 22.8348 10.2598 22.7443 10.1789 22.6364C10.098 22.5285 10.0397 22.4054 10.0076 22.2744C9.97555 22.1434 9.97029 22.0073 9.99218 21.8742C10.0141 21.7411 10.0627 21.6138 10.135 21.5C11.4213 19.2762 13.5588 18 16 18C18.4413 18 20.5788 19.275 21.865 21.5Z",fill:"currentColor"})})}function b({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",...e,children:[(0,i.jsx)("path",{d:"M10.5898 5.50195L0.404659 5.50195",stroke:"currentColor"}),(0,i.jsx)("path",{d:"M5.49609 0.408203L5.49609 10.5934",stroke:"currentColor"})]})}function w({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",...e,children:(0,i.jsx)("path",{d:"M0.734375 1.46484L5.26953 6L0.734375 10.5352",stroke:"currentColor",strokeOpacity:"0.6",strokeWidth:"1.4375",strokeLinecap:"round"})})}function x({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none",...e,children:[(0,i.jsx)("g",{clipPath:"url(#clip0_1201_26921)",children:(0,i.jsx)("path",{d:"M13 6L8 11L3 6",stroke:"currentColor",strokeWidth:"1.28",strokeLinecap:"square"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1201_26921",children:(0,i.jsx)("rect",{width:"16",height:"16",fill:"currentColor"})})})]})}function _({...e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"25",viewBox:"0 0 22 25",fill:"none",...e,children:(0,i.jsx)("path",{d:"M1.78516 2.39331V22.9714C1.78821 23.1357 1.8345 23.2962 1.91937 23.4368C2.00423 23.5774 2.12467 23.6931 2.26854 23.7723C2.41242 23.8516 2.57463 23.8915 2.73883 23.888C2.90304 23.8845 3.06342 23.8378 3.20381 23.7526L20.0269 13.4635C20.1613 13.3822 20.2724 13.2676 20.3495 13.1307C20.4266 12.9939 20.4672 12.8395 20.4672 12.6824C20.4672 12.5253 20.4266 12.3709 20.3495 12.234C20.2724 12.0972 20.1613 11.9826 20.0269 11.9012L3.20381 1.61217C3.06342 1.52695 2.90304 1.48024 2.73883 1.47677C2.57463 1.4733 2.41242 1.51318 2.26854 1.5924C2.12467 1.67162 2.00423 1.78737 1.91937 1.92798C1.8345 2.0686 1.78821 2.2291 1.78516 2.39331Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.86819",strokeLinecap:"round",strokeLinejoin:"round"})})}function C({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",...e,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_3508_58578)",children:[(0,i.jsx)("path",{d:"M2.64645 9.14645L2.29289 9.5L3 10.2071L3.35355 9.85355L2.64645 9.14645ZM9.35355 3.85355C9.54882 3.65829 9.54882 3.34171 9.35355 3.14645C9.15829 2.95118 8.84171 2.95118 8.64645 3.14645L9.35355 3.85355ZM3.35355 9.85355L9.35355 3.85355L8.64645 3.14645L2.64645 9.14645L3.35355 9.85355Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M4.125 3.5H9V8.375",stroke:"currentColor",strokeLinecap:"square"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_3508_58578",children:(0,i.jsx)("rect",{width:"12",height:"12",fill:"
19currentColor",transform:"translate(0 0.5)"})})})]})}function k({...e}){return(0,i.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("rect",{width:"18",height:"18",rx:"4.5",fill:"#00F2D4"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"17",height:"17",rx:"4",stroke:"#252929",strokeOpacity:"0.4"}),(0,i.jsx)("g",{clipPath:"url(#clip0_4391_12212)",children:(0,i.jsx)("path",{d:"M5.13281 9.70312L7.59375 12.1641L13.2188 6.53906",stroke:"#252929",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_4391_12212",children:(0,i.jsx)("rect",{width:"11.25",height:"11.25",fill:"white",transform:"translate(3.375 3.375)"})})})]})}function E({...e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 26 25",fill:"none",...e,children:[(0,i.jsx)("rect",{x:"0.5",width:"25",height:"25",rx:"12.5",fill:"#1E2323"}),(0,i.jsx)("path",{d:"M18.0898 12.502L7.90466 12.502",stroke:"#00F2D4",strokeWidth:"0.925926"}),(0,i.jsx)("path",{d:"M12.9941 7.4082L12.9941 17.5934",stroke:"#00F2D4",strokeWidth:"0.925926"})]})}},7594:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});let i=e=>"object"==typeof e&&null!==e},7605:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,V:()=>r}),n(9742);let i=()=>{},r=()=>{}},7673:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var i=n(7862);let r={};function a(e,t){let n=(0,i.p)(e);return()=>r[t]??n()}},7774:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var i=n(9570);function r(e,t){let n=e?.[t]??e?.default??e;return n!==e?(0,i.K)(n,e):n}},7839:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(4232);let r=!1,a=[],s=e=>{r=e,a.forEach(t=>t(e))};function o(e=!1){let[t,n]=(0,i.useState)(e);return(0,i.useEffect)(()=>{a.length>0&&n(r)},[]),(0,i.useEffect)(()=>{let e=e=>{n(e)};return a.push(e),()=>{let t=a.indexOf(e);-1!==t&&a.splice(t,1)}},[]),(0,i.useEffect)(()=>{t?document.body.classList.add("light"):document.body.classList.remove("light")},[t]),{isLightMode:t,setLightMode:e=>{n(e),s(e)},toggleLightMode:()=>{let e=!t;n(e),s(e)}}}},7862:(e,t,n)=>{"use strict";function i(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{p:()=>i})},7950:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});let i=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},7990:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(7594);function r(e){return(0,i.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},8038:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});let i=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`}},8205:(e,t,n)=>{"use strict";function i(e,t){-1===e.indexOf(t)&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>r,Kq:()=>i})},8230:(e,t,n)=>{e.exports=n(4009)}
19,8254:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});let i=new Set(["width","height","top","left","right","bottom",...n(2871).U])},8328:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var i=n(1783),r=n(1923);let a=new Set(["brightness","contrast","saturate","opacity"]);function s(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(r.S)||[];if(!i)return e;let s=n.replace(i,""),o=+!!a.has(t);return i!==n&&(o*=100),t+"("+o+s+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...i.f,getAnimatableNone:e=>{let t=e.match(o);return t?t.map(s).join(" "):e}}},8331:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,q:()=>d});var i=n(3413),r=n(50);let a=new Set,s=!1,o=!1,l=!1;function c(){if(o){let e=Array.from(a).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,i.W9)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}o=!1,s=!1,a.forEach(e=>e.complete(l)),a.clear()}function u(){a.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o=!0)})}function d(){l=!0,u(),c(),l=!1}class h{constructor(e,t,n,i,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(a.add(this),s||(s=!0,r.Gt.read(u),r.Gt.resolveKeyframes(c))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),a=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,a);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=a),i&&void 0===r&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),a.delete(this)}cancel(){"scheduled"===this.state&&(a.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},8355:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});let i="data-"+(0,n(9098).I)("framerAppearId")},8372:(e,t,n)=>{"use strict";n.d(t,{U:()=>i,_:()=>r});let i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...i]},8592:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(7876),r=n(4269),a=n(1370),s=n(7496),o=n(9241),l=n(4232);let c=function({layout:e="resourcesSidebar",newsletter_signup:t,className:n="",isLight:a=!1,heading:s,hideHeading:o=!1}){let[c]=(0,l.useContext)(r.F),u=s||t?.heading||c?.options?.global?.newsletter_signup?.hubspot_form?.heading||"",p=u?u.replace(/\|(.*?)\|/g,`<span class="${a?"text-grey-15":"text-teal"}">$1</span>`):"",m={resourcesSidebar:d,resourcesListings:h,resourcesListingsLarge:h,resourcesFooter:f},v=m[e]||m.resourcesSidebar,g={heading:p,className:n,hideHeading:o,..."resourcesListingsLarge"===e&&{isLarge:!0},..."resourcesFooter"===e&&{isLight:a}};return(0,i.jsx)(v,{...g,className:n})},u=()=>{let[e,t]=l.useState(!1),[n]=(0,l.useContext)(r.F),i=n?.options?.global?.newsletter_signup?.hubspot_form;return{isSubmitted:e,handleSubmit:async e=>{e.preventDefault();let n=e.currentTarget,r=n.querySelector('input[type="text"]'),s=r?.value;if(s&&i?.form_id){(0,a.Dd)("newsletter_interaction",{newsletter_action:"submit_attempt",newsletter_location:"inline_form",newsletter_type:"simple_signup",interaction_type:"submit",email_entered:!!s});try{if(!(await fetch(`https://api.hsforms.com/submissions/v3/integration/submit/23319422/${i.form_id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:[{name:"email",value:s}]})})).ok)throw Error("Failed to submit form");n.reset(),t(!0),(0,a.Dd)("newsletter_interaction",{newsletter_action:"submit_success",newsletter_location:"inline_form",newsletter_type:"simple_signup",interaction_type:"success"})}catch(e){(0,a.Dd)("newsletter_interaction",{newsletter_action:"submit_error",newsletter_location:"inline_form",newsletter_type:"simple_signup",interaction_type:"error",error_message:e.message})}}}}};function d({heading:e,className:t="",hideHeading:n=!1}){let{isSubmitted:r,handleSubmit:o}=u();return(0,i.jsxs)("div",{className:`space-y-11 ${t}`,children:[!!e&&!n&&(0,i.jsx)("div",{className:"text-16 text-grey-8",dangerouslySetInnerHTML:{__html:e}}),r?(0,i.jsx)("div",{className:"text-13 text-white",children:"Thanks for subscribing to NetBox Labs!"}):(0,i.jsx)("form",{onSubmit:o,children:(0,i.jsxs)("div",{className:"flex items-center gap-x-6 border-b border-grey-10 pb-3",children:[(0,i.jsx)("input",{type:"text",placeholder:"Email Address",required:!0,className:"text-13 w-full flex-1 border-0 bg-transparent p-0 !leading-none text-white placeholder:text-grey-8 focus:outline-none focus:ring-0",onFocus:()=>{(0,a.Dd)("newsletter_interaction",{newsletter_action:"input_focus",newsletter_location:"sidebar",newsletter_type:"simple_signup",interaction_type:"focus"})}}),(0,i.jsx)("button",{type:"submit","aria-label":"Newsletter signup button",className:"flex aspect-[1/1] w-[1.375rem] shrink-0 items-center justify-center text-grey-6",children:(0,i.jsx)(s.fl,{className:"w-3"})})]})})]})}function h({heading:e,className:t="",isLarge:n=!1}){let{isSubmitted:r,handleSubmit:a}=u(),l=e.replace(/<>/g,'<span class="md:block"></span>');return(0,i.jsxs)("div",{className:`relative grid overflow-hidden rounded-lg border border-white/20 sm:grid-cols-2 ${t}`,children:[(0,i.jsx)("div",{className:(0,o.A)("flex items-center justify-center bg-[#AC24C2] p-6 md:p-8",n&&"lg:p-20"),children:(0,i.jsx)("div",{className:(0,o.A)("relative z-10 w-full text-white",n?"text-h5-mobSmaller md:max-w-[27.5rem]":"text-h6 md:max-w-[22.375rem]"),dangerouslySetInnerHTML:{__html:l}})}),(0,i.jsx)("div",{className:"flex items-center justify-center px-6 py-6 md:px-8 md:py-12",children:r?(0,i.jsx)("div",{className:"text-16 text-white md:max-w-[22.375rem]",children:"Thanks for subscribing to NetBox Labs!"}):(0,i.jsx)("form",{onSubmit:a,className:"w-full md:max-w-[22.375rem]",children:(0,i.jsxs)("div",{className:"flex w-full items-center justify-between gap-x-6 border-b border-grey-10 pb-3 md:pb-4",children:[(0,i.jsx)("input",{type:"text",placeholder:"Email Address",required:!0,className:"text-16 w-full flex-1 border-0 bg-transparent p-0 !leading-none text-white placeholder:text-grey-8 focus:outline-none focus:ring-0"}),(0,i.jsx)("button",{type:"submit","aria-label":"Newsletter signup button",className:"flex aspect-[1/1] w-7 shrink-0 items-center justify-center text-grey-6",children:(0,i.jsx)(s.fl,{className:"w-3 md:w-3.5"})})]})})}),(0,i.jsxs)("div",{className:"pointer-events-none",children:[(0,i.jsx)("div",{className:"absolute left-7 top-[calc(100%-3rem)] aspect-[880/406] w-[72%] rounded-[100%] bg-[#9535F3] opacity-50 blur-[72px]"}),n&&(0,i.jsx)("div",{className:"absolute left-1/2 top-[calc(100%-3rem)] aspect-[880/406] w-[72%] -translate-x-1/2 roun
19ded-[100%] bg-[#53059E] opacity-80 blur-[72px]"})]})]})}function f({heading:e,className:t="",isLight:n=!1}){let{isSubmitted:r,handleSubmit:a}=u();return(0,i.jsxs)("div",{className:`hs-footer space-y-8 sm:space-y-10 lg:space-y-14 ${t}`,children:[e&&(0,i.jsx)("div",{className:"text-h7 text-grey-8",dangerouslySetInnerHTML:{__html:e}}),r?(0,i.jsx)("div",{className:(0,o.A)("text-13",n?"text-grey-15":"text-white"),children:"Thanks for subscribing to NetBox Labs!"}):(0,i.jsx)("form",{onSubmit:a,children:(0,i.jsxs)("div",{className:(0,o.A)("flex items-center gap-x-6 border-b border-grey-10 pb-3",n?"border-grey-4":""),children:[(0,i.jsx)("input",{type:"text",placeholder:"Email Address",required:!0,className:(0,o.A)("text-13 w-full flex-1 border-0 bg-transparent p-0 !leading-none placeholder:text-grey-8 focus:outline-none focus:ring-0",n?"text-grey-15":"text-white")}),(0,i.jsx)("button",{type:"submit","aria-label":"Newsletter signup button",className:"group flex aspect-[1/1] w-[1.375rem] shrink-0 items-center justify-center text-grey-6",children:(0,i.jsx)(s.fl,{className:"w-3 transition-[transform,color] duration-200 group-hover:translate-x-0.5 group-hover:text-grey-4"})})]})})]})}},8637:(e,t)=>{"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:i,blurHeight:r,blurDataURL:a,objectFit:s}=e,o=i?40*i:t,l=r?40*r:n,c=o&&l?"viewBox='0 0 "+o+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},8737:(e,t,n)=>{"use strict";n.d(t,{zK:()=>a});var i=n(2871),r=n(6117);function a(e,{layout:t,layoutId:n}){return i.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!r.H[e]||"opacity"===e)}},8738:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});let i=e=>!!(e&&e.getVelocity)},8901:(e,t,n)=>{"use strict";n.d(t,{F:()=>a,e:()=>r});var i=n(1497);function r(e){return{point:{x:e.pageX,y:e.pageY}}}let a=e=>t=>(0,i.M)(t)&&e(t,r(t))},8943:(e,t,n)=>{"use strict";n.d(t,{OU:()=>c,Ql:()=>u,Ww:()=>f,hq:()=>a,o4:()=>l});var i=n(1853),r=n(2822);function a(e,t,n){return n+t*(e-n)}function s(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function o(e,t=0,n=1,i,r){e.min=s(e.min,t,n,i,r),e.max=s(e.max,t,n,i,r)}function l(e,{x:t,y:n}){o(e.x,t.translate,t.scale,t.originPoint),o(e.y,n.translate,n.scale,n.originPoint)}function c(e,t,n,i=!1){let a,s,o=n.length;if(o){t.x=t.y=1;for(let c=0;c<o;c++){s=(a=n[c]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(u(e.x,-a.scroll.offset.x),u(e.y,-a.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,l(e,s)),i&&(0,r.HD)(a.latestValues)&&f(e,a.latestValues,a.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function u(e,t){e.min+=t,e.max+=t}function d(e,t,n,r,a=.5){let s=(0,i.k)(e.min,e.max,a);o(e,t,n,s,r)}function h(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function f(e,t,n){let i=n??e;d(e.x,h(t.x,i.x),t.scaleX,t.scale,t.originX),d(e.y,h(t.y,i.y),t.scaleY,t.scale,t.originY)}},8975:(e,t,n)=>{"use strict";n.d(t,{j4:()=>r,pG:()=>s,rm:()=>l});let i=e=>t=>"string"==typeof t&&t.startsWith(e),r=i("--"),a=i("var(--"),s=e=>!!a(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}}
19,8983:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,Y:()=>u});var i=n(7876),r=n(9241),a=n(6719),s=n(5784),o=n(4232);let l=["linkTextVariants","linkTextDuplicateVariants"];function c({link:e,button:t,className:n="",children:c,...u}){let[d,h]=(0,o.useState)(!1),f=(0,o.useMemo)(()=>{let e=t?.background_color||"black",i=t?.size||"medium";return(0,r.A)("relative overflow-hidden inline-block select-none appearance-none rounded text-center font-medium !leading-none transition-colors duration-200",n,"black"===e&&"bg-black text-white","white"===e&&"bg-white text-black","grey-13"===e&&"bg-grey-13 text-white","grey-11"===e&&"bg-grey-11 text-white","white/5"===e&&"bg-white/5 text-white hover:bg-white/10","grey-1"===e&&"bg-grey-1 text-grey-16","grey-2"===e&&"bg-grey-2 text-grey-16","orange"===e&&"bg-yellow text-black","yellow"===e&&"bg-yellow text-black","yellow-solid"===e&&"bg-yellow text-black","small"===i&&"text-13 px-3 py-2 sm:py-[0.5625rem]","medium"===i&&"text-15 px-3.5 sm:px-[1.125rem] py-2.5 sm:py-3")},[t?.background_color,t?.size,n]),p=(0,o.useMemo)(()=>{let e=t?.background_color||"black";return"yellow"===e||"orange"===e?"bg-darkYellow":"bg-teal"},[t?.background_color]),{linkTextVariants:m,linkTextDuplicateVariants:v}=(0,o.useMemo)(()=>{let e={duration:.3,ease:[.33,1,.68,1]};return{linkTextVariants:{initial:{y:0,opacity:1,transition:e},hover:{y:"calc(-100% - 6px)",opacity:0,transition:e}},linkTextDuplicateVariants:{initial:{y:"calc(100% + 6px)",opacity:0,transition:e},hover:{y:0,opacity:1,transition:e}}}},[]);if(!e?.title)return null;let g=t?.size||"medium";return(0,i.jsx)(a.PY1.div,{initial:"initial",animate:d?"hover":"initial",className:f,...u,onHoverStart:()=>h(!0),onHoverEnd:()=>h(!1),children:(0,i.jsxs)("div",{className:"relative grid",children:[l.map((t,n)=>(0,i.jsx)("div",{className:"col-start-1 row-start-1 flex items-center justify-center","aria-hidden":1===n?"true":"false",role:1===n?"presentation":"none",children:(0,i.jsx)(a.PY1.span,{variants:"linkTextVariants"===t?m:v,children:e?.title})},n)),(0,i.jsx)(s.N,{children:d&&"small"!==g&&(0,i.jsx)(a.PY1.div,{className:`absolute inset-x-0 top-full h-full w-full rounded-[100%] blur-xl ${p}`,initial:{opacity:0,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.2,transition:{duration:.2}},transition:{ease:[.33,1,.68,1],duration:.5}})})]})})}function u({className:e="",link:t,children:n,underlineColour:r="black"}){return(0,i.jsx)("div",{className:`text-16px group inline-flex cursor-pointer select-none items-center leading-tight ${e}`,children:(t?.title||n)&&(0,i.jsxs)("div",{className:"group-hover:text-orange inline-block font-bold text-inherit",children:[t?.title&&(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:t?.title}}),!t?.title&&n&&n,(0,i.jsx)("div",{className:`group-hover:bg-orange mt-1 h-[2px] w-full rounded bg-black bg-${r} transition-colors duration-300 ease-in-out`})]})})}},9098:(e,t,n)=>{"use strict";function i(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}n.d(t,{I:()=>i})},9099:(e,t,n)=>{e.exports=n(6296)},9198:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(7876),r=n(1370),a=n(4587),s=n.n(a);n(4232);let o=function({image:e,isFill:t=!1,isPriority:n=!1,className:a,trackingLocation:o}){if(!e||!e.url&&!e.src)return null;let l={src:e.url||e.src,quality:75,alt:e.alt||e.title,priority:n,className:a,draggable:!1,onClick:t=>{try{let n=t.currentTarget;(0,r.r2)("click",{image_src:e.url||e.src,image_alt:e.alt||e.title,image_type:(e.url||e.src)?.split(".").pop()?.toLowerCase(),image_location:o,interaction_type:"click",image_size:`${n.naturalWidth}x${n.naturalHeight}`})}catch(e){}},onError:()=>{try{(0,r.r2)("error",{image_src:e.url||e.src,image_alt:e.alt||e.title,image_location:o,interaction_type:"error"})}catch(e){}}};return t?(0,i.jsx)(s(),{...l,fill:t}):(0,i.jsx)(s(),{...l,width:e.width,height:e.height})}},9203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return r}});let i=n(4232);function r(e,t){let n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=a(e,i)),t&&(r.current=a(t,i))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
19dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9241:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i=function(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}(e))&&(i&&(i+=" "),i+=t);return i}},9280:(e,t,n)=>{"use strict";let i,r;n.d(t,{X:()=>p});var a=n(2549),s=n(373);let o=new WeakMap,l=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:(0,a.x)(i)&&"getBBox"in i?i.getBBox()[t]:i[n],c=l("inline","width","offsetWidth"),u=l("block","height","offsetHeight");function d({target:e,borderBoxSize:t}){o.get(e)?.forEach(n=>{n(e,{get width(){return c(e,t)},get height(){return u(e,t)}})})}function h(e){e.forEach(d)}let f=new Set;function p(e,t){return"function"==typeof e?(f.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};f.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{f.delete(e),f.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(e,t){i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(h));let n=(0,s.K)(e);return n.forEach(e=>{let n=o.get(e);n||(n=new Set,o.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=o.get(e);n?.delete(t),n?.size||i?.unobserve(e)})}}(e,t)}},9420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let i=n(4252),r=n(8365),a=n(7876),s=r._(n(4232)),o=i._(n(8477)),l=i._(n(9269)),c=n(3408),u=n(9161),d=n(9263);n(6201);let h=n(242),f=i._(n(5540)),p=n(9203),m={deviceSizes:[640,750,828,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1};function v(e,t,n,i,r,a,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,r=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}}))}function g(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,s.forwardRef)((e,t)=>{let{src:n,srcSet:i,sizes:r,height:o,width:l,decoding:c,className:u,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:y,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:_,setShowAltText:C,sizesInput:k,onLoad:E,onError:S,...M}=e,A=(0,s.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&v(e,f,w,x,_,y,k))},[n,f,w,x,_,S,y,k]),P=(0,p.useMergedRef)(t,A);return(0,a.jsx)("img",{...M,...g(h),loading:m,width:l,height:o,decoding:c,"data-nimg":b?"fill":"1",className:u,style:d,sizes:r,srcSet:i,src:n,ref:P,onLoad:e=>{v(e.currentTarget,f,w,x,_,y,k)},onError:e=>{C(!0),"empty"!==f&&_(!0),S&&S(e)}})});function b(e){let{isAppRouter:t,imgAttributes:n}=e,i={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,i),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...i},"__nimg-"+n.src+n.srcSet+n.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(h.RouterContext),i=(0,s.useContext)(d.ImageConfigContext),r=(0,s.useMemo)(()=>{var e;let t=m||i||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),r=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:r,qualities:a}},[i]),{onLoad:o,onLoadingComplete:l}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let v=(0,s.useRef)(l);(0,s.useEffect)(()=>{v.current=l},[l]);
19let[g,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(!1),{props:C,meta:k}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:r,blurComplete:g,showAltText:x});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...C,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:_,sizesInput:e.sizes,ref:t}),k.priority?(0,a.jsx)(b,{isAppRouter:!n,imgAttributes:C}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9570:(e,t,n)=>{"use strict";function i(e,t){if(e?.inherit&&t){let{inherit:n,...i}=e;return{...t,...i}}return e}n.d(t,{K:()=>i})},9602:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(4232),a=n(7307),s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r);function o(e){var t=e||l(),n=r.useState(t),i=n[0],a=n[1];return r.useEffect(function(){if("u">typeof window&&"matchMedia"in window){var t=function(){a(e||l())},n=window.matchMedia("screen and (resolution: "+i+"dppx)");return n.hasOwnProperty("addEventListener")?n.addEventListener("change",t):n.addListener(t),function(){n.hasOwnProperty("removeEventListener")?n.removeEventListener("change",t):n.removeListener(t)}}},[i,e]),i}function l(){return Math.min(Math.max(1,"u">typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}var c=function(){function e(){}var t=e.prototype;return t.observe=function(){},t.unobserve=function(){},t.disconnect=function(){},e}(),u=globalThis.ResizeObserver||c,d=void 0!==globalThis.ResizeObserver,h=!d,f={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function p(e){return Object.assign({},f,e)}function m(e){var t,n,i,a,s,l,c,f=e.riveLoaded,m=void 0!==f&&f,v=e.canvasElem,g=e.containerRef,y=e.options,b=e.onCanvasHasResized,w=e.artboardBounds,x=p(void 0===y?{}:y),_=r.useState({height:0,width:0}),C=_[0],k=C.height,E=C.width,S=_[1],M=r.useState({height:0,width:0}),A=M[0],P=A.height,j=A.width,T=M[1],I=r.useState(!0),L=I[0],R=I[1],O=x.fitCanvasToArtboardHeight,F=x.shouldResizeCanvasToContainer,V=x.useDevicePixelRatio,D=x.customDevicePixelRatio,N=(void 0===(t=F)&&(t=!0),i=(n=r.useState({width:0,height:0}))[0],a=n[1],r.useEffect(function(){if("u">typeof window&&t){var e=function(){a({width:window.innerWidth,height:window.innerHeight})};return h&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=r.useRef(new u((s=function(e){d&&a({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},l=0,function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];clearTimeout(l),l=window.setTimeout(function(){return s.apply(e,n)},0)}))),r.useEffect(function(){var e=c.current;if(!t)return void e.disconnect();var n=g.current;return g.current&&d&&e.observe(g.current),function(){e.disconnect(),n&&d&&e.unobserve(n)}},[g,c]),i),B=o(D),H=null!=w?w:{},W=H.maxX,U=H.maxY,z=r.useCallback(function(){var e,t,n,i,r=null!=(e=null==(n=g.current)?void 0:n.clientWidth)?e:0,a=null!=(t=null==(i=g.current)?void 0:i.clientHeight)?t:0;return O&&w?{width:r,height:w.maxY/w.maxX*r}:{width:r,height:a}},[g,O,W,U]);r.useEffect(function(){if(F&&g.current&&m){var e=z(),t=e.width,n=e.height,i=!1;if(v){var r=t!==E||n!==k;if(x.fitCanvasToArtboardHeight&&r&&(g.current.style.height=n+"px",i=!0),x.useDevicePixelRatio){var a=t*B!==j||n*B!==P;if(r||a){var s=B*t,o=B*n;v.width=s,v.height=o,v.style.width=t+"px",v.style.height=n+"px",T({width:s,height:o}),i=!0}}else r&&(v.width=t,v.height=n,T({width:t,height:n}),i=!0);S({width:t,height:n})}b&&(L||i)&&b&&b(),L&&R(!1)}},[v,g,N,B,z,L,R,P,j,k,E,b,F,O,V,m]),r.useEffect(function(){T({width:0,height:0})},[v])}var v=function(){function e(){}var t=e.prototype;return t.observe=function(){},t.unobserve=function(){},t.disconnect=function(){},e}(),g=globalThis.IntersectionObserver||v,y=function(){function e(){var e=this;this.elementsMap=new Map,this.onObserved=function(t){t.forEach(function(t){var n=e.elementsMap.get(t.target);n&&n(t)})},this.observer=new g(this.onObserved)}var t=e.prototype;return t.registerCallback=function(e,t){this.observer.observe(e),this.elementsMap.set(e,t)},t.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}
19(),b=function(){return i||(i=new y),i};function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var n,i,r={},a=Object.getOwnPropertyNames(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function _(e){var t=e.setContainerRef,n=e.setCanvasRef,i=e.className,r=void 0===i?"":i,a=e.style,o=e.children,l=x(e,["setContainerRef","setCanvasRef","className","style","children"]),c=w({width:"100%",height:"100%"},a);return s.default.createElement("div",w({ref:t,className:r},!r&&{style:c}),s.default.createElement("canvas",w({ref:n,style:{verticalAlign:"top",width:0,height:0}},l),o))}function C(e,t){void 0===t&&(t={});var n=r.useState(null),i=n[0],l=n[1],c=r.useRef(null),u=r.useRef(null),d=r.useState(null),h=d[0],f=d[1],v=!!e,g=p(t),y=o(),C=r.useCallback(function(){if(h){if(h.layout&&h.layout.fit===a.Fit.Layout&&i){var e=y*h.layout.layoutScaleFactor;h.devicePixelRatioUsed=y,h.artboardWidth=(null==i?void 0:i.width)/e,h.artboardHeight=(null==i?void 0:i.height)/e}h.startRendering(),h.resizeToCanvas()}},[h,y]);m({riveLoaded:!!h,canvasElem:i,containerRef:c,options:g,onCanvasHasResized:C,artboardBounds:null==h?void 0:h.bounds});var k=r.useCallback(function(e){null===e&&i&&(i.height=0,i.width=0),l(e)},[]);r.useEffect(function(){if(i&&e){var t,n=null!=h;if(null==h){var r=g.useOffscreenRenderer,s=e.onRiveReady,o=x(e,["onRiveReady"]);t=new a.Rive(w({useOffscreenRenderer:r},o,{canvas:i})),null!=u.current&&u.current.cleanup(),u.current=t,t.on(a.EventType.Load,function(){n=!0,s&&s(t),i?f(t):t.cleanup()})}return function(){n||null==t||t.cleanup()}}},[i,v,h]);var E=r.useCallback(function(e){c.current=e},[]),S={observe:r.useCallback(function(e,t){b().registerCallback(e,t)},[]),unobserve:r.useCallback(function(e){b().removeCallback(e)},[])},M=S.observe,A=S.unobserve;r.useEffect(function(){var e,t=!1,n=function(){if(i&&t){var e=i.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==h||h.startRendering(),t=!1)}};return i&&!1!==g.shouldUseIntersectionObserver&&M(i,function(i){i.isIntersecting?h&&h.startRendering():h&&h.stopRendering(),t=!i.isIntersecting,clearTimeout(e),i.isIntersecting||0!==i.boundingClientRect.width||(e=setTimeout(n,10))}),function(){i&&A(i)}},[M,A,h,i,g.shouldUseIntersectionObserver]),r.useEffect(function(){return function(){h&&(h.cleanup(),f(null))}},[h,i]),r.useEffect(function(){return function(){null!=u.current&&u.current.cleanup()}},[]);var P=null==e?void 0:e.animations;r.useEffect(function(){h&&P&&(h.isPlaying?(h.stop(h.animationNames),h.play(P)):h.isPaused&&(h.stop(h.animationNames),h.pause(P)))},[P,h]);var j=r.useCallback(function(e){return s.default.createElement(_,w({setContainerRef:E,setCanvasRef:k},e))},[k,E]);return{canvas:i,container:c.current,setCanvasRef:k,setContainerRef:E,rive:h,RiveComponent:j}}var k=new WeakSet;function E(e){k.has(e)||(k.add(e),queueMicrotask(function(){k.delete(e),e.bind()}))}function S(e,t){var n=t.name,i=t.useNew,r=t.instance;return void 0!==r?r:e?null!=n?e.instanceByName(n)||null:i?(null==e.instance?void 0:e.instance.call(e))||null:(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null:null}function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function A(e,t,n){var i=r.useState(null),a=i[0],s=i[1],o=r.useState(n.defaultValue),l=o[0],c=o[1],u=r.useState(null),d=u[0],h=u[1],f=r.useRef(null),p=r.useRef(e),m=r.useRef(n);r.useEffect(function(){m.current=n},[n]);var v=r.useCallback(function(){var e=f.current,t=p.current,n=m.current;if(!e||!t)return s(null),c(n.defaultValue),h(null),function(){};var i=n.getProperty(e,t);if(i){s(i),c(n.getValue(i)),n.getExtendedData&&h(n.getExtendedData(i));var r=function(){c(n.getValue(i)),n.getExtendedData&&h(n.getExtendedData(i)),n.onPropertyEvent&&n.onPropertyEvent()};return i.on(r),function(){i.off(r)}}return function(){}},[]);r.useEffect(function(){return f.current=t,p.current=e,v()},[t,e,v]);var g=r.useCallback(function(e){if(a&&f.current===t)try{e(a),m.current.getExtendedData&&h(m.current.getExtendedData(a));return}catch(e){}if(f.current)try{var n=m.current.getProperty(f.current,p.current);n&&(s(n),e(n),m.current.getExtendedData&&h(m.current.getExtendedData(n)))}catch(e){}},[a,t]),y=r.useMemo(function(){return m.current.buildPropertyOperations(g)},[g]),b=M({value:l},y);return n.getExtendedData&&(b.extendedData=d),b}function P(e,t,n,i,r,a,s){try{var o=e[a](s),l=o.value}catch(e){n(e);return}o.done?t(l):Promise.resolve(l).then(i,r)}t.default=function(e){var t=e.src,n=e.artboard,i=e.animations,r=e.stateMachines,a=e.layout,o=e.useOffscreenRenderer,l=e.shouldDisableRiveListeners,c=e.shouldResizeCanvasToContainer,u=e.automaticallyHandleEvents,d=e.children,h=function(e,t){if(null==e)return{};var n,i,r={},a=Object.getOwnPropertyNames(e);for(i=0;i<a.length;i++)!(t.indexOf(n=a[i])>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),f=C({src:t,artboard:n,animations:i,layout:a,stateMachines:r,autoplay:!0,shouldDisableRiveListeners:void 0!==l&&l,automaticallyHandleEvents:void 0!==u&&u},{useOffscreenRenderer:void 0===o||o,shouldResizeCanvasToContainer:void 0===c||c}).RiveComponent;return s.default.createElement(f,h,d)},t.useGlobalViewModelInstance=function(e,t,n){var i=null!=n?n:{},a=i.instanceName,s=i.useNew,o=void 0!==s&&s,l=i.instance,c=i.rive,u=r.useState(null),d=u[0],h=u[1];return r.useEffect(function(){var n=S(e,{name:a,useNew:o,instance:l});h(n),c&&t&&n&&c.setGlobalViewModelInstance(t,n)&&E(c)},[e,t,a,o,l,c]),d},t.useResizeCanvas=m,t.useRive=C,t.useRiveFile=function(e){var t=r.useState(null),n=t[0],i=t[1],s=r.useState("idle"),o=s[0],l=s[1];return r.useEffect(function(){var t,n=null;return(t=function(){return function(e,t){var n,i,r,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
19,trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(s,"next",{value:l(0)}),o(s,"throw",{value:l(1)}),o(s,"return",{value:l(2)}),"function"==typeof Symbol&&o(s,Symbol.iterator,{value:function(){return this}}),s;function l(o){return function(l){var c=[o,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(a=0)),a;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(6===c[0]&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(t){try{l("loading"),(n=new a.RiveFile(e)).init(),n.on(a.EventType.Load,function(){null==n||n.getInstance(),i(n),l("success")}),n.on(a.EventType.LoadError,function(){l("failed")}),i(n)}catch(e){console.error(e),l("failed")}return[2]})},function(){var e=this,n=arguments;return new Promise(function(i,r){var a=t.apply(e,n);function s(e){P(a,i,r,s,o,"next",e)}function o(e){P(a,i,r,s,o,"throw",e)}s(void 0)})})(),function(){null==n||n.cleanup()}},[e.src,e.buffer]),{riveFile:n,status:o}},t.useStateMachineInput=function(e,t,n,i){var s=r.useState(null),o=s[0],l=s[1];return r.useEffect(function(){var r=function(){if(e&&t&&n||l(null),e&&t&&n){var r=e.stateMachineInputs(t);if(r){var a=r.find(function(e){return e.name===n});void 0!==i&&a&&(a.value=i),l(a||null)}}else l(null)};r(),e&&e.on(a.EventType.Load,function(){r()})},[e]),o},t.useViewModel=function(e,t){var n=null!=t?t:{},i=n.name,s=n.useDefault,o=r.useState(null),l=o[0],c=o[1];return r.useEffect(function(){var t=function(){if(!e)return void c(null);c(null!=i?(null==e.viewModelByName?void 0:e.viewModelByName.call(e,i))||null:e.defaultViewModel()||null)};return t(),e&&e.on(a.EventType.Load,t),function(){e&&e.off(a.EventType.Load,t)}},[e,i,void 0!==s&&s]),l},t.useViewModelInstance=function(e,t){var n=null!=t?t:{},i=n.name,a=n.useDefault,s=n.useNew,o=void 0!==s&&s,l=n.rive,c=r.useState(null),u=c[0],d=c[1];return r.useEffect(function(){if(!e)return void d(null);var t=S(e,{name:i,useNew:o});d(t),l&&t&&l.viewModelInstance!==t&&(l.setViewModelInstance(t),E(l))},[e,i,void 0!==a&&a,o,l]),u},t.useViewModelInstanceArtboard=function(e,t){return{setValue:A(e,t,{getProperty:r.useCallback(function(e,t){return e.artboard(t)},[]),getValue:r.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])}).setValue}},t.useViewModelInstanceBoolean=function(e,t){var n=A(e,t,{getProperty:r.useCallback(function(e,t){return e.boolean(t)},[]),getValue:r.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceColor=function(e,t){var n=A(e,t,{getProperty:r.useCallback(function(e,t){return e.color(t)},[]),getValue:r.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})},setRgb:function(t,n,i){e(function(e){e.rgb(t,n,i)})},setRgba:function(t,n,i,r){e(function(e){e.rgba(t,n,i,r)})},setAlpha:function(t){e(function(e){e.alpha(t)})},setOpacity:function(t){e(function(e){e.opacity(t)})}}},[])});return{value:n.value,setValue:n.setValue,setRgb:n.setRgb,setRgba:n.setRgba,setAlpha:n.setAlpha,setOpacity:n.setOpacity}},t.useViewModelInstanceEnum=function(e,t){var n=A(e,t,{getProperty:r.useCallback(function(e,t){return e.enum(t)},[]),getValue:r.useCallback(function(e){return e.value},[]),defaultValue:null,getExtendedData:r.useCallback(function(e){return e.values},[]),buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:n.value,values:n.extendedData||[],setValue:n.setValue}},t.useViewModelInstanceFont=function(e,t){return{setValue:A(e,t,{getProperty:r.useCallback(function(e,t){return e.font(t)},[]),getValue:r.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])}).setValue}},t.useViewModelInstanceImage=function(e,t){return{setValue:A(e,t,{getProperty:r.useCallback(function(e,t){return e.image(t)},[]),getValue:r.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])}).setValue}},t.useViewModelInstanceList=function(e,t){var n,i=r.useState(0)[1],a=A(e,t,{getProperty:r.useCallback(function(e,t){return e.list(t)},[]),getValue:r.useCallback(function(e){return e.length},[]),defaultValue:null,onPropertyEvent:function(){i(function(e){return e+1})},buildPropertyOperations:r.useCallback(function(e){return{addInstance:function(t){e(function(e){return e.addInstance(t)})},addInstanceAt:function(t,n){var i=!1;return e(function(e){i=e.addInstanceAt(t,n)}),i},removeInstance:function(t){e(function(e){return e.removeInstance(t)})},removeInstanceAt:function(t){e(function(e){return e.removeInstanceAt(t)})},getInstanceAt:function(t){var n=null;return e(function(e){n=e.instanceAt(t)}),n}
19,swap:function(t,n){e(function(e){return e.swap(t,n)})}}},[])});return{length:null!=(n=a.value)?n:0,addInstance:a.addInstance,addInstanceAt:a.addInstanceAt,removeInstance:a.removeInstance,removeInstanceAt:a.removeInstanceAt,getInstanceAt:a.getInstanceAt,swap:a.swap}},t.useViewModelInstanceNumber=function(e,t){var n=A(e,t,{getProperty:r.useCallback(function(e,t){return e.number(t)},[]),getValue:r.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceString=function(e,t){var n=A(e,t,{getProperty:r.useCallback(function(e,t){return e.string(t)},[]),getValue:r.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:r.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:n.value,setValue:n.setValue}},t.useViewModelInstanceTrigger=function(e,t,n){var i=(null!=n?n:{}).onTrigger;return{trigger:A(e,t,{getProperty:r.useCallback(function(e,t){return e.trigger(t)},[]),getValue:r.useCallback(function(){},[]),defaultValue:null,onPropertyEvent:i,buildPropertyOperations:r.useCallback(function(e){return{trigger:function(){e(function(e){e.trigger()})}}},[])}).trigger}},Object.keys(a).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},9622:(e,t,n)=>{"use strict";function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>i})},9647:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});let i=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},9739:(e,t,n)=>{"use strict";n.d(t,{J:()=>r,d:()=>a});var i=n(7673);let r=(0,i.J)(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),a=(0,i.J)(()=>void 0!==window.ViewTimeline,"viewTimeline")},9742:e=>{var t,n,i,r=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}var l=[],c=!1,u=-1;function d(){c&&i&&(c=!1,i.length?l=i.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=o(d);c=!0;for(var t=l.length;t;){for(i=l,l=[];++u<t;)i&&i[u].run();u=-1,t=l.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}},9751:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});let i=(0,n(4232).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},9938:function(e,t,n){"use strict";var i=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}
19,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let a=r(n(1018)),s=n(3949);t.GoogleMapsEmbed=e=>{var t=i(e,[]);return(0,s.formatData)(a.default,t)}},9954:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var i=n(7454),r=n(8738);function a(e,t){let n=e.getValue("willChange");if((0,r.S)(n)&&n.add)return n.add(t);if(!n&&i.W.WillChange){let n=new i.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}},9957:(e,t,n)=>{"use strict";n.d(t,{J:()=>F});var i=n(2871),r=n(1507),a=n(7362),s=n(8738),o=n(8254),l=n(3983),c=n(7605),u=n(9647),d=n(8975);let h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var f=n(8331),p=n(1531),m=n(1783),v=n(5080);let g=new Set(["auto","none","0"]);var y=n(3413);class b extends f.h{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&(i=i.trim(),(0,d.pG)(i))){let r=function e(t,n,i=1){(0,c.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,a]=function(e){let t=h.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return(0,u.i)(e)?parseFloat(e):e}return(0,d.pG)(a)?e(a,n,i+1):a}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!o.$.has(n)||2!==e.length)return;let[i,r]=e,a=(0,l.n)(i),s=(0,l.n)(r);if((0,d.rm)(i)!==(0,d.rm)(r)&&y.Hr[n]){this.needsMeasurement=!0;return}if(a!==s)if((0,y.E4)(a)&&(0,y.E4)(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else y.Hr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var i;(null===e[t]||("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||(0,p.$)(i)))&&n.push(t)}n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!g.has(t)&&(0,m.V)(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=(0,v.J)(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=y.Hr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=y.Hr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
19h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var w=n(5027);class x extends w.BX{constructor(){super(...arguments),this.KeyframeResolver=b}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,s.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}var _=n(9098),C=n(2891);let k=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var E=n(475);function S(e,{style:t,vars:n},i,r){let a,s=e.style;for(a in t)s[a]=t[a];for(a in r?.applyProjectionStyles(s,i),n)s.setProperty(a,n[a])}var M=n(6451);class A extends x{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=a.ge}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(i.f.has(t)){let e=(0,r.D)(t);return e&&e.default||0}return t=k.has(t)?t:(0,_.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,M.x)(e,t,n)}
19build(e,t,n){(0,C.B)(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){for(let n in S(e,t,void 0,i),t.attrs)e.setAttribute(k.has(n)?n:(0,_.I)(n),t.attrs[n])}mount(e){this.isSVGTag=(0,E.n)(e.tagName),super.mount(e)}}var P=n(5523),j=n(7189),T=n(5907),I=n(1166);class L extends x{constructor(){super(...arguments),this.type="html",this.renderInstance=S}mount(e){(0,c.V)(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(i.f.has(t))return this.projection?.isProjecting?(0,P.zs)(t):(0,P.Ib)(e,t);{let n=window.getComputedStyle(e),i=((0,d.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,j.m)(e,t)}build(e,t,n){(0,T.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,I.x)(e,t,n)}}var R=n(4232),O=n(2924);let F=(e,t)=>t.isSVG??(0,O.Q)(e)?new A(t):new L(t,{allowProjection:e!==R.Fragment})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(6296))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.