(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[811],{3680:function(e){"use strict";function t(e,t){this.x=e,this.y=t}e.exports=t,t.prototype={clone:function(){return new t(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),o=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},t.convert=function(e){return e instanceof t?e:Array.isArray(e)?new t(e[0],e[1]):e}},7836:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(f=1,l=Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},2329:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ex}});var r=n(2265),i=n(1448),o=n.n(i),a=n(4887),s=n(7836),l=n.n(s);"function"==typeof SuppressedError&&SuppressedError;var u=(L=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}).__esModule&&Object.prototype.hasOwnProperty.call(L,"default")?L.default:L;let c="__googleMapsScriptId";(A=k||(k={}))[A.INITIALIZED=0]="INITIALIZED",A[A.LOADING=1]="LOADING",A[A.SUCCESS=2]="SUCCESS",A[A.FAILURE=3]="FAILURE";class d{constructor({apiKey:e,authReferrerPolicy:t,channel:n,client:r,id:i=c,language:o,libraries:a=[],mapIds:s,nonce:l,region:f,retries:p=3,url:h="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=n,this.client=r,this.id=i||c,this.language=o,this.libraries=a,this.mapIds=s,this.nonce=l,this.region=f,this.retries=p,this.url=h,this.version=m,d.instance){if(!u(this.options,d.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(d.instance.options)}`);return d.instance}d.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?k.FAILURE:this.done?k.SUCCESS:this.loading?k.LOADING:k.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}let n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach(e=>!n[e]&&delete n[e]),(null===(t=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,n,r,i="The Google Maps JavaScript API",o="google",a="importLibrary",s="__ib__",l=document,u=window,c=(u=u[o]||(u[o]={})).maps||(u.maps={}),d=new Set,f=new URLSearchParams,p=()=>t||(t=new Promise((a,u)=>{var p,h,m,g;return p=this,h=void 0,m=void 0,g=function*(){var p;for(r in yield n=l.createElement("script"),n.id=this.id,f.set("libraries",[...d]+""),e)f.set(r.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[r]);f.set("callback",o+".maps."+s),n.src=this.url+"?"+f,c[s]=a,n.onerror=()=>t=u(Error(i+" could not load.")),n.nonce=this.nonce||(null===(p=l.querySelector("script[nonce]"))||void 0===p?void 0:p.nonce)||"",l.head.append(n)},new(m||(m=Promise))(function(e,t){function n(e){try{i(g.next(e))}catch(e){t(e)}}function r(e){try{i(g.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof m?i:new m(function(e){e(i)})).then(n,r)}i((g=g.apply(p,h||[])).next())})}));c[a]?console.warn(i+" only loads once. Ignoring:",e):c[a]=(e,...t)=>d.add(e)&&p().then(()=>c[a](e,...t))})(n);let r=this.libraries.map(e=>this.importLibrary(e));r.length||r.push(this.importLibrary("core")),Promise.all(r).then(()=>this.callback(),e=>{let t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading){if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}}}var f=n(3680),p=n.n(f);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var v={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},y=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(){return!1},n.render=function(){return r.createElement("div",{ref:this.props.registerChild,style:v})},t}(r.Component),_=function(e){function t(t){var n;return(n=e.call(this)||this).gmapInstance=t,n}m(t,e);var n=t.prototype;return n.getChildren=function(){return this.gmapInstance.props.children},n.getMousePosition=function(){return this.gmapInstance.mouse_},n.getUpdateCounter=function(){return this.gmapInstance.updateCounter_},n.dispose=function(){this.gmapInstance=null,this.removeAllListeners()},t}(l()),b=function(e,t){for(var n=h({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e)),r=0;r<t.length;r++){var i=t[r];i in n&&delete n[i]}return n},w=Object.prototype.hasOwnProperty;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!w.call(t,n[i])||!C(e[n[i]],t[n[i]]))return!1;return!0}var x={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},E={width:0,height:0,left:0,top:0,backgroundColor:"transparent",position:"absolute"},P=function(e){function t(t){var n;return(n=e.call(this,t)||this)._getState=function(){return{children:n.props.dispatcher.getChildren(),updateCounter:n.props.dispatcher.getUpdateCounter()}},n._onChangeHandler=function(){if(n.dimensionsCache_){var e=(n.state.children||[]).length,t=n._getState();n.setState(t,function(){return(t.children||[]).length!==e&&n._onMouseChangeHandler()})}},n._onChildClick=function(){n.props.onChildClick&&n.hoverChildProps_&&n.props.onChildClick(n.hoverKey_,n.hoverChildProps_)},n._onChildMouseDown=function(){n.props.onChildMouseDown&&n.hoverChildProps_&&n.props.onChildMouseDown(n.hoverKey_,n.hoverChildProps_)},n._onChildMouseEnter=function(e,t){n.dimensionsCache_&&(n.props.onChildMouseEnter&&n.props.onChildMouseEnter(e,t),n.hoverChildProps_=t,n.hoverKey_=e,n.setState({hoverKey:e}))},n._onChildMouseLeave=function(){if(n.dimensionsCache_){var e=n.hoverKey_;null!=e&&(n.props.onChildMouseLeave&&n.props.onChildMouseLeave(e,n.hoverChildProps_),n.hoverKey_=null,n.hoverChildProps_=null,n.setState({hoverKey:null}))}},n._onMouseAllow=function(e){e||n._onChildMouseLeave(),n.allowMouse_=e},n._onMouseChangeHandler=function(){n.allowMouse_&&n._onMouseChangeHandlerRaf()},n._onMouseChangeHandlerRaf=function(){if(n.dimensionsCache_){var e=n.props.dispatcher.getMousePosition();if(e){var t=[],i=n.props.getHoverDistance();if(r.Children.forEach(n.state.children,function(r,o){if(r&&(void 0!==r.props.latLng||void 0!==r.props.lat||void 0!==r.props.lng)){var a=null!=r.key?r.key:o,s=n.props.distanceToMouse(n.dimensionsCache_[a],e,r.props);s<i&&t.push({key:a,dist:s,props:r.props})}}),t.length){t.sort(function(e,t){return e.dist-t.dist});var o=t[0].key,a=t[0].props;n.hoverKey_!==o&&(n._onChildMouseLeave(),n._onChildMouseEnter(o,a))}else n._onChildMouseLeave()}else n._onChildMouseLeave()}},n._getDimensions=function(e){return n.dimensionsCache_[e]},n.dimensionsCache_={},n.hoverKey_=null,n.hoverChildProps_=null,n.allowMouse_=!0,n.state=h({},n._getState(),{hoverKey:null}),n}m(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.dispatcher.on("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.on("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.on("kON_CLICK",this._onChildClick),this.props.dispatcher.on("kON_MDOWN",this._onChildMouseDown)},n.shouldComponentUpdate=function(e,t){return!0===this.props.experimental?!M(this.props,e)||!M(b(this.state,["hoverKey"]),b(t,["hoverKey"])):!M(this.props,e)||!M(this.state,t)},n.componentWillUnmount=function(){this.props.dispatcher.removeListener("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.removeListener("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.removeListener("kON_CLICK",this._onChildClick),this.props.dispatcher.removeListener("kON_MDOWN",this._onChildMouseDown),this.dimensionsCache_=null},n.render=function(){var e=this,t=this.props.style||x;this.dimensionsCache_={};var n=r.Children.map(this.state.children,function(t,n){if(t){if(void 0===t.props.latLng&&void 0===t.props.lat&&void 0===t.props.lng)return r.cloneElement(t,{$geoService:e.props.geoService,$onMouseAllow:e._onMouseAllow,$prerender:e.props.prerender});var i=void 0!==t.props.latLng?t.props.latLng:{lat:t.props.lat,lng:t.props.lng},o=e.props.insideMapPanes?e.props.geoService.fromLatLngToDivPixel(i):e.props.geoService.fromLatLngToCenterPixel(i),a={left:o.x,top:o.y};if(void 0!==t.props.seLatLng||void 0!==t.props.seLat&&void 0!==t.props.seLng){var s=void 0!==t.props.seLatLng?t.props.seLatLng:{lat:t.props.seLat,lng:t.props.seLng},l=e.props.insideMapPanes?e.props.geoService.fromLatLngToDivPixel(s):e.props.geoService.fromLatLngToCenterPixel(s);a.width=l.x-o.x,a.height=l.y-o.y}var u=e.props.geoService.fromLatLngToContainerPixel(i),c=null!=t.key?t.key:n;return e.dimensionsCache_[c]=h({x:u.x,y:u.y},i),r.createElement("div",{key:c,style:h({},E,a),className:t.props.$markerHolderClassName},r.cloneElement(t,{$hover:c===e.state.hoverKey,$getDimensions:e._getDimensions,$dimensionKey:c,$geoService:e.props.geoService,$onMouseAllow:e._onMouseAllow,$prerender:e.props.prerender}))}});return r.createElement("div",{style:t},n)},t}(r.Component);P.propTypes={geoService:o().any,style:o().any,distanceToMouse:o().func,dispatcher:o().any,onChildClick:o().func,onChildMouseDown:o().func,onChildMouseLeave:o().func,onChildMouseEnter:o().func,getHoverDistance:o().func,insideMapPanes:o().bool,prerender:o().bool},P.defaultProps={insideMapPanes:!1,prerender:!1};var S={width:"50%",height:"50%",left:"50%",top:"50%",margin:0,padding:0,position:"absolute"};function O(e){return r.createElement("div",{style:S},r.createElement(P,h({},e,{prerender:!0})))}var L,A,k,T,j,R,N=["key"],I=new Promise(function(e){R=e}),D=function(e,t){if(!e)return I;if(j)return j;e.libraries||(e.libraries=[]);var n=[].concat(e.libraries);if(t&&(0!==n.length&&n.includes("visualization")||n.push("visualization"),console.warn("heatmapLibrary will be deprecated in the future. Please use { libraries: ['visualization'] } in bootstrapURLKeys property instead")),"undefined"==typeof window)throw Error("google map cannot be loaded outside browser env");var r=e.key,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,N);return T||(T=new d(h({apiKey:r||""},i,{libraries:n}))),j=T.load().then(function(){return R(window.google.maps),window.google.maps}),R(j),j};function z(e,t,n){var r=n-t;return e===n?e:((e-t)%r+r)%r+t}var F=function(){function e(e,t){if(isNaN(e)||isNaN(t))throw Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t}return e.prototype.wrap=function(){return new e(this.lat,z(this.lng,-180,180))},e}();F.convert=function(e){return e instanceof F?e:Array.isArray(e)?new F(e[0],e[1]):"lng"in e&&"lat"in e?new F(e.lat,e.lng):e};var U=function(){function e(e,t,n){this.tileSize=e||512,this._minZoom=t||0,this._maxZoom=n||52,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this.zoom=0,this.center=new F(0,0),this.angle=0}var t,n=e.prototype;return n.zoomScale=function(e){return Math.pow(2,e)},n.scaleZoom=function(e){return Math.log(e)/Math.LN2},n.project=function(e,t){return new(p())(this.lngX(e.lng,t),this.latY(e.lat,t))},n.unproject=function(e,t){return new F(this.yLat(e.y,t),this.xLng(e.x,t))},n.lngX=function(e,t){return(180+e)*(t||this.worldSize)/360},n.latY=function(e,t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*(t||this.worldSize)/360},n.xLng=function(e,t){return 360*e/(t||this.worldSize)-180},n.yLat=function(e,t){return 360/Math.PI*Math.atan(Math.exp((180-360*e/(t||this.worldSize))*Math.PI/180))-90},n.locationPoint=function(e){var t=this.project(e);return this.centerPoint._sub(this.point._sub(t)._rotate(this.angle))},n.pointLocation=function(e){var t=this.centerPoint._sub(e)._rotate(-this.angle);return this.unproject(this.point.sub(t))},t=[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom=e,this.zoom=Math.max(this.zoom,e)}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom=e,this.zoom=Math.min(this.zoom,e)}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerPoint",get:function(){return new(p())(0,0)}},{key:"size",get:function(){return new(p())(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(e){this.angle=-z(e,-180,180)*Math.PI/180}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom}},{key:"x",get:function(){return this.lngX(this.center.lng)}},{key:"y",get:function(){return this.latY(this.center.lat)}},{key:"point",get:function(){return new(p())(this.x,this.y)}}],function(e,t){for(var n,r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,"symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key))?n:String(n),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(),W=function(){function e(e){this.hasSize_=!1,this.hasView_=!1,this.transform_=new U(e||512)}var t=e.prototype;return t.setView=function(e,t,n){this.transform_.center=F.convert(e),this.transform_.zoom=+t,this.transform_.bearing=+n,this.hasView_=!0},t.setViewSize=function(e,t){this.transform_.width=e,this.transform_.height=t,this.hasSize_=!0},t.setMapCanvasProjection=function(e,t){this.maps_=e,this.mapCanvasProjection_=t},t.canProject=function(){return this.hasSize_&&this.hasView_},t.hasSize=function(){return this.hasSize_},t.fromLatLngToCenterPixel=function(e){return this.transform_.locationPoint(F.convert(e))},t.fromLatLngToDivPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToDivPixel(t)}return this.fromLatLngToCenterPixel(e)},t.fromLatLngToContainerPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToContainerPixel(t)}var n=this.fromLatLngToCenterPixel(e);return n.x-=this.transform_.worldSize*Math.round(n.x/this.transform_.worldSize),n.x+=this.transform_.width/2,n.y+=this.transform_.height/2,n},t.fromContainerPixelToLatLng=function(e){if(this.mapCanvasProjection_){var t=this.mapCanvasProjection_.fromContainerPixelToLatLng(e);return{lat:t.lat(),lng:t.lng()}}var n=h({},e);n.x-=this.transform_.width/2,n.y-=this.transform_.height/2;var r=this.transform_.pointLocation(p().convert(n));return r.lng-=360*Math.round(r.lng/360),r},t.getWidth=function(){return this.transform_.width},t.getHeight=function(){return this.transform_.height},t.getZoom=function(){return this.transform_.zoom},t.getCenter=function(){return this.transform_.pointLocation({x:0,y:0})},t.getBounds=function(e,t){var n=e&&e[0]||0,r=e&&e[1]||0,i=e&&e[2]||0,o=e&&e[3]||0;if(this.getWidth()-r-o>0&&this.getHeight()-n-i>0){var a=this.transform_.pointLocation(p().convert({x:o-this.getWidth()/2,y:n-this.getHeight()/2})),s=this.transform_.pointLocation(p().convert({x:this.getWidth()/2-r,y:this.getHeight()/2-i})),l=[a.lat,a.lng,s.lat,s.lng,s.lat,a.lng,a.lat,s.lng];return t&&(l=l.map(function(e){return Math.round(e*t)/t})),l}return[0,0,0,0]},e}();function B(e){if(window.requestAnimationFrame)return window.requestAnimationFrame(e);var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?t(e):window.setTimeout(e,1e3/60)}var K=Math.log2?Math.log2:function(e){return Math.log(e)/Math.LN2};function H(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}var V=function(e){if(null!==e&&"object"==typeof e){if(0===Object.keys(e).length)return!0}else if(null==e||""===e)return!0;return!1},Z=Object.prototype.toString;function $(e){return"number"==typeof e||!!e&&"object"==typeof e&&"[object Number]"===Z.call(e)}var q=null;function G(){if(q)return q;if("undefined"!=typeof navigator){var e=navigator.userAgent.indexOf("MSIE")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,n=navigator.userAgent.toLowerCase().indexOf("op")>-1,r=navigator.userAgent.indexOf("Chrome")>-1,i=navigator.userAgent.indexOf("Safari")>-1;return r&&i&&(i=!1),r&&n&&(r=!1),q={isExplorer:e,isFirefox:t,isOpera:n,isChrome:r,isSafari:i}}return q={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}var Y=function(e){return Function.prototype.toString.call(e)};function X(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&Y(n)===Y(Object)}function J(e,t,n,r){e.addEventListener(t,n,!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()?r:{capture:r,passive:!0})}var Q,ee=!("undefined"==typeof window||!window.document||!window.document.createElement);Q=ee?window:"undefined"!=typeof self?self:void 0;var et,en="undefined"!=typeof document&&document.attachEvent,er=!1;if(ee&&!en){var ei,eo=(ei=Q.requestAnimationFrame||Q.mozRequestAnimationFrame||Q.webkitRequestAnimationFrame||function(e){return Q.setTimeout(e,20)},function(e){return ei(e)}),ea=(et=Q.cancelAnimationFrame||Q.mozCancelAnimationFrame||Q.webkitCancelAnimationFrame||Q.clearTimeout,function(e){return et(e)}),es=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},el=function(e){var t=this;es(this),this.__resizeRAF__&&ea(this.__resizeRAF__),this.__resizeRAF__=eo(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})},eu=!1,ec="",ed="animationstart",ef="Webkit Moz O ms".split(" "),ep="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");if(ee){var eh=document.createElement("fakeelement");if(void 0!==eh.style.animationName&&(eu=!0),!1===eu){for(var em=0;em<ef.length;em++)if(void 0!==eh.style[ef[em]+"AnimationName"]){ec="-"+ef[em].toLowerCase()+"-",ed=ep[em],eu=!0;break}}}var eg="resizeanim",ev="@"+ec+"keyframes "+eg+" { from { opacity: 0; } to { opacity: 0; } } ",ey=ec+"animation: 1ms "+eg+"; "}var e_=void 0!==a.createPortal,eb=e_?a.createPortal:a.unstable_renderSubtreeIntoContainer,ew=function(e){return X(e)?e:{lat:e[0],lng:e[1]}},eC=function(e,t){return t<e?e:t},eM=function(e){function t(t){var n;if((n=e.call(this,t)||this)._getMinZoom=function(){return n.geoService_.getWidth()>0||n.geoService_.getHeight()>0?Math.ceil(K(Math.max(Math.ceil(n.geoService_.getWidth()/256)+2,Math.ceil(n.geoService_.getHeight()/256)+2))):3},n._computeMinZoom=function(e){return V(e)?n._getMinZoom():e},n._mapDomResizeCallback=function(){if(n.resetSizeOnIdle_=!0,n.maps_){var e=n.props.center||n.props.defaultCenter,t=n.map_.getCenter();n.maps_.event.trigger(n.map_,"resize"),n.map_.setCenter(n.props.resetBoundsOnResize?e:t)}},n._setLayers=function(e){e.forEach(function(e){n.layers_[e]=new n.maps_[e],n.layers_[e].setMap(n.map_)})},n._renderPortal=function(){return r.createElement(P,{experimental:n.props.experimental,onChildClick:n._onChildClick,onChildMouseDown:n._onChildMouseDown,onChildMouseEnter:n._onChildMouseEnter,onChildMouseLeave:n._onChildMouseLeave,geoService:n.geoService_,insideMapPanes:!0,distanceToMouse:n.props.distanceToMouse,getHoverDistance:n._getHoverDistance,dispatcher:n.markersDispatcher_})},n._initMap=function(){if(!n.initialized_){n.initialized_=!0;var e=ew(n.props.center||n.props.defaultCenter);n.geoService_.setView(e,n.props.zoom||n.props.defaultZoom,0),n._onBoundsChanged();var t=h({},n.props.apiKey&&{key:n.props.apiKey},n.props.bootstrapURLKeys);n.props.googleMapLoader(t,n.props.heatmapLibrary).then(function(e){if(n.mounted_){var t,r,i,o,s=n.geoService_.getCenter(),l={zoom:n.props.zoom||n.props.defaultZoom,center:new e.LatLng(s.lat,s.lng)};n.props.heatmap.positions&&(Object.assign(g(n),{heatmap:(o=n.props.heatmap,new e.visualization.HeatmapLayer({data:o.positions.reduce(function(t,n){var r=n.weight;return t.push({location:new e.LatLng(n.lat,n.lng),weight:void 0===r?1:r}),t},[])}))}),t=n.heatmap,Object.keys(i=void 0===(r=n.props.heatmap.options)?{}:r).map(function(e){return t.set(e,i[e])}));var u=H(e,X),c="function"==typeof n.props.options?n.props.options(u):n.props.options,d=!V(n.props.draggable)&&{draggable:n.props.draggable},f=n._computeMinZoom(c.minZoom);n.minZoom_=f;var p=h({},{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3},{minZoom:f},c,l);n.defaultDraggableOption_=V(p.draggable)?n.defaultDraggableOption_:p.draggable;var m=h({},p,d);m.minZoom=eC(m.minZoom,f);var v=new e.Map(a.findDOMNode(n.googleMapDom_),m);n.map_=v,n.maps_=e,n._setLayers(n.props.layerTypes);var y=e.version.match(/^3\.(\d+)\./),_=y&&Number(y[1]),b=g(n),w=Object.assign(new e.OverlayView,{onAdd:function(){var t="undefined"!=typeof screen?screen.width+"px":"2000px",n="undefined"!=typeof screen?screen.height+"px":"2000px",r=document.createElement("div");if(r.style.backgroundColor="transparent",r.style.position="absolute",r.style.left="0px",r.style.top="0px",r.style.width=t,r.style.height=n,b.props.overlayViewDivStyle){var i=b.props.overlayViewDivStyle;"object"==typeof i&&Object.keys(i).forEach(function(e){r.style[e]=i[e]})}this.getPanes().overlayMouseTarget.appendChild(r),b.geoService_.setMapCanvasProjection(e,w.getProjection()),e_?b.setState({overlay:r}):eb(b,b._renderPortal(),r,function(){return b.setState({overlay:r})})},onRemove:function(){var e=b.state.overlay;e&&!e_&&a.unmountComponentAtNode(e),b.setState({overlay:null})},draw:function(){if(b.updateCounter_++,b._onBoundsChanged(v,e,!b.props.debounced),b.googleApiLoadedCalled_||(b._onGoogleApiLoaded({map:v,maps:e,ref:b.googleMapDom_}),b.googleApiLoadedCalled_=!0),b.mouse_){var t=b.geoService_.fromContainerPixelToLatLng(b.mouse_);b.mouse_.lat=t.lat,b.mouse_.lng=t.lng}b._onChildMouseMove(),b.markersDispatcher_&&(b.markersDispatcher_.emit("kON_CHANGE"),b.fireMouseEventOnIdle_&&b.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"))}});n.overlay_=w,w.setMap(v),n.props.heatmap.positions&&n.heatmap.setMap(v),n.props.onTilesLoaded&&e.event.addListener(v,"tilesloaded",function(){b._onTilesLoaded()}),e.event.addListener(v,"zoom_changed",function(){b.geoService_.getZoom()!==v.getZoom()&&(b.zoomAnimationInProgress_||(b.zoomAnimationInProgress_=!0,b._onZoomAnimationStart(v.zoom)),_<32)&&((new Date).getTime()-n.zoomControlClickTime_<300?B(function(){return B(function(){b.updateCounter_++,b._onBoundsChanged(v,e)})}):(b.updateCounter_++,b._onBoundsChanged(v,e)))}),e.event.addListener(v,"idle",function(){if(n.resetSizeOnIdle_){n._setViewSize();var t=n._computeMinZoom(c.minZoom);t!==n.minZoom_&&(n.minZoom_=t,v.setOptions({minZoom:t})),n.resetSizeOnIdle_=!1}b.zoomAnimationInProgress_&&(b.zoomAnimationInProgress_=!1,b._onZoomAnimationEnd(v.zoom)),b.updateCounter_++,b._onBoundsChanged(v,e),b.dragTime_=0,b.markersDispatcher_&&b.markersDispatcher_.emit("kON_CHANGE")}),e.event.addListener(v,"mouseover",function(){b.mouseInMap_=!0}),e.event.addListener(v,"click",function(){b.mouseInMap_=!0}),e.event.addListener(v,"mouseout",function(){b.mouseInMap_=!1,b.mouse_=null,b.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")}),e.event.addListener(v,"drag",function(){b.dragTime_=(new Date).getTime(),b._onDrag(v)}),e.event.addListener(v,"dragend",function(){var t=e.event.addListener(v,"idle",function(){e.event.removeListener(t),b._onDragEnd(v)})}),e.event.addListener(v,"maptypeid_changed",function(){b._onMapTypeIdChange(v.getMapTypeId())})}}).catch(function(e){throw n._onGoogleApiLoaded({map:null,maps:null,ref:n.googleMapDom_}),console.error(e),e})}},n._onGoogleApiLoaded=function(){var e;n.props.onGoogleApiLoaded&&(e=n.props).onGoogleApiLoaded.apply(e,arguments)},n._getHoverDistance=function(){return n.props.hoverDistance},n._onDrag=function(){var e;return n.props.onDrag&&(e=n.props).onDrag.apply(e,arguments)},n._onDragEnd=function(){var e;return n.props.onDragEnd&&(e=n.props).onDragEnd.apply(e,arguments)},n._onMapTypeIdChange=function(){var e;return n.props.onMapTypeIdChange&&(e=n.props).onMapTypeIdChange.apply(e,arguments)},n._onZoomAnimationStart=function(){var e;return n.props.onZoomAnimationStart&&(e=n.props).onZoomAnimationStart.apply(e,arguments)},n._onZoomAnimationEnd=function(){var e;return n.props.onZoomAnimationEnd&&(e=n.props).onZoomAnimationEnd.apply(e,arguments)},n._onTilesLoaded=function(){return n.props.onTilesLoaded&&n.props.onTilesLoaded()},n._onChildClick=function(){var e;if(n.props.onChildClick)return(e=n.props).onChildClick.apply(e,arguments)},n._onChildMouseDown=function(e,t){n.childMouseDownArgs_=[e,t],n.props.onChildMouseDown&&n.props.onChildMouseDown(e,t,h({},n.mouse_))},n._onChildMouseUp=function(){var e;n.childMouseDownArgs_&&(n.props.onChildMouseUp&&(e=n.props).onChildMouseUp.apply(e,n.childMouseDownArgs_.concat([h({},n.mouse_)])),n.childMouseDownArgs_=null,n.childMouseUpTime_=(new Date).getTime())},n._onChildMouseMove=function(){var e;n.childMouseDownArgs_&&n.props.onChildMouseMove&&(e=n.props).onChildMouseMove.apply(e,n.childMouseDownArgs_.concat([h({},n.mouse_)]))},n._onChildMouseEnter=function(){var e;if(n.props.onChildMouseEnter)return(e=n.props).onChildMouseEnter.apply(e,arguments)},n._onChildMouseLeave=function(){var e;if(n.props.onChildMouseLeave)return(e=n.props).onChildMouseLeave.apply(e,arguments)},n._setViewSize=function(){if(n.mounted_){if(document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)n.geoService_.setViewSize(window.innerWidth,window.innerHeight);else{var e=a.findDOMNode(n.googleMapDom_);n.geoService_.setViewSize(e.clientWidth,e.clientHeight)}n._onBoundsChanged()}},n._onWindowResize=function(){n.resetSizeOnIdle_=!0},n._onMapMouseMove=function(e){if(n.mouseInMap_){var t=(new Date).getTime();t-n.mouseMoveTime_>50&&(n.boundingRect_=e.currentTarget.getBoundingClientRect()),n.mouseMoveTime_=t;var r=e.clientX-n.boundingRect_.left,i=e.clientY-n.boundingRect_.top;n.mouse_||(n.mouse_={x:0,y:0,lat:0,lng:0}),n.mouse_.x=r,n.mouse_.y=i;var o=n.geoService_.fromContainerPixelToLatLng(n.mouse_);n.mouse_.lat=o.lat,n.mouse_.lng=o.lng,n._onChildMouseMove(),t-n.dragTime_<100?n.fireMouseEventOnIdle_=!0:(n.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"),n.fireMouseEventOnIdle_=!1)}},n._onClick=function(){var e;return n.props.onClick&&!n.childMouseDownArgs_&&(new Date).getTime()-n.childMouseUpTime_>300&&0===n.dragTime_&&(e=n.props).onClick.apply(e,arguments)},n._onMapClick=function(e){n.markersDispatcher_&&(n._onMapMouseMove(e),(new Date).getTime()-n.dragTime_>100&&(n.mouse_&&n._onClick(h({},n.mouse_,{event:e})),n.markersDispatcher_.emit("kON_CLICK",e)))},n._onMapMouseDownNative=function(e){n.mouseInMap_&&n._onMapMouseDown(e)},n._onMapMouseDown=function(e){n.markersDispatcher_&&(new Date).getTime()-n.dragTime_>100&&(n._onMapMouseMove(e),n.markersDispatcher_.emit("kON_MDOWN",e))},n._onMapMouseDownCapture=function(){G().isChrome&&(n.zoomControlClickTime_=(new Date).getTime())},n._onKeyDownCapture=function(){G().isChrome&&(n.zoomControlClickTime_=(new Date).getTime())},n._isCenterDefined=function(e){return e&&(X(e)&&$(e.lat)&&$(e.lng)||2===e.length&&$(e[0])&&$(e[1]))},n._onBoundsChanged=function(e,t,r){if(e){var i=e.getCenter();n.geoService_.setView([i.lat(),i.lng()],e.getZoom(),0)}if((n.props.onChange||n.props.onBoundsChange)&&n.geoService_.canProject()){var o=n.geoService_.getZoom(),a=n.geoService_.getBounds(),s=n.geoService_.getCenter();if(!function(e,t,n){if(e&&t){for(var r=0;r!==e.length;++r)if(Math.abs(e[r]-t[r])>1e-5)return!1;return!0}return!1}(a,n.prevBounds_)&&!1!==r){var l=n.geoService_.getBounds(n.props.margin);n.props.onBoundsChange&&n.props.onBoundsChange(n.centerIsObject_?h({},s):[s.lat,s.lng],o,a,l),n.props.onChange&&n.props.onChange({center:h({},s),zoom:o,bounds:{nw:{lat:a[0],lng:a[1]},se:{lat:a[2],lng:a[3]},sw:{lat:a[4],lng:a[5]},ne:{lat:a[6],lng:a[7]}},marginBounds:{nw:{lat:l[0],lng:l[1]},se:{lat:l[2],lng:l[3]},sw:{lat:l[4],lng:l[5]},ne:{lat:l[6],lng:l[7]}},size:n.geoService_.hasSize()?{width:n.geoService_.getWidth(),height:n.geoService_.getHeight()}:{width:0,height:0}}),n.prevBounds_=a}}},n._registerChild=function(e){n.googleMapDom_=e},n.mounted_=!1,n.initialized_=!1,n.googleApiLoadedCalled_=!1,n.map_=null,n.maps_=null,n.prevBounds_=null,n.heatmap=null,n.layers_={},n.mouse_=null,n.mouseMoveTime_=0,n.boundingRect_=null,n.mouseInMap_=!0,n.dragTime_=0,n.fireMouseEventOnIdle_=!1,n.updateCounter_=0,n.markersDispatcher_=new _(g(n)),n.geoService_=new W(256),n.centerIsObject_=X(n.props.center),n.minZoom_=3,n.defaultDraggableOption_=!0,n.zoomControlClickTime_=0,n.childMouseDownArgs_=null,n.childMouseUpTime_=0,n.googleMapDom_=null,n._isCenterDefined(n.props.center||n.props.defaultCenter)){var i=ew(n.props.center||n.props.defaultCenter);n.geoService_.setView(i,n.props.zoom||n.props.defaultZoom,0)}return n.zoomAnimationInProgress_=!1,n.state={overlay:null},n}m(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.mounted_=!0,this.markersDispatcher_=new _(this),J(window,"resize",this._onWindowResize,!1),J(window,"keydown",this._onKeyDownCapture,!0);var t=a.findDOMNode(this.googleMapDom_);t&&J(t,"mousedown",this._onMapMouseDownNative,!0),J(window,"mouseup",this._onChildMouseUp,!1);var n=h({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(n,this.props.heatmapLibrary),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap()},0,this),this.props.resetBoundsOnResize&&function(e,t){if(void 0===e.parentNode){var n=document.createElement("div");e.parentNode=n}e=e.parentNode,en?e.attachEvent("onresize",t):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),function(){if(!er){var e=(ev||"")+".resize-triggers { "+(ey||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),er=!0}}(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),es(e),J(e,"scroll",el,!0),ed&&e.__resizeTriggers__.addEventListener(ed,function(t){t.animationName==eg&&es(e)})),e.__resizeListeners__.push(t))}(t,this._mapDomResizeCallback)},n.shouldComponentUpdate=function(e,t){return!M(b(this.props,["draggable"]),b(e,["draggable"]))||!M(this.state,t)},n.componentDidUpdate=function(e){var t=this;if(!this._isCenterDefined(e.center)&&this._isCenterDefined(this.props.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var n=this.geoService_.getCenter();if(this._isCenterDefined(this.props.center)){var r=ew(this.props.center),i=this._isCenterDefined(e.center)?ew(e.center):null;(!i||Math.abs(r.lat-i.lat)+Math.abs(r.lng-i.lng)>1e-5)&&Math.abs(r.lat-n.lat)+Math.abs(r.lng-n.lng)>1e-5&&this.map_.panTo({lat:r.lat,lng:r.lng})}if(V(this.props.zoom)||Math.abs(this.props.zoom-e.zoom)>0&&this.map_.setZoom(this.props.zoom),!V(e.draggable)&&V(this.props.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):M(e.draggable,this.props.draggable)||this.map_.setOptions({draggable:this.props.draggable}),!V(this.props.options)&&!M(e.options,this.props.options)){var o=H(this.maps_,X),a="function"==typeof this.props.options?this.props.options(o):this.props.options;if("minZoom"in(a=b(a,["zoom","center","draggable"]))){var s=this._computeMinZoom(a.minZoom);a.minZoom=eC(a.minZoom,s)}this.map_.setOptions(a)}M(this.props.layerTypes,e.layerTypes)||(Object.keys(this.layers_).forEach(function(e){t.layers_[e].setMap(null),delete t.layers_[e]}),this._setLayers(this.props.layerTypes)),this.heatmap&&!M(this.props.heatmap.positions,e.heatmap.positions)&&this.heatmap.setData(this.props.heatmap.positions.map(function(e){return{location:new t.maps_.LatLng(e.lat,e.lng),weight:e.weight}})),this.heatmap&&!M(this.props.heatmap.options,e.heatmap.options)&&Object.keys(this.props.heatmap.options).forEach(function(e){t.heatmap.set(e,t.props.heatmap.options[e])})}this.markersDispatcher_.emit("kON_CHANGE"),M(this.props.hoverDistance,e.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")},n.componentWillUnmount=function(){this.mounted_=!1;var e,t,n=a.findDOMNode(this.googleMapDom_);n&&n.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&(t=this._mapDomResizeCallback,e=(e=n).parentNode,en?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",el),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_)},n.render=function(){var e=this.state.overlay,t=e?null:r.createElement(O,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return r.createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},r.createElement(y,{registerChild:this._registerChild}),e_&&e&&eb(this._renderPortal(),e),t)},t}(r.Component);eM.propTypes={apiKey:o().string,bootstrapURLKeys:o().any,defaultCenter:o().oneOfType([o().array,o().shape({lat:o().number,lng:o().number})]),center:o().oneOfType([o().array,o().shape({lat:o().number,lng:o().number})]),defaultZoom:o().number,zoom:o().number,onBoundsChange:o().func,onChange:o().func,onClick:o().func,onChildClick:o().func,onChildMouseDown:o().func,onChildMouseUp:o().func,onChildMouseMove:o().func,onChildMouseEnter:o().func,onChildMouseLeave:o().func,onZoomAnimationStart:o().func,onZoomAnimationEnd:o().func,onDrag:o().func,onDragEnd:o().func,onMapTypeIdChange:o().func,onTilesLoaded:o().func,options:o().any,distanceToMouse:o().func,hoverDistance:o().number,debounced:o().bool,margin:o().array,googleMapLoader:o().any,onGoogleApiLoaded:o().func,yesIWantToUseGoogleMapApiInternals:o().bool,draggable:o().bool,style:o().any,resetBoundsOnResize:o().bool,layerTypes:o().arrayOf(o().string),shouldUnregisterMapOnUnmount:o().bool},eM.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:function(){return{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3}},googleMapLoader:D,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},eM.googleMapLoader=D;var ex=eM},2887:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{g:function(){return r}})},4327:function(e,t,n){"use strict";n.d(t,{default:function(){return f}});var r=n(2887),i=n(7138),o=n(6463),a=n(2265),s=n(9773);let l="locale";function u(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function c(e,t){let n;return"string"==typeof e?n=d(t,e):(n={...e},e.pathname&&(n.pathname=d(t,e.pathname))),n}function d(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}let f=(0,a.forwardRef)(function(e,t){let{href:n,locale:d,localePrefixMode:f,onClick:p,prefetch:h,prefix:m,...g}=e,v=(0,o.usePathname)(),y=function(){let e;let t=(0,o.useParams)();try{e=(0,s.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[l]))throw n;e=t[l]}return e}(),_=d!==y,[b,w]=(0,a.useState)(()=>u(n)&&("never"!==f||_)?c(n,m):n);return(0,a.useEffect)(()=>{v&&w(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!u(e))return e;let o=r===i||r.startsWith("".concat(i,"/"));return(t!==n||o)&&null!=i?c(e,i):e}(n,d,y,v,m))},[y,n,d,v,m]),_&&(h&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),h=!1),a.createElement(i.default,(0,r.g)({ref:t,href:b,hrefLang:_?d:void 0,onClick:function(e){(function(e,t,n){if(!(n!==t&&null!=n)||!e)return;let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(e);document.cookie="".concat("NEXT_LOCALE","=").concat(n,"; path=").concat(""!==r?r:"/","; max-age=").concat(31536e3,"; sameSite=").concat("lax")})(v,y,d),p&&p(e)},prefetch:h},g))});f.displayName="ClientLink"},925:function(e,t){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.extends=n},5758:function(e,t,n){"use strict";var r=n(5332),i=n(6693);t.iV=r.default,i.default},8379:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),i=n(2265),o=n(294),a=n(8830),s=n(1165),l=i&&i.__esModule?i:{default:i};let u=i.forwardRef(function(e,t){let{locale:n,localePrefix:i,...u}=e,c=o.default(),d=n||c,f=a.getLocalePrefix(d,i);return l.default.createElement(s.default,r.extends({ref:t,locale:d,localePrefixMode:i.mode,prefix:f},u))});u.displayName="ClientLink",t.default=u},6693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),i=n(2265),o=n(294),a=n(4463),s=n(6569),l=n(8379),u=n(4525),c=n(6148),d=n(1337),f=i&&i.__esModule?i:{default:i};t.default=function(e){let t=a.receiveLocalizedNavigationRoutingConfig(e);function n(){let e=o.default();if(!t.locales.includes(e))throw Error(void 0);return e}let p=i.forwardRef(function(e,i){let{href:o,locale:a,...u}=e,c=n(),d=a||c;return f.default.createElement(l.default,r.extends({ref:i,href:s.compileLocalizedPathname({locale:d,pathname:o,params:"object"==typeof o?o.params:void 0,pathnames:t.pathnames}),locale:a,localePrefix:t.localePrefix},u))});function h(e){let{href:n,locale:r}=e;return s.compileLocalizedPathname({...s.normalizeNameOrNameWithParams(n),locale:r,pathnames:t.pathnames})}return p.displayName="Link",{Link:p,redirect:function(e){let r=h({href:e,locale:n()});for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return u.clientRedirect({pathname:r,localePrefix:t.localePrefix},...o)},permanentRedirect:function(e){let r=h({href:e,locale:n()});for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return u.clientPermanentRedirect({pathname:r,localePrefix:t.localePrefix},...o)},usePathname:function(){let e=c.default(t.localePrefix),r=n();return e?s.getRoute({pathname:e,locale:r,pathnames:t.pathnames}):e},useRouter:function(){let e=d.default(t.localePrefix),r=n();return{...e,push(t){for(var n,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=h({href:t,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return e.push(s,...o)},replace(t){for(var n,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=h({href:t,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return e.replace(s,...o)},prefetch(t){for(var n,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=h({href:t,locale:(null===(n=o[0])||void 0===n?void 0:n.locale)||r});return e.prefetch(s,...o)}}},getPathname:h}}},5332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),i=n(2265),o=n(4463),a=n(8379),s=n(4525),l=n(6148),u=n(1337),c=i&&i.__esModule?i:{default:i};t.default=function(e){let t=o.receiveSharedNavigationRoutingConfig(e),n=i.forwardRef(function(e,n){return c.default.createElement(a.default,r.extends({ref:n,localePrefix:t.localePrefix},e))});return n.displayName="Link",{Link:n,redirect:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s.clientRedirect({pathname:e,localePrefix:t.localePrefix},...r)},permanentRedirect:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s.clientPermanentRedirect({pathname:e,localePrefix:t.localePrefix},...r)},usePathname:function(){return l.default(t.localePrefix)},useRouter:function(){return u.default(t.localePrefix)}}}},4525:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(294),i=n(5016);function o(e){return function(t){let n;try{n=r.default()}catch(e){throw e}for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return e({...t,locale:n},...o)}}let a=o(i.baseRedirect),s=o(i.basePermanentRedirect);t.clientPermanentRedirect=s,t.clientRedirect=a},6148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),i=n(2265),o=n(294),a=n(8830);t.default=function(e){let t=r.usePathname(),n=o.default();return i.useMemo(()=>{if(!t)return t;let r=a.getLocalePrefix(n,e);return a.hasPathnamePrefixed(r,t)?a.unprefixPathname(t,r):t},[n,e,t])}},1337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),i=n(2265),o=n(294),a=n(8830),s=n(9233),l=n(6569);t.default=function(e){let t=r.useRouter(),n=o.default(),u=r.usePathname();return i.useMemo(()=>{function r(t){return function(r,i){let{locale:o,...c}=i||{};s.default(u,n,o);let d=[function(t,r){let i=window.location.pathname,o=l.getBasePath(u);o&&(i=i.replace(o,""));let s=r||n,c=a.getLocalePrefix(s,e);return a.localizeHref(t,s,n,i,c)}(r,o)];return Object.keys(c).length>0&&d.push(c),t(...d)}}return{...t,push:r(t.push),replace:r(t.replace),prefetch:r(t.prefetch)}},[n,e,u,t])}},1165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(925),i=n(7138),o=n(6463),a=n(2265),s=n(294),l=n(8830),u=n(9233);function c(e){return e&&e.__esModule?e:{default:e}}var d=c(i),f=c(a);let p=a.forwardRef(function(e,t){let{href:n,locale:i,localePrefixMode:c,onClick:p,prefetch:h,prefix:m,...g}=e,v=o.usePathname(),y=s.default(),_=i!==y,[b,w]=a.useState(()=>l.isLocalizableHref(n)&&("never"!==c||_)?l.prefixHref(n,m):n);return a.useEffect(()=>{v&&w(l.localizeHref(n,i,y,v,m))},[y,n,i,v,m]),_&&(h=!1),f.default.createElement(d.default,r.extends({ref:t,href:b,hrefLang:_?i:void 0,onClick:function(e){u.default(v,y,i),p&&p(e)},prefetch:h},g))});p.displayName="ClientLink",t.default=p},4463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5421);t.receiveLocalizedNavigationRoutingConfig=function(e){return{...e,localePrefix:r.receiveLocalePrefixConfig(null==e?void 0:e.localePrefix)}},t.receiveSharedNavigationRoutingConfig=function(e){return{...e,localePrefix:r.receiveLocalePrefixConfig(null==e?void 0:e.localePrefix)}}},5016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),i=n(8830);function o(e){return function(t){let n=i.getLocalePrefix(t.locale,t.localePrefix),r="never"!==t.localePrefix.mode&&i.isLocalHref(t.pathname)?i.prefixPathname(n,t.pathname):t.pathname;for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return e(r,...a)}}let a=o(r.redirect),s=o(r.permanentRedirect);t.basePermanentRedirect=s,t.baseRedirect=a},9233:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4142),i=n(6569);t.default=function(e,t,n){if(!(n!==t&&null!=n)||!e)return;let o=i.getBasePath(e);document.cookie="".concat(r.COOKIE_LOCALE_NAME,"=").concat(n,"; path=").concat(""!==o?o:"/","; max-age=").concat(r.COOKIE_MAX_AGE,"; sameSite=").concat(r.COOKIE_SAME_SITE)}},6569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8830);function i(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}t.compileLocalizedPathname=function(e){let{pathname:t,locale:n,params:r,pathnames:o,query:a}=e;function s(e){let t=o[e];return t||(t=e),t}function l(e){let t="string"==typeof e?e:e[n];return r&&Object.entries(r).forEach(e=>{let[n,r]=e;t=Array.isArray(r)?t.replace(RegExp("(\\[)?\\[...".concat(n,"\\](\\])?"),"g"),r.map(e=>String(e)).join("/")):t.replace("[".concat(n,"]"),String(r))}),a&&(t+=i(a)),t}if("string"==typeof t)return l(s(t));{let{pathname:e,...n}=t;return{...n,pathname:l(s(e))}}},t.getBasePath=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")},t.getRoute=function(e){var t;let{locale:n,pathname:i,pathnames:o}=e,a=decodeURI(i),s=null===(t=Object.entries(o).find(e=>{let[,t]=e,i="string"!=typeof t?t[n]:t;return r.matchesPathname(i,a)}))||void 0===t?void 0:t[0];return s||(s=i),s},t.normalizeNameOrNameWithParams=function(e){return"string"==typeof e?{pathname:e}:e},t.serializeSearchParams=i},294:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6463),i=n(4581),o=n(4142);t.default=function(){let e;let t=r.useParams();try{e=i.useLocale()}catch(n){if("string"!=typeof(null==t?void 0:t[o.LOCALE_SEGMENT_NAME]))throw n;e=t[o.LOCALE_SEGMENT_NAME]}return e}},5421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.receiveLocalePrefixConfig=function(e){return"object"==typeof e?e:{mode:e||"always"}}},4142:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COOKIE_LOCALE_NAME="NEXT_LOCALE",t.COOKIE_MAX_AGE=31536e3,t.COOKIE_SAME_SITE="lax",t.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",t.LOCALE_SEGMENT_NAME="locale"},8830:function(e,t){"use strict";function n(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}function r(e){return"object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e)}function i(e){return r(e)&&!n(e)}function o(e,t){let n;return"string"==typeof e?n=a(t,e):(n={...e},e.pathname&&(n.pathname=a(t,e.pathname))),n}function a(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function s(e,t){return t===e||t.startsWith("".concat(e,"/"))}function l(e){let t=e.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return new RegExp("^".concat(t,"$"))}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalePrefix=function(e,t){var n;return"never"!==t.mode&&(null===(n=t.prefixes)||void 0===n?void 0:n[e])||"/"+e},t.hasPathnamePrefixed=s,t.isLocalHref=r,t.isLocalizableHref=i,t.isRelativeHref=n,t.localizeHref=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;if(!i(e))return e;let l=s(a,r);return(t!==n||l)&&null!=a?o(e,a):e},t.matchesPathname=function(e,t){return l(e).test(t)},t.prefixHref=o,t.prefixPathname=a,t.templateToRegex=l,t.unprefixPathname=function(e,t){return e.replace(new RegExp("^".concat(t)),"")||"/"}},6648:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(5601),i=n.n(r)},7138:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i.a}});var r=n(231),i=n.n(r),o={};for(var a in r)"default"!==a&&(o[a]=(function(e){return r[e]}).bind(0,a));n.d(t,o)},6463:function(e,t,n){"use strict";n.r(t);var r=n(1169),i={};for(var o in r)"default"!==o&&(i[o]=(function(e){return r[e]}).bind(0,o));n.d(t,i)},357:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(8081)},844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(8157);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("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)},5944:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8157),("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)},8173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let r=n(9920),i=n(1452),o=n(7437),a=i._(n(2265)),s=r._(n(4887)),l=r._(n(8321)),u=n(497),c=n(7103),d=n(3938);n(2301);let f=n(291),p=r._(n(1241)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,r,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){let[t,n]=a.version.split(".",2),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:v,fill:y,onLoadRef:_,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:C,sizesInput:M,onLoad:x,onError:E,...P}=e;return(0,o.jsx)("img",{...P,...g(f),loading:h,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&m(e,p,_,b,w,v,M))},[n,p,_,b,w,E,v,M,t]),onLoad:e=>{m(e.currentTarget,p,_,b,w,v,M)},onError:e=>{C(!0),"empty"!==p&&w(!0),E&&E(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(f.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=h||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1),{props:M,meta:x}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:_,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...M,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:C,sizesInput:e.sizes,ref:t}),x.priority?(0,o.jsx)(y,{isAppRouter:!n,imgAttributes:M}):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)},231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(9920),i=n(7437),o=r._(n(2265)),a=n(8016),s=n(8029),l=n(1142),u=n(3461),c=n(844),d=n(291),f=n(4467),p=n(3106),h=n(5944),m=n(4897),g=n(1507),v=new Set;function y(e,t,n,r,i,o){if("undefined"!=typeof window&&(o||(0,s.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:b,prefetch:w=null,passHref:C,replace:M,shallow:x,scroll:E,locale:P,onClick:S,onMouseEnter:O,onTouchStart:L,legacyBehavior:A=!1,...k}=e;n=b,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let T=o.default.useContext(d.RouterContext),j=o.default.useContext(f.AppRouterContext),R=null!=T?T:j,N=!T,I=!1!==w,D=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:z,as:F}=o.default.useMemo(()=>{if(!T){let e=_(l);return{href:e,as:v?_(v):e}}let[e,t]=(0,a.resolveHref)(T,l,!0);return{href:e,as:v?(0,a.resolveHref)(T,v):t||e}},[T,l,v]),U=o.default.useRef(z),W=o.default.useRef(F);A&&(r=o.default.Children.only(n));let B=A?r&&"object"==typeof r&&r.ref:t,[K,H,V]=(0,p.useIntersection)({rootMargin:"200px"}),Z=o.default.useCallback(e=>{(W.current!==F||U.current!==z)&&(V(),W.current=F,U.current=z),K(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[F,B,z,V,K]);o.default.useEffect(()=>{R&&H&&I&&y(R,z,F,{locale:P},{kind:D},N)},[F,z,H,P,I,null==T?void 0:T.locale,R,N,D]);let $={ref:Z,onClick(e){A||"function"!=typeof S||S(e),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,r,i,a,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.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)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(f):f()}(e,R,z,F,M,x,E,P,N)},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&(I||!N)&&y(R,z,F,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&(I||!N)&&y(R,z,F,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:D},N)}};if((0,u.isAbsoluteUrl)(F))$.href=F;else if(!A||C||"a"===r.type&&!("href"in r.props)){let e=void 0!==P?P:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,h.getDomainLocale)(F,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);$.href=t||(0,m.addBasePath)((0,c.addLocale)(F,e,null==T?void 0:T.defaultLocale))}return A?o.default.cloneElement(r,$):(0,i.jsx)("a",{...k,...$,children:n})});("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)},9189:function(e,t){"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,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("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)},8016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(8323),i=n(1142),o=n(5519),a=n(3461),s=n(8157),l=n(8029),u=n(9195),c=n(20);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("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)},3106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2265),i=n(9189),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[p,c,(0,r.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)},8081:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!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)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!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 p(e,t){this.fun=e,this.array=t}function h(){}i.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 p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},2901:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(9920)._(n(2265)).default.createContext({})},687:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},1943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(2301);let r=n(1564),i=n(7103);function o(e){return void 0!==e.default}function a(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 s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:g,width:v,height:y,fill:_=!1,style:b,overrideSrc:w,onLoad:C,onLoadingComplete:M,placeholder:x="empty",blurDataURL:E,fetchPriority:P,layout:S,objectFit:O,objectPosition:L,lazyBoundary:A,lazyRoot:k,...T}=e,{imgConf:j,showAltText:R,blurComplete:N,defaultLoader:I}=t,D=j||i.imageConfigDefault;if("allSizes"in D)s=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);s={...D,allSizes:e,deviceSizes:t}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=T.loader||I;delete T.loader,delete T.srcSet;let F="__next_img_default"in z;if(F){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=z;z=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let U="",W=a(v),B=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw 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));if(!e.height||!e.width)throw 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));if(l=e.blurWidth,u=e.blurHeight,E=E||e.blurDataURL,U=e.src,!_){if(W||B){if(W&&!B){let t=W/e.width;B=Math.round(e.height*t)}else if(!W&&B){let t=B/e.height;W=Math.round(e.width*t)}}else W=e.width,B=e.height}}let K=!p&&("lazy"===h||void 0===h);(!(c="string"==typeof c?c:U)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,K=!1),s.unoptimized&&(f=!0),F&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(P="high");let H=a(g),V=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:L}:{},R?{}:{color:"transparent"},b),Z=N||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:B,blurWidth:l,blurHeight:u,blurDataURL:E||"",objectFit:V.objectFit})+'")':'url("'+x+'")',$=Z?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},q=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:W,quality:H,sizes:d,loader:z});return{props:{...T,loading:K?"lazy":h,fetchPriority:P,width:W,height:B,decoding:"async",className:m,style:{...V,...$},sizes:q.sizes,srcSet:q.srcSet,src:w||q.src},meta:{unoptimized:f,priority:p,placeholder:x,fill:_}}}},8321:function(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 m},defaultHead:function(){return d}});let r=n(9920),i=n(1452),o=n(7437),a=i._(n(2265)),s=r._(n(5960)),l=n(2901),u=n(6590),c=n(687);function d(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(2301);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?o=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!a)&&n.has(e)?o=!1:(n.add(e),r[t]=n)}}}}return o}}()).reverse().map((e,t)=>{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:h,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("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)},1564:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%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='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},3938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(9920)._(n(2265)),i=n(7103),o=r.default.createContext(i.imageConfigDefault)},7103:function(e,t){"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,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},5601:function(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 s}});let r=n(9920),i=n(497),o=n(8173),a=r._(n(1241));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=o.Image},1241:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(9920)._(n(2265)).default.createContext(null)},1142:function(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,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(1452)._(n(8323)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},9195:function(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,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(9089),i=n(8083)},20:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(1533),i=n(3169);function o(e,t,n){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;o=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=s[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},8083:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(2269),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},8029:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(3461),i=n(9404);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},5519:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},8323:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},1533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(3461);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),a}}},3169:function(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,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l}});let r=n(2269),i=n(1943),o=n(7741);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function s(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},s=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:r,repeat:l}=a(o[1]);return n[e]={pos:s++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(o[1]);return n[e]={pos:s++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:s}=e,{key:l,optional:u,repeat:c}=a(r),d=l.replace(/\W/g,"");s&&(d=""+s+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),s?o[d]=""+s+l:o[d]=l;let p=t?(0,i.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let a=(0,o.removeTrailingSlash)(e).slice(1).split("/"),s=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=e.split(o[0]);return u({getSafeRouteKey:s,interceptionMarker:n,segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return o?u({getSafeRouteKey:s,segment:o[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function d(e,t){let n=c(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=s(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},9089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},5960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(2265),i="undefined"==typeof window,o=i?()=>{}:r.useLayoutEffect,a=i?()=>{}:r.useEffect;function s(e){let{headManager:t,reduceComponentsToState:n}=e;function s(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}if(i){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},3461:function(e,t){"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,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},9949:function(e,t,n){"use strict";var r=n(8877);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},1448:function(e,t,n){e.exports=n(9949)()},8877:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4581:function(e,t,n){"use strict";e.exports=n(9773)},8945:function(e,t,n){"use strict";let r=n(2265).createContext(void 0);t.IntlContext=r},307:function(e,t,n){"use strict";var r=n(2265),i=n(8945);function o(){let e=r.useContext(i.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=o,t.useLocale=function(){return o().locale}},9773:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(307);n(2265),n(8945),t.useLocale=r.useLocale},8229:function(e,t,n){"use strict";let r;n.d(t,{x8:function(){return tm},VY:function(){return tf},dk:function(){return th},aV:function(){return td},h_:function(){return tc},fC:function(){return tl},Dx:function(){return tp},xz:function(){return tu}});var i,o,a,s,l,u,c,d,f=n(2265),p=n.t(f,2);function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function g(...e){return f.useCallback(m(...e),e)}var v=n(7437),y=globalThis?.document?f.useLayoutEffect:()=>{},_=p["useId".toString()]||(()=>void 0),b=0;function w(e){let[t,n]=f.useState(_());return y(()=>{e||n(e=>e??String(b++))},[e]),e||(t?`radix-${t}`:"")}function C(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}var M=n(4887),x=f.forwardRef((e,t)=>{let{children:n,...r}=e,i=f.Children.toArray(n),o=i.find(S);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:f.Children.count(e)>1?f.Children.only(null):f.isValidElement(e)?e.props.children:null);return(0,v.jsx)(E,{...r,ref:t,children:f.isValidElement(e)?f.cloneElement(e,void 0,n):null})}return(0,v.jsx)(E,{...r,ref:t,children:n})});x.displayName="Slot";var E=f.forwardRef((e,t)=>{let{children:n,...r}=e;if(f.isValidElement(n)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return f.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?m(t,o):o})}return f.Children.count(n)>1?f.Children.only(null):null});E.displayName="SlotClone";var P=({children:e})=>(0,v.jsx)(v.Fragment,{children:e});function S(e){return f.isValidElement(e)&&e.type===P}var O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=f.forwardRef((e,n)=>{let{asChild:r,...i}=e,o=r?x:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,v.jsx)(o,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),L="dismissableLayer.update",A=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=f.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,p=f.useContext(A),[m,y]=f.useState(null),_=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,b]=f.useState({}),w=g(t,e=>y(e)),M=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=M.indexOf(x),P=m?M.indexOf(m):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,k=P>=E,R=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=C(e),i=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){j("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},_),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=C(e),i=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!i.current&&j("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...p.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},_);return!function(e,t=globalThis?.document){let n=C(e);f.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P!==p.layers.size-1||(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},_),f.useEffect(()=>{if(m)return i&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(c=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),T(),()=>{i&&1===p.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=c)}},[m,_,i,p]),f.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),T())},[m,p]),f.useEffect(()=>{let e=()=>b({});return document.addEventListener(L,e),()=>document.removeEventListener(L,e)},[]),(0,v.jsx)(O.div,{...d,ref:w,style:{pointerEvents:S?k?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,N.onFocusCapture),onBlurCapture:h(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,R.onPointerDownCapture)})});function T(){let e=new CustomEvent(L);document.dispatchEvent(e)}function j(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),i)?o&&M.flushSync(()=>o.dispatchEvent(a)):o.dispatchEvent(a)}k.displayName="DismissableLayer",f.forwardRef((e,t)=>{let n=f.useContext(A),r=f.useRef(null),i=g(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,v.jsx)(O.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var R="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",I={bubbles:!1,cancelable:!0},D=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=f.useState(null),u=C(i),c=C(o),d=f.useRef(null),p=g(t,e=>l(e)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:U(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||U(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&U(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,h.paused]),f.useEffect(()=>{if(s){W.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(R,I);s.addEventListener(R,u),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(U(r,{select:t}),document.activeElement!==n)return}(z(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&U(s))}return()=>{s.removeEventListener(R,u),setTimeout(()=>{let t=new CustomEvent(N,I);s.addEventListener(N,c),s.dispatchEvent(t),t.defaultPrevented||U(null!=e?e:document.body,{select:!0}),s.removeEventListener(N,c),W.remove(h)},0)}}},[s,u,c,h]);let m=f.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=z(e);return[F(t,e),F(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&U(o,{select:!0})):(e.preventDefault(),n&&U(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,v.jsx)(O.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})});function z(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function U(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}D.displayName="FocusScope";var W=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=B(r,e)).unshift(e)},remove(e){var t;null===(t=(r=B(r,e))[0])||void 0===t||t.resume()}});function B(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var K=f.forwardRef((e,t)=>{var n,r;let{container:i,...o}=e,[a,s]=f.useState(!1);y(()=>s(!0),[]);let l=i||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return l?M.createPortal((0,v.jsx)(O.div,{...o,ref:t}),l):null});K.displayName="Portal";var H=e=>{var t,n;let r,i;let{present:o,children:a}=e,s=function(e){var t,n;let[r,i]=f.useState(),o=f.useRef({}),a=f.useRef(e),s=f.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},f.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return f.useEffect(()=>{let e=V(o.current);s.current="mounted"===l?e:"none"},[l]),y(()=>{let t=o.current,n=a.current;if(n!==e){let r=s.current,i=V(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),y(()=>{if(r){let e=e=>{let t=V(o.current).includes(e.animationName);e.target===r&&t&&M.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=V(o.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(o),l="function"==typeof a?a({present:s.isPresent}):f.Children.only(a),u=g(s.ref,(r=null===(t=Object.getOwnPropertyDescriptor(l.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?l.ref:(r=null===(n=Object.getOwnPropertyDescriptor(l,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?l.props.ref:l.props.ref||l.ref);return"function"==typeof a||s.isPresent?f.cloneElement(l,{ref:u}):null};function V(e){return(null==e?void 0:e.animationName)||"none"}H.displayName="Presence";var Z=0;function $(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function G(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var Y="right-scroll-bar-position",X="width-before-scroll-bar";function J(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Q="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,ee=new WeakMap,et=(void 0===i&&(i={}),(void 0===o&&(o=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=q({async:!0,ssr:!1},i),l),en=function(){},er=f.forwardRef(function(e,t){var n,r,i,o,a=f.useRef(null),s=f.useState({onScrollCapture:en,onWheelCapture:en,onTouchMoveCapture:en}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,_=e.inert,b=e.allowPinchZoom,w=e.as,C=e.gapMode,M=G(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[a,t],r=function(e){return n.forEach(function(t){return J(t,e)})},(i=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,Q(function(){var e=ee.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||J(e,null)}),r.forEach(function(e){t.has(e)||J(e,i)})}ee.set(o,n)},[n]),o),E=q(q({},M),l);return f.createElement(f.Fragment,null,m&&f.createElement(v,{sideCar:et,removeScrollBar:h,shards:g,noIsolation:y,inert:_,setCallbacks:u,allowPinchZoom:!!b,lockRef:a,gapMode:C}),c?f.cloneElement(f.Children.only(d),q(q({},E),{ref:x})):f.createElement(void 0===w?"div":w,q({},E,{className:p,ref:x}),d))});er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},er.classNames={fullWidth:X,zeroRight:Y};var ei=function(e){var t=e.sideCar,n=G(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,q({},n))};ei.isSideCarExport=!0;var eo=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ea=function(){var e=eo();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},es=function(){var e=ea();return function(t){return e(t.styles,t.dynamic),null}},el={left:0,top:0,right:0,gap:0},eu=function(e){return parseInt(e||"",10)||0},ec=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[eu(n),eu(r),eu(i)]},ed=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return el;var t=ec(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ef=es(),ep="data-scroll-locked",eh=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(ep,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Y," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(X," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Y," .").concat(Y," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(X," .").concat(X," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ep,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},em=function(){var e=parseInt(document.body.getAttribute(ep)||"0",10);return isFinite(e)?e:0},eg=function(){f.useEffect(function(){return document.body.setAttribute(ep,(em()+1).toString()),function(){var e=em()-1;e<=0?document.body.removeAttribute(ep):document.body.setAttribute(ep,e.toString())}},[])},ev=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;eg();var o=f.useMemo(function(){return ed(i)},[i]);return f.createElement(ef,{styles:eh(o,!t,i,n?"":"!important")})},ey=!1;if("undefined"!=typeof window)try{var e_=Object.defineProperty({},"passive",{get:function(){return ey=!0,!0}});window.addEventListener("test",e_,e_),window.removeEventListener("test",e_,e_)}catch(e){ey=!1}var eb=!!ey&&{passive:!1},ew=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eC=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eM(e,r)){var i=ex(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eM=function(e,t){return"v"===e?ew(t,"overflowY"):ew(t,"overflowX")},ex=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eE=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=ex(e,l),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&eM(e,l)&&(f+=g,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},eP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eS=function(e){return[e.deltaX,e.deltaY]},eO=function(e){return e&&"current"in e?e.current:e},eL=0,eA=[],ek=(u=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),i=f.useState(eL++)[0],o=f.useState(es)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eO),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=eP(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eC(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=eC(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return eE(p,t,e,"h"===p?l:u,!0)},[]),l=f.useCallback(function(e){if(eA.length&&eA[eA.length-1]===o){var n="deltaY"in e?eS(e):eP(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(eO).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=f.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=f.useCallback(function(e){n.current=eP(e),r.current=void 0},[]),d=f.useCallback(function(t){u(t.type,eS(t),t.target,s(t,e.lockRef.current))},[]),p=f.useCallback(function(t){u(t.type,eP(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return eA.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,eb),document.addEventListener("touchmove",l,eb),document.addEventListener("touchstart",c,eb),function(){eA=eA.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,eb),document.removeEventListener("touchmove",l,eb),document.removeEventListener("touchstart",c,eb)}},[]);var h=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?f.createElement(ev,{gapMode:e.gapMode}):null)},et.useMedium(u),ei),eT=f.forwardRef(function(e,t){return f.createElement(er,q({},e,{ref:t,sideCar:ek}))});eT.classNames=er.classNames;var ej=new WeakMap,eR=new WeakMap,eN={},eI=0,eD=function(e){return e&&(e.host||eD(e.parentNode))},ez=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eD(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eN[n]||(eN[n]=new WeakMap);var o=eN[n],a=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(ej.get(e)||0)+1,u=(o.get(e)||0)+1;ej.set(e,l),o.set(e,u),a.push(e),1===l&&i&&eR.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),eI++,function(){a.forEach(function(e){var t=ej.get(e)-1,i=o.get(e)-1;ej.set(e,t),o.set(e,i),t||(eR.has(e)||e.removeAttribute(r),eR.delete(e)),i||e.removeAttribute(n)}),--eI||(ej=new WeakMap,ej=new WeakMap,eR=new WeakMap,eN={})}},eF=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),ez(r,i,n,"aria-hidden")):function(){return null}},eU="Dialog",[eW,eB]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=f.createContext(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=n?.[e][o]||i,l=f.useMemo(()=>a,Object.values(a));return(0,v.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=a?.[e][o]||i,l=f.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eU),[eK,eH]=eW(eU),eV=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=f.useRef(null),l=f.useRef(null),[u=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=f.useState(e),[r]=n,i=f.useRef(r),o=C(t);return f.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}({defaultProp:t,onChange:n}),o=void 0!==e,a=o?e:r,s=C(n);return[a,f.useCallback(t=>{if(o){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[o,e,i,s])]}({prop:r,defaultProp:i,onChange:o});return(0,v.jsx)(eK,{scope:t,triggerRef:s,contentRef:l,contentId:w(),titleId:w(),descriptionId:w(),open:u,onOpenChange:c,onOpenToggle:f.useCallback(()=>c(e=>!e),[c]),modal:a,children:n})};eV.displayName=eU;var eZ="DialogTrigger",e$=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eH(eZ,n),o=g(t,i.triggerRef);return(0,v.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":tn(i.open),...r,ref:o,onClick:h(e.onClick,i.onOpenToggle)})});e$.displayName=eZ;var eq="DialogPortal",[eG,eY]=eW(eq,{forceMount:void 0}),eX=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=eH(eq,t);return(0,v.jsx)(eG,{scope:t,forceMount:n,children:f.Children.map(r,e=>(0,v.jsx)(H,{present:n||o.open,children:(0,v.jsx)(K,{asChild:!0,container:i,children:e})}))})};eX.displayName=eq;var eJ="DialogOverlay",eQ=f.forwardRef((e,t)=>{let n=eY(eJ,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eH(eJ,e.__scopeDialog);return o.modal?(0,v.jsx)(H,{present:r||o.open,children:(0,v.jsx)(e0,{...i,ref:t})}):null});eQ.displayName=eJ;var e0=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eH(eJ,n);return(0,v.jsx)(eT,{as:x,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(O.div,{"data-state":tn(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),e1="DialogContent",e2=f.forwardRef((e,t)=>{let n=eY(e1,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eH(e1,e.__scopeDialog);return(0,v.jsx)(H,{present:r||o.open,children:o.modal?(0,v.jsx)(e3,{...i,ref:t}):(0,v.jsx)(e5,{...i,ref:t})})});e2.displayName=e1;var e3=f.forwardRef((e,t)=>{let n=eH(e1,e.__scopeDialog),r=f.useRef(null),i=g(t,n.contentRef,r);return f.useEffect(()=>{let e=r.current;if(e)return eF(e)},[]),(0,v.jsx)(e6,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:h(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:h(e.onFocusOutside,e=>e.preventDefault())})}),e5=f.forwardRef((e,t)=>{let n=eH(e1,e.__scopeDialog),r=f.useRef(!1),i=f.useRef(!1);return(0,v.jsx)(e6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),e6=f.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=eH(e1,n),l=f.useRef(null),u=g(t,l);return f.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:$()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$()),Z++,()=>{1===Z&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Z--}},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,v.jsx)(k,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tn(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ta,{titleId:s.titleId}),(0,v.jsx)(ts,{contentRef:l,descriptionId:s.descriptionId})]})]})}),e8="DialogTitle",e4=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eH(e8,n);return(0,v.jsx)(O.h2,{id:i.titleId,...r,ref:t})});e4.displayName=e8;var e9="DialogDescription",e7=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eH(e9,n);return(0,v.jsx)(O.p,{id:i.descriptionId,...r,ref:t})});e7.displayName=e9;var te="DialogClose",tt=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eH(te,n);return(0,v.jsx)(O.button,{type:"button",...r,ref:t,onClick:h(e.onClick,()=>i.onOpenChange(!1))})});function tn(e){return e?"open":"closed"}tt.displayName=te;var tr="DialogTitleWarning",[ti,to]=function(e,t){let n=f.createContext(t);function r(e){let{children:t,...r}=e,i=f.useMemo(()=>r,Object.values(r));return(0,v.jsx)(n.Provider,{value:i,children:t})}return r.displayName=e+"Provider",[r,function(r){let i=f.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(tr,{contentName:e1,titleName:e8,docsSlug:"dialog"}),ta=e=>{let{titleId:t}=e,n=to(tr),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return f.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},ts=e=>{let{contentRef:t,descriptionId:n}=e,r=to("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return f.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},tl=eV,tu=e$,tc=eX,td=eQ,tf=e2,tp=e4,th=e7,tm=tt},4839:function(e,t,n){"use strict";t.Z=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}},4300:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(2265);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function p(e){return v(e).map(Number)}function h(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function v(e){return Object.keys(e)}function y(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function _(){let e=[],t={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e=0,t=0){let n=d(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function w(e){let t=e;function n(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function C(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=!1;return{clear:function(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){i||(r.transform=n(e.direction(t)))},toggleActive:function(e){i=!e}}}let M={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function x(e,t,n){let r,i,o,a,E;let P=e.ownerDocument,S=P.defaultView,O=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(v(n).forEach(r=>{let i=t[r],o=n[r],a=c(i)&&c(o);t[r]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=v(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>v(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(S),L=(E=[],{init:function(e,t){return(E=t.filter(({options:e})=>!1!==O.optionsAtMedia(e).active)).forEach(t=>t.init(e,O)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){E=E.filter(e=>e.destroy())}}),A=_(),k=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:T,optionsAtMedia:j,optionsMediaQueries:R}=O,{on:N,off:I,emit:D}=k,z=!1,F=T(M,x.globalOptions),U=T(F),W=[];function B(t,n){!z&&(U=j(F=T(F,t)),W=n||W,function(){let{container:t,slides:n}=U;o=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?o.querySelectorAll(n):n;a=[].slice.call(r||o.children)}(),r=function t(n){let r=function(e,t,n,r,i,o,a){let c,M;let{align:x,axis:E,direction:P,startIndex:S,loop:O,duration:L,dragFree:A,dragThreshold:k,inViewThreshold:T,slidesToScroll:j,skipSnaps:R,containScroll:N,watchResize:I,watchSlides:D,watchDrag:z}=o,F={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},U=F.measure(t),W=n.map(F.measure),B=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(E,P),K=B.measureSize(U),H={measure:function(e){return e/100*K}},V=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return l(e)?n[e](r):e(t,r,i)}}}(x,K),Z=!O&&!!N,{slideSizes:$,slideSizesWithGaps:q,startGap:G,endGap:Y}=function(e,t,n,r,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=n[0]&&i,c=function(){if(!u)return 0;let e=n[0];return d(t[s]-e[s])}(),f=u?parseFloat(o.getComputedStyle(h(r)).getPropertyValue(`margin-${l}`)):0,p=n.map(a),g=n.map((e,t,n)=>{let r=t===m(n);return t?r?p[t]+f:n[t+1][s]-e[s]:p[t]+c}).map(d);return{slideSizes:p,slideSizesWithGaps:g,startGap:c,endGap:f}}(B,U,W,n,O||!!N,i),X=function(e,t,n,r,i,o,a,l,u){let{startEdge:c,endEdge:f,direction:g}=e,v=s(n);return{groupSlides:function(e){return v?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,s,u)=>{let p=h(n)||0,v=s===m(e),y=i[c]-o[p][c],_=i[c]-o[s][f],b=r||0!==p?0:g(a),w=d(_-(!r&&v?g(l):0)-(y+b));return u&&w>t+2&&n.push(s),v&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(B,K,j,O,U,W,G,Y,0),{snaps:J,snapsAligned:Q}=function(e,t,n,r,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(r).map(e=>h(e)[a]-e[0][o]).map(d).map(t.measure),u=r.map(e=>n[o]-e[o]).map(e=>-d(e)),c=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}(B,V,U,W,X),ee=-h(J)+h(q),{snapsContained:et,scrollContainLimit:en}=function(e,t,n,r,i){let o=b(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),s=t===m(n);return t?s||1>d(r-a)?r:1>d(i-a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=a[0],t=h(a);return b(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=s;return a.slice(n,i)}(),scrollContainLimit:s}}(K,ee,Q,N,0),er=Z?et:Q,{limit:ei}=function(e,t,n){let r=t[0];return{limit:b(n?r-e:h(t),r)}}(ee,er,O),eo=function e(t,n,r){let{constrain:i}=b(0,t),o=t+1,a=s(n);function s(e){return r?d((o+e)%o):i(e)}function l(){return e(t,a,r)}let u={get:function(){return a},set:function(e){return a=s(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(m(er),S,O),ea=eo.clone(),es=p(n),el=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(e.pointerDown()),t.seek(i)},eu=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:i,slideLooper:o,dragHandler:a,animation:s,eventHandler:l,scrollBounds:u,options:{loop:c}},d)=>{let f=e.settled(),p=!u.shouldConstrain(),h=c?f:f&&p;h&&!a.pointerDown()&&(s.stop(),l.emit("settle")),h||l.emit("scroll");let m=n.get()*d+ep.get()*(1-d);r.set(m),c&&(i.loop(e.direction()),o.loop()),t.to(r.get())},ec=function(e,t,n,r){let i=_(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e);let i=e-a;for(a=e,s+=i;s>=o;)n(o),s-=o;r(s/o),l&&t.requestAnimationFrame(u)}function c(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:()=>n(o),render:r}}(r,i,e=>el(ex,e),e=>eu(ex,e)),ed=er[eo.get()],ef=w(ed),ep=w(ed),eh=w(ed),em=w(ed),eg=function(e,t,n,r,i,o){let a=0,s=0,l=i,u=.68,c=e.get(),p=0;function h(e){return l=e,g}function m(e){return u=e,g}let g={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(t){let i=t/1e3,o=l*i,d=r.get()-e.get(),h=0;return l?(n.set(e),a+=d/o,a*=u,c+=a,e.add(a*i),h=c-p):(a=0,n.set(r),e.set(r),h=d),s=f(h),p=c,g},settled:function(){return .001>d(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return h(i)},useFriction:m,useDuration:h};return g}(ef,eh,ep,em,L,0),ev=function(e,t,n,r,i){let{reachedAny:o,removeOffset:a,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let o=i.filter(e=>f(e)===r);return o.length?l(o):h(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:c,distance:f}=function(n){let r=e?a(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:r}}(l),p=!e&&o(l);if(!r||p)return{index:c,distance:n};let h=n+u(t[c]-f,0);return{index:c,distance:h}},byIndex:function(e,n){let r=u(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:u}}(O,er,ee,ei,em),ey=function(e,t,n,r,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();o.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}}}(ec,eo,ea,eg,ev,em,a),e_=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ei),eb=_(),ew=function(e,t,n,r){let i;let o={},a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=v(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(a=t),e||(s=t),t}}}(t,n,a,T),{slideRegistry:eC}=function(e,t,n,r,i,o){let{groupSlides:a}=i,{min:s,max:l}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(s,l).map((e,t,n)=>{let r=t===m(n);return t?r?g(m(o)-h(n)[0]+1,h(n)[0]):e:g(h(n[0])+1)}):r}()}}(Z,N,er,en,X,es),eM=function(e,t,n,r,i,o,a){let l=0;function u(e){"Tab"===e.code&&(l=new Date().getTime())}function c(u){o.add(u,"focus",()=>{if(new Date().getTime()-l>10)return;e.scrollLeft=0;let o=t.indexOf(u),c=n.findIndex(e=>e.includes(o));s(c)&&(i.useDuration(0),r.index(c,0),a.emit("slideFocus"))},{passive:!0,capture:!0})}return{init:function(){o.add(document,"keydown",u,!1),t.forEach(c)}}}(e,n,eC,ey,eg,eb,a),ex={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:U,slideRects:W,animation:ec,axis:B,dragHandler:function(e,t,n,r,i,o,a,s,l,c,p,h,m,g,v,w,C,M,x){let{cross:E,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],O={passive:!1},L=_(),A=_(),k=b(50,225).constrain(g.measure(20)),T={mouse:300,touch:400},j={mouse:500,touch:600},R=v?43:25,N=!1,I=0,D=0,z=!1,F=!1,U=!1,W=!1;function B(e){if(!y(e,r)&&e.touches.length>=2)return K(e);let t=o.readPoint(e),n=o.readPoint(e,E),a=d(t-I),l=d(n-D);if(!F&&!W&&(!e.cancelable||!(F=a>l)))return K(e);let u=o.pointerMove(e);a>w&&(U=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(P(u)),e.preventDefault()}function K(e){let t=p.byDistance(0,!1).index!==h.get(),n=o.pointerUp(e)*(v?j:T)[W?"mouse":"touch"],r=function(e,t){let n=h.add(-1*f(e)),r=p.byDistance(e,!v).distance;return v||d(e)<k?r:C&&t?.5*r:p.byIndex(n.get(),0).distance}(P(n),t),i=function(e,t){var n,r;if(0===e||0===t||d(e)<=d(t))return 0;let i=(n=d(e),r=d(t),d(n-r));return d(i/e)}(n,r);F=!1,z=!1,A.clear(),c.useDuration(R-10*i).useFriction(.68+i/50),l.distance(r,!v),W=!1,m.emit("pointerUp")}function H(e){U&&(e.stopPropagation(),e.preventDefault(),U=!1)}return{init:function(e){x&&L.add(t,"dragstart",e=>e.preventDefault(),O).add(t,"touchmove",()=>void 0,O).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",K).add(t,"contextmenu",K).add(t,"click",H,!0);function s(s){(u(x)||x(e,s))&&function(e){let s=y(e,r);W=s,U=v&&s&&!e.buttons&&N,N=d(i.get()-a.get())>=2,s&&0!==e.button||function(e){let t=e.nodeName||"";return S.includes(t)}(e.target)||(z=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),i.set(a),function(){let e=W?n:t;A.add(e,"touchmove",B,O).add(e,"touchend",K).add(e,"mousemove",B,O).add(e,"mouseup",K)}(),I=o.readPoint(e),D=o.readPoint(e,E),m.emit("pointerDown"))}(s)}},destroy:function(){L.clear(),A.clear()},pointerDown:function(){return z}}}(B,e,r,i,em,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(y(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),a=i(e)-i(n),s=i(e)-i(r)>170,l=t/a;return a&&!s&&d(l)>.1?l:0},readPoint:o}}(B,i),ef,ec,ey,eg,ev,eo,a,H,A,k,R,0,z),eventStore:eb,percentOfView:H,index:eo,indexPrevious:ea,limit:ei,location:ef,offsetLocation:eh,previousLocation:ep,options:o,resizeHandler:function(e,t,n,r,i,o,a){let s,l;let c=[e].concat(r),f=[],p=!1;function h(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=h(e),f=r.map(h),s=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,a=r.indexOf(o.target),s=n?l:f[a];if(d(h(n?e:r[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,a,i,n,B,I,F),scrollBody:eg,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),a=i.measure(50),s=b(.1,.99),l=!1;function u(){return!!(!l&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=d(e[l]-t.get()),f=n.get()-t.get(),p=s.constrain(c/a);n.subtract(f*p),!i&&d(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ei,eh,em,eg,H),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:o}=b(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&i(n.get())))return;let a=-1*t*e;r.forEach(e=>e.add(a))}}}(ee,ei,eh,[ef,eh,ep,em]),scrollProgress:e_,scrollSnapList:er.map(e_.get),scrollSnaps:er,scrollTarget:ev,scrollTo:ey,slideLooper:function(e,t,n,r,i,o,a,s,l){let u=p(i),c=h(f(p(i).reverse(),a[0]),n,!1).concat(h(f(u,t-a[0]-1),-n,!0));function d(e,t){return e.reduce((e,t)=>e-i[t],t)}function f(e,t){return e.reduce((e,n)=>d(e,t)>0?e.concat([n]):e,[])}function h(i,a,u){let c=o.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=u?0:-n,i=u?n:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:w(-1),translate:C(e,l[t]),target:()=>s.get()>o?r:i}})}return{canLoop:function(){return c.every(({index:e})=>.1>=d(u.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:c}}(B,K,ee,$,q,J,er,eh,n),slideFocus:eM,slidesHandler:(M=!1,{init:function(e){D&&(c=new MutationObserver(t=>{!M&&(u(D)||D(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),M=!0}}),slidesInView:ew,slideIndexes:es,slideRegistry:eC,slidesToScroll:X,target:em,translate:C(B,t)};return ex}(e,o,a,P,S,n,k);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(U),R([F,...W.map(({options:e})=>e)]).forEach(e=>A.add(e,"change",K)),U.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(),r.eventHandler.init($),r.resizeHandler.init($),r.slidesHandler.init($),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init($),i=L.init($,W)))}function K(e,t){let n=Z();H(),B(T({startIndex:n},e),t),k.emit("reInit")}function H(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),L.destroy(),A.clear()}function V(e,t,n){U.active&&!z&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:U.duration),r.scrollTo.index(e,n||0))}function Z(){return r.index.get()}let $={canScrollNext:function(){return r.index.add(1).get()!==Z()},canScrollPrev:function(){return r.index.add(-1).get()!==Z()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){z||(z=!0,A.clear(),H(),k.emit("destroy"),k.clear())},off:I,on:N,emit:D,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:K,rootNode:function(){return e},scrollNext:function(e){V(r.index.add(1).get(),e,-1)},scrollPrev:function(e){V(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:V,selectedScrollSnap:Z,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return B(t,n),setTimeout(()=>k.emit("init"),0),$}function E(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[s,l]=(0,r.useState)(),[u,c]=(0,r.useState)(),d=(0,r.useCallback)(()=>{s&&s.reInit(n.current,i.current)},[s]);return(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){x.globalOptions=E.globalOptions;let e=x(u,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,d())},[e,d]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),[c,s]}x.globalOptions=void 0,E.globalOptions=void 0},3759:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return tX}});let i=e=>e,o=e=>Array.isArray(e),a=e=>o(e)?e[e.length-1]||0:e;class s{constructor(){this.subscriptions=[]}add(e){var t;return -1===(t=this.subscriptions).indexOf(e)&&t.push(e),()=>(function(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)})(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let l={skipAnimations:!1,useManualTiming:!1};class u{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let c=["read","resolveKeyframes","update","preRender","render","postRender"],{schedule:d,cancel:f,state:p,steps:h}=function(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=c.reduce((e,t)=>(e[t]=function(e){let t=new u,n=new u,r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),u.add(e)&&l&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;n<r;n++){let r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}i=!1,o&&(o=!1,s.process(l))}};return s}(()=>n=!0),e),{}),a=e=>{o[e].process(i)},s=()=>{let o=l.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,c.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},d=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:c.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||d(),r.schedule(e,t,i)),e},{}),cancel:e=>c.forEach(t=>o[t].cancel(e)),state:i,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i,!0);function m(){r=void 0}let g={now:()=>(void 0===r&&g.set(p.isProcessing||l.useManualTiming?p.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(m)}},v=e=>!isNaN(parseFloat(e)),y={current:void 0};class _{constructor(e,t={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=g.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=g.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=v(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 s);let n=this.events[e].add(t);return"change"===e?()=>{n(),d.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,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}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()}get(){return y.current&&y.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=g.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function b(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function w(e,t,n){let r=e.getProps();return function(e,t,n,r){if("function"==typeof t){let[i,o]=b(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=b(r);t=t(void 0!==n?n:e.custom,i,o)}return t}(r,t,void 0!==n?n:r.custom,e)}function C(e,t){let{transitionEnd:n={},transition:r={},...i}=w(e,t)||{};for(let t in i={...i,...n}){let n=a(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,new _(n,void 0))}}let M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(M),E=e=>1e3*e,P=e=>e/1e3,S={type:"spring",stiffness:500,damping:25,restSpeed:10},O=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),L={type:"keyframes",duration:.8},A={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},k=(e,{keyframes:t})=>t.length>2?L:x.has(e)?e.startsWith("scale")?O(t[1]):S:A;function T(e,t){return e[t]||e.default||e}let j={current:!1},R=e=>null!==e;function N(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(R),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}let I=e=>/^0[^.\s]+$/u.test(e),D=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),z=e=>t=>"string"==typeof t&&t.startsWith(e);z("--");let F=z("var(--"),U=e=>!!F(e)&&W.test(e.split("/*")[0].trim()),W=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,B=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,K=(e,t,n)=>n>t?t:n<e?e:n,H={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},V={...H,transform:e=>K(0,1,e)},Z={...H,default:1},$=e=>Math.round(1e5*e)/1e5,q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,G=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function X(e){return"string"==typeof e}let J=e=>({test:t=>X(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Q=J("deg"),ee=J("%"),et=J("px"),en=J("vh"),er=J("vw"),ei={...ee,parse:e=>ee.parse(e)/100,transform:e=>ee.transform(100*e)},eo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ea=e=>e===H||e===et,es=(e,t)=>parseFloat(e.split(", ")[t]),el=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return es(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?es(t[1],e):0}},eu=new Set(["x","y","z"]),ec=M.filter(e=>!eu.has(e)),ed={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:el(4,13),y:el(5,14)};ed.translateX=ed.x,ed.translateY=ed.y;let ef=e=>t=>t.test(e),ep=[H,et,ee,Q,er,en,{test:e=>"auto"===e,parse:e=>e}],eh=e=>ep.find(ef(e)),em=new Set,eg=!1,ev=!1;function ey(){if(ev){let e=Array.from(em).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ec.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(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])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ev=!1,eg=!1,em.forEach(e=>e.complete()),em.clear()}function e_(){em.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ev=!0)})}class eb{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(em.add(this),eg||(eg=!0,d.read(e_),d.resolveKeyframes(ey))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),em.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,em.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let ew=(e,t)=>n=>!!(X(n)&&Y.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),eC=(e,t,n)=>r=>{if(!X(r))return r;let[i,o,a,s]=r.match(q);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eM=e=>K(0,255,e),ex={...H,transform:e=>Math.round(eM(e))},eE={test:ew("rgb","red"),parse:eC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ex.transform(e)+", "+ex.transform(t)+", "+ex.transform(n)+", "+$(V.transform(r))+")"},eP={test:ew("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eE.transform},eS={test:ew("hsl","hue"),parse:eC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ee.transform($(t))+", "+ee.transform($(n))+", "+$(V.transform(r))+")"},eO={test:e=>eE.test(e)||eP.test(e)||eS.test(e),parse:e=>eE.test(e)?eE.parse(e):eS.test(e)?eS.parse(e):eP.parse(e),transform:e=>X(e)?e:e.hasOwnProperty("red")?eE.transform(e):eS.transform(e)},eL="number",eA="color",ek=/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 eT(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(ek,e=>(eO.test(e)?(r.color.push(o),i.push(eA),n.push(eO.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(eL),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function ej(e){return eT(e).values}function eR(e){let{split:t,types:n}=eT(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===eL?i+=$(e[o]):t===eA?i+=eO.transform(e[o]):i+=e[o]}return i}}let eN=e=>"number"==typeof e?0:e,eI={test:function(e){var t,n;return isNaN(e)&&X(e)&&((null===(t=e.match(q))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(G))||void 0===n?void 0:n.length)||0)>0},parse:ej,createTransformer:eR,getAnimatableNone:function(e){let t=ej(e);return eR(e)(t.map(eN))}},eD=new Set(["brightness","contrast","saturate","opacity"]);function ez(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(q)||[];if(!r)return e;let i=n.replace(r,""),o=eD.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let eF=/\b([a-z-]*)\(.*?\)/gu,eU={...eI,getAnimatableNone:e=>{let t=e.match(eF);return t?t.map(ez).join(" "):e}},eW={...H,transform:Math.round},eB={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Z,scaleX:Z,scaleY:Z,scaleZ:Z,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:V,originX:ei,originY:ei,originZ:et,zIndex:eW,backgroundPositionX:et,backgroundPositionY:et,fillOpacity:V,strokeOpacity:V,numOctaves:eW,color:eO,backgroundColor:eO,outlineColor:eO,fill:eO,stroke:eO,borderColor:eO,borderTopColor:eO,borderRightColor:eO,borderBottomColor:eO,borderLeftColor:eO,filter:eU,WebkitFilter:eU},eK=e=>eB[e],eH=new Set(["auto","none","0"]);class eV extends eb{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&U(r=r.trim())){let o=function e(t,n,r=1){i(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[o,a]=function(e){let t=B.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!o)return;let s=window.getComputedStyle(n).getPropertyValue(o);if(s){let e=s.trim();return D(e)?parseFloat(e):e}return U(a)?e(a,n,r+1):a}(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!eo.has(n)||2!==e.length)return;let[r,o]=e,a=eh(r),s=eh(o);if(a!==s){if(ea(a)&&ea(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||I(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eH.has(t)&&eT(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=function(e,t){let n=eK(e);return n!==eU&&(n=eI),n.getAnimatableNone?n.getAnimatableNone(t):void 0}(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ed[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,a=r[o];r[o]=ed[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}function eZ(e){let t;return()=>(void 0===t&&(t=e()),t)}let e$=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eI.test(e)||"0"===e)&&!e.startsWith("url("));class eq{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(e_(),ey()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:o,delay:a,onComplete:s,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(e,t,n,r){let o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=e$(o,t),l=e$(a,t);return i(s===l,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!l&&(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&&r)}(e,n,r,o)){if(j.current||!a){null==l||l(N(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function eG(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}function eY(e,t){return e*Math.sqrt(1-t*t)}let eX=["duration","bounce"],eJ=["stiffness","damping","mass"];function eQ(e,t){return t.some(t=>void 0!==e[t])}function e0({keyframes:e,restDelta:t,restSpeed:n,...r}){let o;let a=e[0],s=e[e.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!eQ(e,eJ)&&eQ(e,eX)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;i(e<=E(10),"Spring duration must be 10 seconds or less");let s=1-t;s=K(.05,1,s),e=K(.01,10,P(e)),s<1?(o=t=>{let r=t*s,i=r*e;return .001-(r-n)/eY(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,i=Math.pow(s,2)*Math.pow(t,2)*e,a=eY(Math.pow(t,2),s);return(r*n+n-i)*Math.exp(-r)*(-o(t)+.001>0?-1:1)/a}):(o=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e=E(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-P(r.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*d)),v=s-a,y=P(Math.sqrt(u/d)),_=5>Math.abs(v);if(n||(n=_?.01:2),t||(t=_?.005:.5),g<1){let e=eY(y,g);o=t=>s-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)o=e=>s-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);o=t=>{let n=Math.exp(-g*y*t),r=Math.min(e*t,300);return s-n*((m+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}return{calculatedDuration:h&&f||null,next:e=>{let r=o(e);if(h)l.done=e>=f;else{let i=m;0!==e&&(i=g<1?eG(o,e,r):0);let a=Math.abs(i)<=n,u=Math.abs(s-r)<=t;l.done=a&&u}return l.value=l.done?s:r,l}}}function e1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,v=n*t,y=p+v,_=void 0===a?y:a(y);_!==y&&(v=_-p);let b=e=>-v*Math.exp(-e/r),w=e=>_+b(e),C=e=>{let t=b(e),n=w(e);h.done=Math.abs(t)<=u,h.value=h.done?_:n},M=e=>{m(h.value)&&(d=e,f=e0({keyframes:[h.value,g(h.value)],velocity:eG(w,e,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,C(e),M(e)),void 0!==d&&e>=d)?f.next(e-d):(t||C(e),h)}}}let e2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function e3(e,t,n,r){if(e===t&&n===r)return i;let o=t=>(function(e,t,n,r,i){let o,a;let s=0;do(o=e2(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:e2(o(e),t,r)}let e5=e3(.42,0,1,1),e6=e3(0,0,.58,1),e8=e3(.42,0,.58,1),e4=e=>Array.isArray(e)&&"number"!=typeof e[0],e9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e7=e=>t=>1-e(1-t),te=e=>1-Math.sin(Math.acos(e)),tt=e7(te),tn=e9(te),tr=e3(.33,1.53,.69,.99),ti=e7(tr),to=e9(ti),ta={linear:i,easeIn:e5,easeInOut:e8,easeOut:e6,circIn:te,circInOut:tn,circOut:tt,backIn:ti,backInOut:to,backOut:tr,anticipate:e=>(e*=2)<1?.5*ti(e):.5*(2-Math.pow(2,-10*(e-1)))},ts=e=>{if(Array.isArray(e)){i(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return e3(t,n,r,o)}return"string"==typeof e?(i(void 0!==ta[e],`Invalid easing type '${e}'`),ta[e]):e},tl=(e,t)=>n=>t(e(n)),tu=(...e)=>e.reduce(tl),tc=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},td=(e,t,n)=>e+(t-e)*n;function tf(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}function tp(e,t){return n=>n>0?t:e}let th=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tm=[eP,eE,eS],tg=e=>tm.find(t=>t.test(e));function tv(e){let t=tg(e);if(i(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eS&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=tf(s,r,e+1/3),o=tf(s,r,e),a=tf(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let ty=(e,t)=>{let n=tv(e),r=tv(t);if(!n||!r)return tp(e,t);let i={...n};return e=>(i.red=th(n.red,r.red,e),i.green=th(n.green,r.green,e),i.blue=th(n.blue,r.blue,e),i.alpha=td(n.alpha,r.alpha,e),eE.transform(i))},t_=new Set(["none","hidden"]);function tb(e,t){return n=>td(e,t,n)}function tw(e){return"number"==typeof e?tb:"string"==typeof e?U(e)?tp:eO.test(e)?ty:tx:Array.isArray(e)?tC:"object"==typeof e?eO.test(e)?ty:tM:tp}function tC(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tw(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tM(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tw(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let tx=(e,t)=>{let n=eI.createTransformer(t),r=eT(e),o=eT(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?t_.has(e)&&!o.values.length||t_.has(t)&&!r.values.length?t_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:tu(tC(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,o),o.values),n):(i(!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.`),tp(e,t))};function tE(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?td(e,t,n):tw(e)(e,t)}function tP({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let o=e4(r)?r.map(ts):ts(r),a={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){let a=e.length;if(i(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],o=n||tE,a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);t&&(a=tu(Array.isArray(t)?t[n]||i:t,a)),r.push(a)}return r}(t,r,o),l=s.length,u=t=>{let n=0;if(l>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=tc(e[n],e[n+1],t);return s[n](r)};return n?t=>u(K(e[0],e[a-1],t)):u}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tc(0,t,r);e.push(td(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(o)?o:t.map(()=>o||e8).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}let tS=e=>{let t=({timestamp:t})=>e(t);return{start:()=>d.update(t,!0),stop:()=>f(t),now:()=>p.isProcessing?p.timestamp:g.now()}},tO={decay:e1,inertia:e1,tween:tP,keyframes:tP,spring:e0},tL=e=>e/100;class tA extends eq{constructor({KeyframeResolver:e=eb,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:n,motionValue:r,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(i,o,n,r):this.resolver=new e(i,o,n,r),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=tO[r]||tP;l!==tP&&"number"!=typeof e[0]&&(t=tu(tL,tE(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=function(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}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,_=i;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(n=1-n,h&&(n-=h/c)):"mirror"===p&&(_=o)),y=K(0,1,n)*c}let b=v?{done:!1,value:s[0]}:_.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&void 0!==r&&(b.value=N(s,this.options,r)),m&&m(b.value),C&&this.finish(),b}get duration(){let{resolved:e}=this;return e?P(e.calculatedDuration):0}get time(){return P(this.currentTime)}set time(e){e=E(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=P(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tS,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let tk=e=>Array.isArray(e)&&"number"==typeof e[0],tT=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tT([0,.65,.55,1]),circOut:tT([.55,0,1,.45]),backIn:tT([.31,.01,.66,-.59]),backOut:tT([.33,1.53,.69,.99])};function tR(e){return tN(e)||tj.easeOut}function tN(e){if(e)return tk(e)?tT(e):Array.isArray(e)?e.map(tR):tj[e]}let tI=eZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tD=new Set(["opacity","clipPath","filter","transform"]);class tz extends eq{constructor(e){super(e);let{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new eV(r,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n,r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function e(t){return!!(!t||"string"==typeof t&&t in tj||tk(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:n,motionValue:r,...l}=this.options,u=function(e,t){let n=new tA({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,a=u.ease,s="keyframes"}let c=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=tN(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:a});return c.startTime=g.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;l.set(N(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return P(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return P(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=E(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return i;let{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return i}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new tA({...l,keyframes:n,duration:r,type:i,ease:o,times:a,isGenerator:!0}),c=E(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return tI()&&n&&tD.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}let tF=eZ(()=>void 0!==window.ScrollTimeline);class tU{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>{if(!tF()||!t.attachTimeline)return t.pause(),function(e,t){let n;let r=()=>{let{currentTime:r}=t,i=(null===r?0:r.value)/100;n!==i&&e(i),n=i};return d.update(r,!0),()=>f(r)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tW=(e,t,n,r={},i,o)=>a=>{let s=T(r,e)||{},u=s.delay||r.delay||0,{elapsed:c=0}=r;c-=E(u);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&(f={...f,...k(e,f)}),f.duration&&(f.duration=E(f.duration)),f.repeatDelay&&(f.repeatDelay=E(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(f.duration=0,0!==f.delay||(p=!0)),(j.current||l.skipAnimations)&&(p=!0,f.duration=0,f.delay=0),p&&!o&&void 0!==t.get()){let e=N(f.keyframes,s);if(void 0!==e)return d.update(()=>{f.onUpdate(e),f.onComplete()}),new tU([])}return!o&&tz.supports(f)?new tz(f):new tA(f)},tB=e=>!!(e&&e.getVelocity),tK="data-"+"framerAppearId".replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();function tH(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t,u=e.getValue("willChange");r&&(a=r);let c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let r=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let s={delay:n,elapsed:0,...T(a||{},t)},p=!1;if(window.HandoffAppearAnimations){let n=e.getProps()[tK];if(n){let e=window.HandoffAppearAnimations(n,t,r,d);null!==e&&(s.elapsed=e,p=!0)}}r.start(tW(t,r,i,e.shouldReduceMotion&&x.has(t)?{type:!1}:s,e,p));let h=r.animation;h&&(tB(u)&&u.add&&(u.add(t),h.then(()=>u.remove(t))),c.push(h))}return s&&Promise.all(c).then(()=>{d.update(()=>{s&&C(e,s)})}),c}function tV(e,t,n={}){var r;let i=w(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>Promise.all(tH(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(tZ).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(tV(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}}function tZ(e,t){return e.sortNodePosition(t)}function t$(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&C(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{t$(e,t)})})}function tq(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){i(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return t.forEach(e=>{o.push(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>tV(e,t,n)));else if("string"==typeof t)r=tV(e,t,n);else{let i="function"==typeof t?w(e,t,n.custom):t;r=Promise.all(tH(e,i,n))}return r.then(()=>{d.postRender(()=>{e.notify("AnimationComplete",t)})})}(e,n,{transitionOverride:r}))}),Promise.all(o)},set:n=>(i(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{Array.isArray(n)?t$(e,n):"string"==typeof n?t$(e,[n]):C(e,n)})),stop(){t.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}var tG=n(2265);let tY="undefined"!=typeof document?tG.useLayoutEffect:tG.useEffect,tX=function(){let e=function(e){let t=(0,tG.useRef)(null);return null===t.current&&(t.current=e()),t.current}(tq);return tY(e.mount,[]),e}}}]);