@windstream/react-shared-components 0.2.91 → 0.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful/index.d.ts +8 -4
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/contentful/blocks/callout/{callout.stories.tsx → Callout.stories.tsx} +1 -1
- package/src/contentful/blocks/cards/product-card/index.test.tsx +18 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +1 -0
- package/src/contentful/blocks/cards/product-card/types.ts +8 -1
- package/src/contentful/blocks/navigation/{navigation.stories.tsx → Navigation.stories.tsx} +1 -1
- package/src/contentful/blocks/primary-hero/index.test.tsx +2 -2
- /package/src/contentful/blocks/carousel/{carousel.stories.tsx → Carousel.stories.tsx} +0 -0
package/dist/contentful/index.js
CHANGED
|
@@ -14,7 +14,7 @@ function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r
|
|
|
14
14
|
v0.8.1 (c) Kyle Simpson
|
|
15
15
|
MIT License: http://getify.mit-license.org
|
|
16
16
|
*/
|
|
17
|
-
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=s(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?o(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&o(a,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(a,t))}function d(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function p(e){this.def=e,this.triggered=!1}function m(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new m(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&o(a,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var f=e({},"constructor",h,!1);return h.prototype=f,e(f,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;d(t,e,function(e,t){o[e]=t,++s===i&&n(o)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=wr)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])},Cr(Ir={exports:{}},Ir.exports),Ir.exports);const Er=new WeakMap;function Ar(e,t,n){const r=Er.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Er.set(e.element,r)}function jr(e,t){return(Er.get(e.element)||{})[t]||[]}function Tr(e,t,n){const r=Er.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Er.set(e.element,r),!0;const i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),Er.set(e.element,r),r[t]&&0===r[t].length}function Sr(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function kr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function Pr(e,t){let n,r=[];if((t=Sr(t)).event){if("error"===t.event){jr(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),Tr(e,t.data.method,n)})}r=jr(e,`event:${t.event}`),n=t.data}else if(t.method){const i=function(e,t){const n=jr(e,t);if(n.length<1)return!1;const r=n.shift();return Tr(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const Rr=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Br(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rr.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function Lr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,i)=>{if(!hr(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const o=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let s=`https://${o}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(s+=`&${e}=${encodeURIComponent(t[e])}`);const a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",s,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{const t=JSON.parse(a.responseText);if(403===t.domain_status_code)return Lr(t,n),void i(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){i(e)}else i(new Error(`“${e}” is not embeddable.`));else i(new Error(`“${e}” was not found.`))},a.onerror=function(){const e=a.status?` (${a.status})`:"";i(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},a.send()})}const Gr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class Mr extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...Gr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=br(e,"change",()=>this.updatePlayer(e,t,n)),i=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{i.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=br(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,i]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:i})}async updatePlayer(e,t,n){const{position:r,velocity:i}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof i&&(0===i?!1===await t.getPaused()&&t.pause():i>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==i&&t.setPlaybackRate(i)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:i,minCheckInterval:o,maxRateAdjustment:s,maxTimeToCatchUp:a}=n,l=1e3*Math.min(a,Math.max(o,i)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),o=Math.abs(n);if(this.log(`Drift: ${n}`),o>i)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(o>r){const e=o/a,r=e<s?(s-e)/2:s;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const Dr=new WeakMap,Vr=new WeakMap;let Fr={};class Hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!hr(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Dr.has(e))return Dr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Nr((n,r)=>{if(this._onMessage=e=>{if(!hr(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=Sr(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const i=t&&"ready"===t.event,o=t&&"ping"===t.method;if(i||o)return this.element.setAttribute("data-ready","true"),void n();Pr(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=Br(e,t);Or(gr(n),n,e).then(t=>{const n=Lr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Er.get(e);Er.set(t,n),Er.delete(e)}(e,n),Dr.set(this.element,this),t}).catch(r)}});if(Vr.set(this,n),Dr.set(this.element,this),"IFRAME"===this.element.nodeName&&kr(this,"ping"),Fr.isEnabled){const e=()=>Fr.exit();this.fullscreenchangeHandler=()=>{Fr.isFullscreen?Ar(this,"event:exitFullscreen",e):Tr(this,"event:exitFullscreen",e),this.ready().then(()=>{kr(this,"fullscreenchange",Fr.isFullscreen)})},Fr.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return hr(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Nr((t,r)=>this.ready().then(()=>{Ar(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),kr(this,e,n)}).catch(r))}get(e){return new Nr((t,n)=>(e=mr(e,"get"),this.ready().then(()=>{Ar(this,e,{resolve:t,reject:n}),kr(this,e)}).catch(n)))}set(e,t){return new Nr((n,r)=>{if(e=mr(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{Ar(this,e,{resolve:n,reject:r}),kr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===jr(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),Ar(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");Tr(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=Vr.get(this)||new Nr((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Nr.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return Fr.isEnabled?Fr.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return Fr.isEnabled?Fr.exit():this.callMethod("exitFullscreen")}getFullscreen(){return Fr.isEnabled?Nr.resolve(Fr.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Nr(e=>{if(Vr.delete(this),Dr.delete(this.element),this._originalElement&&(Dr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),Fr.isEnabled&&Fr.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Nr.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Nr((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Nr(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Nr.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new Mr(this,e,t);return kr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>kr(this,"notifyTimingObjectDisconnect")),n}}pr||(Fr=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,i={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,i)=>{const o=function(){n.off("fullscreenchange",o),r()};n.on("fullscreenchange",o);const s=(t=t||document.documentElement)[e.requestFullscreen]();s instanceof Promise&&s.then(o).catch(i)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const i=function(){n.off("fullscreenchange",i),t()};n.on("fullscreenchange",i);const o=document[e.exitFullscreen]();o instanceof Promise&&o.then(i).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=Br(e);Or(gr(t),t,e).then(t=>Lr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!hr(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?vr(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!hr(t.origin))return;const n=Sr(t.data);if(!n||"ready"!==n.event)return;const r=t.source?vr(t.source,e):null;r&&fr(r.src)&&new Hr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!hr(n.origin))return;const r=Sr(n.data);if(!r||"ready"!==r.event)return;const i=n.source?vr(n.source,e):null;if(i&&fr(i.src)){const e=new Hr(i);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!hr(e.origin))return;const t=Sr(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?vr(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const Wr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const i=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!i)return"";const o=n[n.length-1];return i===o?i:`${i}/${o}`},Xr=n=>{const{link:r,title:i,containerClassName:o,autoplay:s=!1,debug:a=!1,onPlay:l,onPause:c,onTimeUpdate:u,onEnded:d,onFullscreenToggle:p}=n,m=t.useRef(null),{href:h,embedId:f}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString();return{href:e,embedId:Wr(e)}},[r]);if(a&&console.log("[VimeoEmbed] href:",h,"id:",f),t.useEffect(()=>{if(!f||!m.current)return;const e=new Hr(m.current),t=()=>null==l?void 0:l(),n=()=>null==c?void 0:c(),r=()=>null==d?void 0:d(),i=e=>null==u?void 0:u(e.seconds,e.duration),o=e=>null==p?void 0:p(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",i),e.on("fullscreenchange",o),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",i),e.off("fullscreenchange",o),e.destroy().catch(()=>{})}},[f]),!f)return null;const g=new URLSearchParams({autoplay:s?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),b=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],i=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${i}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${f}?${g.toString()}`);return e.jsx("div",{className:Ee("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:b,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:i||"Embedded vimeo"})})};let zr=null;const _r=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},Zr=n=>{const{link:r,title:i,containerClassName:o,autoplay:s=!1,onPlay:a,onPause:l,onTimeUpdate:c,onEnded:u,onFullscreenToggle:d}=n,p=t.useMemo(()=>_r(r),[r]),m=t.useRef(null),h=t.useRef();if(or(m,d),t.useEffect(()=>{if(!p||!m.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):zr||(zr=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{zr=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),zr)}().then(n=>{!t&&m.current&&(e=new n.Player(m.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==a||a(),clearInterval(h.current),h.current=setInterval(()=>{var t,n,r,i;const o=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,s=null!==(i=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==i?i:0;null==c||c(s,o)},1e3)):t.data===r.PAUSED?(null==l||l(),clearInterval(h.current)):t.data===r.ENDED&&(null==u||u(),clearInterval(h.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(h.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[p]),!p)return null;const f=new URLSearchParams({enablejsapi:"1",autoplay:s?"1":"0",mute:s?"1":"0",playsinline:"1",rel:"0"}),g=`https://www.youtube.com/embed/${p}?${f.toString()}`;return e.jsx("div",{className:Ee("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:g,title:i||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},Yr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(u.default),Ur=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let i;try{i=new URL(r)}catch(t){return e}return i.searchParams.set("w",String(t)),i.searchParams.set("q",String(n||90)),i.searchParams.set("fm","webp"),i.toString()},Jr=t.forwardRef(({className:t,...n},r)=>{const i="string"==typeof n.src?n.src:"",o=i.toLowerCase().split("?")[0]||"",s=i.includes("images.ctfassets.net"),a=s&&o.endsWith(".svg"),l=s&&!a?{loader:Ur,unoptimized:!1}:{unoptimized:a};return e.jsx(Yr,{ref:r,className:Ee(t),...n,...l})});Jr.displayName="NextImage";const $r=[25,50,75];const Kr=({videoLink:n,imageWidth:r=660,imageHeight:i=660,useOriginalImageAspectRatio:o=!1,isAboveTheFold:s=!1,onVideoEvent:a})=>{var l;const[c,u]=t.useState(""),[d,p]=t.useState(!1),m=function(e){const n=t.useRef(new Set),r=t.useRef(!1),i=t.useRef(0),o=t.useRef(0),s=(t,n,r)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:i.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(i.current/o.current*100)):0,...r})};return{handlePlay:e=>s(e,"played"),handlePause:e=>s(e,"paused"),handleFullscreenToggle:(e,t)=>s(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>s(e,"closed"),handleTimeUpdate:(e,t,a)=>{const l=Number.isFinite(t)?t:0,c=Number.isFinite(a)?a:0;if(i.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);$r.forEach(t=>{u>=t&&!n.current.has(t)&&(n.current.add(t),s(e,"progress"))}),u>=99.5&&!r.current&&(r.current=!0,s(e,"completed"))},handleEnded:e=>{r.current||(r.current=!0,o.current>0&&(i.current=o.current),s(e,"completed"))},reset:()=>{n.current=new Set,r.current=!1,i.current=0,o.current=0}}}(a),h=null==n?void 0:n.videoSourceType,f="contentful"===h?null==n?void 0:n.videoAssetUrl:null==n?void 0:n.link,g="string"==typeof f?f:"",b=null==n?void 0:n.image;if(!g)return b?e.jsx("div",{className:Ee(o?"overflow-hidden rounded-image":"relative mx-auto aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e.jsx(Jr,{src:b,alt:"section-image",priority:s,fill:!o,width:o?r||660:void 0,height:o?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:Ee(o?"w-full":"object-cover")})}):null;const v=null!==(l=null==n?void 0:n.videoPopup)&&void 0!==l&&l,x=Boolean(c&&c===g),y="contentful"===h?"contentful":g.includes("vimeo")?"vimeo":"youtube",w="contentful"===y?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==n?void 0:n.videoAssetUrl):"vimeo"===y?(C=g)?Wr(C.toString()):"":_r(g);var C;const I={videoId:w,videoTitle:null==n?void 0:n.title,provider:y},N=()=>{x||(m.reset(),u(g))},E=e=>{e.stopPropagation(),m.handleClosed(I),u("")},A="string"==typeof(null==n?void 0:n.title)?n.title.trim():"",j=A?`${A} video preview`:"Video preview",T=A?`Play video: ${A}`:"Play video",S=(()=>{const t={onPlay:()=>m.handlePlay(I),onPause:()=>m.handlePause(I),onTimeUpdate:(e,t)=>m.handleTimeUpdate(I,e,t),onEnded:()=>m.handleEnded(I),onFullscreenToggle:e=>m.handleFullscreenToggle(I,e)},r=x?"playing":"idle";return"contentful"===h?e.jsx(sr,{videoAssetUrl:null==n?void 0:n.videoAssetUrl,videoAssetType:null==n?void 0:n.videoAssetType,image:b,title:null==n?void 0:n.title,description:null==n?void 0:n.description,autoplay:x,...t},r):g.includes("vimeo")?e.jsx(Xr,{link:g,title:null==n?void 0:n.title,autoplay:x,...t},r):e.jsx(Zr,{link:g,title:null==n?void 0:n.title,autoplay:x,...t},r)})();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:Ee("video-section relative mx-auto w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!x&&"hover:ring-2 hover:ring-border-focus"),onClick:N,onKeyDown:e=>{x||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),N())},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),role:x?void 0:"button",tabIndex:x?void 0:0,"aria-label":x?void 0:T,children:[e.jsxs("div",{className:Ee(x&&!v&&"hidden",x&&!v?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[b&&e.jsx(Jr,{src:b,alt:j,width:r||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx(ar,{isHovered:d})})]}),!v&&e.jsx("div",{className:Ee("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",x?"opacity-100":"hidden",!o&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:S})]}),v&&e.jsx("div",{className:Ee("z-[100] transition-all duration-300",x?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:E,children:e.jsxs("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e.jsx("button",{type:"button",onClick:E,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e.jsx(qn,{name:"close",className:"text-white"})}),S]})})]})},Qr=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),qr=(e,t)=>{var n,r,i,o,s,a,l,c;const u=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;if((null==u?void 0:u.fields)||(null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType))return u;const d=null===(i=null==u?void 0:u.sys)||void 0===i?void 0:i.id;if(!d)return null;return null!==(c=[...null!==(s=null===(o=null==t?void 0:t.entries)||void 0===o?void 0:o.block)&&void 0!==s?s:[],...null!==(l=null===(a=null==t?void 0:t.entries)||void 0===a?void 0:a.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==c?c:null},ei=e=>{var t,n,r,i,o;return null!==(o=null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===n?void 0:n.sys)||void 0===r?void 0:r.id)&&void 0!==i?i:null==e?void 0:e.__typename)&&void 0!==o?o:""},ti=e=>{var t,n;return null!==(n=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==n?n:{}},ni=e=>{var t,n,r,i,o,s,a,l,c,u,d,p,m,h,f,g,b,v,x,y,w,C,I;return{image:null!==(s=null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.file)||void 0===r?void 0:r.url)&&void 0!==i?i:null===(o=null==e?void 0:e.image)||void 0===o?void 0:o.url)&&void 0!==s?s:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(c=null===(l=null===(a=null==e?void 0:e.link)||void 0===a?void 0:a.fields)||void 0===l?void 0:l.href)&&void 0!==c?c:null===(u=null==e?void 0:e.link)||void 0===u?void 0:u.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(g=null!==(h=null===(m=null===(p=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===p?void 0:p.file)||void 0===m?void 0:m.url)&&void 0!==h?h:null===(f=null==e?void 0:e.videoAssetUrl)||void 0===f?void 0:f.url)&&void 0!==g?g:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(C=null!==(y=null===(x=null===(v=null===(b=null==e?void 0:e.videoAssetUrl)||void 0===b?void 0:b.fields)||void 0===v?void 0:v.file)||void 0===x?void 0:x.contentType)&&void 0!==y?y:null===(w=null==e?void 0:e.videoAssetUrl)||void 0===w?void 0:w.contentType)&&void 0!==C?C:null==e?void 0:e.videoAssetType,title:null!==(I=null==e?void 0:e.title)&&void 0!==I?I:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},ri=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},ii=e=>{const t=e.toLowerCase().replace(/\.$/,""),n=t.split(".").slice(-2).join("."),r=(t.slice(0,t.length-n.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${n}|${""===r||"www"===r||"kinetic"===r?"main":r}`},oi=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),n=ri(process.env.NEXT_PUBLIC_SITE_URL)||ri(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!n||ii(t)!==ii(n)}catch(e){return!1}},si=t=>({renderText:t=>t.includes("[")&&t.includes("]")?(t=>{const n=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let i,o=0;for(;null!==(i=n.exec(t));)i.index>o&&r.push(t.substring(o,i.index)),r.push(e.jsx(qn,{name:i[1],size:20,className:"inline-block align-middle"},`icon-${i.index}-${i[1]}`)),o=i.index+i[0].length;return o<t.length&&r.push(t.substring(o)),r.length>0?r:[t]})(t):t,renderMark:{[an.BOLD]:t=>e.jsx("strong",{className:"font-black",children:t}),[an.ITALIC]:t=>e.jsx("em",{children:t}),[an.UNDERLINE]:t=>e.jsx("u",{children:t}),[an.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[on.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4 whitespace-pre-line",children:Qr(t)?"\n":n}),[on.HEADING_1]:(t,n)=>e.jsx(er,{as:"h1",className:"heading2 md:heading1",children:n}),[on.HEADING_2]:(t,n)=>e.jsx(er,{as:"h2",className:"heading3 md:heading2",children:n}),[on.HEADING_3]:(t,n)=>e.jsx(er,{as:"h3",className:"heading4 md:heading3",children:n}),[on.HEADING_4]:(t,n)=>e.jsx(er,{as:"h4",className:"heading5 md:heading4",children:n}),[on.HEADING_5]:(t,n)=>e.jsx(er,{as:"h5",className:"heading6 md:heading5",children:n}),[on.HEADING_6]:(t,n)=>e.jsx(er,{as:"h6",className:"heading6",children:n}),[on.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[on.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-6",children:n}),[on.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-6",children:n}),[on.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[sn.HYPERLINK]:(t,n)=>{var r;const i=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,o=oi(i);return e.jsx("a",{href:i,target:o?"_blank":void 0,rel:o?"noopener":void 0,children:n})},[on.EMBEDDED_ASSET]:t=>{var n,r;const i=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,o=null==i?void 0:i.fields,s=(null==i?void 0:i.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),a=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!s)return null;const l=s.startsWith("//")?`https:${s}`:s;return e.jsx("img",{src:l,alt:a,style:{maxWidth:"100%"}})},[on.EMBEDDED_ENTRY]:n=>{const r=qr(n,t);if(!r)return null;const i=ei(r),o=ti(r);switch(i){case"callout":return e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:o.title}),e.jsx("div",{children:o.body})]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(Kr,{videoLink:ni(o)});default:return null}},[sn.EMBEDDED_ENTRY]:n=>{var r;const i=qr(n,t);if(!i)return null;const o=ei(i),s=ti(i);switch(o){case"componentCheckList":return e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",s.title]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(Kr,{videoLink:ni(s)});default:return e.jsx("span",{children:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:""})}}}});function ai(t,n,r="body1",i="body1 font-bold",o,s,a="body2"){if(!t||!Array.isArray(t.content))return null;const l=new WeakSet,c=(e,t=!1)=>{var n;const r=t||(null==e?void 0:e.nodeType)===on.LIST_ITEM;r&&(null==e?void 0:e.nodeType)===sn.HYPERLINK&&l.add(e),null===(n=null==e?void 0:e.content)||void 0===n||n.forEach(e=>c(e,r))};c(t);const u=si(s),d={...u,...o,renderNode:{...u.renderNode,...null==o?void 0:o.renderNode,[on.PARAGRAPH]:(t,n)=>e.jsx("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:Qr(t)?"\n":n}),[sn.HYPERLINK]:(t,r)=>{var o;const s=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.uri,c=oi(s),u=null!=n?n:c;return e.jsx(ir,{href:s,target:u?"_blank":void 0,rel:u?"noopener":void 0,variant:"default",className:l.has(t)?a:i,children:r})}}};return rn.documentToReactComponents(t,d)}const li={renderMark:{[an.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const ci=t.forwardRef(({children:t,className:n="",style:r,disabled:i,...o},s)=>e.jsx("button",{ref:s,className:Ee(n),style:r,disabled:i,...o,children:t}));ci.displayName="Button";const ui=n=>{const{open:r,children:i}=n,o=t.useRef(null),[s,a]=t.useState(0);t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,i]);const l=r?{}:{inert:""};return e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,...l,children:e.jsx("div",{ref:o,children:i})})};ui.displayName="Collapse";const di=n=>{const{title:r,defaultOpen:i,children:o,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,iconClassName:u,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[m,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(i))},[d,i]),e.jsxs("div",{className:Ee(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(ci,{type:"button",className:Ee(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:Ee("label5 flex-1",a),children:r}),e.jsx(qn,{className:Ee("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(ui,{open:m,children:e.jsx("div",{className:Ee("px-4 py-4",l),children:o})})]})};di.displayName="Accordion";const pi=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ee("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};pi.displayName="Divider";const mi={slow:30,medium:20,fast:10},hi={cream:"bg-[#FFFEEF]",gray90:"bg-[#FBFBFC]",white:"bg-white"},fi=(t,n,r=!1,i=!1,o=!0)=>{var s,a,l;const{iconUrl:c,iconAlt:u,iconWidth:d,iconHeight:p,mobileIconUrl:m,mobileIconAlt:h,mobileIconWidth:f,mobileIconHeight:g,title:b,description:v}=t,x=Boolean(b||v),y=i&&Boolean(m);return e.jsxs("div",{className:Ee("flex flex-shrink-0 items-center whitespace-nowrap",r?"mx-auto w-full justify-center":"ml-4 w-auto"),children:[y?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:m,alt:null!==(s=null!=h?h:u)&&void 0!==s?s:"",width:f,height:g,className:"h-auto w-full max-w-[1100px] sm:hidden"}),e.jsx("img",{src:c,alt:null!=u?u:"",width:d,height:p,className:"hidden h-auto w-full max-w-[1100px] sm:block"})]}):e.jsx("img",{src:c,alt:null!=u?u:"",width:d,height:p,className:r?"h-auto w-full max-w-[1100px]":"w-[200px]"}),x&&e.jsxs("div",{className:"w-[250px] text-center",children:[e.jsx("p",{className:"flex justify-center text-center text-body3 font-bold",...o?null===(a=t.fieldProps)||void 0===a?void 0:a.title:void 0,children:b}),e.jsx("p",{className:"flex flex-wrap whitespace-normal text-center text-footnote",...o?null===(l=t.fieldProps)||void 0===l?void 0:l.description:void 0,children:v})]})]},n)},gi="pop",bi=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),vi=t.createContext({}),xi=t.createContext(null),yi="undefined"!=typeof document,wi=yi?t.useLayoutEffect:t.useEffect,Ci=t.createContext({strict:!1});function Ii(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ni(e){return"string"==typeof e||Array.isArray(e)}function Ei(e){return"object"==typeof e&&"function"==typeof e.start}const Ai=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ji=["initial",...Ai];function Ti(e){return Ei(e.animate)||ji.some(t=>Ni(e[t]))}function Si(e){return Boolean(Ti(e)||e.variants)}function ki(e){const{initial:n,animate:r}=function(e,t){if(Ti(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ni(t)?t:void 0,animate:Ni(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(vi));return t.useMemo(()=>({initial:n,animate:r}),[Pi(n),Pi(r)])}function Pi(e){return Array.isArray(e)?e.join(" "):e}const Ri={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bi={};for(const e in Ri)Bi[e]={isEnabled:t=>Ri[e].some(e=>!!t[e])};const Li=t.createContext({}),Oi=t.createContext({}),Gi=Symbol.for("motionComponentSymbol");function Mi({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}(e);const s=t.forwardRef(function(s,a){let c;const u={...t.useContext(bi),...s,layoutId:Di(s)},{isStatic:d}=u,p=ki(s),m=i(s,d);if(!d&&yi){p.visualElement=function(e,n,r,i){const{visualElement:o}=t.useContext(vi),s=t.useContext(Ci),a=t.useContext(xi),l=t.useContext(bi).reducedMotion,c=t.useRef();i=i||s.renderer,!c.current&&i&&(c.current=i(e,{visualState:n,parent:o,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),wi(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?wi:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(o,m,u,n);const r=t.useContext(Oi),i=t.useContext(Ci).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,i,e,r))}return l.createElement(vi.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Ii(r)&&(r.current=t))},[n])}(m,p.visualElement,a),m,d,p.visualElement))});return s[Gi]=o,s}function Di({layoutId:e}){const n=t.useContext(Li).id;return n&&void 0!==e?n+"-"+e:e}function Vi(e){function t(t,n={}){return Mi(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Fi=["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 Hi(e){return"string"==typeof e&&!e.includes("-")&&!!(Fi.indexOf(e)>-1||/[A-Z]/.test(e))}const Wi={};const Xi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zi=new Set(Xi);function _i(e,{layout:t,layoutId:n}){return zi.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Wi[e]||"opacity"===e)}const Zi=e=>Boolean(e&&e.getVelocity),Yi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ui=Xi.length;const Ji=e=>t=>"string"==typeof t&&t.startsWith(e),$i=Ji("--"),Ki=Ji("var(--"),Qi=(e,t)=>t&&"number"==typeof e?t.transform(e):e,qi=(e,t,n)=>Math.min(Math.max(n,e),t),eo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},to={...eo,transform:e=>qi(0,1,e)},no={...eo,default:1},ro=e=>Math.round(1e5*e)/1e5,io=/(-)?([\d]*\.?[\d])+/g,oo=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,so=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ao(e){return"string"==typeof e}const lo=e=>({test:t=>ao(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),co=lo("deg"),uo=lo("%"),po=lo("px"),mo=lo("vh"),ho=lo("vw"),fo={...uo,parse:e=>uo.parse(e)/100,transform:e=>uo.transform(100*e)},go={...eo,transform:Math.round},bo={borderWidth:po,borderTopWidth:po,borderRightWidth:po,borderBottomWidth:po,borderLeftWidth:po,borderRadius:po,radius:po,borderTopLeftRadius:po,borderTopRightRadius:po,borderBottomRightRadius:po,borderBottomLeftRadius:po,width:po,maxWidth:po,height:po,maxHeight:po,size:po,top:po,right:po,bottom:po,left:po,padding:po,paddingTop:po,paddingRight:po,paddingBottom:po,paddingLeft:po,margin:po,marginTop:po,marginRight:po,marginBottom:po,marginLeft:po,rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:no,scaleX:no,scaleY:no,scaleZ:no,skew:co,skewX:co,skewY:co,distance:po,translateX:po,translateY:po,translateZ:po,x:po,y:po,z:po,perspective:po,transformPerspective:po,opacity:to,originX:fo,originY:fo,originZ:po,zIndex:go,fillOpacity:to,strokeOpacity:to,numOctaves:go};function vo(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if($i(e)){o[e]=n;continue}const r=bo[e],d=Qi(n,r);if(zi.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):i[e]=d}if(t.transform||(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<Ui;t++){const n=Xi[t];void 0!==e[n]&&(o+=`${Yi[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}const xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yo(e,t,n){for(const r in t)Zi(t[r])||_i(r,n)||(e[r]=t[r])}function wo(e,n,r){const i={};return yo(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return vo(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(i):i}function Co(e,t,n){const r={},i=wo(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Io=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function No(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Io.has(e)}let Eo=e=>!No(e);try{(Ao=require("@emotion/is-prop-valid").default)&&(Eo=e=>e.startsWith("on")?!No(e):Ao(e))}catch(Ed){}var Ao;function jo(e,t,n){return"string"==typeof e?e:po.transform(t+n*e)}const To={offset:"stroke-dashoffset",array:"stroke-dasharray"},So={offset:"strokeDashoffset",array:"strokeDasharray"};function ko(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(vo(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${jo(t,e.x,e.width)} ${jo(n,e.y,e.height)}`}(f,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?To:So;e[o.offset]=po.transform(-r);const s=po.transform(t),a=po.transform(n);e[o.array]=`${s} ${a}`}(m,s,a,l,!1)}const Po=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Ro=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Bo(e,n,r,i){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ko(t,n,{enableHardwareAcceleration:!1},Ro(i),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};yo(t,e.style,e),o.style={...t,...o.style}}return o}function Lo(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Hi(n)?Bo:Co)(r,o,s,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Eo(i)||!0===n&&No(i)||!t&&!No(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:i},{children:u}=r,d=t.useMemo(()=>Zi(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const Oo=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Go(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Mo=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 Do(e,t,n,r){Go(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Mo.has(n)?n:Oo(n),t.attrs[n])}function Vo(e,t){const{style:n}=e,r={};for(const i in n)(Zi(n[i])||t.style&&Zi(t.style[i])||_i(i,e))&&(r[i]=n[i]);return r}function Fo(e,t){const n=Vo(e,t);for(const r in e)if(Zi(e[r])||Zi(t[r])){n[-1!==Xi.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Ho(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function Wo(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Xo=e=>Array.isArray(e),zo=e=>Xo(e)?e[e.length-1]||0:e;function _o(e){const t=Zi(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Zo=e=>(n,r)=>{const i=t.useContext(vi),o=t.useContext(xi),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Yo(r,i,o,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,i,o);return r?s():Wo(s)};function Yo(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=_o(o[e]);let{initial:s,animate:a}=e;const l=Ti(e),c=Si(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Ei(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Ho(e,t);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]})}return i}const Uo={useVisualState:Zo({scrapeMotionValuesFromProps:Fo,createRenderState:Po,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ko(n,r,{enableHardwareAcceleration:!1},Ro(t.tagName),e.transformTemplate),Do(t,n)}})},Jo={useVisualState:Zo({scrapeMotionValuesFromProps:Vo,createRenderState:xo})};function $o(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ko=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Qo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function qo(e,t,n,r){return $o(e,t,(e=>t=>Ko(t)&&e(t,Qo(t)))(n),r)}const es=(e,t)=>n=>t(e(n)),ts=(...e)=>e.reduce(es);function ns(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const rs=ns("dragHorizontal"),is=ns("dragVertical");function os(e){let t=!1;if("y"===e)t=is();else if("x"===e)t=rs();else{const e=rs(),n=is();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function ss(){const e=os(!0);return!e||(e(),!1)}class as{constructor(e){this.isMounted=!1,this.node=e}update(){}}const ls={delta:0,timestamp:0,isProcessing:!1};let cs=!0,us=!1;const ds=["read","update","preRender","render","postRender"],ps=ds.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&i,c=l?t:n;return o&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}i=!1,o&&(o=!1,a.process(l))}}};return a}(()=>us=!0),e),{}),ms=e=>ps[e].process(ls),hs=e=>{us=!1,ls.delta=cs?1e3/60:Math.max(Math.min(e-ls.timestamp,40),1),ls.timestamp=e,ls.isProcessing=!0,ds.forEach(ms),ls.isProcessing=!1,us&&(cs=!1,requestAnimationFrame(hs))},fs=ds.reduce((e,t)=>{const n=ps[t];return e[t]=(e,t=!1,r=!1)=>(us||(us=!0,cs=!0,ls.isProcessing||requestAnimationFrame(hs)),n.schedule(e,t,r)),e},{});function gs(e){ds.forEach(t=>ps[t].cancel(e))}function bs(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return qo(e.current,n,(n,i)=>{if("touch"===n.type||ss())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&fs.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}const vs=(e,t)=>!!t&&(e===t||vs(e,t.parentElement)),xs=e=>e;function ys(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Qo(n))}const ws=new WeakMap,Cs=new WeakMap,Is=e=>{const t=ws.get(e.target);t&&t(e)},Ns=e=>{e.forEach(Is)};function Es(e,t,n){const r=function({root:e,...t}){const n=e||document;Cs.has(n)||Cs.set(n,{});const r=Cs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ns,{root:e,...t})),r[i]}(t);return ws.set(e,n),r.observe(e),()=>{ws.delete(e),r.unobserve(e)}}const As={some:0,all:1};const js={inView:{Feature:class extends as{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:As[r]};return Es(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends as{constructor(){super(...arguments),this.removeStartListeners=xs,this.removeEndListeners=xs,this.removeAccessibleListeners=xs,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=qo(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();fs.update(()=>{vs(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=qo(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ts(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=$o(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=$o(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ys("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&fs.update(()=>n(e,t))})}),ys("down",(e,t)=>{this.startPress(e,t)})}),t=$o(this.node.current,"blur",()=>{this.isPressing&&ys("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=ts(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&fs.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ss()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&fs.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=qo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=$o(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ts(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends as{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ts($o(this.node.current,"focus",()=>this.onFocus()),$o(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends as{mount(){this.unmount=ts(bs(this.node,!0),bs(this.node,!1))}unmount(){}}}};function Ts(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ss(e,t,n){const r=e.getProps();return Ho(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const ks="data-"+Oo("framerAppearId");let Ps=xs,Rs=xs;"production"!==process.env.NODE_ENV&&(Ps=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Rs=(e,t)=>{if(!e)throw new Error(t)});const Bs=e=>1e3*e,Ls=e=>e/1e3,Os=!1,Gs=e=>Array.isArray(e)&&"number"==typeof e[0];function Ms(e){return Boolean(!e||"string"==typeof e&&Vs[e]||Gs(e)||Array.isArray(e)&&e.every(Ms))}const Ds=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ds([0,.65,.55,1]),circOut:Ds([.55,0,1,.45]),backIn:Ds([.31,.01,.66,-.59]),backOut:Ds([.33,1.53,.69,.99])};function Fs(e){if(e)return Gs(e)?Ds(e):Array.isArray(e)?e.map(Fs):Vs[e]}const Hs={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ws={},Xs={};for(const e in Hs)Xs[e]=()=>(void 0===Ws[e]&&(Ws[e]=Hs[e]()),Ws[e]);const zs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function _s(e,t,n,r){if(e===t&&n===r)return xs;const i=t=>function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=zs(s,r,i)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:zs(i(e),t,r)}const Zs=_s(.42,0,1,1),Ys=_s(0,0,.58,1),Us=_s(.42,0,.58,1),Js=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$s=e=>t=>1-e(1-t),Ks=e=>1-Math.sin(Math.acos(e)),Qs=$s(Ks),qs=Js(Qs),ea=_s(.33,1.53,.69,.99),ta=$s(ea),na=Js(ta),ra={linear:xs,easeIn:Zs,easeInOut:Us,easeOut:Ys,circIn:Ks,circInOut:qs,circOut:Qs,backIn:ta,backInOut:na,backOut:ea,anticipate:e=>(e*=2)<1?.5*ta(e):.5*(2-Math.pow(2,-10*(e-1)))},ia=e=>{if(Array.isArray(e)){Rs(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return _s(t,n,r,i)}return"string"==typeof e?(Rs(void 0!==ra[e],`Invalid easing type '${e}'`),ra[e]):e},oa=(e,t)=>n=>Boolean(ao(n)&&so.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),sa=(e,t,n)=>r=>{if(!ao(r))return r;const[i,o,s,a]=r.match(io);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},aa={...eo,transform:e=>Math.round((e=>qi(0,255,e))(e))},la={test:oa("rgb","red"),parse:sa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+ro(to.transform(r))+")"};const ca={test:oa("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:la.transform},ua={test:oa("hsl","hue"),parse:sa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+uo.transform(ro(t))+", "+uo.transform(ro(n))+", "+ro(to.transform(r))+")"},da={test:e=>la.test(e)||ca.test(e)||ua.test(e),parse:e=>la.test(e)?la.parse(e):ua.test(e)?ua.parse(e):ca.parse(e),transform:e=>ao(e)?e:e.hasOwnProperty("red")?la.transform(e):ua.transform(e)},pa=(e,t,n)=>-n*e+n*t+e;function ma(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const ha=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},fa=[ca,la,ua];function ga(e){const t=(n=e,fa.find(e=>e.test(n)));var n;Rs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ua&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=ma(a,r,e+1/3),o=ma(a,r,e),s=ma(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const ba=(e,t)=>{const n=ga(e),r=ga(t),i={...n};return e=>(i.red=ha(n.red,r.red,e),i.green=ha(n.green,r.green,e),i.blue=ha(n.blue,r.blue,e),i.alpha=pa(n.alpha,r.alpha,e),la.transform(i))};const va={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:xs},xa={regex:oo,countKey:"Colors",token:"${c}",parse:da.parse},ya={regex:io,countKey:"Numbers",token:"${n}",parse:eo.parse};function wa(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Ca(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&wa(n,va),wa(n,xa),wa(n,ya),n}function Ia(e){return Ca(e).values}function Na(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ca(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(va.token,e[i]):i<r+n?t.replace(xa.token,da.transform(e[i])):t.replace(ya.token,ro(e[i]));return t}}const Ea=e=>"number"==typeof e?0:e;const Aa={test:function(e){var t,n;return isNaN(e)&&ao(e)&&((null===(t=e.match(io))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(oo))||void 0===n?void 0:n.length)||0)>0},parse:Ia,createTransformer:Na,getAnimatableNone:function(e){const t=Ia(e);return Na(e)(t.map(Ea))}},ja=(e,t)=>n=>`${n>0?t:e}`;function Ta(e,t){return"number"==typeof e?n=>pa(e,t,n):da.test(e)?ba(e,t):e.startsWith("var(")?ja(e,t):Pa(e,t)}const Sa=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>Ta(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},ka=(e,t)=>{const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ta(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Pa=(e,t)=>{const n=Aa.createTransformer(t),r=Ca(e),i=Ca(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ts(Sa(r.values,i.values),n):(Ps(!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.`),ja(e,t))},Ra=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ba=(e,t)=>n=>pa(e,t,n);function La(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Ba:"string"==typeof o?da.test(o)?ba:Pa:Array.isArray(o)?Sa:"object"==typeof o?ka:Ba);var o;const s=e.length-1;for(let n=0;n<s;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||xs:t;o=ts(e,o)}r.push(o)}return r}function Oa(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Rs(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=La(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Ra(e[n],e[n+1],t);return s[n](r)};return n?t=>l(qi(e[0],e[o-1],t)):l}function Ga(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ra(0,t,r);e.push(pa(n,1,i))}}(t,e.length-1),t}function Ma({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(ia):ia(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Ga(t),e),a=Oa(s,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||Us).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function Da(e,t){return t?e*(1e3/t):0}function Va(e,t,n){const r=Math.max(t-5,0);return Da(n-e(r),t-r)}const Fa=.001;function Ha({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ps(e<=Bs(10),"Spring duration must be 10 seconds or less");let s=1-t;s=qi(.05,1,s),e=qi(.01,10,Ls(e)),s<1?(i=t=>{const r=t*s,i=r*e,o=r-n,a=Xa(t,s),l=Math.exp(-i);return Fa-o/a*l},o=t=>{const r=t*s*e,o=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Xa(Math.pow(t,2),s);return(-i(t)+Fa>0?-1:1)*((o-a)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Wa;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=Bs(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const Wa=12;function Xa(e,t){return e*Math.sqrt(1-t*t)}const za=["duration","bounce"],_a=["stiffness","damping","mass"];function Za(e,t){return t.some(t=>void 0!==e[t])}function Ya({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Za(e,_a)&&Za(e,za)){const n=Ha(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Ls(u):0,h=l/(2*Math.sqrt(a*c)),f=o-i,g=Ls(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Xa(g,h);v=t=>{const n=Math.exp(-h*g*t);return o-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return o-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let i=m;0!==e&&(i=h<1?Va(v,e,r):0);const a=Math.abs(i)<=n,l=Math.abs(o-r)<=t;s.done=a&&l}return s.value=s.done?o:r,s}}}function Ua({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,w;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,w=Ya({keyframes:[p.value,m(p.value)],velocity:Va(v,e,p.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?w.next(e-y):(!t&&x(e),p)}}}const Ja=e=>{const t=({timestamp:t})=>e(t);return{start:()=>fs.update(t,!0),stop:()=>gs(t),now:()=>ls.isProcessing?ls.timestamp:performance.now()}};function $a(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const Ka={decay:Ua,inertia:Ua,tween:Ma,keyframes:Ma,spring:Ya};function Qa({autoplay:e=!0,delay:t=0,driver:n=Ja,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=Ka[i]||Ma;let y;x!==Ma&&"number"!=typeof r[0]&&(y=Oa([0,100],r,{clamp:!1}),r=[0,100]);const w=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let I="idle",N=null,E=null,A=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=$a(w));const{calculatedDuration:j}=w;let T=1/0,S=1/0;null!==j&&(T=j+s,S=T*(o+1)-s);let k=0;const P=e=>{if(null===E)return;f>0&&(E=Math.min(E,e)),k=null!==N?N:(e-E)*f;const n=k-t,i=n<0;k=Math.max(n,0),"finished"===I&&null===N&&(k=S);let l=k,c=w;if(o){const e=k/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/T)):"mirror"===a&&(c=C));let i=qi(0,1,n);k>S&&(i="reverse"===a&&r?1:0),l=i*T}const u=i?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;i||null===j||(p=k>=S);const m=null===N&&("finished"===I||"running"===I&&p||f<0&&k<=0);return d&&d(u.value),m&&L(),u},R=()=>{v&&v.stop(),v=void 0},B=()=>{I="idle",R(),b(),E=A=null},L=()=>{I="finished",u&&u(),R(),b()},O=()=>{if(g)return;v||(v=n(P));const e=v.now();l&&l(),null!==N?E=e-N:E&&"finished"!==I||(E=e),A=E,N=null,I="running",v.start()};e&&O();const G={then:(e,t)=>h.then(e,t),get time(){return Ls(k)},set time(e){e=Bs(e),k=e,null===N&&v&&0!==f?E=v.now()-e/f:N=e},get duration(){const e=null===w.calculatedDuration?$a(w):w.calculatedDuration;return Ls(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,G.time=Ls(k))},get state(){return I},play:O,pause:()=>{I="paused",N=k},stop:()=>{g=!0,"idle"!==I&&(I="idle",c&&c(),B())},cancel:()=>{null!==A&&P(A),B()},complete:()=>{I="finished"},sample:e=>(E=0,P(e))};return G}const qa=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function el(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Xs.waapi()&&qa.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const l=()=>{s=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Ms(t.ease))(t,i)){const e=Qa({...i,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Fs(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{fs.update(h),o(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,i)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Ls(m.currentTime||0)},set time(e){m.currentTime=Bs(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Ls(u)},play:()=>{a||(m.play(),gs(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Qa({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const tl={type:"spring",stiffness:500,damping:25,restSpeed:10},nl={type:"keyframes",duration:.8},rl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},il=(e,{keyframes:t})=>t.length>2?nl:zi.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tl:rl,ol=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Aa.test(t)&&"0"!==t||t.startsWith("url("))),sl=new Set(["brightness","contrast","saturate","opacity"]);function al(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(io)||[];if(!r)return e;const i=n.replace(r,"");let o=sl.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ll=/([a-z-]*)\(.*?\)/g,cl={...Aa,getAnimatableNone:e=>{const t=e.match(ll);return t?t.map(al).join(" "):e}},ul={...bo,color:da,backgroundColor:da,outlineColor:da,fill:da,stroke:da,borderColor:da,borderTopColor:da,borderRightColor:da,borderBottomColor:da,borderLeftColor:da,filter:cl,WebkitFilter:cl},dl=e=>ul[e];function pl(e,t){let n=dl(e);return n!==cl&&(n=Aa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ml=e=>/^0[^.\s]+$/.test(e);function hl(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ml(e):void 0}function fl(e,t){return e[t]||e.default||e}const gl=(e,t,n,r={})=>i=>{const o=fl(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=Bs(s);const l=function(e,t,n,r){const i=ol(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?s:o[e-1]),hl(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(i&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=pl(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=ol(e,c),p=ol(e,u);Ps(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,...il(e,m)}),m.duration&&(m.duration=Bs(m.duration)),m.repeatDelay&&(m.repeatDelay=Bs(m.repeatDelay)),!d||!p||Os||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:xs,pause:xs,stop:xs,then:e=>(e(),Promise.resolve()),cancel:xs,complete:xs});return t?Qa({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=el(t,e,m);if(n)return n}return Qa(m)};function bl(e){return Boolean(Zi(e)&&e.add)}const vl=e=>/^\-?\d*\.?\d+$/.test(e);function xl(e,t){-1===e.indexOf(t)&&e.push(t)}function yl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class wl{constructor(){this.subscriptions=[]}add(e){return xl(this.subscriptions,e),()=>yl(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cl=new Set;function Il(e,t,n){e||Cl.has(t)||(console.warn(t),Cl.add(t))}class Nl{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=ls;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,fs.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=()=>fs.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=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&Il(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new wl);const n=this.events[e].add(t);return"change"===e?()=>{n(),fs.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Da(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function El(e,t){return new Nl(e,t)}const Al=e=>t=>t.test(e),jl=[eo,po,uo,co,ho,mo,{test:e=>"auto"===e,parse:e=>e}],Tl=e=>jl.find(Al(e)),Sl=[...jl,da,Aa],kl=e=>Sl.find(Al(e));function Pl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,El(n))}function Rl(e,t){if(!t)return;return(t[e]||t.default||t).from}function Bl({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ll(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const t in a){const r=e.getValue(t),i=a[t];if(!r||void 0===i||u&&Bl(u,t))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[ks];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,fs))}r.start(gl(t,r,i,e.shouldReduceMotion&&zi.has(t)?{type:!1}:s));const d=r.animation;bl(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ss(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const t in o)Pl(e,t,zo(o[t]))}(e,s)}),c}function Ol(e,t,n={}){const r=Ss(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ll(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Gl).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Ol(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function Gl(e,t){return e.sortNodePosition(t)}const Ml=[...Ai].reverse(),Dl=Ai.length;function Vl(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Ol(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Ol(e,t,n);else{const i="function"==typeof t?Ss(e,t,n.custom):t;r=Promise.all(Ll(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Fl(e){let t=Vl(e);const n={animate:Wl(!0),whileInView:Wl(),whileHover:Wl(),whileTap:Wl(),whileDrag:Wl(),whileFocus:Wl(),exit:Wl()};let r=!0;const i=(t,n)=>{const r=Ss(e,n);if(r){const{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Dl;t++){const m=Ml[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=Ni(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||Ei(f)||"boolean"==typeof f)continue;const x=Hl(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const w=Array.isArray(f)?f:[f];let C=w.reduce(i,{});!1===b&&(C={});const{prevResolvedValues:I={}}=h,N={...I,...C},E=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in N){const t=C[e],n=I[e];d.hasOwnProperty(e)||(t!==n?Xo(t)&&Xo(n)?!Ts(t,n)||x?E(e):h.protectedKeys[e]=!0:void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...w.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(i,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Hl(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Ts(t,e)}function Wl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xl=0;const zl={animation:{Feature:class extends as{constructor(e){super(e),e.animationState||(e.animationState=Fl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Ei(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends as{constructor(){super(...arguments),this.id=Xl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},_l=(e,t)=>Math.abs(e-t);class Zl{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;const e=Jl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=_l(e.x,t.x),r=_l(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=ls;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Yl(t,this.transformPagePoint),fs.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=Jl("pointercancel"===e.type?this.lastMoveEventInfo:Yl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Ko(e))return;this.handlers=t,this.transformPagePoint=n;const r=Yl(Qo(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=ls;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=t;s&&s(e,Jl(r,this.history)),this.removeListeners=ts(qo(window,"pointermove",this.handlePointerMove),qo(window,"pointerup",this.handlePointerUp),qo(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function Yl(e,t){return t?{point:t(e.point)}:e}function Ul(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jl({point:e},t){return{point:e,delta:Ul(e,Kl(t)),offset:Ul(e,$l(t)),velocity:Ql(t,.1)}}function $l(e){return e[0]}function Kl(e){return e[e.length-1]}function Ql(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Kl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Bs(t)));)n--;if(!r)return{x:0,y:0};const o=Ls(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ql(e){return e.max-e.min}function ec(e,t=0,n=.01){return Math.abs(e-t)<=n}function tc(e,t,n,r=.5){e.origin=r,e.originPoint=pa(t.min,t.max,e.origin),e.scale=ql(n)/ql(t),(ec(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pa(n.min,n.max,e.origin)-e.originPoint,(ec(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nc(e,t,n,r){tc(e.x,t.x,n.x,r?r.originX:void 0),tc(e.y,t.y,n.y,r?r.originY:void 0)}function rc(e,t,n){e.min=n.min+t.min,e.max=e.min+ql(t)}function ic(e,t,n){e.min=t.min-n.min,e.max=e.min+ql(t)}function oc(e,t,n){ic(e.x,t.x,n.x),ic(e.y,t.y,n.y)}function sc(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 ac(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const lc=.35;function cc(e,t,n){return{min:uc(e,t),max:uc(e,n)}}function uc(e,t){return"number"==typeof e?e:e[t]||0}const dc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function pc(e){return[e("x"),e("y")]}function mc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hc(e){return void 0===e||1===e}function fc({scale:e,scaleX:t,scaleY:n}){return!hc(e)||!hc(t)||!hc(n)}function gc(e){return fc(e)||bc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bc(e){return vc(e.x)||vc(e.y)}function vc(e){return e&&"0%"!==e}function xc(e,t,n){return n+t*(e-n)}function yc(e,t,n,r,i){return void 0!==i&&(e=xc(e,i,r)),xc(e,n,r)+t}function wc(e,t=0,n=1,r,i){e.min=yc(e.min,t,n,r,i),e.max=yc(e.max,t,n,r,i)}function Cc(e,{x:t,y:n}){wc(e.x,t.translate,t.scale,t.originPoint),wc(e.y,n.translate,n.scale,n.originPoint)}function Ic(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nc(e,t){e.min=e.min+t,e.max=e.max+t}function Ec(e,t,[n,r,i]){const o=void 0!==t[i]?t[i]:.5,s=pa(e.min,e.max,o);wc(e,t[n],t[r],s,t.scale)}const Ac=["x","scaleX","originX"],jc=["y","scaleY","originY"];function Tc(e,t){Ec(e.x,t,Ac),Ec(e.y,t,jc)}function Sc(e,t){return mc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const kc=new WeakMap;class Pc{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={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Zl(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Qo(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=os(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(uo.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=ql(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&fs.update(()=>i(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&fs.update(()=>i(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Rc(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?pa(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?pa(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Ii(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:sc(e.x,n,i),y:sc(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=lc){return!1===e?e=0:!0===e&&(e=lc),{x:cc(e,"left","right"),y:cc(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&pc(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const 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(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ii(e))return!1;const n=e.current;Rs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=Sc(e,n),{scroll:i}=t;return i&&(Nc(r.x,i.offset.x),Nc(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:ac(e.x,t.x),y:ac(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=mc(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=pc(s=>{if(!Rc(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(gl(e,n,0,t))}stopAnimation(){pc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){pc(t=>{const{drag:n}=this.getProps();if(!Rc(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-pa(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ii(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};pc(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=ql(e),i=ql(t);return i>r?n=Ra(t.min,t.max-r,e.min):r>i&&(n=Ra(e.min,e.max-i,t.min)),qi(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pc(t=>{if(!Rc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(pa(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;kc.set(this.visualElement,this);const e=qo(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Ii(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=$o(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pc(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=lc,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function Rc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Bc=e=>(t,n)=>{e&&fs.update(()=>e(t,n))};const Lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Oc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!po.test(e))return e;e=parseFloat(e)}return`${Oc(e,t.target.x)}% ${Oc(e,t.target.y)}%`}},Mc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Aa.parse(e);if(i.length>5)return r;const o=Aa.createTransformer(e),s="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=pa(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=c),"number"==typeof i[3+s]&&(i[3+s]/=c),o(i)}};class Dc extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Fc,Object.assign(Wi,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||fs.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vc(e){const[n,r]=function(){const e=t.useContext(xi);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=t.useId();return t.useEffect(()=>i(o),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=t.useContext(Li);return l.default.createElement(Dc,{...e,layoutGroup:i,switchLayoutGroup:t.useContext(Oi),isPresent:n,safeToRemove:r})}const Fc={borderRadius:{...Gc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gc,borderTopRightRadius:Gc,borderBottomLeftRadius:Gc,borderBottomRightRadius:Gc,boxShadow:Mc},Hc=["TopLeft","TopRight","BottomLeft","BottomRight"],Wc=Hc.length,Xc=e=>"string"==typeof e?parseFloat(e):e,zc=e=>"number"==typeof e||po.test(e);function _c(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Zc=Uc(0,.5,Qs),Yc=Uc(.5,.95,xs);function Uc(e,t,n){return r=>r<e?0:r>t?1:n(Ra(e,t,r))}function Jc(e,t){e.min=t.min,e.max=t.max}function $c(e,t){Jc(e.x,t.x),Jc(e.y,t.y)}function Kc(e,t,n,r,i){return e=xc(e-=t,1/n,r),void 0!==i&&(e=xc(e,1/i,r)),e}function Qc(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){uo.test(t)&&(t=parseFloat(t),t=pa(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=pa(o.min,o.max,r);e===o&&(a-=t),e.min=Kc(e.min,t,n,a,i),e.max=Kc(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const qc=["x","scaleX","originX"],eu=["y","scaleY","originY"];function tu(e,t,n,r){Qc(e.x,t,qc,n?n.x:void 0,r?r.x:void 0),Qc(e.y,t,eu,n?n.y:void 0,r?r.y:void 0)}function nu(e){return 0===e.translate&&1===e.scale}function ru(e){return nu(e.x)&&nu(e.y)}function iu(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 ou(e){return ql(e.x)/ql(e.y)}class su{constructor(){this.members=[]}add(e){xl(this.members,e),e.scheduleRender()}remove(e){if(yl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function au(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const lu=(e,t)=>e.depth-t.depth;class cu{constructor(){this.children=[],this.isDirty=!1}add(e){xl(this.children,e),this.isDirty=!0}remove(e){yl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lu),this.isDirty=!1,this.children.forEach(e)}}const uu=["","X","Y","Z"];let du=0;const pu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=du++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;pu.totalNodes=pu.resolvedTargetDeltas=pu.recalculatedProjection=0,this.nodes.forEach(gu),this.nodes.forEach(Iu),this.nodes.forEach(Nu),this.nodes.forEach(bu),e=pu,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new cu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wl),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(gs(r),e(o-t))};return fs.read(r,!0),()=>gs(r)}(r,250),Lc.hasAnimatedSinceResize&&(Lc.hasAnimatedSinceResize=!1,this.nodes.forEach(Cu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||ku,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!iu(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...fl(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Cu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Eu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(xu);this.isUpdating||this.nodes.forEach(yu),this.isUpdating=!1,this.nodes.forEach(wu),this.nodes.forEach(hu),this.nodes.forEach(fu),this.clearAllSnapshots();const e=performance.now();ls.delta=qi(0,1e3/60,e-ls.timestamp),ls.timestamp=e,ls.isProcessing=!0,ps.update.process(ls),ps.preRender.process(ls),ps.render.process(ls),ls.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(vu),this.sharedNodes.forEach(Au)}scheduleUpdateProjection(){fs.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){fs.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ru(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||gc(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Pu((r=n).x),Pu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Nc(t.x,n.offset.x),Nc(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};$c(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){$c(t,e);const{scroll:n}=this.root;n&&(Nc(t.x,-n.offset.x),Nc(t.y,-n.offset.y))}Nc(t.x,i.offset.x),Nc(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};$c(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Tc(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),gc(r.latestValues)&&Tc(n,r.latestValues)}return gc(this.latestValues)&&Tc(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};$c(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!gc(n.latestValues))continue;fc(n.latestValues)&&n.updateSnapshot();const r=dc();$c(r,n.measurePageBox()),tu(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return gc(this.latestValues)&&tu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ls.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=ls.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},oc(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),$c(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,rc(s.x,a.x,l.x),rc(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):$c(this.target,this.layout.layoutBox),Cc(this.target,this.targetDelta)):$c(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},oc(this.relativeTargetOrigin,this.target,e.target),$c(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fc(this.parent.latestValues)&&!bc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===ls.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;$c(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,s;t.x=t.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tc(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Cc(e,s)),r&&gc(o.latestValues)&&Tc(e,o.latestValues))}t.x=Ic(t.x),t.y=Ic(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;nc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=au(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),pu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Su));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ju(o.x,e.x,n),ju(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Tu(e.x,t.x,n.x,r),Tu(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&iu(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),$c(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=pa(0,void 0!==n.opacity?n.opacity:1,Zc(r)),e.opacityExit=pa(void 0!==t.opacity?t.opacity:1,0,Yc(r))):o&&(e.opacity=pa(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Wc;i++){const o=`border${Hc[i]}Radius`;let s=_c(t,o),a=_c(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||zc(s)===zc(a)?(e[o]=Math.max(pa(Xc(s),Xc(a),r),0),(uo.test(a)||uo.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=pa(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fs.update(()=>{Lc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Zi(e)?e:El(e);return r.start(gl("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ru(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ql(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ql(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}$c(t,n),Tc(t,i),nc(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new su);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<uu.length;t++){const i="rotate"+uu[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=_o(e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=_o(e.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=au(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Wi){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Wi[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?_o(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?void 0:t.stop()}),this.root.nodes.forEach(xu),this.root.sharedNodes.clear()}}}function hu(e){e.updateLayout()}function fu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?pc(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=ql(r);r.min=t[e].min,r.max=r.min+i}):Ru(i,n.layoutBox,t)&&pc(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=ql(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};nc(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?nc(a,e.applyTransform(r,!0),n.measuredBox):nc(a,t,n.layoutBox);const l=!ru(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};oc(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};oc(a,t,o.layoutBox),iu(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gu(e){pu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vu(e){e.clearSnapshot()}function xu(e){e.clearMeasurements()}function yu(e){e.isLayoutDirty=!1}function wu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Iu(e){e.resolveTargetDelta()}function Nu(e){e.calcProjection()}function Eu(e){e.resetRotation()}function Au(e){e.removeLeadSnapshot()}function ju(e,t,n){e.translate=pa(t.translate,0,n),e.scale=pa(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Tu(e,t,n,r){e.min=pa(t.min,n.min,r),e.max=pa(t.max,n.max,r)}function Su(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ku={duration:.45,ease:[.4,0,.1,1]};function Pu(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ru(e,t,n){return"position"===e||"preserve-aspect"===e&&!ec(ou(t),ou(n),.2)}const Bu=mu({attachResizeListener:(e,t)=>$o(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lu={current:void 0},Ou=mu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lu.current){const e=new Bu({});e.mount(window),e.setOptions({layoutScroll:!0}),Lu.current=e}return Lu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Gu={pan:{Feature:class extends as{constructor(){super(...arguments),this.removePointerDownListener=xs}onPointerDown(e){this.session=new Zl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Bc(e),onStart:Bc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&fs.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=qo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends as{constructor(e){super(e),this.removeGroupControls=xs,this.removeListeners=xs,this.controls=new Pc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xs}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ou,MeasureLayout:Vc}},Mu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Du(e,t,n=1){Rs(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=Mu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Ki(i)?Du(i,t,n+1):i}const Vu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Fu=e=>Vu.has(e),Hu=e=>e===eo||e===po,Wu=(e,t)=>parseFloat(e.split(", ")[t]),Xu=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Wu(i[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Wu(t[1],e):0}},zu=new Set(["x","y","z"]),_u=Xi.filter(e=>!zu.has(e));const Zu={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:Xu(4,13),y:Xu(5,14)},Yu=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Fu);let o=[],s=!1;const a=[];if(i.forEach(i=>{const l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],u=Tl(c);const d=t[i];let p;if(Xo(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Tl(c);for(let n=t;n<e&&null!==d[n];n++)p?Rs(Tl(d[n])===p,"All keyframes must be of the same type"):(p=Tl(d[n]),Rs(p===u||Hu(u)&&Hu(p),"Keyframes must be of the same dimension as the current value"))}else p=Tl(d);if(u!==p)if(Hu(u)&&Hu(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&p===po&&(t[i]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[i]=u.transform(d):(s||(o=function(e){const t=[];return _u.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Zu[e](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Zu[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),yi&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:t,transitionEnd:r}};function Uu(e,t,n,r){return(e=>Object.keys(e).some(Fu))(t)?Yu(e,t,n,r):{target:t,transitionEnd:r}}const Ju=(e,t,n,r)=>{const i=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Ki(t))return;const n=Du(t,r);n&&e.set(n)});for(const e in t){const i=t[e];if(!Ki(i))continue;const o=Du(i,r);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=i))}return{target:t,transitionEnd:n}}(e,t,r);return Uu(e,t=i.target,n,r=i.transitionEnd)},$u={current:null},Ku={current:!1};function Qu(){if(Ku.current=!0,yi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$u.current=e.matches;e.addListener(t),t()}else $u.current=!1}const qu=new WeakMap,ed=Object.keys(Bi),td=ed.length,nd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rd=ji.length;class id{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},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=()=>fs.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ti(t),this.isVariantNode=Si(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Zi(t)&&(t.set(s[e],!1),bl(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,qu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Ku.current||Qu(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||$u.current),"production"!==process.env.NODE_ENV&&Il(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){qu.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=zi.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&fs.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ps(!1,e):Rs(!1,e)}for(let e=0;e<td;e++){const n=ed[e],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=Bi[n];a&&(o=a),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Ii(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nd.length;t++){const n=nd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Zi(o))e.addValue(i,o),bl(r)&&r.add(i),"development"===process.env.NODE_ENV&&Il("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Zi(s))e.addValue(i,El(o,{owner:e})),bl(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,El(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<rd;e++){const n=ji[e],r=this.props[n];(Ni(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=El(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;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Ho(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Zi(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new wl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class od extends id{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){const r={};for(const i in e){const e=Rl(i,t);if(void 0!==e)r[i]=e;else{const e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;const o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){const s=o[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==i?i:t[s]),null!=c&&("string"==typeof c&&(vl(c)||ml(c))?c=parseFloat(c):!kl(c)&&Aa.test(l)&&(c=pl(s,l)),e.addValue(s,El(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,o);const e=Ju(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class sd extends od{readValueFromInstance(e,t){if(zi.has(t)){const e=dl(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=($i(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Sc(e,t)}build(e,t,n,r){vo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Vo(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Zi(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Go(e,t,n,r)}}class ad extends od{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(zi.has(t)){const e=dl(t);return e&&e.default||0}return t=Mo.has(t)?t:Oo(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Fo(e,t)}build(e,t,n,r){ko(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Do(e,t,0,r)}mount(e){this.isSVGTag=Ro(e.tagName),super.mount(e)}}const ld=(e,t)=>Hi(e)?new ad(t,{enableHardwareAcceleration:!1}):new sd(t,{enableHardwareAcceleration:!0}),cd={...zl,...js,...Gu,...{layout:{ProjectionNode:Ou,MeasureLayout:Vc}}},ud=Vi((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Hi(e)?Uo:Jo,preloadedFeatures:n,useRender:Lo(t),createVisualElement:r,Component:e}}(e,t,cd,ld));function dd(){const e=t.useRef(!1);return wi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class pd extends l.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const 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 md({children:e,isPresent:n}){const r=t.useId(),i=t.useRef(null),o=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=o.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(pd,{isPresent:n,childRef:i,sizeRef:o},l.cloneElement(e,{ref:i}))}const hd=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:a})=>{const c=Wo(fd),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),"popLayout"===a&&(e=l.createElement(md,{isPresent:r},e)),l.createElement(xi.Provider,{value:d},e)};function fd(){return new Map}const gd=e=>e.key||"";const bd=({children:e,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Rs(!o,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(Li).forceRender||function(){const e=dd(),[n,r]=t.useState(0),i=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>fs.postRender(i),[i]),n]}()[0],u=dd(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(wi(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=gd(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return l.createElement(l.Fragment,null,p.map(e=>l.createElement(hd,{key:gd(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:a},e)));p=[...p];const v=h.current.map(gd),x=d.map(gd),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===a&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const o=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),i&&i()}};g=l.createElement(hd,{key:gd(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:a},r),m.set(t,g)}p.splice(o,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(hd,{key:gd(e),isPresent:!0,presenceAffectsLayout:s,mode:a},e)}),"production"!==process.env.NODE_ENV&&"wait"===a&&p.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.'),l.createElement(l.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function vd(){!Ku.current&&Qu();const[e]=t.useState($u.current);return"production"!==process.env.NODE_ENV&&Il(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const xd={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}},pop:{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.15}}};function yd({children:t,animationType:n=gi,disableAnimation:r=!0,whileHover:i,whileTap:o,transition:s,...a}){const[c,u]=l.default.useState(!1);l.default.useEffect(()=>u(!0),[]);const d=vd(),p=c&&d,m=l.default.Children.only(t);if(r||p)return m;const h=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=xd[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),f=h?{...h.whileHover,...i}:i,g=(null==h?void 0:h.whileTap)||o?{...null==h?void 0:h.whileTap,...o}:void 0,b=h?{...h.transition,...s}:s;if("string"==typeof m.type){const t=ud[m.type];return e.jsx(t,{...m.props,ref:m.ref,whileHover:f,whileTap:g,transition:b,...a})}return e.jsx(ud.div,{whileHover:f,whileTap:g,transition:b,...a,children:m})}yd.displayName="AnimationWrapper";const wd=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Cd=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:i,disabled:o,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,disableAnimation:p,animationType:m=gi,as:h="button",...f},g)=>{const b=(()=>{const e=Ee((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(l),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",s?"w-full":"lg:inline-flex w-full lg:w-auto"),r=Ee((o||n)&&"cursor-not-allowed",n&&"pl-7");return Ee(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:outline-bg-fill-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-border-inverse disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let v=`button--${t}`;n&&(v+=" button--loading"),o&&(v+=" button--disabled");const x=`${v} ${b}`,y=e.jsxs(e.Fragment,{children:[n?e.jsx(qn,{name:"progress_activity",className:"animate-spin"}):null,i?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ee(wd(l)),children:i}),r]}):r,c?e.jsx(qn,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(yd,{disableAnimation:p,animationType:m,children:e.jsx("a",{ref:g,className:Ee(x),...f,"data-component":"BrandButton","data-variant":"anchor",children:y})}):e.jsx(yd,{disableAnimation:p,animationType:m,children:e.jsx("button",{ref:g,className:Ee(x),disabled:o||n,...f,"data-component":"BrandButton","data-variant":"button",children:y})})});Cd.displayName="BrandButton";const Id={primary_brand:"text-text-brand",primary_inverse:"text-text",secondary:"text-text",secondary_inverse:"text-text-inverse"},Nd=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:i,buttonPrefix:o,href:s,target:a="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:m,renderCheckPlans:h,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:b,idNameToOpen:v,onModalButtonClick:x,onClick:y,iconFill:w=0,buttonIconName:C,buttonIconPosition:I,size:N,iconSize:E=24,preserveQueryParameters:A,disableAnimation:j,animationType:T=gi,fieldProps:S,...k}=t,P="left"===I,R=C,B=Ee(f,P&&R?"flex-row-reverse":"");if("check availability"===m&&h){const o=null==h?void 0:h({ctaText:i,buttonVariant:r,showButtonAs:n,cta:{...t}});return l.default.isValidElement(o)?e.jsx(yd,{disableAnimation:j,animationType:T,children:o}):o}function L(e){"modal"===g&&(null==e||e.preventDefault(),null==x||x(b)),"clickId"===g&&(null==e||e.preventDefault(),function(){var e;if("clickId"===g&&v){const t=document.getElementById(v);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),null===(e=t.click)||void 0===e||e.call(t))}}())}function O(){"wifi grant redirect"===m&&function(){const e=st();!!e&&(window.location.href=e)}()}function G(e){L(e),O(),null==y||y(e)}function M(e){L(e),O(),null==y||y(e)}const D="undefined"!=typeof window?window.location.search:"",V=m?void 0:s&&A&&D?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(it),i=new Set([...r,"searchtext","page"]);let o,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);o=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");o=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{i.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${o}?${l}`:o}(s,D):s;let F=e.jsx(ci,{onClick:M,className:f,...k,...S});switch(n){case"solid":F=V?e.jsx(Cd,{as:"a",href:V,target:a,id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:G,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S}):e.jsx(Cd,{id:c,variant:r,target:a,text:i,label:o,fullWidth:p,size:N,onClick:M,iconName:R,iconSize:E,iconFill:w,buttonClassName:B,disableAnimation:j,animationType:T,...S});break;case"text":F=e.jsx(ir,{title:i,href:V,target:a,variant:d||"default",className:Ee(R&&"label1 inline-flex items-center gap-2 no-underline",Id[r],u),onClick:G,...S,children:R?e.jsxs(e.Fragment,{children:[P?e.jsx(qn,{name:R,size:E,fill:w}):null,i,P?null:e.jsx(qn,{name:R,size:E,fill:w})]}):e.jsx(e.Fragment,{children:i})});break;case"button-with-icon":F=V?e.jsx(Cd,{as:"a",href:V,id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:G,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S}):e.jsx(Cd,{id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:M,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S});break;case"text-with-icon":{const t=(e=>({primary_brand:"text-text-brand",primary_inverse:"text-text-inverse",secondary:"text-text",secondary_inverse:"text-text-inverse"}[e]||"text-text-brand"))(r);F=e.jsxs(ir,{href:V,target:a,onClick:G,className:Ee("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,f),"aria-label":i,...S,children:[P&&R?e.jsx(qn,{name:R,fill:w,size:E,weight:"200"}):null,e.jsx(er,{"aria-label":i,className:"label1 text-nowrap",children:i}),R&&!P&&e.jsx(qn,{name:R,fill:w,size:E,weight:"200"})]});break}}return e.jsx(yd,{disableAnimation:j,animationType:T,className:Ee(p&&"w-full"),children:F})};var Ed;const Ad=null!==(Ed=c.default)&&void 0!==Ed?Ed:c,jd=({href:t,title:n,description:r,date:i,category:o,image:s,imageAltText:a,imageComponent:l,asGrid:c=!0,index:u,fieldProps:d})=>{var p,m,h;const f=null!==(h=null!==(m=null!==(p=null!=a?a:null==s?void 0:s.description)&&void 0!==p?p:null==s?void 0:s.alt)&&void 0!==m?m:n)&&void 0!==h?h:"blog-card-image",g=c?"group relative flex h-full flex-col overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop":"callout-card group relative w-full flex h-full flex-col overflow-hidden";return e.jsxs("article",{className:g,"data-section-type":"blog-card","data-section-index":u,"data-view-mode":c?"grid":"list",children:[c&&e.jsx("div",{className:"block h-[232px] w-full flex-shrink-0 overflow-hidden bg-gray-100",children:s?l?e.jsx(l,{src:s.src,alt:f,width:s.width,height:s.height,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("img",{src:s.src,alt:f,width:s.width,height:s.height,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})}),e.jsxs("div",{className:"flex flex-1 flex-col "+(c?"gap-5 p-6 md:p-8":"gap-1 border-b p-3 md:p-4"),children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[c&&e.jsx("span",{className:"body2 text-text-brand",children:o}),i&&e.jsxs(e.Fragment,{children:[c&&e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:i})]})]}),n&&e.jsx(er,{as:"h2",className:"heading6",...null==d?void 0:d.title,children:e.jsx(Ad,{href:t,className:"m-0 line-clamp-3 font-black transition-colors duration-150 after:absolute after:inset-0 after:z-10 after:content-[''] hover:text-text-brand group-hover:text-text-brand",children:n})}),r&&e.jsx(er,{className:"body1 m-0 line-clamp-3 flex-1 text-text",...null==d?void 0:d.description,children:r})]}),!n&&e.jsx(Ad,{href:t,className:"absolute inset-0 z-10",children:e.jsx("span",{className:"sr-only",children:null!=o?o:"Read more"})})]})},Td={left:"w-full lg:flex lg:justify-start",right:"w-full lg:flex lg:justify-end",center:"w-full lg:flex lg:justify-center"},Sd=({card:t,lgWidth:n,mdWidth:r})=>{var i,o,s,a,l,c;const{image:u,title:d,header:p,body:m,cta:h,ctaAlignment:f,imageLink:g,imageClassName:b,className:v,imageAltText:x,isPromoBarImg:y=!1,shadow:w=!1,disableAnimation:C,fieldProps:I}=t,N=f?Td[f]:Td.left,E=g?"cursor-pointer":"",A=g?()=>{"undefined"!=typeof window&&window.open(g,"_blank")}:void 0;return y?(null==u?void 0:u.href)?e.jsx(Jr,{src:u.href,alt:null!==(s=null!==(o=null!==(i=null!=x?x:u.description)&&void 0!==i?i:u.title)&&void 0!==o?o:d)&&void 0!==s?s:"promo-bar-image",width:148,height:40,onClick:A,className:E}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ee("callout-card relative flex h-full w-full flex-col gap-5 px-0 pb-4 pt-0 md:items-start md:gap-6 lg:pb-0",w&&"rounded-3xl shadow-card",r,n,v),children:[(null==u?void 0:u.href)?e.jsx("div",{className:Ee("relative h-[233px] w-full overflow-hidden sm:mb-1 md:h-[274px] md:flex-none lg:mb-0 lg:h-[330px]",b),children:e.jsx(Jr,{src:u.href,alt:null!==(l=null!==(a=null!=x?x:u.description)&&void 0!==a?a:u.title)&&void 0!==l?l:"card-image",width:u.width||400,height:u.height||330,onClick:A,className:Ee("h-full w-full rounded-[40px] object-cover",E)})}):null,p?e.jsx(er,{as:"h4",className:"heading6 text-text",...null==I?void 0:I.header,children:p}):null,m?e.jsx(er,{as:"div",className:"body1 -mt-1 mb-0 flex-1 text-text md:-mt-2 lg:mt-2",...null==I?void 0:I.body,children:m}):null,e.jsx("div",{className:Ee(N,"mt-auto"),...null==I?void 0:I.cta,children:h?e.jsx(Nd,{...h,showButtonAs:h.showButtonAs||(h.buttonIconName?void 0:"text-with-icon"),iconName:h.iconName||(h.buttonIconName?void 0:"expand_circle_right"),iconFill:null!==(c=h.iconFill)&&void 0!==c?c:1,disableAnimation:!(!1===C&&!1===h.disableAnimation),animationType:gi}):null})]})},kd=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:i="FullImageCard",title:o,description:s,caption:a,image:l,imageAltText:c,cta:u,link:d,className:p,contentClassName:m,imageClassName:h,shadow:f=!0,fieldProps:g}=t,b=u||d,v=null==b?void 0:b.href,x=o?e.jsx(er,{as:"h3",className:"body1 text-text xl:heading6",...null==g?void 0:g.title,children:o}):null;return e.jsxs("section",{id:i,className:Ee("callout-card relative flex flex-col rounded-3xl bg-white p-0",f&&"shadow-card",r,n,"w-full",p),"aria-labelledby":`card-title-${i}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ee("relative aspect-video overflow-hidden rounded-tl-3xl rounded-tr-3xl",h),children:(()=>{var t,n,r;if(!(null==l?void 0:l.href))return null;const i=e.jsx(Jr,{src:l.href,alt:null!==(r=null!==(n=null!==(t=null!=c?c:l.description)&&void 0!==t?t:l.title)&&void 0!==n?n:o)&&void 0!==r?r:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return v?e.jsx(ir,{href:v,tabIndex:-1,target:null==b?void 0:b.target,children:i}):i})()}):null,e.jsxs("div",{className:Ee("flex h-full flex-col gap-4 p-6 md:p-8",m),children:[e.jsxs("div",{className:"flex flex-1 flex-col justify-between",children:[e.jsxs("div",{children:[v&&x?e.jsx(ir,{href:v,target:null==b?void 0:b.target,className:"no-underline hover:underline",children:x}):x,s?e.jsx(er,{as:"p",className:"body2 mt-4 text-text md:body1",...null==g?void 0:g.description,children:s}):null]}),a?e.jsx(er,{as:"p",className:"footnote mt-5 text-text-secondary",...null==g?void 0:g.caption,children:a}):null]}),u?e.jsx("div",{className:"mt-2 flex items-end",...null==g?void 0:g.cta,children:e.jsx(Nd,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...u,iconName:"expand_circle_right",iconFill:1})}):null]})]})},Pd={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Rd={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Bd={left:"justify-start",right:"justify-end",center:"justify-center"},Ld=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},Od=({card:t,lgWidth:n,mdWidth:r,className:i,contentClassName:o,style:s})=>{var a,l,c,u,d,p,m,h,f,g,b,v,x,y,w,C,I,N,E,A,j,T,S;const k=null===(a=t.imageView)||void 0===a?void 0:a.toLowerCase(),P="full"===k,R="margin"===k,B="standard"===k,L="icon"===k||"inset"===k||!k&&!!t.image,O=B||L,G=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",M=t.ctaAlignment&&Rd[t.ctaAlignment]||Rd.left,D=t.ctaAlignmentBottom&&Bd[t.ctaAlignmentBottom]||Bd.left,V=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],F=O&&t.applyCardBackgroundColor,H={...s,...F&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...F&&t.textColor?{"--scc-fg":t.textColor}:{},...F&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...F&&t.showBackgroundImage&&V?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ae(V))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},W=n=>{var r,i,o,s;return t.image?e.jsx("div",{className:Ee("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Jr,{src:t.image,alt:null!==(s=null!==(o=null!==(i=null!==(r=t.imageAltText)&&void 0!==r?r:t.imageDescription)&&void 0!==i?i:t.imageAlt)&&void 0!==o?o:t.title)&&void 0!==s?s:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ee("w-full",!n&&"rounded-t-3xl")})}):null},X=F&&t.textColor?{color:t.textColor}:void 0,z=t.title?e.jsx(er,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:X,...null===(d=t.fieldProps)||void 0===d?void 0:d.title,children:t.title}):null,_=(null===(p=t.cta)||void 0===p?void 0:p.href)&&z?e.jsx(ir,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:X,children:z}):z,Z=(null!==(h=null===(m=t.workingHours)||void 0===m?void 0:m.length)&&void 0!==h?h:0)>0||(null!==(g=null===(f=t.phoneNumber)||void 0===f?void 0:f.length)&&void 0!==g?g:0)>0,Y=!(!t.cta||t.title||t.titleLocation||t.body||t.richText||t.image||Z||(null===(b=t.ctaBottom)||void 0===b?void 0:b.title)&&(null===(v=t.ctaBottom)||void 0===v?void 0:v.href));return e.jsxs("section",{className:Ee("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!P&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(y=Pd[null!==(x=t.backgroundColor)&&void 0!==x?x:""])&&void 0!==y?y:""),r,n,i),style:H,"aria-labelledby":t.title?`callout-${t.title}`:void 0,children:[(null===(w=t.ctaBottom)||void 0===w?void 0:w.title)&&(null===(C=t.ctaBottom)||void 0===C?void 0:C.href)?e.jsx("div",{className:Ee("top-link m-6 flex items-center lg:m-8",D),children:e.jsxs(ir,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx(qn,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&P?W(!1):null,t.image&&R?W(!0):null,e.jsxs("div",{className:Ee("relative flex flex-1 flex-col justify-between",Y?"p-0":"px-6 pb-8 pt-7 lg:px-8 lg:py-8",o),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ee("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ee(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||P||R?null:(()=>{var n,r,i,o;if(!t.image)return null;const s=B&&t.imageWidth||60,a=B&&t.imageHeight||60;return e.jsx("div",{className:Ee("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:G},children:e.jsx(Jr,{src:t.image,alt:null!==(o=null!==(i=null!==(r=null!==(n=t.imageAltText)&&void 0!==n?n:t.imageDescription)&&void 0!==r?r:t.imageAlt)&&void 0!==i?i:t.title)&&void 0!==o?o:"card-icon",width:s,height:a,className:Ee("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[_,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(er,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,Z?e.jsx("div",{className:"mb-2",children:e.jsx("table",{children:e.jsxs("tbody",{children:[null===(I=t.workingHours)||void 0===I?void 0:I.map((t,n)=>{const[r,i]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(er,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(er,{className:"body2 font-bold text-text",children:i})})]},`wh-${n}`)}),null===(N=t.phoneNumber)||void 0===N?void 0:N.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx(qn,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(ir,{href:Ld(t),className:"text-inherit no-underline",children:e.jsx(er,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(er,{as:"div",className:"body1 text-text",style:X,...null===(E=t.fieldProps)||void 0===E?void 0:E.body,children:t.body}):null,t.richText?e.jsx(er,{as:"div",className:"body1 text-text",style:X,...null===(A=t.fieldProps)||void 0===A?void 0:A.richText,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ee(!Y&&"mt-2",M),...null===(j=t.fieldProps)||void 0===j?void 0:j.cta,children:e.jsx(Nd,{linkVariant:"unstyled",linkClassName:Ee("label1 flex items-center gap-2 text-text",F&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(T=t.cta.iconName)&&void 0!==T?T:"expand_circle_right",iconFill:null!==(S=t.cta.iconFill)&&void 0!==S?S:1,fullWidth:!0,buttonClassName:Ee(t.cta.buttonClassName,Y&&"w-[342px] max-w-full px-4 lg:w-[342px]")})}):null]})]})},Gd={cream500:"bg-[#FFFEEF]",gray100:"bg-fill-secondary",white:"bg-white",transparent:"",blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",yellow:"bg-[#F5FF1E]"},Md={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},Dd={1:"lg:w-full",2:"lg:w-[calc(50%-0.75rem)]",3:"lg:w-[calc(33.333%-1rem)]",4:"lg:w-[calc(25%-1.125rem)]",5:"lg:w-[calc(20%-1.2rem)]",6:"lg:w-[calc(16.666%-1.25rem)]"},Vd=e=>Math.max(1,Math.min(6,e)),Fd=t.forwardRef(({as:t,className:n="",...r},i)=>{const o=Ee(n);if(t){const n=t;return e.jsx(n,{ref:i,className:o,...r})}return e.jsx("img",{ref:i,className:o,...r})});Fd.displayName="Image";const Hd=({onSelect:n,speed:r,isSelected:i=!1,renderCheckPlans:o,iconSize:s=24,iconClassName:a,cta:l,techType:c,isMax:u,twoColumn:d=!1})=>{const[p,m]=t.useState(!1),h=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,f=null==o?void 0:o({speedCardConfig:{isModalOpen:p,setModalOpen:()=>{m(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(ci,{onClick:e=>{m(!0),n(e)},className:Ee(h,"w-full px-3 md:px-5",d?"justify-center md:justify-between":"justify-between"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{className:d?"label3 md:label1":"label1",children:"Select plan"}),e.jsx(qn,{className:Ee(a,"!text-[24px] md:!text-[40px]",d&&"hidden md:inline-block",i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),f]})},Wd=({planName:n,planSubtext:r,speed:i,price:o,priceUnit:s="/mo",description:a,bestValue:c=!1,bestValueText:u="best value",giftBadge:d,innerBadge:p,theme:m="light",featuresTitle:h="Business Ready Internet features",features:f=[],isExpanded:g,onToggleExpand:b,onCtaClick:v,renderCheckPlans:x,cta:y,techType:w,ismaxSpeed:C,priceSuffixBottom:I,hasAnyBadge:N=!1,hasAnyGift:E=!1,twoColumn:A=!1,enableBusinessSettings:j=!1,fieldProps:T})=>{const[S,k]=t.useState(!1),P=void 0!==g?g:S,R="dark"===m,B=A?"label3 md:subheading2":"subheading2",L=A?"heading2 md:subheading5":"subheading5",O=A?"label3 md:label1":"label1";return e.jsxs("article",{className:"relative flex h-full w-full max-w-[392px] flex-col",children:[c?e.jsx("div",{...null==T?void 0:T.bestValueText,className:"label3 rounded-t-[20px] bg-bg-fill-brand-accent px-6 py-2 text-center text-text",children:u}):N?e.jsx("div",{"aria-hidden":"true",className:"label3 invisible px-6 py-2 text-center",children:" "}):null,e.jsxs("div",{className:Ee("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",R?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",c?"rounded-t-none border-t-0":""),children:[e.jsxs("header",{"data-pc-header":!0,className:"overflow-none flex flex-wrap items-start justify-between gap-2",children:[e.jsx("div",{className:"flex w-full flex-col md:w-auto",children:e.jsxs(er,{as:"h3",...null==T?void 0:T.planName,className:Ee(B,"whitespace-normal",!j&&"lowercase",R?"text-text-accent-on-bg-inverse":"text-text-brand"),children:[n,r?e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("span",{...null==T?void 0:T.planSubtext,children:r})]}):null]})}),o?e.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[e.jsxs("div",{className:"flex items-start",...null==T?void 0:T.price,children:[e.jsx(er,{as:"span",className:Ee(O,"mr-1 mt-[2px]",R?"text-text-inverse":"text-text"),children:"$"}),e.jsx(er,{as:"span",className:Ee(L,"leading-none",R?"text-text-inverse":"text-text"),children:o.split(".")[0]}),e.jsx(er,{as:"span",className:Ee(O,R?"text-text-inverse":"text-text"),children:`${o.split(".")[1]}${s}`})]}),I?e.jsx(er,{as:"span",...null==T?void 0:T.priceSuffixBottom,className:Ee("micro text-nowrap",R?"text-text-inverse":"text-text"),children:I}):null]}):null]}),e.jsx("section",{"data-pc-description":!0,children:e.jsx(er,{...null==T?void 0:T.description,className:Ee(A?"footnote md:body2":"body2","md:h-[56px]",R?"text-text-inverse":"text-text"),children:a})}),(null==d?void 0:d.length)?e.jsx("div",{"data-pc-gift":!0,children:e.jsx("div",{className:Ee("flex w-full flex-col gap-3 rounded-surface-sm p-2",R?"bg-bg-surface-inverse":"bg-bg-surface-info"),children:null==d?void 0:d.map(t=>{return e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx(Fd,{src:t.icon,alt:t.title,width:20,height:20}),e.jsx(er,{as:"div",className:Ee("body3",R?"text-text-inverse":"text-text"),children:(n=t.title,"string"==typeof n&&n.includes("|")?n.split("|").map((t,n)=>n%2==1?e.jsx("span",{className:"label3",children:t},n):e.jsx(l.default.Fragment,{children:t},n)):n)})]},t.title);var n})})}):E?e.jsx("div",{"data-pc-gift":!0,"data-pc-gift-empty":!0,className:"invisible p-2","aria-hidden":"true",children:e.jsx(er,{as:"div",className:Ee("body3",R?"text-text-inverse":"text-text"),children:" "})}):null,e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx(Hd,{onSelect:v,speed:i,isSelected:R,renderCheckPlans:x,cta:y,iconSize:40,techType:w,isMax:C,twoColumn:A}),f.length>0&&e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsxs(ci,{onClick:()=>{b?b():k(!S)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(er,{as:"h4",...null==T?void 0:T.featuresTitle,className:Ee("label3",R?"text-text-inverse":"text-text"),children:h}),e.jsx(qn,{name:"keyboard_arrow_down",fill:1,size:24,className:Ee("transition-transform duration-300",P&&"rotate-180",R?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ee("overflow-hidden transition-all duration-200 ease-in-out",P?"opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col",children:e.jsx(tr,{items:f,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:R?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:"body3 "+(R?"text-text-inverse":"text-text")})}),(null==p?void 0:p.badgeIcon)?e.jsxs("div",{className:"mt-3 flex items-center gap-1 text-left",children:[e.jsx(Fd,{src:p.badgeIcon,alt:"Inner Badge",width:24,height:24,className:"ml-1 h-auto pr-2"}),(p.badgeText.includes("|")?p.badgeText.split("|"):[p.badgeText]).map((t,n)=>e.jsx(er,{as:"span",className:Ee(0===n?"label3":"body3",R?"text-text-inverse":"text-text"),children:t.trim()},n))]}):null]})]})]})]})]})},Xd=({title:t,quote:n,rating:r,author:i,role:o,avatarUrl:s,isActive:a=!1,className:l})=>e.jsxs("figure",{className:m("flex w-full flex-col gap-6 rounded-card-lg p-6 transition-all duration-300 md:gap-10 md:p-14",a?"bg-bg-surface-secondary shadow-drop":"bg-gray-50 opacity-40",l),children:[e.jsxs("div",{className:"flex flex-col justify-start gap-3 md:gap-5",children:[e.jsx("header",{children:e.jsx(er,{as:"h3",className:"label1 text-text",children:t})}),e.jsx("blockquote",{className:"body1 text-text",children:n}),r?e.jsx("div",{className:"flex","aria-label":`Rating: ${r} out of 5`,children:[...Array(5)].map((t,n)=>e.jsx(qn,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),i&&e.jsxs("figcaption",{className:"flex gap-3 md:gap-5",children:[e.jsx("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e.jsx(u.default,{src:s,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:i}),e.jsx(er,{as:"p",className:"body3 text-text",children:o})]})]})]});function zd({fields:n,renderCheckPlans:r,isVisible:i=!0,onProductCardCtaClick:o,enableBusinessSettings:s=!1}){var a,l,c,u,d;const p=(null===(c=null===(l=null===(a=null==n?void 0:n.items)||void 0===a?void 0:a.items)||void 0===l?void 0:l[0])||void 0===c?void 0:c.benefitsExpanded)||!1,[m,h]=t.useState(p),[f,g]=t.useState(0),[b,v]=t.useState(0),[x,y]=t.useState(0),[w,C]=t.useState(!1),I=(null===(u=null==n?void 0:n.items)||void 0===u?void 0:u.items)||[],N=null!==(d=null==n?void 0:n.twoColumn)&&void 0!==d?d:I.length>3,E=I.length>1,A=I.some(e=>null==e?void 0:e.highlighted),j=I.some(e=>{var t,n,r,i;return(null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.giftRewards)||void 0===t?void 0:t.list)||void 0===n?void 0:n.items)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0}),T=!1!==(null==n?void 0:n.showArrows)&&E,S=t.useRef([]),k=t.useRef(null),P=t.useRef(null),R=t.useRef(null),B=t.useRef(0);t.useEffect(()=>{if(!E||!i)return;const e=()=>{var e;const t=(null===(e=k.current)||void 0===e?void 0:e.offsetWidth)||0;if(0===t)return;if(408*I.length-16<=t)return void v(0);const n=t-32,r=Math.max(1,Math.floor((n+16)/408));v(Math.max(0,I.length-r))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E,i,I.length]),t.useEffect(()=>{g(e=>Math.min(e,b))},[b]);const L=t.useCallback(()=>{E&&g(e=>Math.max(0,e-1))},[E]),O=t.useCallback(()=>{E&&g(e=>Math.min(b,e+1))},[E,b]),G=t.useCallback(e=>{E&&(B.current=e.touches[0].clientX,C(!0))},[E]),M=t.useCallback(e=>{if(!w)return;const t=e.touches[0].clientX-B.current;y(0===f&&t>0||f>=b&&t<0?.3*t:t)},[w,f,b]),D=t.useCallback(()=>{var e;if(!w)return;C(!1);const t=.15*((null===(e=k.current)||void 0===e?void 0:e.offsetWidth)||0);x>t?L():x<-t&&O(),y(0)},[w,x,L,O]);if(t.useEffect(()=>{if(!E||!i)return;const e=S.current,t=()=>{const t=e.filter(Boolean);if(0===t.length)return;t.forEach(e=>{e.style.height="auto"});const n=e=>{const n=t.map(t=>t.querySelector(e)).filter(Boolean);n.forEach(e=>e.style.removeProperty("min-height"));const r=Math.max(0,...n.map(e=>e.getBoundingClientRect().height));r>0&&n.forEach(e=>e.style.setProperty("min-height",`${r}px`,"important"))};n("[data-pc-header]"),n("[data-pc-description]");const r=Math.max(...t.map(e=>e.offsetHeight));r<=0||t.forEach(e=>{e.style.height=`${r}px`})};t();const n=requestAnimationFrame(t),r=setTimeout(t,100);return window.addEventListener("resize",t),()=>{cancelAnimationFrame(n),clearTimeout(r),window.removeEventListener("resize",t),e.filter(Boolean).forEach(e=>{var t,n;null===(t=e.querySelector("[data-pc-header]"))||void 0===t||t.style.removeProperty("min-height"),null===(n=e.querySelector("[data-pc-description]"))||void 0===n||n.style.removeProperty("min-height")})}},[E,i,m,I.length]),t.useEffect(()=>{if(!N||!i)return;const e=["[data-pc-header]","[data-pc-description]"],t=()=>{const t=P.current;t&&e.forEach(e=>t.querySelectorAll(e).forEach(e=>{e.style.removeProperty("min-height")}))},n=e=>{const t=P.current;if(!t)return;const n=Array.from(t.querySelectorAll(e));n.forEach(e=>e.style.removeProperty("min-height"));for(let e=0;e<n.length;e+=2){const t=n.slice(e,e+2);if(t.length<2)break;const r=Math.max(...t.map(e=>e.getBoundingClientRect().height));t.forEach(e=>e.style.setProperty("min-height",`${r}px`,"important"))}},r=()=>{window.matchMedia("(max-width: 767px)").matches?(n("[data-pc-header]"),n("[data-pc-description]")):t()},o=requestAnimationFrame(r),s=setTimeout(r,150),a=setTimeout(r,500);return window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),clearTimeout(s),clearTimeout(a),window.removeEventListener("resize",r),t()}},[N,i,m,I.length]),t.useEffect(()=>{if(!i)return;const e=R.current,t=()=>{e&&e.querySelectorAll("[data-pc-gift]").forEach(e=>{e.style.removeProperty("min-height"),e.style.removeProperty("display")})},n=()=>{if(!e)return;t();const n=Array.from(e.querySelectorAll("[data-pc-gift]")).filter(e=>null!==e.offsetParent);if(0===n.length)return;const r=[];n.forEach(e=>{const t=(e.closest("article")||e).getBoundingClientRect().top,n=r.find(e=>Math.abs(e.top-t)<=4);n?n.els.push(e):r.push({top:t,els:[e]})}),r.forEach(({els:e})=>{if(e.every(e=>e.hasAttribute("data-pc-gift-empty")))return void e.forEach(e=>e.style.setProperty("display","none","important"));const t=Math.max(...e.map(e=>e.getBoundingClientRect().height));t<=0||e.forEach(e=>e.style.setProperty("min-height",`${t}px`,"important"))})};n();const r=requestAnimationFrame(n),o=setTimeout(n,150),s=setTimeout(n,500);return window.addEventListener("resize",n),()=>{cancelAnimationFrame(r),clearTimeout(o),clearTimeout(s),window.removeEventListener("resize",n),t()}},[i,m,I.length]),!I.length&&!(null==n?void 0:n.title))return null;const V=(t,n,i=!1)=>{var a,l,c,u,d,p,f,g,b;const v=null===(a=null==t?void 0:t.speed)||void 0===a?void 0:a.split("|"),x=(null==v?void 0:v[0])||"",y=(null==v?void 0:v[1])||"",w=(null===(c=null===(l=null==t?void 0:t.priceSuffix)||void 0===l?void 0:l.split("/"))||void 0===c?void 0:c[0])||"00",C=(null==t?void 0:t.price)?`${t.price}.${w}`:"",I=(null===(u=null==t?void 0:t.priceSuffix)||void 0===u?void 0:u.split("/"))||[],E=I.length>1?`/${I.slice(1).join("/")}`:"/mo",T=(null===(d=null==t?void 0:t.benefits)||void 0===d?void 0:d.items)||[],k=(null==t?void 0:t.highlighted)||!1,P=(null===(f=null===(p=null==t?void 0:t.giftRewards)||void 0===p?void 0:p.list)||void 0===f?void 0:f.items)||[],R={badgeText:t.innerBadge||"",badgeIcon:(null===(g=t.innerBadgeIcon)||void 0===g?void 0:g.url)||""},B=m;return e.jsx("div",{ref:i?void 0:e=>{e&&!S.current.includes(e)&&(S.current[n]=e)},className:Ee(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Wd,{planName:x,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,priceUnit:E,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:P,innerBadge:R,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:k,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",fieldProps:null==t?void 0:t.fieldProps,featuresTitle:null==t?void 0:t.benefitsTitle,features:T,isExpanded:B,onToggleExpand:()=>{h(e=>!e)},ctaText:(null===(b=null==t?void 0:t.cta)||void 0===b?void 0:b.buttonLabel)||"Select plan",onCtaClick:e=>{null==o||o(t,e)},renderCheckPlans:r,cta:t.cta,priceSuffixBottom:null==t?void 0:t.priceSuffixBottom,hasAnyBadge:A,hasAnyGift:j,twoColumn:N,enableBusinessSettings:s})},n)};return e.jsx("div",{ref:R,style:{display:"contents"},children:E?e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:P,className:Ee(N?"md:hidden":"sm:hidden",N?"grid grid-cols-2 gap-4":"flex flex-col gap-6"),children:I.map((e,t)=>V(e,t,!0))}),e.jsxs("div",{className:Ee("relative hidden w-full",N?"md:block":"sm:block"),children:[T&&e.jsxs("div",{className:"pointer-events-none absolute left-0 right-0 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:-left-16 md:-right-16 md:px-10",children:[f>0?e.jsx(ci,{onClick:L,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(qn,{name:"arrow_back",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"}),f<b?e.jsx(ci,{onClick:O,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(qn,{name:"arrow_forward",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"})]}),e.jsx("div",{ref:k,className:"mx-auto max-w-[1280px] select-none overflow-hidden",onTouchStart:G,onTouchMove:M,onTouchEnd:D,onTouchCancel:D,children:e.jsx("div",{className:Ee("flex items-stretch gap-4 py-4",0===b?"justify-center":"ml-8",w?"transition-none":"transition-transform duration-500 ease-in-out"),style:{transform:`translateX(calc(-${f} * (392px + 16px) + ${x}px))`},children:I.map((e,t)=>V(e,t,!1))})})]})]}):e.jsx("div",{ref:P,className:Ee("w-full max-w-[1280px] gap-4",N?"grid grid-cols-2 md:flex md:flex-wrap md:justify-center":"flex flex-wrap justify-center"),children:I.map((e,t)=>V(e,t,!0))})})}function _d({fields:t,renderCheckPlans:n,activeTab:r,tabs:i,onProductCardCtaClick:o,enableBusinessSettings:s=!1}){var a;const l=(null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.items)||[];return i&&i.length>1&&r?e.jsx(e.Fragment,{children:i.map(a=>{const c=l.filter(e=>(e.productCategory||i[0])===a),u={...t,items:{...t.items,items:c}};return e.jsx("div",{style:{display:a===r?"block":"none"},"aria-hidden":a!==r,children:e.jsx(zd,{fields:u,renderCheckPlans:n,isVisible:a===r,onProductCardCtaClick:o,enableBusinessSettings:s})},a)})}):e.jsx(zd,{fields:t,renderCheckPlans:n,onProductCardCtaClick:o,enableBusinessSettings:s})}const Zd=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:i,swipeOffset:o,isSwiping:s,isMobile:a,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>i/2&&(u-=i),u<-i/2&&(u+=i);const d=0===u,p=1===Math.abs(u),m=u*c+o/l*100,h=!a||(s?d||p:d);return e.jsx("div",{className:Ee("col-start-1 row-start-1 w-full md:max-w-[815px]","will-change-[transform,opacity]",d?"z-10":"z-5",Math.abs(u)>1?"invisible":"visible",h?"opacity-100":"opacity-0",s?"transition-opacity duration-200":"transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]"),style:{transform:`translateX(${m}%)`},children:e.jsx(Xd,{...t,isActive:d,className:"h-full"})})});Zd.displayName="TestimonialCarouselSlide";const Yd=({fields:n,autoScroll:r=!0,autoScrollInterval:i=8e3})=>{var o;const s=(null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||[];if(!s||0===s.length)return null;const a=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:i=.15,mobileBreakpoint:o=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),w={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:i,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;f((null===(e=y.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),I=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),N=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),E=t.useCallback(e=>{x.current=e.touches[0].clientX,m(!0),v.current&&clearInterval(v.current)},[]),A=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-x.current;d(t)},[p]),j=t.useCallback(()=>{m(!1);const e=h*i;u>e?I():u<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[u,h,i,I,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:C,prevSlide:I,goToSlide:N,handleTouchStart:E,handleTouchMove:A,handleTouchEnd:j,constants:w}}({itemCount:s.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:i,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(ci,{onClick:a.prevSlide,className:"group absolute left-5 top-1/2 z-50 hidden h-13 w-13 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(qn,{name:"arrow_back",size:24})}),e.jsx(ci,{onClick:a.nextSlide,className:"group absolute right-5 top-1/2 z-50 hidden h-13 w-13 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(qn,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:a.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:a.handleTouchStart,onTouchMove:a.handleTouchMove,onTouchEnd:a.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:s.map((t,n)=>e.jsx(Zd,{item:t,index:n,currentIndex:a.currentIndex,totalItems:s.length,swipeOffset:a.swipeOffset,isSwiping:a.isSwiping,isMobile:a.isMobile,containerWidth:a.containerWidth,cardOffsetPercentage:a.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:s.map((t,n)=>e.jsx("button",{onClick:()=>a.goToSlide(n),className:Ee("h-2 w-2 rounded-full transition-all duration-300",a.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Ud=({tabs:n,activeTab:r,onChange:i,className:o})=>{const s=n.indexOf(r),a=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=a.current[s];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[s,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ee("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",o),children:[e.jsx("div",{className:"absolute bottom-1 top-1 rounded-button bg-bg-fill-brand shadow-md transition-all duration-300 ease-out",style:{width:`${l.width}px`,left:`${l.left}px`}}),n.map((t,n)=>e.jsx("button",{ref:e=>{a.current[n]=e},onClick:()=>i(t),className:Ee("label1 relative z-10 flex min-w-[160px] items-center justify-center whitespace-nowrap rounded-button px-4 py-2.5 transition-colors duration-200 focus:outline-none active:bg-transparent",r===t?"text-text-inverse":"text-text-disabled hover:bg-bg-surface-hover"),children:t},t))]})})},Jd=({link:n,anchorName:r,linkColorClassName:i})=>{const[o,s]=l.default.useState(!1),a=l.default.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Nd,{...n,linkClassName:Ee("body3 flex items-center h-full",i||"text-text"),linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d,fieldProps:p}=n,m=Array.isArray(null==d?void 0:d.items)?d.items:[],h=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:h},ref:a,children:[e.jsxs(Nd,{onClick:()=>s(e=>!e),"aria-expanded":o,buttonClassName:Ee("group body3 flex items-center h-full",i||"text-text"),showButtonAs:"unstyled",children:[e.jsx(er,{as:"span",className:"group-hover:underline",...null==p?void 0:p.title,children:null!=u?u:null}),e.jsx(qn,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ee("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&m.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:h,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&s(!1)},children:m.map((t,n)=>e.jsx("li",{className:"submenu-link type1",children:e.jsx(Nd,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},$d=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(Nd,{...t,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:i,title:o,items:s,fieldProps:a}=t,c=Array.isArray(null==s?void 0:s.items)?s.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Nd,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center w-full h-11 px-4",showButtonAs:"unstyled",fieldProps:null==a?void 0:a.title,children:[null!=o?o:null,e.jsx(qn,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),n&&c.length>0&&e.jsx(Kd,{items:c})]})},Kd=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link type2",children:e.jsx(Nd,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),Qd=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:i="md",children:o,className:s,prefix:a,containerClassName:l,...c}=t,u=e.jsxs(ir,{...c,className:Ee("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ee("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e.jsx(qn,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]});return null==a||!1===a||""===a?u:e.jsxs("span",{className:Ee("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,u]})};Qd.displayName="CallButton";const qd=t.forwardRef((n,r)=>{const{className:i,size:o,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:w,...C}=n,I=y?"error":c,[N,E]=t.useState(!1),[A,j]=t.useState(!1),[T,S]=t.useState(w||"text"),k=t.useCallback(e=>{e.stopPropagation(),S(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:Ee("inline-block pb-1"),children:e.jsxs(er,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ee("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],b,(N||"hover"===I)&&!A&&"error"!==I&&"border-input-border-hover",(A||"focus"===I||"active"===I)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===I&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(qn,{name:d,fill:p?1:0,size:h,className:Ee(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:Ee("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",i),placeholder:a,type:T,...C,onMouseOver:()=>E(!0),onMouseOut:()=>E(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),j(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:k,children:e.jsx(qn,{name:"text"===T?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===I&&u&&""!=u?e.jsxs(er,{className:Ee("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(qn,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});qd.displayName="Input";const ep=t=>{var n,r;const{primaryNavigationLinks:i,utilityNavigationLinks:o,supportNavigationLinks:s,accountNavigationLinks:a,showCallButton:c,displayCallNowCta:u,displaySearchBar:d}=t,[p,m]=l.default.useState(!1);l.default.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=p?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],i=e=>{var t,i,o,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(i=(t=r).focus)||void 0===i||i.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(o=n).focus)||void 0===s||s.call(o),e.preventDefault()))};return window.addEventListener("keydown",i),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",i)}},[p]);const h=()=>{m(!1)};return e.jsxs("div",{children:[e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>m(!0),children:e.jsx(qn,{name:"menu"})}),p?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:Ee("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4 text-text","transition-all duration-300 ease-in-out","block",p?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:Ee("flex items-center px-4",!1!==c||!1!==u?"justify-between":"justify-end"),children:[!1!==c||!1!==u?e.jsx("div",{children:e.jsx(Qd,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:h,children:e.jsx(qn,{name:"close"})})})]}),!1!==d?e.jsx(tp,{closeMenu:h,isMenuOpen:p,searchBarIconURL:"string"==typeof t.searchBarIcon?t.searchBarIcon:(null===(n=t.searchBarIcon)||void 0===n?void 0:n.url)||"",onSearch:t.onSearch||(()=>{}),iconFieldProps:null===(r=t.fieldProps)||void 0===r?void 0:r.searchBarIcon}):null,e.jsxs("div",{className:"flex-grow overflow-y-auto",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&h()},children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...i||[],...s||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx($d,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((n,r)=>e.jsx("li",{children:e.jsx(Nd,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ee("footnote flex items-center w-full h-11 text-text-link","number"!=typeof t.utilityNavActiveIndex?1===r&&"label4":t.utilityNavActiveIndex===r&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${n.anchorId}`)},`utility-menu-items-${r}`))})]})]})})]})},tp=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:i,searchBarIconURL:o,iconFieldProps:s}=t,[a,c]=l.default.useState(""),u=l.default.useRef(null),d=e=>{n(),e.preventDefault(),r(a)};return l.default.useEffect(()=>{i||c("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:d,children:[e.jsx(Jr,{src:o,width:32,height:32,className:"ml-2",alt:"Search icon",role:"button",onClick:d,...s}),e.jsx("div",{className:"flex-grow",children:e.jsx(qd,{ref:u,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},np=t=>{const{searchBarIconURL:n,onSearch:r,iconFieldProps:i}=t,[o,s]=l.default.useState(""),a=l.default.useRef(null),c=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:c,children:[e.jsx(Jr,{src:n,width:32,height:32,alt:"Search icon",role:"button",onClick:c,...i}),e.jsx(qd,{ref:a,type:"text",name:"search",placeholder:"Search...",value:o,onChange:e=>s(e.target.value),className:"body3 rounded-full px-3 text-text",containerClassName:"px-0 h-full border-none rounded-full",autoComplete:"off"})]})},rp=/^(\d[\d,]*)\.(\d+)$/;function ip(t,n){const r=Array.isArray(t)?t:[t],i=Math.min(n,r.length);return e.jsx("div",{className:"flex flex-col py-7",children:e.jsx("div",{className:"flex shrink-0 basis-0 flex-row gap-16 md:gap-20",children:[...new Array(i)].map((t,n)=>e.jsx("ul",{className:"flex flex-col gap-5",style:{width:"172px"},children:r.slice(n*Math.ceil(r.length/i),(n+1)*Math.ceil(r.length/i)).map((t,r)=>e.jsx("li",{children:t},`ordered-item-${n}-${r}`))},`ordered-col-${n}`))})})}function op({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto px-5 [-ms-overflow-style:none] [scrollbar-width:none] md:flex md:justify-center [&::-webkit-scrollbar]:hidden",children:e.jsx("div",{className:"flex w-max gap-10",children:t.map((t,r)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>i(r,t.anchorId||""),buttonClassName:Ee("py-2 whitespace-nowrap",r===n?"label1 border-b-2 border-border-focus-secondary":"body1"),children:t.tabName},r))})}),t.map((t,i)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:i===n?"auto":0,opacity:i===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},className:Ee("overflow-hidden",i===n?"block":"hidden"),id:t.anchorId||`tab-${i}`,children:e.jsx("div",{className:"px-5 py-4 md:px-10",children:ip(t.tabContent,r)})})})},i))]})}function sp({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i,setCurrentTabIndex:o}){return e.jsx("div",{className:"flex w-full flex-col",children:t.map((t,s)=>e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>s===n?o(-1):i(s,t.anchorId||""),className:Ee("flex w-full items-center justify-between px-5 py-4 text-text md:px-10",s===n?"bg-bg-surface-hover":""),children:[e.jsx("span",{className:"heading6",children:t.tabName}),e.jsx(qn,{name:s===n?"keyboard_arrow_up":"keyboard_arrow_down",className:"text-text",size:40})]}),e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:s===n?"auto":0,opacity:s===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},className:Ee("overflow-hidden",s===n?"block":"hidden"),id:t.anchorId||`tab-${s}`,children:e.jsx("div",{className:"px-5 py-4 md:px-10",children:ip(t.tabContent,r)})})})]},s))})}function ap({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i}){return e.jsxs("div",{className:"flex gap-10 px-5 py-20",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"flex min-w-[320px] gap-4 rounded-[20px] border-2 px-6 py-7 shadow-lg",children:[...new Array(Math.min(2,t.length))].map((r,o)=>{const s=Math.ceil(t.length/2);return e.jsx("div",{className:"flex flex-1 flex-col gap-4",children:t.slice(o*s,(o+1)*s).map((t,r)=>{const a=o*s+r;return e.jsx("button",{onClick:()=>i(a,t.anchorId||""),className:Ee("label1 whitespace-nowrap rounded-lg px-4 py-3 text-left",a===n?"bg-bg-inverse text-white":"text-text"),children:t.tabName},a)})},`tab-col-${o}`)})})}),e.jsx("div",{className:"w-full",children:t.map((t,i)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{opacity:0,y:20},animate:{opacity:i===n?1:0,y:i===n?0:20},exit:{opacity:0,y:-20},transition:{duration:.3},className:Ee("overflow-hidden pl-10 xl:pl-20",i===n?"block":"hidden"),id:t.anchorId||`tab-${i}`,children:ip(t.tabContent,r)})})},i))})]})}function lp({items:t,currentTabIndex:n,onTabClick:r}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto px-5 [-ms-overflow-style:none] [scrollbar-width:none] md:flex md:justify-center [&::-webkit-scrollbar]:hidden",children:e.jsx("div",{className:"flex w-max gap-10",children:t.map((t,i)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("py-2 whitespace-nowrap",i===n?"label1 border-b-2 border-border-focus-secondary":"body1"),children:t.tabName},i))})}),t.map((t,r)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:r===n?"auto":0,opacity:r===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},children:t.tabContent})})},r))]})}function cp({items:t,currentTabIndex:n,onTabClick:r}){return e.jsx(e.Fragment,{children:t.map((t,i)=>e.jsxs("div",{className:"py-5",children:[e.jsxs(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("w-full flex justify-between items-center px-4 py-5",i===n?"bg-bg-surface-active":""),children:[e.jsx("span",{className:"heading6",children:t.tabName}),e.jsx(qn,{name:i===n?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:48})]}),e.jsx(ui,{open:i===n,children:e.jsx("div",{className:Ee("px-4 py-4"),children:t.tabContent})})]},i))})}function up({items:t,currentTabIndex:n,onTabClick:r}){return e.jsxs("div",{className:"flex px-5 py-20",children:[e.jsx("div",{className:"rounded-surface-lg border border-border-secondary shadow-lg",children:e.jsx("div",{className:"flex min-w-80 flex-col gap-4 px-6 py-7",children:t.map((t,i)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("px-4 py-3 whitespace-nowrap text-left rounded-button-sm",i===n?"label1 text-white bg-bg-inverse":"body1"),children:t.tabName},i))})}),e.jsx("div",{className:"grow",children:t.map((t,r)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:r===n?"auto":0,opacity:r===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},children:t.tabContent})})},r))})]})}function dp(n){var r;const[i,o]=t.useState(0),[s,a]=t.useState(""),[l,c]=t.useState(2),{title:u,subTitle:d,tabs:p,navigationType:m=!0,mobileSidebarTabType:h=!0,dynamic:f=!1,isOrderedList:g=!1}=n,b=null!==(r=null==p?void 0:p.items)&&void 0!==r?r:[];t.useEffect(()=>{if("undefined"!=typeof window){a(window.location.hash);const e=()=>{a(window.location.hash)};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}}},[]),t.useEffect(()=>{var e;null===(e=null==p?void 0:p.items)||void 0===e||e.some((e,t)=>{if(`#${(null==e?void 0:e.anchorId)||"tab-"+t}`===s)return o(t),!0})},[p,s]),t.useEffect(()=>{if(!f)return;const e=()=>{if("undefined"==typeof window)return;const e=window.innerWidth;c(e<=640?2:e>750||e<=768?3:e<=1024?2:3)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[f]);const v=(e,t)=>{o(e),"undefined"!=typeof window&&s&&(window.location.hash=t||"")};return e.jsxs("div",{children:[u||d?e.jsxs("div",{className:"mb-8 mt-5 flex flex-col gap-5 md:gap-6",children:[u?e.jsx(er,{className:"heading2 px-5 md:heading1 md:text-center",children:u}):null,d?e.jsx(er,{className:"subheading3 px-5 md:subheading1 md:text-center",children:d}):null]}):null,f&&g?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden",children:h?e.jsx(op,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v}):e.jsx(sp,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v,setCurrentTabIndex:o})}),e.jsx("div",{className:"hidden lg:block",children:m?e.jsx(op,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v}):e.jsx(ap,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"md:hidden",children:h?e.jsx(lp,{items:b,currentTabIndex:i,onTabClick:v}):e.jsx(cp,{items:b,currentTabIndex:i,onTabClick:v})}),e.jsx("div",{className:"hidden md:block",children:m?e.jsx(lp,{items:b,currentTabIndex:i,onTabClick:v}):e.jsx(up,{items:b,currentTabIndex:i,onTabClick:v})})]})]})}const pp={closed:{opacity:0},open:{opacity:1}},mp={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},hp={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(null,arguments)}function gp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function bp(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function vp(...e){return t.useCallback(bp(...e),e)}function xp(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}const yp=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},wp=l["useId".toString()]||(()=>{});let Cp=0;function Ip(e){const[t,n]=l.useState(wp());return yp(()=>{n(e=>null!=e?e:String(Cp++))},[e]),e||(t?`radix-${t}`:"")}function Np(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function Ep({prop:e,defaultProp:n,onChange:r=()=>{}}){const[i,o]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[i]=r,o=t.useRef(i),s=Np(n);return t.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:i,l=Np(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[s,e,o,l])]}const Ap=t.forwardRef((e,n)=>{const{children:r,...i}=e,o=t.Children.toArray(r),s=o.find(Sp);if(s){const e=s.props.children,r=o.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(jp,fp({},i,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(jp,fp({},i,{ref:n}),r)});Ap.displayName="Slot";const jp=t.forwardRef((e,n)=>{const{children:r,...i}=e;return t.isValidElement(r)?t.cloneElement(r,{...kp(i,r.props),ref:n?bp(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});jp.displayName="SlotClone";const Tp=({children:e})=>t.createElement(t.Fragment,null,e);function Sp(e){return t.isValidElement(e)&&e.type===Tp}function kp(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const Pp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?Ap:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,fp({},o,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const Rp="dismissableLayer.update",Bp="dismissableLayer.pointerDownOutside",Lp="dismissableLayer.focusOutside";let Op;const Gp=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Gp),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=vp(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,I=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e),i=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){const t={originalEvent:e};function s(){Vp(Bp,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=s,n.addEventListener("click",o.current,{once:!0})):s()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e),i=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){Vp(Lp,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Op=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Dp(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Op)}},[p,h,i,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Dp())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(Rp,e),()=>document.removeEventListener(Rp,e)},[]),t.createElement(Pp.div,fp({},u,{ref:g,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:gp(e.onFocusCapture,N.onFocusCapture),onBlurCapture:gp(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:gp(e.onPointerDownCapture,I.onPointerDownCapture)}))});function Dp(){const e=new CustomEvent(Rp);document.dispatchEvent(e)}function Vp(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}(o,s):o.dispatchEvent(s)}const Fp="focusScope.autoFocusOnMount",Hp="focusScope.autoFocusOnUnmount",Wp={bubbles:!1,cancelable:!0},Xp=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=Np(o),d=Np(s),p=t.useRef(null),m=vp(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(i){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Yp(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Yp(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Yp(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,l,h.paused]),t.useEffect(()=>{if(l){Up.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Fp,Wp);l.addEventListener(Fp,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yp(r,{select:t}),document.activeElement!==n)return}((e=zp(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Yp(l))}return()=>{l.removeEventListener(Fp,u),setTimeout(()=>{const e=new CustomEvent(Hp,Wp);l.addEventListener(Hp,d),l.dispatchEvent(e),e.defaultPrevented||Yp(null!=t?t:document.body,{select:!0}),l.removeEventListener(Hp,d),Up.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!i)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=zp(e),n=_p(t,e),r=_p(t.reverse(),e);return[n,r]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&Yp(o,{select:!0})):(e.preventDefault(),r&&Yp(i,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return t.createElement(Pp.div,fp({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function zp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _p(e,t){for(const n of e)if(!Zp(n,{upTo:t}))return n}function Zp(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Yp(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Up=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Jp(e,t),e.unshift(t)},remove(t){var n;e=Jp(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Jp(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const $p=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...o}=e;return i?d.default.createPortal(t.createElement(Pp.div,fp({},o,{ref:n})),i):null});const Kp=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Qp(o.current);a.current="mounted"===c?e:"none"},[c]),yp(()=>{const t=o.current,n=s.current;if(n!==e){const r=a.current,i=Qp(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),yp(()=>{if(n){const e=e=>{const t=Qp(o.current).includes(e.animationName);e.target===n&&t&&i.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Qp(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}(n),s="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=vp(o.ref,s.ref);return"function"==typeof r||o.isPresent?t.cloneElement(s,{ref:a}):null};function Qp(e){return(null==e?void 0:e.animationName)||"none"}Kp.displayName="Presence";let qp=0;function em(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var tm=function(){return tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},tm.apply(this,arguments)};function nm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var rm="right-scroll-bar-position",im="width-before-scroll-bar";function om(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var sm="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,am=new WeakMap;function lm(e,n){var r,i,o,s=(r=null,i=function(t){return e.forEach(function(e){return om(e,t)})},(o=t.useState(function(){return{value:r,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return sm(function(){var t=am.get(s);if(t){var n=new Set(t),r=new Set(e),i=s.current;n.forEach(function(e){r.has(e)||om(e,null)}),r.forEach(function(e){n.has(e)||om(e,i)})}am.set(s,e)},[e]),s}function cm(e){return e}var um=function(e){var t=e.sideCar,n=nm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,tm({},n))};um.isSideCarExport=!0;var dm=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=cm);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return i}(null);return t.options=tm({async:!0,ssr:!1},e),t}(),pm=function(){},mm=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:pm,onWheelCapture:pm,onTouchMoveCapture:pm}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=nm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,w=lm([n,t]),C=tm(tm({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:dm,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?l.cloneElement(l.Children.only(a),tm(tm({},C),{ref:w})):l.createElement(v,tm({},C,{className:c,ref:w}),a))});mm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mm.classNames={fullWidth:im,zeroRight:rm};function hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var fm=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=hm())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gm=function(){var e,t=(e=fm(),function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},bm={left:0,top:0,right:0,gap:0},vm=function(e){return parseInt(e||"",10)||0},xm=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bm;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[vm(n),vm(r),vm(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ym=gm(),wm="data-scroll-locked",Cm=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(wm,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(rm," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(im," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(rm," .").concat(rm," {\n right: 0 ").concat(r,";\n }\n \n .").concat(im," .").concat(im," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(wm,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Im=function(){var e=parseInt(document.body.getAttribute(wm)||"0",10);return isFinite(e)?e:0},Nm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(wm,(Im()+1).toString()),function(){var e=Im()-1;e<=0?document.body.removeAttribute(wm):document.body.setAttribute(wm,e.toString())}},[]);var o=l.useMemo(function(){return xm(i)},[i]);return l.createElement(ym,{styles:Cm(o,!t,i,n?"":"!important")})},Em=!1;if("undefined"!=typeof window)try{var Am=Object.defineProperty({},"passive",{get:function(){return Em=!0,!0}});window.addEventListener("test",Am,Am),window.removeEventListener("test",Am,Am)}catch(e){Em=!1}var jm=!!Em&&{passive:!1},Tm=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Sm=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),km(e,n)){var r=Pm(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},km=function(e,t){return"v"===e?function(e){return Tm(e,"overflowY")}(t):function(e){return Tm(e,"overflowX")}(t)},Pm=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Rm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bm=function(e){return[e.deltaX,e.deltaY]},Lm=function(e){return e&&"current"in e?e.current:e},Om=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Gm=0,Mm=[];var Dm,Vm=(Dm=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(Gm++)[0],o=l.useState(function(){return gm()})[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Lm),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=Rm(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Sm(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=Sm(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,a=t.contains(s),l=!1,c=o>0,u=0,d=0;do{var p=Pm(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&km(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=l.useCallback(function(e){var n=e;if(Mm.length&&Mm[Mm.length-1]===o){var r="deltaY"in n?Bm(n):Rm(n),i=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(s.current.shards||[]).map(Lm).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=Rm(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,Bm(t),t.target,a(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,Rm(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return Mm.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,jm),document.addEventListener("touchmove",c,jm),document.addEventListener("touchstart",d,jm),function(){Mm=Mm.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,jm),document.removeEventListener("touchmove",c,jm),document.removeEventListener("touchstart",d,jm)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(o,{styles:Om(i)}):null,h?l.createElement(Nm,{gapMode:"margin"}):null)},dm.useMedium(Dm),um),Fm=l.forwardRef(function(e,t){return l.createElement(mm,tm({},e,{ref:t,sideCar:Vm}))});Fm.classNames=mm.classNames;var Hm=new WeakMap,Wm=new WeakMap,Xm={},zm=0,_m=function(e){return e&&(e.host||_m(e.parentNode))},Zm=function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=_m(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Xm[n]||(Xm[n]=new WeakMap);var o=Xm[n],s=[],a=new Set,l=new Set(i),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Hm.get(e)||0)+1,c=(o.get(e)||0)+1;Hm.set(e,l),o.set(e,c),s.push(e),1===l&&i&&Wm.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),zm++,function(){s.forEach(function(e){var t=Hm.get(e)-1,i=o.get(e)-1;Hm.set(e,t),o.set(e,i),t||(Wm.has(e)||e.removeAttribute(r),Wm.delete(e)),i||e.removeAttribute(n)}),--zm||(Hm=new WeakMap,Hm=new WeakMap,Wm=new WeakMap,Xm={})}},Ym=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Zm(r,i,n,"aria-hidden")):function(){return null}};const Um="Dialog",[Jm,$m]=function(e,n=[]){let r=[];const i=()=>{const n=r.map(e=>t.createContext(e));return function(r){const i=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(n,i){const o=t.createContext(i),s=r.length;function a(n){const{scope:r,children:i,...a}=n,l=(null==r?void 0:r[e][s])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},i)}return r=[...r,i],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||o,c=t.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},xp(i,...n)]}(Um),[Km,Qm]=Jm(Um),qm="DialogPortal",[eh,th]=Jm(qm,{forceMount:void 0}),nh="DialogOverlay",rh=t.forwardRef((e,n)=>{const r=th(nh,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qm(nh,e.__scopeDialog);return s.modal?t.createElement(Kp,{present:i||s.open},t.createElement(ih,fp({},o,{ref:n}))):null}),ih=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qm(nh,r);return t.createElement(Fm,{as:Ap,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(Pp.div,fp({"data-state":mh(o.open)},i,{ref:n,style:{pointerEvents:"auto",...i.style}})))}),oh="DialogContent",sh=t.forwardRef((e,n)=>{const r=th(oh,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qm(oh,e.__scopeDialog);return t.createElement(Kp,{present:i||s.open},s.modal?t.createElement(ah,fp({},o,{ref:n})):t.createElement(lh,fp({},o,{ref:n})))}),ah=t.forwardRef((e,n)=>{const r=Qm(oh,e.__scopeDialog),i=t.useRef(null),o=vp(n,r.contentRef,i);return t.useEffect(()=>{const e=i.current;if(e)return Ym(e)},[]),t.createElement(ch,fp({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gp(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:gp(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:gp(e.onFocusOutside,e=>e.preventDefault())}))}),lh=t.forwardRef((e,n)=>{const r=Qm(oh,e.__scopeDialog),i=t.useRef(!1),o=t.useRef(!1);return t.createElement(ch,fp({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(i.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),ch=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=Qm(oh,r),c=vp(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:em()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:em()),qp++,()=>{1===qp&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),qp--}},[]),t.createElement(t.Fragment,null,t.createElement(Xp,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s},t.createElement(Mp,fp({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":mh(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),uh="DialogTitle",dh="DialogClose",ph=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qm(dh,r);return t.createElement(Pp.button,fp({type:"button"},i,{ref:n,onClick:gp(e.onClick,()=>o.onOpenChange(!1))}))});function mh(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function i(e){const{children:n,...i}=e,o=t.useMemo(()=>i,Object.values(i));return t.createElement(r.Provider,{value:o},n)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:oh,titleName:uh,docsSlug:"dialog"});const hh=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=Ep({prop:i,defaultProp:o,onChange:s});return t.createElement(Km,{scope:n,triggerRef:l,contentRef:c,contentId:Ip(),titleId:Ip(),descriptionId:Ip(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},fh=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Qm(qm,n);return t.createElement(eh,{scope:n,forceMount:r},t.Children.map(i,e=>t.createElement(Kp,{present:r||s.open},t.createElement($p,{asChild:!0,container:o},e))))},gh=rh,bh=sh,vh=ph,xh=t=>{const{isOpen:n,onRequestClose:r,size:i,title:o,content:s,description:a,children:l,bodyClassName:c,type:u="modal",index:d=0,fieldProps:p}=t;return e.jsx(hh,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(fh,{children:[e.jsx(ud.div,{initial:"closed",animate:n?"open":"closed",variants:pp,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(gh,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(ud.div,{initial:"closed",animate:n?"open":"closed",variants:mp,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"pointer-events-auto w-[calc(100vw-10px)] focus:outline-none sm:w-[calc(100vw-90px)]",children:e.jsx(bh,{onOpenAutoFocus:e=>e.preventDefault(),className:Ee("relative mx-auto w-full overflow-hidden rounded-[24px] shadow-drop focus:outline-none",!/(^|\s)bg-/.test(null!=c?c:"")&&"bg-bg",!/(^|\s)p-/.test(null!=c?c:"")&&"p-[25px]",c),style:{maxWidth:hp[i||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(vh,{asChild:!0,children:e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 z-10 mr-2 mt-2",children:e.jsx(qn,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-y-auto scroll-smooth [overflow-x:clip] [scrollbar-color:rgba(0,0,0,0.2)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/30 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5",children:[o?e.jsx(er,{className:Ee("mb-3 mt-5 w-full pr-8 text-center sm:pr-0","heading5 md:pt-0","mb-4 md:mb-[60px]"),as:"h2",...null==p?void 0:p.title,children:o}):null,a?e.jsx(er,{as:"div",className:"mb-8 sm:mb-5",...null==p?void 0:p.description,children:a}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",...null==p?void 0:p.content,children:[s,l||null]})]})]})})})})]})})},yh=({children:t,background:n,className:r,fill:i="yellow",maxFit:o,show:s=!0,path:a="path2"})=>{const l=`${a}`,c={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},d="string"==typeof n&&n in u,p=d?u[n]:void 0,m=n&&!d?{background:n}:void 0,h=i in c?c[i]:"text-[#F5FF1E]";return s?e.jsxs("div",{className:`shared-component-backgound-wrapper shape-bg relative overflow-hidden ${null!=r?r:""} ${o?"max-content":""} ${null!=p?p:m?"":"bg-white"}`,style:m,children:["path1"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${l} fill-current ${h}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${l} fill-current ${h}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${l} fill-current ${h}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${l} fill-current ${h}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path5"===a&&e.jsxs(e.Fragment,{children:[e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-0 top-0 z-0 block md:hidden ${l} fill-current ${h}`,width:"367",height:"644",viewBox:"0 0 367 644",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M-2083.1 549.586C-1857.78 764.836 -1656.5 828.759 -1081.83 673.557C-539.683 527.203 347.968 344.365 364.89 7.43135C381.862 -193.724 210.008 -373.544 84.6305 -523.879C-1.85227 -620.854 -81.806 -706.094 -164.9 -802.494C-192.25 -834.002 -242.154 -805.661 -229.077 -765.61C-160.659 -556.59 -149.205 -385.975 -240.751 -214.056C-386.348 97.8893 -1020.17 305.621 -1399.44 344.278C-1800.65 392.049 -2033.89 187.954 -2210.22 -76.0251C-2301.18 -219.67 -2360.21 -374.3 -2388.99 -518.696C-2397.38 -561.352 -2458.78 -559.193 -2463.58 -515.969C-2501.97 -175.709 -2310.97 298.878 -2083.31 550.316"})}),e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-0 top-0 z-0 hidden md:block ${l} fill-current ${h}`,width:"367",height:"448",viewBox:"0 0 367 448",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M-2083.1 549.587C-1857.78 764.837 -1656.5 828.759 -1081.83 673.557C-539.682 527.203 347.968 344.365 364.89 7.43156C381.863 -193.724 210.008 -373.543 84.6307 -523.879C-1.85203 -620.854 -81.8058 -706.094 -164.9 -802.494C-192.249 -834.001 -242.154 -805.661 -229.077 -765.609C-160.658 -556.59 -149.205 -385.975 -240.751 -214.056C-386.348 97.8895 -1020.17 305.621 -1399.44 344.278C-1800.65 392.049 -2033.89 187.954 -2210.22 -76.0249C-2301.18 -219.669 -2360.21 -374.3 -2388.99 -518.696C-2397.38 -561.352 -2458.78 -559.193 -2463.58 -515.969C-2501.97 -175.709 -2310.97 298.879 -2083.31 550.317"})})]}),e.jsx("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e.jsx("div",{className:`shared-component-backgound-wrapper ${null!=r?r:""} ${null!=p?p:""}`,style:m,children:t})},wh=e=>`?page=${e}`,Ch=({currentPage:t,totalPages:n,onPageChange:r,getPageHref:i=wh,ariaLabel:o="Pagination"})=>{const s=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);if(e<=4)return[1,2,3,4,5,"...",t];if(e>=t-3)return[1,"...",t-4,t-3,t-2,t-1,t];return[1,"...",e-1,e,e+1,"...",t]}(t,n),a="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand",l="opacity-40 pointer-events-none";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":o,children:[e.jsx(ir,{href:1===t?"#":i(t-1),className:`${a} ${1===t?l:""}`,"aria-label":"Go to previous page","aria-disabled":1===t,tabIndex:1===t?-1:void 0,onClick:e=>{1!==t?null==r||r(t-1):e.preventDefault()},children:e.jsx(qn,{name:"chevron_left",size:32,"aria-hidden":"true"})}),s.map((n,o)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${o}`):e.jsx(ir,{href:i(n),className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,onClick:()=>null==r?void 0:r(n),children:n},n)),e.jsx(ir,{href:t===n?"#":i(t+1),className:`${a} ${t===n?l:""}`,"aria-label":"Go to next page","aria-disabled":t===n,tabIndex:t===n?-1:void 0,onClick:e=>{t!==n?null==r||r(t+1):e.preventDefault()},children:e.jsx(qn,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Ih(e){return Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ih(e)}function Nh(e){var t=function(e,t){if("object"!=Ih(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ih(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ih(t)?t:t+""}function Eh(e,t,n){return(t=Nh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach(function(t){Eh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Th(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sh(e,t){if(e){if("string"==typeof e)return Th(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Th(e,t):void 0}}function kh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||Sh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ph(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Rh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Bh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nh(r.key),r)}}function Lh(e,t){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lh(e,t)}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oh(e)}function Gh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gh=function(){return!!e})()}function Mh(e,t){if(t&&("object"==Ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dh(e){return function(e){if(Array.isArray(e))return Th(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vh=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Fh="-ms-",Hh="-moz-",Wh="-webkit-",Xh="comm",zh="rule",_h="decl",Zh="@keyframes",Yh=Math.abs,Uh=String.fromCharCode,Jh=Object.assign;function $h(e){return e.trim()}function Kh(e,t,n){return e.replace(t,n)}function Qh(e,t){return e.indexOf(t)}function qh(e,t){return 0|e.charCodeAt(t)}function ef(e,t,n){return e.slice(t,n)}function tf(e){return e.length}function nf(e){return e.length}function rf(e,t){return t.push(e),e}var of=1,sf=1,af=0,lf=0,cf=0,uf="";function df(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:of,column:sf,length:s,return:""}}function pf(e,t){return Jh(df("",null,null,"",null,null,0),e,{length:-e.length},t)}function mf(){return cf=lf>0?qh(uf,--lf):0,sf--,10===cf&&(sf=1,of--),cf}function hf(){return cf=lf<af?qh(uf,lf++):0,sf++,10===cf&&(sf=1,of++),cf}function ff(){return qh(uf,lf)}function gf(){return lf}function bf(e,t){return ef(uf,e,t)}function vf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xf(e){return of=sf=1,af=tf(uf=e),lf=0,[]}function yf(e){return uf="",e}function wf(e){return $h(bf(lf-1,Nf(91===e?e+2:40===e?e+1:e)))}function Cf(e){for(;(cf=ff())&&cf<33;)hf();return vf(e)>2||vf(cf)>3?"":" "}function If(e,t){for(;--t&&hf()&&!(cf<48||cf>102||cf>57&&cf<65||cf>70&&cf<97););return bf(e,gf()+(t<6&&32==ff()&&32==hf()))}function Nf(e){for(;hf();)switch(cf){case e:return lf;case 34:case 39:34!==e&&39!==e&&Nf(cf);break;case 40:41===e&&Nf(e);break;case 92:hf()}return lf}function Ef(e,t){for(;hf()&&e+cf!==57&&(e+cf!==84||47!==ff()););return"/*"+bf(t,lf-1)+"*"+Uh(47===e?e:hf())}function Af(e){for(;!vf(ff());)hf();return bf(e,lf)}function jf(e){return yf(Tf("",null,null,null,[""],e=xf(e),0,[0],e))}function Tf(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=i,w=o,C=r,I=x;g;)switch(h=v,v=hf()){case 40:if(108!=h&&58==qh(I,d-1)){-1!=Qh(I+=Kh(wf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:I+=wf(v);break;case 9:case 10:case 13:case 32:I+=Cf(h);break;case 92:I+=If(gf()-1,7);continue;case 47:switch(ff()){case 42:case 47:rf(kf(Ef(hf(),gf()),t,n),l);break;default:I+="/"}break;case 123*f:a[c++]=tf(I)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(I=Kh(I,/\f/g,"")),m>0&&tf(I)-d&&rf(m>32?Pf(I+";",r,n,d-1):Pf(Kh(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(rf(C=Sf(I,t,n,c,u,i,a,x,y=[],w=[],d),o),123===v)if(0===u)Tf(I,t,C,C,y,o,d,a,w);else switch(99===p&&110===qh(I,3)?100:p){case 100:case 108:case 109:case 115:Tf(e,C,C,r&&rf(Sf(e,C,C,0,0,i,a,x,i,y=[],d),w),i,w,d,a,r?y:w);break;default:Tf(I,C,C,C,[""],w,0,a,w)}}c=u=m=0,f=b=1,x=I="",d=s;break;case 58:d=1+tf(I),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==mf())continue;switch(I+=Uh(v),v*f){case 38:b=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(tf(I)-1)*b,b=1;break;case 64:45===ff()&&(I+=wf(hf())),p=ff(),u=d=tf(x=I+=Af(gf())),v++;break;case 45:45===h&&2==tf(I)&&(f=0)}}return o}function Sf(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],m=nf(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=ef(e,d+1,d=Yh(f=s[h])),x=e;b<m;++b)(x=$h(f>0?p[b]+" "+v:Kh(v,/&\f/g,p[b])))&&(l[g++]=x);return df(e,t,n,0===i?zh:a,l,c,u)}function kf(e,t,n){return df(e,t,n,Xh,Uh(cf),ef(e,2,-2),0)}function Pf(e,t,n,r){return df(e,t,n,_h,ef(e,0,r),ef(e,r+1,-1),r)}function Rf(e,t){for(var n="",r=nf(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Bf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _h:return e.return=e.return||e.value;case Xh:return"";case Zh:return e.return=e.value+"{"+Rf(e.children,r)+"}";case zh:e.value=e.props.join(",")}return tf(n=Rf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lf(e){var t=nf(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}var Of="undefined"!=typeof document,Gf=function(e,t,n){for(var r=0,i=0;r=i,i=ff(),38===r&&12===i&&(t[n]=1),!vf(i);)hf();return bf(e,lf)},Mf=function(e,t){return yf(function(e,t){var n=-1,r=44;do{switch(vf(r)){case 0:38===r&&12===ff()&&(t[n]=1),e[n]+=Gf(lf-1,t,n);break;case 2:e[n]+=wf(r);break;case 4:if(44===r){e[++n]=58===ff()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Uh(r)}}while(r=hf());return e}(xf(e),t))},Df=new WeakMap,Vf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Df.get(n))&&!r){Df.set(e,!0);for(var i=[],o=Mf(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},Ff=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hf(e,t){switch(function(e,t){return 45^qh(e,0)?(((t<<2^qh(e,0))<<2^qh(e,1))<<2^qh(e,2))<<2^qh(e,3):0}(e,t)){case 5103:return Wh+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wh+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wh+e+Hh+e+Fh+e+e;case 6828:case 4268:return Wh+e+Fh+e+e;case 6165:return Wh+e+Fh+"flex-"+e+e;case 5187:return Wh+e+Kh(e,/(\w+).+(:[^]+)/,Wh+"box-$1$2"+Fh+"flex-$1$2")+e;case 5443:return Wh+e+Fh+"flex-item-"+Kh(e,/flex-|-self/,"")+e;case 4675:return Wh+e+Fh+"flex-line-pack"+Kh(e,/align-content|flex-|-self/,"")+e;case 5548:return Wh+e+Fh+Kh(e,"shrink","negative")+e;case 5292:return Wh+e+Fh+Kh(e,"basis","preferred-size")+e;case 6060:return Wh+"box-"+Kh(e,"-grow","")+Wh+e+Fh+Kh(e,"grow","positive")+e;case 4554:return Wh+Kh(e,/([^-])(transform)/g,"$1"+Wh+"$2")+e;case 6187:return Kh(Kh(Kh(e,/(zoom-|grab)/,Wh+"$1"),/(image-set)/,Wh+"$1"),e,"")+e;case 5495:case 3959:return Kh(e,/(image-set\([^]*)/,Wh+"$1$`$1");case 4968:return Kh(Kh(e,/(.+:)(flex-)?(.*)/,Wh+"box-pack:$3"+Fh+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wh+e+e;case 4095:case 3583:case 4068:case 2532:return Kh(e,/(.+)-inline(.+)/,Wh+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tf(e)-1-t>6)switch(qh(e,t+1)){case 109:if(45!==qh(e,t+4))break;case 102:return Kh(e,/(.+:)(.+)-([^]+)/,"$1"+Wh+"$2-$3$1"+Hh+(108==qh(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qh(e,"stretch")?Hf(Kh(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qh(e,t+1))break;case 6444:switch(qh(e,tf(e)-3-(~Qh(e,"!important")&&10))){case 107:return Kh(e,":",":"+Wh)+e;case 101:return Kh(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wh+(45===qh(e,14)?"inline-":"")+"box$3$1"+Wh+"$2$3$1"+Fh+"$2box$3")+e}break;case 5936:switch(qh(e,t+11)){case 114:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wh+e+Fh+e+e}return e}var Wf,Xf,zf,_f=Of?void 0:(Wf=function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(){return{}})},Xf=new WeakMap,function(e){if(Xf.has(e))return Xf.get(e);var t=Wf(e);return Xf.set(e,t),t}),Zf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _h:e.return=Hf(e.value,e.length);break;case Zh:return Rf([pf(e,{value:Kh(e.value,"@","@"+Wh)})],r);case zh:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rf([pf(e,{props:[Kh(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Rf([pf(e,{props:[Kh(t,/:(plac\w+)/,":"+Wh+"input-$1")]}),pf(e,{props:[Kh(t,/:(plac\w+)/,":-moz-$1")]}),pf(e,{props:[Kh(t,/:(plac\w+)/,Fh+"input-$1")]})],r)}return""})}}],Yf=function(e){var t=e.key;if(Of&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Zf,s={},a=[];Of&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[Vf,Ff];if(_f){var u=[Bf],d=Lf(c.concat(o,u)),p=_f(o)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=Rf(jf(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};i=function(e,t,n,r){var i=t.name,o=m(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),o):r?void(b.inserted[i]=o):o}}else{var h,f=[Bf,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Lf(c.concat(o,f));i=function(e,t,n,r){h=n,Rf(jf(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Vh({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(a),b},Uf={exports:{}},Jf={};var $f,Kf,Qf,qf,eg={};
|
|
17
|
+
var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=s(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?o(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&o(a,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(a,t))}function d(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function p(e){this.def=e,this.triggered=!1}function m(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new m(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&o(a,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var f=e({},"constructor",h,!1);return h.prototype=f,e(f,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;d(t,e,function(e,t){o[e]=t,++s===i&&n(o)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=wr)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])},Cr(Ir={exports:{}},Ir.exports),Ir.exports);const Er=new WeakMap;function Ar(e,t,n){const r=Er.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Er.set(e.element,r)}function jr(e,t){return(Er.get(e.element)||{})[t]||[]}function Tr(e,t,n){const r=Er.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Er.set(e.element,r),!0;const i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),Er.set(e.element,r),r[t]&&0===r[t].length}function Sr(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function kr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function Pr(e,t){let n,r=[];if((t=Sr(t)).event){if("error"===t.event){jr(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),Tr(e,t.data.method,n)})}r=jr(e,`event:${t.event}`),n=t.data}else if(t.method){const i=function(e,t){const n=jr(e,t);if(n.length<1)return!1;const r=n.shift();return Tr(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const Rr=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Br(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rr.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function Lr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Or(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,i)=>{if(!hr(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const o=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let s=`https://${o}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(s+=`&${e}=${encodeURIComponent(t[e])}`);const a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",s,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{const t=JSON.parse(a.responseText);if(403===t.domain_status_code)return Lr(t,n),void i(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){i(e)}else i(new Error(`“${e}” is not embeddable.`));else i(new Error(`“${e}” was not found.`))},a.onerror=function(){const e=a.status?` (${a.status})`:"";i(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},a.send()})}const Gr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class Mr extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...Gr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=br(e,"change",()=>this.updatePlayer(e,t,n)),i=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{i.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=br(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,i]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:i})}async updatePlayer(e,t,n){const{position:r,velocity:i}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof i&&(0===i?!1===await t.getPaused()&&t.pause():i>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==i&&t.setPlaybackRate(i)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:i,minCheckInterval:o,maxRateAdjustment:s,maxTimeToCatchUp:a}=n,l=1e3*Math.min(a,Math.max(o,i)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),o=Math.abs(n);if(this.log(`Drift: ${n}`),o>i)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(o>r){const e=o/a,r=e<s?(s-e)/2:s;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const Dr=new WeakMap,Vr=new WeakMap;let Fr={};class Hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!hr(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(Dr.has(e))return Dr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Nr((n,r)=>{if(this._onMessage=e=>{if(!hr(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=Sr(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const i=t&&"ready"===t.event,o=t&&"ping"===t.method;if(i||o)return this.element.setAttribute("data-ready","true"),void n();Pr(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=Br(e,t);Or(gr(n),n,e).then(t=>{const n=Lr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Er.get(e);Er.set(t,n),Er.delete(e)}(e,n),Dr.set(this.element,this),t}).catch(r)}});if(Vr.set(this,n),Dr.set(this.element,this),"IFRAME"===this.element.nodeName&&kr(this,"ping"),Fr.isEnabled){const e=()=>Fr.exit();this.fullscreenchangeHandler=()=>{Fr.isFullscreen?Ar(this,"event:exitFullscreen",e):Tr(this,"event:exitFullscreen",e),this.ready().then(()=>{kr(this,"fullscreenchange",Fr.isFullscreen)})},Fr.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return hr(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Nr((t,r)=>this.ready().then(()=>{Ar(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),kr(this,e,n)}).catch(r))}get(e){return new Nr((t,n)=>(e=mr(e,"get"),this.ready().then(()=>{Ar(this,e,{resolve:t,reject:n}),kr(this,e)}).catch(n)))}set(e,t){return new Nr((n,r)=>{if(e=mr(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{Ar(this,e,{resolve:n,reject:r}),kr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===jr(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),Ar(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");Tr(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=Vr.get(this)||new Nr((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Nr.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return Fr.isEnabled?Fr.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return Fr.isEnabled?Fr.exit():this.callMethod("exitFullscreen")}getFullscreen(){return Fr.isEnabled?Nr.resolve(Fr.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Nr(e=>{if(Vr.delete(this),Dr.delete(this.element),this._originalElement&&(Dr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),Fr.isEnabled&&Fr.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Nr.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Nr((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Nr(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Nr.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new Mr(this,e,t);return kr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>kr(this,"notifyTimingObjectDisconnect")),n}}pr||(Fr=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,i={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,i)=>{const o=function(){n.off("fullscreenchange",o),r()};n.on("fullscreenchange",o);const s=(t=t||document.documentElement)[e.requestFullscreen]();s instanceof Promise&&s.then(o).catch(i)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const i=function(){n.off("fullscreenchange",i),t()};n.on("fullscreenchange",i);const o=document[e.exitFullscreen]();o instanceof Promise&&o.then(i).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=Br(e);Or(gr(t),t,e).then(t=>Lr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!hr(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?vr(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!hr(t.origin))return;const n=Sr(t.data);if(!n||"ready"!==n.event)return;const r=t.source?vr(t.source,e):null;r&&fr(r.src)&&new Hr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!hr(n.origin))return;const r=Sr(n.data);if(!r||"ready"!==r.event)return;const i=n.source?vr(n.source,e):null;if(i&&fr(i.src)){const e=new Hr(i);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!hr(e.origin))return;const t=Sr(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?vr(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const Wr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const i=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!i)return"";const o=n[n.length-1];return i===o?i:`${i}/${o}`},Xr=n=>{const{link:r,title:i,containerClassName:o,autoplay:s=!1,debug:a=!1,onPlay:l,onPause:c,onTimeUpdate:u,onEnded:d,onFullscreenToggle:p}=n,m=t.useRef(null),{href:h,embedId:f}=t.useMemo(()=>{if(!r)return{href:"",embedId:""};const e=r.toString();return{href:e,embedId:Wr(e)}},[r]);if(a&&console.log("[VimeoEmbed] href:",h,"id:",f),t.useEffect(()=>{if(!f||!m.current)return;const e=new Hr(m.current),t=()=>null==l?void 0:l(),n=()=>null==c?void 0:c(),r=()=>null==d?void 0:d(),i=e=>null==u?void 0:u(e.seconds,e.duration),o=e=>null==p?void 0:p(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",i),e.on("fullscreenchange",o),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",i),e.off("fullscreenchange",o),e.destroy().catch(()=>{})}},[f]),!f)return null;const g=new URLSearchParams({autoplay:s?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),b=function(e){try{const t=new URL(e),n=t.pathname.split("/").filter(Boolean);if("video"===n[0]&&n.length>=2){const e=n[1],r=n[2],i=`https://player.vimeo.com/video/${e}`;return r&&/^[a-f0-9]+$/i.test(r)&&t.searchParams.set("h",r),`${i}?${t.searchParams.toString()}`}return e}catch(t){return e}}(`https://player.vimeo.com/video/${f}?${g.toString()}`);return e.jsx("div",{className:Ee("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:b,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:i||"Embedded vimeo"})})};let zr=null;const _r=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},Zr=n=>{const{link:r,title:i,containerClassName:o,autoplay:s=!1,onPlay:a,onPause:l,onTimeUpdate:c,onEnded:u,onFullscreenToggle:d}=n,p=t.useMemo(()=>_r(r),[r]),m=t.useRef(null),h=t.useRef();if(or(m,d),t.useEffect(()=>{if(!p||!m.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):zr||(zr=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{zr=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),zr)}().then(n=>{!t&&m.current&&(e=new n.Player(m.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==a||a(),clearInterval(h.current),h.current=setInterval(()=>{var t,n,r,i;const o=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,s=null!==(i=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==i?i:0;null==c||c(s,o)},1e3)):t.data===r.PAUSED?(null==l||l(),clearInterval(h.current)):t.data===r.ENDED&&(null==u||u(),clearInterval(h.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(h.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[p]),!p)return null;const f=new URLSearchParams({enablejsapi:"1",autoplay:s?"1":"0",mute:s?"1":"0",playsinline:"1",rel:"0"}),g=`https://www.youtube.com/embed/${p}?${f.toString()}`;return e.jsx("div",{className:Ee("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e.jsx("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:g,title:i||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},Yr=(e=>{let t=e;for(let e=0;e<5;e++){if("function"==typeof t)return t;if(!t||"object"!=typeof t||!("default"in t))return t;t=t.default}return t})(u.default),Ur=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let i;try{i=new URL(r)}catch(t){return e}return i.searchParams.set("w",String(t)),i.searchParams.set("q",String(n||90)),i.searchParams.set("fm","webp"),i.toString()},Jr=t.forwardRef(({className:t,...n},r)=>{const i="string"==typeof n.src?n.src:"",o=i.toLowerCase().split("?")[0]||"",s=i.includes("images.ctfassets.net"),a=s&&o.endsWith(".svg"),l=s&&!a?{loader:Ur,unoptimized:!1}:{unoptimized:a};return e.jsx(Yr,{ref:r,className:Ee(t),...n,...l})});Jr.displayName="NextImage";const $r=[25,50,75];const Kr=({videoLink:n,imageWidth:r=660,imageHeight:i=660,useOriginalImageAspectRatio:o=!1,isAboveTheFold:s=!1,onVideoEvent:a})=>{var l;const[c,u]=t.useState(""),[d,p]=t.useState(!1),m=function(e){const n=t.useRef(new Set),r=t.useRef(!1),i=t.useRef(0),o=t.useRef(0),s=(t,n,r)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:i.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(i.current/o.current*100)):0,...r})};return{handlePlay:e=>s(e,"played"),handlePause:e=>s(e,"paused"),handleFullscreenToggle:(e,t)=>s(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>s(e,"closed"),handleTimeUpdate:(e,t,a)=>{const l=Number.isFinite(t)?t:0,c=Number.isFinite(a)?a:0;if(i.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);$r.forEach(t=>{u>=t&&!n.current.has(t)&&(n.current.add(t),s(e,"progress"))}),u>=99.5&&!r.current&&(r.current=!0,s(e,"completed"))},handleEnded:e=>{r.current||(r.current=!0,o.current>0&&(i.current=o.current),s(e,"completed"))},reset:()=>{n.current=new Set,r.current=!1,i.current=0,o.current=0}}}(a),h=null==n?void 0:n.videoSourceType,f="contentful"===h?null==n?void 0:n.videoAssetUrl:null==n?void 0:n.link,g="string"==typeof f?f:"",b=null==n?void 0:n.image;if(!g)return b?e.jsx("div",{className:Ee(o?"overflow-hidden rounded-image":"relative mx-auto aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e.jsx(Jr,{src:b,alt:"section-image",priority:s,fill:!o,width:o?r||660:void 0,height:o?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:Ee(o?"w-full":"object-cover")})}):null;const v=null!==(l=null==n?void 0:n.videoPopup)&&void 0!==l&&l,x=Boolean(c&&c===g),y="contentful"===h?"contentful":g.includes("vimeo")?"vimeo":"youtube",w="contentful"===y?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==n?void 0:n.videoAssetUrl):"vimeo"===y?(C=g)?Wr(C.toString()):"":_r(g);var C;const I={videoId:w,videoTitle:null==n?void 0:n.title,provider:y},N=()=>{x||(m.reset(),u(g))},E=e=>{e.stopPropagation(),m.handleClosed(I),u("")},A="string"==typeof(null==n?void 0:n.title)?n.title.trim():"",j=A?`${A} video preview`:"Video preview",T=A?`Play video: ${A}`:"Play video",S=(()=>{const t={onPlay:()=>m.handlePlay(I),onPause:()=>m.handlePause(I),onTimeUpdate:(e,t)=>m.handleTimeUpdate(I,e,t),onEnded:()=>m.handleEnded(I),onFullscreenToggle:e=>m.handleFullscreenToggle(I,e)},r=x?"playing":"idle";return"contentful"===h?e.jsx(sr,{videoAssetUrl:null==n?void 0:n.videoAssetUrl,videoAssetType:null==n?void 0:n.videoAssetType,image:b,title:null==n?void 0:n.title,description:null==n?void 0:n.description,autoplay:x,...t},r):g.includes("vimeo")?e.jsx(Xr,{link:g,title:null==n?void 0:n.title,autoplay:x,...t},r):e.jsx(Zr,{link:g,title:null==n?void 0:n.title,autoplay:x,...t},r)})();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:Ee("video-section relative mx-auto w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!x&&"hover:ring-2 hover:ring-border-focus"),onClick:N,onKeyDown:e=>{x||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),N())},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),role:x?void 0:"button",tabIndex:x?void 0:0,"aria-label":x?void 0:T,children:[e.jsxs("div",{className:Ee(x&&!v&&"hidden",x&&!v?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[b&&e.jsx(Jr,{src:b,alt:j,width:r||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx(ar,{isHovered:d})})]}),!v&&e.jsx("div",{className:Ee("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",x?"opacity-100":"hidden",!o&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:S})]}),v&&e.jsx("div",{className:Ee("z-[100] transition-all duration-300",x?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:E,children:e.jsxs("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e.jsx("button",{type:"button",onClick:E,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e.jsx(qn,{name:"close",className:"text-white"})}),S]})})]})},Qr=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),qr=(e,t)=>{var n,r,i,o,s,a,l,c;const u=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;if((null==u?void 0:u.fields)||(null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType))return u;const d=null===(i=null==u?void 0:u.sys)||void 0===i?void 0:i.id;if(!d)return null;return null!==(c=[...null!==(s=null===(o=null==t?void 0:t.entries)||void 0===o?void 0:o.block)&&void 0!==s?s:[],...null!==(l=null===(a=null==t?void 0:t.entries)||void 0===a?void 0:a.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==c?c:null},ei=e=>{var t,n,r,i,o;return null!==(o=null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===n?void 0:n.sys)||void 0===r?void 0:r.id)&&void 0!==i?i:null==e?void 0:e.__typename)&&void 0!==o?o:""},ti=e=>{var t,n;return null!==(n=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==n?n:{}},ni=e=>{var t,n,r,i,o,s,a,l,c,u,d,p,m,h,f,g,b,v,x,y,w,C,I;return{image:null!==(s=null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.file)||void 0===r?void 0:r.url)&&void 0!==i?i:null===(o=null==e?void 0:e.image)||void 0===o?void 0:o.url)&&void 0!==s?s:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(c=null===(l=null===(a=null==e?void 0:e.link)||void 0===a?void 0:a.fields)||void 0===l?void 0:l.href)&&void 0!==c?c:null===(u=null==e?void 0:e.link)||void 0===u?void 0:u.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(g=null!==(h=null===(m=null===(p=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===p?void 0:p.file)||void 0===m?void 0:m.url)&&void 0!==h?h:null===(f=null==e?void 0:e.videoAssetUrl)||void 0===f?void 0:f.url)&&void 0!==g?g:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(C=null!==(y=null===(x=null===(v=null===(b=null==e?void 0:e.videoAssetUrl)||void 0===b?void 0:b.fields)||void 0===v?void 0:v.file)||void 0===x?void 0:x.contentType)&&void 0!==y?y:null===(w=null==e?void 0:e.videoAssetUrl)||void 0===w?void 0:w.contentType)&&void 0!==C?C:null==e?void 0:e.videoAssetType,title:null!==(I=null==e?void 0:e.title)&&void 0!==I?I:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},ri=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},ii=e=>{const t=e.toLowerCase().replace(/\.$/,""),n=t.split(".").slice(-2).join("."),r=(t.slice(0,t.length-n.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${n}|${""===r||"www"===r||"kinetic"===r?"main":r}`},oi=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),n=ri(process.env.NEXT_PUBLIC_SITE_URL)||ri(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!n||ii(t)!==ii(n)}catch(e){return!1}},si=t=>({renderText:t=>t.includes("[")&&t.includes("]")?(t=>{const n=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let i,o=0;for(;null!==(i=n.exec(t));)i.index>o&&r.push(t.substring(o,i.index)),r.push(e.jsx(qn,{name:i[1],size:20,className:"inline-block align-middle"},`icon-${i.index}-${i[1]}`)),o=i.index+i[0].length;return o<t.length&&r.push(t.substring(o)),r.length>0?r:[t]})(t):t,renderMark:{[an.BOLD]:t=>e.jsx("strong",{className:"font-black",children:t}),[an.ITALIC]:t=>e.jsx("em",{children:t}),[an.UNDERLINE]:t=>e.jsx("u",{children:t}),[an.CODE]:t=>e.jsx("code",{children:t})},renderNode:{[on.PARAGRAPH]:(t,n)=>e.jsx("div",{className:"body3 mb-4 whitespace-pre-line",children:Qr(t)?"\n":n}),[on.HEADING_1]:(t,n)=>e.jsx(er,{as:"h1",className:"heading2 md:heading1",children:n}),[on.HEADING_2]:(t,n)=>e.jsx(er,{as:"h2",className:"heading3 md:heading2",children:n}),[on.HEADING_3]:(t,n)=>e.jsx(er,{as:"h3",className:"heading4 md:heading3",children:n}),[on.HEADING_4]:(t,n)=>e.jsx(er,{as:"h4",className:"heading5 md:heading4",children:n}),[on.HEADING_5]:(t,n)=>e.jsx(er,{as:"h5",className:"heading6 md:heading5",children:n}),[on.HEADING_6]:(t,n)=>e.jsx(er,{as:"h6",className:"heading6",children:n}),[on.QUOTE]:(t,n)=>e.jsx("blockquote",{children:n}),[on.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-6",children:n}),[on.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-6",children:n}),[on.LIST_ITEM]:(t,n)=>e.jsx("li",{children:n}),[sn.HYPERLINK]:(t,n)=>{var r;const i=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,o=oi(i);return e.jsx("a",{href:i,target:o?"_blank":void 0,rel:o?"noopener":void 0,children:n})},[on.EMBEDDED_ASSET]:t=>{var n,r;const i=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.target,o=null==i?void 0:i.fields,s=(null==i?void 0:i.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),a=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!s)return null;const l=s.startsWith("//")?`https:${s}`:s;return e.jsx("img",{src:l,alt:a,style:{maxWidth:"100%"}})},[on.EMBEDDED_ENTRY]:n=>{const r=qr(n,t);if(!r)return null;const i=ei(r),o=ti(r);switch(i){case"callout":return e.jsxs("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e.jsx("strong",{children:o.title}),e.jsx("div",{children:o.body})]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(Kr,{videoLink:ni(o)});default:return null}},[sn.EMBEDDED_ENTRY]:n=>{var r;const i=qr(n,t);if(!i)return null;const o=ei(i),s=ti(i);switch(o){case"componentCheckList":return e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",s.title]});case"componentVideoLink":case"ComponentVideoLink":return e.jsx(Kr,{videoLink:ni(s)});default:return e.jsx("span",{children:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:""})}}}});function ai(t,n,r="body1",i="body1 font-bold",o,s,a="body2"){if(!t||!Array.isArray(t.content))return null;const l=new WeakSet,c=(e,t=!1)=>{var n;const r=t||(null==e?void 0:e.nodeType)===on.LIST_ITEM;r&&(null==e?void 0:e.nodeType)===sn.HYPERLINK&&l.add(e),null===(n=null==e?void 0:e.content)||void 0===n||n.forEach(e=>c(e,r))};c(t);const u=si(s),d={...u,...o,renderNode:{...u.renderNode,...null==o?void 0:o.renderNode,[on.PARAGRAPH]:(t,n)=>e.jsx("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:Qr(t)?"\n":n}),[sn.HYPERLINK]:(t,r)=>{var o;const s=null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.uri,c=oi(s),u=null!=n?n:c;return e.jsx(ir,{href:s,target:u?"_blank":void 0,rel:u?"noopener":void 0,variant:"default",className:l.has(t)?a:i,children:r})}}};return rn.documentToReactComponents(t,d)}const li={renderMark:{[an.BOLD]:e=>t.createElement("span",{className:"label1"},e)}};const ci=t.forwardRef(({children:t,className:n="",style:r,disabled:i,...o},s)=>e.jsx("button",{ref:s,className:Ee(n),style:r,disabled:i,...o,children:t}));ci.displayName="Button";const ui=n=>{const{open:r,children:i}=n,o=t.useRef(null),[s,a]=t.useState(0);t.useEffect(()=>{const e=o.current;if(!e)return;const t=()=>{a(r?e.scrollHeight:0)};let n;return t(),r&&(n=new ResizeObserver(()=>t()),n.observe(e)),()=>{n&&n.disconnect()}},[r,i]);const l=r?{}:{inert:""};return e.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:s,opacity:r?1:0},"aria-hidden":!r,...l,children:e.jsx("div",{ref:o,children:i})})};ui.displayName="Collapse";const di=n=>{const{title:r,defaultOpen:i,children:o,containerClassName:s,titleClassName:a,className:l,buttonClassName:c,iconClassName:u,openOnlyOnDesktop:d,borderRadiusNone:p=!1}=n,[m,h]=t.useState(Boolean(!1));return t.useEffect(()=>{if(d){const e=window.innerWidth>=1024;h(e)}else h(Boolean(i))},[d,i]),e.jsxs("div",{className:Ee(p?"rounded-none border":"rounded-surface-xs border",s),children:[e.jsxs(ci,{type:"button",className:Ee(p?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",c),onClick:()=>h(e=>!e),children:[e.jsx("span",{className:Ee("label5 flex-1",a),children:r}),e.jsx(qn,{className:Ee("flex-shrink-0",u),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e.jsx(ui,{open:m,children:e.jsx("div",{className:Ee("px-4 py-4",l),children:o})})]})};di.displayName="Accordion";const pi=t=>{const{className:n,...r}=t;return e.jsx("div",{className:Ee("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};pi.displayName="Divider";const mi={slow:30,medium:20,fast:10},hi={cream:"bg-[#FFFEEF]",gray90:"bg-[#FBFBFC]",white:"bg-white"},fi=(t,n,r=!1,i=!1,o=!0)=>{var s,a,l;const{iconUrl:c,iconAlt:u,iconWidth:d,iconHeight:p,mobileIconUrl:m,mobileIconAlt:h,mobileIconWidth:f,mobileIconHeight:g,title:b,description:v}=t,x=Boolean(b||v),y=i&&Boolean(m);return e.jsxs("div",{className:Ee("flex flex-shrink-0 items-center whitespace-nowrap",r?"mx-auto w-full justify-center":"ml-4 w-auto"),children:[y?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:m,alt:null!==(s=null!=h?h:u)&&void 0!==s?s:"",width:f,height:g,className:"h-auto w-full max-w-[1100px] sm:hidden"}),e.jsx("img",{src:c,alt:null!=u?u:"",width:d,height:p,className:"hidden h-auto w-full max-w-[1100px] sm:block"})]}):e.jsx("img",{src:c,alt:null!=u?u:"",width:d,height:p,className:r?"h-auto w-full max-w-[1100px]":"w-[200px]"}),x&&e.jsxs("div",{className:"w-[250px] text-center",children:[e.jsx("p",{className:"flex justify-center text-center text-body3 font-bold",...o?null===(a=t.fieldProps)||void 0===a?void 0:a.title:void 0,children:b}),e.jsx("p",{className:"flex flex-wrap whitespace-normal text-center text-footnote",...o?null===(l=t.fieldProps)||void 0===l?void 0:l.description:void 0,children:v})]})]},n)},gi="pop",bi=t.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),vi=t.createContext({}),xi=t.createContext(null),yi="undefined"!=typeof document,wi=yi?t.useLayoutEffect:t.useEffect,Ci=t.createContext({strict:!1});function Ii(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ni(e){return"string"==typeof e||Array.isArray(e)}function Ei(e){return"object"==typeof e&&"function"==typeof e.start}const Ai=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ji=["initial",...Ai];function Ti(e){return Ei(e.animate)||ji.some(t=>Ni(e[t]))}function Si(e){return Boolean(Ti(e)||e.variants)}function ki(e){const{initial:n,animate:r}=function(e,t){if(Ti(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ni(t)?t:void 0,animate:Ni(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,t.useContext(vi));return t.useMemo(()=>({initial:n,animate:r}),[Pi(n),Pi(r)])}function Pi(e){return Array.isArray(e)?e.join(" "):e}const Ri={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bi={};for(const e in Ri)Bi[e]={isEnabled:t=>Ri[e].some(e=>!!t[e])};const Li=t.createContext({}),Oi=t.createContext({}),Gi=Symbol.for("motionComponentSymbol");function Mi({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}(e);const s=t.forwardRef(function(s,a){let c;const u={...t.useContext(bi),...s,layoutId:Di(s)},{isStatic:d}=u,p=ki(s),m=i(s,d);if(!d&&yi){p.visualElement=function(e,n,r,i){const{visualElement:o}=t.useContext(vi),s=t.useContext(Ci),a=t.useContext(xi),l=t.useContext(bi).reducedMotion,c=t.useRef();i=i||s.renderer,!c.current&&i&&(c.current=i(e,{visualState:n,parent:o,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;return t.useInsertionEffect(()=>{u&&u.update(r,a)}),wi(()=>{u&&u.render()}),t.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?wi:t.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}(o,m,u,n);const r=t.useContext(Oi),i=t.useContext(Ci).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,i,e,r))}return l.createElement(vi.Provider,{value:p},c&&p.visualElement?l.createElement(c,{visualElement:p.visualElement,...u}):null,r(o,s,function(e,n,r){return t.useCallback(t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):Ii(r)&&(r.current=t))},[n])}(m,p.visualElement,a),m,d,p.visualElement))});return s[Gi]=o,s}function Di({layoutId:e}){const n=t.useContext(Li).id;return n&&void 0!==e?n+"-"+e:e}function Vi(e){function t(t,n={}){return Mi(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Fi=["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 Hi(e){return"string"==typeof e&&!e.includes("-")&&!!(Fi.indexOf(e)>-1||/[A-Z]/.test(e))}const Wi={};const Xi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zi=new Set(Xi);function _i(e,{layout:t,layoutId:n}){return zi.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Wi[e]||"opacity"===e)}const Zi=e=>Boolean(e&&e.getVelocity),Yi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ui=Xi.length;const Ji=e=>t=>"string"==typeof t&&t.startsWith(e),$i=Ji("--"),Ki=Ji("var(--"),Qi=(e,t)=>t&&"number"==typeof e?t.transform(e):e,qi=(e,t,n)=>Math.min(Math.max(n,e),t),eo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},to={...eo,transform:e=>qi(0,1,e)},no={...eo,default:1},ro=e=>Math.round(1e5*e)/1e5,io=/(-)?([\d]*\.?[\d])+/g,oo=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,so=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ao(e){return"string"==typeof e}const lo=e=>({test:t=>ao(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),co=lo("deg"),uo=lo("%"),po=lo("px"),mo=lo("vh"),ho=lo("vw"),fo={...uo,parse:e=>uo.parse(e)/100,transform:e=>uo.transform(100*e)},go={...eo,transform:Math.round},bo={borderWidth:po,borderTopWidth:po,borderRightWidth:po,borderBottomWidth:po,borderLeftWidth:po,borderRadius:po,radius:po,borderTopLeftRadius:po,borderTopRightRadius:po,borderBottomRightRadius:po,borderBottomLeftRadius:po,width:po,maxWidth:po,height:po,maxHeight:po,size:po,top:po,right:po,bottom:po,left:po,padding:po,paddingTop:po,paddingRight:po,paddingBottom:po,paddingLeft:po,margin:po,marginTop:po,marginRight:po,marginBottom:po,marginLeft:po,rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:no,scaleX:no,scaleY:no,scaleZ:no,skew:co,skewX:co,skewY:co,distance:po,translateX:po,translateY:po,translateZ:po,x:po,y:po,z:po,perspective:po,transformPerspective:po,opacity:to,originX:fo,originY:fo,originZ:po,zIndex:go,fillOpacity:to,strokeOpacity:to,numOctaves:go};function vo(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if($i(e)){o[e]=n;continue}const r=bo[e],d=Qi(n,r);if(zi.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):i[e]=d}if(t.transform||(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<Ui;t++){const n=Xi[t];void 0!==e[n]&&(o+=`${Yi[n]||n}(${e[n]}) `)}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;i.transformOrigin=`${e} ${t} ${n}`}}const xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yo(e,t,n){for(const r in t)Zi(t[r])||_i(r,n)||(e[r]=t[r])}function wo(e,n,r){const i={};return yo(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n,r){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return vo(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)},[n])}(e,n,r)),e.transformValues?e.transformValues(i):i}function Co(e,t,n){const r={},i=wo(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Io=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function No(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Io.has(e)}let Eo=e=>!No(e);try{(Ao=require("@emotion/is-prop-valid").default)&&(Eo=e=>e.startsWith("on")?!No(e):Ao(e))}catch(Ed){}var Ao;function jo(e,t,n){return"string"==typeof e?e:po.transform(t+n*e)}const To={offset:"stroke-dashoffset",array:"stroke-dasharray"},So={offset:"strokeDashoffset",array:"strokeDasharray"};function ko(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(vo(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${jo(t,e.x,e.width)} ${jo(n,e.y,e.height)}`}(f,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?To:So;e[o.offset]=po.transform(-r);const s=po.transform(t),a=po.transform(n);e[o.array]=`${s} ${a}`}(m,s,a,l,!1)}const Po=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Ro=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Bo(e,n,r,i){const o=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ko(t,n,{enableHardwareAcceleration:!1},Ro(i),e.transformTemplate),{...t.attrs,style:{...t.style}}},[n]);if(e.style){const t={};yo(t,e.style,e),o.style={...t,...o.style}}return o}function Lo(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Hi(n)?Bo:Co)(r,o,s,n),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Eo(i)||!0===n&&No(i)||!t&&!No(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"==typeof n,e),c={...l,...a,ref:i},{children:u}=r,d=t.useMemo(()=>Zi(u)?u.get():u,[u]);return t.createElement(n,{...c,children:d})}}const Oo=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Go(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Mo=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 Do(e,t,n,r){Go(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Mo.has(n)?n:Oo(n),t.attrs[n])}function Vo(e,t){const{style:n}=e,r={};for(const i in n)(Zi(n[i])||t.style&&Zi(t.style[i])||_i(i,e))&&(r[i]=n[i]);return r}function Fo(e,t){const n=Vo(e,t);for(const r in e)if(Zi(e[r])||Zi(t[r])){n[-1!==Xi.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Ho(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function Wo(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Xo=e=>Array.isArray(e),zo=e=>Xo(e)?e[e.length-1]||0:e;function _o(e){const t=Zi(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Zo=e=>(n,r)=>{const i=t.useContext(vi),o=t.useContext(xi),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:Yo(r,i,o,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,n,i,o);return r?s():Wo(s)};function Yo(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=_o(o[e]);let{initial:s,animate:a}=e;const l=Ti(e),c=Si(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!Ei(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Ho(e,t);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const e in s){let t=s[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]})}return i}const Uo={useVisualState:Zo({scrapeMotionValuesFromProps:Fo,createRenderState:Po,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ko(n,r,{enableHardwareAcceleration:!1},Ro(t.tagName),e.transformTemplate),Do(t,n)}})},Jo={useVisualState:Zo({scrapeMotionValuesFromProps:Vo,createRenderState:xo})};function $o(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ko=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Qo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function qo(e,t,n,r){return $o(e,t,(e=>t=>Ko(t)&&e(t,Qo(t)))(n),r)}const es=(e,t)=>n=>t(e(n)),ts=(...e)=>e.reduce(es);function ns(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const rs=ns("dragHorizontal"),is=ns("dragVertical");function os(e){let t=!1;if("y"===e)t=is();else if("x"===e)t=rs();else{const e=rs(),n=is();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function ss(){const e=os(!0);return!e||(e(),!1)}class as{constructor(e){this.isMounted=!1,this.node=e}update(){}}const ls={delta:0,timestamp:0,isProcessing:!1};let cs=!0,us=!1;const ds=["read","update","preRender","render","postRender"],ps=ds.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(e,o=!1,a=!1)=>{const l=a&&i,c=l?t:n;return o&&s.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),s.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),s.has(r)&&(a.schedule(r),e())}i=!1,o&&(o=!1,a.process(l))}}};return a}(()=>us=!0),e),{}),ms=e=>ps[e].process(ls),hs=e=>{us=!1,ls.delta=cs?1e3/60:Math.max(Math.min(e-ls.timestamp,40),1),ls.timestamp=e,ls.isProcessing=!0,ds.forEach(ms),ls.isProcessing=!1,us&&(cs=!1,requestAnimationFrame(hs))},fs=ds.reduce((e,t)=>{const n=ps[t];return e[t]=(e,t=!1,r=!1)=>(us||(us=!0,cs=!0,ls.isProcessing||requestAnimationFrame(hs)),n.schedule(e,t,r)),e},{});function gs(e){ds.forEach(t=>ps[t].cancel(e))}function bs(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return qo(e.current,n,(n,i)=>{if("touch"===n.type||ss())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&fs.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}const vs=(e,t)=>!!t&&(e===t||vs(e,t.parentElement)),xs=e=>e;function ys(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Qo(n))}const ws=new WeakMap,Cs=new WeakMap,Is=e=>{const t=ws.get(e.target);t&&t(e)},Ns=e=>{e.forEach(Is)};function Es(e,t,n){const r=function({root:e,...t}){const n=e||document;Cs.has(n)||Cs.set(n,{});const r=Cs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ns,{root:e,...t})),r[i]}(t);return ws.set(e,n),r.observe(e),()=>{ws.delete(e),r.unobserve(e)}}const As={some:0,all:1};const js={inView:{Feature:class extends as{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:As[r]};return Es(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends as{constructor(){super(...arguments),this.removeStartListeners=xs,this.removeEndListeners=xs,this.removeAccessibleListeners=xs,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=qo(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();fs.update(()=>{vs(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=qo(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ts(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=$o(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=$o(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ys("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&fs.update(()=>n(e,t))})}),ys("down",(e,t)=>{this.startPress(e,t)})}),t=$o(this.node.current,"blur",()=>{this.isPressing&&ys("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=ts(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&fs.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ss()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&fs.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=qo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=$o(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ts(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends as{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ts($o(this.node.current,"focus",()=>this.onFocus()),$o(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends as{mount(){this.unmount=ts(bs(this.node,!0),bs(this.node,!1))}unmount(){}}}};function Ts(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ss(e,t,n){const r=e.getProps();return Ho(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const ks="data-"+Oo("framerAppearId");let Ps=xs,Rs=xs;"production"!==process.env.NODE_ENV&&(Ps=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Rs=(e,t)=>{if(!e)throw new Error(t)});const Bs=e=>1e3*e,Ls=e=>e/1e3,Os=!1,Gs=e=>Array.isArray(e)&&"number"==typeof e[0];function Ms(e){return Boolean(!e||"string"==typeof e&&Vs[e]||Gs(e)||Array.isArray(e)&&e.every(Ms))}const Ds=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ds([0,.65,.55,1]),circOut:Ds([.55,0,1,.45]),backIn:Ds([.31,.01,.66,-.59]),backOut:Ds([.33,1.53,.69,.99])};function Fs(e){if(e)return Gs(e)?Ds(e):Array.isArray(e)?e.map(Fs):Vs[e]}const Hs={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ws={},Xs={};for(const e in Hs)Xs[e]=()=>(void 0===Ws[e]&&(Ws[e]=Hs[e]()),Ws[e]);const zs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function _s(e,t,n,r){if(e===t&&n===r)return xs;const i=t=>function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=zs(s,r,i)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++a<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:zs(i(e),t,r)}const Zs=_s(.42,0,1,1),Ys=_s(0,0,.58,1),Us=_s(.42,0,.58,1),Js=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$s=e=>t=>1-e(1-t),Ks=e=>1-Math.sin(Math.acos(e)),Qs=$s(Ks),qs=Js(Qs),ea=_s(.33,1.53,.69,.99),ta=$s(ea),na=Js(ta),ra={linear:xs,easeIn:Zs,easeInOut:Us,easeOut:Ys,circIn:Ks,circInOut:qs,circOut:Qs,backIn:ta,backInOut:na,backOut:ea,anticipate:e=>(e*=2)<1?.5*ta(e):.5*(2-Math.pow(2,-10*(e-1)))},ia=e=>{if(Array.isArray(e)){Rs(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return _s(t,n,r,i)}return"string"==typeof e?(Rs(void 0!==ra[e],`Invalid easing type '${e}'`),ra[e]):e},oa=(e,t)=>n=>Boolean(ao(n)&&so.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),sa=(e,t,n)=>r=>{if(!ao(r))return r;const[i,o,s,a]=r.match(io);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},aa={...eo,transform:e=>Math.round((e=>qi(0,255,e))(e))},la={test:oa("rgb","red"),parse:sa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+ro(to.transform(r))+")"};const ca={test:oa("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:la.transform},ua={test:oa("hsl","hue"),parse:sa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+uo.transform(ro(t))+", "+uo.transform(ro(n))+", "+ro(to.transform(r))+")"},da={test:e=>la.test(e)||ca.test(e)||ua.test(e),parse:e=>la.test(e)?la.parse(e):ua.test(e)?ua.parse(e):ca.parse(e),transform:e=>ao(e)?e:e.hasOwnProperty("red")?la.transform(e):ua.transform(e)},pa=(e,t,n)=>-n*e+n*t+e;function ma(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const ha=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},fa=[ca,la,ua];function ga(e){const t=(n=e,fa.find(e=>e.test(n)));var n;Rs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ua&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=ma(a,r,e+1/3),o=ma(a,r,e),s=ma(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const ba=(e,t)=>{const n=ga(e),r=ga(t),i={...n};return e=>(i.red=ha(n.red,r.red,e),i.green=ha(n.green,r.green,e),i.blue=ha(n.blue,r.blue,e),i.alpha=pa(n.alpha,r.alpha,e),la.transform(i))};const va={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:xs},xa={regex:oo,countKey:"Colors",token:"${c}",parse:da.parse},ya={regex:io,countKey:"Numbers",token:"${n}",parse:eo.parse};function wa(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Ca(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&wa(n,va),wa(n,xa),wa(n,ya),n}function Ia(e){return Ca(e).values}function Na(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Ca(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(va.token,e[i]):i<r+n?t.replace(xa.token,da.transform(e[i])):t.replace(ya.token,ro(e[i]));return t}}const Ea=e=>"number"==typeof e?0:e;const Aa={test:function(e){var t,n;return isNaN(e)&&ao(e)&&((null===(t=e.match(io))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(oo))||void 0===n?void 0:n.length)||0)>0},parse:Ia,createTransformer:Na,getAnimatableNone:function(e){const t=Ia(e);return Na(e)(t.map(Ea))}},ja=(e,t)=>n=>`${n>0?t:e}`;function Ta(e,t){return"number"==typeof e?n=>pa(e,t,n):da.test(e)?ba(e,t):e.startsWith("var(")?ja(e,t):Pa(e,t)}const Sa=(e,t)=>{const n=[...e],r=n.length,i=e.map((e,n)=>Ta(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},ka=(e,t)=>{const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ta(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Pa=(e,t)=>{const n=Aa.createTransformer(t),r=Ca(e),i=Ca(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ts(Sa(r.values,i.values),n):(Ps(!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.`),ja(e,t))},Ra=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ba=(e,t)=>n=>pa(e,t,n);function La(e,t,n){const r=[],i=n||("number"==typeof(o=e[0])?Ba:"string"==typeof o?da.test(o)?ba:Pa:Array.isArray(o)?Sa:"object"==typeof o?ka:Ba);var o;const s=e.length-1;for(let n=0;n<s;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||xs:t;o=ts(e,o)}r.push(o)}return r}function Oa(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Rs(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=La(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Ra(e[n],e[n+1],t);return s[n](r)};return n?t=>l(qi(e[0],e[o-1],t)):l}function Ga(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ra(0,t,r);e.push(pa(n,1,i))}}(t,e.length-1),t}function Ma({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(ia):ia(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Ga(t),e),a=Oa(s,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||Us).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function Da(e,t){return t?e*(1e3/t):0}function Va(e,t,n){const r=Math.max(t-5,0);return Da(n-e(r),t-r)}const Fa=.001;function Ha({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ps(e<=Bs(10),"Spring duration must be 10 seconds or less");let s=1-t;s=qi(.05,1,s),e=qi(.01,10,Ls(e)),s<1?(i=t=>{const r=t*s,i=r*e,o=r-n,a=Xa(t,s),l=Math.exp(-i);return Fa-o/a*l},o=t=>{const r=t*s*e,o=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Xa(Math.pow(t,2),s);return(-i(t)+Fa>0?-1:1)*((o-a)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Wa;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=Bs(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const Wa=12;function Xa(e,t){return e*Math.sqrt(1-t*t)}const za=["duration","bounce"],_a=["stiffness","damping","mass"];function Za(e,t){return t.some(t=>void 0!==e[t])}function Ya({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Za(e,_a)&&Za(e,za)){const n=Ha(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),m=u?-Ls(u):0,h=l/(2*Math.sqrt(a*c)),f=o-i,g=Ls(Math.sqrt(a/c)),b=Math.abs(f)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Xa(g,h);v=t=>{const n=Math.exp(-h*g*t);return o-n*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)v=e=>o-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return o-n*((m+h*g*f)*Math.sinh(r)+e*f*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)s.done=e>=d;else{let i=m;0!==e&&(i=h<1?Va(v,e,r):0);const a=Math.abs(i)<=n,l=Math.abs(o-r)<=t;s.done=a&&l}return s.value=s.done?o:r,s}}}function Ua({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const f=d+h,g=void 0===s?f:s(f);g!==f&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),x=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let y,w;const C=e=>{var t;(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(y=e,w=Ya({keyframes:[p.value,m(p.value)],velocity:Va(v,e,p.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==y||(t=!0,x(e),C(e)),void 0!==y&&e>y?w.next(e-y):(!t&&x(e),p)}}}const Ja=e=>{const t=({timestamp:t})=>e(t);return{start:()=>fs.update(t,!0),stop:()=>gs(t),now:()=>ls.isProcessing?ls.timestamp:performance.now()}};function $a(e){let t=0;let n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}const Ka={decay:Ua,inertia:Ua,tween:Ma,keyframes:Ma,spring:Ya};function Qa({autoplay:e=!0,delay:t=0,driver:n=Ja,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const b=()=>{m&&m(),h=new Promise(e=>{m=e})};let v;b();const x=Ka[i]||Ma;let y;x!==Ma&&"number"!=typeof r[0]&&(y=Oa([0,100],r,{clamp:!1}),r=[0,100]);const w=x({...p,keyframes:r});let C;"mirror"===a&&(C=x({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let I="idle",N=null,E=null,A=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=$a(w));const{calculatedDuration:j}=w;let T=1/0,S=1/0;null!==j&&(T=j+s,S=T*(o+1)-s);let k=0;const P=e=>{if(null===E)return;f>0&&(E=Math.min(E,e)),k=null!==N?N:(e-E)*f;const n=k-t,i=n<0;k=Math.max(n,0),"finished"===I&&null===N&&(k=S);let l=k,c=w;if(o){const e=k/T;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/T)):"mirror"===a&&(c=C));let i=qi(0,1,n);k>S&&(i="reverse"===a&&r?1:0),l=i*T}const u=i?{done:!1,value:r[0]}:c.next(l);y&&(u.value=y(u.value));let{done:p}=u;i||null===j||(p=k>=S);const m=null===N&&("finished"===I||"running"===I&&p||f<0&&k<=0);return d&&d(u.value),m&&L(),u},R=()=>{v&&v.stop(),v=void 0},B=()=>{I="idle",R(),b(),E=A=null},L=()=>{I="finished",u&&u(),R(),b()},O=()=>{if(g)return;v||(v=n(P));const e=v.now();l&&l(),null!==N?E=e-N:E&&"finished"!==I||(E=e),A=E,N=null,I="running",v.start()};e&&O();const G={then:(e,t)=>h.then(e,t),get time(){return Ls(k)},set time(e){e=Bs(e),k=e,null===N&&v&&0!==f?E=v.now()-e/f:N=e},get duration(){const e=null===w.calculatedDuration?$a(w):w.calculatedDuration;return Ls(e)},get speed(){return f},set speed(e){e!==f&&v&&(f=e,G.time=Ls(k))},get state(){return I},play:O,pause:()=>{I="paused",N=k},stop:()=>{g=!0,"idle"!==I&&(I="idle",c&&c(),B())},cancel:()=>{null!==A&&P(A),B()},complete:()=>{I="finished"},sample:e=>(E=0,P(e))};return G}const qa=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function el(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Xs.waapi()&&qa.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const l=()=>{s=new Promise(e=>{o=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Ms(t.ease))(t,i)){const e=Qa({...i,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,u=r-10,d="linear"}const m=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Fs(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:u,ease:d,times:p}),h=()=>m.cancel(),f=()=>{fs.update(h),o(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,i)),r&&r(),f()},{then:(e,t)=>s.then(e,t),get time(){return Ls(m.currentTime||0)},set time(e){m.currentTime=Bs(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Ls(u)},play:()=>{a||(m.play(),gs(h))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const n=Qa({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}const tl={type:"spring",stiffness:500,damping:25,restSpeed:10},nl={type:"keyframes",duration:.8},rl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},il=(e,{keyframes:t})=>t.length>2?nl:zi.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tl:rl,ol=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Aa.test(t)&&"0"!==t||t.startsWith("url("))),sl=new Set(["brightness","contrast","saturate","opacity"]);function al(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(io)||[];if(!r)return e;const i=n.replace(r,"");let o=sl.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ll=/([a-z-]*)\(.*?\)/g,cl={...Aa,getAnimatableNone:e=>{const t=e.match(ll);return t?t.map(al).join(" "):e}},ul={...bo,color:da,backgroundColor:da,outlineColor:da,fill:da,stroke:da,borderColor:da,borderTopColor:da,borderRightColor:da,borderBottomColor:da,borderLeftColor:da,filter:cl,WebkitFilter:cl},dl=e=>ul[e];function pl(e,t){let n=dl(e);return n!==cl&&(n=Aa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ml=e=>/^0[^.\s]+$/.test(e);function hl(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ml(e):void 0}function fl(e,t){return e[t]||e.default||e}const gl=(e,t,n,r={})=>i=>{const o=fl(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=Bs(s);const l=function(e,t,n,r){const i=ol(t,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?s:o[e-1]),hl(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(a=o[e]);if(i&&l.length&&a)for(let e=0;e<l.length;e++)o[l[e]]=pl(t,a);return o}(t,e,n,o),c=l[0],u=l[l.length-1],d=ol(e,c),p=ol(e,u);Ps(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)||(m={...m,...il(e,m)}),m.duration&&(m.duration=Bs(m.duration)),m.repeatDelay&&(m.repeatDelay=Bs(m.repeatDelay)),!d||!p||Os||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:xs,pause:xs,stop:xs,then:e=>(e(),Promise.resolve()),cancel:xs,complete:xs});return t?Qa({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=el(t,e,m);if(n)return n}return Qa(m)};function bl(e){return Boolean(Zi(e)&&e.add)}const vl=e=>/^\-?\d*\.?\d+$/.test(e);function xl(e,t){-1===e.indexOf(t)&&e.push(t)}function yl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class wl{constructor(){this.subscriptions=[]}add(e){return xl(this.subscriptions,e),()=>yl(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cl=new Set;function Il(e,t,n){e||Cl.has(t)||(console.warn(t),Cl.add(t))}class Nl{constructor(e,t={}){var n;this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=ls;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,fs.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=()=>fs.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=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return"production"!==process.env.NODE_ENV&&Il(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new wl);const n=this.events[e].add(t);return"change"===e?()=>{n(),fs.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Da(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function El(e,t){return new Nl(e,t)}const Al=e=>t=>t.test(e),jl=[eo,po,uo,co,ho,mo,{test:e=>"auto"===e,parse:e=>e}],Tl=e=>jl.find(Al(e)),Sl=[...jl,da,Aa],kl=e=>Sl.find(Al(e));function Pl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,El(n))}function Rl(e,t){if(!t)return;return(t[e]||t.default||t).from}function Bl({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ll(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const t in a){const r=e.getValue(t),i=a[t];if(!r||void 0===i||u&&Bl(u,t))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[ks];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,fs))}r.start(gl(t,r,i,e.shouldReduceMotion&&zi.has(t)?{type:!1}:s));const d=r.animation;bl(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return s&&Promise.all(c).then(()=>{s&&function(e,t){const n=Ss(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const t in o)Pl(e,t,zo(o[t]))}(e,s)}),c}function Ol(e,t,n={}){const r=Ss(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ll(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Gl).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(Ol(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function Gl(e,t){return e.sortNodePosition(t)}const Ml=[...Ai].reverse(),Dl=Ai.length;function Vl(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Ol(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Ol(e,t,n);else{const i="function"==typeof t?Ss(e,t,n.custom):t;r=Promise.all(Ll(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Fl(e){let t=Vl(e);const n={animate:Wl(!0),whileInView:Wl(),whileHover:Wl(),whileTap:Wl(),whileDrag:Wl(),whileFocus:Wl(),exit:Wl()};let r=!0;const i=(t,n)=>{const r=Ss(e,n);if(r){const{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Dl;t++){const m=Ml[t],h=n[m],f=void 0!==a[m]?a[m]:l[m],g=Ni(f),b=m===s?h.isActive:null;!1===b&&(p=t);let v=f===l[m]&&f!==a[m]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!f&&!h.prevProp||Ei(f)||"boolean"==typeof f)continue;const x=Hl(h.prevProp,f);let y=x||m===s&&h.isActive&&!v&&g||t>p&&g;const w=Array.isArray(f)?f:[f];let C=w.reduce(i,{});!1===b&&(C={});const{prevResolvedValues:I={}}=h,N={...I,...C},E=e=>{y=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in N){const t=C[e],n=I[e];d.hasOwnProperty(e)||(t!==n?Xo(t)&&Xo(n)?!Ts(t,n)||x?E(e):h.protectedKeys[e]=!0:void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):h.protectedKeys[e]=!0)}h.prevProp=f,h.prevResolvedValues=C,h.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(y=!1),y&&!v&&c.push(...w.map(e=>({animation:e,options:{type:m,...o}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),c.push({animation:t})}let m=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(i,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Hl(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Ts(t,e)}function Wl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Xl=0;const zl={animation:{Feature:class extends as{constructor(e){super(e),e.animationState||(e.animationState=Fl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Ei(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends as{constructor(){super(...arguments),this.id=Xl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},_l=(e,t)=>Math.abs(e-t);class Zl{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;const e=Jl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=_l(e.x,t.x),r=_l(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=ls;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Yl(t,this.transformPagePoint),fs.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=Jl("pointercancel"===e.type?this.lastMoveEventInfo:Yl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Ko(e))return;this.handlers=t,this.transformPagePoint=n;const r=Yl(Qo(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=ls;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=t;s&&s(e,Jl(r,this.history)),this.removeListeners=ts(qo(window,"pointermove",this.handlePointerMove),qo(window,"pointerup",this.handlePointerUp),qo(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function Yl(e,t){return t?{point:t(e.point)}:e}function Ul(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jl({point:e},t){return{point:e,delta:Ul(e,Kl(t)),offset:Ul(e,$l(t)),velocity:Ql(t,.1)}}function $l(e){return e[0]}function Kl(e){return e[e.length-1]}function Ql(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Kl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Bs(t)));)n--;if(!r)return{x:0,y:0};const o=Ls(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ql(e){return e.max-e.min}function ec(e,t=0,n=.01){return Math.abs(e-t)<=n}function tc(e,t,n,r=.5){e.origin=r,e.originPoint=pa(t.min,t.max,e.origin),e.scale=ql(n)/ql(t),(ec(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pa(n.min,n.max,e.origin)-e.originPoint,(ec(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nc(e,t,n,r){tc(e.x,t.x,n.x,r?r.originX:void 0),tc(e.y,t.y,n.y,r?r.originY:void 0)}function rc(e,t,n){e.min=n.min+t.min,e.max=e.min+ql(t)}function ic(e,t,n){e.min=t.min-n.min,e.max=e.min+ql(t)}function oc(e,t,n){ic(e.x,t.x,n.x),ic(e.y,t.y,n.y)}function sc(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 ac(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const lc=.35;function cc(e,t,n){return{min:uc(e,t),max:uc(e,n)}}function uc(e,t){return"number"==typeof e?e:e[t]||0}const dc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function pc(e){return[e("x"),e("y")]}function mc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hc(e){return void 0===e||1===e}function fc({scale:e,scaleX:t,scaleY:n}){return!hc(e)||!hc(t)||!hc(n)}function gc(e){return fc(e)||bc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bc(e){return vc(e.x)||vc(e.y)}function vc(e){return e&&"0%"!==e}function xc(e,t,n){return n+t*(e-n)}function yc(e,t,n,r,i){return void 0!==i&&(e=xc(e,i,r)),xc(e,n,r)+t}function wc(e,t=0,n=1,r,i){e.min=yc(e.min,t,n,r,i),e.max=yc(e.max,t,n,r,i)}function Cc(e,{x:t,y:n}){wc(e.x,t.translate,t.scale,t.originPoint),wc(e.y,n.translate,n.scale,n.originPoint)}function Ic(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Nc(e,t){e.min=e.min+t,e.max=e.max+t}function Ec(e,t,[n,r,i]){const o=void 0!==t[i]?t[i]:.5,s=pa(e.min,e.max,o);wc(e,t[n],t[r],s,t.scale)}const Ac=["x","scaleX","originX"],jc=["y","scaleY","originY"];function Tc(e,t){Ec(e.x,t,Ac),Ec(e.y,t,jc)}function Sc(e,t){return mc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const kc=new WeakMap;class Pc{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={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Zl(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Qo(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=os(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(uo.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=ql(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&fs.update(()=>i(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&fs.update(()=>i(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Rc(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?pa(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?pa(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Ii(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:sc(e.x,n,i),y:sc(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=lc){return!1===e?e=0:!0===e&&(e=lc),{x:cc(e,"left","right"),y:cc(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&pc(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const 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(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ii(e))return!1;const n=e.current;Rs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=Sc(e,n),{scroll:i}=t;return i&&(Nc(r.x,i.offset.x),Nc(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:ac(e.x,t.x),y:ac(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=mc(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=pc(s=>{if(!Rc(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(gl(e,n,0,t))}stopAnimation(){pc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){pc(t=>{const{drag:n}=this.getProps();if(!Rc(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-pa(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ii(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};pc(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=ql(e),i=ql(t);return i>r?n=Ra(t.min,t.max-r,e.min):r>i&&(n=Ra(e.min,e.max-i,t.min)),qi(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pc(t=>{if(!Rc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(pa(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;kc.set(this.visualElement,this);const e=qo(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Ii(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=$o(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pc(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=lc,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function Rc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Bc=e=>(t,n)=>{e&&fs.update(()=>e(t,n))};const Lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Oc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!po.test(e))return e;e=parseFloat(e)}return`${Oc(e,t.target.x)}% ${Oc(e,t.target.y)}%`}},Mc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Aa.parse(e);if(i.length>5)return r;const o=Aa.createTransformer(e),s="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=pa(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=c),"number"==typeof i[3+s]&&(i[3+s]/=c),o(i)}};class Dc extends l.default.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Fc,Object.assign(Wi,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||fs.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vc(e){const[n,r]=function(){const e=t.useContext(xi);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=t.useId();return t.useEffect(()=>i(o),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=t.useContext(Li);return l.default.createElement(Dc,{...e,layoutGroup:i,switchLayoutGroup:t.useContext(Oi),isPresent:n,safeToRemove:r})}const Fc={borderRadius:{...Gc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gc,borderTopRightRadius:Gc,borderBottomLeftRadius:Gc,borderBottomRightRadius:Gc,boxShadow:Mc},Hc=["TopLeft","TopRight","BottomLeft","BottomRight"],Wc=Hc.length,Xc=e=>"string"==typeof e?parseFloat(e):e,zc=e=>"number"==typeof e||po.test(e);function _c(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Zc=Uc(0,.5,Qs),Yc=Uc(.5,.95,xs);function Uc(e,t,n){return r=>r<e?0:r>t?1:n(Ra(e,t,r))}function Jc(e,t){e.min=t.min,e.max=t.max}function $c(e,t){Jc(e.x,t.x),Jc(e.y,t.y)}function Kc(e,t,n,r,i){return e=xc(e-=t,1/n,r),void 0!==i&&(e=xc(e,1/i,r)),e}function Qc(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){uo.test(t)&&(t=parseFloat(t),t=pa(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=pa(o.min,o.max,r);e===o&&(a-=t),e.min=Kc(e.min,t,n,a,i),e.max=Kc(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const qc=["x","scaleX","originX"],eu=["y","scaleY","originY"];function tu(e,t,n,r){Qc(e.x,t,qc,n?n.x:void 0,r?r.x:void 0),Qc(e.y,t,eu,n?n.y:void 0,r?r.y:void 0)}function nu(e){return 0===e.translate&&1===e.scale}function ru(e){return nu(e.x)&&nu(e.y)}function iu(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 ou(e){return ql(e.x)/ql(e.y)}class su{constructor(){this.members=[]}add(e){xl(this.members,e),e.scheduleRender()}remove(e){if(yl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function au(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const lu=(e,t)=>e.depth-t.depth;class cu{constructor(){this.children=[],this.isDirty=!1}add(e){xl(this.children,e),this.isDirty=!0}remove(e){yl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lu),this.isDirty=!1,this.children.forEach(e)}}const uu=["","X","Y","Z"];let du=0;const pu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=du++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;pu.totalNodes=pu.resolvedTargetDeltas=pu.recalculatedProjection=0,this.nodes.forEach(gu),this.nodes.forEach(Iu),this.nodes.forEach(Nu),this.nodes.forEach(bu),e=pu,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new cu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wl),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(gs(r),e(o-t))};return fs.read(r,!0),()=>gs(r)}(r,250),Lc.hasAnimatedSinceResize&&(Lc.hasAnimatedSinceResize=!1,this.nodes.forEach(Cu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||ku,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!iu(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...fl(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Cu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Eu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(xu);this.isUpdating||this.nodes.forEach(yu),this.isUpdating=!1,this.nodes.forEach(wu),this.nodes.forEach(hu),this.nodes.forEach(fu),this.clearAllSnapshots();const e=performance.now();ls.delta=qi(0,1e3/60,e-ls.timestamp),ls.timestamp=e,ls.isProcessing=!0,ps.update.process(ls),ps.preRender.process(ls),ps.render.process(ls),ls.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(vu),this.sharedNodes.forEach(Au)}scheduleUpdateProjection(){fs.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){fs.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(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()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ru(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||gc(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Pu((r=n).x),Pu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Nc(t.x,n.offset.x),Nc(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};$c(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){$c(t,e);const{scroll:n}=this.root;n&&(Nc(t.x,-n.offset.x),Nc(t.y,-n.offset.y))}Nc(t.x,i.offset.x),Nc(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};$c(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Tc(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),gc(r.latestValues)&&Tc(n,r.latestValues)}return gc(this.latestValues)&&Tc(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};$c(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!gc(n.latestValues))continue;fc(n.latestValues)&&n.updateSnapshot();const r=dc();$c(r,n.measurePageBox()),tu(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return gc(this.latestValues)&&tu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ls.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=ls.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},oc(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),$c(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,rc(s.x,a.x,l.x),rc(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):$c(this.target,this.layout.layoutBox),Cc(this.target,this.targetDelta)):$c(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},oc(this.relativeTargetOrigin,this.target,e.target),$c(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fc(this.parent.latestValues)&&!bc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===ls.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;$c(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,s;t.x=t.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tc(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Cc(e,s)),r&&gc(o.latestValues)&&Tc(e,o.latestValues))}t.x=Ic(t.x),t.y=Ic(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;nc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=au(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),pu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Su));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ju(o.x,e.x,n),ju(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Tu(e.x,t.x,n.x,r),Tu(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&iu(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),$c(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=pa(0,void 0!==n.opacity?n.opacity:1,Zc(r)),e.opacityExit=pa(void 0!==t.opacity?t.opacity:1,0,Yc(r))):o&&(e.opacity=pa(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Wc;i++){const o=`border${Hc[i]}Radius`;let s=_c(t,o),a=_c(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||zc(s)===zc(a)?(e[o]=Math.max(pa(Xc(s),Xc(a),r),0),(uo.test(a)||uo.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=pa(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fs.update(()=>{Lc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Zi(e)?e:El(e);return r.start(gl("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ru(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ql(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ql(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}$c(t,n),Tc(t,i),nc(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new su);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<uu.length;t++){const i="rotate"+uu[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=_o(e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=_o(e.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=au(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Wi){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Wi[e],i="none"===r.transform?s[e]:t(s[e],o);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?_o(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?void 0:t.stop()}),this.root.nodes.forEach(xu),this.root.sharedNodes.clear()}}}function hu(e){e.updateLayout()}function fu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?pc(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=ql(r);r.min=t[e].min,r.max=r.min+i}):Ru(i,n.layoutBox,t)&&pc(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=ql(t[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};nc(s,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?nc(a,e.applyTransform(r,!0),n.measuredBox):nc(a,t,n.layoutBox);const l=!ru(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};oc(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};oc(a,t,o.layoutBox),iu(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gu(e){pu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vu(e){e.clearSnapshot()}function xu(e){e.clearMeasurements()}function yu(e){e.isLayoutDirty=!1}function wu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Iu(e){e.resolveTargetDelta()}function Nu(e){e.calcProjection()}function Eu(e){e.resetRotation()}function Au(e){e.removeLeadSnapshot()}function ju(e,t,n){e.translate=pa(t.translate,0,n),e.scale=pa(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Tu(e,t,n,r){e.min=pa(t.min,n.min,r),e.max=pa(t.max,n.max,r)}function Su(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ku={duration:.45,ease:[.4,0,.1,1]};function Pu(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ru(e,t,n){return"position"===e||"preserve-aspect"===e&&!ec(ou(t),ou(n),.2)}const Bu=mu({attachResizeListener:(e,t)=>$o(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lu={current:void 0},Ou=mu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lu.current){const e=new Bu({});e.mount(window),e.setOptions({layoutScroll:!0}),Lu.current=e}return Lu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Gu={pan:{Feature:class extends as{constructor(){super(...arguments),this.removePointerDownListener=xs}onPointerDown(e){this.session=new Zl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Bc(e),onStart:Bc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&fs.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=qo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends as{constructor(e){super(e),this.removeGroupControls=xs,this.removeListeners=xs,this.controls=new Pc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xs}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ou,MeasureLayout:Vc}},Mu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Du(e,t,n=1){Rs(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=Mu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Ki(i)?Du(i,t,n+1):i}const Vu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Fu=e=>Vu.has(e),Hu=e=>e===eo||e===po,Wu=(e,t)=>parseFloat(e.split(", ")[t]),Xu=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Wu(i[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Wu(t[1],e):0}},zu=new Set(["x","y","z"]),_u=Xi.filter(e=>!zu.has(e));const Zu={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:Xu(4,13),y:Xu(5,14)},Yu=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Fu);let o=[],s=!1;const a=[];if(i.forEach(i=>{const l=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],u=Tl(c);const d=t[i];let p;if(Xo(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Tl(c);for(let n=t;n<e&&null!==d[n];n++)p?Rs(Tl(d[n])===p,"All keyframes must be of the same type"):(p=Tl(d[n]),Rs(p===u||Hu(u)&&Hu(p),"Keyframes must be of the same dimension as the current value"))}else p=Tl(d);if(u!==p)if(Hu(u)&&Hu(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&p===po&&(t[i]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[i]=u.transform(d):(s||(o=function(e){const t=[];return _u.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:t[i],l.jump(d))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=Zu[e](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Zu[n](l,o)}),e})(t,e,a);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),yi&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:t,transitionEnd:r}};function Uu(e,t,n,r){return(e=>Object.keys(e).some(Fu))(t)?Yu(e,t,n,r):{target:t,transitionEnd:r}}const Ju=(e,t,n,r)=>{const i=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(e=>{const t=e.get();if(!Ki(t))return;const n=Du(t,r);n&&e.set(n)});for(const e in t){const i=t[e];if(!Ki(i))continue;const o=Du(i,r);o&&(t[e]=o,n||(n={}),void 0===n[e]&&(n[e]=i))}return{target:t,transitionEnd:n}}(e,t,r);return Uu(e,t=i.target,n,r=i.transitionEnd)},$u={current:null},Ku={current:!1};function Qu(){if(Ku.current=!0,yi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$u.current=e.matches;e.addListener(t),t()}else $u.current=!1}const qu=new WeakMap,ed=Object.keys(Bi),td=ed.length,nd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rd=ji.length;class id{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},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=()=>fs.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ti(t),this.isVariantNode=Si(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Zi(t)&&(t.set(s[e],!1),bl(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,qu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Ku.current||Qu(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||$u.current),"production"!==process.env.NODE_ENV&&Il(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){qu.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=zi.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&fs.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ps(!1,e):Rs(!1,e)}for(let e=0;e<td;e++){const n=ed[e],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=Bi[n];a&&(o=a),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Ii(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nd.length;t++){const n=nd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Zi(o))e.addValue(i,o),bl(r)&&r.add(i),"development"===process.env.NODE_ENV&&Il("10.12.16"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.12.16 may not work as expected.`);else if(Zi(s))e.addValue(i,El(o,{owner:e})),bl(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,El(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<rd;e++){const n=ji[e],r=this.props[n];(Ni(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=El(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;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Ho(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Zi(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new wl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class od extends id{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){const r={};for(const i in e){const e=Rl(i,t);if(void 0!==e)r[i]=e;else{const e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;const o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){const s=o[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==i?i:t[s]),null!=c&&("string"==typeof c&&(vl(c)||ml(c))?c=parseFloat(c):!kl(c)&&Aa.test(l)&&(c=pl(s,l)),e.addValue(s,El(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,o);const e=Ju(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class sd extends od{readValueFromInstance(e,t){if(zi.has(t)){const e=dl(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=($i(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Sc(e,t)}build(e,t,n,r){vo(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Vo(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Zi(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Go(e,t,n,r)}}class ad extends od{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(zi.has(t)){const e=dl(t);return e&&e.default||0}return t=Mo.has(t)?t:Oo(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Fo(e,t)}build(e,t,n,r){ko(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Do(e,t,0,r)}mount(e){this.isSVGTag=Ro(e.tagName),super.mount(e)}}const ld=(e,t)=>Hi(e)?new ad(t,{enableHardwareAcceleration:!1}):new sd(t,{enableHardwareAcceleration:!0}),cd={...zl,...js,...Gu,...{layout:{ProjectionNode:Ou,MeasureLayout:Vc}}},ud=Vi((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Hi(e)?Uo:Jo,preloadedFeatures:n,useRender:Lo(t),createVisualElement:r,Component:e}}(e,t,cd,ld));function dd(){const e=t.useRef(!1);return wi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}class pd extends l.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const 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 md({children:e,isPresent:n}){const r=t.useId(),i=t.useRef(null),o=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect(()=>{const{width:e,height:t,top:s,left:a}=o.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[n]),l.createElement(pd,{isPresent:n,childRef:i,sizeRef:o},l.cloneElement(e,{ref:i}))}const hd=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:a})=>{const c=Wo(fd),u=t.useId(),d=t.useMemo(()=>({id:u,initial:n,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))}),s?void 0:[r]);return t.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[r]),l.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),"popLayout"===a&&(e=l.createElement(md,{isPresent:r},e)),l.createElement(xi.Provider,{value:d},e)};function fd(){return new Map}const gd=e=>e.key||"";const bd=({children:e,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Rs(!o,"Replace exitBeforeEnter with mode='wait'");const c=t.useContext(Li).forceRender||function(){const e=dd(),[n,r]=t.useState(0),i=t.useCallback(()=>{e.current&&r(n+1)},[n]);return[t.useCallback(()=>fs.postRender(i),[i]),n]}()[0],u=dd(),d=function(e){const n=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&n.push(e)}),n}(e);let p=d;const m=t.useRef(new Map).current,h=t.useRef(p),f=t.useRef(new Map).current,g=t.useRef(!0);var b;if(wi(()=>{g.current=!1,function(e,t){e.forEach(e=>{const n=gd(e);t.set(n,e)})}(d,f),h.current=p}),b=()=>{g.current=!0,f.clear(),m.clear()},t.useEffect(()=>()=>b(),[]),g.current)return l.createElement(l.Fragment,null,p.map(e=>l.createElement(hd,{key:gd(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:s,mode:a},e)));p=[...p];const v=h.current.map(gd),x=d.map(gd),y=v.length;for(let e=0;e<y;e++){const t=v[e];-1!==x.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===a&&m.size&&(p=[]),m.forEach((e,t)=>{if(-1!==x.indexOf(t))return;const r=f.get(t);if(!r)return;const o=v.indexOf(t);let g=e;if(!g){const e=()=>{f.delete(t),m.delete(t);const e=h.current.findIndex(e=>e.key===t);if(h.current.splice(e,1),!m.size){if(h.current=d,!1===u.current)return;c(),i&&i()}};g=l.createElement(hd,{key:gd(r),isPresent:!1,onExitComplete:e,custom:n,presenceAffectsLayout:s,mode:a},r),m.set(t,g)}p.splice(o,0,g)}),p=p.map(e=>{const t=e.key;return m.has(t)?e:l.createElement(hd,{key:gd(e),isPresent:!0,presenceAffectsLayout:s,mode:a},e)}),"production"!==process.env.NODE_ENV&&"wait"===a&&p.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.'),l.createElement(l.Fragment,null,m.size?p:p.map(e=>t.cloneElement(e)))};function vd(){!Ku.current&&Qu();const[e]=t.useState($u.current);return"production"!==process.env.NODE_ENV&&Il(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const xd={scale:{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{duration:.3}},shadow:{whileHover:{boxShadow:"0 10px 25px rgba(0,0,0,0.15)"},transition:{duration:.3}},lift:{whileHover:{y:-5},whileTap:{y:0},transition:{type:"spring",stiffness:300,damping:20}},opacity:{whileHover:{opacity:.8},transition:{duration:.2}},grow:{whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:300,damping:20}},pop:{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.15}}};function yd({children:t,animationType:n=gi,disableAnimation:r=!0,whileHover:i,whileTap:o,transition:s,...a}){const[c,u]=l.default.useState(!1);l.default.useEffect(()=>u(!0),[]);const d=vd(),p=c&&d,m=l.default.Children.only(t);if(r||p)return m;const h=function(e){if(!e)return;const t=Array.isArray(e)?e:[e];return 0!==t.length?t.reduce((e,t)=>{const n=xd[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),f=h?{...h.whileHover,...i}:i,g=(null==h?void 0:h.whileTap)||o?{...null==h?void 0:h.whileTap,...o}:void 0,b=h?{...h.transition,...s}:s;if("string"==typeof m.type){const t=ud[m.type];return e.jsx(t,{...m.props,ref:m.ref,whileHover:f,whileTap:g,transition:b,...a})}return e.jsx(ud.div,{whileHover:f,whileTap:g,transition:b,...a,children:m})}yd.displayName="AnimationWrapper";const wd=e=>{let t="";return e.base&&(t="x-large"===e.base?"label3 ":"label4 "),e.md&&(t+="x-large"===e.md?"md:label3 ":"md:label4 "),e.lg&&(t+="x-large"===e.lg?"lg:label3 ":"lg:label4 "),t.trim()},Cd=t.forwardRef(({variant:t="primary_brand",isLoading:n=!1,text:r,label:i,disabled:o,fullWidth:s,buttonClassName:a,size:l={base:"medium"},iconName:c,iconSize:u=24,iconFill:d=0,disableAnimation:p,animationType:m=gi,as:h="button",...f},g)=>{const b=(()=>{const e=Ee((e=>{let t="";return e.base&&(t=`btn-${e.base} `),e.md&&(t+=`${(e=>{switch(e){case"small":return"md:btn-small";case"medium":return"md:btn-medium";case"large":return"md:btn-large";case"x-large":return"md:btn-x-large"}})(e.md)} `),e.lg&&(t+=`lg:btn-${e.lg} `),t.trim()})(l),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",s?"w-full":"lg:inline-flex w-full lg:w-auto"),r=Ee((o||n)&&"cursor-not-allowed",n&&"pl-7");return Ee(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-bg-fill-brand disabled:bg-bg-fill-brand-disabled",primary_inverse:"bg-bg-fill-inverse text-text-inverse [&:not(:disabled)]:hover:bg-bg-fill-inverse-hover focus:outline-bg-fill-inverse disabled:bg-bg-fill-inverse-disabled",secondary:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"border border-border-secondary-on-bg-fill bg-bg-fill-secondary text-text [&:not(:disabled)]:hover:bg-bg-fill-secondary-hover focus:bg-bg-fill-secondary focus:outline-border-inverse disabled:bg-bg-fill-secondary"}[t]||"",r,a)})();let v=`button--${t}`;n&&(v+=" button--loading"),o&&(v+=" button--disabled");const x=`${v} ${b}`,y=e.jsxs(e.Fragment,{children:[n?e.jsx(qn,{name:"progress_activity",className:"animate-spin"}):null,i?e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:Ee(wd(l)),children:i}),r]}):r,c?e.jsx(qn,{name:c,size:u,fill:d,weight:"200"}):null]});return"a"===h?e.jsx(yd,{disableAnimation:p,animationType:m,children:e.jsx("a",{ref:g,className:Ee(x),...f,"data-component":"BrandButton","data-variant":"anchor",children:y})}):e.jsx(yd,{disableAnimation:p,animationType:m,children:e.jsx("button",{ref:g,className:Ee(x),disabled:o||n,...f,"data-component":"BrandButton","data-variant":"button",children:y})})});Cd.displayName="BrandButton";const Id={primary_brand:"text-text-brand",primary_inverse:"text-text",secondary:"text-text",secondary_inverse:"text-text-inverse"},Nd=t=>{const{showButtonAs:n="solid",buttonVariant:r="primary_brand",buttonLabel:i,buttonPrefix:o,href:s,target:a="_blank",anchorId:c,linkClassName:u,linkVariant:d,fullWidth:p,preDefinedFunctionExecution:m,renderCheckPlans:h,buttonClassName:f,clickToOpen:g,tabmodalNameToOpen:b,idNameToOpen:v,onModalButtonClick:x,onClick:y,iconFill:w=0,buttonIconName:C,buttonIconPosition:I,size:N,iconSize:E=24,preserveQueryParameters:A,disableAnimation:j,animationType:T=gi,fieldProps:S,...k}=t,P="left"===I,R=C,B=Ee(f,P&&R?"flex-row-reverse":"");if("check availability"===m&&h){const o=null==h?void 0:h({ctaText:i,buttonVariant:r,showButtonAs:n,cta:{...t}});return l.default.isValidElement(o)?e.jsx(yd,{disableAnimation:j,animationType:T,children:o}):o}function L(e){"modal"===g&&(null==e||e.preventDefault(),null==x||x(b)),"clickId"===g&&(null==e||e.preventDefault(),function(){var e;if("clickId"===g&&v){const t=document.getElementById(v);t&&(t.scrollIntoView({behavior:"smooth",block:"start"}),null===(e=t.click)||void 0===e||e.call(t))}}())}function O(){"wifi grant redirect"===m&&function(){const e=st();!!e&&(window.location.href=e)}()}function G(e){L(e),O(),null==y||y(e)}function M(e){L(e),O(),null==y||y(e)}const D="undefined"!=typeof window?window.location.search:"",V=m?void 0:s&&A&&D?function(e,t){if(!t)return e;const n=new URLSearchParams(t),r=new Set(it),i=new Set([...r,"searchtext","page"]);let o,s;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);o=t.origin+t.pathname,s=t.searchParams}else{const[t,n]=e.split("?");o=t,s=new URLSearchParams(n||"")}}catch(t){return e}const a=new URLSearchParams(s);n.forEach((e,t)=>{i.has(t.toLowerCase())||a.has(t)||a.set(t,e)});const l=a.toString();return l?`${o}?${l}`:o}(s,D):s;let F=e.jsx(ci,{onClick:M,className:f,...k,...S});switch(n){case"solid":F=V?e.jsx(Cd,{as:"a",href:V,target:a,id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:G,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S}):e.jsx(Cd,{id:c,variant:r,target:a,text:i,label:o,fullWidth:p,size:N,onClick:M,iconName:R,iconSize:E,iconFill:w,buttonClassName:B,disableAnimation:j,animationType:T,...S});break;case"text":F=e.jsx(ir,{title:i,href:V,target:a,variant:d||"default",className:Ee(R&&"label1 inline-flex items-center gap-2 no-underline",Id[r],u),onClick:G,...S,children:R?e.jsxs(e.Fragment,{children:[P?e.jsx(qn,{name:R,size:E,fill:w}):null,i,P?null:e.jsx(qn,{name:R,size:E,fill:w})]}):e.jsx(e.Fragment,{children:i})});break;case"button-with-icon":F=V?e.jsx(Cd,{as:"a",href:V,id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:G,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S}):e.jsx(Cd,{id:c,variant:r,text:i,label:o,fullWidth:p,buttonClassName:B,size:N,onClick:M,iconName:R,iconSize:E,iconFill:w,disableAnimation:j,animationType:T,...S});break;case"text-with-icon":{const t=(e=>({primary_brand:"text-text-brand",primary_inverse:"text-text-inverse",secondary:"text-text",secondary_inverse:"text-text-inverse"}[e]||"text-text-brand"))(r);F=e.jsxs(ir,{href:V,target:a,onClick:G,className:Ee("group mt-auto inline-flex items-center justify-start gap-2 pt-3 text-sm no-underline",t,f),"aria-label":i,...S,children:[P&&R?e.jsx(qn,{name:R,fill:w,size:E,weight:"200"}):null,e.jsx(er,{"aria-label":i,className:"label1 text-nowrap",children:i}),R&&!P&&e.jsx(qn,{name:R,fill:w,size:E,weight:"200"})]});break}}return e.jsx(yd,{disableAnimation:j,animationType:T,className:Ee(p&&"w-full"),children:F})};var Ed;const Ad=null!==(Ed=c.default)&&void 0!==Ed?Ed:c,jd=({href:t,title:n,description:r,date:i,category:o,image:s,imageAltText:a,imageComponent:l,asGrid:c=!0,index:u,fieldProps:d})=>{var p,m,h;const f=null!==(h=null!==(m=null!==(p=null!=a?a:null==s?void 0:s.description)&&void 0!==p?p:null==s?void 0:s.alt)&&void 0!==m?m:n)&&void 0!==h?h:"blog-card-image",g=c?"group relative flex h-full flex-col overflow-hidden rounded-card-lg bg-white shadow-drop transition-all duration-200 hover:-translate-y-0.5 hover:shadow-cardDrop":"callout-card group relative w-full flex h-full flex-col overflow-hidden";return e.jsxs("article",{className:g,"data-section-type":"blog-card","data-section-index":u,"data-view-mode":c?"grid":"list",children:[c&&e.jsx("div",{className:"block h-[232px] w-full flex-shrink-0 overflow-hidden bg-gray-100",children:s?l?e.jsx(l,{src:s.src,alt:f,width:s.width,height:s.height,className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):e.jsx("img",{src:s.src,alt:f,width:s.width,height:s.height,loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-gray-200 to-gray-100","aria-hidden":"true"})}),e.jsxs("div",{className:"flex flex-1 flex-col "+(c?"gap-5 p-6 md:p-8":"gap-1 border-b p-3 md:p-4"),children:[e.jsxs("div",{className:"flex items-center gap-2 text-[13px]",children:[c&&e.jsx("span",{className:"body2 text-text-brand",children:o}),i&&e.jsxs(e.Fragment,{children:[c&&e.jsx("span",{className:"footnote text-text","aria-hidden":"true",children:"•"}),e.jsx("time",{className:"body2 text-text",children:i})]})]}),n&&e.jsx(er,{as:"h2",className:"heading6",...null==d?void 0:d.title,children:e.jsx(Ad,{href:t,className:"m-0 line-clamp-3 font-black transition-colors duration-150 after:absolute after:inset-0 after:z-10 after:content-[''] hover:text-text-brand group-hover:text-text-brand",children:n})}),r&&e.jsx(er,{className:"body1 m-0 line-clamp-3 flex-1 text-text",...null==d?void 0:d.description,children:r})]}),!n&&e.jsx(Ad,{href:t,className:"absolute inset-0 z-10",children:e.jsx("span",{className:"sr-only",children:null!=o?o:"Read more"})})]})},Td={left:"w-full lg:flex lg:justify-start",right:"w-full lg:flex lg:justify-end",center:"w-full lg:flex lg:justify-center"},Sd=({card:t,lgWidth:n,mdWidth:r})=>{var i,o,s,a,l,c;const{image:u,title:d,header:p,body:m,cta:h,ctaAlignment:f,imageLink:g,imageClassName:b,className:v,imageAltText:x,isPromoBarImg:y=!1,shadow:w=!1,disableAnimation:C,fieldProps:I}=t,N=f?Td[f]:Td.left,E=g?"cursor-pointer":"",A=g?()=>{"undefined"!=typeof window&&window.open(g,"_blank")}:void 0;return y?(null==u?void 0:u.href)?e.jsx(Jr,{src:u.href,alt:null!==(s=null!==(o=null!==(i=null!=x?x:u.description)&&void 0!==i?i:u.title)&&void 0!==o?o:d)&&void 0!==s?s:"promo-bar-image",width:148,height:40,onClick:A,className:E}):null:e.jsxs("section",{"aria-labelledby":"Image Card",className:Ee("callout-card relative flex h-full w-full flex-col gap-5 px-0 pb-4 pt-0 md:items-start md:gap-6 lg:pb-0",w&&"rounded-3xl shadow-card",r,n,v),children:[(null==u?void 0:u.href)?e.jsx("div",{className:Ee("relative h-[233px] w-full overflow-hidden sm:mb-1 md:h-[274px] md:flex-none lg:mb-0 lg:h-[330px]",b),children:e.jsx(Jr,{src:u.href,alt:null!==(l=null!==(a=null!=x?x:u.description)&&void 0!==a?a:u.title)&&void 0!==l?l:"card-image",width:u.width||400,height:u.height||330,onClick:A,className:Ee("h-full w-full rounded-[40px] object-cover",E)})}):null,p?e.jsx(er,{as:"h4",className:"heading6 text-text",...null==I?void 0:I.header,children:p}):null,m?e.jsx(er,{as:"div",className:"body1 -mt-1 mb-0 flex-1 text-text md:-mt-2 lg:mt-2",...null==I?void 0:I.body,children:m}):null,e.jsx("div",{className:Ee(N,"mt-auto"),...null==I?void 0:I.cta,children:h?e.jsx(Nd,{...h,showButtonAs:h.showButtonAs||(h.buttonIconName?void 0:"text-with-icon"),iconName:h.iconName||(h.buttonIconName?void 0:"expand_circle_right"),iconFill:null!==(c=h.iconFill)&&void 0!==c?c:1,disableAnimation:!(!1===C&&!1===h.disableAnimation),animationType:gi}):null})]})},kd=({card:t,lgWidth:n,mdWidth:r})=>{const{anchorId:i="FullImageCard",title:o,description:s,caption:a,image:l,imageAltText:c,cta:u,link:d,className:p,contentClassName:m,imageClassName:h,shadow:f=!0,fieldProps:g}=t,b=u||d,v=null==b?void 0:b.href,x=o?e.jsx(er,{as:"h3",className:"body1 text-text xl:heading6",...null==g?void 0:g.title,children:o}):null;return e.jsxs("section",{id:i,className:Ee("callout-card relative flex flex-col rounded-3xl bg-white p-0",f&&"shadow-card",r,n,"w-full",p),"aria-labelledby":`card-title-${i}`,children:[(null==l?void 0:l.href)?e.jsx("div",{className:Ee("relative aspect-video overflow-hidden rounded-tl-3xl rounded-tr-3xl",h),children:(()=>{var t,n,r;if(!(null==l?void 0:l.href))return null;const i=e.jsx(Jr,{src:l.href,alt:null!==(r=null!==(n=null!==(t=null!=c?c:l.description)&&void 0!==t?t:l.title)&&void 0!==n?n:o)&&void 0!==r?r:"card-image",width:l.width||400,height:l.height||280,className:"w-full"});return v?e.jsx(ir,{href:v,tabIndex:-1,target:null==b?void 0:b.target,children:i}):i})()}):null,e.jsxs("div",{className:Ee("flex h-full flex-col gap-4 p-6 md:p-8",m),children:[e.jsxs("div",{className:"flex flex-1 flex-col justify-between",children:[e.jsxs("div",{children:[v&&x?e.jsx(ir,{href:v,target:null==b?void 0:b.target,className:"no-underline hover:underline",children:x}):x,s?e.jsx(er,{as:"p",className:"body2 mt-4 text-text md:body1",...null==g?void 0:g.description,children:s}):null]}),a?e.jsx(er,{as:"p",className:"footnote mt-5 text-text-secondary",...null==g?void 0:g.caption,children:a}):null]}),u?e.jsx("div",{className:"mt-2 flex items-end",...null==g?void 0:g.cta,children:e.jsx(Nd,{linkVariant:"unstyled",linkClassName:"label1 flex items-center gap-2 text-text",...u,iconName:"expand_circle_right",iconFill:1})}):null]})]})},Pd={blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",white:"bg-white",yellow:"bg-[#F5FF1E]"},Rd={left:"flex w-full justify-start",right:"flex w-full justify-end",center:"flex w-full justify-center"},Bd={left:"justify-start",right:"justify-end",center:"justify-center"},Ld=e=>{const t=(e||"").replace(/\D/g,"");return t?`tel:${t}`:""},Od=({card:t,lgWidth:n,mdWidth:r,className:i,contentClassName:o,style:s})=>{var a,l,c,u,d,p,m,h,f,g,b,v,x,y,w,C,I,N,E,A,j,T,S;const k=null===(a=t.imageView)||void 0===a?void 0:a.toLowerCase(),P="full"===k,R="margin"===k,B="standard"===k,L="icon"===k||"inset"===k||!k&&!!t.image,O=B||L,G=(null===(l=t.iconAlignment)||void 0===l?void 0:l.toLowerCase())||(null===(c=t.imageAlignment)||void 0===c?void 0:c.toLowerCase())||"left",M=t.ctaAlignment&&Rd[t.ctaAlignment]||Rd.left,D=t.ctaAlignmentBottom&&Bd[t.ctaAlignmentBottom]||Bd.left,V=null===(u=t.pinwheelColor)||void 0===u?void 0:u.split("-")[1],F=O&&t.applyCardBackgroundColor,H={...s,...F&&t.backgroundColor?{"--scc-bg":t.backgroundColor}:{},...F&&t.textColor?{"--scc-fg":t.textColor}:{},...F&&t.backgroundColor?{backgroundColor:"var(--scc-bg)"}:{},...F&&t.showBackgroundImage&&V?{backgroundImage:`url('data:image/svg+xml;utf8,${encodeURIComponent(Ae(V))}')`,backgroundPosition:"top left",backgroundSize:"684px 107px",backgroundRepeat:"no-repeat"}:{}},W=n=>{var r,i,o,s;return t.image?e.jsx("div",{className:Ee("relative aspect-video overflow-hidden",n?"mx-6 lg:mx-8":"rounded-t-3xl"),children:e.jsx(Jr,{src:t.image,alt:null!==(s=null!==(o=null!==(i=null!==(r=t.imageAltText)&&void 0!==r?r:t.imageDescription)&&void 0!==i?i:t.imageAlt)&&void 0!==o?o:t.title)&&void 0!==s?s:"card-image",width:t.imageWidth||400,height:t.imageHeight||280,className:Ee("w-full",!n&&"rounded-t-3xl")})}):null},X=F&&t.textColor?{color:t.textColor}:void 0,z=t.title?e.jsx(er,{as:"h3",className:"heading6 mb-2 text-text md:heading6",style:X,...null===(d=t.fieldProps)||void 0===d?void 0:d.title,children:t.title}):null,_=(null===(p=t.cta)||void 0===p?void 0:p.href)&&z?e.jsx(ir,{href:t.cta.href,target:t.cta.target,className:"no-underline hover:underline",style:X,children:z}):z,Z=(null!==(h=null===(m=t.workingHours)||void 0===m?void 0:m.length)&&void 0!==h?h:0)>0||(null!==(g=null===(f=t.phoneNumber)||void 0===f?void 0:f.length)&&void 0!==g?g:0)>0,Y=!(!t.cta||t.title||t.titleLocation||t.body||t.richText||t.image||Z||(null===(b=t.ctaBottom)||void 0===b?void 0:b.title)&&(null===(v=t.ctaBottom)||void 0===v?void 0:v.href));return e.jsxs("section",{className:Ee("callout-card relative flex h-full w-full flex-col rounded-3xl p-0",t.shadow&&"shadow-card",t.image&&!P&&!t.showBackgroundImage&&"pt-1",!t.applyCardBackgroundColor&&(null!==(y=Pd[null!==(x=t.backgroundColor)&&void 0!==x?x:""])&&void 0!==y?y:""),r,n,i),style:H,"aria-labelledby":t.title?`callout-${t.title}`:void 0,children:[(null===(w=t.ctaBottom)||void 0===w?void 0:w.title)&&(null===(C=t.ctaBottom)||void 0===C?void 0:C.href)?e.jsx("div",{className:Ee("top-link m-6 flex items-center lg:m-8",D),children:e.jsxs(ir,{href:t.ctaBottom.href,className:"label1 inline-flex items-center gap-2 text-text decoration-text underline-offset-4 hover:underline",children:[e.jsx(qn,{name:"location_on",fill:1,size:24}),e.jsx("span",{children:t.ctaBottom.title})]})}):null,t.image&&P?W(!1):null,t.image&&R?W(!0):null,e.jsxs("div",{className:Ee("relative flex flex-1 flex-col justify-between",Y?"p-0":"px-6 pb-8 pt-7 lg:px-8 lg:py-8",o),children:[e.jsx("div",{className:"flex flex-1 flex-col justify-between",children:e.jsxs("div",{className:Ee("flex flex-col",t.imageToRichTextAlignment&&"lg:flex-row lg:items-start lg:gap-6"),children:[e.jsx("div",{className:Ee(t.imageToRichTextAlignment&&"flex-shrink-0"),children:!t.image||P||R?null:(()=>{var n,r,i,o;if(!t.image)return null;const s=B&&t.imageWidth||60,a=B&&t.imageHeight||60;return e.jsx("div",{className:Ee("relative mb-8 flex",t.imageToRichTextAlignment&&"h-[60px] w-[60px] flex-shrink-0"),style:{justifyContent:G},children:e.jsx(Jr,{src:t.image,alt:null!==(o=null!==(i=null!==(r=null!==(n=t.imageAltText)&&void 0!==n?n:t.imageDescription)&&void 0!==r?r:t.imageAlt)&&void 0!==i?i:t.title)&&void 0!==o?o:"card-icon",width:s,height:a,className:Ee("object-contain",t.imageToRichTextAlignment&&"!h-[60px] !w-[60px]")})})})()}),e.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[_,t.titleLocation?e.jsx("div",{className:"mb-1 lg:mb-2",children:e.jsx(er,{as:"h4",className:"label1 font-bold text-text",children:t.titleLocation})}):null,Z?e.jsx("div",{className:"mb-2",children:e.jsx("table",{children:e.jsxs("tbody",{children:[null===(I=t.workingHours)||void 0===I?void 0:I.map((t,n)=>{const[r,i]=(null!=t?t:"").split("|");return e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 pr-3",children:e.jsx(er,{className:"label2 text-text",children:r})}),e.jsx("td",{className:"py-2 pl-3",children:e.jsx(er,{className:"body2 font-bold text-text",children:i})})]},`wh-${n}`)}),null===(N=t.phoneNumber)||void 0===N?void 0:N.map((t,n)=>e.jsxs("tr",{children:[e.jsx("td",{className:"py-1 pr-3 align-middle",children:e.jsx(qn,{fill:1,name:"call",size:24,weight:"200",className:"text-text"})}),e.jsx("td",{className:"py-1 pl-3",children:e.jsx(ir,{href:Ld(t),className:"text-inherit no-underline",children:e.jsx(er,{className:"body2 font-bold text-text",children:t})})})]},`ph-${n}`))]})})}):null,t.body?e.jsx(er,{as:"div",className:"body1 text-text",style:X,...null===(E=t.fieldProps)||void 0===E?void 0:E.body,children:t.body}):null,t.richText?e.jsx(er,{as:"div",className:"body1 text-text",style:X,...null===(A=t.fieldProps)||void 0===A?void 0:A.richText,children:t.richText}):null]})]})}),t.cta?e.jsx("div",{className:Ee(!Y&&"mt-2",M),...null===(j=t.fieldProps)||void 0===j?void 0:j.cta,children:e.jsx(Nd,{linkVariant:"unstyled",linkClassName:Ee("label1 flex items-center gap-2 text-text",F&&t.textColor&&"decoration-current"),...t.cta,iconName:null!==(T=t.cta.iconName)&&void 0!==T?T:"expand_circle_right",iconFill:null!==(S=t.cta.iconFill)&&void 0!==S?S:1,fullWidth:!0,buttonClassName:Ee(t.cta.buttonClassName,Y&&"w-[342px] max-w-full px-4 lg:w-[342px]")})}):null]})]})},Gd={cream500:"bg-[#FFFEEF]",gray100:"bg-fill-secondary",white:"bg-white",transparent:"",blue:"bg-fill-brand",green:"bg-fill-brand-accent",navy:"bg-fill-inverse",purple:"bg-fill-brand-tertiary",yellow:"bg-[#F5FF1E]"},Md={1:"md:w-full",2:"md:w-[calc(50%-1rem)]"},Dd={1:"lg:w-full",2:"lg:w-[calc(50%-0.75rem)]",3:"lg:w-[calc(33.333%-1rem)]",4:"lg:w-[calc(25%-1.125rem)]",5:"lg:w-[calc(20%-1.2rem)]",6:"lg:w-[calc(16.666%-1.25rem)]"},Vd=e=>Math.max(1,Math.min(6,e)),Fd=t.forwardRef(({as:t,className:n="",...r},i)=>{const o=Ee(n);if(t){const n=t;return e.jsx(n,{ref:i,className:o,...r})}return e.jsx("img",{ref:i,className:o,...r})});Fd.displayName="Image";const Hd=({onSelect:n,speed:r,isSelected:i=!1,renderCheckPlans:o,iconSize:s=24,iconClassName:a,cta:l,techType:c,isMax:u,twoColumn:d=!1})=>{const[p,m]=t.useState(!1),h=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,f=null==o?void 0:o({speedCardConfig:{isModalOpen:p,setModalOpen:()=>{m(!1)},speed:r,techType:c,isMax:u},cta:l});return e.jsxs(e.Fragment,{children:[e.jsxs(ci,{onClick:e=>{m(!0),n(e)},className:Ee(h,"w-full px-3 md:px-5",d?"justify-center md:justify-between":"justify-between"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${r}`,"data-track-element-clicked":"speed_plan_card",children:[e.jsx("span",{className:d?"label3 md:label1":"label1",children:"Select plan"}),e.jsx(qn,{className:Ee(a,"!text-[24px] md:!text-[40px]",d&&"hidden md:inline-block",i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),f]})},Wd=({planName:n,planSubtext:r,speed:i,price:o,priceUnit:s="/mo",description:a,bestValue:c=!1,bestValueText:u="best value",giftBadge:d,innerBadge:p,theme:m="light",featuresTitle:h="Business Ready Internet features",features:f=[],isExpanded:g,onToggleExpand:b,onCtaClick:v,renderCheckPlans:x,cta:y,techType:w,ismaxSpeed:C,priceSuffixBottom:I,hasAnyBadge:N=!1,hasAnyGift:E=!1,twoColumn:A=!1,enableBusinessSettings:j=!1,fieldProps:T})=>{const[S,k]=t.useState(!1),P=void 0!==g?g:S,R="dark"===m,B=A?"label3 md:subheading2":"subheading2",L=A?"heading2 md:subheading5":"subheading5",O=A?"label3 md:label1":"label1";return e.jsxs("article",{className:"relative flex h-full w-full max-w-[392px] flex-col",children:[c?e.jsx("div",{...null==T?void 0:T.bestValueText,className:"label3 rounded-t-[20px] bg-bg-fill-brand-accent px-6 py-2 text-center text-text",children:u}):N?e.jsx("div",{"aria-hidden":"true",className:"label3 invisible px-6 py-2 text-center",children:" "}):null,e.jsxs("div",{className:Ee("flex flex-grow flex-col gap-5 rounded-card px-5 py-7 shadow-cardDrop",R?"text-inverse border-2 border-border-accent bg-bg-fill-inverse":"bg-bg text-text",c?"rounded-t-none border-t-0":""),children:[e.jsxs("header",{"data-pc-header":!0,className:"overflow-none flex flex-wrap items-start justify-between gap-2",children:[e.jsx("div",{className:"flex w-full flex-col md:w-auto",children:e.jsxs(er,{as:"h3",...null==T?void 0:T.planName,className:Ee(B,"whitespace-normal",!j&&"lowercase",R?"text-text-accent-on-bg-inverse":"text-text-brand"),children:[n,r?e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("span",{...null==T?void 0:T.planSubtext,children:r})]}):null]})}),o?e.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[e.jsxs("div",{className:"flex items-start",...null==T?void 0:T.price,children:[e.jsx(er,{as:"span",className:Ee(O,"mr-1 mt-[2px]",R?"text-text-inverse":"text-text"),children:"$"}),e.jsx(er,{as:"span",className:Ee(L,"leading-none",R?"text-text-inverse":"text-text"),children:o.split(".")[0]}),e.jsx(er,{as:"span",className:Ee(O,R?"text-text-inverse":"text-text"),children:`${o.split(".")[1]}${s}`})]}),I?e.jsx(er,{as:"span",...null==T?void 0:T.priceSuffixBottom,className:Ee("micro text-nowrap",R?"text-text-inverse":"text-text"),children:I}):null]}):null]}),e.jsx("section",{"data-pc-description":!0,children:e.jsx(er,{...null==T?void 0:T.description,className:Ee(A?"footnote md:body2":"body2","md:h-[56px]",R?"text-text-inverse":"text-text"),children:a})}),(null==d?void 0:d.length)?e.jsx("div",{"data-pc-gift":!0,children:e.jsx("div",{className:Ee("flex w-full flex-col gap-3 rounded-surface-sm p-2",R?"bg-bg-surface-inverse":"bg-bg-surface-info"),children:null==d?void 0:d.map(t=>{return e.jsxs("div",{className:"flex w-full items-center gap-2",...t.fieldProps,children:[e.jsx(Fd,{src:t.icon,alt:t.title,width:20,height:20}),e.jsx(er,{as:"div",className:Ee("body3",R?"text-text-inverse":"text-text"),children:(n=t.title,"string"==typeof n&&n.includes("|")?n.split("|").map((t,n)=>n%2==1?e.jsx("span",{className:"label3",children:t},n):e.jsx(l.default.Fragment,{children:t},n)):n)})]},t.title);var n})})}):E?e.jsx("div",{"data-pc-gift":!0,"data-pc-gift-empty":!0,className:"invisible p-2","aria-hidden":"true",children:e.jsx(er,{as:"div",className:Ee("body3",R?"text-text-inverse":"text-text"),children:" "})}):null,e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx(Hd,{onSelect:v,speed:i,isSelected:R,renderCheckPlans:x,cta:y,iconSize:40,techType:w,isMax:C,twoColumn:A}),f.length>0&&e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsxs(ci,{onClick:()=>{b?b():k(!S)},className:"group flex w-full items-center gap-2 text-left",children:[e.jsx(er,{as:"h4",...null==T?void 0:T.featuresTitle,className:Ee("label3",R?"text-text-inverse":"text-text"),children:h}),e.jsx(qn,{name:"keyboard_arrow_down",fill:1,size:24,className:Ee("transition-transform duration-300",P&&"rotate-180",R?"text-text-inverse":"text-text")})]}),e.jsxs("div",{className:Ee("overflow-hidden transition-all duration-200 ease-in-out",P?"opacity-100":"max-h-0 opacity-0"),children:[e.jsx("div",{className:"flex flex-col",children:e.jsx(tr,{items:f,iconSize:24,iconPosition:"top",iconClassName:"mt-0",iconColor:R?"yellow":"green",listContainerClassName:"mt-0 space-y-0 flex flex-col gap-3",listItemClassName:"body3 "+(R?"text-text-inverse":"text-text")})}),(null==p?void 0:p.badgeIcon)?e.jsxs("div",{className:"mt-3 flex items-center gap-1 text-left",children:[e.jsx(Fd,{src:p.badgeIcon,alt:"Inner Badge",width:24,height:24,className:"ml-1 h-auto pr-2"}),(p.badgeText.includes("|")?p.badgeText.split("|"):[p.badgeText]).map((t,n)=>e.jsx(er,{as:"span",className:Ee(0===n?"label3":"body3",R?"text-text-inverse":"text-text"),children:t.trim()},n))]}):null]})]})]})]})]})},Xd=({title:t,quote:n,rating:r,author:i,role:o,avatarUrl:s,isActive:a=!1,className:l})=>e.jsxs("figure",{className:m("flex w-full flex-col gap-6 rounded-card-lg p-6 transition-all duration-300 md:gap-10 md:p-14",a?"bg-bg-surface-secondary shadow-drop":"bg-gray-50 opacity-40",l),children:[e.jsxs("div",{className:"flex flex-col justify-start gap-3 md:gap-5",children:[e.jsx("header",{children:e.jsx(er,{as:"h3",className:"label1 text-text",children:t})}),e.jsx("blockquote",{className:"body1 text-text",children:n}),r?e.jsx("div",{className:"flex","aria-label":`Rating: ${r} out of 5`,children:[...Array(5)].map((t,n)=>e.jsx(qn,{size:24,name:"star",fill:1,className:m("h-[21px] w-[21px]",n<r?"text-text":"text-gray-300"),"aria-hidden":"true"},n))}):null]}),i&&e.jsxs("figcaption",{className:"flex gap-3 md:gap-5",children:[e.jsx("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-full bg-gray-300",children:s?e.jsx(u.default,{src:s,alt:i,fill:!0,className:"object-cover",sizes:"40px"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gray-500 text-xs font-bold text-white",children:i.charAt(0)})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("cite",{className:"label3 font-bold not-italic text-text",children:i}),e.jsx(er,{as:"p",className:"body3 text-text",children:o})]})]})]});function zd({fields:n,renderCheckPlans:r,isVisible:i=!0,onProductCardCtaClick:o,enableBusinessSettings:s=!1}){var a,l,c,u,d;const p=(null===(c=null===(l=null===(a=null==n?void 0:n.items)||void 0===a?void 0:a.items)||void 0===l?void 0:l[0])||void 0===c?void 0:c.benefitsExpanded)||!1,[m,h]=t.useState(p),[f,g]=t.useState(0),[b,v]=t.useState(0),[x,y]=t.useState(0),[w,C]=t.useState(!1),I=(null===(u=null==n?void 0:n.items)||void 0===u?void 0:u.items)||[],N=null!==(d=null==n?void 0:n.twoColumn)&&void 0!==d?d:I.length>3,E=I.length>1,A=I.some(e=>null==e?void 0:e.highlighted),j=I.some(e=>{var t,n,r,i;return(null!==(i=null===(r=null===(n=null===(t=null==e?void 0:e.giftRewards)||void 0===t?void 0:t.list)||void 0===n?void 0:n.items)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0}),T=!1!==(null==n?void 0:n.showArrows)&&E,S=t.useRef([]),k=t.useRef(null),P=t.useRef(null),R=t.useRef(null),B=t.useRef(0);t.useEffect(()=>{if(!E||!i)return;const e=()=>{var e;const t=(null===(e=k.current)||void 0===e?void 0:e.offsetWidth)||0;if(0===t)return;if(408*I.length-16<=t)return void v(0);const n=t-32,r=Math.max(1,Math.floor((n+16)/408));v(Math.max(0,I.length-r))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E,i,I.length]),t.useEffect(()=>{g(e=>Math.min(e,b))},[b]);const L=t.useCallback(()=>{E&&g(e=>Math.max(0,e-1))},[E]),O=t.useCallback(()=>{E&&g(e=>Math.min(b,e+1))},[E,b]),G=t.useCallback(e=>{E&&(B.current=e.touches[0].clientX,C(!0))},[E]),M=t.useCallback(e=>{if(!w)return;const t=e.touches[0].clientX-B.current;y(0===f&&t>0||f>=b&&t<0?.3*t:t)},[w,f,b]),D=t.useCallback(()=>{var e;if(!w)return;C(!1);const t=.15*((null===(e=k.current)||void 0===e?void 0:e.offsetWidth)||0);x>t?L():x<-t&&O(),y(0)},[w,x,L,O]);if(t.useEffect(()=>{if(!E||!i)return;const e=S.current,t=()=>{const t=e.filter(Boolean);if(0===t.length)return;t.forEach(e=>{e.style.height="auto"});const n=e=>{const n=t.map(t=>t.querySelector(e)).filter(Boolean);n.forEach(e=>e.style.removeProperty("min-height"));const r=Math.max(0,...n.map(e=>e.getBoundingClientRect().height));r>0&&n.forEach(e=>e.style.setProperty("min-height",`${r}px`,"important"))};n("[data-pc-header]"),n("[data-pc-description]");const r=Math.max(...t.map(e=>e.offsetHeight));r<=0||t.forEach(e=>{e.style.height=`${r}px`})};t();const n=requestAnimationFrame(t),r=setTimeout(t,100);return window.addEventListener("resize",t),()=>{cancelAnimationFrame(n),clearTimeout(r),window.removeEventListener("resize",t),e.filter(Boolean).forEach(e=>{var t,n;null===(t=e.querySelector("[data-pc-header]"))||void 0===t||t.style.removeProperty("min-height"),null===(n=e.querySelector("[data-pc-description]"))||void 0===n||n.style.removeProperty("min-height")})}},[E,i,m,I.length]),t.useEffect(()=>{if(!N||!i)return;const e=["[data-pc-header]","[data-pc-description]"],t=()=>{const t=P.current;t&&e.forEach(e=>t.querySelectorAll(e).forEach(e=>{e.style.removeProperty("min-height")}))},n=e=>{const t=P.current;if(!t)return;const n=Array.from(t.querySelectorAll(e));n.forEach(e=>e.style.removeProperty("min-height"));for(let e=0;e<n.length;e+=2){const t=n.slice(e,e+2);if(t.length<2)break;const r=Math.max(...t.map(e=>e.getBoundingClientRect().height));t.forEach(e=>e.style.setProperty("min-height",`${r}px`,"important"))}},r=()=>{window.matchMedia("(max-width: 767px)").matches?(n("[data-pc-header]"),n("[data-pc-description]")):t()},o=requestAnimationFrame(r),s=setTimeout(r,150),a=setTimeout(r,500);return window.addEventListener("resize",r),()=>{cancelAnimationFrame(o),clearTimeout(s),clearTimeout(a),window.removeEventListener("resize",r),t()}},[N,i,m,I.length]),t.useEffect(()=>{if(!i)return;const e=R.current,t=()=>{e&&e.querySelectorAll("[data-pc-gift]").forEach(e=>{e.style.removeProperty("min-height"),e.style.removeProperty("display")})},n=()=>{if(!e)return;t();const n=Array.from(e.querySelectorAll("[data-pc-gift]")).filter(e=>null!==e.offsetParent);if(0===n.length)return;const r=[];n.forEach(e=>{const t=(e.closest("article")||e).getBoundingClientRect().top,n=r.find(e=>Math.abs(e.top-t)<=4);n?n.els.push(e):r.push({top:t,els:[e]})}),r.forEach(({els:e})=>{if(e.every(e=>e.hasAttribute("data-pc-gift-empty")))return void e.forEach(e=>e.style.setProperty("display","none","important"));const t=Math.max(...e.map(e=>e.getBoundingClientRect().height));t<=0||e.forEach(e=>e.style.setProperty("min-height",`${t}px`,"important"))})};n();const r=requestAnimationFrame(n),o=setTimeout(n,150),s=setTimeout(n,500);return window.addEventListener("resize",n),()=>{cancelAnimationFrame(r),clearTimeout(o),clearTimeout(s),window.removeEventListener("resize",n),t()}},[i,m,I.length]),!I.length&&!(null==n?void 0:n.title))return null;const V=(t,n,i=!1)=>{var a,l,c,u,d,p,f,g,b;const v=null===(a=null==t?void 0:t.speed)||void 0===a?void 0:a.split("|"),x=(null==v?void 0:v[0])||"",y=(null==v?void 0:v[1])||"",w=(null===(c=null===(l=null==t?void 0:t.priceSuffix)||void 0===l?void 0:l.split("/"))||void 0===c?void 0:c[0])||"00",C=(null==t?void 0:t.price)?`${t.price}.${w}`:"",I=(null===(u=null==t?void 0:t.priceSuffix)||void 0===u?void 0:u.split("/"))||[],E=I.length>1?`/${I.slice(1).join("/")}`:"/mo",T=(null===(d=null==t?void 0:t.benefits)||void 0===d?void 0:d.items)||[],k=(null==t?void 0:t.highlighted)||!1,P=(null===(f=null===(p=null==t?void 0:t.giftRewards)||void 0===p?void 0:p.list)||void 0===f?void 0:f.items)||[],R={badgeText:t.innerBadge||"",badgeIcon:(null===(g=t.innerBadgeIcon)||void 0===g?void 0:g.url)||""},B=m;return e.jsx("div",{ref:i?void 0:e=>{e&&!S.current.includes(e)&&(S.current[n]=e)},className:Ee(i?"mx-auto w-full max-w-[392px]":"w-[392px] flex-shrink-0"),children:e.jsx(Wd,{planName:x,planSubtext:y,speed:(null==t?void 0:t.speed)||"",techType:(null==t?void 0:t.techType)||"",ismaxSpeed:(null==t?void 0:t.ismaxSpeed)||"",price:C,priceUnit:E,description:(null==t?void 0:t.productCardDescription)||"",giftBadge:P,innerBadge:R,theme:(null==t?void 0:t.highlighted)?"dark":"light",bestValue:k,bestValueText:(null==t?void 0:t.topBadgeText)||"best value",fieldProps:null==t?void 0:t.fieldProps,featuresTitle:null==t?void 0:t.benefitsTitle,features:T,isExpanded:B,onToggleExpand:()=>{h(e=>!e)},ctaText:(null===(b=null==t?void 0:t.cta)||void 0===b?void 0:b.buttonLabel)||"Select plan",onCtaClick:e=>{null==o||o(t,e)},renderCheckPlans:r,cta:t.cta,priceSuffixBottom:null==t?void 0:t.priceSuffixBottom,hasAnyBadge:A,hasAnyGift:j,twoColumn:N,enableBusinessSettings:s})},n)};return e.jsx("div",{ref:R,style:{display:"contents"},children:E?e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:P,className:Ee(N?"md:hidden":"sm:hidden",N?"grid grid-cols-2 gap-4":"flex flex-col gap-6"),children:I.map((e,t)=>V(e,t,!0))}),e.jsxs("div",{className:Ee("relative hidden w-full",N?"md:block":"sm:block"),children:[T&&e.jsxs("div",{className:"pointer-events-none absolute left-0 right-0 top-[50%] z-30 flex -translate-y-1/2 justify-between px-4 md:-left-16 md:-right-16 md:px-10",children:[f>0?e.jsx(ci,{onClick:L,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Previous",children:e.jsx(qn,{name:"arrow_back",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"}),f<b?e.jsx(ci,{onClick:O,className:"pointer-events-auto flex h-12 w-12 items-center justify-center rounded-full border border-gray-100 bg-white p-2 text-text shadow-cardDrop transition-all hover:bg-gray-50","aria-label":"Next",children:e.jsx(qn,{name:"arrow_forward",size:24})}):e.jsx("span",{className:"h-12 w-12","aria-hidden":"true"})]}),e.jsx("div",{ref:k,className:"mx-auto max-w-[1280px] select-none overflow-hidden",onTouchStart:G,onTouchMove:M,onTouchEnd:D,onTouchCancel:D,children:e.jsx("div",{className:Ee("flex items-stretch gap-4 py-4",0===b?"justify-center":"ml-8",w?"transition-none":"transition-transform duration-500 ease-in-out"),style:{transform:`translateX(calc(-${f} * (392px + 16px) + ${x}px))`},children:I.map((e,t)=>V(e,t,!1))})})]})]}):e.jsx("div",{ref:P,className:Ee("w-full max-w-[1280px] gap-4",N?"grid grid-cols-2 md:flex md:flex-wrap md:justify-center":"flex flex-wrap justify-center"),children:I.map((e,t)=>V(e,t,!0))})})}function _d({fields:t,renderCheckPlans:n,activeTab:r,tabs:i,onProductCardCtaClick:o,enableBusinessSettings:s=!1}){var a;const l=(null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.items)||[];return i&&i.length>1&&r?e.jsx(e.Fragment,{children:i.map(a=>{const c=l.filter(e=>(e.productCategory||i[0])===a),u={...t,items:{...t.items,items:c}};return e.jsx("div",{style:{display:a===r?"block":"none"},"aria-hidden":a!==r,children:e.jsx(zd,{fields:u,renderCheckPlans:n,isVisible:a===r,onProductCardCtaClick:o,enableBusinessSettings:s})},a)})}):e.jsx(zd,{fields:t,renderCheckPlans:n,onProductCardCtaClick:o,enableBusinessSettings:s})}const Zd=l.default.memo(({item:t,index:n,currentIndex:r,totalItems:i,swipeOffset:o,isSwiping:s,isMobile:a,containerWidth:l,cardOffsetPercentage:c})=>{let u=n-r;u>i/2&&(u-=i),u<-i/2&&(u+=i);const d=0===u,p=1===Math.abs(u),m=u*c+o/l*100,h=!a||(s?d||p:d);return e.jsx("div",{className:Ee("col-start-1 row-start-1 w-full md:max-w-[815px]","will-change-[transform,opacity]",d?"z-10":"z-5",Math.abs(u)>1?"invisible":"visible",h?"opacity-100":"opacity-0",s?"transition-opacity duration-200":"transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]"),style:{transform:`translateX(${m}%)`},children:e.jsx(Xd,{...t,isActive:d,className:"h-full"})})});Zd.displayName="TestimonialCarouselSlide";const Yd=({fields:n,autoScroll:r=!0,autoScrollInterval:i=8e3})=>{var o;const s=(null===(o=null==n?void 0:n.items)||void 0===o?void 0:o.items)||[];if(!s||0===s.length)return null;const a=function(e){const{itemCount:n,cardOffsetPercentage:r=105,swipeThreshold:i=.15,mobileBreakpoint:o=768,autoScrollInterval:s=8e3,enableAutoScroll:a=!0}=e,[l,c]=t.useState(0),[u,d]=t.useState(0),[p,m]=t.useState(!1),[h,f]=t.useState("undefined"!=typeof window?window.innerWidth:1),[g,b]=t.useState(!1),v=t.useRef(null),x=t.useRef(0),y=t.useRef(null),w={CARD_OFFSET_PERCENTAGE:r,SWIPE_THRESHOLD:i,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:s};t.useEffect(()=>{const e=()=>{var e;f((null===(e=y.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const C=t.useCallback(()=>{0!==n&&c(e=>(e+1)%n)},[n]),I=t.useCallback(()=>{0!==n&&c(e=>0===e?n-1:e-1)},[n]),N=t.useCallback(e=>{e<0||e>=n||c(e)},[n]),E=t.useCallback(e=>{x.current=e.touches[0].clientX,m(!0),v.current&&clearInterval(v.current)},[]),A=t.useCallback(e=>{if(!p)return;const t=e.touches[0].clientX-x.current;d(t)},[p]),j=t.useCallback(()=>{m(!1);const e=h*i;u>e?I():u<-e&&C(),d(0),a&&s>0&&(v.current=setInterval(()=>{C()},s))},[u,h,i,I,C,a,s]);return t.useEffect(()=>{const e=()=>{b(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),t.useEffect(()=>{if(a&&0!==n&&0!==s)return v.current=setInterval(()=>{C()},s),()=>{v.current&&clearInterval(v.current)}},[C,n,a,s]),{currentIndex:l,swipeOffset:u,isSwiping:p,isMobile:g,containerWidth:h,containerRef:y,nextSlide:C,prevSlide:I,goToSlide:N,handleTouchStart:E,handleTouchMove:A,handleTouchEnd:j,constants:w}}({itemCount:s.length,cardOffsetPercentage:105,swipeThreshold:.15,mobileBreakpoint:768,autoScrollInterval:i,enableAutoScroll:r});return e.jsxs("div",{children:[e.jsxs("div",{className:"relative max-w-[1280px] md:px-11",children:[e.jsx(ci,{onClick:a.prevSlide,className:"group absolute left-5 top-1/2 z-50 hidden h-13 w-13 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Previous",children:e.jsx(qn,{name:"arrow_back",size:24})}),e.jsx(ci,{onClick:a.nextSlide,className:"group absolute right-5 top-1/2 z-50 hidden h-13 w-13 -translate-y-1/2 items-center justify-center rounded-full bg-white p-2 text-text shadow-md transition-colors hover:bg-gray-100 md:flex","aria-label":"Next",children:e.jsx(qn,{name:"arrow_forward",size:24})}),e.jsx("div",{ref:a.containerRef,className:"select-none overflow-hidden rounded-card-sm will-change-transform",onTouchStart:a.handleTouchStart,onTouchMove:a.handleTouchMove,onTouchEnd:a.handleTouchEnd,children:e.jsx("div",{className:"grid grid-cols-1 justify-items-center",children:s.map((t,n)=>e.jsx(Zd,{item:t,index:n,currentIndex:a.currentIndex,totalItems:s.length,swipeOffset:a.swipeOffset,isSwiping:a.isSwiping,isMobile:a.isMobile,containerWidth:a.containerWidth,cardOffsetPercentage:a.constants.CARD_OFFSET_PERCENTAGE},n))})})]}),e.jsx("div",{className:"mt-5 flex justify-center gap-2 md:mt-10",children:s.map((t,n)=>e.jsx("button",{onClick:()=>a.goToSlide(n),className:Ee("h-2 w-2 rounded-full transition-all duration-300",a.currentIndex===n?"w-6 bg-white":"bg-bg-fill-inverse-disabled hover:bg-white/60"),"aria-label":`Go to slide ${n+1}`},n))})]})},Ud=({tabs:n,activeTab:r,onChange:i,className:o})=>{const s=n.indexOf(r),a=t.useRef([]),[l,c]=t.useState({width:0,left:0});return t.useEffect(()=>{const e=a.current[s];e&&c({width:e.offsetWidth,left:e.offsetLeft})},[s,n]),e.jsx("div",{className:"flex w-full justify-center",children:e.jsxs("div",{className:Ee("relative flex w-fit gap-1 rounded-button-lg bg-bg-surface-active p-1 transition-all duration-200 ease-out",o),children:[e.jsx("div",{className:"absolute bottom-1 top-1 rounded-button bg-bg-fill-brand shadow-md transition-all duration-300 ease-out",style:{width:`${l.width}px`,left:`${l.left}px`}}),n.map((t,n)=>e.jsx("button",{ref:e=>{a.current[n]=e},onClick:()=>i(t),className:Ee("label1 relative z-10 flex min-w-[160px] items-center justify-center whitespace-nowrap rounded-button px-4 py-2.5 transition-colors duration-200 focus:outline-none active:bg-transparent",r===t?"text-text-inverse":"text-text-disabled hover:bg-bg-surface-hover"),children:t},t))]})})},Jd=({link:n,anchorName:r,linkColorClassName:i})=>{const[o,s]=l.default.useState(!1),a=l.default.useRef(null);if(((e,n)=>{const r=t=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(t.target))||n()};t.useEffect(()=>(document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}))})(a,()=>s(!1)),!n)return null;if((e=>"string"==typeof e.href)(n))return e.jsx(Nd,{...n,linkClassName:Ee("body3 flex items-center h-full",i||"text-text"),linkVariant:"unstyled"},`submenu-link-btn-${n.anchorId}`);const{anchorId:c,title:u,items:d,fieldProps:p}=n,m=Array.isArray(null==d?void 0:d.items)?d.items:[],h=`--link-anchor-${r}`;return e.jsxs("div",{className:"relative h-full",style:{anchorName:h},ref:a,children:[e.jsxs(Nd,{onClick:()=>s(e=>!e),"aria-expanded":o,buttonClassName:Ee("group body3 flex items-center h-full",i||"text-text"),showButtonAs:"unstyled",children:[e.jsx(er,{as:"span",className:"group-hover:underline",...null==p?void 0:p.title,children:null!=u?u:null}),e.jsx(qn,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:o?"keyboard_arrow_up":"keyboard_arrow_down"})]},c),e.jsx("div",{className:Ee("shadow-navDrop fixed z-[1001] min-w-44 rounded-input-poppers border border-border bg-bg","transition-[opacity,transform] ease-out",o&&m.length>0?"pointer-events-auto translate-y-0 opacity-100 duration-75":"pointer-events-none -translate-y-2 opacity-0 duration-0"),style:{positionAnchor:h,top:"anchor(bottom)",left:"calc((anchor(left) + anchor(right)) / 2)",translate:"-50% 0"},children:e.jsx("ul",{className:"flex flex-col gap-2 py-2",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&s(!1)},children:m.map((t,n)=>e.jsx("li",{className:"submenu-link type1",children:e.jsx(Nd,{...t,linkVariant:"unstyled",linkClassName:"body3 px-4 hover:bg-bg-surface-hover flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))})})]})},$d=({link:t})=>{const[n,r]=l.default.useState(!1);if(!t)return null;if((e=>"string"==typeof e.href)(t))return e.jsx(Nd,{...t,linkClassName:"label3 flex items-center w-full h-11 px-4 text-text-link",linkVariant:"unstyled"},`submenu-link-btn-${t.anchorId}`);const{anchorId:i,title:o,items:s,fieldProps:a}=t,c=Array.isArray(null==s?void 0:s.items)?s.items:[];return e.jsxs(e.Fragment,{children:[e.jsxs(Nd,{onClick:()=>r(e=>!e),"aria-expanded":n,buttonClassName:" label3 flex items-center w-full h-11 px-4",showButtonAs:"unstyled",fieldProps:null==a?void 0:a.title,children:[null!=o?o:null,e.jsx(qn,{weight:"200",size:24,className:"group-hover:opacity-50 text-icon-secondary",name:n?"keyboard_arrow_up":"keyboard_arrow_down"})]},i),n&&c.length>0&&e.jsx(Kd,{items:c})]})},Kd=({items:t})=>e.jsx("ul",{className:"flex flex-col gap-2",children:t.map((t,n)=>e.jsx("li",{className:"submenu-link type2",children:e.jsx(Nd,{...t,linkVariant:"unstyled",linkClassName:"body3 pl-8 pr-4 flex items-center w-full h-11 text-text-link"})},`submenu-link-${n}`))},`submenu-${t.length}`),Qd=t=>{const{showBlinkDot:n=!1,buttonStyle:r="primary",size:i="md",children:o,className:s,prefix:a,containerClassName:l,...c}=t,u=e.jsxs(ir,{...c,className:Ee("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[r],s),children:[n?e.jsx("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e.jsx("span",{className:Ee("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e.jsx(qn,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e.jsx("span",{className:"font-normal tracking-wide",children:o})]});return null==a||!1===a||""===a?u:e.jsxs("span",{className:Ee("flex items-center gap-2",l),children:["string"==typeof a||"number"==typeof a?e.jsx("span",{className:"text-sm font-normal text-text",children:a}):a,u]})};Qd.displayName="CallButton";const qd=t.forwardRef((n,r)=>{const{className:i,size:o,required:s,placeholder:a,label:l,state:c,errorText:u,prefixIconName:d,prefixIconFill:p=!0,suffixIconFill:m=!1,prefixIconSize:h=24,suffixIconName:f,suffixIconSize:g=24,containerClassName:b,prefixIconClassName:v,loading:x,hasError:y,type:w,...C}=n,I=y?"error":c,[N,E]=t.useState(!1),[A,j]=t.useState(!1),[T,S]=t.useState(w||"text"),k=t.useCallback(e=>{e.stopPropagation(),S(e=>"password"===e?"text":"password")},[]);return e.jsxs("div",{className:"relative",children:[l?e.jsx("label",{htmlFor:l,className:Ee("inline-block pb-1"),children:e.jsxs(er,{as:"span",className:"footnote text-text",children:[l,s?e.jsx("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,e.jsxs("div",{className:Ee("relative flex flex-row items-center overflow-hidden rounded-input border border-input-border bg-input-bg-surface",{sm:"h-[48px] px-3 py-2",slim:"h-12",medium:"h-14",large:"h-[60px]"}[o||"medium"],b,(N||"hover"===I)&&!A&&"error"!==I&&"border-input-border-hover",(A||"focus"===I||"active"===I)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===I&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[d?e.jsx("div",{className:"mr-1",style:{width:h,height:h,overflow:"hidden"},children:e.jsx(qn,{name:d,fill:p?1:0,size:h,className:Ee(v)})}):null,e.jsx("input",{ref:r,id:l,disabled:x||C.disabled,className:Ee("h-full grow rounded-input p-4 caret-bg-inverse placeholder:text-input-text-placeholder focus:border-none focus:outline-none","text-body2","slim"===o&&"text-body3",i),placeholder:a,type:T,...C,onMouseOver:()=>E(!0),onMouseOut:()=>E(!1),onFocus:e=>{var t;null===(t=C.onFocus)||void 0===t||t.call(C,e),j(!0)},onBlur:e=>{var t;null===(t=C.onBlur)||void 0===t||t.call(C,e),j(!1)}}),f?e.jsx("div",{className:"ml-2",style:{width:g,height:g,overflow:"hidden"},onClick:k,children:e.jsx(qn,{name:"text"===T?"visibility":"visibility_off",size:g,fill:m?1:0})}):null]}),"error"===I&&u&&""!=u?e.jsxs(er,{className:Ee("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e.jsx(qn,{name:"info",size:20,className:"mr-1"}),u||"Error"]}):null]})});qd.displayName="Input";const ep=t=>{var n,r;const{primaryNavigationLinks:i,utilityNavigationLinks:o,supportNavigationLinks:s,accountNavigationLinks:a,showCallButton:c,displayCallNowCta:u,displaySearchBar:d}=t,[p,m]=l.default.useState(!1);l.default.useEffect(()=>{if("undefined"==typeof window)return;document.body.style.overflowY=p?"hidden":"unset";const e=document.getElementById("drawer-items");if(!e)return;const t=e.querySelectorAll(".focus-item"),n=t[0],r=t[t.length-1],i=e=>{var t,i,o,s;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(i=(t=r).focus)||void 0===i||i.call(t),e.preventDefault()):document.activeElement===r&&(null===(s=(o=n).focus)||void 0===s||s.call(o),e.preventDefault()))};return window.addEventListener("keydown",i),()=>{document.body.style.overflowY="unset",window.removeEventListener("keydown",i)}},[p]);const h=()=>{m(!1)};return e.jsxs("div",{children:[e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"flex",onClick:()=>m(!0),children:e.jsx(qn,{name:"menu"})}),p?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[90] h-full w-full bg-scrim-bg-modal"}):null,e.jsx("div",{className:Ee("fixed bottom-0 right-0 top-0","z-[100] h-full bg-bg px-0 py-4 text-text","transition-all duration-300 ease-in-out","block",p?"right-0":"-right-96"),id:"mobile-menu-overlay",children:e.jsxs("div",{id:"drawer-items",className:"flex h-full flex-col gap-3",children:[e.jsxs("div",{className:Ee("flex items-center px-4",!1!==c||!1!==u?"justify-between":"justify-end"),children:[!1!==c||!1!==u?e.jsx("div",{children:e.jsx(Qd,{className:"border-none",href:t.invocaPhoneNumberLink,onClick:t.onCallClickMobile,children:t.invocaPhoneNumberDisplayText})}):null,e.jsx("div",{children:e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"focus-item flex",onClick:h,children:e.jsx(qn,{name:"close"})})})]}),!1!==d?e.jsx(tp,{closeMenu:h,isMenuOpen:p,searchBarIconURL:"string"==typeof t.searchBarIcon?t.searchBarIcon:(null===(n=t.searchBarIcon)||void 0===n?void 0:n.url)||"",onSearch:t.onSearch||(()=>{}),iconFieldProps:null===(r=t.fieldProps)||void 0===r?void 0:r.searchBarIcon}):null,e.jsxs("div",{className:"flex-grow overflow-y-auto",onClick:e=>{const t=e.target;(null==t?void 0:t.closest("a"))&&h()},children:[e.jsx("ul",{className:"mt-2 flex flex-col gap-2",children:[...i||[],...s||[],...a||[]].map((t,n)=>e.jsx("li",{children:e.jsx($d,{link:t})},`main-menu-items-${n}`))}),e.jsx("ul",{className:"mt-2 flex gap-5 bg-bg-fill-info px-4",children:null==o?void 0:o.map((n,r)=>e.jsx("li",{children:e.jsx(Nd,{...Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t)),linkClassName:Ee("footnote flex items-center w-full h-11 text-text-link","number"!=typeof t.utilityNavActiveIndex?1===r&&"label4":t.utilityNavActiveIndex===r&&"label4"),linkVariant:"unstyled"},`utility-submenu-link-btn-${n.anchorId}`)},`utility-menu-items-${r}`))})]})]})})]})},tp=t=>{const{closeMenu:n,onSearch:r,isMenuOpen:i,searchBarIconURL:o,iconFieldProps:s}=t,[a,c]=l.default.useState(""),u=l.default.useRef(null),d=e=>{n(),e.preventDefault(),r(a)};return l.default.useEffect(()=>{i||c("")},[i]),e.jsxs("form",{name:"searchForm",className:"flex border-b border-t transition-colors focus-within:border-border-focus",onSubmit:d,children:[e.jsx(Jr,{src:o,width:32,height:32,className:"ml-2",alt:"Search icon",role:"button",onClick:d,...s}),e.jsx("div",{className:"flex-grow",children:e.jsx(qd,{ref:u,className:"body3 h-[34px] rounded-none px-3 text-text",name:"search",placeholder:"Search...",value:a,onChange:e=>c(e.target.value),autoComplete:"off",containerClassName:"h-[46px] px-4 pl-0 rounded-none flex-grow border-none"})})]})},np=t=>{const{searchBarIconURL:n,onSearch:r,iconFieldProps:i}=t,[o,s]=l.default.useState(""),a=l.default.useRef(null),c=e=>{e.preventDefault(),r(o)};return e.jsxs("form",{name:"searchForm",className:"flex h-9 w-60 rounded-input-xl border px-1 transition-colors focus-within:border-border-focus",onSubmit:c,children:[e.jsx(Jr,{src:n,width:32,height:32,alt:"Search icon",role:"button",onClick:c,...i}),e.jsx(qd,{ref:a,type:"text",name:"search",placeholder:"Search...",value:o,onChange:e=>s(e.target.value),className:"body3 rounded-full px-3 text-text",containerClassName:"px-0 h-full border-none rounded-full",autoComplete:"off"})]})},rp=/^(\d[\d,]*)\.(\d+)$/;function ip(t,n){const r=Array.isArray(t)?t:[t],i=Math.min(n,r.length);return e.jsx("div",{className:"flex flex-col py-7",children:e.jsx("div",{className:"flex shrink-0 basis-0 flex-row gap-16 md:gap-20",children:[...new Array(i)].map((t,n)=>e.jsx("ul",{className:"flex flex-col gap-5",style:{width:"172px"},children:r.slice(n*Math.ceil(r.length/i),(n+1)*Math.ceil(r.length/i)).map((t,r)=>e.jsx("li",{children:t},`ordered-item-${n}-${r}`))},`ordered-col-${n}`))})})}function op({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto px-5 [-ms-overflow-style:none] [scrollbar-width:none] md:flex md:justify-center [&::-webkit-scrollbar]:hidden",children:e.jsx("div",{className:"flex w-max gap-10",children:t.map((t,r)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>i(r,t.anchorId||""),buttonClassName:Ee("py-2 whitespace-nowrap",r===n?"label1 border-b-2 border-border-focus-secondary":"body1"),children:t.tabName},r))})}),t.map((t,i)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:i===n?"auto":0,opacity:i===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},className:Ee("overflow-hidden",i===n?"block":"hidden"),id:t.anchorId||`tab-${i}`,children:e.jsx("div",{className:"px-5 py-4 md:px-10",children:ip(t.tabContent,r)})})})},i))]})}function sp({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i,setCurrentTabIndex:o}){return e.jsx("div",{className:"flex w-full flex-col",children:t.map((t,s)=>e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>s===n?o(-1):i(s,t.anchorId||""),className:Ee("flex w-full items-center justify-between px-5 py-4 text-text md:px-10",s===n?"bg-bg-surface-hover":""),children:[e.jsx("span",{className:"heading6",children:t.tabName}),e.jsx(qn,{name:s===n?"keyboard_arrow_up":"keyboard_arrow_down",className:"text-text",size:40})]}),e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:s===n?"auto":0,opacity:s===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},className:Ee("overflow-hidden",s===n?"block":"hidden"),id:t.anchorId||`tab-${s}`,children:e.jsx("div",{className:"px-5 py-4 md:px-10",children:ip(t.tabContent,r)})})})]},s))})}function ap({items:t,currentTabIndex:n,subitemColCount:r,onTabClick:i}){return e.jsxs("div",{className:"flex gap-10 px-5 py-20",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"flex min-w-[320px] gap-4 rounded-[20px] border-2 px-6 py-7 shadow-lg",children:[...new Array(Math.min(2,t.length))].map((r,o)=>{const s=Math.ceil(t.length/2);return e.jsx("div",{className:"flex flex-1 flex-col gap-4",children:t.slice(o*s,(o+1)*s).map((t,r)=>{const a=o*s+r;return e.jsx("button",{onClick:()=>i(a,t.anchorId||""),className:Ee("label1 whitespace-nowrap rounded-lg px-4 py-3 text-left",a===n?"bg-bg-inverse text-white":"text-text"),children:t.tabName},a)})},`tab-col-${o}`)})})}),e.jsx("div",{className:"w-full",children:t.map((t,i)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{opacity:0,y:20},animate:{opacity:i===n?1:0,y:i===n?0:20},exit:{opacity:0,y:-20},transition:{duration:.3},className:Ee("overflow-hidden pl-10 xl:pl-20",i===n?"block":"hidden"),id:t.anchorId||`tab-${i}`,children:ip(t.tabContent,r)})})},i))})]})}function lp({items:t,currentTabIndex:n,onTabClick:r}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto px-5 [-ms-overflow-style:none] [scrollbar-width:none] md:flex md:justify-center [&::-webkit-scrollbar]:hidden",children:e.jsx("div",{className:"flex w-max gap-10",children:t.map((t,i)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("py-2 whitespace-nowrap",i===n?"label1 border-b-2 border-border-focus-secondary":"body1"),children:t.tabName},i))})}),t.map((t,r)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:r===n?"auto":0,opacity:r===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},children:t.tabContent})})},r))]})}function cp({items:t,currentTabIndex:n,onTabClick:r}){return e.jsx(e.Fragment,{children:t.map((t,i)=>e.jsxs("div",{className:"py-5",children:[e.jsxs(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("w-full flex justify-between items-center px-4 py-5",i===n?"bg-bg-surface-active":""),children:[e.jsx("span",{className:"heading6",children:t.tabName}),e.jsx(qn,{name:i===n?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:48})]}),e.jsx(ui,{open:i===n,children:e.jsx("div",{className:Ee("px-4 py-4"),children:t.tabContent})})]},i))})}function up({items:t,currentTabIndex:n,onTabClick:r}){return e.jsxs("div",{className:"flex px-5 py-20",children:[e.jsx("div",{className:"rounded-surface-lg border border-border-secondary shadow-lg",children:e.jsx("div",{className:"flex min-w-80 flex-col gap-4 px-6 py-7",children:t.map((t,i)=>e.jsx(Nd,{showButtonAs:"unstyled",onClick:()=>r(i,t.anchorId),buttonClassName:Ee("px-4 py-3 whitespace-nowrap text-left rounded-button-sm",i===n?"label1 text-white bg-bg-inverse":"body1"),children:t.tabName},i))})}),e.jsx("div",{className:"grow",children:t.map((t,r)=>e.jsx("div",{children:e.jsx(bd,{children:e.jsx(ud.div,{initial:{height:0,opacity:0},animate:{height:r===n?"auto":0,opacity:r===n?1:0},exit:{height:0,opacity:0},transition:{duration:.3},children:t.tabContent})})},r))})]})}function dp(n){var r;const[i,o]=t.useState(0),[s,a]=t.useState(""),[l,c]=t.useState(2),{title:u,subTitle:d,tabs:p,navigationType:m=!0,mobileSidebarTabType:h=!0,dynamic:f=!1,isOrderedList:g=!1}=n,b=null!==(r=null==p?void 0:p.items)&&void 0!==r?r:[];t.useEffect(()=>{if("undefined"!=typeof window){a(window.location.hash);const e=()=>{a(window.location.hash)};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}}},[]),t.useEffect(()=>{var e;null===(e=null==p?void 0:p.items)||void 0===e||e.some((e,t)=>{if(`#${(null==e?void 0:e.anchorId)||"tab-"+t}`===s)return o(t),!0})},[p,s]),t.useEffect(()=>{if(!f)return;const e=()=>{if("undefined"==typeof window)return;const e=window.innerWidth;c(e<=640?2:e>750||e<=768?3:e<=1024?2:3)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[f]);const v=(e,t)=>{o(e),"undefined"!=typeof window&&s&&(window.location.hash=t||"")};return e.jsxs("div",{children:[u||d?e.jsxs("div",{className:"mb-8 mt-5 flex flex-col gap-5 md:gap-6",children:[u?e.jsx(er,{className:"heading2 px-5 md:heading1 md:text-center",children:u}):null,d?e.jsx(er,{className:"subheading3 px-5 md:subheading1 md:text-center",children:d}):null]}):null,f&&g?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden",children:h?e.jsx(op,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v}):e.jsx(sp,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v,setCurrentTabIndex:o})}),e.jsx("div",{className:"hidden lg:block",children:m?e.jsx(op,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v}):e.jsx(ap,{items:b,currentTabIndex:i,subitemColCount:l,onTabClick:v})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"md:hidden",children:h?e.jsx(lp,{items:b,currentTabIndex:i,onTabClick:v}):e.jsx(cp,{items:b,currentTabIndex:i,onTabClick:v})}),e.jsx("div",{className:"hidden md:block",children:m?e.jsx(lp,{items:b,currentTabIndex:i,onTabClick:v}):e.jsx(up,{items:b,currentTabIndex:i,onTabClick:v})})]})]})}const pp={closed:{opacity:0},open:{opacity:1}},mp={closed:{opacity:0,scale:.96},open:{opacity:1,scale:1}},hp={xs:"475px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px"};function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(null,arguments)}function gp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function bp(...e){return t=>e.forEach(e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t))}function vp(...e){return t.useCallback(bp(...e),e)}function xp(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const i=r.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}const yp=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},wp=l["useId".toString()]||(()=>{});let Cp=0;function Ip(e){const[t,n]=l.useState(wp());return yp(()=>{n(e=>null!=e?e:String(Cp++))},[e]),e||(t?`radix-${t}`:"")}function Np(e){const n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}function Ep({prop:e,defaultProp:n,onChange:r=()=>{}}){const[i,o]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[i]=r,o=t.useRef(i),s=Np(n);return t.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==e,a=s?e:i,l=Np(r);return[a,t.useCallback(t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)},[s,e,o,l])]}const Ap=t.forwardRef((e,n)=>{const{children:r,...i}=e,o=t.Children.toArray(r),s=o.find(Sp);if(s){const e=s.props.children,r=o.map(n=>n===s?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return t.createElement(jp,fp({},i,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(jp,fp({},i,{ref:n}),r)});Ap.displayName="Slot";const jp=t.forwardRef((e,n)=>{const{children:r,...i}=e;return t.isValidElement(r)?t.cloneElement(r,{...kp(i,r.props),ref:n?bp(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null});jp.displayName="SlotClone";const Tp=({children:e})=>t.createElement(t.Fragment,null,e);function Sp(e){return t.isValidElement(e)&&e.type===Tp}function kp(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const Pp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{const r=t.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?Ap:n;return t.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),t.createElement(s,fp({},o,{ref:r}))});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});const Rp="dismissableLayer.update",Bp="dismissableLayer.pointerDownOutside",Lp="dismissableLayer.focusOutside";let Op;const Gp=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=t.forwardRef((e,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,d=t.useContext(Gp),[p,m]=t.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,f]=t.useState({}),g=vp(n,e=>m(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(v),y=p?b.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,I=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e),i=t.useRef(!1),o=t.useRef(()=>{});return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){const t={originalEvent:e};function s(){Vp(Bp,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=s,n.addEventListener("click",o.current,{once:!0})):s()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));C&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())},h),N=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e),i=t.useRef(!1);return t.useEffect(()=>{const e=e=>{if(e.target&&!i.current){Vp(Lp,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())},h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Np(e);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[r,n])}(e=>{y===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),t.useEffect(()=>{if(p)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Op=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Dp(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Op)}},[p,h,i,d]),t.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Dp())},[p,d]),t.useEffect(()=>{const e=()=>f({});return document.addEventListener(Rp,e),()=>document.removeEventListener(Rp,e)},[]),t.createElement(Pp.div,fp({},u,{ref:g,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:gp(e.onFocusCapture,N.onFocusCapture),onBlurCapture:gp(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:gp(e.onPointerDownCapture,I.onPointerDownCapture)}))});function Dp(){const e=new CustomEvent(Rp);document.dispatchEvent(e)}function Vp(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}(o,s):o.dispatchEvent(s)}const Fp="focusScope.autoFocusOnMount",Hp="focusScope.autoFocusOnUnmount",Wp={bubbles:!1,cancelable:!0},Xp=t.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=t.useState(null),u=Np(o),d=Np(s),p=t.useRef(null),m=vp(n,e=>c(e)),h=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(i){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:Yp(p.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Yp(p.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Yp(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,l,h.paused]),t.useEffect(()=>{if(l){Up.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Fp,Wp);l.addEventListener(Fp,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yp(r,{select:t}),document.activeElement!==n)return}((e=zp(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Yp(l))}return()=>{l.removeEventListener(Fp,u),setTimeout(()=>{const e=new CustomEvent(Hp,Wp);l.addEventListener(Hp,d),l.dispatchEvent(e),e.defaultPrevented||Yp(null!=t?t:document.body,{select:!0}),l.removeEventListener(Hp,d),Up.remove(h)},0)}}var e},[l,u,d,h]);const f=t.useCallback(e=>{if(!r&&!i)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[i,o]=function(e){const t=zp(e),n=_p(t,e),r=_p(t.reverse(),e);return[n,r]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&Yp(o,{select:!0})):(e.preventDefault(),r&&Yp(i,{select:!0})):n===t&&e.preventDefault()}},[r,i,h.paused]);return t.createElement(Pp.div,fp({tabIndex:-1},a,{ref:m,onKeyDown:f}))});function zp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _p(e,t){for(const n of e)if(!Zp(n,{upTo:t}))return n}function Zp(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Yp(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Up=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Jp(e,t),e.unshift(t)},remove(t){var n;e=Jp(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Jp(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const $p=t.forwardRef((e,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...o}=e;return i?d.default.createPortal(t.createElement(Pp.div,fp({},o,{ref:n})),i):null});const Kp=e=>{const{present:n,children:r}=e,o=function(e){const[n,r]=t.useState(),o=t.useRef({}),s=t.useRef(e),a=t.useRef("none"),l=e?"mounted":"unmounted",[c,u]=function(e,n){return t.useReducer((e,t)=>{const r=n[e][t];return null!=r?r:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{const e=Qp(o.current);a.current="mounted"===c?e:"none"},[c]),yp(()=>{const t=o.current,n=s.current;if(n!==e){const r=a.current,i=Qp(t);if(e)u("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,u]),yp(()=>{if(n){const e=e=>{const t=Qp(o.current).includes(e.animationName);e.target===n&&t&&i.flushSync(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=Qp(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}(n),s="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=vp(o.ref,s.ref);return"function"==typeof r||o.isPresent?t.cloneElement(s,{ref:a}):null};function Qp(e){return(null==e?void 0:e.animationName)||"none"}Kp.displayName="Presence";let qp=0;function em(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var tm=function(){return tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},tm.apply(this,arguments)};function nm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var rm="right-scroll-bar-position",im="width-before-scroll-bar";function om(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var sm="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,am=new WeakMap;function lm(e,n){var r,i,o,s=(r=null,i=function(t){return e.forEach(function(e){return om(e,t)})},(o=t.useState(function(){return{value:r,callback:i,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=i,o.facade);return sm(function(){var t=am.get(s);if(t){var n=new Set(t),r=new Set(e),i=s.current;n.forEach(function(e){r.has(e)||om(e,null)}),r.forEach(function(e){n.has(e)||om(e,i)})}am.set(s,e)},[e]),s}function cm(e){return e}var um=function(e){var t=e.sideCar,n=nm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,tm({},n))};um.isSideCarExport=!0;var dm=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=cm);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return i}(null);return t.options=tm({async:!0,ssr:!1},e),t}(),pm=function(){},mm=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:pm,onWheelCapture:pm,onTouchMoveCapture:pm}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,f=e.inert,g=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,x=nm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=m,w=lm([n,t]),C=tm(tm({},x),i);return l.createElement(l.Fragment,null,d&&l.createElement(y,{sideCar:dm,removeScrollBar:u,shards:p,noIsolation:h,inert:f,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?l.cloneElement(l.Children.only(a),tm(tm({},C),{ref:w})):l.createElement(v,tm({},C,{className:c,ref:w}),a))});mm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mm.classNames={fullWidth:im,zeroRight:rm};function hm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var fm=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=hm())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gm=function(){var e,t=(e=fm(),function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},bm={left:0,top:0,right:0,gap:0},vm=function(e){return parseInt(e||"",10)||0},xm=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bm;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[vm(n),vm(r),vm(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ym=gm(),wm="data-scroll-locked",Cm=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(wm,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(rm," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(im," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(rm," .").concat(rm," {\n right: 0 ").concat(r,";\n }\n \n .").concat(im," .").concat(im," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(wm,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Im=function(){var e=parseInt(document.body.getAttribute(wm)||"0",10);return isFinite(e)?e:0},Nm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;l.useEffect(function(){return document.body.setAttribute(wm,(Im()+1).toString()),function(){var e=Im()-1;e<=0?document.body.removeAttribute(wm):document.body.setAttribute(wm,e.toString())}},[]);var o=l.useMemo(function(){return xm(i)},[i]);return l.createElement(ym,{styles:Cm(o,!t,i,n?"":"!important")})},Em=!1;if("undefined"!=typeof window)try{var Am=Object.defineProperty({},"passive",{get:function(){return Em=!0,!0}});window.addEventListener("test",Am,Am),window.removeEventListener("test",Am,Am)}catch(e){Em=!1}var jm=!!Em&&{passive:!1},Tm=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Sm=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),km(e,n)){var r=Pm(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},km=function(e,t){return"v"===e?function(e){return Tm(e,"overflowY")}(t):function(e){return Tm(e,"overflowX")}(t)},Pm=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Rm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bm=function(e){return[e.deltaX,e.deltaY]},Lm=function(e){return e&&"current"in e?e.current:e},Om=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Gm=0,Mm=[];var Dm,Vm=(Dm=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(Gm++)[0],o=l.useState(function(){return gm()})[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Lm),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=Rm(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Sm(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=Sm(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,a=t.contains(s),l=!1,c=o>0,u=0,d=0;do{var p=Pm(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&km(e,s)&&(u+=h,d+=m),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return c&&0===u?l=!0:c||0!==d||(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=l.useCallback(function(e){var n=e;if(Mm.length&&Mm[Mm.length-1]===o){var r="deltaY"in n?Bm(n):Rm(n),i=t.current.filter(function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(s.current.shards||[]).map(Lm).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=Rm(e),r.current=void 0},[]),p=l.useCallback(function(t){u(t.type,Bm(t),t.target,a(t,e.lockRef.current))},[]),m=l.useCallback(function(t){u(t.type,Rm(t),t.target,a(t,e.lockRef.current))},[]);l.useEffect(function(){return Mm.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,jm),document.addEventListener("touchmove",c,jm),document.addEventListener("touchstart",d,jm),function(){Mm=Mm.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,jm),document.removeEventListener("touchmove",c,jm),document.removeEventListener("touchstart",d,jm)}},[]);var h=e.removeScrollBar,f=e.inert;return l.createElement(l.Fragment,null,f?l.createElement(o,{styles:Om(i)}):null,h?l.createElement(Nm,{gapMode:"margin"}):null)},dm.useMedium(Dm),um),Fm=l.forwardRef(function(e,t){return l.createElement(mm,tm({},e,{ref:t,sideCar:Vm}))});Fm.classNames=mm.classNames;var Hm=new WeakMap,Wm=new WeakMap,Xm={},zm=0,_m=function(e){return e&&(e.host||_m(e.parentNode))},Zm=function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=_m(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Xm[n]||(Xm[n]=new WeakMap);var o=Xm[n],s=[],a=new Set,l=new Set(i),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Hm.get(e)||0)+1,c=(o.get(e)||0)+1;Hm.set(e,l),o.set(e,c),s.push(e),1===l&&i&&Wm.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),zm++,function(){s.forEach(function(e){var t=Hm.get(e)-1,i=o.get(e)-1;Hm.set(e,t),o.set(e,i),t||(Wm.has(e)||e.removeAttribute(r),Wm.delete(e)),i||e.removeAttribute(n)}),--zm||(Hm=new WeakMap,Hm=new WeakMap,Wm=new WeakMap,Xm={})}},Ym=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Zm(r,i,n,"aria-hidden")):function(){return null}};const Um="Dialog",[Jm,$m]=function(e,n=[]){let r=[];const i=()=>{const n=r.map(e=>t.createContext(e));return function(r){const i=(null==r?void 0:r[e])||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(n,i){const o=t.createContext(i),s=r.length;function a(n){const{scope:r,children:i,...a}=n,l=(null==r?void 0:r[e][s])||o,c=t.useMemo(()=>a,Object.values(a));return t.createElement(l.Provider,{value:c},i)}return r=[...r,i],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[e][s])||o,c=t.useContext(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},xp(i,...n)]}(Um),[Km,Qm]=Jm(Um),qm="DialogPortal",[eh,th]=Jm(qm,{forceMount:void 0}),nh="DialogOverlay",rh=t.forwardRef((e,n)=>{const r=th(nh,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qm(nh,e.__scopeDialog);return s.modal?t.createElement(Kp,{present:i||s.open},t.createElement(ih,fp({},o,{ref:n}))):null}),ih=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qm(nh,r);return t.createElement(Fm,{as:Ap,allowPinchZoom:!0,shards:[o.contentRef]},t.createElement(Pp.div,fp({"data-state":mh(o.open)},i,{ref:n,style:{pointerEvents:"auto",...i.style}})))}),oh="DialogContent",sh=t.forwardRef((e,n)=>{const r=th(oh,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qm(oh,e.__scopeDialog);return t.createElement(Kp,{present:i||s.open},s.modal?t.createElement(ah,fp({},o,{ref:n})):t.createElement(lh,fp({},o,{ref:n})))}),ah=t.forwardRef((e,n)=>{const r=Qm(oh,e.__scopeDialog),i=t.useRef(null),o=vp(n,r.contentRef,i);return t.useEffect(()=>{const e=i.current;if(e)return Ym(e)},[]),t.createElement(ch,fp({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gp(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:gp(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:gp(e.onFocusOutside,e=>e.preventDefault())}))}),lh=t.forwardRef((e,n)=>{const r=Qm(oh,e.__scopeDialog),i=t.useRef(!1),o=t.useRef(!1);return t.createElement(ch,fp({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;(null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented)||(i.current||null===(s=r.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());i.current=!1,o.current=!1},onInteractOutside:t=>{var n,s;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target;(null===(s=r.triggerRef.current)||void 0===s?void 0:s.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),ch=t.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=Qm(oh,r),c=vp(n,t.useRef(null));return t.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:em()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:em()),qp++,()=>{1===qp&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),qp--}},[]),t.createElement(t.Fragment,null,t.createElement(Xp,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s},t.createElement(Mp,fp({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":mh(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),uh="DialogTitle",dh="DialogClose",ph=t.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qm(dh,r);return t.createElement(Pp.button,fp({type:"button"},i,{ref:n,onClick:gp(e.onClick,()=>o.onOpenChange(!1))}))});function mh(e){return e?"open":"closed"}!function(e,n){const r=t.createContext(n);function i(e){const{children:n,...i}=e,o=t.useMemo(()=>i,Object.values(i));return t.createElement(r.Provider,{value:o},n)}i.displayName=e+"Provider"}("DialogTitleWarning",{contentName:oh,titleName:uh,docsSlug:"dialog"});const hh=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=t.useRef(null),c=t.useRef(null),[u=!1,d]=Ep({prop:i,defaultProp:o,onChange:s});return t.createElement(Km,{scope:n,triggerRef:l,contentRef:c,contentId:Ip(),titleId:Ip(),descriptionId:Ip(),open:u,onOpenChange:d,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),modal:a},r)},fh=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Qm(qm,n);return t.createElement(eh,{scope:n,forceMount:r},t.Children.map(i,e=>t.createElement(Kp,{present:r||s.open},t.createElement($p,{asChild:!0,container:o},e))))},gh=rh,bh=sh,vh=ph,xh=t=>{const{isOpen:n,onRequestClose:r,size:i,title:o,content:s,description:a,children:l,bodyClassName:c,type:u="modal",index:d=0,fieldProps:p}=t;return e.jsx(hh,{open:n,onOpenChange:()=>n&&(null==r?void 0:r()),children:e.jsxs(fh,{children:[e.jsx(ud.div,{initial:"closed",animate:n?"open":"closed",variants:pp,transition:{type:"tween",duration:.2,ease:"easeInOut"},className:"fixed inset-0 z-[1000] bg-scrim-bg-modal",children:e.jsx(gh,{})}),e.jsx("div",{className:"pointer-events-none fixed inset-0 z-[1001] flex items-center justify-center",children:e.jsx(ud.div,{initial:"closed",animate:n?"open":"closed",variants:mp,transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"pointer-events-auto w-[calc(100vw-10px)] focus:outline-none sm:w-[calc(100vw-90px)]",children:e.jsx(bh,{onOpenAutoFocus:e=>e.preventDefault(),className:Ee("relative mx-auto w-full overflow-hidden rounded-[24px] shadow-drop focus:outline-none",!/(^|\s)bg-/.test(null!=c?c:"")&&"bg-bg",!/(^|\s)p-/.test(null!=c?c:"")&&"p-[25px]",c),style:{maxWidth:hp[i||"lg"]},children:e.jsxs("div",{"data-section-type":u,"data-section-index":d,children:[e.jsx(vh,{asChild:!0,children:e.jsx(Nd,{showButtonAs:"unstyled",buttonClassName:"absolute right-0 top-0 z-10 mr-2 mt-2",children:e.jsx(qn,{name:"close"})})}),e.jsxs("div",{className:"custom-modal-body max-h-[85vh] overflow-y-auto scroll-smooth [overflow-x:clip] [scrollbar-color:rgba(0,0,0,0.2)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/30 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5",children:[o?e.jsx(er,{className:Ee("mb-3 mt-5 w-full pr-8 text-center sm:pr-0","heading5 md:pt-0","mb-4 md:mb-[60px]"),as:"h2",...null==p?void 0:p.title,children:o}):null,a?e.jsx(er,{as:"div",className:"mb-8 sm:mb-5",...null==p?void 0:p.description,children:a}):null,e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-5",...null==p?void 0:p.content,children:[s,l||null]})]})]})})})})]})})},yh=({children:t,background:n,className:r,fill:i="yellow",maxFit:o,show:s=!0,path:a="path2"})=>{const l=`${a}`,c={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},u={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},d="string"==typeof n&&n in u,p=d?u[n]:void 0,m=n&&!d?{background:n}:void 0,h=i in c?c[i]:"text-[#F5FF1E]";return s?e.jsxs("div",{className:`shared-component-backgound-wrapper shape-bg relative overflow-hidden ${null!=r?r:""} ${o?"max-content":""} ${null!=p?p:m?"":"bg-white"}`,style:m,children:["path1"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2371px] z-0 translate-x-[-55%] ${l} fill-current ${h}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[45.8px] z-0 translate-x-[-101%] ${l} fill-current ${h}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-2600px] z-0 translate-x-[-55%] ${l} fill-current ${h}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===a&&e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-1/2 top-[-1966.1px] z-0 translate-x-[-48%] ${l} fill-current ${h}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path5"===a&&e.jsxs(e.Fragment,{children:[e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-0 top-0 z-0 block md:hidden ${l} fill-current ${h}`,width:"367",height:"644",viewBox:"0 0 367 644",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M-2083.1 549.586C-1857.78 764.836 -1656.5 828.759 -1081.83 673.557C-539.683 527.203 347.968 344.365 364.89 7.43135C381.862 -193.724 210.008 -373.544 84.6305 -523.879C-1.85227 -620.854 -81.806 -706.094 -164.9 -802.494C-192.25 -834.002 -242.154 -805.661 -229.077 -765.61C-160.659 -556.59 -149.205 -385.975 -240.751 -214.056C-386.348 97.8893 -1020.17 305.621 -1399.44 344.278C-1800.65 392.049 -2033.89 187.954 -2210.22 -76.0251C-2301.18 -219.67 -2360.21 -374.3 -2388.99 -518.696C-2397.38 -561.352 -2458.78 -559.193 -2463.58 -515.969C-2501.97 -175.709 -2310.97 298.878 -2083.31 550.316"})}),e.jsx("svg",{className:`shape-bg-svg pointer-events-none absolute left-0 top-0 z-0 hidden md:block ${l} fill-current ${h}`,width:"367",height:"448",viewBox:"0 0 367 448",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M-2083.1 549.587C-1857.78 764.837 -1656.5 828.759 -1081.83 673.557C-539.682 527.203 347.968 344.365 364.89 7.43156C381.863 -193.724 210.008 -373.543 84.6307 -523.879C-1.85203 -620.854 -81.8058 -706.094 -164.9 -802.494C-192.249 -834.001 -242.154 -805.661 -229.077 -765.609C-160.658 -556.59 -149.205 -385.975 -240.751 -214.056C-386.348 97.8895 -1020.17 305.621 -1399.44 344.278C-1800.65 392.049 -2033.89 187.954 -2210.22 -76.0249C-2301.18 -219.669 -2360.21 -374.3 -2388.99 -518.696C-2397.38 -561.352 -2458.78 -559.193 -2463.58 -515.969C-2501.97 -175.709 -2310.97 298.879 -2083.31 550.317"})})]}),e.jsx("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e.jsx("div",{className:`shared-component-backgound-wrapper ${null!=r?r:""} ${null!=p?p:""}`,style:m,children:t})},wh=e=>`?page=${e}`,Ch=({currentPage:t,totalPages:n,onPageChange:r,getPageHref:i=wh,ariaLabel:o="Pagination"})=>{const s=function(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);if(e<=4)return[1,2,3,4,5,"...",t];if(e>=t-3)return[1,"...",t-4,t-3,t-2,t-1,t];return[1,"...",e-1,e,e+1,"...",t]}(t,n),a="inline-flex items-center justify-center w-9 h-9 rounded-full bg-transparent cursor-pointer transition-colors duration-150 hover:border-text-brand hover:text-text-brand",l="opacity-40 pointer-events-none";return e.jsxs("nav",{className:"flex items-center justify-center gap-1 px-6 pb-12","aria-label":o,children:[e.jsx(ir,{href:1===t?"#":i(t-1),className:`${a} ${1===t?l:""}`,"aria-label":"Go to previous page","aria-disabled":1===t,tabIndex:1===t?-1:void 0,onClick:e=>{1!==t?null==r||r(t-1):e.preventDefault()},children:e.jsx(qn,{name:"chevron_left",size:32,"aria-hidden":"true"})}),s.map((n,o)=>"..."===n?e.jsx("span",{className:"inline-flex h-9 w-9 cursor-default items-center justify-center text-body2 text-gray-500","aria-hidden":"true",children:"…"},`ellipsis-${o}`):e.jsx(ir,{href:i(n),className:"inline-flex items-center justify-center w-9 h-9 rounded-lg text-body2 text-gray-700 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-100 hover:text-gray-900 "+(n===t?"bg-bg-surface-active font-bold hover:bg-bg-gray-300":""),"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,onClick:()=>null==r?void 0:r(n),children:n},n)),e.jsx(ir,{href:t===n?"#":i(t+1),className:`${a} ${t===n?l:""}`,"aria-label":"Go to next page","aria-disabled":t===n,tabIndex:t===n?-1:void 0,onClick:e=>{t!==n?null==r||r(t+1):e.preventDefault()},children:e.jsx(qn,{name:"chevron_right",size:32,"aria-hidden":"true"})})]})};function Ih(e){return Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ih(e)}function Nh(e){var t=function(e,t){if("object"!=Ih(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ih(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ih(t)?t:t+""}function Eh(e,t,n){return(t=Nh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach(function(t){Eh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Th(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sh(e,t){if(e){if("string"==typeof e)return Th(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Th(e,t):void 0}}function kh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||Sh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ph(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Rh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Bh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nh(r.key),r)}}function Lh(e,t){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lh(e,t)}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oh(e)}function Gh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gh=function(){return!!e})()}function Mh(e,t){if(t&&("object"==Ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dh(e){return function(e){if(Array.isArray(e))return Th(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vh=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Fh="-ms-",Hh="-moz-",Wh="-webkit-",Xh="comm",zh="rule",_h="decl",Zh="@keyframes",Yh=Math.abs,Uh=String.fromCharCode,Jh=Object.assign;function $h(e){return e.trim()}function Kh(e,t,n){return e.replace(t,n)}function Qh(e,t){return e.indexOf(t)}function qh(e,t){return 0|e.charCodeAt(t)}function ef(e,t,n){return e.slice(t,n)}function tf(e){return e.length}function nf(e){return e.length}function rf(e,t){return t.push(e),e}var of=1,sf=1,af=0,lf=0,cf=0,uf="";function df(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:of,column:sf,length:s,return:""}}function pf(e,t){return Jh(df("",null,null,"",null,null,0),e,{length:-e.length},t)}function mf(){return cf=lf>0?qh(uf,--lf):0,sf--,10===cf&&(sf=1,of--),cf}function hf(){return cf=lf<af?qh(uf,lf++):0,sf++,10===cf&&(sf=1,of++),cf}function ff(){return qh(uf,lf)}function gf(){return lf}function bf(e,t){return ef(uf,e,t)}function vf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xf(e){return of=sf=1,af=tf(uf=e),lf=0,[]}function yf(e){return uf="",e}function wf(e){return $h(bf(lf-1,Nf(91===e?e+2:40===e?e+1:e)))}function Cf(e){for(;(cf=ff())&&cf<33;)hf();return vf(e)>2||vf(cf)>3?"":" "}function If(e,t){for(;--t&&hf()&&!(cf<48||cf>102||cf>57&&cf<65||cf>70&&cf<97););return bf(e,gf()+(t<6&&32==ff()&&32==hf()))}function Nf(e){for(;hf();)switch(cf){case e:return lf;case 34:case 39:34!==e&&39!==e&&Nf(cf);break;case 40:41===e&&Nf(e);break;case 92:hf()}return lf}function Ef(e,t){for(;hf()&&e+cf!==57&&(e+cf!==84||47!==ff()););return"/*"+bf(t,lf-1)+"*"+Uh(47===e?e:hf())}function Af(e){for(;!vf(ff());)hf();return bf(e,lf)}function jf(e){return yf(Tf("",null,null,null,[""],e=xf(e),0,[0],e))}function Tf(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x="",y=i,w=o,C=r,I=x;g;)switch(h=v,v=hf()){case 40:if(108!=h&&58==qh(I,d-1)){-1!=Qh(I+=Kh(wf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:I+=wf(v);break;case 9:case 10:case 13:case 32:I+=Cf(h);break;case 92:I+=If(gf()-1,7);continue;case 47:switch(ff()){case 42:case 47:rf(kf(Ef(hf(),gf()),t,n),l);break;default:I+="/"}break;case 123*f:a[c++]=tf(I)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(I=Kh(I,/\f/g,"")),m>0&&tf(I)-d&&rf(m>32?Pf(I+";",r,n,d-1):Pf(Kh(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(rf(C=Sf(I,t,n,c,u,i,a,x,y=[],w=[],d),o),123===v)if(0===u)Tf(I,t,C,C,y,o,d,a,w);else switch(99===p&&110===qh(I,3)?100:p){case 100:case 108:case 109:case 115:Tf(e,C,C,r&&rf(Sf(e,C,C,0,0,i,a,x,i,y=[],d),w),i,w,d,a,r?y:w);break;default:Tf(I,C,C,C,[""],w,0,a,w)}}c=u=m=0,f=b=1,x=I="",d=s;break;case 58:d=1+tf(I),m=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==mf())continue;switch(I+=Uh(v),v*f){case 38:b=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(tf(I)-1)*b,b=1;break;case 64:45===ff()&&(I+=wf(hf())),p=ff(),u=d=tf(x=I+=Af(gf())),v++;break;case 45:45===h&&2==tf(I)&&(f=0)}}return o}function Sf(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],m=nf(p),h=0,f=0,g=0;h<r;++h)for(var b=0,v=ef(e,d+1,d=Yh(f=s[h])),x=e;b<m;++b)(x=$h(f>0?p[b]+" "+v:Kh(v,/&\f/g,p[b])))&&(l[g++]=x);return df(e,t,n,0===i?zh:a,l,c,u)}function kf(e,t,n){return df(e,t,n,Xh,Uh(cf),ef(e,2,-2),0)}function Pf(e,t,n,r){return df(e,t,n,_h,ef(e,0,r),ef(e,r+1,-1),r)}function Rf(e,t){for(var n="",r=nf(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Bf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _h:return e.return=e.return||e.value;case Xh:return"";case Zh:return e.return=e.value+"{"+Rf(e.children,r)+"}";case zh:e.value=e.props.join(",")}return tf(n=Rf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lf(e){var t=nf(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}var Of="undefined"!=typeof document,Gf=function(e,t,n){for(var r=0,i=0;r=i,i=ff(),38===r&&12===i&&(t[n]=1),!vf(i);)hf();return bf(e,lf)},Mf=function(e,t){return yf(function(e,t){var n=-1,r=44;do{switch(vf(r)){case 0:38===r&&12===ff()&&(t[n]=1),e[n]+=Gf(lf-1,t,n);break;case 2:e[n]+=wf(r);break;case 4:if(44===r){e[++n]=58===ff()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Uh(r)}}while(r=hf());return e}(xf(e),t))},Df=new WeakMap,Vf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Df.get(n))&&!r){Df.set(e,!0);for(var i=[],o=Mf(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},Ff=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hf(e,t){switch(function(e,t){return 45^qh(e,0)?(((t<<2^qh(e,0))<<2^qh(e,1))<<2^qh(e,2))<<2^qh(e,3):0}(e,t)){case 5103:return Wh+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wh+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wh+e+Hh+e+Fh+e+e;case 6828:case 4268:return Wh+e+Fh+e+e;case 6165:return Wh+e+Fh+"flex-"+e+e;case 5187:return Wh+e+Kh(e,/(\w+).+(:[^]+)/,Wh+"box-$1$2"+Fh+"flex-$1$2")+e;case 5443:return Wh+e+Fh+"flex-item-"+Kh(e,/flex-|-self/,"")+e;case 4675:return Wh+e+Fh+"flex-line-pack"+Kh(e,/align-content|flex-|-self/,"")+e;case 5548:return Wh+e+Fh+Kh(e,"shrink","negative")+e;case 5292:return Wh+e+Fh+Kh(e,"basis","preferred-size")+e;case 6060:return Wh+"box-"+Kh(e,"-grow","")+Wh+e+Fh+Kh(e,"grow","positive")+e;case 4554:return Wh+Kh(e,/([^-])(transform)/g,"$1"+Wh+"$2")+e;case 6187:return Kh(Kh(Kh(e,/(zoom-|grab)/,Wh+"$1"),/(image-set)/,Wh+"$1"),e,"")+e;case 5495:case 3959:return Kh(e,/(image-set\([^]*)/,Wh+"$1$`$1");case 4968:return Kh(Kh(e,/(.+:)(flex-)?(.*)/,Wh+"box-pack:$3"+Fh+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wh+e+e;case 4095:case 3583:case 4068:case 2532:return Kh(e,/(.+)-inline(.+)/,Wh+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tf(e)-1-t>6)switch(qh(e,t+1)){case 109:if(45!==qh(e,t+4))break;case 102:return Kh(e,/(.+:)(.+)-([^]+)/,"$1"+Wh+"$2-$3$1"+Hh+(108==qh(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qh(e,"stretch")?Hf(Kh(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qh(e,t+1))break;case 6444:switch(qh(e,tf(e)-3-(~Qh(e,"!important")&&10))){case 107:return Kh(e,":",":"+Wh)+e;case 101:return Kh(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wh+(45===qh(e,14)?"inline-":"")+"box$3$1"+Wh+"$2$3$1"+Fh+"$2box$3")+e}break;case 5936:switch(qh(e,t+11)){case 114:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wh+e+Fh+Kh(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wh+e+Fh+e+e}return e}var Wf,Xf,zf,_f=Of?void 0:(Wf=function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(){return{}})},Xf=new WeakMap,function(e){if(Xf.has(e))return Xf.get(e);var t=Wf(e);return Xf.set(e,t),t}),Zf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _h:e.return=Hf(e.value,e.length);break;case Zh:return Rf([pf(e,{value:Kh(e.value,"@","@"+Wh)})],r);case zh:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rf([pf(e,{props:[Kh(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Rf([pf(e,{props:[Kh(t,/:(plac\w+)/,":"+Wh+"input-$1")]}),pf(e,{props:[Kh(t,/:(plac\w+)/,":-moz-$1")]}),pf(e,{props:[Kh(t,/:(plac\w+)/,Fh+"input-$1")]})],r)}return""})}}],Yf=function(e){var t=e.key;if(Of&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Zf,s={},a=[];Of&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c=[Vf,Ff];if(_f){var u=[Bf],d=Lf(c.concat(o,u)),p=_f(o)(t),m=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=Rf(jf(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};i=function(e,t,n,r){var i=t.name,o=m(e,t);return void 0===b.compat?(r&&(b.inserted[i]=!0),o):r?void(b.inserted[i]=o):o}}else{var h,f=[Bf,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Lf(c.concat(o,f));i=function(e,t,n,r){h=n,Rf(jf(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Vh({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(a),b},Uf={exports:{}},Jf={};var $f,Kf,Qf,qf,eg={};
|
|
18
18
|
/** @license React v16.13.1
|
|
19
19
|
* react-is.development.js
|
|
20
20
|
*
|