1/*! For license information please see commons-b7ff57f73c8840297c98.js.LICENSE.txt */ 2(self.webpackChunkconiagas=self.webpackChunkconiagas||[]).push([[223],{160:function(e,t,n){"use strict";n.d(t,{Ac:function(){return l},FX:function(){return v},v6:function(){return p},XX:function(){return c},cq:function(){return f}});var r=n(6540);function i(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var o,s,a=n(5897),l=((s=l||{})[s.None=0]="None",s[s.RenderStrategy=1]="RenderStrategy",s[s.Static=2]="Static",s),u=((o=u||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:l}){l=null!=l?l:h;let u=m(t,e);if(o)return d(u,n,r,s,l);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return d(t,n,r,s,l)}if(1&c){let{unmount:e=!0,...t}=u;return(0,a.Y)(e?0:1,{0(){return null},1(){return d({...t,hidden:!0,style:{display:"none"}},n,r,s,l)}})}return d(u,n,r,s,l)}function d(e,t={},n,o,s){let{as:a=n,children:l,refName:u="ref",...c}=y(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){h["data-headlessui-state"]=n.join(" ");for(let e of n)h[`data-${e}`]=""}}if(a===r.Fragment&&(Object.keys(g(c)).length>0||Object.keys(g(h)).length>0)){if((0,r.isValidElement)(f)&&!(Array.isArray(f)&&f.length>1)){let e=f.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>i(t(...e),c.className):i(t,c.className),o=n?{className:n}:{},a=m(f.props,g(y(c,["ref"])));for(let r in h)r in a&&delete h[r];return(0,r.cloneElement)(f,Object.assign({},a,h,d,{ref:s(f.ref,d.ref)},o))}if(Object.keys(g(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(g(c)).concat(Object.keys(g(h))).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"))}return(0,r.createElement)(a,Object.assign({},y(c,["ref"]),a!==r.Fragment&&d,a!==r.Fragment&&h),f)}function f(){let e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}function h(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function m(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function p(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function v(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function y(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}},1612:function(e,t,n){"use strict";n.d(t,{Ng:function(){return o},TW:function(){return r},mD:function(){return i}});const r=e=>e?.ownerDocument??document,i=e=>{if(e&&"window"in e&&e.window===e)return e;return r(e).defaultView||window};function o(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},1681:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(6540),i=n(4755);const o={primary:"bg-primary text-white border-2 border-primary","primary-outlined":"border-2 border-primary text-primary",secondary:"bg-secondary text-white border-2 border-secondary",tertiary:"bg-white"};function s(e){let{children:t,className:n,external:s=!1,type:a,href:l}=e;return r.createElement("div",{className:`${o[a]} size-fit whitespace-nowrap rounded-lg text-center hover:shadow-button ${n}`},s&&r.createElement("a",{className:"block px-6 py-4",href:l,target:"_blank",rel:"noreferrer"},t),!s&&r.createElement(i.Link,{className:"block px-6 py-4",to:l},t))}},2157:function(e,t,n){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{Fr:function(){return i},un:function(){return r}})},2211:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(9851);function i(e){return r._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},2225:function(e,t,n){"use strict";n.d(t,{k5:function(){return f}});var r=n(6540),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),s=["attr","size","title"];function a(){return a=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},a.apply(null,arguments)}function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return e&&e.map((e,t)=>r.createElement(e.tag,u({key:t},e.attr),d(e.child)))}function f(e){return t=>r.createElement(h,a({attr:u({},e.attr)},t),d(e.child))}function h(e){var t=t=>{var n,{attr:i,size:o,title:l}=e,c=function(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}(e,s),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},2232:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.useI18next=void 0;var i=r(n(4634)),o=n(2389),s=n(6540),a=n(4794),l=n(3064),u=n(3773);t.useI18next=function(e,t){var n=(0,o.useTranslation)(e,t),r=n.i18n,c=n.t,d=n.ready,f=(0,s.useContext)(l.I18nextContext),h=f.routed,m=f.defaultLanguage,p=f.generateDefaultLanguagePage,v=function(e){return p||e!==m?"/"+e:""};return(0,i.default)({},f,{i18n:r,t:c,ready:d,navigate:function(e,t){var n=v(f.language),r=h?""+n+e:""+e;return(0,a.navigate)(r,t)},changeLanguage:function(e,t,n){var r=""+v(e)+(t||function(e){if(!h)return e;var t=e.indexOf("/",1);return e.substring(t)}(window.location.pathname))+window.location.search;return localStorage.setItem(u.LANGUAGE_KEY,e),(0,a.navigate)(r,n)}})}},2599:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(2924);function i(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return(0,r._)(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=i();return e(t),this.add(()=>t.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}},2903:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(6540),i=n(2924),o=n(5015);function s(e){let t=(0,o._)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,i._)(()=>{n.current&&t()})}),[t])}},2924:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{_:function(){return r}})},3149:function(e,t,n){"use strict";n.d(t,{El:function(){return l},O_:function(){return a},Uw:function(){return s}});var r=n(6540);let i=(0,r.createContext)(null);i.displayName="OpenClosedContext";var o,s=((o=s||{})[o.Open=1]="Open",o[o.Closed=2]="Closed",o[o.Closing=4]="Closing",o[o.Opening=8]="Opening",o);function a(){return(0,r.useContext)(i)}function l({value:e,children:t}){return r.createElement(i.Provider,{value:e},t)}},3514:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.Link=void 0;var i=r(n(4634)),o=r(n(4893)),s=function(e,t){if(!t&&e&&e.__esMo
2dule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(6540)),a=n(3064),l=n(4794),u=n(3773),c=["language","to","onClick"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f=s.default.forwardRef(function(e,t){var n=e.language,r=e.to,d=e.onClick,f=(0,o.default)(e,c),h=(0,s.useContext)(a.I18nextContext),m=n||h.language,p=""+function(e){return h.generateDefaultLanguagePage||e!==h.defaultLanguage?"/"+e:""}(m)+r;return s.default.createElement(l.Link,(0,i.default)({},f,{to:p,innerRef:t,hrefLang:m,onClick:function(e){n&&localStorage.setItem(u.LANGUAGE_KEY,n),d&&d(e)}}))});t.Link=f},3643:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(){var e="undefined"!=typeof globalThis?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch(function(e){return console.error("Failed to yield to main: ",e),new Promise(function(e){return setTimeout(e,0)})}):new Promise(function(e){return setTimeout(e,0)})}function a(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")},a=function(e){r().setItem(n,JSON.stringify(e))},l=function(){var t=e.timeToLive?1e3*e.timeToLive:null,n=o(),r=(new Date).getTime();return Object.fromEntries(Object.entries(n).filter(function(e){var n=i(e,2)[1];return!(!n||void 0===n.timestamp)&&(!t||n.timestamp+t>=r)}))};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return s().then(function(){var r=l(),i=r[JSON.stringify(e)];return a(r),i?i.value:t().then(function(e){return n.miss(e).then(function(){return e})})})},set:function(e,t){return s().then(function(){var i=o();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(n,JSON.stringify(i)),t})},delete:function(e){return s().then(function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function l(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return i(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch(function(){return l({caches:t}).get(e,r,i)})},set:function(e,r){return n.set(e,r).catch(function(){return l({caches:t}).set(e,r)})},delete:function(e){return n.delete(e).catch(function(){return l({caches:t}).delete(e)})}
2,clear:function(){return n.clear().catch(function(){return l({caches:t}).clear()})}}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=r(),a=i&&i.miss||function(){return Promise.resolve()};return s.then(function(e){return a(e)}).then(function(){return s})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function d(e,t){return t?(Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e):e}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(n[i++])})}var h={WithinQueryParameters:0,WithinHeaders:1};function m(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])}),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3},v=1,g=2,y=3;function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function w(e){return"string"==typeof e?{protocol:"https",url:e,accept:p.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var b="GET",E="POST";function M(e,t){return Promise.all(t.map(function(t){return e.get(t,function(){return Promise.resolve(x(t))})})).then(function(e){var n=e.filter(function(e){return function(e){return e.status===v||Date.now()-e.lastUpdate>12e4}(e)}),r=e.filter(function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)}),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map(function(e){return w(e)}):t}})}function L(e,t,r,i){var s=[],a=function(e,t){if(e.method!==b&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach(function(e){var t=r[e];i[e.toLowerCase()]=t}),i}(e,i),u=r.method,c=r.method!==b?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),c),i.queryParameters),f=0,h=function t(n,o){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:N(s)};var h={data:a,headers:l,method:u,url:P(c,r.path,d),connectTimeout:o(f,e.timeouts.connect),responseTimeout:o(f,i.timeout)},m=function(e){var t={request:h,response:e,host:c,triesLeft:n.length};return s.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=m(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",C(i)),e.hostsCache.set(c,x(c,r.isTimedOut?y:g))]).then(function(){return t(n,o)})},onFail:function(e){throw m(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,N(s))}};return e.requester.send(h).then(function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)})};return M(e.hostsCache,t).then(function(e){return h(o(e.statelessHosts).reverse(),e.getTimeout)})}function T(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function P(e,t,n){var r=S(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function S(e){return Object.keys(e).map(function(t){return f("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n}).join("&")}function N(e){return e.map(function(e){return C(e)})}function C(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var D=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===h.WithinHeaders?r:{}},queryParameters:function(){return e===h.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:h.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,u=e.hosts,c=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:c,hosts:u.map(function(e){return w(e)}),read:function(e,t){var n=m(t,d.timeouts.read),r=function(){return L(d,d.hosts.filter(function(e){return 0!=(e.accept&p.Read)}),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,function(){return d.requestsCache.get(o,function(){return d.requestsCache.set(o,r()).then(function(e){return Promise.all([d.requestsCache.delete(o),e])},function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])}).then(function(e){var t=i(e,2);return t[0],t[1]})})},{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return L(d,d.hosts.filter(function(e){return 0!=(e.accept&p.Write)}),e,m(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return d({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then(function(){})}},e.methods)},j=function(e){return function(t,n){return t.method===b?e.transporter.read(t,n):e.transporter.write(t,n)}},A=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},k=function(e){return function(t,r){var i=t.map(function(e){return n(n({},e),{},{params:S(e.params||{})})});return e.transporter.read({method:E,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},O=function(e){return function(t,i){return Promise.all(t.map(function(t){var o=t.params,s=o.facetName,a=o.facetQuery,l=r(o,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:R}}).searchForFacetValues(s,a,n(n({},i),l))}))}},I=function(e){return function(t,n,r){return e.transporter.read({method:E,path:f("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},F=function(e){return function(t,n){return e.transporter.read({method:E,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},R=function(e){return function(t,n,r){return e.transporter.read({method:E,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},V=1,z=2,B=3,U=function(e){return function(t,r){var i=t.map(function(e){return n(n({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:E,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},r)}};function Y(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var n=new XMLHttpRequest;
2n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])});var r,i=function(e,r){return setTimeout(function(){n.abort(),t({status:0,content:r,isTimedOut:!0})},1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},logger:(i=B,{debug:function(e,t){return V>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return z>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:l({caches:[a({key:"".concat("4.26.0","-").concat(e)}),u()]}),userAgent:T("4.26.0").add({segment:"Browser",version:"lite"}),authMode:h.WithinQueryParameters};return D(n(n(n({},o),r),{},{methods:{search:k,searchForFacetValues:O,multipleQueries:k,multipleSearchForFacetValues:O,customRequest:j,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:F,searchForFacetValues:R,findAnswers:I}})}},getRecommendations:U}}))}return Y.version="4.26.0",Y}()},3674:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(6540),i=n(2599),o=n(4424);function s(e,t,n=!0){let s=(0,o.Y)(e=>{let n=e.getBoundingClientRect();0===n.x&&0===n.y&&0===n.width&&0===n.height&&t()});(0,r.useEffect)(()=>{if(!n)return;let t=null===e?null:e instanceof HTMLElement?e:e.current;if(!t)return;let r=(0,i.e)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>s.current(t));e.observe(t),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>s.current(t));e.observe(t),r.add(()=>e.disconnect())}return()=>r.dispose()},[e,s,n])}},3678:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(6540);var i=n(6339),o=n(2599);function s(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}var a=n(2157);function l(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let u=function(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(e){return r.add(e),()=>r.delete(e)},dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,o.e)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:l(n)},i=[(0,a.un)()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,o.e)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,s=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),o=e.querySelector(i);o&&!r(o)&&(s=o)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{},s(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];
2i.forEach(({before:e})=>null==e?void 0:e(r)),i.forEach(({after:e})=>null==e?void 0:e(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function c(e,t,n=()=>({containers:[]})){let o=(l=u,(0,r.useSyncExternalStore)(l.subscribe,l.getSnapshot,l.getSnapshot)),s=e?o.get(e):void 0,a=!!s&&s.count>0;var l;return(0,i.s)(()=>{if(e&&t)return u.dispatch("PUSH",e,n),()=>u.dispatch("POP",e,n)},[t,e]),a}function d(e,t,n=()=>[document.body]){c(e,t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}u.subscribe(()=>{let e=u.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&u.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&u.dispatch("TEARDOWN",n)}})},4e3:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return a}});var r,i=n(6540),o=n(5074),s=((r=s||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function a(){let e=(0,i.useRef)(0);return(0,o.M)("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},4032:function(e,t,n){"use strict";n.d(t,{i:function(){return a},x:function(){return l}});var r=n(6540),i=n(9528),o=n(5015),s=n(4156);function a({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var a;let l=(0,r.useRef)(null!=(a=null==n?void 0:n.current)?a:null),u=(0,s.g)(l),c=(0,o._)(()=>{var n,r,i;let o=[];for(let t of e)null!==t&&(t instanceof HTMLElement?o.push(t):"current"in t&&t.current instanceof HTMLElement&&o.push(t.current));if(null!=t&&t.current)for(let e of t.current)o.push(e);for(let e of null!=(n=null==u?void 0:u.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(l.current)||e.contains(null==(i=null==(r=l.current)?void 0:r.getRootNode())?void 0:i.host)||o.some(t=>e.contains(t))||o.push(e));return o}
2);return{resolveContainers:c,contains:(0,o._)(e=>c().some(t=>t.contains(e))),mainTreeNodeRef:l,MainTreeNode:(0,r.useMemo)(()=>function(){return null!=n?null:r.createElement(i.j,{features:i.u.Hidden,ref:l})},[l,n])}}function l(){let e=(0,r.useRef)(null);return{mainTreeNodeRef:e,MainTreeNode:(0,r.useMemo)(()=>function(){return r.createElement(i.j,{features:i.u.Hidden,ref:e})},[e])}}},4122:function(e,t,n){"use strict";n.d(t,{BD:function(){return l},Bm:function(){return h},CU:function(){return y},MZ:function(){return f},Me:function(){return u},iq:function(){return d},pW:function(){return p},wl:function(){return g}});var r=n(5897),i=n(2211);let o=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),s=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var a,l=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(l||{}),u=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(u||{}),c=((a=c||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);function d(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(o)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var f=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(f||{});function h(e,t=0){var n;return e!==(null==(n=(0,i.T)(e))?void 0:n.body)&&(0,r.Y)(t,{0(){return e.matches(o)},1(){let t=e;for(;null!==t;){if(t.matches(o))return!0;t=t.parentElement}return!1}})}var m=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(m||{});function p(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let v=["textarea","input"].join(",");function g(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?g(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):d(e);i.length>0&&a.length>1&&(a=a.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:o.activeElement;let l,u=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,m=a.length;do{if(h>=m||h+m<=0)return 0;let e=c+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}l=a[e],null==l||l.focus(f),h+=u}while(l!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,v))&&n}(l)&&l.select(),2}},4156:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(6540),i=n(2211);function o(...e){return(0,r.useMemo)(()=>(0,i.T)(...e),[...e])}},4335:function(e,t,n){"use strict";var r;n.d(t,{g:function(){return s}});var i=n(6540),o=n(9851);function s(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(r||(r=n.t(i,2)))(()=>()=>{},()=>!1,()=>!e)}(),[t,s]=i.useState(o._.isHandoffComplete);return t&&!1===o._.isHandoffComplete&&s(!1),i.useEffect(()=>{!0!==t&&s(!0)},[t]),i.useEffect(()=>o._.handoff(),[]),!e&&t}},4424:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(6540),i=n(6339);function o(e){let t=(0,r.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},4586:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r,i=((r=i||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},4610:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(6540),i=n(6339);function o(){let e=(0,r.useRef)(!1);return(0,i.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},4743:function(e,t,n){"use strict";n.d(t,{BN:function(){return h},Ej:function(){return p},UU:function(){return m},cY:function(){return f},we:function(){return d}});var r=n(6885),i=n(6540),o=n(961),s="undefined"!=typeof document?i.useLayoutEffect:function(){};function a(e,t){if(e===t)return!0;
2if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!a(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=l(e);return Math.round(t*n)/n}function c(e){const t=i.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:h,floating:m}={},transform:p=!0,whileElementsMounted:v,open:g}=e,[y,x]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,b]=i.useState(d);a(w,d)||b(d);const[E,M]=i.useState(null),[L,T]=i.useState(null),P=i.useCallback(e=>{e!==D.current&&(D.current=e,M(e))},[]),S=i.useCallback(e=>{e!==j.current&&(j.current=e,T(e))},[]),N=h||E,C=m||L,D=i.useRef(null),j=i.useRef(null),A=i.useRef(y),k=null!=v,O=c(v),I=c(f),F=c(g),R=i.useCallback(()=>{if(!D.current||!j.current)return;const e={placement:t,strategy:n,middleware:w};I.current&&(e.platform=I.current),(0,r.rD)(D.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==F.current};V.current&&!a(A.current,t)&&(A.current=t,o.flushSync(()=>{x(t)}))})},[w,t,n,I,F]);s(()=>{!1===g&&A.current.isPositioned&&(A.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[g]);const V=i.useRef(!1);s(()=>(V.current=!0,()=>{V.current=!1}),[]),s(()=>{if(N&&(D.current=N),C&&(j.current=C),N&&C){if(O.current)return O.current(N,C,R);R()}},[N,C,R,O,k]);const z=i.useMemo(()=>({reference:D,floating:j,setReference:P,setFloating:S}),[P,S]),B=i.useMemo(()=>({reference:N,floating:C}),[N,C]),U=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=u(B.floating,y.x),r=u(B.floating,y.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,p,B.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:R,refs:z,elements:B,floatingStyles:U}),[y,R,z,B,U])}const f=(e,t)=>{const n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{const n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{const n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>{const n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}}},4755:function(e,t,n){e.exports=n(9384)},4867:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6540),i=n(2211),o=n(6992),s=n(5015);function a({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,a]=(0,r.useState)(!1),l=(0,o.L)(),u=(0,s._)(()=>{t.current=null,a(!1),l.dispose()}),c=(0,s._)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let n=(0,i.T)(e.currentTarget);l.addEventListener(n,"pointerup",u,!1),l.addEventListener(n,"pointermove",e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);a(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),l.addEventListener(n,"pointercancel",u,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},4876:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(6540);function i(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,i)=>{let o=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,r.useCallback)((t,n,r,i)=>{let o=e.current.get(r)?.fn||r;t.removeEventListener(n,o,i),e.current.delete(r)},[]),i=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}},5015:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(6540),i=n(4424);let o=function(e){let t=(0,i.Y)(e);return r.useCallback((...e)=>t.current(...e),[t])}},5074:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(6540),i=n(4424);function o(e,t,n){let o=(0,i.Y)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},5128:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(6540);const i=n(8288).B?r.useLayoutEffect:r.useEffect},5446:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});const r=(0,n(6540).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},5897:function(e,t,n){"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}n.d(t,{Y:function(){return r}})},6153:function(e,t,n){"use strict";n.d(t,{A:function(){return Le}});var r=n(6540),i=n(8335),o=n(8602),s=n(1223),a=n(4755),l=n(6723),u=n(8068),c=n(4867),d=n(6339);function f(e,t=!1){let n=null===e?null:"current"in e?e.current:e,[i,o]=(0,r.useReducer)(()=>({}),{}),s=(0,r.useMemo)(()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(n),[n,i]);return(0,d.s)(()=>
2{if(!n)return;let e=new ResizeObserver(o);return e.observe(n),()=>{e.disconnect()}},[n]),t?{width:`${s.width}px`,height:`${s.height}px`}:s}var h=n(5015),m=n(8084),p=n(4424),v=n(3674),g=n(8367),y=n(4156),x=n(9821),w=n(4032),b=n(3678),E=n(8975),M=n(4e3),L=n(7442),T=n(8689),P=n(4743),S=n(6885),N=n(6992);let C=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});C.displayName="FloatingContext";let D=(0,r.createContext)(null);function j(){return(0,r.useContext)(C).setReference}function A(){let{getFloatingProps:e,slot:t}=(0,r.useContext)(C);return(0,r.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function k(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,r.useContext)(D),n=(0,r.useMemo)(()=>e,[JSON.stringify(e,"undefined"!=typeof HTMLElement?(e,t)=>t instanceof HTMLElement?t.outerHTML:t:void 0)]);(0,d.s)(()=>{null==t||t(null!=n?n:null)},[t,n]);let i=(0,r.useContext)(C);return(0,r.useMemo)(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}D.displayName="PlacementContext";function O({children:e,enabled:t=!0}){let[n,i]=(0,r.useState)(null),[o,s]=(0,r.useState)(0),a=(0,r.useRef)(null),[l,u]=(0,r.useState)(null);!function(e){(0,d.s)(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=e.style.maxHeight;parseFloat(t)!==parseInt(t)&&(e.style.maxHeight=`${Math.ceil(parseFloat(t))}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(l);let c=t&&null!==n&&null!==l,{to:f="bottom",gap:m=0,offset:p=0,padding:v=0,inner:g}=function(e,t){var n,r,i;let o=I(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),s=I(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),a=I(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}(n,l),[y,x="center"]=f.split(" ");(0,d.s)(()=>{c&&s(0)},[c]);let{refs:w,floatingStyles:b,context:E}=(0,T.we)({open:c,placement:"selection"===y?"center"===x?"bottom":`bottom-${x}`:"center"===x?`${y}`:`${y}-${x}`,strategy:"absolute",transform:!1,middleware:[(0,P.cY)({mainAxis:"selection"===y?0:m,crossAxis:p}),(0,P.BN)({padding:v}),"selection"!==y&&(0,P.UU)({padding:v}),"selection"===y&&g?(0,T.vW)({...g,padding:v,overflowRef:a,offset:o,minItemsVisible:4,referenceOverflowThreshold:v,onFallbackChange(e){var t,n;if(!e)return;let r=E.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,o=Math.min(4,r.childElementCount),a=0,l=0;for(let s of null!=(n=null==(t=E.elements.floating)?void 0:t.childNodes)?n:[])if(s instanceof HTMLElement){let e=s.offsetTop,t=e+s.clientHeight+i,n=r.scrollTop,u=n+r.clientHeight;if(!(e>=n&&t<=u)){l=Math.max(0,Math.min(t,u)-Math.max(e,n)),a=s.clientHeight;break}o--}o>=1&&s(e=>{let t=a*o-l+i;return e>=t?e:t})}}):null,(0,P.Ej)({padding:v,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:S.ll}),[M=y,L=x]=E.placement.split("-");"selection"===y&&(M="selection");let N=(0,r.useMemo)(()=>({anchor:[M,L].filter(Boolean).join(" ")}),[M,L]),j=(0,T.Zx)(E,{overflowRef:a,onChange:s}),{getReferenceProps:A,getFloatingProps:k}=(0,T.bv)([j]),O=(0,h._)(e=>{u(e),w.setFloating(e)});return r.createElement(D.Provider,{value:i},r.createElement(C.Provider,{value:{setFloating:O,setReference:w.setReference,styles:b,getReferenceProps:A,getFloatingProps:k,slot:N}},e))}function I(e,t,n=void 0){let i=(0,N.L)(),o=(0,h._)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=R(e,t);return[r,n=>{let o=F(e);{let s=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));i.requestAnimationFrame(function a(){i.nextFrame(a);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let u=R(e,t);r!==u&&(n(u),r=u)})}return i.dispose}]}return[n,null]}),s=(0,r.useMemo)(()=>o(e,t)[0],[e,t]),[a=s,l]=(0,r.useState)();return(0,d.s)(()=>{let[n,r]=o(e,t);if(l(n),r)return r(l)},[e,t]),a}function F(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];
2let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...F(r)]:[n]}return[]}function R(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}var V=n(9528),z=n(3149);function B(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var U=n(4122),Y=n(5897),W=n(2211),H=n(160),G=n(4586),_=n(8302),$=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($||{}),Q=(e=>(e[e.TogglePopover=0]="TogglePopover",e[e.ClosePopover=1]="ClosePopover",e[e.SetButton=2]="SetButton",e[e.SetButtonId=3]="SetButtonId",e[e.SetPanel=4]="SetPanel",e[e.SetPanelId=5]="SetPanelId",e))(Q||{});let X={0:e=>({...e,popoverState:(0,Y.Y)(e.popoverState,{0:1,1:0}),__demoMode:!1}),1(e){return 1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1}},2(e,t){return e.button===t.button?e:{...e,button:t.button}},3(e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},4(e,t){return e.panel===t.panel?e:{...e,panel:t.panel}},5(e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},q=(0,r.createContext)(null);function K(e){let t=(0,r.useContext)(q);if(null===t){let t=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}
2q.displayName="PopoverContext";let Z=(0,r.createContext)(null);function J(e){let t=(0,r.useContext)(Z);if(null===t){let t=new Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,J),t}return t}Z.displayName="PopoverAPIContext";let ee=(0,r.createContext)(null);function te(){return(0,r.useContext)(ee)}ee.displayName="PopoverGroupContext";let ne=(0,r.createContext)(null);function re(e,t){return(0,Y.Y)(t.type,X,e,t)}ne.displayName="PopoverPanelContext";let ie=H.Ac.RenderStrategy|H.Ac.Static;let oe=H.Ac.RenderStrategy|H.Ac.Static;let se=(0,H.FX)(function(e,t){var n;let{__demoMode:i=!1,...o}=e,s=(0,r.useRef)(null),a=(0,E.P)(t,(0,E.a)(e=>{s.current=e})),l=(0,r.useRef)([]),u=(0,r.useReducer)(re,{__demoMode:i,popoverState:i?0:1,buttons:l,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,r.createRef)(),afterPanelSentinel:(0,r.createRef)()}),[{popoverState:c,button:d,buttonId:f,panel:v,panelId:x,beforePanelSentinel:b,afterPanelSentinel:M},T]=u,P=(0,y.g)(null!=(n=s.current)?n:d),S=(0,r.useMemo)(()=>{if(!d||!v)return!1;for(let s of document.querySelectorAll("body > *"))if(Number(null==s?void 0:s.contains(d))^Number(null==s?void 0:s.contains(v)))return!0;let e=(0,U.iq)(),t=e.indexOf(d),n=(t+e.length-1)%e.length,r=(t+1)%e.length,i=e[n],o=e[r];return!v.contains(i)&&!v.contains(o)},[d,v]),N=(0,p.Y)(f),C=(0,p.Y)(x),D=(0,r.useMemo)(()=>({buttonId:N,panelId:C,close:()=>T({type:1})}),[N,C,T]),j=te(),A=null==j?void 0:j.registerPopover,k=(0,h._)(()=>{var e;return null!=(e=null==j?void 0:j.isFocusWithinPopoverGroup())?e:(null==P?void 0:P.activeElement)&&((null==d?void 0:d.contains(P.activeElement))||(null==v?void 0:v.contains(P.activeElement)))});(0,r.useEffect)(()=>null==A?void 0:A(D),[A,D]);let[I,F]=(0,_.k2)(),R=(0,w.i)({mainTreeNodeRef:null==j?void 0:j.mainTreeNodeRef,portals:I,defaultContainers:[d,v]});(0,m.M)(null==P?void 0:P.defaultView,"focus",e=>{var t,n,r,i;e.target!==window&&e.target instanceof HTMLElement&&0===c&&(k()||d&&v&&(R.contains(e.target)||null!=(n=null==(t=b.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(i=null==(r=M.current)?void 0:r.contains)&&i.call(r,e.target)||T({type:1})))},!0),(0,g.j)(R.resolveContainers,(e,t)=>{T({type:1}),(0,U.Bm)(t,U.MZ.Loose)||(e.preventDefault(),null==d||d.focus())},0===c);let V=(0,h._)(e=>{T({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:d:d;null==t||t.focus()}),B=(0,r.useMemo)(()=>({close:V,isPortalled:S}),[V,S]),W=(0,r.useMemo)(()=>({open:0===c,close:V}),[c,V]),G={ref:a};return r.createElement(O,null,r.createElement(ne.Provider,{value:null},r.createElement(q.Provider,{value:u},r.createElement(Z.Provider,{value:B},r.createElement(L.e,{value:V},r.createElement(z.El,{value:(0,Y.Y)(c,{0:z.Uw.Open,1:z.Uw.Closed})},r.createElement(F,null,(0,H.XX)({ourProps:G,theirProps:o,slot:W,defaultTag:"div",name:"Popover"}),r.createElement(R.MainTreeNode,null))))))))}),ae=(0,H.FX)(function(e,t){let n=(0,r.useId)(),{id:i=`headlessui-popover-button-${n}`,disabled:o=!1,autoFocus:s=!1,...a}=e,[d,f]=K("Popover.Button"),{isPortalled:m}=J("Popover.Button"),p=(0,r.useRef)(null),v=`headlessui-focus-sentinel-${(0,r.useId)()}`,g=te(),w=null==g?void 0:g.closeOthers,b=null!==(0,r.useContext)(ne);(0,r.useEffect)(()=>{if(!b)return f({type:3,buttonId:i}),()=>{f({type:3,buttonId:null})}},[b,i,f]);let[L]=(0,r.useState)(()=>Symbol()),T=(0,E.P)(p,t,j(),b?null:e=>{if(e)d.buttons.current.push(L);else{let e=d.buttons.current.indexOf(L);-1!==e&&d.buttons.current.splice(e,1)}d.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&f({type:2,button:e})}),P=(0,E.P)(p,t),S=(0,y.g)(p),N=(0,h._)(e=>{var t,n,r;if(b){if(1===d.popoverState)return;switch(e.key){case G.D.Space:case G.D.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),f({type:1}),null==(r=d.button)||r.focus()}}else switch(e.key){case G.D.Space:case G.D.Enter:e.preventDefault(),e.stopPropagation(),1===d.popoverState&&(null==w||w(d.buttonId)),f({type:0});break;case G.D.Escape:if(0!==d.popoverState)return null==w?void 0:w(d.buttonId);if(!p.current||null!=S&&S.activeElement&&!p.current.contains(S.activeElement))return;e.preventDefault(),e.stopPropagation(),f({type:1})}}),C=(0,h._)(e=>{b||e.key===G.D.Space&&e.preventDefault()}),D=(0,h._)(e=>{var t,n;B(e.currentTarget)||o||(b?(f({type:1}
2),null==(t=d.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),1===d.popoverState&&(null==w||w(d.buttonId)),f({type:0}),null==(n=d.button)||n.focus()))}),A=(0,h._)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:k,focusProps:O}=(0,l.o)({autoFocus:s}),{isHovered:I,hoverProps:F}=(0,u.M)({isDisabled:o}),{pressed:R,pressProps:z}=(0,c.Z)({disabled:o}),W=0===d.popoverState,_=(0,r.useMemo)(()=>({open:W,active:R||W,disabled:o,hover:I,focus:k,autofocus:s}),[W,I,k,R,o,s]),$=(0,x.c)(e,p),Q=b?(0,H.v6)({ref:P,type:$,onKeyDown:N,onClick:D,disabled:o||void 0,autoFocus:s},O,F,z):(0,H.v6)({ref:T,id:d.buttonId,type:$,"aria-expanded":0===d.popoverState,"aria-controls":d.panel?d.panelId:void 0,disabled:o||void 0,autoFocus:s,onKeyDown:N,onKeyUp:C,onClick:D,onMouseDown:A},O,F,z),X=(0,M.u)(),q=(0,h._)(()=>{let e=d.panel;e&&(0,Y.Y)(X.current,{[M.O.Forwards]:()=>(0,U.CU)(e,U.BD.First),[M.O.Backwards]:()=>(0,U.CU)(e,U.BD.Last)})===U.Me.Error&&(0,U.CU)((0,U.iq)().filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,Y.Y)(X.current,{[M.O.Forwards]:U.BD.Next,[M.O.Backwards]:U.BD.Previous}),{relativeTo:d.button})});return r.createElement(r.Fragment,null,(0,H.XX)({ourProps:Q,theirProps:a,slot:_,defaultTag:"button",name:"Popover.Button"}),W&&!b&&m&&r.createElement(V.j,{id:v,features:V.u.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:q}))}),le=(0,H.FX)(function(e,t){let n=(0,r.useId)(),{id:i=`headlessui-popover-overlay-${n}`,...o}=e,[{popoverState:s},a]=K("Popover.Overlay"),l=(0,E.P)(t),u=(0,z.O_)(),c=null!==u?(u&z.Uw.Open)===z.Uw.Open:0===s,d=(0,h._)(e=>{if(B(e.currentTarget))return e.preventDefault();a({type:1})}),f=(0,r.useMemo)(()=>({open:0===s}),[s]);return(0,H.XX)({ourProps:{ref:l,id:i,"aria-hidden":!0,onClick:d},theirProps:o,slot:f,defaultTag:"div",features:ie,visible:c,name:"Popover.Overlay"})}),ue=(0,H.FX)(function(e,t){let n=(0,r.useId)(),{id:i=`headlessui-popover-panel-${n}`,focus:o=!1,anchor:s,portal:a=!1,modal:l=!1,...u}=e,[c,m]=K("Popover.Panel"),{close:p,isPortalled:g}=J("Popover.Panel"),x=`headlessui-focus-sentinel-before-${n}`,w=`headlessui-focus-sentinel-after-${n}`,L=(0,r.useRef)(null),T=function(e){return(0,r.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(s),[P,S]=k(T),N=A();T&&(a=!0);let C=(0,E.P)(L,t,T?P:null,e=>{m({type:4,panel:e})}),D=(0,y.g)(L),j=(0,H.cq)();(0,d.s)(()=>(m({type:5,panelId:i}),()=>{m({type:5,panelId:null})}),[i,m]);let O=(0,z.O_)(),I=null!==O?(O&z.Uw.Open)===z.Uw.Open:0===c.popoverState;(0,v.O)(c.button,()=>m({type:1}),I),(0,b.K)(D,!c.__demoMode&&(l&&I));let F=(0,h._)(e=>{var t;if(e.key===G.D.Escape){if(0!==c.popoverState||!L.current||null!=D&&D.activeElement&&!L.current.contains(D.activeElement))return;e.preventDefault(),e.stopPropagation(),m({type:1}),null==(t=c.button)||t.focus()}});(0,r.useEffect)(()=>{var t;e.static||1===c.popoverState&&(null==(t=e.unmount)||t)&&m({type:4,panel:null})},[c.popoverState,e.unmount,e.static,m]),(0,r.useEffect)(()=>{if(c.__demoMode||!o||0!==c.popoverState||!L.current)return;let e=null==D?void 0:D.activeElement;L.current.contains(e)||(0,U.CU)(L.current,U.BD.First)},[c.__demoMode,o,L,c.popoverState]);let R=(0,r.useMemo)(()=>({open:0===c.popoverState,close:p}),[c,p]),B=(0,H.v6)(T?N():{},{ref:C,id:i,onKeyDown:F,onBlur:o&&0===c.popoverState?e=>{var t,n,r,i,o;let s=e.relatedTarget;s&&L.current&&(null!=(t=L.current)&&t.contains(s)||(m({type:1}),(null!=(r=null==(n=c.beforePanelSentinel.current)?void 0:n.contains)&&r.call(n,s)||null!=(o=null==(i=c.afterPanelSentinel.current)?void 0:i.contains)&&o.call(i,s))&&s.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...S,"--button-width":f(c.button,!0).width}}),W=(0,M.u)(),$=(0,h._)(()=>{let e=L.current;e&&(0,Y.Y)(W.current,{[M.O.Forwards]:()=>{var t;(0,U.CU)(e,U.BD.First)===U.Me.Error&&(null==(t=c.afterPanelSentinel.current)||t.focus())},[M.O.Backwards]:()=>{var e;null==(e=c.button)||e.focus({preventScroll:!0})}})}),Q=(0,h._)(()=>{let e=L.current;e&&(0,Y.Y)(W.current,{[M.O.Forwards]:()=>{var e;if(!c.button)return;let t=(0,U.iq)(),n=t.indexOf(c.button),r=t.slice(0,n+1),i=[...t.slice(n+1),...r];for(let o of i.slice())if("true"===o.dataset.headlessuiFocusGuard||null!=(e=c.panel)&&e.contains(o)){let e=i.indexOf(o);-1!==e&&i.splice(e,1)}(0,U.CU)(i,U.BD.First,{sorted:!1})},[M.O.Backwards]:()=>{var t;(0,U.CU)(e,U.BD.Previous)===U.Me.Error&&(null==(t=c.button)||t.focu
2s())}})});return r.createElement(ne.Provider,{value:i},r.createElement(Z.Provider,{value:{close:p,isPortalled:g}},r.createElement(_.ZL,{enabled:!!a&&(e.static||I)},I&&g&&r.createElement(V.j,{id:x,ref:c.beforePanelSentinel,features:V.u.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$}),(0,H.XX)({mergeRefs:j,ourProps:B,theirProps:u,slot:R,defaultTag:"div",features:oe,visible:I,name:"Popover.Panel"}),I&&g&&r.createElement(V.j,{id:w,ref:c.afterPanelSentinel,features:V.u.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:Q}))))}),ce=(0,H.FX)(function(e,t){let n=(0,r.useRef)(null),i=(0,E.P)(n,t),[o,s]=(0,r.useState)([]),a=(0,w.x)(),l=(0,h._)(e=>{s(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),u=(0,h._)(e=>(s(t=>[...t,e]),()=>l(e))),c=(0,h._)(()=>{var e;let t=(0,W.T)(n);if(!t)return!1;let r=t.activeElement;return!(null==(e=n.current)||!e.contains(r))||o.some(e=>{var n,i;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId.current))?void 0:i.contains(r))})}),d=(0,h._)(e=>{for(let t of o)t.buttonId.current!==e&&t.close()}),f=(0,r.useMemo)(()=>({registerPopover:u,unregisterPopover:l,isFocusWithinPopoverGroup:c,closeOthers:d,mainTreeNodeRef:a.mainTreeNodeRef}),[u,l,c,d,a.mainTreeNodeRef]),m=(0,r.useMemo)(()=>({}),[]),p=e,v={ref:i};return r.createElement(ee.Provider,{value:f},(0,H.XX)({ourProps:v,theirProps:p,slot:m,defaultTag:"div",name:"Popover.Group"}),r.createElement(a.MainTreeNode,null))}),de=Object.assign(se,{Button:ae,Overlay:le,Panel:ue,Group:ce});var fe=n(9332),he=n(1681),me=n(3643),pe=n.n(me),ve=n(6202);const ge=500;function ye(){const{t:e}=(0,a.useTranslation)(),[t,n]=r.useState([]),l=r.useRef(null),[u,c]=r.useState(),[d,f]=r.useState(!1),h=e=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{m(e)},ge)},m=async e=>{try{const t=pe()("5AEJDREGWR","e97bd673e7a42351b966ddad1cbbb3f7"),{results:r}=await t.search([{query:e,indexName:"Posts",params:{hitsPerPage:10}}]);n(r[0].hits)}catch(t){n([]),console.log(t)}};return r.createElement("div",{className:"flex items-center"},r.createElement("div",{onClick:()=>f(!0),className:"cursor-pointer p-1 transition-all hover:text-primary",role:"presentation"},r.createElement(s.Cap,{className:"size-5"})),r.createElement(o.N,null,d&&r.createElement(fe.lG,{static:!0,className:"relative z-50",open:d,onClose:()=>(f(!1),c(null),void n([]))},r.createElement(i.P.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-start justify-center pt-28"},r.createElement(fe.Lj,{as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative w-full max-w-screen-sm rounded-2xl px-5 md:px-10"},r.createElement("div",{className:"mb-2 flex items-center gap-5 rounded-lg bg-white px-6 py-4"},r.createElement("input",{onChange:async e=>{const{value:t}=e.target;c(t),h(t)},className:"w-full text-black outline-none placeholder:text-black",placeholder:e("header.searchPlaceholder")}),r.createElement(s.Cap,{className:"size-5"})),r.createElement("div",{className:"max-h-[70vh] overflow-hidden overflow-y-auto rounded-lg bg-white md:max-h-[50vh]"},!u&&r.createElement(ve.VY,{className:"px-6 py-4"},e("header.searchDescription")),u&&!(null!=t&&t.length)&&r.createElement(ve.VY,{className:"px-6 py-4"},e("header.searchNoResults")," '",u,"'"),u&&(null==t?void 0:t.map((e,t)=>{var n,i;return e?r.createElement(a.Link,{key:t,to:`/news/${e.year}/${e.slug}`,className:"block cursor-pointer px-6 py-8 hover:bg-tertiary/10"},r.createElement("p",{className:"mb-2"},e.title),(null===(n=e._snippetResult)||void 0===n||null===(i=n.content)||void 0===i?void 0:i.value)&&r.createElement("p",{className:"text-sm",dangerouslySetInnerHTML:{__html:e._snippetResult.content.value}})):null}))))))))}var xe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOTEuNDEgODEuMTMiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZmZmO30uY2xzLTJ7ZmlsbDojYjFjM2NkO30uY2xzLTN7ZmlsbDojMzA0NDRlO30uY2xzLTR7ZmlsbDojYWUxOTFkO308L3N0eWxlPjwvZGVmcz48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTIzMy41LDY1LjMySDE4LjFBMTguMTIsMTguMTIsMCwwLDEsMCw0Ny4yMlYxOC4xQTE4LjEyLDE4LjEyLDAsMCwxLDE4LjEsMEgyMzMuNWExOC4xMiwxOC4xMiwwLDAsMSwxOC4xLDE4LjFWNDcuMjJBMTguMTIsMTguMTIsMCwwLDEsMjMzLjUsNjUuMzJaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMjU3LjQ4LDE5LjA4aC01Ljg3di0xQTE4LjEyLDE4LjEyLDAsMCwwLDIzMy41MSwwSDE4LjExQTE4LjEyLDE4LjEyLDAsMCwwLDAsMTguMVY0Ny4yMmExOC4xMiwxOC4xMiwwLDAsMCwxOC4xLDE4LjFoMjE1LjRhMTguMTIsMTguMTIsMCwwLDAsMTguMS0xOC4xdi0xaDUuODdhMy40NSwzLjQ1LDAsMCwwLDMuNTgtMy4zVjIyLjM4QTMuNDUsMy40NSwwLDAsMCwyNTcuNDgsMTkuMDhaTTI0NS42LDQ3LjIyYTEyLjEyLDEyLjEyLDAsMCwxLTEyLjEsMTIuMUgxOC4xQTEyLjEyLDEyLjEyLDAsMCwxLDYsNDcuMjJWMTguMUExMi4xMiwxMi4xMiwwLDAsMSwxOC4xLDZIMjMzLjVhMTIuMTIsMTIuMTIsMCwwLDEsMTIuMSwxMi4xWiIvPjxwYXRoIGQ9Ik0zOS4wNiwyNy42OGE3Ljg1LDcuODUsMCwwLDAtNS44OC0yLjZjLTQuNjQsMC03LjUyLDMuMzItNy41Miw3LjkyLDAsNC44NCwzLjE2LDcuODQsNy41Miw3Ljg0YTcuNjEsNy42MSwwLDAsMCw2LjQtMy4yOGw2LjgsMS43NmExNC4zOSwxNC4zOSwwLDAsMS0xMy4yLDguMjRBMTQuMjgsMTQuMjgsMCwwLDEsMTguNjYsMzMsMTQuMjgsMTQuMjgsMCwwLDEsMzMuMTgsMTguNDQsMTQuNDEsMTQuNDEsMCwwLDEsNDUuOSwyNS44OFoiLz48cGF0aCBkPSJNNjIuMzQsMTguNDRBMTQuMzEsMTQuMzEsMCwwLDEsNzYuOSwzM2ExNC41NCwxNC41NCwwLDEsMS0yOS4wOCwwQTE0LjI4LDE0LjI4LDAsMCwxLDYyLjM0LDE4LjQ0Wm0wLDIyLjQ4YzQuNTYsMCw3LjU2LTMuMjQsNy41Ni03Ljkycy0zLTcuOTItNy41Ni03LjkyLTcuNTIsMy4yLTcuNTIsNy45MlM1Ny44Miw0MC45Miw2Mi4zNCw0MC45MloiLz48cGF0aCBkPSJNMTA1Ljg2LDE5VjQ3SDk5LjU0bC01LjcyLTcuOGMtMi41Ni0zLjUyLTYuMzItOC44NC02LjM2LTguODRoMHMwLDQuMzIsMCwxMC40NFY0N0g4MC43NFYxOWg2LjMybDYsOGMxLjgsMi40LDYuMDgsOC40NCw2LjEyLDguNDRoMHMwLTUsMC0xMFYxOVoiLz48cGF0aCBkPSJNMTExLjc0LDQ3VjE5aDYuNzJWNDdaIi8+PHBhdGggZD0iTTE0MC43NCw0Mi42SDEyOS42NmwtMS42LDQuNGgtNy4yNEwxMzIsMTloNi4zNmwxMS4yLDI4aC03LjI0Wm0tMi4xNi01Ljg4LTItNS40NGMtLjYtMS42LTEuMzItNC4xMi0xLjM2LTQuMTJoMHMtLjc2LDIuNTItMS4zNiw0LjEybC0yLDUuNDRaIi8+PHBhdGggZD0iTTE3MS43LDQ0LjcyYy0xLjY0LDEuNzYtNC44NCwyLjg0LTcuNiwyLjg0QTE0LjI4LDE0LjI4LDAsMCwxLDE0OS41OCwzM2ExNC41NSwxNC41NSwwLDAsMSwyNy4yNC03LjEyTDE3MCwyNy42OGE3LjkxLDcuOTEsMCwwLDAtNS44OC0yLjZjLTQuNjQsMC03LjUyLDMuMzItNy41Miw3LjkyLDAsNC45MiwzLjMyLDgsNy45Miw4czYuNDQtMi4zMiw3LjI0LTQuNHYwaC03LjM2di01LjRoMTMuMDhWNDdIMTcxLjdjMC0xLjg0LDAtMi4yNCwwLTIuMjhaIi8+PHBhdGggZD0iTTE5OS43OCw0Mi42SDE4OC43TDE4Ny4xLDQ3aC03LjI0bDExLjItMjhoNi4zNmwxMS4yLDI4aC03LjI0Wm0tMi4xNi01Ljg4LTItNS40NGMtLjYtMS42LTEuMzItNC4xMi0xLjM2LTQuMTJoMHMtLjc2LDIuNTItMS4zNiw0LjEybC0yLDUuNDRaIi8+PHBhdGggZD0iTTIyNC43NCwyNy44OGE0LjkyLDQuOTIsMCwwLDAtNC44NC0zLjY0Yy0yLDAtMy4xNiwxLTMuMTYsMi4xMiwwLDEuODQsMi44LDIuNTIsNi4yLDMuNzYsNC4xNiwxLjUyLDguNTIsMy44OCw4LjUyLDguNjgsMCw1LjEyLTQuNCw4Ljc2LTEwLjkyLDguNzZhMTIsMTIsMCwwLDEtMTEuODQtOC40OGw2LjQ0LTEuNzJhNi4wNyw2LjA3LDAsMCwwLDUuNjgsNC4yNGMyLjQsMCwzLjUyLTEuMTIsMy41Mi0yLjQ4LDAtMi4yNC0zLjI4LTIuOC03LjI4LTQuMzItMy4zNi0xLjI4LTcuMjQtMy4xMi03LjI0LTgsMC00LjM2LDQuNC04LjMyLDEwLjQ4LTguMzJhMTEuMTMsMTEuMTMsMCwwLDEsMTAuOTIsNy42OFoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik02MC4zOCw3MS45aDQuMjNhMy4yOSwzLjI5LDAsMCwxLDIuMzguODEsMi4wNywyLjA3LDAsMCwxLC42MiwxLjU1djBhMi4xMSwyLjExLDAsMCwxLTEuMiwyLDIuMjIsMi4yMiwwLDAsMSwxLjcsMi4yNHYwYzAsMS42Ni0xLjM1LDIuNS0zLjQxLDIuNUg2MC4zN1Y3MS45Wm01LjI0LDIuNjljMC0uNi0uNDctLjk0LTEuMzEtLjk0aC0ydjEuOTJoMS44NWMuODgsMCwxLjQ0LS4yOSwxLjQ0LTF2MFptLTEsMi42NUg2Mi4zNHYyaDIuMzhjLjg4LDAsMS40Mi0uMzEsMS40Mi0xdjBDNjYuMTMsNzcuNjIsNjUuNjcsNzcuMjQsNjQuNjUsNzcuMjRaIi8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNNzMuOTMsNzEuODRoMS44NUw3OS42OCw4MUg3Ny41OWwtLjgzLTJINzIuOTFsLS44MywySDcwWk03Niw3Ny4xOWwtMS4yMS0zLTEuMjEsM1oiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik04My4wOCw3My43NUg4MC4zMVY3MS45aDcuNTR2MS44NUg4NS4wOFY4MWgtMlY3My43NVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik05Mi41NCw3My43NUg4OS43N1Y3MS45aDcuNTR2MS44NUg5NC41NFY4MWgtMlY3My43NVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik05OS44OCw3MS45aDYuODZ2MS43OGgtNC44OHYxLjg1aDQuMjl2MS43OGgtNC4yOXYxLjkxaDQuOTRWODFIOTkuODdWNzEuOVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0xMDkuNjMsNzEuOWg0LjE2YTMuNjUsMy42NSwwLDAsMSwyLjY1LjkyLDIuODUsMi44NSwwLDAsMSwuNzgsMi4wOHYwYTIuODIsMi44MiwwLDAsMS0yLDIuODJMMTE3LjQ5LDgxaC0yLjM0bC0yLTIuOTFoLTEuNTdWODFoLTJWNzEuOVptNCw0LjQyYzEsMCwxLjUzLS41MiwxLjUzLTEuMjl2MGMwLS44Ni0uNi0xLjMtMS41Ny0xLjNoLTJ2Mi42MWgyWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTEyMi4zLDc3
2LjQxbC0zLjUtNS41MWgyLjM0bDIuMTcsMy42NSwyLjIxLTMuNjVoMi4yN2wtMy41LDUuNDdWODFoLTJWNzcuNDFaIi8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNMTM1LDcxLjloMi4xNmwyLjM5LDMuODVMMTQyLDcxLjloMi4xNlY4MWgtMlY3NS4wNkwxMzkuNTgsNzloLS4wNUwxMzcsNzUuMVY4MWgtMlY3MS45WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTE0Ny4zNCw3MS45aDYuODZ2MS43OGgtNC44OHYxLjg1aDQuMjl2MS43OGgtNC4yOXYxLjkxaDQuOTRWODFoLTYuOTNWNzEuOVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0xNTkuMTksNzMuNzVoLTIuNzdWNzEuOUgxNjR2MS44NWgtMi43N1Y4MWgtMlY3My43NVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0xNjguNSw3MS44NGgxLjg1bDMuOSw5LjE3aC0yLjA5bC0uODMtMmgtMy44NWwtLjgzLDJoLTJabTIuMTEsNS4zNS0xLjIxLTMtMS4yMSwzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTE3Ni42OCw3MS45aDJ2Ny4yOGg0LjU0VjgxaC02LjU0WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTE4NS4xNCw3OS42N2wxLjE4LTEuNDJBNC4xNyw0LjE3LDAsMCwwLDE4OSw3OS4zNmMuODIsMCwxLjMxLS4zMywxLjMxLS44NnYwYzAtLjUxLS4zMS0uNzctMS44My0xLjE2LTEuODMtLjQ3LTMtMS0zLTIuNzh2MGMwLTEuNjUsMS4zMy0yLjc0LDMuMTktMi43NGE1LjI2LDUuMjYsMCwwLDEsMy4zOCwxLjE2bC0xLDEuNTFhNC4yOCw0LjI4LDAsMCwwLTIuMzctLjljLS43NywwLTEuMTcuMzUtMS4xNy43OXYwYzAsLjYuMzkuNzksMiwxLjIsMS44NS40OCwyLjg5LDEuMTQsMi44OSwyLjczdjBjMCwxLjgxLTEuMzgsMi44Mi0zLjM0LDIuODJBNS43Niw1Ljc2LDAsMCwxLDE4NS4xNCw3OS42N1oiLz48cG9seWdvbiBjbGFzcz0iY2xzLTQiIHBvaW50cz0iMjkxLjQxIDI5LjY2IDI4MC44MyAyOS42NiAyODAuODMgMTkuMDggMjc0LjgzIDE5LjA4IDI3NC44MyAyOS42NiAyNjQuMjQgMjkuNjYgMjY0LjI0IDM1LjY2IDI3NC44MyAzNS42NiAyNzQuODMgNDYuMjUgMjgwLjgzIDQ2LjI1IDI4MC44MyAzNS42NiAyOTEuNDEgMzUuNjYgMjkxLjQxIDI5LjY2Ii8+PC9nPjwvZz48L3N2Zz4=";function we(){const{t:e,i18n:t}=(0,a.useTranslation)(),{languages:n,originalPath:l}=(0,a.useI18next)(),[u,c]=r.useState(!1),[d,f]=r.useState(0);function h(){const e=window.scrollY;f(e)}return r.useEffect(()=>(window.addEventListener("scroll",h),()=>{window.removeEventListener("scroll",h)}),[]),r.createElement(r.Fragment,null,r.createElement(i.P.header,{className:"fixed top-0 z-40 flex h-24 w-full items-center bg-white transition-shadow duration-300 "+(d>0?"shadow-md":""),transition:{ease:"linear",duration:.3,delay:.2},initial:{y:"-100%",opacity:0}
2,animate:{y:0,opacity:1}},r.createElement("div",{className:"container mx-auto flex justify-between px-5 md:px-10"},r.createElement("div",{className:"flex items-center"},r.createElement(a.Link,{className:"flex",to:"/"},r.createElement("img",{className:"w-40 md:w-48",src:xe,alt:"Coniagas logo"})),r.createElement("div",{className:"ml-4 text-[10px] text-secondary"},"TSX-V:",r.createElement("br",null),"COS")),r.createElement("nav",{className:"hidden gap-5 xl:flex"},r.createElement(a.Link,{className:"py-4 hover:text-primary",to:"/about"},e("header.about")),r.createElement(a.Link,{className:"py-4 hover:text-primary",to:"/projects/graal"},e("header.projects")),r.createElement(a.Link,{className:"py-4 hover:text-primary",to:"/critical-materials"},e("header.criticalMaterials")),r.createElement(de,null,r.createElement(ae,{className:"relative",as:"div"},t=>{let{hover:n}=t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"flex cursor-pointer items-center gap-1 py-4 hover:text-primary"},e("header.media"),r.createElement(s.eQr,null)),n&&r.createElement(o.N,null,r.createElement(ue,{static:!0,as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute left-1/2 z-50 flex w-max -translate-x-1/2 !transform flex-col gap-3 rounded-lg bg-white p-6 shadow-md"},r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/media?tab=0"},e("header.photoGallery")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/media?tab=1"},e("header.videos")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/media?tab=2"},e("header.featuredArticles")))))})),r.createElement(a.Link,{className:"py-4 hover:text-primary",to:"/data"},e("header.data")),r.createElement(de,null,r.createElement(ae,{className:"relative",as:"div"},t=>{let{hover:n}=t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"flex cursor-pointer items-center gap-1 py-4 hover:text-primary"},e("header.investors"),r.createElement(s.eQr,null)),n&&r.createElement(o.N,null,r.createElement(ue,{static:!0,as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute left-1/2 z-50 flex w-max -translate-x-1/2 !transform flex-col gap-3 rounded-lg bg-white p-6 shadow-md"},r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#stockInformation"},e("header.stockInformation")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#capitalStructure"},e("header.capitalStructure")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#financials"},e("header.financials")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#files"},e("header.presentations")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#files"},e("header.technicalReports")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#AGM"},e("header.AGM")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/investors#coniagasFMV"},e("header.coniagasFMV")))))})),r.createElement(de,null,r.createElement(ae,{className:"relative",as:"div"},t=>{let{hover:n}=t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"flex cursor-pointer items-center gap-1 py-4 hover:text-primary"},e("header.news"),r.createElement(s.eQr,null)),n&&r.createElement(o.N,null,r.createElement(ue,{static:!0,as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute left-1/2 z-50 flex w-max -translate-x-1/2 !transform flex-col gap-3 rounded-lg bg-white p-6 shadow-md"},r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/news/2023"},e("header.news2023")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/news/2024"},e("header.news2024")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/news/2025"},e("header.news2025")),r.createElement(a.Link,{className:"py-1 hover:text-primary",to:"/news/2026"},e("header.news2026")))))}))),r.createElement("div",{className:"flex gap-5"},r.createElement(ye,null),r.createElement(de,null,e=>{let{open:u}=e;return r.createElement(r.Fragment,null,r.createElement(ae,{className:"flex items-center gap-1 py-4 outline-none hover:text-primary"},t.language.toUpperCase(),r.createElement(s.eQr,null)),r.createElement(o.N,null,u&&r.createElement(ue,{static:!0,as:i.P.div,initial:{opacity:0,scale:.95}
2,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},anchor:"bottom",className:"z-50 flex flex-col gap-3 rounded-lg bg-white p-6 shadow-md"},n.map(e=>r.createElement(a.Link,{className:"cursor-pointer py-1 hover:text-primary",key:e,language:e,to:l},e.toUpperCase())))))}),r.createElement(he.A,{className:"hidden self-center md:block",type:"primary",href:"/contact"},e("header.contactUs")),r.createElement("button",{className:"xl:hidden",onClick:()=>c(!0),"aria-label":"Open menu"},r.createElement(s.ybW,{className:"size-7"}))))),r.createElement(o.N,null,u&&r.createElement(fe.lG,{static:!0,open:u,onClose:()=>c(!1),className:"relative z-50"},r.createElement(i.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-center justify-end"},r.createElement(fe.Lj,{as:i.P.div,initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{ease:"linear"},className:"relative flex size-full max-w-lg flex-col items-start overflow-y-auto bg-white p-10"},r.createElement(a.Link,{className:"py-2 hover:text-primary",to:"/about"},e("header.about")),r.createElement(a.Link,{className:"py-2 hover:text-primary",to:"/projects/graal"},e("header.projects")),r.createElement(a.Link,{className:"py-2 hover:text-primary",to:"/critical-materials"},e("header.criticalMaterials")),r.createElement("div",{className:"cursor-pointer py-2 hover:text-primary"},e("header.media")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/media?tab=0"},e("header.photoGallery")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/media?tab=1"},e("header.videos")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/media?tab=2"},e("header.featuredArticles")),r.createElement(a.Link,{className:"py-2 hover:text-primary",to:"/data"},e("header.data")),r.createElement("div",{className:"cursor-pointer py-2 hover:text-primary"},e("header.investors")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#stockInformation"},e("header.stockInformation")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#capitalStructure"},e("header.capitalStructure")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#financials"},e("header.financials")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#files"},e("header.presentations")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#files"},e("header.technicalReports")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#AGM"},e("header.AGM")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/investors#coniagasFMV"},e("header.coniagasFMV")),r.createElement("div",{className:"cursor-pointer py-2 hover:text-primary"},e("header.news")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/news/2023"},e("header.news2023")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/news/2024"},e("header.news2024")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/news/2025"},e("header.news2025")),r.createElement(a.Link,{className:"py-2 pl-6 hover:text-primary",to:"/news/2026"},e("header.news2026")),r.createElement(he.A,{className:"mt-8 w-full",type:"primary",href:"/contact"},e("header.contactUs")),r.createElement("button",{className:"absolute right-8 top-8",onClick:()=>c(!1),"aria-label":"Close menu"},r.createElement(s.dCQ,{className:"size-7"})))))))}function be(){const{t:e}=(0,a.useTranslation)(),[t,n]=r.useState(""),[i,o]=r.useState(!1),[l,u]=r.useState(!1);return r.createElement("div",{className:"grid max-w-[400px] gap-4 text-center lg:text-left"},r.createElement("p",null,e("footer.subscribeText")),r.createElement("form",{className:"relative flex rounded-xl border border-secondary p-[3px]",onSubmit:async e=>{e.preventDefault(),u(!0);const t=new FormData(e.target);t.append("form-name","Subscribe");try{const e=await fetch("https://formspree.io/f/myzjgwzd",{method:"POST",headers:{Accept:"application/json"},body:t});200===e.status?o(!0):o(!1),n(e.msg)}catch(r){n("Something went wrong!"),o(!1)}u(!1)}},r.createElement("input",{className:"h-14 w-full rounded-lg bg-transparent pl-4 pr-40 text-secondary outline-none placeholder:text-tertiary",required:!0,type:"email",name:"email",placeholder:e("footer.subscribePlaceholder")}),r.createElement("button",{className:"absolute right-[3px] flex h-14 min-w-36 items-center justify-center gap-2 rounded-lg bg-primary text-white "+(l||i?"pointer-events-none":"hover:bg-black"),type:"submit"}
2,!l&&!i&&r.createElement(r.Fragment,null,e("footer.subscribeButton")),l&&r.createElement(s.Ll9,{className:"size-5 animate-spin"}),i&&r.createElement(s.hm8,{className:"size-5"}))),t&&!i&&r.createElement("div",{className:"text-center text-sm text-primary"},t))}var Ee="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MC4yOSA3Mi41OSI+PHRpdGxlPkFzc2V0IDE8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggZD0iTTM1LjQxLDcyLjI4bC0yMi45Mi0xOGMyLjY2LS40LDIyLjgtNC41NCwyMi44LTI2LjY3QzM1LjI5LDEwLjkzLDIyLjYyLDAsNC4wOSwwSDBWMTAuNjdINC43NWMxMi41NCwwLDE5LjM0LDYuNjYsMTkuMzQsMTYuOTNTMTcuMjksNDQuNTMsNC43NSw0NC41M0gwVjU1LjY3TDIxLDcyLjI4WiIgZmlsbD0iIzMzMyIvPjxwYXRoIGQ9Ik04MC4yOSwyNy42QzgwLjI5LDEwLjkzLDY3LjYyLDAsNDkuMDksMEg0NVYxMC42N2g0Ljc1YzEyLjU0LDAsMTkuMzQsNi42NiwxOS4zNCwxNi45M3MtNi44LDE2LjkzLTE5LjM0LDE2LjkzSDQ1VjU1LjY3YTEyNS42NywxMjUuNjcsMCwwLDAsMTIuNDktMS40LDMwLjgyLDMwLjgyLDAsMCwwLDEzLjA3LTUuN3YyNGg5LjY4VjI5LjI3QzgwLjI3LDI4LjcyLDgwLjI5LDI4LjE3LDgwLjI5LDI3LjZaIiBmaWxsPSIjOWZjOWViIi8+PC9nPjwvZz48L3N2Zz4=";function Me(){const{t:e}=(0,a.useTranslation)();let[t,n]=r.useState(!1),[l,u]=r.useState(!1),[c,d]=r.useState(!1),[f,h]=r.useState(!1);return r.createElement("footer",{className:"grid gap-10 bg-white py-10 lg:gap-20"},r.createElement("div",{className:"container mx-auto grid gap-10 px-5 py-10 lg:grid-cols-2 lg:gap-0 lg:px-10"},r.createElement("div",{className:"flex flex-col items-center gap-10 lg:items-start"},r.createElement(a.Link,{className:"flex",to:"/"},r.createElement("img",{className:"min-w-40 lg:min-w-48",src:xe,alt:"Coniagas logo"})),r.createElement(be,null)),r.createElement("div",{className:"grid gap-5 lg:grid-cols-3 lg:gap-0"},r.createElement("div",{className:"flex flex-row items-end justify-center gap-4 lg:flex-col lg:justify-start"},r.createElement("p",{className:"hidden text-tertiary lg:block"},e("footer.links")),r.createElement(a.Link,{className:"hover:text-primary",to:"/"},e("footer.home")),r.createElement(a.Link,{className:"hover:text-primary",to:"/about"},e("footer.about")),r.createElement(a.Link,{className:"hover:text-primary",to:"/projects/graal"},e("footer.projects")),r.createElement(a.Link,{className:"hover:text-primary",to:"/investors"},e("footer.investors"))),r.createElement("div",{className:"flex flex-row items-end justify-center gap-4 lg:flex-col lg:justify-start"},r.createElement("p",{className:"hidden text-tertiary lg:block"},e("footer.legal")),r.createElement(a.Link,{className:"hover:text-primary",to:"/contact"},e("footer.contact")),r.createElement("button",{onClick:()=>n(!0),className:"cursor-pointer hover:text-primary"},e("footer.disclaimer")),r.createElement("button",{onClick:()=>u(!0),className:"cursor-pointer hover:text-primary"},e("footer.disclosure")),r.createElement("button",{onClick:()=>d(!0),className:"cursor-pointer hover:text-primary"},e("footer.landAck")),r.createElement("button",{onClick:()=>h(!0),className:"cursor-pointer hover:text-primary"},e("footer.governance"))),r.createElement("div",{className:"flex flex-row items-end justify-center gap-4 lg:flex-col lg:justify-start"},r.createElement("p",{className:"hidden text-tertiary lg:block"},e("footer.social")),r.createElement("a",{className:"flex flex-col items-center gap-2 hover:text-primary lg:flex-row",href:"https://twitter.com/coniagasmetals",target:"_blank",rel:"noreferrer"},r.createElement(s.ase,{className:"size-6"}),e("footer.x")),r.createElement("a",{className:"flex flex-col items-center gap-2 hover:text-primary lg:flex-row",href:"https://www.linkedin.com/company/coniagas-battery-metals/",target:"_blank",rel:"noreferrer"},r.createElement(s.PWi,{className:"size-6"}),e("footer.linkedIn")),r.createElement("a",{className:"flex flex-col items-center gap-2 hover:text-primary lg:flex-row",href:"https://www.facebook.com/coniagas/",target:"_blank",rel:"noreferrer"},r.createElement(s.du4,{className:"size-6"}),e("footer.facebook")),r.createElement("a",{className:"flex flex-col items-center gap-2 hover:text-primary lg:flex-row",href:"https://www.youtube.com/@coniagasbatterymetals",target:"_blank",rel:"noreferrer"},r.createElement(s.cz$,{className:"size-6"}
2),e("footer.youtube"))))),r.createElement("div",{className:"container mx-auto flex flex-col justify-center gap-2 lg:flex-row lg:gap-10"},r.createElement("p",{className:"text-center text-tertiary"},e("footer.copyright")),r.createElement("a",{className:"flex justify-center gap-2 hover:text-primary",href:"https://www.resourceactive.com/documentation",target:"_blank",rel:"noreferrer"},r.createElement("img",{className:"w-4",src:Ee,alt:"Resource Active logo"}),r.createElement("p",null,e("footer.resourceActive")))),r.createElement(o.N,null,t&&r.createElement(fe.lG,{static:!0,open:t,onClose:()=>n(!1),className:"relative z-50"},r.createElement(i.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4"},r.createElement(fe.Lj,{as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative max-w-2xl rounded-2xl bg-white p-8 md:p-16"},r.createElement(s.dCQ,{className:"absolute right-4 top-4 size-8 cursor-pointer md:right-8 md:top-8",onClick:()=>n(!1)}),r.createElement(fe.L3,{className:"mb-8 text-4xl"},e("footer.disclaimerHeader")),r.createElement("div",{className:"h-[70vh] overflow-hidden overflow-y-auto pr-4 md:pr-8"},r.createElement(ve.VY,{as:"div"},r.createElement(a.Trans,{i18nKey:"footer.disclaimerText"}))))))),r.createElement(o.N,null,l&&r.createElement(fe.lG,{static:!0,open:l,onClose:()=>u(!1),className:"relative z-50"},r.createElement(i.P.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4"},r.createElement(fe.Lj,{as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative max-w-2xl rounded-2xl bg-white p-8 md:p-16"},r.createElement(s.dCQ,{className:"absolute right-4 top-4 size-8 cursor-pointer md:right-8 md:top-8",onClick:()=>u(!1)}),r.createElement(fe.L3,{className:"mb-8 text-4xl"},e("footer.disclosureHeader")),r.createElement("div",{className:"h-[70vh] overflow-hidden overflow-y-auto pr-4 md:pr-8"},r.createElement(ve.VY,{as:"div"},r.createElement(a.Trans,{i18nKey:"footer.disclosureText"}))))))),r.createElement(o.N,null,c&&r.createElement(fe.lG,{static:!0,open:c,onClose:()=>d(!1),className:"relative z-50"},r.createElement(i.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4"},r.createElement(fe.Lj,{as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative max-w-2xl rounded-2xl bg-white p-8 md:p-16"},r.createElement(s.dCQ,{className:"absolute right-4 top-4 size-8 cursor-pointer md:right-8 md:top-8",onClick:()=>d(!1)}),r.createElement(fe.L3,{className:"mb-8 text-4xl"},e("footer.landAckHeader")),r.createElement("div",{className:"max-h-[70vh] overflow-hidden overflow-y-auto pr-4 md:pr-8"},r.createElement(ve.VY,{as:"div"},r.createElement(a.Trans,{i18nKey:"footer.landAckText"}))))))),r.createElement(o.N,null,f&&r.createElement(fe.lG,{static:!0,open:f,onClose:()=>h(!1),className:"relative z-50"},r.createElement(i.P.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60"}),r.createElement("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4"},r.createElement(fe.Lj,{as:i.P.div,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"relative max-w-2xl rounded-2xl bg-white p-8 md:p-16"},r.createElement(s.dCQ,{className:"absolute right-4 top-4 size-8 cursor-pointer md:right-8 md:top-8",onClick:()=>h(!1)}),r.createElement(fe.L3,{className:"mb-8 text-4xl"},e("footer.governanceHeader")),r.createElement("div",{className:"max-h-[70vh] overflow-hidden overflow-y-auto pr-4 md:pr-8"},r.createElement(ve.VY,{as:"div"},r.createElement(a.Trans,{i18nKey:"footer.governanceText",components:{teamLink:r.createElement(a.Link,{className:"text-primary hover:underline",to:"/about"}),contactLink:r.createElement(a.Link,{className:"text-primary hover:underline",to:"/contact"}),landAckLink:r.createElement("button",{type:"button",className:"cursor-pointer text-primary hover:underline",onClick:()=>{h(!1),d(!0)}}),sedarLink:r.createElement("a",{className:"text-primary hover:underline",href:"https://www.sedarplus.ca/",target:"_blank",rel:"noreferrer"})}}))))))))}function Le(e){let{children:t}=e;return r.createElement(r.Fragment,null,r.createElement(we,null),r.createElement("main",{className:"bg-whiteLight"},t),r.createElement(Me,null))}},6202:function(e,t,n){"use strict";n.d(t,{VY:function(){return m},rU:function(){return f}});var r=n(6540),i=n(5015),o=n(6339),s=n(8975);let a=(0,r.createContext)(void 0);function l(){return(0,r.useContext)(a)}var u=n(160);let c=(0,r.createContext)(null);function d(){let e=(0,r.useContext)(c);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,d),e}return e}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,i._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),o=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:o},e.children)},[t])]}c.displayName="DescriptionContext";let h=(0,u.FX)(function(e,t){let n=(0,r.useId)(),i=l(),{id:a=`headlessui-description-${n}`,...c}=e,f=d(),h=(0,s.P)(t);(0,o.s)(()=>f.register(a),[a,f.register]);let m=i||!1,p=(0,r.useMemo)(()=>({...f.slot,disabled:m}),[f.slot,m]),v={ref:h,...f.props,id:a};return(0,u.XX)({ourProps:v,theirProps:c,slot:p,defaultTag:"p",name:f.name||"Description"})}),m=Object.assign(h,{})},6233:function(e,t,n){"use strict";n.d(t,{bq:function(){return a},wt:function(){return l},sD:function(){return s}});var r=n(1612);let i=!1;function o(){return i}function s(e,t){if(!o())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:(0,r.Ng)(n)?n.host:n.parentNode}return!1}const a=(e=document)=>{if(!o())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function l(e){if(o()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}},6339:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(6540),i=n(9851);let o=(e,t)=>{i._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},6635:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof o(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function c(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function f(e){return/^(table|td|th)$/.test(i(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}n.d(t,{$4:function(){return L},CP:function(){return M},L9:function(){return E},Lv:function(){return f},Tc:function(){return w},Tf:function(){return h},ZU:function(){return d},_m:function(){return S},ep:function(){return s},eu:function(){return b},gJ:function(){return x},mq:function(){return i},sQ:function(){return y},sb:function(){return u},v9:function(){return P},vq:function(){return l},zk:function(){return o}});const m=/transform|translate|scale|rotate|perspective|filter/,p=/paint|layout|strict|content/,v=e=>!!e&&"none"!==e;let g;function y(e){const t=l(e)?E(e):e;return v(t.transform)||v(t.translate)||v(t.scale)||v(t.rotate)||v(t.perspective)||!w()&&(v(t.backdropFilter)||v(t.filter))||m.test(t.willChange||"")||p.test(t.contain||"")}function x(e){let t=L(e);for(;u(t)&&!b(t);){if(y(t))return t;if(h(t))return null;t=L(t)}return null}function w(){return null==g&&(g="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g}function b(e){return/^(html|body|#document)$/.test(i(e))}function E(e){return o(e).getComputedStyle(e)}function M(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function L(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||c(e)&&e.host||s(e);return c(t)?t.host:t}function T(e){const t=L(e);return b(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&d(t)?t:T(t)}function P(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=T(e),s=i===(null==(r=e.ownerDocument)?void 0:r.body),a=o(i);if(s){const e=S(a);
2return t.concat(a,a.visualViewport||[],d(i)?i:[],e&&n?P(e):[])}return t.concat(i,P(i,[],n))}function S(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},6717:function(e,t,n){"use strict";n.d(t,{S:function(){return o},a:function(){return s}});var r=n(6540);let i=(0,r.createContext)(!1);function o(){return(0,r.useContext)(i)}function s(e){return r.createElement(i.Provider,{value:e.force},e.children)}},6719:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});const r=(0,n(6540).createContext)(null)},6723:function(e,t,n){"use strict";n.d(t,{o:function(){return _}});var r=n(6233),i=n(1612),o=n(6540);const s="undefined"!=typeof document?o.useLayoutEffect:()=>{};function a(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function l(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function u(e){let t=(0,o.useRef)({isFocused:!1,observer:null});return s(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,o.useCallback)(n=>{let i=(0,r.wt)(n);if(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement){t.current.isFocused=!0;let n=i,o=r=>{if(t.current.isFocused=!1,n.disabled){let t=a(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===(0,r.bq)()?null:(0,r.bq)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let c=!1;function d(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function f(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function h(e){let t=null;return()=>(null==t&&(t=e()),t)}const m=h(function(){return f(/^Mac/i)}),p=h(function(){return f(/^iPhone/i)}),v=h(function(){return f(/^iPad/i)||m()&&navigator.maxTouchPoints>1}),g=h(function(){return p()||v()}),y=(h(function(){return m()||g()}),h(function(){return d(/AppleWebKit/i)&&!x()})),x=h(function(){return d(/Chrome/i)}),w=h(function(){return d(/Android/i)}),b=h(function(){return d(/Firefox/i)});function E(e){if(function(){if(null==M){M=!1;try{document.createElement("div").focus({get preventScroll(){return M=!0,!0}})}catch{}}return M}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let M=null;function L(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}=t;b()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(m()?r=!0:i=!0);let a=y()&&m()&&!v()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});L.isOpening=n,E(e),e.dispatchEvent(a),L.isOpening=!1}L.isOpening=!1;let T=null,P="keyboard";const S=new Set;let N=new Map,C=!1,D=!1;const j={Tab:!0,Escape:!0};function A(e,t){for(let n of S)n(e,t)}function k(e){C=!0,!L.isOpening&&function(e){return!(e.metaKey||!m()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(T="keyboard",P="keyboard",A("keyboard",e))}function O(e){T="pointer",P="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(C=!0,A("pointer",e))}function I(e){var t;!L.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(w()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(C=!0,T="virtual",P="virtual")}function F(e){let t=(0,i.mD)((0,r.wt)(e)),n=(0,i.TW)((0,r.wt)(e));(0,r.wt)(e)!==t&&(0,r.wt)(e)!==n&&!c&&e.isTrusted&&(C||D||(T="virtual",P="virtual",A("virtual",e)),C=!1,D=!1)}function R(){c||(C=!1,D=!0)}function V(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=(0,i.mD)(e),n=(0,i.TW)(e);if(N.get(t))return;
2let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){C=!0,r.apply(this,arguments)},n.addEventListener("keydown",k,!0),n.addEventListener("keyup",k,!0),n.addEventListener("click",I,!0),t.addEventListener("focus",F,!0),t.addEventListener("blur",R,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",O,!0),n.addEventListener("pointermove",O,!0),n.addEventListener("pointerup",O,!0)),t.addEventListener("beforeunload",()=>{z(e)},{once:!0}),N.set(t,{focus:r})}const z=(e,t)=>{const n=(0,i.mD)(e),r=(0,i.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),N.has(n)&&(n.HTMLElement.prototype.focus=N.get(n).focus,r.removeEventListener("keydown",k,!0),r.removeEventListener("keyup",k,!0),r.removeEventListener("click",I,!0),n.removeEventListener("focus",F,!0),n.removeEventListener("blur",R,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",O,!0),r.removeEventListener("pointermove",O,!0),r.removeEventListener("pointerup",O,!0)),N.delete(n))};function B(){return"pointer"!==T}"undefined"!=typeof document&&function(e){const t=(0,i.TW)(e);let n;"loading"!==t.readyState?V(e):(n=()=>{V(e)},t.addEventListener("DOMContentLoaded",n))}();const U=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Y(e,t,n){V(),(0,o.useEffect)(()=>{if(!1===n?.enabled)return;let t=(t,o)=>{(function(e,t,n){let o=n?(0,r.wt)(n):void 0,s=(0,i.TW)(o),a=(0,i.mD)(o);const l=void 0!==a?a.HTMLInputElement:HTMLInputElement,u=void 0!==a?a.HTMLTextAreaElement:HTMLTextAreaElement,c=void 0!==a?a.HTMLElement:HTMLElement,d=void 0!==a?a.KeyboardEvent:KeyboardEvent;let f=(0,r.bq)(s);return!((e=e||f instanceof l&&!U.has(f.type)||f instanceof u||f instanceof c&&f.isContentEditable)&&"keyboard"===t&&n instanceof d&&!j[n.key])})(!!n?.isTextInput,t,o)&&e(B())};return S.add(t),()=>{S.delete(t)}},t)}function W(e){let{isDisabled:t,onFocus:n,onBlur:s,onFocusChange:a}=e;const l=(0,o.useCallback)(e=>{if((0,r.wt)(e)===e.currentTarget)return s&&s(e),a&&a(!1),!0},[s,a]),c=u(l),d=(0,o.useCallback)(e=>{let t=(0,r.wt)(e);const o=(0,i.TW)(t),s=o?(0,r.bq)(o):(0,r.bq)();t===e.currentTarget&&t===s&&(n&&n(e),a&&a(!0),c(e))},[a,n,c]);return{focusProps:{onFocus:!t&&(n||a||s)?d:void 0,onBlur:t||!s&&!a?void 0:l}}}var H=n(4876);function G(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:c}=e,d=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=(0,H.A)(),m=(0,o.useCallback)(e=>{(0,r.sD)(e.currentTarget,(0,r.wt)(e))&&d.current.isFocusWithin&&!(0,r.sD)(e.currentTarget,e.relatedTarget)&&(d.current.isFocusWithin=!1,h(),n&&n(e),c&&c(!1))},[n,c,d,h]),p=u(m),v=(0,o.useCallback)(e=>{if(!(0,r.sD)(e.currentTarget,(0,r.wt)(e)))return;let t=(0,r.wt)(e);const n=(0,i.TW)(t),o=(0,r.bq)(n);if(!d.current.isFocusWithin&&o===t){s&&s(e),c&&c(!0),d.current.isFocusWithin=!0,p(e);let t=e.currentTarget;
2f(n,"focus",e=>{let i=(0,r.wt)(e);if(d.current.isFocusWithin&&!(0,r.sD)(t,i)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:i});l(e,t);let r=a(e);m(r)}},{capture:!0})}},[s,c,p,f,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:m}}}function _(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,o.useRef)({isFocused:!1,isFocusVisible:t||B()}),[s,a]=(0,o.useState)(!1),[l,u]=(0,o.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),c=(0,o.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),d=(0,o.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=B(),a(e),c()},[c]);Y(e=>{i.current.isFocusVisible=e,c()},[n,s],{enabled:s,isTextInput:n});let{focusProps:f}=W({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=G({isDisabled:!r,onFocusWithinChange:d});return{isFocused:s,isFocusVisible:l,focusProps:r?h:f}}},6885:function(e,t,n){"use strict";n.d(t,{ll:function(){return L},rD:function(){return D},__:function(){return T},UU:function(){return N},cY:function(){return P},BN:function(){return S},Ej:function(){return C}});var r=n(7193);function i(e,t,n){let{reference:i,floating:o}=e;const s=(0,r.TV)(t),a=(0,r.Dz)(t),l=(0,r.sq)(a),u=(0,r.C0)(t),c="y"===s,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;let m;switch(u){case"top":m={x:d,y:i.y-o.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:f};break;case"left":m={x:i.x-o.width,y:f};break;default:m={x:i.x,y:i.y}}switch((0,r.Sg)(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1)}return m}async function o(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=(0,r._3)(t,e),p=(0,r.nI)(m),v=l[h?"floating"===f?"reference":"floating":f],g=(0,r.B1)(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(v)))||n?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),w=await(null==s.isElement?void 0:s.isElement(x))&&await(null==s.getScale?void 0:s.getScale(x))||{x:1,y:1},b=(0,r.B1)(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:u}):y);return{top:(g.top-b.top+p.top)/w.y,bottom:(b.bottom-g.bottom+p.bottom)/w.y,left:(g.left-b.left+p.left)/w.x,right:(b.right-g.right+p.right)/w.x}}const s=new Set(["left","top"]);var a=n(6635);function l(e){const t=(0,a.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,a.sb)(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:i,u=(0,r.LI)(n)!==s||(0,r.LI)(i)!==l;return u&&(n=s,i=l),{width:n,height:i,$:u}}function u(e){return(0,a.vq)(e)?e:e.contextElement}function c(e){const t=u(e);if(!(0,a.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=l(t);let c=(s?(0,r.LI)(n.width):n.width)/i,d=(s?(0,r.LI)(n.height):n.height)/o;return c&&Number.isFinite(c)||(c=1),d&&Number.isFinite(d)||(d=1),{x:c,y:d}}const d=(0,r.Jx)(0);function f(e){const t=(0,a.zk)(e);return(0,a.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:d}function h(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=u(e);let l=(0,r.Jx)(1);t&&(i?(0,a.vq)(i)&&(l=c(i)):l=c(e));const d=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,a.zk)(e))&&t}(s,n,i)?f(s):(0,r.Jx)(0);let h=(o.left+d.x)/l.x,m=(o.top+d.y)/l.y,p=o.width/l.x,v=o.height/l.y;if(s){const e=(0,a.zk)(s),t=i&&(0,a.vq)(i)?(0,a.zk)(i):i;let n=e,r=(0,a._m)(n);for(;r&&i&&t!==n;){const e=c(r),t=r.getBoundingClientRect(),i=(0,a.L9)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;h*=e.x,m*=e.y,p*=e.x,v*=e.y,h+=o,m+=s,n=(0,a.zk)(r),r=(0,a._m)(n)}}return(0,r.B1)({width:p,height:v,x:h,y:m})}function m(e,t){const n=(0,a.CP)(e).scrollLeft;return t?t.left+n:h((0,a.ep)(e)).left+n}function p(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-m(e,n),y:n.top+t.scrollTop}}function v(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=(0,a.zk)(e),r=(0,a.ep)(e),i=n.visualVie
2wport;let o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(i){o=i.width,s=i.height;const e=(0,a.Tc)();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}const c=m(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else c<=25&&(o+=c);return{width:o,height:s,x:l,y:u}}(e,n);else if("document"===t)i=function(e){const t=(0,a.ep)(e),n=(0,a.CP)(e),i=e.ownerDocument.body,o=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+m(e);const u=-n.scrollTop;return"rtl"===(0,a.L9)(i).direction&&(l+=(0,r.T9)(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:l,y:u}}((0,a.ep)(e));else if((0,a.vq)(t))i=function(e,t){const n=h(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=(0,a.sb)(e)?c(e):(0,r.Jx)(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:i*s.y}}(t,n);else{const n=f(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(i)}function g(e,t){const n=(0,a.$4)(e);return!(n===t||!(0,a.vq)(n)||(0,a.eu)(n))&&("fixed"===(0,a.L9)(n).position||g(n,t))}function y(e,t,n){const i=(0,a.sb)(t),o=(0,a.ep)(t),s="fixed"===n,l=h(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const c=(0,r.Jx)(0);function d(){c.x=m(o)}if(i||!i&&!s)if(("body"!==(0,a.mq)(t)||(0,a.ZU)(o))&&(u=(0,a.CP)(t)),i){const e=h(t,!0,s,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&d();s&&!i&&o&&d();const f=!o||i||s?(0,r.Jx)(0):p(o,u);return{x:l.left+u.scrollLeft-c.x-f.x,y:l.top+u.scrollTop-c.y-f.y,width:l.width,height:l.height}}function x(e){return"static"===(0,a.L9)(e).position}function w(e,t){if(!(0,a.sb)(e)||"fixed"===(0,a.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,a.ep)(e)===n&&(n=n.ownerDocument.body),n}function b(e,t){const n=(0,a.zk)(e);if((0,a.Tf)(e))return n;if(!(0,a.sb)(e)){let t=(0,a.$4)(e);for(;t&&!(0,a.eu)(t);){if((0,a.vq)(t)&&!x(t))return t;t=(0,a.$4)(t)}return n}let r=w(e,t);for(;r&&(0,a.Lv)(r)&&x(r);)r=w(r,t);return r&&(0,a.eu)(r)&&x(r)&&!(0,a.sQ)(r)?n:r||(0,a.gJ)(e)||n}const E={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s="fixed"===o,l=(0,a.ep)(i),u=!!t&&(0,a.Tf)(t.floating);if(i===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=(0,r.Jx)(1);const m=(0,r.Jx)(0),v=(0,a.sb)(i);if((v||!v&&!s)&&(("body"!==(0,a.mq)(i)||(0,a.ZU)(l))&&(d=(0,a.CP)(i)),v)){const e=h(i);f=c(i),m.x=e.x+i.clientLeft,m.y=e.y+i.clientTop}const g=!l||v||s?(0,r.Jx)(0):p(l,d);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+g.x,y:n.y*f.y-d.scrollTop*f.y+m.y+g.y}},getDocumentElement:a.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[..."clippingAncestors"===n?(0,a.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,a.v9)(e,[],!1).filter(e=>(0,a.vq)(e)&&"body"!==(0,a.mq)(e)),i=null;const o="fixed"===(0,a.L9)(e).position;let s=o?(0,a.$4)(e):e;for(;(0,a.vq)(s)&&!(0,a.eu)(s);){const t=(0,a.L9)(s),n=(0,a.sQ)(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,a.ZU)(s)&&!n&&g(e,s))?r=r.filter(e=>e!==s):i=t,s=(0,a.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),i],l=v(t,s[0],o);let u=l.top,c=l.right,d=l.bottom,f=l.left;for(let a=1;a<s.length;a++){const e=v(t,s[a],o);u=(0,r.T9)(e.top,u),c=(0,r.jk)(e.right,c),d=(0,r.jk)(e.bottom,d),f=(0,r.T9)(e.left,f)}return{width:c-f,height:d-u,x:f,y:u}},getOffsetParent:b,getElementRects:async function(e){const t=this.getOffsetParent||b,n=this.getDimensions,r=await n(e.floating);return{reference:y(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=l(e);return{width:t,height:n}},getScale:c,isElement:a.vq,isRTL:function(e){return"rtl"===(0,a.L9)(e).direction}};function M(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function L(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,f=u(e),m=o||s?[...f?(0,a.v9)(f):[],...t?(0,a.v9)(t):[]]:[];
2m.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});const p=f&&c?function(e,t){let n,i=null;const o=(0,a.ep)(e);function s(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(l||t(),!h||!m)return;const p={rootMargin:-(0,r.RI)(f)+"px "+-(0,r.RI)(o.clientWidth-(d+h))+"px "+-(0,r.RI)(o.clientHeight-(f+m))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let v=!0;function g(t){const r=t[0].intersectionRatio;if(r!==u){if(!v)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||M(c,e.getBoundingClientRect())||a(),v=!1}try{i=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(y){i=new IntersectionObserver(g,p)}i.observe(e)}(!0),s}(f,n):null;let v,g=-1,y=null;l&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!d&&y.observe(f),t&&y.observe(t));let x=d?h(e):null;return d&&function t(){const r=h(e);x&&!M(x,r)&&n();x=r,v=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(v)}}const T=o,P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:a,placement:l,middlewareData:u}=t,c=await async function(e,t){const{placement:n,platform:i,elements:o}=e,a=await(null==i.isRTL?void 0:i.isRTL(o.floating)),l=(0,r.C0)(n),u=(0,r.Sg)(n),c="y"===(0,r.TV)(n),d=s.has(l)?-1:1,f=a&&c?-1:1,h=(0,r._3)(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&"number"==typeof v&&(p="end"===u?-1*v:v),c?{x:p*f,y:m*d}:{x:m*d,y:p*f}}(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(i=u.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:l}}}}},S=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),d={x:n,y:i},f=await s.detectOverflow(t,c),h=(0,r.TV)((0,r.C0)(o)),m=(0,r.PG)(h);let p=d[m],v=d[h];if(a){const e="y"===m?"bottom":"right",t=p+f["y"===m?"top":"left"],n=p-f[e];p=(0,r.qE)(t,p,n)}if(l){const e="y"===h?"bottom":"right",t=v+f["y"===h?"top":"left"],n=v-f[e];v=(0,r.qE)(t,v,n)}const g=u.fn({...t,[m]:p,[h]:v});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[m]:a,[h]:l}}}}}},N=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:a,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...g}=(0,r._3)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=(0,r.C0)(o),x=(0,r.TV)(l),w=(0,r.C0)(l)===l,b=await(null==u.isRTL?void 0:u.isRTL(c.floating)),E=h||(w||!v?[(0,r.bV)(l)]:(0,r.WJ)(l)),M="none"!==p;!h&&M&&E.push(...(0,r.lP)(l,v,p,b));const L=[l,...E],T=await u.detectOverflow(t,g),P=[];let S=(null==(i=s.flip)?void 0:i.overflows)||[];if(d&&P.push(T[y]),f){const e=(0,r.w7)(o,a,b);P.push(T[e[0]],T[e[1]])}if(S=[...S,{placement:o,overflows:P}],!P.every(e=>e<=0)){var N,C;const e=((null==(N=s.flip)?void 0:N.index)||0)+1,t=L[e];if(t){if(!("alignment"===f&&x!==(0,r.TV)(t))||S.every(e=>(0,r.TV)(e.placement)!==x||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(C=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(m){case"bestFit":{var D;const e=null==(D=S.filter(e=>{if(M){const t=(0,r.TV)(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},C=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:a,elements:l}=t,{apply:u=()=>{},...c}=(0,r._3)(e,t),d=await a.detectOverflow(t,c),f=(0,r.C0)(o),h=(0,r.Sg)(o),m="y"===(0,r.TV)(o),{width:p,height:v}=s.floating;let g,y;
2"top"===f||"bottom"===f?(g=f,y=h===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,g="end"===h?"top":"bottom");const x=v-d.top-d.bottom,w=p-d.left-d.right,b=(0,r.jk)(v-d[g],x),E=(0,r.jk)(p-d[y],w),M=!t.middlewareData.shift;let L=b,T=E;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=w),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(L=x),M&&!h){const e=(0,r.T9)(d.left,0),t=(0,r.T9)(d.right,0),n=(0,r.T9)(d.top,0),i=(0,r.T9)(d.bottom,0);m?T=p-2*(0!==e||0!==t?e+t:(0,r.T9)(d.left,d.right)):L=v-2*(0!==n||0!==i?n+i:(0,r.T9)(d.top,d.bottom))}await u({...t,availableWidth:T,availableHeight:L});const P=await a.getDimensions(l.floating);return p!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}},D=(e,t,n)=>{const r=new Map,s={platform:E,...n},a={...s.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:o},c=await(null==l.isRTL?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:h}=i(d,r,c),m=r,p=0;const v={};for(let o=0;o<a.length;o++){const n=a[o];if(!n)continue;const{name:g,fn:y}=n,{x:x,y:w,data:b,reset:E}=await y({x:f,y:h,initialPlacement:r,placement:m,strategy:s,middlewareData:v,rects:d,platform:u,elements:{reference:e,floating:t}});f=null!=x?x:f,h=null!=w?w:h,v[g]={...v[g],...b},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(m=E.placement),E.rects&&(d=!0===E.rects?await l.getElementRects({reference:e,floating:t,strategy:s}):E.rects),({x:f,y:h}=i(d,m,c))),o=-1)}return{x:f,y:h,placement:m,strategy:s,middlewareData:v}})(e,t,{...s,platform:a})}},6984:function(e,t,n){"use strict";function r(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}n.d(t,{$t:function(){return r}})},6992:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(6540),i=n(2599);function o(){let[e]=(0,r.useState)(i.e);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},7193:function(e,t,n){"use strict";n.d(t,{B1:function(){return S},C0:function(){return d},Dz:function(){return v},Jx:function(){return a},LI:function(){return o},PG:function(){return h},RI:function(){return s},Sg:function(){return f},T9:function(){return i},TV:function(){return p},WJ:function(){return y},_3:function(){return c},bV:function(){return T},jk:function(){return r},lP:function(){return L},nI:function(){return P},qE:function(){return u},sq:function(){return m},w7:function(){return g}});const r=Math.min,i=Math.max,o=Math.round,s=Math.floor,a=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,n){return i(e,r(t,n))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function p(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return h(p(e))}function g(e,t,n){void 0===n&&(n=!1);const r=f(e),i=v(e),o=m(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=T(s)),[s,T(s)]}function y(e){const t=T(e);return[x(e),t,x(t)]}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const w=["left","right"],b=["right","left"],E=["top","bottom"],M=["bottom","top"];function L(e,t,n,r){const i=f(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?b:w:t?w:b;case"left":case"right":return t?E:M;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}function T(e){const t=d(e);return l[t]+e.slice(t.length)}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}},7442:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=n(6540);let i=(0,r.createContext)(()=>{});function o({value:e,children:t}){return r.createElement(i.Provider,{value:e},t)}},8068:function(e,t,n){"use strict";n.d(t,{M:function(){return d}});var r=n(6233),i=n(1612),o=n(4876),s=n(6540);let a=!1,l=0;function u(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},500))}function c(){let e=(0,i.TW)(null);if(void 0!==e)return 0===l&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",u),l++,()=>{l--,l>0||"undefined"!=typeof PointerEvent&&e.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:l,isDisabled:u}
2=e,[d,f]=(0,s.useState)(!1),h=(0,s.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,s.useEffect)(c,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=(0,o.A)(),{hoverProps:v,triggerHoverEnd:g}=(0,s.useMemo)(()=>{let e=(e,t)=>{let r=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&r&&(h.isHovered=!1,p(),l&&l({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=o=>{a&&"mouse"===o.pointerType||((o,s)=>{if(h.pointerType=s,u||"touch"===s||h.isHovered||!(0,r.sD)(o.currentTarget,(0,r.wt)(o)))return;h.isHovered=!0;let a=o.currentTarget;h.target=a,m((0,i.TW)((0,r.wt)(o)),"pointerover",t=>{h.isHovered&&h.target&&!(0,r.sD)(h.target,(0,r.wt)(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:s}),n&&n(!0),f(!0)})(o,o.pointerType)},o.onPointerLeave=t=>{!u&&(0,r.sD)(t.currentTarget,(0,r.wt)(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,l,u,h,m,p]);return(0,s.useEffect)(()=>{u&&g({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:v,isHovered:d}}},8084:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(6540),i=n(4424);function o(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{function n(e){s.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}},8288:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});const r="undefined"!=typeof window},8302:function(e,t,n){"use strict";n.d(t,{ZL:function(){return E}
2,k2:function(){return x}});var r=n(6540),i=n(961),o=n(5015),s=n(6339),a=n(2903),l=n(4156),u=n(4335),c=n(8975),d=n(6717),f=n(9851),h=n(160);let m=r.Fragment,p=(0,h.FX)(function(e,t){let n=e,o=(0,r.useRef)(null),p=(0,c.P)((0,c.a)(e=>{o.current=e}),t),v=(0,l.g)(o),x=function(e){let t=(0,d.S)(),n=(0,r.useContext)(g),i=(0,l.g)(e),[o,s]=(0,r.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(f._.isServer)return null;let r=null==i?void 0:i.getElementById("headlessui-portal-root");if(r)return r;if(null===i)return null;let o=i.createElement("div");return o.setAttribute("id","headlessui-portal-root"),i.body.appendChild(o)});return(0,r.useEffect)(()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))},[o,i]),(0,r.useEffect)(()=>{t||null!==n&&s(n.current)},[n,s,t]),o}(o),[w]=(0,r.useState)(()=>{var e;return f._.isServer?null:null!=(e=null==v?void 0:v.createElement("div"))?e:null}),b=(0,r.useContext)(y),E=(0,u.g)();return(0,s.s)(()=>{!x||!w||x.contains(w)||(w.setAttribute("data-headlessui-portal",""),x.appendChild(w))},[x,w]),(0,s.s)(()=>{if(w&&b)return b.register(w)},[b,w]),(0,a.X)(()=>{var e;!x||!w||(w instanceof Node&&x.contains(w)&&x.removeChild(w),x.childNodes.length<=0&&(null==(e=x.parentElement)||e.removeChild(x)))}),E&&x&&w?(0,i.createPortal)((0,h.XX)({ourProps:{ref:p},theirProps:n,slot:{},defaultTag:m,name:"Portal"}),w):null});let v=r.Fragment,g=(0,r.createContext)(null);let y=(0,r.createContext)(null);function x(){let e=(0,r.useContext)(y),t=(0,r.useRef)([]),n=(0,o._)(n=>(t.current.push(n),e&&e.register(n),()=>i(n))),i=(0,o._)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),s=(0,r.useMemo)(()=>({register:n,unregister:i,portals:t}),[n,i,t]);return[t,(0,r.useMemo)(()=>function({children:e}){return r.createElement(y.Provider,{value:s},e)},[s])]}let w=(0,h.FX)(function(e,t){let n=(0,c.P)(t),{enabled:i=!0,...o}=e;return i?r.createElement(p,{...o,ref:n}):(0,h.XX)({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:m,name:"Portal"})}),b=(0,h.FX)(function(e,t){let{target:n,...i}=e,o={ref:(0,c.P)(t)};return r.createElement(g.Provider,{value:n},(0,h.XX)({ourProps:o,theirProps:i,defaultTag:v,name:"Popover.Group"}))}),E=Object.assign(w,{Group:b})},8335:function(e,t,n){"use strict";function r(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{P:function(){return ra}});const o=e=>Array.isArray(e);function s(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 a(e){return"string"==typeof e||Array.isArray(e)}function l(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function u(e,t,n,r){if("function"==typeof t){const[i,o]=l(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,o]=l(r);t=t(void 0!==n?n:e.custom,i,o)}return t}function c(e,t,n){const r=e.getProps();return u(r,t,void 0!==n?n:r.custom,e)}const d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f=["initial",...d];function h(e){let t;return()=>(void 0===t&&(t=e()),t)}const m=h(()=>void 0!==window.ScrollTimeline);class p{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>m()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class v extends p{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function g(e,t){return e?e[t]||e.default||e:void 0}const y=2e4;function x(e){let t=0;let n=e.next(t);for(;!n.done&&t<y;)t+=50,n=e.next(t);return t>=y?1/0:t}function w(e){return"function"==typeof e}function b(e,t){e.timeline=t,e.onfinish=null}const E=e=>Array.isArray(e)&&"number"==typeof e[0],M={linearEasing:void 0};function L(e,t){const n=h(e);return()=>{var e;return null!==(e=M[t])&&void 0!==e?e:n()}}const T=L(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),P=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},S=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(P(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function N(e){return Boolean("function"==typeof e&&T()||!e||"string"==typeof e&&(e in D||T())||E(e)||Array.isArray(e)&&e.every(N))}const C=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,D={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:C([0,.65,.55,1]),circOut:C([.55,0,1,.45]),backIn:C([.31,.01,.66,-.59]),backOut:C([.33,1.53,.69,.99])};function j(e,t){return e?"function"==typeof e&&T()?S(e,t):E(e)?C(e):Array.isArray(e)?e.map(e=>j(e,t)||D.easeOut):D[e]:void 0}const A={x:!1,y:!1};function k(){return A.x||A.y}function O(e,t){const n=function(e,t,n){var r;if(e instanceof Element)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);const o=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function I(e){return t=>{"touch"===t.pointerType||k()||e(t)}}const F=(e,t)=>!!t&&(e===t||F(e,t.parentElement)),R=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const z=new WeakSet;function B(e){return t=>{"Enter"===t.key&&e(t)}}function U(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Y(e){return R(e)&&!k()}function W(e,t,n={}){const[r,i,o]=O(e,n),s=e=>{const r=e.currentTarget;if(!Y(e)||z.has(r))return;z.add(r);const o=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Y(e)&&z.has(r)&&(z.delete(r),"function"==typeof o&&o(e,{success:t}))},a=e=>{s(e,n.useGlobalTarget||F(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(function(e){return V.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=B(()=>{if(z.has(n))return;U(n,"down");const e=B(()=>{U(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>U(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i),i)}),o}const H=e=>1e3*e,G=e=>e/1e3,_=e=>e;const $=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set($),X=new Set(["width","height","top","left","right","bottom",...$]),q=e=>o(e)?e[e.length-1]||0:e,K=!1,Z=!1;const J=["read","resolveKeyframes","update","preRender","render","postRender"];function ee(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=J.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,i=!1,s=!1)=>{const a=s&&r?t:n;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{s=e,r?i=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e)))}};return l}(o),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const o=Z?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:J.reduce((t,o)=>{const a=s[o];return t[o]=(t,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(h)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<J.length;t++)s[J[t]].cancel(e)},state:i,steps:s}}const{schedule:te,cancel:ne,state:re,steps:ie}=ee("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:_,!0);let oe;function se(){oe=void 0}const ae={now:()=>(void 0===oe&&ae.set(re.isProcessing||Z?re.timestamp:performance.now()),oe),set:e=>{oe=e,queueMicrotask(se)}};function le(e,t){-1===e.indexOf(t)&&e.push(t)}function ue(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ce{constructor(){this.subscriptions=[]}add(e){return le(this.subscriptions,e),()=>ue(this.subscriptions,e)}
2notify(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}}function de(e,t){return t?e*(1e3/t):0}const fe={current:void 0};class he{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ae.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ae.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ce);const n=this.events[e].add(t);return"change"===e?()=>{n(),te.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=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return fe.current&&fe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ae.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return de(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function me(e,t){return new he(e,t)}function pe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,me(n))}const ve=e=>Boolean(e&&e.getVelocity);function ge(e,t){const n=e.getValue("willChange");if(r=n,Boolean(ve(r)&&r.add))return n.add(t);var r}const ye=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xe="data-"+ye("framerAppearId");function we(e){return e.props[xe]}const be=!1,Ee=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Me(e,t,n,r){if(e===t&&n===r)return _;const i=t=>function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=Ee(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:Ee(i(e),t,r)}const Le=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Te=e=>t=>1-e(1-t),Pe=Me(.33,1.53,.69,.99),Se=Te(Pe),Ne=Le(Se),Ce=e=>(e*=2)<1?.5*Se(e):.5*(2-Math.pow(2,-10*(e-1))),De=e=>1-Math.sin(Math.acos(e)),je=Te(De),Ae=Le(De),ke=e=>/^0[^.\s]+$/u.test(e);function Oe(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||ke(e))}const Ie=(e,t,n)=>n>t?t:n<e?e:n,Fe={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Re={...Fe,transform:e=>Ie(0,1,e)},Ve={...Fe,default:1},ze=e=>Math.round(1e5*e)/1e5,Be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Ue=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ye=(e,t)=>n=>Boolean("string"==typeof n&&Ue.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),We=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,o,s,a]=r.match(Be);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},He={...Fe,transform:e=>Math.round((e=>Ie(0,255,e))(e))},Ge={test:Ye("rgb","red"),parse:We("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+He.transform(e)+", "+He.transform(t)+", "+He.transform(n)+", "+ze(Re.transform(r))+")"};const _e={test:Ye("#"),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),alph
2a:i?parseInt(i,16)/255:1}},transform:Ge.transform},$e=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=$e("deg"),Xe=$e("%"),qe=$e("px"),Ke=$e("vh"),Ze=$e("vw"),Je={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(100*e)},et={test:Ye("hsl","hue"),parse:We("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xe.transform(ze(t))+", "+Xe.transform(ze(n))+", "+ze(Re.transform(r))+")"},tt={test:e=>Ge.test(e)||_e.test(e)||et.test(e),parse:e=>Ge.test(e)?Ge.parse(e):et.test(e)?et.parse(e):_e.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Ge.transform(e):et.transform(e)},nt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const rt="number",it="color",ot=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function st(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(ot,e=>(tt.test(e)?(r.color.push(o),i.push(it),n.push(tt.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(rt),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function at(e){return st(e).values}function lt(e){const{split:t,types:n}=st(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){const t=n[o];i+=t===rt?ze(e[o]):t===it?tt.transform(e[o]):e[o]}return i}}const ut=e=>"number"==typeof e?0:e;const ct={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Be))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(nt))||void 0===n?void 0:n.length)||0)>0},parse:at,createTransformer:lt,getAnimatableNone:function(e){const t=at(e);return lt(e)(t.map(ut))}},dt=new Set(["brightness","contrast","saturate","opacity"]);function ft(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Be)||[];if(!r)return e;const i=n.replace(r,"");let o=dt.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ht=/\b([a-z-]*)\(.*?\)/gu,mt={...ct,getAnimatableNone:e=>{const t=e.match(ht);return t?t.map(ft).join(" "):e}},pt={borderWidth:qe,borderTopWidth:qe,borderRightWidth:qe,borderBottomWidth:qe,borderLeftWidth:qe,borderRadius:qe,radius:qe,borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomRightRadius:qe,borderBottomLeftRadius:qe,width:qe,maxWidth:qe,height:qe,maxHeight:qe,top:qe,right:qe,bottom:qe,left:qe,padding:qe,paddingTop:qe,paddingRight:qe,paddingBottom:qe,paddingLeft:qe,margin:qe,marginTop:qe,marginRight:qe,marginBottom:qe,marginLeft:qe,backgroundPositionX:qe,backgroundPositionY:qe},vt={rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Ve,scaleX:Ve,scaleY:Ve,scaleZ:Ve,skew:Qe,skewX:Qe,skewY:Qe,distance:qe,translateX:qe,translateY:qe,translateZ:qe,x:qe,y:qe,z:qe,perspective:qe,transformPerspective:qe,opacity:Re,originX:Je,originY:Je,originZ:qe},gt={...Fe,transform:Math.round},yt={...pt,...vt,zIndex:gt,size:qe,fillOpacity:Re,strokeOpacity:Re,numOctaves:gt},xt={...yt,color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:mt,WebkitFilter:mt},wt=e=>xt[e];function bt(e,t){let n=wt(e);return n!==mt&&(n=ct),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Et=new Set(["auto","none","0"]);const Mt=e=>e===Fe||e===qe,Lt=(e,t)=>parseFloat(e.split(", ")[t]),Tt=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Lt(i[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Lt(t[1],e):0}},Pt=new Set(["x","y","z"]),St=$.filter(e=>!Pt.has(e));const Nt={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:Tt(4,13),y:Tt(5,14)};Nt.translateX=Nt.x,Nt.translateY=Nt.y;const Ct=new Set;let Dt=!1,jt=!1;
2function At(){if(jt){const e=Array.from(Ct).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return St.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}jt=!1,Dt=!1,Ct.forEach(e=>e.complete()),Ct.clear()}function kt(){Ct.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jt=!0)})}class Ot{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ct.add(this),Dt||(Dt=!0,te.read(kt),te.resolveKeyframes(At))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ct.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ct.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let It=_,Ft=_;const Rt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vt=e=>t=>"string"==typeof t&&t.startsWith(e),zt=Vt("--"),Bt=Vt("var(--"),Ut=e=>!!Bt(e)&&Yt.test(e.split("/*")[0].trim()),Yt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ht(e,t,n=1){Ft(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=Wt.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return Rt(e)?parseFloat(e):e}return Ut(i)?Ht(i,t,n+1):i}const Gt=e=>t=>t.test(e),_t=[Fe,qe,Xe,Qe,Ze,Ke,{test:e=>"auto"===e,parse:e=>e}],$t=e=>_t.find(Gt(e));class Qt extends Ot{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let n=e[a];if("string"==typeof n&&(n=n.trim(),Ut(n))){const r=Ht(n,t.current);void 0!==r&&(e[a]=r),a===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!X.has(n)||2!==e.length)return;const[r,i]=e,o=$t(r),s=$t(i);if(o!==s)if(Mt(o)&&Mt(s))for(let a=0;a<e.length;a++){const t=e[a];"string"==typeof t&&(e[a]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)Oe(e[r])&&n.push(r);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!Et.has(t)&&st(t).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=bt(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
2h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const Xt=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!ct.test(e)&&"0"!==e||e.startsWith("url(")));function qt(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],s=Xt(i,t),a=Xt(o,t);return It(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||w(n))&&r)}const Kt=e=>null!==e;function Zt(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Kt),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class Jt{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ae.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(kt(),At()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ae.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!qt(e,n,r,i)){if(be||!o)return a&&a(Zt(e,this.options,t)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const en=(e,t,n)=>e+(t-e)*n;function tn(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}function nn(e,t){return n=>n>0?t:e}const rn=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},on=[_e,Ge,et];function sn(e){const t=(n=e,on.find(e=>e.test(n)));var n;if(It(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===et&&(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=tn(a,r,e+1/3),o=tn(a,r,e),s=tn(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 an=(e,t)=>{const n=sn(e),r=sn(t);if(!n||!r)return nn(e,t);const i={...n};return e=>(i.red=rn(n.red,r.red,e),i.green=rn(n.green,r.green,e),i.blue=rn(n.blue,r.blue,e),i.alpha=en(n.alpha,r.alpha,e),Ge.transform(i))},ln=(e,t)=>n=>t(e(n)),un=(...e)=>e.reduce(ln),cn=new Set(["none","hidden"]);function dn(e,t){return n=>en(e,t,n)}function fn(e){return"number"==typeof e?dn:"string"==typeof e?Ut(e)?nn:tt.test(e)?an:pn:Array.isArray(e)?hn:"object"==typeof e?tt.test(e)?an:mn:nn}function hn(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>fn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function mn(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=fn(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const pn=(e,t)=>{const n=ct.createTransformer(t),r=st(e),i=st(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?cn.has(e)&&!i.values.length||cn.has(t)&&!r.values.length?function(e,t){return cn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):un(hn(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):(It(!0,`Complex values '${e}' and '${t}
2' 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.`),nn(e,t))};function vn(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return en(e,t,n);return fn(e)(e,t)}function gn(e,t,n){const r=Math.max(t-5,0);return de(n-e(r),t-r)}const yn=100,xn=10,wn=1,bn=0,En=800,Mn=.3,Ln=.3,Tn={granular:.01,default:2},Pn={granular:.005,default:.5},Sn=.01,Nn=10,Cn=.05,Dn=1,jn=.001;function An({duration:e=En,bounce:t=Mn,velocity:n=bn,mass:r=wn}){let i,o;It(e<=H(Nn),"Spring duration must be 10 seconds or less");let s=1-t;s=Ie(Cn,Dn,s),e=Ie(Sn,Nn,G(e)),s<1?(i=t=>{const r=t*s,i=r*e,o=r-n,a=On(t,s),l=Math.exp(-i);return jn-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),u=On(Math.pow(t,2),s);return(-i(t)+jn>0?-1:1)*((o-a)*l)/u}):(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 i=1;i<kn;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=H(e),isNaN(a))return{stiffness:yn,damping:xn,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}const kn=12;function On(e,t){return e*Math.sqrt(1-t*t)}const In=["duration","bounce"],Fn=["stiffness","damping","mass"];function Rn(e,t){return t.some(t=>void 0!==e[t])}function Vn(e=Ln,t=Mn){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:bn,stiffness:yn,damping:xn,mass:wn,isResolvedFromDuration:!1,...e};if(!Rn(e,Fn)&&Rn(e,In))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:wn,stiffness:i,damping:o}}else{const n=An(e);t={...t,...n,mass:wn},t.isResolvedFromDuration=!0}return t}({...n,velocity:-G(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),v=s-o,g=G(Math.sqrt(l/c)),w=Math.abs(v)<5;let b;if(r||(r=w?Tn.granular:Tn.default),i||(i=w?Pn.granular:Pn.default),p<1){const e=On(g,p);b=t=>{const n=Math.exp(-p*g*t);return s-n*((m+p*g*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===p)b=e=>s-Math.exp(-g*e)*(v+(m+g*v)*e);else{const e=g*Math.sqrt(p*p-1);b=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return s-n*((m+p*g*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}const E={calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)a.done=e>=d;else{let n=0;p<1&&(n=0===e?H(m):gn(b,e,t));const o=Math.abs(n)<=r,l=Math.abs(s-t)<=i;a.done=o&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(x(E),y),t=S(t=>E.next(e*t).value,e,30);return e+"ms "+t}};return E}function zn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let m=n*t;const p=d+m,v=void 0===s?p:s(p);v!==p&&(m=v-d);const g=e=>-m*Math.exp(-e/r),y=e=>v+g(e),x=e=>{const t=g(e),n=y(e);f.done=Math.abs(t)<=u,f.value=f.done?v:n};let w,b;const E=e=>{var t;(t=f.value,void 0!==a&&t<a||void 0!==l&&t>l)&&(w=e,b=Vn({keyframes:[f.value,h(f.value)],velocity:gn(y,e,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return b||void 0!==w||(t=!0,x(e),E(e)),void 0!==w&&e>=w?b.next(e-w):(!t&&x(e),f)}}}const Bn=Me(.42,0,1,1),Un=Me(0,0,.58,1),Yn=Me(.42,0,.58,1),Wn={linear:_,easeIn:Bn,easeInOut:Yn,easeOut:Un,circIn:De,circInOut:Ae,circOut:je,backIn:Se,backInOut:Ne,backOut:Pe,anticipate:Ce},Hn=e=>{if(E(e)){Ft(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Me(t,n,r,i)}return"string"==typeof e?(Ft(void 0!==Wn[e],`Invalid easing type '${e}'`),Wn[e]):e};function Gn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ft(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||vn,o=e.length-1;for(let s=0;s<o;s++){let n=i(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||_:t;n=un(e,n)}r.push(n)}return r}(t,r,i),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=P(e[r],e[r+1],n);return a[r](i)};return n?t=>u(Ie(e[0],e[o-1],t)):u}function _n(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=P(0,t,r);e.push(en(n,1,i))}}(t,e.length-1),t}function $n({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Hn):Hn(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:_n(t),e),a=Gn(s,t,{ease:Array.isArray(i)?i:(l=t,u=i,l.map(()=>u||Yn).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}const Qn=e=>{const t=({timestamp:t})=>e(t);return{start:()=>te.update(t,!0),stop:()=>ne(t),now:()=>re.isProcessing?re.timestamp:ae.now()}},Xn={decay:zn,inertia:zn,tween:$n,keyframes:$n,spring:Vn},qn=e=>e/100;class Kn extends Jt{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
2{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||Ot;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,s=w(t)?t:Xn[t]||$n;let a,l;s!==$n&&"number"!=typeof e[0]&&(a=un(qn,vn(e[0],e[1])),e=[0,100]);const u=s({...this.options,keyframes:e});"mirror"===i&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=x(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:m,onUpdate:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=i;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(n=1-n,m&&(n-=m/c)):"mirror"===h&&(x=o)),y=Ie(0,1,n)*c}const w=g?{done:!1,value:a[0]}:x.next(y);s&&(w.value=s(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return E&&void 0!==r&&(w.value=Zt(a,this.options,r)),p&&p(w.value),E&&this.finish(),w}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}get time(){return G(this.currentTime)}set time(e){e=H(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Qn,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Zn=new Set(["opacity","clipPath","filter","transform"]);const Jn=h(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));const er={anticipate:Ce,backInOut:Ne,circInOut:Ae};class tr extends Jt{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new Qt(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:o,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var u;if("string"==typeof i&&T()&&i in er&&(i=er[i]),w((u=this.options).type)||"spring"===u.type||!N(u.ease)){const{onComplete:t,onUpdate:s,motionValue:a,element:l,...u}=this.options,c=function(e,t){const n=new Kn({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,r=c.times,i=c.ease,o="keyframes"}const c=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=j(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,e,{...this.options,duration:n,times:r,ease:i});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(b(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;s.set(Zt(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedProm
2ise()},{animation:c,duration:n,times:r,type:o,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return G(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return G(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=H(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return _;const{animation:n}=t;b(n,e)}else this.pendingTimeline=e;return _}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new Kn({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),d=H(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return Jn()&&n&&Zn.has(n)&&!a&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}const nr={type:"spring",stiffness:500,damping:25,restSpeed:10},rr={type:"keyframes",duration:.8},ir={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},or=(e,{keyframes:t})=>t.length>2?rr:Q.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nr:ir;const sr=(e,t,n,r={},i,o)=>s=>{const a=g(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u-=H(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...or(e,c)}),c.duration&&(c.duration=H(c.duration)),c.repeatDelay&&(c.repeatDelay=H(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),(be||K)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){const e=Zt(c.keyframes,a);if(void 0!==e)return te.update(()=>{c.onUpdate(e),c.onComplete()}),new v([])}return!o&&tr.supports(c)?new tr(c):new Kn(c)};function ar({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function lr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const c in l){const t=e.getValue(c,null!==(o=e.latestValues[c])&&void 0!==o?o:null),r=l[c];if(void 0===r||d&&ar(d,c))continue;const i={delay:n,...g(s||{},c)};let a=!1;if(window.MotionHandoffAnimation){const t=we(e);if(t){const e=window.MotionHandoffAnimation(t,c,te);null!==e&&(i.startTime=e,a=!0)}}ge(e,c),t.start(sr(c,t,r,e.shouldReduceMotion&&X.has(c)?{type:!1}:i,e,a));const f=t.animation;f&&u.push(f)}return a&&Promise.all(u).then(()=>{te.update(()=>{a&&function(e,t){const n=c(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o)pe(e,s,q(o[s]))}(e,a)})}),u}function ur(e,t,n={}){var r;const i=c(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};
2n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(lr(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;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(cr).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(ur(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}return Promise.all([s(),a(n.delay)])}function cr(e,t){return e.sortNodePosition(t)}const dr=f.length;function fr(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&fr(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<dr;n++){const r=f[n],i=e.props[r];(a(i)||!1===i)&&(t[r]=i)}return t}const hr=[...d].reverse(),mr=d.length;function pr(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=>ur(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=ur(e,t,n);else{const i="function"==typeof t?c(e,t,n.custom):t;r=Promise.all(lr(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function vr(e){let t=pr(e),n=xr(),r=!0;const l=t=>(n,r)=>{var i;const o=c(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function u(u){const{props:c}=e,d=fr(e.parent)||{},f=[],h=new Set;let m={},p=1/0;for(let t=0;t<mr;t++){const v=hr[t],g=n[v],y=void 0!==c[v]?c[v]:d[v],x=a(y),w=v===u?g.isActive:null;!1===w&&(p=t);let b=y===d[v]&&y!==c[v]&&x;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...m},!g.isActive&&null===w||!y&&!g.prevProp||i(y)||"boolean"==typeof y)continue;const E=gr(g.prevProp,y);let M=E||v===u&&g.isActive&&!b&&x||t>p&&x,L=!1;const T=Array.isArray(y)?y:[y];let P=T.reduce(l(v),{});!1===w&&(P={});const{prevResolvedValues:S={}}=g,N={...S,...P},C=t=>{M=!0,h.has(t)&&(L=!0,h.delete(t)),g.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in N){const t=P[e],n=S[e];if(m.hasOwnProperty(e))continue;let r=!1;r=o(t)&&o(n)?!s(t,n):t!==n,r?null!=t?C(e):h.add(e):void 0!==t&&h.has(e)?C(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(m={...m,...P}),r&&e.blockInitialAnimation&&(M=!1);M&&(!(b&&E)||L)&&f.push(...T.map(e=>({animation:e,options:{type:v}})))}if(h.size){const t={};h.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),f.push({animation:t})}let v=Boolean(f.length);return!r||!1!==c.initial&&c.initial!==c.animate||e.manuallyAnimateOnMount||(v=!1),r=!1,v?t(f):Prom
vendor: 13,145 bytes, line 2
2ise.resolve()}return{animateChanges:u,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const o=u(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=xr(),r=!0}}}function gr(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!s(t,e)}function yr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xr(){return{animate:yr(!0),whileInView:yr(),whileHover:yr(),whileTap:yr(),whileDrag:yr(),whileFocus:yr(),exit:yr()}}class wr{constructor(e){this.isMounted=!1,this.node=e}update(){}}let br=0;const Er={animation:{Feature:class extends wr{constructor(e){super(e),e.animationState||(e.animationState=vr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends wr{constructor(){super(...arguments),this.id=br++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Mr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Lr(e){return{point:{x:e.pageX,y:e.pageY}}}function Tr(e,t,n,r){return Mr(e,t,(e=>t=>R(t)&&e(t,Lr(t)))(n),r)}const Pr=(e,t)=>Math.abs(e-t);class Sr{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Dr(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Pr(e.x,t.x),r=Pr(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}=re;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=Nr(t,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Dr("pointercancel"===e.type?this.lastMoveEventInfo:Nr(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!R(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const o=Nr(Lr(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=re;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,Dr(o,this.history)),this.removeListeners=un(Tr(this.contextWindow,"pointermove",this.handlePointerMove),Tr(this.contextWindow,"pointerup",this.handlePointerUp),Tr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ne(this.updatePoint)}}function Nr(e,t){return t?{point:t(e.point)}:e}function Cr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dr({point:e},t){return{point:e,delta:Cr(e,Ar(t)),offset:Cr(e,jr(t)),velocity:kr(t,.1)}}function jr(e){return e[0]}function Ar(e){return e[e.length-1]}function kr(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ar(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>H(t)));)n--;if(!r)return{x:0,y:0};const o=G(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 Or(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ir(e){return e.max-e.min}function Fr(e,t,n,r=.5){e.origin=r,e.originPoint=en(t.min,t.max,e.origin),e.scale=Ir(n)/Ir(t),e.translate=en(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Rr(e,t,n,r){Fr(e.x,t.x,n.x,r?r.originX:void 0),Fr(e.y,t.y,n.y,r?r.originY:void 0)}function Vr(e,t,n){e.min=n.min+t.min,e.max=e.min+Ir(t)}function zr(e,t,n){e.min=t.min-n.min,e.max=e.min+Ir(t)}function Br(e,t,n){zr(e.x,t.x,n.x),zr(e.y,t.y,n.y)}function Ur(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 Yr(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 Wr=.35;function Hr(e,t,n){return{min:Gr(e,t),max:Gr(e,n)}}function Gr(e,t){return"number"==typeof e?e:e[t]||0}const _r=()=>({x:{min:0,max:0},y:{min:0,max:0}});function $r(e){return[e("x"),e("y")]}function Qr({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Xr(e){return void 0===e||1===e}function qr({scale:e,scaleX:t,scaleY:n}){return!Xr(e)||!Xr(t)||!Xr(n)}function Kr(e){return qr(e)||Zr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zr(e){return Jr(e.x)||Jr(e.y)}function Jr(e){return e&&"0%"!==e}function ei(e,t,n){return n+t*(e-n)}function ti(e,t,n,r,i){return void 0!==i&&(e=ei(e,i,r)),ei(e,n,r)+t}function ni(e,t=0,n=1,r,i){e.min=ti(e.min,t,n,r,i),e.max=ti(e.max,t,n,r,i)}function ri(e,{x:t,y:n}){ni(e.x,t.translate,t.scale,t.originPoint),ni(e.y,n.translate,n.scale,n.originPoint)}const ii=.999999999999,oi=1.0000000000001;function si(e,t){e.min=e.min+t,e.max=e.max+t}function ai(e,t,n,r,i=.5){ni(e,t,n,en(e.min,e.max,i),r)}function li(e,t){ai(e.x,t.x,t.scaleX,t.scale,t.originX),ai(e.y,t.y,t.scaleY,t.scale,t.originY)}function ui(e,t){return Qr(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 ci=({current:e})=>e?e.ownerDocument.defaultView:null,di=new WeakMap;class fi{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={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;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Sr(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Lr(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?A[o]?null:(A[o]=!0,()=>{A[o]=!1}):A.x||A.y?null:(A.x=A.y=!0,()=>{A.x=A.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$r(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Xe.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ir(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&te.postRender(()=>i(e,t)),ge(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)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),resumeAnimation:()=>$r(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:ci(this.visualElement)})}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&&te.postRender(()=>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.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!hi(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?en(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?en(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Or(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:Ur(e.x,n,i),y:Ur(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Wr){return!1===e?e=0:!0===e&&(e=Wr),{x:Hr(e,"left","right"),y:Hr(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$r(e=>{!1!==this.constraints&&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}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Or(e))return!1;const n=e.current;Ft(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=ui(e,n),{scroll:i}=t;return i&&(si(r.x,i.offset.x),si(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Yr(e.x,t.x),y:Yr(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=Qr(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=$r(s=>{if(!hi(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,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 ge(this.visualElement,e),n.start(sr(e,n,0,t,this.visualElement,!1))}stopAnimation(){$r(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$r(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}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){$r(t=>{const{drag:n}=this.getProps();if(!hi(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]-en(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Or(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};$r(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ir(e),i=Ir(t);return i>r?n=P(t.min,t.max-r,e.min):r>i&&(n=P(e.min,e.max-i,t.min)),Ie(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(),$r(t=>
2{if(!hi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(en(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;di.set(this.visualElement,this);const e=Tr(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Or(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),te.read(t);const i=Mr(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($r(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=Wr,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function hi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const mi=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};var pi=n(4848),vi=n(6540),gi=n(9120),yi=n(9473);const xi=(0,vi.createContext)({}),wi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ei={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!qe.test(e))return e;e=parseFloat(e)}return`${bi(e,t.target.x)}% ${bi(e,t.target.y)}%`}},Mi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ct.parse(e);if(i.length>5)return r;const o=ct.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 u=en(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=u),"number"==typeof i[3+s]&&(i[3+s]/=u),o(i)}},Li={};const{schedule:Ti,cancel:Pi}=ee(queueMicrotask,!1);class Si extends vi.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Ci,Object.assign(Li,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()})),wi.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()||te.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ti.postRender(()=>{!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 Ni(e){const[t,n]=(0,gi.xQ)(),r=(0,vi.useContext)(yi.L);return(0,pi.jsx)(Si,{...e,layoutGroup:r,switchLayoutGroup:(0,vi.useContext)(xi),isPresent:t,safeToRemove:n})}const Ci={borderRadius:{...Ei,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ei,borderTopRightRadius:Ei,borderBottomLeftRadius:Ei,borderBottomRightRadius:Ei,boxShadow:Mi};const Di=(e,t)=>e.depth-t.depth;class ji{constructor(){this.children=[],this.isDirty=!1}add(e){le(this.children,e),this.isDirty=!0}remove(e){ue(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Di),this.isDirty=!1,this.children.forEach(e)}}function Ai(e,t){const n=ae.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ne(r),e(o-t))};return te.read(r,!0),()=>ne(r)}function ki(e){const t=ve(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Oi=["TopLeft","TopRight","BottomLeft","BottomRight"],Ii=Oi.length,Fi=e=>"string"==typeof e?parseFloat(e):e,Ri=e=>"number"==typeof e||qe.test(e);function Vi(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const zi=Ui(0,.5,je),Bi=Ui(.5,.95,_);function Ui(e,t,n){return r=>r<e?0:r>t?1:n(P(e,t,r))}function Yi(e,t){e.min=t.min,e.max=t.max}function Wi(e,t){Yi(e.x,t.x),Yi(e.y,t.y)}function Hi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gi(e,t,n,r,i){return e=ei(e-=t,1/n,r),void 0!==i&&(e=ei(e,1/i,r)),e}function _i(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){Xe.test(t)&&(t=parseFloat(t),t=en(s.min,s.max,t/100)-s.min);if("number"!=typeof t)return;let a=en(o.min,o.max,r);e===o&&(a-=t),e.min=Gi(e.min,t,n,a,i),e.max=Gi(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const $i=["x","scaleX","originX"],Qi=["y","scaleY","originY"];function Xi(e,t,n,r){_i(e.x,t,$i,n?n.x:void 0,r?r.x:void 0),_i(e.y,t,Qi,n?n.y:void 0,r?r.y:void 0)}function qi(e){return 0===e.translate&&1===e.scale}
2function Ki(e){return qi(e.x)&&qi(e.y)}function Zi(e,t){return e.min===t.min&&e.max===t.max}function Ji(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eo(e,t){return Ji(e.x,t.x)&&Ji(e.y,t.y)}function to(e){return Ir(e.x)/Ir(e.y)}function no(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ro{constructor(){this.members=[]}add(e){le(this.members,e),e.scheduleRender()}remove(e){if(ue(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 r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;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)}}const io={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},oo="undefined"!=typeof window&&void 0!==window.MotionDebug,so=["","X","Y","Z"],ao={visibility:"hidden"};let lo=0;function uo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function co(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=we(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&co(r)}function fo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=lo++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,oo&&(io.totalNodes=io.resolvedTargetDeltas=io.recalculatedProjection=0),this.nodes.forEach(po),this.nodes.forEach(Eo),this.nodes.forEach(Mo),this.nodes.forEach(vo),oo&&window.MotionDebug.record(io)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ji)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ce),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=Ai(r,250),wi.hasAnimatedSinceResize&&(wi.hasAnimatedSinceResize=!1,this.nodes.forEac
2h(bo))})}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()||Co,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eo(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...g(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||bo(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,ne(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(Lo),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&co(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.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(yo);this.isUpdating||this.nodes.forEach(xo),this.isUpdating=!1,this.nodes.forEach(wo),this.nodes.forEach(ho),this.nodes.forEach(mo),this.clearAllSnapshots();const e=ae.now();re.delta=Ie(0,1e3/60,e-re.timestamp),re.timestamp=e,re.isProcessing=!0,ie.update.process(re),ie.preRender.process(re),ie.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ti.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(go),this.sharedNodes.forEach(To)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.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 n=0;n<this.path.length;n++){this.path[n].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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ki(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||Kr(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)),Ao((r=n).x),Ao(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Oo))){const{scroll:e}=this.root;e&&(si(n.x,e.offset.x),si(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Wi(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:i,options:o}=t;t!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&Wi(n,e),si(n.x,i.offset.x),si(n.y,i.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Wi(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&li(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Kr(e.latestValues)&&li(n,e.latestValues)}return Kr(this.latestValues)&&li(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Wi(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Kr(e.latestValues))continue;qr(e.latestValues)&&e.updateSnapshot();const r=_r();Wi(r,e.measurePageBox()),Xi(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Kr(this.latestValues)&&Xi(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!==re.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.isS
2haredProjectionDirty);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||this.root.updateBlockedByResize))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=re.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}},Br(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Wi(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,Vr(s.x,a.x,l.x),Vr(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Wi(this.target,this.layout.layoutBox),ri(this.target,this.targetDelta)):Wi(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}},Br(this.relativeTargetOrigin,this.target,e.target),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}oo&&io.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!qr(this.parent.latestValues)&&!Zr(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===re.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;Wi(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{visualElement:i}=o.options;i&&i.props.style&&"contents"===i.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&li(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ri(e,s)),r&&Kr(o.latestValues)&&li(e,o.latestValues))}t.x<oi&&t.x>ii&&(t.x=1),t.y<oi&&t.y>ii&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Hi(this.prevProjectionDelta.x,this.projectionDelta.x),Hi(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Rr(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&no(this.projectionDelta.x,this.prevProjectionDelta.x)&&no(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),oo&&io.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},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}}}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(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(No));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,h,m,p,v;Po(o.x,e.x,n),Po(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Br(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,p=s,v=n,So(h.x,m.x,p.x,v),So(h.y,m.y,p.y,v),d&&(l=this.relativeTarget,f=d,Zi(l.x,f.x)&&Zi(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Wi(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=en(0,void 0!==n.opacity?n.opacity:1,zi(r)),e.opacityExit=en(void 0!==t.opacity?t.opacity:1,0,Bi(r))):o&&(e.opacity=en(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<Ii;s++){const i=`border${Oi[s]}Radius`;let o=Vi(t,i),a=Vi(n,i);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Ri(o)===Ri(a)?(e[i]=Math.max(en(Fi(o),Fi(a),r),0),(Xe.test(a)||Xe.test(o))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=en(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,u)),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&&(ne(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{wi.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ve(e)?e:me(e);return r.start(sr("",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&&ko(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ir(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ir(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Wi(t,n),li(t,i),Rr(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
2)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ro);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)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&uo("z",e,r,this.animationValues);for(let i=0;i<so.length;i++)uo(`rotate${so[i]}`,e,r,this.animationValues),uo(`skew${so[i]}`,e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ao;const r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ki(null==e?void 0: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=ki(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Kr(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";
2const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(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 u in Li){if(void 0===s[u])continue;const{correct:e,applyTo:t}=Li[u],n="none"===r.transform?s[u]:e(s[u],o);if(t){const e=t.length;for(let i=0;i<e;i++)r[t[i]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=o===this?ki(null==e?void 0: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(yo),this.root.sharedNodes.clear()}}}function ho(e){e.updateLayout()}function mo(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?$r(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=Ir(r);r.min=t[e].min,r.max=r.min+i}):ko(i,n.layoutBox,t)&&$r(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=Ir(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}};Rr(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?Rr(a,e.applyTransform(r,!0),n.measuredBox):Rr(a,t,n.layoutBox);const l=!Ki(s);let u=!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}};Br(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Br(a,t,o.layoutBox),eo(s,a)||(u=!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:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function po(e){oo&&io.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 vo(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function go(e){e.clearSnapshot()}function yo(e){e.clearMeasurements()}function xo(e){e.isLayoutDirty=!1}function wo(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Eo(e){e.resolveTargetDelta()}function Mo(e){e.calcProjection()}function Lo(e){e.resetSkewAndRotation()}function To(e){e.removeLeadSnapshot()}function Po(e,t,n){e.translate=en(t.translate,0,n),e.scale=en(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function So(e,t,n,r){e.min=en(t.min,n.min,r),e.max=en(t.max,n.max,r)}function No(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Co={duration:.45,ease:[.4,0,.1,1]},Do=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jo=Do("applewebkit/")&&!Do("chrome/")?Math.round:_;function Ao(e){e.min=jo(e.min),e.max=jo(e.max)}function ko(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=to(t),i=to(n),o=.2,!(Math.abs(r-i)<=o));var r,i,o}function Oo(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Io=fo({attachResizeListener:(e,t)=>Mr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fo={current:void 0},Ro=fo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fo.current){const e=new Io({});e.mount(window),e.setOptions({layoutScroll:!0}),Fo.current=e}return Fo.current},resetTransform:(e,t)=>
2{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Vo={pan:{Feature:class extends wr{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Sr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ci(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:mi(e),onStart:mi(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&te.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Tr(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 wr{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new fi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ro,MeasureLayout:Ni}};function zo(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&te.postRender(()=>i(t,Lr(t)))}function Bo(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&te.postRender(()=>i(t,Lr(t)))}const Uo=new WeakMap,Yo=new WeakMap,Wo=e=>{const t=Uo.get(e.target);t&&t(e)},Ho=e=>{e.forEach(Wo)};function Go(e,t,n){const r=function({root:e,...t}){const n=e||document;Yo.has(n)||Yo.set(n,{});const r=Yo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ho,{root:e,...t})),r[i]}(t);return Uo.set(e,n),r.observe(e),()=>{Uo.delete(e),r.unobserve(e)}}const _o={some:0,all:1};const $o={inView:{Feature:class extends wr{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:_o[r]};return Go(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 wr{mount(){const{current:e}=this.node;e&&(this.unmount=W(e,e=>(Bo(this.node,e,"Start"),(e,{success:t})=>Bo(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends wr{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=un(Mr(this.node.current,"focus",()=>this.onFocus()),Mr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends wr{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=O(e,n),s=I(e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const o=I(e=>{r(e),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,i)});return r.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,e=>(zo(this.node,e,"Start"),e=>zo(this.node,e,"End"))))}unmount(){}}}},Qo={layout:{ProjectionNode:Ro,MeasureLayout:Ni}},Xo=(0,vi.createContext)({strict:!1});var qo=n(5446);const Ko=(0,vi.createContext)({});function Zo(e){return i(e.animate)||f.some(t=>a(e[t]))}function Jo(e){return Boolean(Zo(e)||e.variants)}function es(e){const{initial:t,animate:n}=function(e,t){if(Zo(e)){const{initial:t,animate:n}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,vi.useContext)(Ko));return(0,vi.useMemo)(()=>({initial:t,animate:n}),[ts(t),ts(n)])}function ts(e){return Array.isArray(e)?e.join(" "):e}var ns=n(8288);const rs={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"]},is={};for(const oa in rs)is[oa]={isEnabled:e=>rs[oa].some(t=>!!e[t])};const os=Symbol.for("motionComponentSymbol");function ss(e,t,n){return(0,vi.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Or(n)&&(n.current=r))},[t])}var as=n(6719),ls=n(5128);function us(e,t,n,r,i){var o,s;const{visualElement:a}=(0,vi.useContext)(Ko),l=(0,vi.useContext)(Xo),u=(0,vi.useContext)(as.t),c=(0,vi.useContext)(qo.Q).reducedMotion,d=(0,vi.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}
2));const f=d.current,h=(0,vi.useContext)(xi);!f||f.projection||!i||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:cs(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(s)||a&&Or(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,i,h);const m=(0,vi.useRef)(!1);(0,vi.useInsertionEffect)(()=>{f&&m.current&&f.update(n,u)});const p=n[xe],v=(0,vi.useRef)(Boolean(p)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,p))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,p)));return(0,ls.E)(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ti.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,vi.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,p)}),v.current=!1))}),f}function cs(e){if(e)return!1!==e.options.allowProjection?e.projection:cs(e.parent)}function ds({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;function a(e,o){let s;const a={...(0,vi.useContext)(qo.Q),...e,layoutId:fs(e)},{isStatic:l}=a,u=es(e),c=r(e,l);if(!l&&ns.B){!function(){(0,vi.useContext)(Xo).strict;0}();const e=function(e){const{drag:t,layout:n}=is;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(a);s=e.MeasureLayout,u.visualElement=us(i,c,a,t,e.ProjectionNode)}return(0,pi.jsxs)(Ko.Provider,{value:u,children:[s&&u.visualElement?(0,pi.jsx)(s,{visualElement:u.visualElement,...a}):null,n(i,e,ss(c,u.visualElement,o),c,l,u.visualElement)]})}e&&function(e){for(const t in e)is[t]={...is[t],...e[t]}}(e),a.displayName=`motion.${"string"==typeof i?i:`create(${null!==(s=null!==(o=i.displayName)&&void 0!==o?o:i.name)&&void 0!==s?s:""})`}`;const l=(0,vi.forwardRef)(a);return l[os]=i,l}function fs({layoutId:e}){const t=(0,vi.useContext)(yi.L).id;return t&&void 0!==e?t+"-"+e:e}const hs=["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 ms(e){return"string"==typeof e&&!e.includes("-")&&!!(hs.indexOf(e)>-1||/[A-Z]/u.test(e))}var ps=n(8601);const vs=e=>(t,n)=>{const r=(0,vi.useContext)(Ko),i=(0,vi.useContext)(as.t),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:gs(r,i,o,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s}(e,t,r,i);return n?o():(0,ps.M)(o)};function gs(e,t,n,r){const o={},s=r(e,{});for(const i in s)o[i]=ki(s[i]);let{initial:a,animate:l}=e;const c=Zo(e),d=Jo(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let f=!!n&&!1===n.initial;f=f||!1===a;const h=f?l:a;if(h&&"boolean"!=typeof h&&!i(h)){const t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){const r=u(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[f?e.length-1:0]}null!==e&&(o[r]=e)}for(const r in e)o[r]=e[r]}}}return o}const ys=(e,t)=>t&&"number"==typeof e?t.transform(e):e,xs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ws=$.length;function bs(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const e=t[l];if(Q.has(l))s=!0;else if(zt(l))i[l]=e;else{const t=ys(e,yt[l]);l.startsWith("origin")?(a=!0,o[l]=t):r[l]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<ws;o++){const s=$[o],a=e[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=ys(a,yt[s]);l||(i=!1,r+=`${xs[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}const Es={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ms={offset:"strokeDashoffset",array:"strokeDasharray"};function Ls(e,t,n){return"string"==typeof e?e:qe.transform(t+n*e)}function Ts(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(bs(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewB
2ox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Ls(t,e.x,e.width)} ${Ls(n,e.y,e.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Es:Ms;e[o.offset]=qe.transform(-r);const s=qe.transform(t),a=qe.transform(n);e[o.array]=`${s} ${a}`}(f,s,a,l,!1)}const Ps=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ss=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Ns=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Cs(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ds=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 js(e,t,n,r){Cs(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ds.has(i)?i:ye(i),t.attrs[i])}function As(e,{layout:t,layoutId:n}){return Q.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Li[e]||"opacity"===e)}function ks(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(ve(i[s])||t.style&&ve(t.style[s])||As(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(o[s]=i[s]);return o}function Os(e,t,n){const r=ks(e,t,n);for(const i in e)if(ve(e[i])||ve(t[i])){r[-1!==$.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}const Is=["x","y","width","height","cx","cy","r"],Fs={useVisualState:vs({scrapeMotionValuesFromProps:Os,createRenderState:Ss,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o)for(const a in i)if(Q.has(a)){o=!0;break}if(!o)return;let s=!t;if(t)for(let a=0;a<Is.length;a++){const n=Is[a];e[n]!==t[n]&&(s=!0)}s&&te.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(n){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),te.render(()=>{Ts(r,i,Ns(n.tagName),e.transformTemplate),js(n,r)})})}})},Rs={useVisualState:vs({scrapeMotionValuesFromProps:ks,createRenderState:Ps})};function Vs(e,t,n){for(const r in t)ve(t[r])||As(r,n)||(e[r]=t[r])}function zs(e,t){const n={};return Vs(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,vi.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return bs(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function Bs(e,t){const n={},r=zs(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Us=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ys(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Us.has(e)}let Ws=e=>!Ys(e);try{(Hs=require("@emotion/is-prop-valid").default)&&(Ws=e=>e.startsWith("on")?!Ys(e):Hs(e))}catch(ia){}var Hs;function Gs(e,t,n,r){const i=(0,vi.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ts(n,t,Ns(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Vs(t,e.style,e),i.style={...t,...i.style}}return i}function _s(e=!1){return(t,n,r,{latestValues:i},o)=>{const s=(ms(t)?Gs:Bs)(n,i,o,t),a=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Ws(i)||!0===n&&Ys(i)||!t&&!Ys(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==vi.Fragment?{...a,...s,ref:r}:{},{children:u}=n,c=(0,vi.useMemo)(()=>ve(u)?u.get():u,[u]);return(0,vi.createElement)(t,{...l,children:c})}}function $s(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return ds({...ms(n)?Fs:Rs,preloadedFeatures:e,useRender:_s(r),createVisualElement:t,Component:n})}}const Qs={current:null},Xs={current:!1};const qs=[..._t,tt,ct],Ks=new WeakMap;const Zs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Js{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ot,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.renderScheduledAt=0,this.scheduleRender=()=>{const e=ae.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,te.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=Zo(t),this.isVariantNode=Jo(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in d){const e=d[f];void 0!==a[f]&&ve(e)&&e.set(a[f],!1)}}mount(e){this.current=e,Ks.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 6,322 bytes, line 2
2h((e,t)=>this.bindToMotionValue(t,e)),Xs.current||function(){if(Xs.current=!0,ns.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qs.current=e.matches;e.addListener(t),t()}else Qs.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qs.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ks.delete(this.current),this.projection&&this.projection.unmount(),ne(this.notifyUpdate),ne(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),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){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Q.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&te.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in is){const t=is[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Zs.length;n++){const t=Zs[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ve(i))e.addValue(r,i);else if(ve(o))e.addValue(r,me(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,me(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);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=me(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var i;return null!=r&&("string"==typeof r&&(Rt(r)||ke(r))?r=parseFloat(r):(i=r,!qs.find(Gt(i))&&ct.test(t)&&(r=bt(e,t))),this.setBaseTarget(e,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=u(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||ve(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 ce),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ea extends Js{constructor(){super(...arguments),this.KeyframeResolver=Qt}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ve(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class ta extends ea{constructor(){super(...arguments),this.type="html",this.renderInstance=Cs}readValueFromInstance(e,t){if(Q.has(t)){const e=wt(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(zt(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ui(e,t)}build(e,t,n){bs(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ks(e,t,n)}}class na extends ea{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_r}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Q.has(t)){const e=wt(t);return e&&e.default||0}return t=Ds.has(t)?t:ye(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Os(e,t,n)}
2build(e,t,n){Ts(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){js(e,t,0,r)}mount(e){this.isSVGTag=Ns(e.tagName),super.mount(e)}}const ra=r($s({...Er,...$o,...Vo,...Qo},(e,t)=>ms(e)?new na(t):new ta(t,{allowProjection:e!==vi.Fragment})))},8367:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(6540),i=n(4122),o=n(2157),s=n(4424);function a(e,t,n){let i=(0,s.Y)(t);(0,r.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var l=n(5074);function u(e,t,n=!0){let s=(0,r.useRef)(!1);function u(n,r){if(!s.current||n.defaultPrevented)return;let o=r(n);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return!(0,i.Bm)(o,i.MZ.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{s.current=n})},[n]);let c=(0,r.useRef)(null);a("pointerdown",e=>{var t,n;s.current&&(c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("mousedown",e=>{var t,n;s.current&&(c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("click",e=>{(0,o.Fr)()||c.current&&(u(e,()=>c.current),c.current=null)},!0),a("touchend",e=>u(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,l.M)("blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},8601:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(6540);function i(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8602:function(e,t,n){"use strict";n.d(t,{N:function(){return g}});var r=n(4848),i=n(6540),o=n(9473),s=n(8601),a=n(6719),l=n(5446);class u extends i.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 c({children:e,isPresent:t}){const n=(0,i.useId)(),o=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,i.useContext)(l.Q);return(0,i.useInsertionEffect)(()=>{const{width:e,height:r,top:i,left:l}=s.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${i}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(u)}},[t]),(0,r.jsx)(u,{isPresent:t,childRef:o,sizeRef:s,children:i.cloneElement(e,{ref:o})})}const d=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:d})=>{const h=(0,s.M)(f),m=(0,i.useId)(),p=(0,i.useCallback)(e=>{h.set(e,!0);for(const t of h.values())if(!t)return;o&&o()},[h,o]),v=(0,i.useMemo)(()=>({id:m,initial:t,isPresent:n,custom:l,onExitComplete:p,register:e=>(h.set(e,!1),()=>h.delete(e))}),u?[Math.random(),p]:[n,p]);return(0,i.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),i.useEffect(()=>{!n&&!h.size&&o&&o()},[n]),"popLayout"===d&&(e=(0,r.jsx)(c,{isPresent:n,children:e})),(0,r.jsx)(a.t.Provider,{value:v,children:e})};function f(){return new Map}var h=n(9120);const m=e=>e.key||"";function p(e){const t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var v=n(5128);const g=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1})=>{const[f,g]=(0,h.xQ)(c),y=(0,i.useMemo)(()=>p(e),[e]),x=c&&!f?[]:y.map(m),w=(0,i.useRef)(!0),b=(0,i.useRef)(y),E=(0,s.M)(()=>new Map),[M,L]=(0,i.useState)(y),[T,P]=(0,i.useState)(y);(0,v.E)(()=>{w.current=!1,b.current=y;for(let e=0;e<T.length;e++){const t=m(T[e]);x.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[T,x.length,x.join("-")]);const S=[];if(y!==M){let e=[...y];for(let t=0;t<T.length;t++){const n=T[t],r=m(n);x.includes(r)||(e.splice(t,0,n),S.push(n))}return"wait"===u&&S.length&&(e=S),P(p(e)),void L(y)}const{forceRender:N}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:T.map(e=>{const i=m(e),o=!(c&&!f)&&(y===T||x.includes(i));return(0,r.jsx)(d,{isPresent:o,initial:!(w.current&&!n)&&void 0,custom:o?void 0:t,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>
2{if(!E.has(i))return;E.set(i,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==N||N(),P(b.current),c&&(null==g||g()),a&&a())},children:e},i)})})}},8975:function(e,t,n){"use strict";n.d(t,{P:function(){return a},a:function(){return s}});var r=n(6540),i=n(5015);let o=Symbol();function s(e,t=!0){return Object.assign(e,{[o]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,i._)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:n}},9120:function(e,t,n){"use strict";n.d(t,{xQ:function(){return o}});var r=n(6540),i=n(6719);function o(e=!0){const t=(0,r.useContext)(i.t);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:o,register:s}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{e&&s(a)},[e]);const l=(0,r.useCallback)(()=>e&&o&&o(a),[a,o,e]);return!n&&o?[!1,l]:[!0]}},9332:function(e,t,n){"use strict";n.d(t,{lG:function(){return ae},Lj:function(){return oe},L3:function(){return se}});var r=n(6540),i=n(5015),o=n(8084),s=n(2599),a=n(2211),l=n(6339);let u=new Map,c=new Map;function d(e){var t;let n=null!=(t=c.get(e))?t:0;return c.set(e,n+1),0!==n||(u.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>f(e)}function f(e){var t;let n=null!=(t=c.get(e))?t:1;if(1===n?c.delete(e):c.set(e,n-1),1!==n)return;let r=u.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,u.delete(e))}function h({allowed:e=()=>[],disallowed:t=()=>[]}={},n=!0){(0,l.s)(()=>{if(!n)return;let r=(0,s.e)();for(let e of t())e&&r.add(d(e));let i=e();for(let e of i){if(!e)continue;let t=(0,a.T)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)i.some(t=>e.contains(t))||r.add(d(e));n=n.parentElement}}return r.dispose},[n,e,t])}var m=n(3674),p=n(8367),v=n(4156),g=n(4032),y=n(3678),x=n(4335),w=n(8975),b=n(7442),E=n(961);let M=(0,r.createContext)(null);function L({children:e}){let t=(0,r.useContext)(M);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,E.createPortal)(r.createElement(r.Fragment,null,e),n):null}var T=n(3149),P=n(6717);let S=(0,r.createContext)(()=>{});S.displayName="StackContext";var N,C=((N=C||{})[N.Add=0]="Add",N[N.Remove=1]="Remove",N);function D({children:e,onUpdate:t,type:n,element:o,enabled:s}){let a=(0,r.useContext)(S),u=(0,i._)((...e)=>{null==t||t(...e),a(...e)});return(0,l.s)(()=>{let e=void 0===s||!0===s;return e&&u(0,n,o),()=>{e&&u(1,n,o)}},[u,n,o,s]),r.createElement(S.Provider,{value:u},e)}var j=n(5897),A=n(160),k=n(6202),O=n(6992),I=n(4610),F=n(2903),R=n(4e3);function V(e,t){let n=(0,r.useRef)([]),o=(0,i._)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,i]of t.entries())if(n.current[r]!==i){let r=o(t,e);return n.current=t,r}},[o,...t])}var z=n(9528);let B=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&B[0]!==e.target&&(B.unshift(e.target),B=B.filter(e=>null!=e&&e.isConnected),B.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var U=n(4122),Y=n(2924);function W(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var H,G=((H=G||{})[H.None=1]="None",H[H.InitialFocus=2]="InitialFocus",H[H.TabLock=4]="TabLock",H[H.FocusLock=8]="FocusLock",H[H.RestoreFocus=16]="RestoreFocus",H[H.AutoFocus=32]="AutoFocus",H[H.All=30]="All",H);let _=(0,A.FX)(function(e,t){let n=(0,r.useRef)(null),s=(0,w.P)(n,t),{initialFocus:a,initialFocusFallback:l,containers:u,features:c=30,...d}=e;(0,x.g)()||(c=1);let f=(0,v.g)(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,r.useRef)(B.slice());return V(([e],[n])=>{!0===n&&!1===e&&(0,Y._)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=B.slice())},[e,B,t]),(0,i._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);V(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,U.pW)(n())},[t]),(0,F.X)(()=>{t&&(0,U.pW)(n())})}({ownerDocument:f},!!(16&c));let h=function({ownerDocument:e,container:t,initialFocus:n,initialFocusFallback:i},o){let s=!!(2&o),a=(0,r.useRef)(null),l=(0,I.a)();return V(()=>
2{if(!s)return void(null!=i&&i.current&&(0,U.pW)(i.current));let r=t.current;r&&(0,Y._)(()=>{if(!l.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(a.current=t)}else if(r.contains(t))return void(a.current=t);if(null!=n&&n.current)(0,U.pW)(n.current);else{if(32&o){if((0,U.CU)(r,U.BD.First|U.BD.AutoFocus)!==U.Me.Error)return}else if((0,U.CU)(r,U.BD.First)!==U.Me.Error)return;if(null!=i&&i.current&&((0,U.pW)(i.current),(null==e?void 0:e.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=null==e?void 0:e.activeElement})},[i,s,o]),a}({ownerDocument:f,container:n,initialFocus:a,initialFocusFallback:l},c);!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let s=(0,I.a)();(0,o.M)(null==e?void 0:e.defaultView,"focus",e=>{if(!i||!s.current)return;let o=W(n);t.current instanceof HTMLElement&&o.add(t.current);let a=r.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?Q(o,l)?(r.current=l,(0,U.pW)(l)):(e.preventDefault(),e.stopPropagation(),(0,U.pW)(a)):(0,U.pW)(r.current)},!0)}({ownerDocument:f,container:n,containers:u,previousActiveElement:h},!!(8&c));let m=(0,R.u)(),p=(0,i._)(e=>{let t=n.current;t&&(0,j.Y)(m.current,{[R.O.Forwards]:()=>{(0,U.CU)(t,U.BD.First,{skipElements:[e.relatedTarget,l]})},[R.O.Backwards]:()=>{(0,U.CU)(t,U.BD.Last,{skipElements:[e.relatedTarget,l]})}})}),g=(0,O.L)(),y=(0,r.useRef)(!1),b={ref:s,onKeyDown(e){"Tab"==e.key&&(y.current=!0,g.requestAnimationFrame(()=>{y.current=!1}))},onBlur(e){if(!(8&c))return;let t=W(u);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(Q(t,r)||(y.current?(0,U.CU)(n.current,(0,j.Y)(m.current,{[R.O.Forwards]:()=>U.BD.Next,[R.O.Backwards]:()=>U.BD.Previous})|U.BD.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,U.pW)(e.target)))}};return r.createElement(r.Fragment,null,!!(4&c)&&r.createElement(z.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:z.u.Focusable}),(0,A.XX)({ourProps:b,theirProps:d,defaultTag:"div",name:"FocusTrap"}),!!(4&c)&&r.createElement(z.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:z.u.Focusable}))}),$=Object.assign(_,{features:G});function Q(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var X=n(4586),q=n(8302),K=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(K||{}),Z=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Z||{});let J={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ee=(0,r.createContext)(null);function te(e){let t=(0,r.useContext)(ee);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,te),t}return t}function ne(e,t){return(0,j.Y)(t.type,J,e,t)}ee.displayName="DialogContext";let re=A.Ac.RenderStrategy|A.Ac.Static;let ie=(0,A.FX)(function(e,t){let n=(0,r.useId)(),{id:s=`headlessui-dialog-${n}`,open:a,onClose:u,initialFocus:c,role:d="dialog",autoFocus:f=!0,__demoMode:E=!1,...M}=e,[S,N]=(0,r.useState)(0),O=(0,r.useRef)(!1);d="dialog"===d||"alertdialog"===d?d:(O.current||(O.current=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let I=(0,T.O_)();void 0===a&&null!==I&&(a=(I&T.Uw.Open)===T.Uw.Open);let F=(0,r.useRef)(null),R=(0,w.P)(F,t),V=(0,v.g)(F),z=e.hasOwnProperty("open")||null!==I,B=e.hasOwnProperty("onClose");if(!z&&!B)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!z)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!B)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof a)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a}`);if("function"!=typeof u)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${u}`);let U=a?0:1,[Y,W]=(0,r.useReducer)(ne,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),H=(0,i._)(()=>u(!1)),_=(0,i._)(e=>W({type:0,id:e})),Q=!!(0,x.g)()&&0===U,K=S>1,Z=null!==(0,r.useContext)(ee),[J,te]=(0,q.k2)(),ie={get current(){var e;return null!=(e=Y.panelRef.current)?e:F.current}},{resolveContainers:oe,mainTreeNodeRef:se,MainTreeNode:ae}=(0,g.i)({portals:J,defaultContainers:[ie]}),le=K?"parent":"leaf",ue=null!==I&&(I&T.Uw.Closing)===T.Uw.Closing,ce=!K&&!ue&&Q;h({allowed:(0,i._)(()=>{var e,t;return[null!=(t=null==(e=F.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,i._)(()=>{var e,t;return[null!=(t=null==(e=se.current)?void 0:e.closest("body > *:not(#headlessui-portal-root)"))?t:null]})},!E&&ce);let de=!(!Q||K);(0,p.j)(oe,e=>{e.preventDefault(),H()},de);let fe=!(K||0!==U);(0,o.M)(null==V?void 0:V.defaultView,"keydown",e=>{fe&&(e.defaultPrevented||e.key===X.D.Escape&&(e.preventDefault(),e.stopPropagation(),H()))});let he=!(ue||0!==U||Z);(0,y.K)(V,!E&&he,oe),(0,m.O)(F,H,0===U);let[me,pe]=(0,k.rU)(),ve=(0,r.useMemo)(()=>[{dialogState:U,close:H,setTitleId:_},Y],[U,Y,H,_]),ge=(0,r.useMemo)(()=>({open:0===U}),[U]),ye={ref:R,id:s,role:d,tabIndex:-1,"aria-modal":0===U||void 0,"aria-labelledby":Y.titleId,"aria-describedby":me},xe=!function(){var e;let[t]=(0,r.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,i]=(0,r.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,l.s)(()=>
2{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){i(e.matches)}},[t]),n}(),we=Q?(0,j.Y)(le,{parent:G.RestoreFocus,leaf:G.All&~G.FocusLock}):G.None;return f&&(we|=G.AutoFocus),xe||(we&=~G.InitialFocus),E&&(we=G.None),r.createElement(D,{type:"Dialog",enabled:0===U,element:F,onUpdate:(0,i._)((e,t)=>{"Dialog"===t&&(0,j.Y)(e,{[C.Add]:()=>N(e=>e+1),[C.Remove]:()=>N(e=>e-1)})})},r.createElement(P.a,{force:!0},r.createElement(q.ZL,null,r.createElement(ee.Provider,{value:ve},r.createElement(q.ZL.Group,{target:F},r.createElement(P.a,{force:!1},r.createElement(pe,{slot:ge,name:"Dialog.Description"},r.createElement(te,null,r.createElement($,{initialFocus:c,initialFocusFallback:F,containers:oe,features:we},r.createElement(b.e,{value:H},(0,A.XX)({ourProps:ye,theirProps:M,slot:ge,defaultTag:"div",features:re,visible:0===U,name:"Dialog"})))))))))),r.createElement(L,null,r.createElement(ae,null)))}),oe=(0,A.FX)(function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-dialog-panel-${n}`,...s}=e,[{dialogState:a},l]=te("Dialog.Panel"),u=(0,w.P)(t,l.panelRef),c=(0,r.useMemo)(()=>({open:0===a}),[a]),d=(0,i._)(e=>{e.stopPropagation()});return(0,A.XX)({ourProps:{ref:u,id:o,onClick:d},theirProps:s,slot:c,defaultTag:"div",name:"Dialog.Panel"})}),se=(0,A.FX)(function(e,t){let n=(0,r.useId)(),{id:i=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:s,setTitleId:a}]=te("Dialog.Title"),l=(0,w.P)(t);(0,r.useEffect)(()=>(a(i),()=>a(null)),[i,a]);let u=(0,r.useMemo)(()=>({open:0===s}),[s]);return(0,A.XX)({ourProps:{ref:l,id:i},theirProps:o,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),ae=Object.assign(ie,{Panel:oe,Title:se,Description:k.VY})},9384:function(e,t,n){"use strict";t.__esModule=!0;var r=n(2389);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))});var i=n(3064);
2Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))});var o=n(2232);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))});var s=n(3514);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},9473:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});const r=(0,n(6540).createContext)({})},9528:function(e,t,n){"use strict";n.d(t,{j:function(){return s},u:function(){return o}});var r=n(160);var i,o=((i=o||{})[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i);let s=(0,r.FX)(function(e,t){var n;let{features:i=1,...o}=e,s={ref:t,"aria-hidden":!(2&~i)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~i)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~i)&&!!(2&~i)&&{display:"none"}}};return(0,r.XX)({ourProps:s,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})},9821:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var r=n(6540),i=n(6339);function o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function s(e,t){let[n,s]=(0,r.useState)(()=>o(e));return(0,i.s)(()=>{s(o(e))},[e.type,e.as]),(0,i.s)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&s("button")},[n,t]),n}},9851:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let o=new class{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}}}]); 3//# sourceMappingURL=commons-b7ff57f73c8840297c98.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.