1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7184],{27184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o8});var i,r,o=n(3648),a=n(59275),s=n(57153),l=n(98632),u=n(23064),p=n(88906),c=n(12115);let d=c.createContext(null);function h(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!h(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let i of n)if(!t.hasOwnProperty(i)||!h(e[i],t[i]))return!1;return!0}return!1}function m(e,t){if(!e.getProjection)return;let n=e.getProjection();h(n,t.getProjection())||t.setProjection(n)}function f(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function g(e,t){let n=t.viewState||t,i=!1;if("longitude"in n&&"latitude"in n){let t=e.center;e.center=new t.constructor(n.longitude,n.latitude),i=i||t!==e.center}if("zoom"in n){let t=e.zoom;e.zoom=n.zoom,i=i||t!==e.zoom}if("bearing"in n){let t=e.bearing;e.bearing=n.bearing,i=i||t!==e.bearing}if("pitch"in n){let t=e.pitch;e.pitch=n.pitch,i=i||t!==e.pitch}return n.padding&&!e.isPaddingEqual(n.padding)&&(i=!0,e.padding=n.padding),i}let y=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function v(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;"interactive"in e&&(n=Object.assign({},e),delete n.interactive);let i=t[e.ref];if(i)for(let t of(n=n||Object.assign({},e),delete n.ref,y))t in i&&(n[t]=i[t]);return n||e});return{...e,layers:n}}var x=n(95704);let _={version:8,sources:{},layers:[]},b={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},w={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},k={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},E=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],P=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class S{get map(){return this._map}get transform(){return this._renderTransform}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t);n&&this._createShadowTransform(this._map);let i=this._updateSize(e),r=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(n||i||r&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let n=S.savedMaps.pop();if(!n)return null;let i=n.map,r=i.getContainer();for(t.className=r.className;r.childNodes.length>0;)t.appendChild(r.childNodes[0]);i._container=t;let o=i._resizeObserver;o&&(o.disconnect(),o.observe(t)),n.setProps({...e,styleDiffing:!1}),i.resize();let{initialViewState:a}=e;return a&&(a.bounds?i.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),i.isStyleLoaded()?i.fire("load"):i.once("styledata",()=>i.fire("load")),i._update(),n}_initialize(e){let{props:t}=this,{mapStyle:n=_}=t,i={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||function(){let e=null;if("undefined"!=typeof location){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||x.env.MapboxAccessToken}catch(e){}try{e=e||x.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(e){}return e}()||null,container:e,style:v(n)},r=i.initialViewState||i.viewState||i;if(Object.assign(i,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let o=new this._MapClass(i);r.padding&&o.setPadding(r.padding),t.cursor&&(o.getCanvas().style.cursor=t.cursor),this._createShadowTransform(o);let a=o._render;o._render=e=>{this._inRender=!0,a.call(o,e),this._inRender=!1};let s=o._renderTaskQueue.run;o._renderTaskQueue.run=e=>{s.call(o._renderTaskQueue,e),this._onBeforeRepaint()},o.on("render",()=>this._onAfterRepaint());let l=o.fire;
1for(let e in o.fire=this._fireEvent.bind(this,l),o.on("resize",()=>{this._renderTransform.resize(o.transform.width,o.transform.height)}),o.on("styledata",()=>{this._updateStyleComponents(this.props,{}),m(o.transform,this._renderTransform)}),o.on("sourcedata",()=>this._updateStyleComponents(this.props,{})),b)o.on(e,this._onPointerEvent);for(let e in w)o.on(e,this._onCameraEvent);for(let e in k)o.on(e,this._onEvent);this._map=o}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");null==e||e.remove(),S.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){let t=function(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;let n=this._map,i=this._renderTransform,{zoom:r,pitch:o,bearing:a}=i,s=n.isMoving();s&&(i.cameraElevationReference="sea");let l=g(i,{...f(n.transform),...e});if(s&&(i.cameraElevationReference="ground"),l&&t){let e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=r!==i.zoom),e.rotate||(e.rotate=a!==i.bearing),e.pitch||(e.pitch=o!==i.pitch)}return s||g(n.transform,e),l}_updateSettings(e,t){let n=this._map,i=!1;for(let r of E)if(r in e&&!h(e[r],t[r])){i=!0;let t=n["set".concat(r[0].toUpperCase()).concat(r.slice(1))];null==t||t.call(n,e[r])}return i}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=_,styleDiffing:n=!0}=e,i={diff:n};return"localIdeographFontFamily"in e&&(i.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(v(t),i),!0}return!1}_updateStyleComponents(e,t){let n=this._map,i=!1;return n.isStyleLoaded()&&("light"in e&&n.setLight&&!h(e.light,t.light)&&(i=!0,n.setLight(e.light)),"fog"in e&&n.setFog&&!h(e.fog,t.fog)&&(i=!0,n.setFog(e.fog)),"terrain"in e&&n.setTerrain&&!h(e.terrain,t.terrain)&&(!e.terrain||n.getSource(e.terrain.source))&&(i=!0,n.setTerrain(e.terrain))),i}_updateHandlers(e,t){var n,i;let r=this._map,o=!1;for(let a of P){let s=null==(n=e[a])||n;h(s,null==(i=t[a])||i)||(o=!0,s?r[a].enable(s):r[a].disable())}return o}_queryRenderedFeatures(e){let t=this._map,n=t.transform,{interactiveLayerIds:i=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:i.filter(t.getLayer.bind(t))})}catch(e){return[]}finally{t.transform=n}}_updateHover(e){var t;let{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){let n=e.type,i=(null==(t=this._hoveredFeatures)?void 0:t.length)>0,r=this._queryRenderedFeatures(e.point),o=r.length>0;!o&&i&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=r,o&&!i&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=n}else this._hoveredFeatures=null}_fireEvent(e,t,n){let i=this._map,r=i.transform,o="string"==typeof t?t:t.type;return("move"===o&&this._updateViewState(this.props,!1),o in w&&("object"==typeof t&&(t.viewState=f(r)),this._map.isMoving()))?(i.transform=this._renderTransform,e.call(i,t,n),i.transform=r,i):(e.call(i,t,n),i)}_onBeforeRepaint(){let e=this._map;for(let t in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[t]&&e.fire(t);this._internalUpdate=!1;let t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{m(this._renderTransform,t),e.transform=t}}constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{let t=this.props[k[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[b[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){let t=this.props[w[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(n)}}S.savedMaps=[];
1let C=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],A="undefined"!=typeof document?c.useLayoutEffect:c.useEffect,T=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],M=c.createContext(null);var V=n(47650);let z=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function j(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let i=t[e];Number.isFinite(i)&&!z.test(e)?n[e]="".concat(i,"px"):n[e]=i}}let L=(0,c.memo)((0,c.forwardRef)(function(e,t){let{map:n,mapLib:i}=(0,c.useContext)(M),r=(0,c.useRef)({props:e});r.current.props=e;let o=(0,c.useMemo)(()=>{let t=!1;c.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement("div"):null},a=new i.Marker(n);return a.setLngLat([e.longitude,e.latitude]),a.getElement().addEventListener("click",e=>{var t,n;null==(n=(t=r.current.props).onClick)||n.call(t,{type:"click",target:a,originalEvent:e})}),a.on("dragstart",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=r.current.props).onDragStart)||n.call(t,e)}),a.on("drag",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=r.current.props).onDrag)||n.call(t,e)}),a.on("dragend",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=r.current.props).onDragEnd)||n.call(t,e)}),a},[]);(0,c.useEffect)(()=>(o.addTo(n.getMap()),()=>{o.remove()}),[]);let{longitude:a,latitude:s,offset:l,style:u,draggable:p=!1,popup:d=null,rotation:h=0,rotationAlignment:m="auto",pitchAlignment:f="auto"}=e;return(0,c.useEffect)(()=>{j(o.getElement(),u)},[u]),(0,c.useImperativeHandle)(t,()=>o,[]),(o.getLngLat().lng!==a||o.getLngLat().lat!==s)&&o.setLngLat([a,s]),l&&!function(e,t){let n=Array.isArray(e)?e[0]:e?e.x:0,i=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,o=Array.isArray(t)?t[1]:t?t.y:0;return n===r&&i===o}(o.getOffset(),l)&&o.setOffset(l),o.isDraggable()!==p&&o.setDraggable(p),o.getRotation()!==h&&o.setRotation(h),o.getRotationAlignment()!==m&&o.setRotationAlignment(m),o.getPitchAlignment()!==f&&o.setPitchAlignment(f),o.getPopup()!==d&&o.setPopup(d),(0,V.createPortal)(e.children,o.getElement())})),R=function(e,t,n,i){let r=(0,c.useContext)(M),o=(0,c.useMemo)(()=>e(r),[]);return(0,c.useEffect)(()=>{let e=i||n||t,a="function"==typeof t&&"function"==typeof n?t:null,s="function"==typeof n?n:"function"==typeof t?t:null,{map:l}=r;return!l.hasControl(o)&&(l.addControl(o,null==e?void 0:e.position),a&&a(r)),()=>{s&&s(r),l.hasControl(o)&&l.removeControl(o)}},[]),o},I=(0,c.memo)((0,c.forwardRef)(function(e,t){let n=(0,c.useRef)({props:e}),i=R(t=>{let{mapLib:i}=t,r=new i.GeolocateControl(e),o=r._setupUI;return r._setupUI=e=>{r._container.hasChildNodes()||o(e)},r.on("geolocate",e=>{var t,i;null==(i=(t=n.current.props).onGeolocate)||i.call(t,e)}),r.on("error",e=>{var t,i;null==(i=(t=n.current.props).onError)||i.call(t,e)}),r.on("outofmaxbounds",e=>{var t,i;null==(i=(t=n.current.props).onOutOfMaxBounds)||i.call(t,e)}),r.on("trackuserlocationstart",e=>{var t,i;null==(i=(t=n.current.props).onTrackUserLocationStart)||i.call(t,e)}),r.on("trackuserlocationend",e=>{var t,i;null==(i=(t=n.current.props).onTrackUserLocationEnd)||i.call(t,e)}),r},{position:e.position});return n.current.props=e,(0,c.useImperativeHandle)(t,()=>i,[]),(0,c.useEffect)(()=>{j(i._container,e.style)},[e.style]),null})),D=(0,c.memo)(function(e){let t=R(t=>{let{mapLib:n}=t;return new n.NavigationControl(e)},{position:e.position});return(0,c.useEffect)(()=>{j(t._container,e.style)},[e.style]),null});function F(e,t){if(!e)throw Error(t)}let B=0,O=0,U=Promise.resolve().then(n.t.bind(n,41038,23)),N=c.forwardRef(function(e,t){return function(e,t,n){let i=(0,c.useContext)(d),[r,o]=(0,c.useState)(null),a=(0,c.useRef)(),{current:s}=(0,c.useRef)({mapLib:null,map:null});(0,c.useEffect)(()=>{let t,r=e.mapLib,l=!0;return Promise.resolve(r||n).then(n=>{if(!l)return;if(!n)throw Error("Invalid mapLib");let r="Map"in n?n:n.default;if(!r.Map)throw Error("Invalid mapLib");for(let t of T)t in e&&(r[t]=e[t]);
1let{RTLTextPlugin:u="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=e;if(u&&r.getRTLTextPluginStatus&&"unavailable"===r.getRTLTextPluginStatus()&&r.setRTLTextPlugin(u,e=>{e&&console.error(e)},!0),!r.supported||r.supported(e))e.reuseMaps&&(t=S.reuse(e,a.current)),t||(t=new S(r.Map,e,a.current)),s.map=function(e){if(!e)return null;let t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{let i=t.transform;t.transform=e.transform;let r=t.project(n);return t.transform=i,r},unproject:n=>{let i=t.transform;t.transform=e.transform;let r=t.unproject(n);return t.transform=i,r},queryTerrainElevation:(n,i)=>{let r=t.transform;t.transform=e.transform;let o=t.queryTerrainElevation(n,i);return t.transform=r,o},queryRenderedFeatures:(n,i)=>{let r=t.transform;t.transform=e.transform;let o=t.queryRenderedFeatures(n,i);return t.transform=r,o}};for(let e of function(e){let t=new Set,n=e;for(;n;){for(let i of Object.getOwnPropertyNames(n))"_"!==i[0]&&"function"==typeof e[i]&&"fire"!==i&&"setEventedParent"!==i&&t.add(i);n=Object.getPrototypeOf(n)}return Array.from(t)}(t))e in n||C.includes(e)||(n[e]=t[e].bind(t));return n}(t),s.mapLib=r,o(t),null==i||i.onMapMount(s.map,e.id);else throw Error("Map is not supported by this browser")}).catch(t=>{let{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{l=!1,t&&(null==i||i.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),A(()=>{r&&r.setProps(e)}),(0,c.useImperativeHandle)(t,()=>s.map,[r]);let l=(0,c.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return c.createElement("div",{id:e.id,ref:a,style:l},r&&c.createElement(M.Provider,{value:s},c.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}(e,t,U)}),$=function(e){let t=(0,c.useContext)(M).map.getMap(),n=(0,c.useRef)(e),[,i]=(0,c.useState)(0),r=(0,c.useMemo)(()=>e.id||"jsx-layer-".concat(B++),[]);if((0,c.useEffect)(()=>{if(t){let e=()=>i(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(r)&&t.removeLayer(r)}}},[t]),t&&t.style&&t.getLayer(r))try{!function(e,t,n,i){if(F(n.id===i.id,"layer id changed"),F(n.type===i.type,"layer type changed"),"custom"===n.type||"custom"===i.type)return;let{layout:r={},paint:o={},filter:a,minzoom:s,maxzoom:l,beforeId:u}=n;if(u!==i.beforeId&&e.moveLayer(t,u),r!==i.layout){let n=i.layout||{};for(let i in r)h(r[i],n[i])||e.setLayoutProperty(t,i,r[i]);for(let i in n)r.hasOwnProperty(i)||e.setLayoutProperty(t,i,void 0)}if(o!==i.paint){let n=i.paint||{};for(let i in o)h(o[i],n[i])||e.setPaintProperty(t,i,o[i]);for(let i in n)o.hasOwnProperty(i)||e.setPaintProperty(t,i,void 0)}h(a,i.filter)||e.setFilter(t,a),(s!==i.minzoom||l!==i.maxzoom)&&e.setLayerZoomRange(t,s,l)}(t,r,e,n.current)}catch(e){console.warn(e)}else if(t.style&&t.style._loaded&&(!("source"in e)||t.getSource(e.source))){let n={...e,id:r};delete n.beforeId,t.addLayer(n,e.beforeId)}return n.current=e,null},H=function(e){let t=(0,c.useContext)(M).map.getMap(),n=(0,c.useRef)(e),[,i]=(0,c.useState)(0),r=(0,c.useMemo)(()=>e.id||"jsx-source-".concat(O++),[]);(0,c.useEffect)(()=>{if(t){let e=()=>setTimeout(()=>i(e=>e+1),0);return t.on("styledata",e),e(),()=>{var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(r)){let e=null==(n=t.getStyle())?void 0:n.layers;if(e)for(let n of e)n.source===r&&t.removeLayer(n.id);t.removeSource(r)}}}},[t]);let o=t&&t.style&&t.getSource(r);return o?!function(e,t,n){F(t.id===n.id,"source id changed"),F(t.type===n.type,"source type changed");let i="",r=0;for(let e in t)"children"!==e&&"id"!==e&&!h(n[e],t[e])&&(i=e,r++);if(!r)return;let o=t.type;if("geojson"===o)e.setData(t.data);else if("image"===o)e.updateImage({url:t.url,coordinates:t.coordinates});else if("setCoordinates"in e&&1===r&&"coordinates"===i)e.setCoordinates(t.coordinates);else if("setUrl"in e)switch(i){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn("Unable to update <Source> prop: ".concat(i))}(o,e,n.current):o=function(e,t,n){if(e.style&&e.style._loaded){let i={...n};return delete i.id,delete i.children,e.addSource(t,i),e.getSource(t)}return null}(t,r,e),n.current=e,o&&c.Children.map(e.children,e=>e&&(0,c.cloneElement)(e,{source:r}))||null};var W=n(95155),Z=n(50625),q=n(13473),Y=n(41038),X=n(36576),G=n(30271),K=n(80207),Q=n(65581),J=n(95704);let ee=(void 0===J||J.env,"production"),et=1/60*1e3,en="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ei="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(en()),et),er={delta:0,timestamp:0},eo=!0,ea=!1,es=!1,el=["read","update","preRender","render","postRender"],eu=el.reduce((e,t)=>
1(e[t]=function(e){let t=[],n=[],i=0,r=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&r,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&r&&(i=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(r){o=!0;return}if(r=!0,[t,n]=[n,t],n.length=0,i=t.length)for(let n=0;n<i;n++){let i=t[n];i(l),a.has(i)&&(s.schedule(i),e())}r=!1,o&&(o=!1,s.process(l))}};return s}(()=>ea=!0),e),{}),ep=el.reduce((e,t)=>{let n=eu[t];return e[t]=(e,t=!1,i=!1)=>(ea||ef(),n.schedule(e,t,i)),e},{}),ec=el.reduce((e,t)=>(e[t]=eu[t].cancel,e),{}),ed=el.reduce((e,t)=>(e[t]=()=>eu[t].process(er),e),{}),eh=e=>eu[e].process(er),em=e=>{ea=!1,er.delta=eo?et:Math.max(Math.min(e-er.timestamp,40),1),er.timestamp=e,es=!0,el.forEach(eh),es=!1,ea&&(eo=!1,ei(em))},ef=()=>{ea=!0,eo=!0,es||ei(em)},eg="undefined"!=typeof document,ey=eg?c.useLayoutEffect:c.useEffect;function ev(){let e=(0,c.useRef)(!1);return ey(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ex=(0,c.createContext)(null);function e_(e){let t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}class eb extends c.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ew({children:e,isPresent:t}){let n=(0,c.useId)(),i=(0,c.useRef)(null),r=(0,c.useRef)({width:0,height:0,top:0,left:0});return(0,c.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=r.current;if(t||!i.current||!e||!o)return;i.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${o}px !important; 6 top: ${a}px !important; 7 left: ${s}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[t]),c.createElement(eb,{isPresent:t,childRef:i,sizeRef:r},c.cloneElement(e,{ref:i}))}let ek=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:o,mode:a})=>{let s=e_(eE),l=(0,c.useId)(),u=(0,c.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;i&&i()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,c.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),c.useEffect(()=>{n||s.size||!i||i()},[n]),"popLayout"===a&&(e=c.createElement(ew,{isPresent:n},e)),c.createElement(ex.Provider,{value:u},e)};function eE(){return new Map}let eP=(0,c.createContext)({});function eS(e){return(0,c.useEffect)(()=>()=>e(),[])}let eC=new Set;function eA(e,t,n){e||eC.has(t)||(console.warn(t),n&&console.warn(n),eC.add(t))}let eT=e=>e.key||"",eM=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:o=!0,mode:a="sync"})=>{r&&(a="wait",eA(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=ev(),[t,n]=(0,c.useState)(0),i=(0,c.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,c.useCallback)(()=>ep.postRender(i),[i]),t]}(),l=(0,c.useContext)(eP).forceRender;l&&(s=l);let u=ev(),p=function(e){let t=[];return c.Children.forEach(e,e=>{(0,c.isValidElement)(e)&&t.push(e)}),t}(e),d=p,h=new Set,m=(0,c.useRef)(d),f=(0,c.useRef)(new Map).current,g=(0,c.useRef)(!0);if(ey(()=>{g.current=!1,p.forEach(e=>{let t=eT(e);f.set(t,e)}),m.current=d}),eS(()=>{g.current=!0,f.clear(),h.clear()}),g.current)return c.createElement(c.Fragment,null,d.map(e=>c.createElement(ek,{key:eT(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let y=m.current.map(eT),v=p.map(eT),x=y.length;for(let e=0;e<x;e++){let t=y[e];-1===v.indexOf(t)&&h.add(t)}return"wait"===a&&h.size&&(d=[]),h.forEach(e=>{if(-1!==v.indexOf(e))return;let n=f.get(e);if(!n)return;let r=y.indexOf(e);d.splice(r,0,c.createElement(ek,{key:eT(n),isPresent:!1,onExitComplete:()=>{f.delete(e),h.delete(e);let t=m.current.findIndex(t=>t.key===e);if(m.current.splice(t,1),!h.size){if(m.current=p,!1===u.current)return;s(),i&&i()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return h.has(t)?e:c.createElement(ek,{key:eT(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==ee&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),c.createElement(c.Fragment,null,h.size?d:d.map(e=>(0,c.cloneElement)(e)))},eV=(0,c.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ez=(0,c.createContext)({}),ej=(0,c.createContext)({strict:!1});function eL(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function eR(e){return"string"==typeof e||Array.isArray(e)}function eI(e){return"object"==typeof e&&"function"==typeof e.start}let eD=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function eF(e){return eI(e.animate)||eD.some(t=>eR(e[t]))}function eB(e){return!!(eF(e)||e.variants)}function eO(e){return Array.isArray(e)?e.join(" "):e}let eU=e=>({isEnabled:t=>e.some(e=>!!t[e])}),eN={measureLayout:eU(["layout","layoutId","drag"]),animation:eU(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:eU(["exit"]),drag:eU(["drag","dragControls"]),focus:eU(["whileFocus"]),hover:eU(["whileHover","onHoverStart","onHoverEnd"]),tap:eU(["whileTap","onTap","onTapStart","onTapCancel"]),pan:eU(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:eU(["whileInView","onViewportEnter","onViewportLeave"])},e$={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eH=1;class eW extends c.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let eZ=(0,c.createContext)({}),eq=Symbol.for("motionComponentSymbol"),eY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eX(e){if("string"!=typeof e||e.includes("-"));else if(eY.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let eG={},eK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eQ=new Set(eK);function eJ(e,{layout:t,layoutId:n}){return eQ.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!eG[e]||"opacity"===e)}let e0=e=>!!(null==e?void 0:e.getVelocity),e1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e5=(e,t)=>eK.indexOf(e)-eK.indexOf(t);function e2(e){return e.startsWith("--")}let e3=(e,t)=>
9t&&"number"==typeof e?t.transform(e):e,e6=(e,t,n)=>Math.min(Math.max(n,e),t),e8={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},e7={...e8,transform:e=>e6(0,1,e)},e9={...e8,default:1},e4=e=>Math.round(1e5*e)/1e5,te=/(-)?([\d]*\.?[\d])+/g,tt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ti(e){return"string"==typeof e}let tr=e=>({test:t=>ti(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),to=tr("deg"),ta=tr("%"),ts=tr("px"),tl=tr("vh"),tu=tr("vw"),tp={...ta,parse:e=>ta.parse(e)/100,transform:e=>ta.transform(100*e)},tc={...e8,transform:Math.round},td={borderWidth:ts,borderTopWidth:ts,borderRightWidth:ts,borderBottomWidth:ts,borderLeftWidth:ts,borderRadius:ts,radius:ts,borderTopLeftRadius:ts,borderTopRightRadius:ts,borderBottomRightRadius:ts,borderBottomLeftRadius:ts,width:ts,maxWidth:ts,height:ts,maxHeight:ts,size:ts,top:ts,right:ts,bottom:ts,left:ts,padding:ts,paddingTop:ts,paddingRight:ts,paddingBottom:ts,paddingLeft:ts,margin:ts,marginTop:ts,marginRight:ts,marginBottom:ts,marginLeft:ts,rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:e9,scaleX:e9,scaleY:e9,scaleZ:e9,skew:to,skewX:to,skewY:to,distance:ts,translateX:ts,translateY:ts,translateZ:ts,x:ts,y:ts,z:ts,perspective:ts,transformPerspective:ts,opacity:e7,originX:tp,originY:tp,originZ:ts,zIndex:tc,fillOpacity:e7,strokeOpacity:e7,numOctaves:tc};function th(e,t,n,i){let{style:r,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,p=!1,c=!0;for(let e in t){let n=t[e];if(e2(e)){o[e]=n;continue}let i=td[e],d=e3(n,i);if(eQ.has(e)){if(u=!0,a[e]=d,s.push(e),!c)continue;n!==(i.default||0)&&(c=!1)}else e.startsWith("origin")?(p=!0,l[e]=d):r[e]=d}if(!t.transform&&(u||i?r.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},r,o){let a="";for(let n of(t.sort(e5),t))a+=`${e1[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,r?"":a):i&&r&&(a="none"),a}(e,n,c,i):r.transform&&(r.transform="none")),p){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;r.transformOrigin=`${e} ${t} ${n}`}}let tm=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function tf(e,t,n){for(let i in t)e0(t[i])||eJ(i,n)||(e[i]=t[i])}let tg=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function ty(e){return tg.has(e)}let tv=e=>!ty(e);try{!function(e){e&&(tv=t=>t.startsWith("on")?!ty(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}function tx(e,t,n){return"string"==typeof e?e:ts.transform(t+n*e)}let t_={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function tw(e,{attrX:t,attrY:n,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,p,c){if(th(e,l,u,c),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h,dimensions:m}=e;d.transform&&(m&&(h.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==r||h.transform)&&(h.transformOrigin=function(e,t,n){let i=tx(t,e.x,e.width),r=tx(n,e.y,e.height);return`${i} ${r}`}(m,void 0!==i?i:.5,void 0!==r?r:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?t_:tb;e[o.offset]=ts.transform(-i);let a=ts.transform(t),s=ts.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let tk=()=>({...tm(),attrs:{}}),tE=e=>"string"==typeof e&&"svg"===e.toLowerCase(),tP=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tS(e,{style:t,vars:n},i,r){for(let o in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}let tC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tA(e,t,n,i){for(let n in tS(e,t,void 0,i),t.attrs)e.setAttribute(tC.has(n)?n:tP(n),t.attrs[n])}function tT(e){let{style:t}=e,n={};for(let i in t)(e0(t[i])||eJ(i,e))&&(n[i]=t[i]);return n}function tM(e){let t=tT(e);for(let n in e)e0(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function tV(e,t,n,i={},r={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,r)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,r)),t}let tz=e=>Array.isArray(e),tj=e=>tz(e)?e[e.length-1]||0:e;function tL(e){let t=e0(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let tR=e=>(t,n)=>{let i=(0,c.useContext)(ez),r=(0,c.useContext)(ex),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){let a={latestValues:function(e,t,n,i){let r={},o=i(e);for(let e in o)r[e]=tL(o[e]);let{initial:a,animate:s}=e,l=eF(e),u=eB(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let p=!!n&&!1===n.initial,c=(p=p||!1===a)?s:a;return c&&"boolean"!=typeof c&&!eI(c)&&(Array.isArray(c)?c:[c]).forEac
9h(t=>{let n=tV(e,t);if(!n)return;let{transitionEnd:i,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=p?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let e in i)r[e]=i[e]}),r}(i,r,o,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a})(e,t,i,r);return n?o():e_(o)},tI={useVisualState:tR({scrapeMotionValuesFromProps:tM,createRenderState:tk,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}tw(n,i,{enableHardwareAcceleration:!1},tE(t.tagName),e.transformTemplate),tA(t,n)}})},tD={useVisualState:tR({scrapeMotionValuesFromProps:tT,createRenderState:tm})};function tF(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tB(e,t,n,i){(0,c.useEffect)(()=>{let r=e.current;if(n&&r)return tF(r,t,n,i)},[e,t,n,i])}function tO(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?"mouse"===e.pointerType:e instanceof MouseEvent}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(i||(i={}));let tU={pageX:0,pageY:0};function tN(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||tU;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let t$=(e,t=!1)=>{let n=t=>e(t,tN(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},tH={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tW={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tZ(e){if(eg&&null===window.onpointerdown);else if(eg&&null===window.ontouchstart)return tW[e];else if(eg&&null===window.onmousedown)return tH[e];return e}function tq(e,t,n,i){return tF(e,tZ(t),t$(n,"pointerdown"===t),i)}function tY(e,t,n,i){return tB(e,tZ(t),n&&t$(n,"pointerdown"===t),i)}function tX(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let tG=tX("dragHorizontal"),tK=tX("dragVertical");function tQ(e){let t=!1;if("y"===e)t=tK();else if("x"===e)t=tG();else{let e=tG(),n=tK();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function tJ(){let e=tQ(!0);return!e||(e(),!1)}function t0(e,t,n){return(r,o)=>{!(!tO(r)||tJ())&&(e.animationState&&e.animationState.setActive(i.Hover,t),n&&n(r,o))}}let t1=(e,t)=>!!t&&(e===t||t1(e,t.parentElement)),t5=(e,t)=>n=>t(e(n)),t2=(...e)=>e.reduce(t5),t3=new WeakMap,t6=new WeakMap,t8=e=>{let t=t3.get(e.target);t&&t(e)},t7=e=>{e.forEach(t8)},t9={some:0,all:1},t4=e=>t=>(e(t),null),ne={inView:t4(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){let a=(0,c.useRef)({hasEnteredView:!1,isInView:!1}),s=!!(t||n||r);o.once&&a.current.hasEnteredView&&(s=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,c.useEffect)(()=>{e&&r&&("production"!==ee&&eA(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(i.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:o,amount:a="some",once:s}){(0,c.useEffect)(()=>{if(!e||!n.current)return;let l={root:null==r?void 0:r.current,rootMargin:o,threshold:"number"==typeof a?a:t9[a]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;t6.has(n)||t6.set(n,{});let i=t6.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(t7,{root:e,...t})),i[r]}(t);return t3.set(e,n),i.observe(e),()=>{t3.delete(e),i.unobserve(e)}}(n.current,l,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,s&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(i.InView,r);let o=n.getProps(),a=r?o.onViewportEnter:o.onViewportLeave;a&&a(e)})},[e,r,o,a])})(s,a.current,e,o)}
9),tap:t4(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){let a=e||t||n||r,s=(0,c.useRef)(!1),l=(0,c.useRef)(null),u={passive:!(t||e||n||f)};function p(){l.current&&l.current(),l.current=null}function d(){return p(),s.current=!1,o.animationState&&o.animationState.setActive(i.Tap,!1),!tJ()}function h(t,i){d()&&(t1(o.current,t.target)?e&&e(t,i):n&&n(t,i))}function m(e,t){d()&&n&&n(e,t)}function f(e,n){p(),!s.current&&(s.current=!0,l.current=t2(tq(window,"pointerup",h,u),tq(window,"pointercancel",m,u)),o.animationState&&o.animationState.setActive(i.Tap,!0),t&&t(e,n))}tY(o,"pointerdown",a?f:void 0,u),eS(p)}),focus:t4(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;tB(t,"focus",e?()=>{n&&n.setActive(i.Focus,!0)}:void 0),tB(t,"blur",e?()=>{n&&n.setActive(i.Focus,!1)}:void 0)}),hover:t4(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:i}){tY(i,"pointerenter",e||n?t0(i,!0,e):void 0,{passive:!e}),tY(i,"pointerleave",t||n?t0(i,!1,t):void 0,{passive:!t})})};function nt(){let e=(0,c.useContext)(ex);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,r=(0,c.useId)();return(0,c.useEffect)(()=>i(r),[]),!t&&n?[!1,()=>n&&n(r)]:[!0]}function nn(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let ni=e=>/^\-?\d*\.?\d+$/.test(e),nr=e=>/^0[^.\s]+$/.test(e);function no(e,t){-1===e.indexOf(t)&&e.push(t)}function na(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class ns{constructor(){this.subscriptions=[]}add(e){return no(this.subscriptions,e),()=>na(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function nl(e,t){return t?1e3/t*e:0}class nu{constructor(e,t={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:i}=er;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,ep.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ep.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){return this.events[e]||(this.events[e]=new ns),this.events[e].add(t)}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e){this.passiveEffect=e}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=e,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?nl(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function np(e,t){return new nu(e,t)}let nc=(e,t)=>n=>!!(ti(n)&&tn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nd=(e,t,n)=>i=>{if(!ti(i))return i;let[r,o,a,s]=i.match(te);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},nh={...e8,transform:e=>Math.round(e6(0,255,e))},nm={test:nc("rgb","red"),parse:nd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+nh.transform(e)+", "+nh.transform(t)+", "+nh.transform(n)+", "+e4(e7.transform(i))+")"},nf={test:nc("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alph
9a:r?parseInt(r,16)/255:1}},transform:nm.transform},ng={test:nc("hsl","hue"),parse:nd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+ta.transform(e4(t))+", "+ta.transform(e4(n))+", "+e4(e7.transform(i))+")"},ny={test:e=>nm.test(e)||nf.test(e)||ng.test(e),parse:e=>nm.test(e)?nm.parse(e):ng.test(e)?ng.parse(e):nf.parse(e),transform:e=>ti(e)?e:e.hasOwnProperty("red")?nm.transform(e):ng.transform(e)},nv="${c}",nx="${n}";function n_(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,i=0,r=e.match(tt);r&&(n=r.length,e=e.replace(tt,nv),t.push(...r.map(ny.parse)));let o=e.match(te);return o&&(i=o.length,e=e.replace(te,nx),t.push(...o.map(e8.parse))),{values:t,numColors:n,numNumbers:i,tokenised:e}}function nb(e){return n_(e).values}function nw(e){let{values:t,numColors:n,tokenised:i}=n_(e),r=t.length;return e=>{let t=i;for(let i=0;i<r;i++)t=t.replace(i<n?nv:nx,i<n?ny.transform(e[i]):e4(e[i]));return t}}let nk=e=>"number"==typeof e?0:e,nE={test:function(e){var t,n;return isNaN(e)&&ti(e)&&((null==(t=e.match(te))?void 0:t.length)||0)+((null==(n=e.match(tt))?void 0:n.length)||0)>0},parse:nb,createTransformer:nw,getAnimatableNone:function(e){let t=nb(e);return nw(e)(t.map(nk))}},nP=new Set(["brightness","contrast","saturate","opacity"]);function nS(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(te)||[];if(!i)return e;let r=n.replace(i,""),o=+!!nP.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let nC=/([a-z-]*)\(.*?\)/g,nA={...nE,getAnimatableNone:e=>{let t=e.match(nC);return t?t.map(nS).join(" "):e}},nT={...td,color:ny,backgroundColor:ny,outlineColor:ny,fill:ny,stroke:ny,borderColor:ny,borderTopColor:ny,borderRightColor:ny,borderBottomColor:ny,borderLeftColor:ny,filter:nA,WebkitFilter:nA},nM=e=>nT[e];function nV(e,t){var n;let i=nM(e);return i!==nA&&(i=nE),null==(n=i.getAnimatableNone)?void 0:n.call(i,t)}let nz=e=>t=>t.test(e),nj=[e8,ts,ta,to,tu,tl,{test:e=>"auto"===e,parse:e=>e}],nL=e=>nj.find(nz(e)),nR=[...nj,ny,nE],nI=e=>nR.find(nz(e));function nD(e,t,n){let i=e.getProps();return tV(i,t,void 0!==n?n:i.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function nF(e){return!!(e0(e)&&e.add)}let nB="data-"+tP("framerAppearId");var nO=function(){},nU=function(){};let nN=e=>1e3*e,n$={current:!1},nH=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nW=e=>t=>1-e(1-t),nZ=e=>e*e,nq=nW(nZ),nY=nH(nZ),nX=(e,t,n)=>-n*e+n*t+e;function nG(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}let nK=(e,t,n)=>{let i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},nQ=[nf,nm,ng];function nJ(e){let t=nQ.find(t=>t.test(e));nU(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===ng&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,a=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=nG(s,i,e+1/3),o=nG(s,i,e),a=nG(s,i,e-1/3)}else r=o=a=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}let n0=(e,t)=>{let n=nJ(e),i=nJ(t),r={...n};return e=>(r.red=nK(n.red,i.red,e),r.green=nK(n.green,i.green,e),r.blue=nK(n.blue,i.blue,e),r.alpha=nX(n.alpha,i.alpha,e),nm.transform(r))};function n1(e,t){return"number"==typeof e?n=>nX(e,t,n):ny.test(e)?n0(e,t):n3(e,t)}let n5=(e,t)=>{let n=[...e],i=n.length,r=e.map((e,n)=>n1(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}},n2=(e,t)=>{let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=n1(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}},n3=(e,t)=>{let n=nE.createTransformer(t),i=n_(e),r=n_(t);return i.numColors===r.numColors&&i.numNumbers>=r.numNumbers?t2(n5(i.values,r.values),n):(nO(!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.`),n=>`${n>0?t:e}`)},n6=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},n8=(e,t)=>n=>nX(e,t,n);function n7(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;nU(o===t.length,"Both input and output ranges must be the same length"),nU(!i||!Array.isArray(i)||i.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let i=[],r=n||function(e){if("number"==typeof e);else if("string"==typeof e)if(ny.test(e))return n0;else return n3;else if(Array.isArray(e))return n5;else if("object"==typeof e)return n2;return n8}(e[0]),o=e.length-1;for(let n=0;n<o;
9n++){let o=r(e[n],e[n+1]);t&&(o=t2(Array.isArray(t)?t[n]:t,o)),i.push(o)}return i}(t,i,r),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let i=n6(e[n],e[n+1],t);return a[n](i)};return n?t=>l(e6(e[0],e[o-1],t)):l}let n9=e=>e,n4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ie(e,t,n,i){return e===t&&n===i?n9:r=>0===r||1===r?r:n4(function(e,t,n,i,r){let o,a,s=0;do(o=n4(a=t+(n-t)/2,i,r)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(r,0,1,e,n),t,i)}let it=e=>1-Math.sin(Math.acos(e)),ii=nW(it),ir=nH(ii),io=ie(.33,1.53,.69,.99),ia=nW(io),is=nH(ia),il={linear:n9,easeIn:nZ,easeInOut:nY,easeOut:nq,circIn:it,circInOut:ir,circOut:ii,backIn:ia,backInOut:is,backOut:io,anticipate:e=>(e*=2)<1?.5*ia(e):.5*(2-Math.pow(2,-10*(e-1)))},iu=e=>{if(Array.isArray(e)){nU(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return ie(t,n,i,r)}return"string"==typeof e?(nU(void 0!==il[e],`Invalid easing type '${e}'`),il[e]):e};function ip({keyframes:e,ease:t=nY,times:n,duration:i=300}){var r;e=[...e];let o=ip[0],a=Array.isArray(t)&&"number"!=typeof t[0]?t.map(iu):iu(t),s={done:!1,value:o},l=(r=n&&n.length===ip.length?n:function(e){let t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(e),r.map(e=>e*i));function u(){var t;return n7(l,e,{ease:Array.isArray(a)?a:(t=e).map(()=>a||nY).splice(0,t.length-1)})}let p=u();return{next:e=>(s.value=p(e),s.done=e>=i,s),flipTarget:()=>{e.reverse(),p=u()}}}function ic(e,t){return e*Math.sqrt(1-t*t)}let id=["duration","bounce"],ih=["stiffness","damping","mass"];function im(e,t){return t.some(t=>void 0!==e[t])}function ig({keyframes:e,restSpeed:t=2,restDelta:n=.01,...i}){let r=e[0],o=e[e.length-1],a={done:!1,value:r},{stiffness:s,damping:l,mass:u,velocity:p,duration:c,isResolvedFromDuration:d}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!im(e,ih)&&im(e,id)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o;nO(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=e6(.05,1,a),e=e6(.01,10,e/1e3),a<1?(r=t=>{let i=t*a,r=i*e;return .001-(i-n)/ic(t,a)*Math.exp(-r)},o=t=>{let i=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-i),l=ic(Math.pow(t,2),a);return(i*n+n-o)*s*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(i),h=iy,m=p?-(p/1e3):0,f=l/(2*Math.sqrt(s*u));function g(){let e=o-r,t=Math.sqrt(s/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-r)/100,.4)),f<1){let n=ic(t,f);h=i=>o-Math.exp(-f*t*i)*((m+f*t*e)/n*Math.sin(n*i)+e*Math.cos(n*i))}else if(1===f)h=n=>o-Math.exp(-t*n)*(e+(m+t*e)*n);else{let n=t*Math.sqrt(f*f-1);h=i=>{let r=Math.exp(-f*t*i),a=Math.min(n*i,300);return o-r*((m+f*t*e)*Math.sinh(a)+n*e*Math.cosh(a))/n}}}return g(),{next:e=>{let i=h(e);if(d)a.done=e>=c;else{let r=m;if(0!==e)if(f<1){let t=Math.max(0,e-5);r=nl(i-h(t),e-t)}else r=0;let s=Math.abs(o-i)<=n;a.done=Math.abs(r)<=t&&s}return a.value=a.done?o:i,a},flipTarget:()=>{m=-m,[r,o]=[o,r],g()}}}ig.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iy=e=>0,iv={decay:function({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:o}){let a=e[0],s={done:!1,value:a},l=n*t,u=a+l,p=void 0===o?u:o(u);return p!==u&&(l=p-a),{next:e=>{let t=-l*Math.exp(-e/i);return s.done=!(t>r||t<-r),s.value=s.done?p:p+t,s},flipTarget:()=>{}}},keyframes:ip,tween:ip,spring:ig};function ix(e,t,n=0){return e-t-n}let i_=e=>{let t=({delta:t})=>e(t);return{start:()=>ep.update(t,!0),stop:()=>ec.update(t)}};function ib({duration:e,driver:t=i_,elapsed:n=0,repeat:i=0,repeatType:r="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:p,onRepeat:c,onUpdate:d,type:h="keyframes",...m}){var f;let g,y,v,x=0,_=e,b=!1,w=!0,k=iv[a.length>2?"keyframes":h],E=a[0],P=a[a.length-1];(null==(f=k.needsInterpolation)?void 0:f.call(k,E,P))&&(v=n7([0,100],[E,P],{clamp:!1}),a=[0,100]);let S=k({...m,duration:e,keyframes:a});return s&&(l&&l(),(g=t(function(e){if(w||(e=-e),n+=e,!b){let e=S.next(Math.max(0,n));y=e.value,v&&(y=v(y)),b=w?e.done:n<=0}if(d&&d(y),b)if(0===x&&(_=void 0!==_?_:n),x<i){var t,a;t=n,a=_,(w?t>=a+o:t<=-o)&&(x++,"reverse"===r?n=function(e,t=0,n=0,i=!0){return i?ix(t+-e,t,n):t-(e-t)+n}(n,_,o,w=x%2==0):(n=ix(n,_,o),"mirror"===r&&S.flipTarget()),b=!1,c&&c())}else g.stop(),p&&p()})).start()),{stop:()=>{u&&u(),g.stop()},sample:e=>S.next(Math.max(0,e))}}let iw=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,ik={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iw([0,.65,.55,1]),circOut:iw([.55,0,1,.45]),backIn:iw([.31,.01,.66,-.59]),backOut:iw([.33,1.53,.69,.99])};function iE(e,t){let n=performance.now(),i=({timestamp:r})=>{let o=r-n;o>=t&&(ec.read(i),e(o-t))};return ep.read(i,!0),()=>ec.read(i)}let iP=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),iS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),iC=()=>({type:"keyframes",ease:"linear",duration:.3}),iA={type:"keyframes",duration:.8},iT={x:iP,y:iP,z:iP,rotate:iP,rotateX:iP,rotateY:iP,rotateZ:iP,scaleX:iS,scaleY:iS,scale:iS,opacity:iC,backgroundColor:iC,color:iC,default:iS},iM=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&nE.test(t)&&!t.startsWith("url("));function iV(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function iz(e){return"number"==typeof e?0:nV("",e)}function ij(e,t){return e[t]||e.default||e}let iL={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},iR={},iI={};for(let e in iL)iI[e]=()=>(void 0===iR[e]&&(iR[e]=iL[e]()),iR[e]);let iD=new Set(["opacity"]),iF=(e,t,n,i={})=>r=>{let o=ij(i,e)||{},a=o.delay||i.delay||0,{elapsed:s=0}=i;s-=nN(a);let l=function(e,t,n,i){let r=iM(t,n),o=void 0!==i.from?i.from:e.get();return("none"===o&&r&&"string"==typeof n?o=nV(t,n):iV(o)&&"string"==typeof n?o=iz(n):!Array.isArray(n)&&iV(n)&&"string"==typeof o&&(n=iz(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(t,e,n,o),u=l[0],p=l[l.length-1],c=iM(e,u),d=iM(e,p);nO(c===d,`You are trying to animate ${e} from "${u}" to "${p}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${p} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),...o,elapsed:s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(!c||!d||n$.current||!1===o.type)return function({keyframes:e,elapsed:t,onUpdate:n,onComplete:i}){let r=()=>(n&&n(e[e.length-1]),i&&i(),()=>{});
9return t?iE(r,-t):r()}(h);if("inertia"===o.type){let e=function({keyframes:e,velocity:t=0,min:n,max:i,power:r=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:p,onUpdate:c,onComplete:d,onStop:h}){let m,f=e[0];function g(e){return void 0!==n&&e<n||void 0!==i&&e>i}function y(e){return void 0===n?i:void 0===i||Math.abs(n-e)<Math.abs(i-e)?n:i}function v(e){null==m||m.stop(),m=ib({keyframes:[0,1],velocity:0,...e,driver:p,onUpdate:t=>{var n;null==c||c(t),null==(n=e.onUpdate)||n.call(e,t)},onComplete:d,onStop:h})}function x(e){v({type:"spring",stiffness:a,damping:s,restDelta:l,...e})}if(g(f))x({velocity:t,keyframes:[f,y(f)]});else{let e,i,a=r*t+f;void 0!==u&&(a=u(a));let s=y(a),p=s===n?-1:1;v({type:"decay",keyframes:[f,0],velocity:t,timeConstant:o,power:r,restDelta:l,modifyTarget:u,onUpdate:g(a)?n=>{e=i,i=n,t=nl(n-e,er.delta),(1===p&&n>s||-1===p&&n<s)&&x({keyframes:[n,s],velocity:t})}:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(h);return()=>e.stop()}!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(o)&&(h={...h,...((e,{keyframes:t})=>t.length>2?iA:(iT[e]||iT.default)(t[1]))(e,h)}),h.duration&&(h.duration=nN(h.duration)),h.repeatDelay&&(h.repeatDelay=nN(h.repeatDelay));let m=t.owner,f=m&&m.current;if(iI.waapi()&&iD.has(e)&&!h.repeatDelay&&"mirror"!==h.repeatType&&0!==h.damping&&m&&f instanceof HTMLElement&&!m.getProps().onUpdate)return function(e,t,{onUpdate:n,onComplete:i,...r}){var o;let{keyframes:a,duration:s=.3,elapsed:l=0,ease:u}=r;if("spring"===r.type||!(!(o=r.ease)||Array.isArray(o)||"string"==typeof o&&ik[o])){let e=ib(r),t={done:!1,value:a[0]},n=[],i=0;for(;!t.done;
9)t=e.sample(i),n.push(t.value),i+=10;a=n,s=i-10,u="linear"}let p=function(e,t,n,{delay:i=0,duration:r,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:i,duration:r,easing:function(e){if(e)return Array.isArray(e)?iw(e):ik[e]}(s),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,a,{...r,delay:-l,duration:s,ease:u});return p.onfinish=()=>{e.set(a[a.length-1]),i&&i()},()=>{let{currentTime:t}=p;if(t){let n=ib(r);e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}ep.update(()=>p.cancel())}}(t,e,h);{let e=ib(h);return()=>e.stop()}};function iB(e,t,n={}){var i;let r=nD(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);let a=r?()=>iO(e,r,n):()=>Promise.resolve(),s=(null==(i=e.variantChildren)?void 0:i.size)?(i=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,i=0,r=1,o){let a=[],s=(e.variantChildren.size-1)*i,l=1===r?(e=0)=>e*i:(e=0)=>s-e*i;return Array.from(e.variantChildren).sort(iU).forEach((e,i)=>{a.push(iB(e,t,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+i,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 iO(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");i&&(a=i);let p=[],c=r&&(null==(o=e.animationState)?void 0:o.getState()[r]);for(let t in l){let i=e.getValue(t),r=l[t];if(!i||void 0===r||c&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(c,t))continue;let o={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&eQ.has(t)&&(o={...o,type:!1,delay:0}),!i.hasAnimated){let n=e.getProps()[nB];n&&(o.elapsed=function(e,t){let n,{MotionAppearAnimations:i}=window,r=(n=eQ.has(t)?"transform":t,`${e}: ${n}`),o=i&&i.get(r);return o?(ep.render(()=>{try{o.cancel(),i.delete(r)}catch(e){}}),o.currentTime||0):0}(n,t))}let s=i.start(iF(t,i,r,o));nF(u)&&(u.add(t),s=s.then(()=>u.remove(t))),p.push(s)}return Promise.all(p).then(()=>{s&&function(e,t){let n=nD(e,t),{transitionEnd:i={},transition:r={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...i}){let n=tj(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,np(n))}}(e,s)})}function iU(e,t){return e.sortNodePosition(t)}let iN=[i.Animate,i.InView,i.Focus,i.Hover,i.Tap,i.Drag,i.Exit],i$=[...iN].reverse(),iH=iN.length;function iW(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iZ={animation:t4(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>iB(e,t,n)));else if("string"==typeof t)i=iB(e,t,n);else{let r="function"==typeof t?nD(e,t,n.custom):t;i=iO(e,r,n)}return i.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[i.Animate]:iW(!0),[i.InView]:iW(),[i.Hover]:iW(),[i.Tap]:iW(),[i.Drag]:iW(),[i.Focus]:iW(),[i.Exit]:iW()},r=!0,o=(t,n)=>{let i=nD(e,n);if(i){let{transition:e,transitionEnd:n,...r}=i;t={...t,...r,...n}}return t};function a(i,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],p=new Set,c={},d=1/0;for(let t=0;t<iH;t++){var h,m;let f=i$[t],g=n[f],y=void 0!==s[f]?s[f]:l[f],v=eR(y),x=f===a?g.isActive:null;!1===x&&(d=t);let _=y===l[f]&&y!==s[f]&&v;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||eI(y)||"boolean"==typeof y)continue;let b=(h=g.prevProp,"string"==typeof(m=y)?m!==h:!!Array.isArray(m)&&!nn(m,h)),w=b||f===a&&g.isActive&&!_&&v||t>d&&v,k=Array.isArray(y)?y:[y],E=k.reduce(o,{});!1===x&&(E={});let{prevResolvedValues:P={}}=g,S={...P,...E},C=e=>{w=!0,p.delete(e),g.needsAnimating[e]=!0};for(let e in S){let t=E[e],n=P[e];c.hasOwnProperty(e)||(t!==n?tz(t)&&tz(n)?!nn(t,n)||b?C(e):g.protectedKeys[e]=!0:void 0!==t?C(e):p.add(e):void 0!==t&&p.has(e)?C(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(c={...c,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!_&&u.push(...k.map(e=>({animation:e,options:{type:f,...i}})))}if(p.size){let t={};p.forEach(n=>{let i=e.getBaseTarget(n);void 0!==i&&(t[n]=i)}),u.push({animation:t})}let f=!!u.length;return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):Promise.resolve()}
9return{animateChanges:a,setActive:function(t,i,r){var o;if(n[t].isActive===i)return Promise.resolve();null==(o=e.variantChildren)||o.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)}),n[t].isActive=i;let s=a(r,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),eI(t)&&(0,c.useEffect)(()=>t.subscribe(e),[t])}),exit:t4(e=>{let{custom:t,visualElement:n}=e,[r,o]=nt(),a=(0,c.useContext)(ex);(0,c.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(i.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(o)},[r])})},iq=(e,t)=>Math.abs(e-t);class iY{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iK(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(iq(e.x,t.x)**2+iq(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=er;this.history.push({...i,timestamp:r});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=iX(t,this.transformPagePoint),tO(e)&&0===e.buttons)return void this.handlePointerUp(e,t);ep.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i}=this.handlers,r=iK(iX(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,r),i&&i(e,r)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let i=iX(tN(e),this.transformPagePoint),{point:r}=i,{timestamp:o}=er;this.history=[{...r,timestamp:o}];let{onSessionStart:a}=t;a&&a(e,iK(i,this.history)),this.removeListeners=t2(tq(window,"pointermove",this.handlePointerMove),tq(window,"pointerup",this.handlePointerUp),tq(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ec.update(this.updatePoint)}}function iX(e,t){return t?{point:t(e.point)}:e}function iG(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iK({point:e},t){return{point:e,delta:iG(e,iQ(t)),offset:iG(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=iQ(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>nN(.1)));)n--;if(!i)return{x:0,y:0};let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function iQ(e){return e[e.length-1]}function iJ(e){return e.max-e.min}function i0(e,t=0,n=.01){return Math.abs(e-t)<=n}function i1(e,t,n,i=.5){e.origin=i,e.originPoint=nX(t.min,t.max,e.origin),e.scale=iJ(n)/iJ(t),(i0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nX(n.min,n.max,e.origin)-e.originPoint,(i0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function i5(e,t,n,i){i1(e.x,t.x,n.x,null==i?void 0:i.originX),i1(e.y,t.y,n.y,null==i?void 0:i.originY)}function i2(e,t,n){e.min=n.min+t.min,e.max=e.min+iJ(t)}function i3(e,t,n){e.min=t.min-n.min,e.max=e.min+iJ(t)}function i6(e,t,n){i3(e.x,t.x,n.x),i3(e.y,t.y,n.y)}function i8(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function i7(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function i9(e,t,n){return{min:i4(e,t),max:i4(e,n)}}function i4(e,t){return"number"==typeof e?e:e[t]||0}let re=()=>({translate:0,scale:1,origin:0,originPoint:0}),rt=()=>({x:re(),y:re()}),rn=()=>({min:0,max:0}),ri=()=>({x:rn(),y:rn()});function rr(e){return[e("x"),e("y")]}function ro({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function ra(e){return void 0===e||1===e}function rs({scale:e,scaleX:t,scaleY:n}){return!ra(e)||!ra(t)||!ra(n)}function rl(e){return rs(e)||ru(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ru(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function rp(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function rc(e,t=0,n=1,i,r){e.min=rp(e.min,t,n,i,r),e.max=rp(e.max,t,n,i,r)}function rd(e,{x:t,y:n}){rc(e.x,t.translate,t.scale,t.originPoint),rc(e.y,n.translate,n.scale,n.originPoint)}function rh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function rm(e,t){e.min=e.min+t,e.max=e.max+t}function rf(e,t,[n,i,r]){let o=void 0!==t[r]?t[r]:.5,a=nX(e.min,e.max,o);rc(e,t[n],t[i],a,t.scale)}
9let rg=["x","scaleX","originX"],ry=["y","scaleY","originY"];function rv(e,t){rf(e.x,t,rg),rf(e.y,t,ry)}function rx(e,t){return ro(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let r_=new WeakMap;class rb{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ri(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!1===this.visualElement.isPresent)return;let n=e=>{this.stopAnimation(),t&&this.snapToCursor(tN(e,"page").point)},r=(e,t)=>{var n;let{drag:r,dragPropagation:o,onDragStart:a}=this.getProps();(!r||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tQ(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rr(e=>{var t,n;let i=this.getAxisMotionValue(e).get()||0;if(ta.test(i)){let r=null==(n=null==(t=this.visualElement.projection)?void 0:t.layout)?void 0:n.layoutBox[e];r&&(i=iJ(r)*(parseFloat(i)/100))}this.originPoint[e]=i}),null==a||a(e,t),null==(n=this.visualElement.animationState)||n.setActive(i.Drag,!0))},o=(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==r||r(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},a=(e,t)=>this.stop(e,t);this.panSession=new iY(e,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();null==r||r(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null==(e=this.panSession)||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null==(t=this.visualElement.animationState)||t.setActive(i.Drag,!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!rw(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?nX(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?nX(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&eL(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:i8(e.x,n,r),y:i8(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i9(e,"left","right"),y:i9(e,"top","bottom")}}(t),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rr(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!eL(t))return!1;let i=t.current;nU(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(e,t,n){let i=rx(e,n),{scroll:r}=t;return r&&(rm(i.x,r.offset.x),rm(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:i7(e.x,o.x),y:i7(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ro(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rr(a=>{if(!rw(a,t,this.currentDirection))return;let l=(null==s?void 0:s[a])||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(iF(e,n,0,t))}stopAnimation(){rr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t;let n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,(null==(t=this.visualElement.getProps().initial)?void 0:t[e])||0)}snapToCursor(e){rr(t=>{let{drag:n}=this.getProps();if(!rw(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t];r.set(e[t]-nX(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!eL(n)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rr(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();r[e]=function(e,t){let n=.5,i=iJ(e),r=iJ(t);return r>i?n=n6(t.min,t.max-i,e.min):i>r&&(n=n6(e.min,e.max-r,t.min)),e6(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null==(e=i.root)||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),rr(e=>{if(!rw(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(nX(i,o,r[e]))})}addListeners(){var e;if(!this.visualElement.current)return;r_.set(this.visualElement,this);let t=tq(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
9=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();eL(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(null==(e=i.root)||e.updateScroll(),i.updateLayout()),n();let o=tF(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rr(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),r(),null==a||a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function rw(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let rk={pan:t4(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:i,visualElement:r}){let o=(0,c.useRef)(null),{transformPagePoint:a}=(0,c.useContext)(eV),s={onSessionStart:i,onStart:t,onMove:e,onEnd:(e,t)=>{o.current=null,n&&n(e,t)}};(0,c.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(s)}),tY(r,"pointerdown",(e||t||n||i)&&function(e){o.current=new iY(e,s,{transformPagePoint:a})}),eS(()=>o.current&&o.current.end())}),drag:t4(function(e){let{dragControls:t,visualElement:n}=e,i=e_(()=>new rb(n));(0,c.useEffect)(()=>t&&t.subscribe(i),[i,t]),(0,c.useEffect)(()=>i.addListeners(),[i])})};function rE(e){return"string"==typeof e&&e.startsWith("var(--")}let rP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rS(e,t,n=1){nU(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,r]=function(e){let t=rP.exec(e);if(!t)return[,];let[,n,i]=t;return[n,i]}(e);if(!i)return;let o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():rE(r)?rS(r,t,n+1):r}let rC=new Set(["width","height","top","left","right","bottom","x","y"]),rA=e=>rC.has(e),rT=(e,t)=>{e.set(t,!1),e.set(t)},rM=e=>e===e8||e===ts;!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(r||(r={}));let rV=(e,t)=>parseFloat(e.split(", ")[t]),rz=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/);if(r)return rV(r[1],t);{let t=i.match(/^matrix\((.+)\)$/);return t?rV(t[1],e):0}},rj=new Set(["x","y","z"]),rL=eK.filter(e=>!rj.has(e)),rR={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:rz(4,13),y:rz(5,14)},rI={current:null},rD={current:!1},rF=Object.keys(eN),rB=rF.length,rO=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rU{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:i},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ep.render(this.render,!1,!0);let{latestValues:o,renderState:a}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=r,this.isControllingVariants=eF(t),this.isVariantNode=eB(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&e0(t)&&(t.set(o[e],!1),nF(s)&&s.add(e))}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null==(t=this.parent)?void 0:t.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),rD.current||function(){if(rD.current=!0,eg)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rI.current=e.matches;e.addListener(t),t()}else rI.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rI.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let i in null==(e=this.projection)||e.unmount(),ec.update(this.notifyUpdate),ec.render(this.render),this.valueSubscriptions.forEach(e=>e()),null==(t=this.removeFromVariantTree)||t.call(this),null==(n=this.parent)||n.children.delete(this),this.events)this.events[i].clear();this.current=null}bindToMotionValue(e,t){let n=eQ.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ep.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,i,r,o){let a=[];"production"!==ee&&n&&t&&nU(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;t<rB;t++){let n=rF[t],{isEnabled:i,Component:r}=eN[n];i(e)&&r&&a.push((0,c.createElement)(r,{key:n,...e,visualElement:this}))}if(!this.projection&&r){this.projection=new r(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:a,dragConstraints:s,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!a||s&&eL(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ri()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;t<rO.length;t++){let n=rO[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){let{willChange:i}=t;for(let r in t){let o=t[r],a=n[r];if(e0(o))e.addValue(r,o),nF(i)&&i.add(r);else if(e0(a))e.addValue(r,np(o,{owner:e})),nF(i)&&i.remove(r);else if(a!==o)if(e.hasValue(r)){let t=e.getValue(r);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(r);e.addValue(r,np(void 0!==t?t:o))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e),this.prevMotionValues)}getProps(){return this.props}getVariant(e){var t;return null==(t=this.props.variants)?void 0:t[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var e;return this.isVariantNode?this:null==(e=this.parent)?void 0:e.getClosestVariantNode()}getVariantContext(e=!1){var t,n;if(e)return null==(t=this.parent)?void 0:t.getVariantContext();if(!this.isControllingVariants){let e=(null==(n=this.parent)?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<r$;e++){let t=rN[e],n=this.props[t];(eR(n)||!1===n)&&(i[t]=n)}return i}addVariantChild(e){var t;let n=this.getClosestVariantNode();if(n)return null==(t=n.variantChildren)||t.add(e),()=>n.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null==(t=this.valueSubscriptions.get(e))||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=np(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null==(t=tV(this.props,n))?void 0:t[e]:void 0;if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||e0(r)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new ns),this.events[e].add(t)}notify(e,...t){var n;null==(n=this.events[e])||n.notify(...t)}}let rN=["initial",...iN],r$=rN.length;class rH extends rU{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null==(n=e.style)?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:i},r){let o=function(e,t,n){var i;let r={};for(let o in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t);r[o]=void 0!==e?e:null==(i=n.getValue(o))?void 0:i.get()}return r}(n,e||{},this);if(i&&(t&&(t=i(t)),n&&(n=i(n)),o&&(o=i(o))),r){!function(e,t,n){var i,r;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(r=null!=(i=n[a])?i:e.readValue(a))?r:t[a]),null!=u&&("string"==typeof u&&(ni(u)||nr(u))?u=parseFloat(u):!nI(u)&&nE.test(l)&&(u=nV(a,l)),e.addValue(a,np(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,o);let e=((e,t,n,i)=>{var r,o,a,s;let l=function(e,{...t},n){let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};
9for(let r in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!rE(t))return;let n=rS(t,i);n&&e.set(n)}),t){let e=t[r];if(!rE(e))continue;let o=rS(e,i);o&&(t[r]=o,n&&void 0===n[r]&&(n[r]=e))}return{target:t,transitionEnd:n}}(e,t,i);return t=l.target,r=e,o=t,a=n,s=i=l.transitionEnd,Object.keys(o).some(rA)?((e,t,n={},i={})=>{t={...t},i={...i};let r=Object.keys(t).filter(rA),o=[],a=!1,s=[];if(r.forEach(r=>{let l,u=e.getValue(r);if(!e.hasValue(r))return;let p=n[r],c=nL(p),d=t[r];if(tz(d)){let e=d.length,t=+(null===d[0]);c=nL(p=d[t]);for(let n=t;n<e;n++)l?nU(nL(d[n])===l,"All keyframes must be of the same type"):nU((l=nL(d[n]))===c||rM(c)&&rM(l),"Keyframes must be of the same dimension as the current value")}else l=nL(d);if(c!==l)if(rM(c)&&rM(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof d?t[r]=parseFloat(d):Array.isArray(d)&&l===ts&&(t[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===p||0===d)?0===p?u.set(l.transform(p)):t[r]=c.transform(d):(a||(o=function(e){let t=[];return rL.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t.length&&e.render(),t}(e),a=!0),s.push(r),i[r]=void 0!==i[r]?i[r]:t[r],rT(u,d))}),!s.length)return{target:t,transitionEnd:i};{let n=s.indexOf("height")>=0?window.pageYOffset:null,r=((e,t,n)=>{let i=t.measureViewportBox(),r=getComputedStyle(t.current),{display:o}=r,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=rR[e](i,r)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{rT(t.getValue(n),a[n]),e[n]=rR[n](s,r)}),e})(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),eg&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:i}}})(r,o,a,s):{target:o,transitionEnd:s}})(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class rW extends rH{readValueFromInstance(e,t){if(eQ.has(t)){let e=nM(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(e2(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rx(e,t)}build(e,t,n,i){th(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e){return tT(e)}renderInstance(e,t,n,i){tS(e,t,n,i)}}class rZ extends rH{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var n;return eQ.has(t)?(null==(n=nM(t))?void 0:n.default)||0:(t=tC.has(t)?t:tP(t),e.getAttribute(t))}measureInstanceViewportBox(){return ri()}scrapeMotionValuesFromProps(e){return tM(e)}build(e,t,n,i){tw(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){tA(e,t,n,i)}mount(e){this.isSVGTag=tE(e.tagName),super.mount(e)}}let rq=(e,t)=>
9eX(e)?new rZ(t,{enableHardwareAcceleration:!1}):new rW(t,{enableHardwareAcceleration:!0});function rY(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let rX={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!ts.test(e))return e;else e=parseFloat(e);let n=rY(e,t.target.x),i=rY(e,t.target.y);return`${n}% ${i}%`}},rG="_$css",rK={correct:(e,{treeScale:t,projectionDelta:n})=>{let i=e,r=e.includes("var("),o=[];r&&(e=e.replace(rP,e=>(o.push(e),rG)));let a=nE.parse(e);if(a.length>5)return i;let s=nE.createTransformer(e),l=+("number"!=typeof a[0]),u=n.x.scale*t.x,p=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=p;let c=nX(u,p,.5);"number"==typeof a[2+l]&&(a[2+l]/=c),"number"==typeof a[3+l]&&(a[3+l]/=c);let d=s(a);if(r){let e=0;d=d.replace(rG,()=>{let t=o[e];return e++,t})}return d}};class rQ extends c.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;Object.assign(eG,rJ),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),e$.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||ep.postRender(()=>{var e;(null==(e=o.getStack())?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let rJ={borderRadius:{...rX,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rX,borderTopRightRadius:rX,borderBottomLeftRadius:rX,borderBottomRightRadius:rX,boxShadow:rK},r0=["TopLeft","TopRight","BottomLeft","BottomRight"],r1=r0.length,r5=e=>"string"==typeof e?parseFloat(e):e,r2=e=>"number"==typeof e||ts.test(e);function r3(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let r6=r7(0,.5,ii),r8=r7(.5,.95,n9);function r7(e,t,n){return i=>i<e?0:i>t?1:n(n6(e,t,i))}function r9(e,t){e.min=t.min,e.max=t.max}function r4(e,t){r9(e.x,t.x),r9(e.y,t.y)}function oe(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function ot(e,t,[n,i,r],o,a){!function(e,t=0,n=1,i=.5,r,o=e,a=e){if(ta.test(t)&&(t=parseFloat(t),t=nX(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=nX(o.min,o.max,i);e===o&&(s-=t),e.min=oe(e.min,t,n,s,r),e.max=oe(e.max,t,n,s,r)}(e,t[n],t[i],t[r],t.scale,o,a)}let on=["x","scaleX","originX"],oi=["y","scaleY","originY"];function or(e,t,n,i){ot(e.x,t,on,null==n?void 0:n.x,null==i?void 0:i.x),ot(e.y,t,oi,null==n?void 0:n.y,null==i?void 0:i.y)}function oo(e){return 0===e.translate&&1===e.scale}function oa(e){return oo(e.x)&&oo(e.y)}function os(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ol(e){return iJ(e.x)/iJ(e.y)}class ou{constructor(){this.members=[]}add(e){no(this.members,e),e.scheduleRender()}remove(e){if(na(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),(null==(n=e.root)?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&i.hide()}}
9exitAnimationComplete(){this.members.forEach(e=>{var t,n,i,r,o;null==(n=(t=e.options).onExitComplete)||n.call(t),null==(o=null==(i=e.resumingFrom)?void 0:(r=i.options).onExitComplete)||o.call(r)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function op(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y;if((r||o)&&(i=`translate3d(${r}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),r&&(i+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(i+=`scale(${a}, ${s})`),i||"none"}let oc=(e,t)=>e.depth-t.depth;class od{constructor(){this.children=[],this.isDirty=!1}add(e){no(this.children,e),this.isDirty=!0}remove(e){na(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oc),this.isDirty=!1,this.children.forEach(e)}}let oh=["","X","Y","Z"],om=0;function of({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e,n={},i=null==t?void 0:t()){this.id=om++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ov),this.nodes.forEach(ok),this.nodes.forEach(oE)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new od)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ns),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);null==n||n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){var i;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),null==(i=this.parent)||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||r)&&(this.isLayoutDirty=!0),e){let n,i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=iE(i,250),e$.hasAnimatedSinceResize&&(e$.hasAnimatedSinceResize=!1,this.nodes.forEach(ow))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{var r,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=null!=(o=null!=(r=this.options.transition)?r:a.getDefaultTransition())?o:oM,{onLayoutAnimationStart:c,onLayoutAnimationComplete:d}=a.getProps(),h=!this.targetLayout||!os(this.targetLayout,i)||n,m=!t&&n;if((null==(s=this.resumeFrom)?void 0:s.instance)||m||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,m);let t={...ij(p,"layout"),onPlay:c,onComplete:d};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ow(this),this.isLead()&&(null==(u=(l=this.options).onExitComplete)||u.call(l));this.targetLayout=i})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null==(e=this.getStack())||e.remove(this),null==(t=this.parent)||t.children.delete(this),this.instance=void 0,ec.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null==(e=this.parent)?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;!this.isUpdateBlocked()&&(this.isUpdating=!0,null==(e=this.nodes)||e.forEach(oP),this.animationId++)}willUpdate(e=!0){var t,n,i;if(this.root.isUpdateBlocked()){null==(n=(t=this.options).onExitComplete)||n.call(t);return}
9if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot")}let{layoutId:r,layout:o}=this.options;if(void 0===r&&!o)return;let a=null==(i=this.options.visualElement)?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==a?void 0:a(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(o_);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(oV),this.potentialNodes.clear()),this.nodes.forEach(ob),this.nodes.forEach(og),this.nodes.forEach(oy),this.clearAllSnapshots(),ed.update(),ed.preRender(),ed.render())}clearAllSnapshots(){this.nodes.forEach(ox),this.sharedNodes.forEach(oS)}scheduleUpdateProjection(){ep.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ep.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ri(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null==(e=this.options.visualElement)||e.notify("LayoutMeasure",this.layout.layoutBox,null==t?void 0:t.layoutBox)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var e;if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!oa(this.projectionDelta),i=null==(e=this.options.visualElement)?void 0:e.getProps().transformTemplate,o=null==i?void 0:i(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||rl(this.latestValues)||a)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),oz((t=i).x),oz(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ri();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rm(t.x,n.offset.x),rm(t.y,n.offset.y)),t}removeElementScroll(e){let t=ri();r4(t,e);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;if(i!==this.root&&r&&o.layoutScroll){if(r.isRoot){r4(t,e);let{scroll:n}=this.root;n&&(rm(t.x,-n.offset.x),rm(t.y,-n.offset.y))}rm(t.x,r.offset.x),rm(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){let n=ri();r4(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rv(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),rl(i.latestValues)&&rv(n,i.latestValues)}return rl(this.latestValues)&&rv(n,this.latestValues),n}removeTransform(e){var t;let n=ri();r4(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!rl(i.latestValues))continue;rs(i.latestValues)&&i.updateSnapshot();let r=ri();r4(r,i.measurePageBox()),or(n,i.latestValues,null==(t=i.snapshot)?void 0:t.layoutBox,r)}return rl(this.latestValues)&&or(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var e,t,n,i;let r=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:o,layoutId:a}=this.options;
9if(this.layout&&(o||a)){if(!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=ri(),this.relativeTargetOrigin=ri(),i6(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),r4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=ri(),this.targetWithTransforms=ri()),this.relativeTarget&&this.relativeTargetOrigin&&(null==(e=this.relativeParent)?void 0:e.target))?(t=this.target,n=this.relativeTarget,i=this.relativeParent.target,i2(t.x,n.x,i.x),i2(t.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):r4(this.target,this.layout.layoutBox),rd(this.target,this.targetDelta)):r4(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=ri(),this.relativeTargetOrigin=ri(),i6(this.relativeTargetOrigin,this.target,e.target),r4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rs(this.parent.latestValues)||ru(this.parent.latestValues)))if((this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout)return this.parent;else return this.parent.getClosestProjectingParent()}calcProjection(){var e;let{isProjectionDirty:t,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;let i=this.getLead(),r=!!this.resumingFrom||this!==i,o=!0;if(t&&(o=!1),r&&n&&(o=!1),o)return;let{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=!!((null==(e=this.parent)?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(a||s))return;r4(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,i=!1){var r,o;let a,s,l=n.length;if(l){t.x=t.y=1;for(let u=0;u<l;u++)s=(a=n[u]).projectionDelta,(null==(o=null==(r=a.instance)?void 0:r.style)?void 0:o.display)!=="contents"&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&rv(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,rd(e,s)),i&&rl(a.latestValues)&&rv(e,a.latestValues));t.x=rh(t.x),t.y=rh(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r);let{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=rt(),this.projectionDeltaWithTransform=rt());let u=this.treeScale.x,p=this.treeScale.y,c=this.projectionTransform;i5(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=op(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t,n,i;null==(n=(t=this.options).scheduleRender)||n.call(t),e&&(null==(i=this.getStack())||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){var n,i;let r=this.snapshot,o=(null==r?void 0:r.latestValues)||{},a={...this.latestValues},s=rt();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;let l=ri(),u=(null==r?void 0:r.source)!==(null==(n=this.layout)?void 0:n.source),p=1>=((null==(i=this.getStack())?void 0:i.members.length)||0),c=!!(u&&!p&&!0===this.options.crossfade&&!this.path.some(oT));this.animationProgress=0,this.mixTargetDelta=t=>{var n,i,r,d,h;let m=t/1e3;oC(s.x,e.x,m),oC(s.y,e.y,m),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null==(n=this.relativeParent)?void 0:n.layout)&&(i6(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,r=this.relativeTargetOrigin,d=l,h=m,oA(i.x,r.x,d.x,h),oA(i.y,r.y,d.y,h)),u&&(this.animationValues=a,function(e,t,n,i,r,o){r?(e.opacity=nX(0,void 0!==n.opacity?n.opacity:1,r6(i)),e.opacityExit=nX(void 0!==t.opacity?t.opacity:1,0,r8(i))):o&&(e.opacity=nX(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<r1;r++){let o=`border${r0[r]}Radius`,a=r3(t,o),s=r3(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||r2(a)===r2(s)?(e[o]=Math.max(nX(r5(a),r5(s),i),0),(ta.test(s)||ta.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=nX(t.rotate||0,n.rotate||0,i))}(a,o,this.latestValues,m,c,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),this.resumingFrom&&(null==(n=this.resumingFrom.currentAnimation)||n.stop()),this.pendingAnimation&&(ec.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ep.update(()=>{e$.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let i=e0(0)?0:np(e);return i.start(iF("",i,1e3,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null==(n=e.onUpdate)||n.call(e,t)},onComplete:()=>{var t;null==(t=e.onComplete)||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null==(e=this.getStack())||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null==(e=this.mixTargetDelta)||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;
9if(t&&n&&i){if(this!==e&&this.layout&&i&&oj(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ri();let t=iJ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=iJ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}r4(t,n),rv(t,r),i5(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){var n,i,r;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ou),this.sharedNodes.get(e).add(t),t.promote({transition:null==(n=t.options.initialPromotionConfig)?void 0:n.transition,preserveFollowOpacity:null==(r=null==(i=t.options.initialPromotionConfig)?void 0:i.shouldPreserveFollowOpacity)?void 0:r.call(i,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let i={};for(let t=0;t<oh.length;t++){let r="rotate"+oh[t];n[r]&&(i[r]=n[r],e.setStaticValue(r,0))}for(let t in null==e||e.render(),i)e.setStaticValue(t,i[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n,i;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let o=null==(t=this.options.visualElement)?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tL(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=tL(e.pointerEvents)||""),this.hasProjected&&!rl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}let s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=op(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,a.animationValues?r.opacity=a===this?null!=(i=null!=(n=s.opacity)?n:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eG){if(void 0===s[e])continue;let{correct:t,applyTo:n}=eG[e],i=t(s[e],a);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=a===this?tL(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(o_),this.root.sharedNodes.clear()}}}function og(e){e.updateLayout()}function oy(e){var t,n,i;let r=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?rr(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=iJ(n);n.min=t[e].min,n.max=n.min+i}):oj(i,r.layoutBox,t)&&rr(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=iJ(t[e]);n.max=n.min+i});let a=rt();i5(a,t,r.layoutBox);let s=rt();o?i5(s,e.applyTransform(n,!0),r.measuredBox):i5(s,t,r.layoutBox);let l=!oa(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:i}=n;if(e&&i){let n=ri();i6(n,r.layoutBox,e.layoutBox);let o=ri();i6(o,t,i.layoutBox),os(n,o)||(u=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else e.isLead()&&(null==(i=(n=e.options).onExitComplete)||i.call(n));e.options.transition=void 0}function ov(e){e.isProjectionDirty||(e.isProjectionDirty=!!(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=!!(e.parent&&e.parent.isTransformDirty))}function ox(e){e.clearSnapshot()}function o_(e){e.clearMeasurements()}function ob(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ow(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ok(e){e.resolveTargetDelta()}function oE(e){e.calcProjection()}function oP(e){e.resetRotation()}function oS(e){e.removeLeadSnapshot()}function oC(e,t,n){e.translate=nX(t.translate,0,n),e.scale=nX(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oA(e,t,n,i){e.min=nX(t.min,n.min,i),e.max=nX(t.max,n.max,i)}function oT(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let oM={duration:.45,ease:[.4,0,.1,1]};function oV(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}
9let i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function oz(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function oj(e,t,n){return"position"===e||"preserve-aspect"===e&&!i0(ol(t),ol(n),.2)}let oL=of({attachResizeListener:(e,t)=>tF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oR={current:void 0},oI=of({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oR.current){let e=new oL(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),oR.current=e}return oR.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),oD={...iZ,...ne,...rk,measureLayout:function(e){let[t,n]=nt(),i=(0,c.useContext)(eP);return c.createElement(rQ,{...e,layoutGroup:i,switchLayoutGroup:(0,c.useContext)(eZ),isPresent:t,safeToRemove:n})}},oF=function(e){function t(n,i={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:i,useVisualState:r,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?eN.projectionNodeConstructor=e[t]:eN[t].Component=e[t]}(e);let a=(0,c.forwardRef)(function(a,s){var l;let u={...(0,c.useContext)(eV),...a,layoutId:function({layoutId:e}){let t=(0,c.useContext)(eP).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:p}=u,d=null,h=function(e){let{initial:t,animate:n}=function(e,t){if(eF(e)){let{initial:t,animate:n}=e;return{initial:!1===t||eR(t)?t:void 0,animate:eR(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(ez));return(0,c.useMemo)(()=>({initial:t,animate:n}),[eO(t),eO(n)])}(a),m=p?void 0:e_(()=>{if(e$.hasEverUpdated)return eH++}),f=r(a,p);if(!p&&eg){h.visualElement=function(e,t,n,i){let r=(0,c.useContext)(ez).visualElement,o=(0,c.useContext)(ej),a=(0,c.useContext)(ex),s=(0,c.useContext)(eV).reducedMotion,l=(0,c.useRef)();i=i||o.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:r,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return ey(()=>{u&&u.render()}),ey(()=>{u&&u.animationState&&u.animationState.animateChanges()}),ey(()=>()=>u&&u.notify("Unmount"),[]),u}(o,f,u,t);let i=(0,c.useContext)(ej).strict,r=(0,c.useContext)(eZ);h.visualElement&&(d=h.visualElement.loadFeatures(u,i,e,m,n||eN.projectionNodeConstructor,r))}return c.createElement(eW,{visualElement:h.visualElement,props:u},d,c.createElement(ez.Provider,{value:h},i(o,a,m,(l=h.visualElement,(0,c.useCallback)(e=>{e&&f.mount&&f.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):eL(s)&&(s.current=e))},[l])),f,p,h.visualElement)))});return a[eq]=o,a}(e(n,i))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i,r){return{...eX(e)?tI:tD,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,r,{latestValues:o},a)=>{let s=(eX(t)?function(e,t,n,i){let r=(0,c.useMemo)(()=>{let n=tk();return tw(n,t,{enableHardwareAcceleration:!1},tE(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};tf(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t,n){let i={},r=function(e,t,n){let i=e.style||{},r={};return tf(r,i,e),Object.assign(r,function({transformTemplate:e},t,n){return(0,c.useMemo)(()=>{let i=tm();return th(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),i.style=r,i})(n,o,a,t),l={...function(e,t,n){let i={};for(let r in e)(tv(r)||!0===n&&ty(r)||!t&&!ty(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),...s,ref:r};return i&&(l["data-projection-id"]=i),(0,c.createElement)(t,l)}}(t),createVisualElement:i,projectionNodeConstructor:r,Component:e}})(e,t,oD,rq,oI));function oB(){let e=(0,o._)(["\n query getPartnerImg($partnerId: String!) {\n getPartnerImg(partnerId: $partnerId)\n }\n"]);return oB=function(){return e},e}function oO(){let e=(0,o._)(["\n height: 221px;\n "]);return oO=function(){return e},e}function oU(){let e=(0,o._)(["\n height: 221px;\n max-height: 221px;\n "]);return oU=function(){return e},e}n(78007);
9var oN={id:"clusters",type:"circle",source:"clusterpartners",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],p.f.grayscale[0],50,p.f.grayscale[0],100,p.f.grayscale[0]],"circle-radius":["step",["get","point_count"],25,50,25,100,40]}},o$={id:"cluster-count",type:"symbol",source:"clusterpartners",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Inter-Bold"],"text-size":21},paint:{"text-color":p.f.secondary[400]}},oH={id:"unclustered-point",type:"symbol",source:"clusterpartners",filter:["!",["has","point_count"]],layout:{"icon-image":"marker-default","icon-size":1,"icon-allow-overlap":!0}},oW=(0,c.memo)(e=>{let{getNearGyms:t,mapOSMRef:n}=e,[i,r]=(0,c.useState)([]),o=(0,c.useCallback)(()=>({type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{id:e.id},geometry:{type:"Point",coordinates:[e.lng,e.lat]}}))}),[t]);return(0,c.useEffect)(()=>{0===i.length&&r(o())},[i,o]),(0,c.useEffect)(()=>{let e=n.current;e&&(e.on("click","clusters",async t=>{let n=e.queryRenderedFeatures(t.point,{layers:["clusters"]}),i=n[0].properties.cluster_id,r=await e.getSource("clusterpartners").getClusterExpansionZoom(i);e.easeTo({center:n[0].geometry.coordinates,zoom:r})}),e.on("mouseenter","clusters",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","clusters",()=>{e.getCanvas().style.cursor=""}),e.on("mouseenter","unclustered-point",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","unclustered-point",()=>{e.getCanvas().style.cursor=""}),(async()=>{let t=await e.loadImage("".concat(window.location.origin).concat(a.g.png.default));e.hasImage("marker-default")||e.addImage("marker-default",t.data)})())},[n]),(0,W.jsxs)(H,{id:"clusterpartners",type:"geojson",data:i,cluster:!0,clusterMaxZoom:a.f.center,clusterRadius:50,children:[(0,W.jsx)($,{...oN}),(0,W.jsx)($,{...o$}),(0,W.jsx)($,{...oH})]})}),oZ=Z.Ay.div.withConfig({componentId:"sc-2ad828a2-0"})(["left:50%;z-index:500;position:absolute;transform:translateX(-50%);top:20px;"]),oq=Z.Ay.button.withConfig({componentId:"sc-2ad828a2-1"})(["align-items:center;background-color:",";border-radius:","px;border:","px solid ",";box-shadow:",";cursor:pointer;display:flex;height:","px;justify-content:center;padding:","px ","px;",""],p.f.grayscale[0],p.a.circular,p.c.thin,p.f.neutral[200],p.j.large,p.p.medium,p.u.none,p.u.comfortable,e=>e.disabled&&(0,Z.AH)(["cursor:default;"])),oY=Z.Ay.div.withConfig({componentId:"sc-2ad828a2-2"})(["display:",";"],e=>e.show?"block":"none"),oX=(0,c.memo)(e=>{let{centerLocationDragend:t}=e,{map:n,setQueryCenterLocation:i}=(0,a.d)();return(0,W.jsx)(oZ,{children:(0,W.jsxs)(oq,{onClick:()=>{i(t)},children:[(0,W.jsx)(oY,{children:(0,W.jsx)("img",{src:n.searchThisArea.button.loading,alt:"loading"})}),(0,W.jsx)(oY,{show:!0,children:(0,W.jsx)(s.b.SmallBody,{children:n.searchThisArea.button.label})})]})})}),oG=(0,K.J1)(oB()),oK=(0,Z.AH)(["@keyframes shimmer{0%{background-position:0% 0%;}100%{background-position:-135% 0%;}}background-image:linear-gradient( -90deg,"," 0%,"," 50%,"," 100% );background-size:400% 400%;animation:shimmer 1s ease-in-out infinite;"],p.f.neutral[100],p.f.neutral[200],p.f.neutral[100]),oQ=Z.Ay.div.withConfig({componentId:"sc-2ad828a2-3"})([""," &.skeleton-row{width:100%;height:","px;border-radius:4px;}&.skeleton-title{width:200px;height:","px;border-radius:4px;}&.skeleton-text{height:","px;margin-bottom:12px;border-radius:","px;}&.skeleton-check{flex-shrink:0;width:","px;height:","px;margin-right:12px;border-radius:4px;}&.skeleton-partner-image{width:100%;height:128px;border-radius:0 0 ","px ","px;","}"],oK,p.p.average,p.p.average,p.p.low,p.a.small,p.w.average,p.p.average,p.a.small,p.a.small,u.e.lg(oO())),oJ=e=>{let{className:t}=e;return(0,W.jsx)(oQ,{className:t})},o0=Z.Ay.img.attrs(()=>({height:"128"})).withConfig({componentId:"sc-2ad828a2-4"})(["max-height:128px;width:100%;object-fit:cover;border-radius:0 0 ","px ","px;",""],p.a.small,p.a.small,u.e.lg(oU())),o1=e=>{let{name:t,partnerId:n}=e,[i,r]=(0,c.useState)({height:void 0,pointerEvents:"initial"}),{data:{getPartnerImg:o}={},loading:a}=(0,Q.IT)(oG,{variables:{partnerId:n},skip:!n});return(0,c.useEffect)(()=>{o||a||r({height:0,pointerEvents:"none"})},[o,a]),(0,W.jsx)(eM,{children:(0,W.jsx)(l.a,{backgroundColor:p.f.neutral[100],justifyContent:"center",display:"flex",borderRadius:"0 0 ".concat(p.a.small,"px ").concat(p.a.small,"px"),children:o?(0,W.jsx)(o0,{alt:t,src:o}):(0,W.jsx)(oF.div,{style:{width:"100%"},animate:{height:i.height,pointerEvents:i.pointerEvents},transition:{duration:.6},children:(0,W.jsx)(l.a,{width:"100%",height:{xxs:"128px",lg:"221px"},children:a&&(0,W.jsx)(oJ,{className:"skeleton-partner-image"})})})})})},o5=Z.Ay.button.withConfig({componentId:"sc-2ad828a2-5"})(["background:",";padding:",";border:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:absolute;top:","px;right:","px;&:hover{svg{fill:",";}}"],p.f.grayscale[0],p.u.none,p.c.none,p.w.medium,p.p.medium,p.u.tight,p.u.tight,p.f.neutral[600]),o2=e=>{let{onClose:t,content:n}=e,{imageUrl:i,name:r,address:o,activities:u,id:d}=n,[h,m]=(0,c.useState)(!1),[f,g]=(0,c.useState)(!0),y=(0,c.useRef)(null);return function(e,t){(0,c.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t(null)}return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e])}(y,t),(0,c.useEffect)(()=>{g(!1),setTimeout(()=>{m(!0)},100)},[]),!f&&(0,W.jsxs)(l.a,{ref:y,display:"flex",flexDirection:"column",backgroundColor:p.f.grayscale[0],borderRadius:p.a.small,boxShadow:p.j.medium,maxWidth:"400px",
9width:"100%",position:"relative",sx:{pointerEvents:"initial",opacity:+!!h,transition:"opacity 1s ease-in-out"},"data-testid":"map-partner-modal",children:[(0,W.jsxs)(l.a,{display:"flex",flexDirection:"row",gap:"comfortable",padding:"comfortable",children:[t&&(0,W.jsx)(o5,{onClick:t,children:(0,W.jsx)(l.b,{icon:"Close",size:16})}),(0,W.jsx)(s.M,{$xxs:!0,$xs:!0,$sm:!0,$md:!0,children:(0,W.jsx)(l.a,{width:"48px",children:(0,W.jsx)(s.E,{src:i,alt:"".concat(r," avatar")})})}),(0,W.jsx)(l.a,{display:"flex",gap:"tight",flexDirection:"column",alignItems:"flex-start",children:(0,W.jsxs)(l.a,{display:"flex",flexDirection:"column",gap:"4px",children:[r&&(0,W.jsx)(l.a,{marginRight:32,children:(0,W.jsx)(s.b.SmallBody,{children:r})}),o&&(0,W.jsxs)(l.a,{display:"flex",alignItems:"center",gap:"4px",children:[(0,W.jsx)(l.b,{icon:"PinFilled",size:"medium",fill:"medium"}),(0,W.jsx)(s.b.SmallBody,{as:"address",children:o})]}),u&&(0,W.jsx)(s.b.SmallBody,{color:"neutral-600",children:(0,a.e)({activities:u,limit:3})})]})})]}),(0,W.jsx)(o1,{partnerId:d,name:r})]})},o3=(0,c.memo)(e=>{let{popupInfo:t,setPopupInfo:n}=e,[i,r]=(0,c.useState)(null),{setSelectPartnerCard:o,partner:s,queryCenterLocation:u}=(0,a.d)();return(0,c.useEffect)(()=>{0!==Object.keys(s).length&&n(s)},[s,n]),(0,c.useEffect)(()=>{r({lat:null==u?void 0:u.lat,lng:null==u?void 0:u.lng})},[u]),(0,W.jsxs)(W.Fragment,{children:[i&&(0,W.jsx)(L,{latitude:i.lat,longitude:i.lng,children:(0,W.jsx)("img",{src:a.g.svg.userLocation})}),t&&(0,W.jsx)(l.a,{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",padding:"20px",zIndex:1,width:"100%",height:"100%",sx:{pointerEvents:"none"},children:(0,W.jsx)(o2,{content:t,onClose:()=>{n(null),o({})}})})]})}),o6={background:"#f1f0fb",earth:"#f1f0fb",park_a:"#c1e6d6",park_b:"#c1e6d6",hospital:"#ECEAF9",industrial:"#ECEAF9",school:"#ECEAF9",wood_a:"#c1e6d6",wood_b:"#c1e6d6",pedestrian:"#ECEAF9",scrub_a:"#c1e6d6",scrub_b:"#c1e6d6",glacier:"#ECEAF9",sand:"#ECEAF9",beach:"#ECEAF9",aerodrome:"#ECEAF9",runway:"#ECEAF9",water:"#c6d7f5",pier:"#ECEAF9",zoo:"#ECEAF9",military:"#ECEAF9",tunnel_other_casing:"#dadce0",tunnel_minor_casing:"#dadce0",tunnel_link_casing:"#dadce0",tunnel_medium_casing:"#dadce0",tunnel_major_casing:"#dadce0",tunnel_highway_casing:"#dadce0",tunnel_other:"#f5f5ff",tunnel_minor:"#f5f5ff",tunnel_link:"#f5f5ff",tunnel_medium:"#f5f5ff",tunnel_major:"#f5f5ff",tunnel_highway:"#f5f5ff",transit_pier:"#f5f5ff",buildings:"#ECEAF9",minor_service_casing:"#dadce0",minor_casing:"#dadce0",link_casing:"#dadce0",medium_casing:"#dadce0",major_casing_late:"#dadce0",highway_casing_late:"#dadce0",other:"#f5f5ff",minor_service:"#f5f5ff",minor_a:"#f5f5ff",minor_b:"#f5f5ff",link:"#f5f5ff",medium:"#f5f5ff",major_casing_early:"#dadce0",major:"#cdcdf9",highway_casing_early:"#dadce0",highway:"#cdcdf9",railway:"#f5f5ff",boundaries:"#f5f5ff",waterway_label:"#a4cae1",bridges_other_casing:"#dadce0",bridges_minor_casing:"#dadce0",bridges_link_casing:"#dadce0",bridges_medium_casing:"#dadce0",bridges_major_casing:"#dadce0",bridges_highway_casing:"#dadce0",bridges_other:"#f5f5ff",bridges_minor:"#f5f5ff",bridges_link:"#f5f5ff",bridges_medium:"#f5f5ff",bridges_major:"#f5f5ff",bridges_highway:"#f5f5ff",roads_label_minor:"#7d7d87",roads_label_minor_halo:"#ffffff",roads_label_major:"#7d7d87",roads_label_major_halo:"#ffffff",ocean_label:"#7d7d87",peak_label:"#7d7d87",subplace_label:"#7d7d87",subplace_label_halo:"#ffffff",city_circle:"#7d7d87",city_circle_stroke:"#ffffff",city_label:"#7d7d87",city_label_halo:"#ffffff",state_label:"#7d7d87",state_label_halo:"#ffffff",country_label:"#7d7d87"},o8=(0,c.memo)(e=>{let{searchedSelected:t,setSearchedSelected:n,getNearGyms:i}=e,{partner:r,queryCenterLocation:o,setQueryCenterLocation:s,setSelectPartnerCard:l}=(0,a.d)(),[u,p]=(0,c.useState)(!1),[d,h]=(0,c.useState)(null),m={longitude:o.lng,latitude:o.lat,zoom:a.f.default},f={version:8,sources:{protomaps:{type:"vector",tiles:["https://".concat("mep-map.wellhub.com","/").concat("world","/{z}/{x}/{y}.mvt")],attribution:'\xa9 <a href="https://openstreetmap.org">OpenStreetMap</a>'}},glyphs:"".concat(window.location.origin,"/website/basemaps-assets/map-fonts/{fontstack}/{range}.pbf"),layers:function(){var e,t;return(e="protomaps",[{id:"background",type:"background",paint:{"background-color":o6.background}}
9,{id:"earth",type:"fill",source:e,"source-layer":"earth",paint:{"fill-color":o6.earth}},{id:"landuse_park",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","national_park","park","cemetery","protected_area","nature_reserve","forest","golf_course"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,o6.park_a,12,o6.park_b]}},{id:"landuse_hospital",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","hospital"]],paint:{"fill-color":o6.hospital}},{id:"landuse_industrial",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","industrial"]],paint:{"fill-color":o6.industrial}},{id:"landuse_school",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","school","university","college"]],paint:{"fill-color":o6.school}},{id:"landuse_beach",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","beach"]],paint:{"fill-color":o6.beach}},{id:"landuse_zoo",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","zoo"]],paint:{"fill-color":o6.zoo}},{id:"landuse_military",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","military","naval_base","airfield"]],paint:{"fill-color":o6.zoo}},{id:"natural_wood",type:"fill",source:e,"source-layer":"natural",filter:["any",["in","pmap:kind","wood","nature_reserve","forest"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,o6.wood_a,12,o6.wood_b]}},{id:"natural_scrub",type:"fill",source:e,"source-layer":"natural",filter:["in","pmap:kind","scrub","grassland","grass"],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,o6.scrub_a,12,o6.scrub_b]}},{id:"natural_glacier",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","glacier"],paint:{"fill-color":o6.glacier}},{id:"natural_sand",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","sand"],paint:{"fill-color":o6.sand}},{id:"landuse_aerodrome",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","aerodrome"]],paint:{"fill-color":o6.aerodrome}},{id:"transit_runway",type:"line",source:e,"source-layer":"transit",filter:["any",["in","pmap:kind_detail","runway"]],paint:{"line-color":o6.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,12,4,18,30]}},{id:"transit_taxiway",type:"line",source:e,"source-layer":"transit",minzoom:13,filter:["any",["in","pmap:kind_detail","taxiway"]],paint:{"line-color":o6.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,15,6]}},{id:"water",type:"fill",source:e,"source-layer":"water",paint:{"fill-color":o6.water}},{id:"physical_line_stream",type:"line",source:e,"source-layer":"physical_line",minzoom:14,filter:["all",["in","pmap:kind","stream"]],paint:{"line-color":o6.water,"line-width":.5}},{id:"physical_line_river",type:"line",source:e,"source-layer":"physical_line",minzoom:9,filter:["all",["in","pmap:kind","river"]],paint:{"line-color":o6.water,"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1,18,12]}},{id:"landuse_pedestrian",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pedestrian"]],paint:{"fill-color":o6.pedestrian}},{id:"landuse_pier",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pier"]],paint:{"fill-color":o6.pier}},{id:"roads_tunnels_other_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":o6.tunnel_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":o6.tunnel_minor_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_link_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":o6.tunnel_link_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.tunnel_medium_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,
918,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1]}},{id:"roads_tunnels_major_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.tunnel_major_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_tunnels_highway_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.tunnel_highway_casing,"line-dasharray":[6,.5],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_tunnels_other",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":o6.tunnel_other,"line-dasharray":[4.5,.5],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":o6.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_tunnels_link",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":o6.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_tunnels_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.tunnel_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_tunnels_major",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.tunnel_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_tunnels_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.tunnel_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"buildings",type:"fill",source:e,"source-layer":"buildings",paint:{"fill-color":o6.buildings,"fill-opacity":.5}},{id:"transit_pier",type:"line",source:e,"source-layer":"transit",filter:["any",["==","pmap:kind","pier"]],paint:{"line-color":o6.transit_pier,"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,.5,20,16]}},{id:"roads_minor_service_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":o6.minor_service_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":o6.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:link",1]],paint:{"line-color":o6.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1.5]}},{id:"roads_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_major_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.major_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_highway_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.highway_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_other",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":o6.other,"line-dasharray":[3,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_link",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:link",1]],paint:{"line-color":o6.link,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_minor_service",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":o6.minor_service,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8]}},{id:"roads_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":["interpolate",["exponential",1.6],["zoom"],11,o6.minor_a,16,o6.minor_b],"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_major_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.major_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,
918,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_major",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_highway_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.highway_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1]}},{id:"roads_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"transit_railway",type:"line",source:e,"source-layer":"transit",filter:["all",["==","pmap:kind","rail"]],paint:{"line-dasharray":[.3,.75],"line-opacity":.5,"line-color":o6.railway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,.15,18,9]}},{id:"boundaries_country",type:"line",source:e,"source-layer":"boundaries",filter:["<=","pmap:min_admin_level",2],paint:{"line-color":o6.boundaries,"line-width":1,"line-dasharray":[3,2]}},{id:"boundaries",type:"line",source:e,"source-layer":"boundaries",filter:[">","pmap:min_admin_level",2],paint:{"line-color":o6.boundaries,"line-width":.5,"line-dasharray":[3,2]}},{id:"roads_bridges_other_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":o6.bridges_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":o6.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1.5]}},{id:"roads_bridges_minor_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":o6.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_bridges_medium_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.bridges_medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_bridges_major_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.bridges_major_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,10],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1.5]}},{id:"roads_bridges_other",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":o6.bridges_other,"line-dasharray":[2,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_minor",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":o6.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_bridges_link",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":o6.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_bridges_medium",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":o6.bridges_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_bridges_major",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":o6.bridges_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_bridges_highway_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.bridges_highway_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_bridges_highway",type:"line",source:e,"source-layer":"roads",filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":o6.bridges_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}}]).concat([{id:"physical_line_waterway_label",type:"symbol",source:t="protomaps","source-layer":"physical_line",minzoom:13,filter:["all",["in","pmap:kind","river","stream"]],layout:{"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12,"text-letter-spacing":.3},paint:{"text-color":o6.waterway_label}},{id:"physical_point_peak",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["==","pmap:kind","peak"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],10,8,16,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":o6.peak_label,"text-halo-width":1.5}},{id:"roads_labels_minor",type:"symbol",source:t,"source-layer":"roads",minzoom:15,filter:["any",["in","pmap:kind","minor_road","other","path"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":o6.roads_label_minor,"text-halo-color":o6.roads_label_minor_halo,"text-halo-width":2}},{id:"physical_point_ocean",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["in","pmap:kind","sea","ocean","lake","water","bay","strait","fjord"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,10,10,12],"text-letter-spacing":.1,"text-max-width":9,"text-transform":"uppercase"},paint:{"text-color":o6.ocean_label}},{id:"physical_point_lakes",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["in","pmap:kind","lake","water"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,0,6,12,10,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":o6.ocean_label}},{id:"roads_labels_major",type:"symbol",source:t,"source-layer":"roads",minzoom:11,filter:["any",["in","pmap:kind","highway","major_road","medium_road"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":o6.roads_label_major,"text-halo-color":o6.roads_label_major_halo,"text-halo-width":2}},{id:"places_subplace",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","neighbourhood"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-max-width":7,"text-letter-spacing":.1,"text-padding":["interpolate",["linear"],["zoom"],5,2,8,4,12,18,15,20],"text-size":["interpolate",["exponential",1.2],["zoom"],11,8,14,14,18,24],"text-transform":"uppercase"},paint:{"text-color":o6.subplace_label,"text-halo-color":o6.subplace_label_halo,"text-halo-width":2}},{id:"pois_important",type:"symbol",source:t,"source-layer":"pois",filter:["any",["<",["get","pmap:min_zoom"],13]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":11,"text-max-width":9,"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2]},paint:{"text-color":o6.subplace_label,"text-halo-color":o6.subplace_label_halo,"text-halo-width":1.5}}
9,{id:"places_locality_circle",type:"circle",source:t,"source-layer":"places",filter:["==","pmap:kind","locality"],paint:{"circle-radius":2,"circle-stroke-width":1.5,"circle-stroke-color":o6.city_circle_stroke,"circle-color":o6.city_circle,"circle-translate":[-6,0]},maxzoom:8},{id:"places_locality",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","locality"],layout:{"text-field":"{name}","text-font":["case",["<=",["get","pmap:min_zoom"],5],["literal",["Inter-Medium"]],["literal",["Inter-Medium"]]],"text-padding":["interpolate",["linear"],["zoom"],5,3,8,7,12,11],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],13],8,[">=",["get","pmap:population_rank"],13],13,0],4,["case",["<",["get","pmap:population_rank"],13],10,[">=",["get","pmap:population_rank"],13],15,0],6,["case",["<",["get","pmap:population_rank"],12],11,[">=",["get","pmap:population_rank"],12],17,0],8,["case",["<",["get","pmap:population_rank"],11],11,[">=",["get","pmap:population_rank"],11],18,0],10,["case",["<",["get","pmap:population_rank"],9],12,[">=",["get","pmap:population_rank"],9],20,0],15,["case",["<",["get","pmap:population_rank"],8],12,[">=",["get","pmap:population_rank"],8],22,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,8,4,10,8,12,6,22,2],"text-anchor":["step",["zoom"],"left",8,"center"],"text-radial-offset":.2},paint:{"text-color":o6.city_label,"text-halo-color":o6.city_label_halo,"text-halo-width":1}},{id:"places_region",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","region"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":["step",["zoom"],["get","name:short"],6,["get","name"]],"text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],3,11,7,16],"text-radial-offset":.2,"text-anchor":"center","text-transform":"uppercase"},paint:{"text-color":o6.state_label,"text-halo-color":o6.state_label_halo,"text-halo-width":2}},{id:"places_country",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","country"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],10],8,[">=",["get","pmap:population_rank"],10],12,0],6,["case",["<",["get","pmap:population_rank"],8],10,[">=",["get","pmap:population_rank"],8],18,0],8,["case",["<",["get","pmap:population_rank"],7],11,[">=",["get","pmap:population_rank"],7],20,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2],"text-transform":"uppercase"},paint:{"text-color":o6.country_label}}])}()},[g,y]=(0,c.useState)(null),v=(0,c.useRef)(null),x=(0,c.useCallback)((e,t)=>{v.current.flyTo({center:{lat:e,lng:t},zoom:a.f.center,essential:!0})},[]),_=(0,c.useCallback)(e=>{var t;let n=e.features[0];if(null==n||null==(t=n.properties)?void 0:t.id){let e=i.find(e=>e.id===n.properties.id),{lat:t,lng:r}=e;x(t,r),y(e),l(e),(0,q.t4)({link:{name:"partner_map_pin",text:(0,G.y4)(e.name),url:""},component:{name:"partner_search_map",type:"map",section:"unique"}})}},[i,x,l,q.t4]),b=(0,c.useCallback)(e=>{let{viewState:i}=e,r={lat:i.latitude,lng:i.longitude};if(o&&r){let e={lat:Math.abs(o.lat-r.lat),lng:Math.abs(o.lng-r.lng)},{locationDifferenceAllowed:t}=a.h.searchThisArea;e.lat>t||e.lng>t?(p(!0),h(r)):p(!1)}if(t){let{Place:{Geometry:{Point:e}}}=t,[i,r]=e;s({lat:r,lng:i}),n(null)}},[o,t,s,n]);return(0,c.useEffect)(()=>(Y.addProtocol("pmtiles",new X.Zs().tile),()=>{Y.removeProtocol("pmtiles")}),[]),(0,c.useEffect)(()=>{let e=v.current,{index:t,lat:n,lng:i}=r;e&&t>=0&&n&&i&&x(n,i)},[r,v,x]),(0,W.jsxs)(N,{ref:v,mapLib:Y,initialViewState:m,minZoom:a.f.min,maxZoom:a.f.max,mapStyle:f,interactiveLayerIds:[oN.id,o$.id,oH.id],onClick:_,onDragEnd:b,style:{height:"100%",width:"100%"},children:[u&&(0,W.jsx)(oX,{centerLocationDragend:d}),(0,W.jsx)(oW,{getNearGyms:i,mapOSMRef:v}),(0,W.jsx)(o3,{popupInfo:g,setPopupInfo:y}),(0,W.jsx)(I,{position:"top-right"}),(0,W.jsx)(D,{position:"bottom-right",showCompass:!1})]})})},78007:()=>{}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.