(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339],{1726:function(e,t,r){"use strict";r.d(t,{Z:function(){return e4}});var n,i,o,a=r(7294),s=r(9864),l=r(6774),u=r.n(l),c=function(e){function t(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";sn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0p)&&(z=(q=q.replace(" ",":")).length),0e.charCodeAt(2)),n[e]}),h=r(8679),m=r.n(h),g=r(3454);function v(){return(v=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var _=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=I&&(I=t+1),T.set(e,t),R.set(t,e)},F="style["+C+'][data-styled-version="5.3.10"]',L=RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.10");var a=z();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},V=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")}),n+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),W=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=G(t%52)+r;return(G(t%52)+r).replace(W,"$1-$2")}var Z=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},K=function(e){return Z(5381,e)};function X(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}}else{for(var l=this.rules.length,u=Z(this.baseHash,r.hash),c="",d=0;d>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?S:e,a=o.options,s=o.plugins,l=void 0===s?w:s,u=new c(void 0===a?S:a),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),p=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function h(e,o,a,s){void 0===s&&(s="&");var l=e.replace(et,"");return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),u(a||!o?"":o,o&&a?a+" "+o+" { "+l+" }":l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=l.length?l.reduce(function(e,t){return t.name||O(15),Z(e,t.name)},5381).toString():"",h}var ei=a.createContext(),eo=(ei.Consumer,a.createContext()),ea=(eo.Consumer,new Y),es=en();function el(){return(0,a.useContext)(ei)||ea}function eu(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],i=el(),o=(0,a.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,a.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,a.useEffect)(function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(ei.Provider,{value:o},a.createElement(eo.Provider,{value:s},e.children))}var ec=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=es);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return O(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=es),this.name+e.hash},e}(),ed=/([A-Z])/,ef=/([A-Z])/g,ep=/^ms-/,eh=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(ef,eh).replace(ep,"-ms-"):e}var eg=function(e){return null==e||!1===e||""===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,eS=/(^-|-$)/g;function eE(e){return e.replace(ew,"-").replace(eS,"")}var ek=function(e){return Q(K(e)>>>0)};function ex(e){return"string"==typeof e}var eC=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eA=a.createContext();eA.Consumer;var eP={},eO=function(e){return function e(t,r,n){if(void 0===n&&(n=S),!(0,s.isValidElementType)(r))return O(1,String(r));var i=function(){return t(r,n,eb.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,v({},n,{},i))},i.attrs=function(i){return e(t,r,v({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(function e(t,r,n){var i=x(t),o=!ex(t),s=r.attrs,l=void 0===s?w:s,u=r.componentId,c=void 0===u?(b=r.displayName,C=r.parentComponentId,eP[A="string"!=typeof b?"sc":eE(b)]=(eP[A]||0)+1,P=A+"-"+ek("5.3.10"+A+eP[A]),C?C+"-"+P:P):u,d=r.displayName,f=void 0===d?ex(t)?"styled."+t:"Styled("+k(t)+")":d,h=r.displayName&&r.componentId?eE(r.displayName)+"-"+r.componentId:r.componentId||c,g=i&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,y=r.shouldForwardProp;i&&t.shouldForwardProp&&(y=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var b,C,A,P,O,_=new ee(n,h,i?t.componentStyle:void 0),T=_.isStatic&&0===l.length,R=function(e,t){return function(e,t,r,n){var i,o,s,l,u,c,d,f=e.attrs,h=e.componentStyle,m=e.defaultProps,g=e.foldedComponentIds,y=e.shouldForwardProp,b=e.styledComponentId,w=e.target,k=(i=(0,a.useContext)(eA),void 0===(o=m)&&(o=S),void 0===(s=t.theme!==o.theme&&t.theme||i||o.theme||S)&&(s=S),l=v({},t,{theme:s}),u={},f.forEach(function(e){var t,r,n,i=e;for(t in E(i)&&(i=i(l)),i)l[t]=u[t]="className"===t?(r=u[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),[l,u]),x=k[0],C=k[1],A=(c=el(),d=(0,a.useContext)(eo)||es,n?h.generateAndInjectStyles(S,c,d):h.generateAndInjectStyles(x,c,d)),P=C.$as||t.$as||C.as||t.as||w,O=ex(P),_=C!==t?v({},t,{},C):t,T={};for(var R in _)"$"!==R[0]&&"as"!==R&&("forwardedAs"===R?T.as=_[R]:(y?y(R,p,P):!O||p(R))&&(T[R]=_[R]));return t.style&&C.style!==t.style&&(T.style=v({},t.style,{},C.style)),T.className=Array.prototype.concat(g,b,A!==b?A:null,t.className,C.className).filter(Boolean).join(" "),T.ref=r,(0,a.createElement)(P,T)}(O,e,t,T)};return R.displayName=f,(O=a.forwardRef(R)).attrs=g,O.componentStyle=_,O.displayName=f,O.shouldForwardProp=y,O.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):w,O.styledComponentId=h,O.target=i?t.target:t,O.withComponent=function(t){var i=r.componentId,o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(r,["componentId"]),a=i&&i+"-"+(ex(t)?t:eE(k(t)));return e(t,v({},o,{attrs:g,componentId:a}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i1?t-1:0),n=1;n2&&Y.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},(o=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=z();return""},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return O(2);var t,r=((t={})[C]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=z();return n&&(r.nonce=n),[a.createElement("style",v({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Y({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?O(2):a.createElement(eu,{sheet:this.instance},e)},o.interleaveWithNodeStream=function(e){return O(3)};var eM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[];void 0===t&&(t=e,e=0);for(var i=e;i1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:4;return eF(["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e).join("")},eD="(prefers-reduced-motion: no-preference)",ez="undefined"==typeof window,e$=function(){return!!ez||!window.matchMedia(eD).matches},eV=function(e,t,r){var n=a.useRef(null),i=a.useRef(e);return a.useEffect(function(){i.current=e}),a.useEffect(function(){return"number"==typeof t&&"number"==typeof r&&function e(){var o=eL(t,r);n.current=window.setTimeout(function(){i.current(),e()},o)}(),function(){return window.clearTimeout(n.current)}},[t,r]),a.useCallback(function(){window.clearTimeout(n.current)},[])};function eq(){var e=eI(["\n position: relative;\n z-index: 2;\n font-weight: bold;\n"]);return eq=function(){return e},e}function eH(){var e=eI(["\n display: block;\n\n @media (prefers-reduced-motion: no-preference) {\n animation: "," 1000ms linear;\n }\n"]);return eH=function(){return e},e}function eU(){var e=eI(["\n position: absolute;\n display: block;\n\n @media (prefers-reduced-motion: no-preference) {\n animation: "," 900ms forwards;\n }\n"]);return eU=function(){return e},e}function eB(){var e=eI(["\n display: inline-block;\n position: relative;\n color: inherit;\n text-shadow: 0px 0px 3px var(--color-background),\n 1px 1px 1px var(--color-background);\n"]);return eB=function(){return e},e}function eY(){var e=eI(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(100deg);\n }\n"]);return eY=function(){return e},e}function eW(){var e=eI(["\n 0% {\n transform: translate3d(-50%, -50%, 0) scale(0);\n }\n 50% {\n transform: translate3d(-50%, -50%, 0) scale(1);\n }\n 100% {\n transform: translate3d(-50%, -50%, 0) scale(0);\n }\n"]);return eW=function(){return e},e}function eG(){var e=eI(["\n display: ",";\n margin: 0;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font: inherit;\n\n &:focus {\n outline: 2px auto var(--color-primary);\n outline-offset: 2px;\n }\n\n &:focus:not(.focus-visible) {\n outline: none;\n }\n"]);return eG=function(){return e},e}var eQ=eO.button(eG(),function(e){return e.display||"block"}),eZ=function(e){var t={};return t.left=eL(0,100)+"%",t.zIndex=eF([1,3])[0],Math.random()>.5?t.top=.5*e:t.bottom=-(.5*e),t},eK=function(e,t,r,n){var i=eL(t,r);return{id:eN(),color:eF(e)[0],size:i,numOfPoints:4,createdAt:Date.now(),style:n(i)}},eX=function(e){var t=e.size,r=e.color,n=e.style,i=e.numOfPoints;return a.createElement(e2,{style:n},a.createElement(e3,{width:t,height:t,viewBox:"0 0 184 184",fill:"none"},a.createElement("path",{d:4===(void 0===i?4:i)?"M92 0C92 0 96 63.4731 108.263 75.7365C120.527 88 184 92 184 92C184 92 118.527 98 108.263 108.263C98 118.527 92 184 92 184C92 184 86.4731 119 75.7365 108.263C65 97.5269 0 92 0 92C0 92 63.9731 87.5 75.7365 75.7365C87.5 63.9731 92 0 92 0Z":"M34 0C34 0 33.4886 20.0074 41.7749 26.3376C50.0612 32.6678 68 25.9737 68 25.9737C68 25.9737 49.7451 31.6449 46.58 41.8873C43.4149 52.1298 55.0132 68 55.0132 68C55.0132 68 44.2424 51.4976 34 51.4976C23.7576 51.4976 12.9868 68 12.9868 68C12.9868 68 24.5851 52.1298 21.42 41.8873C18.2549 31.6449 0 25.9737 0 25.9737C0 25.9737 17.9388 32.6678 26.2251 26.3376C34.5114 20.0074 34 0 34 0Z",fill:r})))},eJ=e_(eW()),e0=e_(eY()),e1=eO(eQ)(eB()),e2=eO.span(eU(),eJ),e3=eO.svg(eH(),e0),e5=eO.strong(eq()),e4=function(e){var t,r,n,i,o,s,l=e.rate,u=void 0===l?250:l,c=e.variance,d=void 0===c?200:c,f=e.minSize,p=void 0===f?10:f,h=e.maxSize,m=void 0===h?20:h,g=e.colors,v=void 0===g?["#FFC700"]:g,y=e.children,b=e.isToggleable,w=void 0===b||b,S=e.style,E=e.generatePosition,k=void 0===E?eZ:E,x=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["rate","variance","minSize","maxSize","colors","children","isToggleable","style","generatePosition"]),C="rainbow"===v?["hsl(50deg, 100%, 65%)","hsl(210deg, 100%, 65%)","hsl(340deg, 100%, 60%)"]:v,A=ej(a.useState(function(){return eM(3).map(function(){return eK(C,p,m,k)})}),2),P=A[0],O=A[1],_=ej(a.useState(!0),2),T=_[0],R=_[1],I=a.useRef(),j=(r=(t=ej(a.useState(!0),2))[0],n=t[1],a.useEffect(function(){if(!I.current)return null;var e=new window.IntersectionObserver(function(e,t){n(ej(e,1)[0].intersectionRatio>0)});return e.observe(I.current),function(){e.disconnect()}},[I]),r),M=(o=(i=ej((0,a.useState)(e$),2))[0],s=i[1],(0,a.useEffect)(function(){var e=window.matchMedia(eD),t=function(e){s(!e.matches)};return e.addListener(t),function(){e.removeListener(t)}},[]),o);return eV(function(){if(j&&T){var e=eK(C,p,m,k),t=Date.now(),r=P.filter(function(e){return t-e.createdAt<1e3});r.push(e),O(r)}},M?null:u-d,M?null:u+d),a.createElement(e1,eT({ref:I,asElement:w?eQ:"div",onClick:function(){w&&R(!T)},style:function(e){for(var t=1;t{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===r&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function m(e){let[t,r]=o.version.split("."),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{imgAttributes:r,heightInt:n,widthInt:i,qualityInt:a,className:s,imgStyle:l,blurStyle:u,isLazy:c,fetchPriority:d,fill:f,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:w,onLoadRef:S,onLoadingCompleteRef:E,setBlurComplete:k,setShowAltText:x,onLoad:C,onError:A,...P}=e;return g=c?"lazy":g,o.default.createElement("img",{...P,...m(d),loading:g,width:i,height:n,decoding:"async","data-nimg":f?"fill":"1",className:s,style:{...l,...u},...r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(A&&(e.src=e.src),e.complete&&h(e,v,p,S,E,k,b))},[v,p,S,E,k,A,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,S,E,k,b)},onError:e=>{x(!0),"blur"===p&&k(!0),A&&A(e)}})}),v=(0,o.forwardRef)((e,t)=>{var r;let n,i,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:w,className:S,quality:E,width:k,height:x,fill:C,style:A,onLoad:P,onLoadingComplete:O,placeholder:_="empty",blurDataURL:T,fetchPriority:R,layout:I,objectFit:j,objectPosition:M,lazyBoundary:F,lazyRoot:L,...N}=e,D=(0,o.useContext)(u.ImageConfigContext),z=(0,o.useMemo)(()=>{let e=d||D||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[D]),$=N.loader||c.default;delete N.loader;let V="__next_img_default"in $;if(V){if("custom"===z.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=$;$=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(A={...A,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!v&&(v=t)}let q="",H=p(k),U=p(x);if("object"==typeof(r=h)&&(f(r)||void 0!==r.src)){let e=f(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(n=e.blurWidth,i=e.blurHeight,T=T||e.blurDataURL,q=e.src,!C){if(H||U){if(H&&!U){let t=H/e.width;U=Math.round(e.height*t)}else if(!H&&U){let t=U/e.height;H=Math.round(e.width*t)}}else H=e.width,U=e.height}}let B=!b&&("lazy"===w||void 0===w);(!(h="string"==typeof h?h:q)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,B=!1),z.unoptimized&&(y=!0),V&&h.endsWith(".svg")&&!z.dangerouslyAllowSVG&&(y=!0),b&&(R="high");let[Y,W]=(0,o.useState)(!1),[G,Q]=(0,o.useState)(!1),Z=p(E),K=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:M}:{},G?{}:{color:"transparent"},A),X="blur"===_&&T&&!Y?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,s.getImageBlurSvg)({widthInt:H,heightInt:U,blurWidth:n,blurHeight:i,blurDataURL:T,objectFit:K.objectFit})+'")'}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:z,src:h,unoptimized:y,width:H,quality:Z,sizes:v,loader:$}),ee=h,et=(0,o.useRef)(P);(0,o.useEffect)(()=>{et.current=P},[P]);let er=(0,o.useRef)(O);(0,o.useEffect)(()=>{er.current=O},[O]);let en={isLazy:B,imgAttributes:J,heightInt:U,widthInt:H,qualityInt:Z,className:S,imgStyle:K,blurStyle:X,loading:w,config:z,fetchPriority:R,fill:C,unoptimized:y,placeholder:_,loader:$,srcString:ee,onLoadRef:et,onLoadingCompleteRef:er,setBlurComplete:W,setShowAltText:Q,...N};return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...en,ref:t}),b?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+J.src+J.srcSet+J.sizes,rel:"preload",as:"image",href:J.srcSet?void 0:J.src,imageSrcSet:J.srcSet,imageSizes:J.sizes,crossOrigin:N.crossOrigin,...m(R)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7757:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n||t,l=i||r,u=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+s+" "+l+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(n&&i?"1":"20")+"'/%3E"+u+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},7746:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},7663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;rg(e,i),a=w();o.write=e=>g(e,a);var s=w();o.onStart=e=>g(e,s);var l=w();o.onFrame=e=>g(e,l);var u=w();o.onFinish=e=>g(e,u);var c=[];o.setTimeout=(e,t)=>{let r=o.now()+t,n=()=>{let e=c.findIndex(e=>e.cancel==n);~e&&c.splice(e,1),h-=~e?1:0},i={time:r,handler:e,cancel:n};return c.splice(d(r),0,i),h+=1,v(),i};var d=e=>~(~c.findIndex(t=>t.time>e)||~c.length);o.cancel=e=>{s.delete(e),l.delete(e),u.delete(e),i.delete(e),a.delete(e)},o.sync=e=>{m=!0,o.batchedUpdates(e),m=!1},o.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,o.onStart(r)}return n.handler=e,n.cancel=()=>{s.delete(r),t=null},n};var f="u">typeof window?window.requestAnimationFrame:()=>{};o.use=e=>f=e,o.now="u">typeof performance?()=>performance.now():Date.now,o.batchedUpdates=e=>e(),o.catch=console.error,o.frameLoop="always",o.advance=()=>{"demand"!==o.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};var p=-1,h=0,m=!1;function g(e,t){m?(t.delete(e),e(0)):(t.add(e),v())}function v(){p<0&&(p=0,"demand"!==o.frameLoop&&f(y))}function y(){~p&&(f(y),o.batchedUpdates(b))}function b(){let e=p;p=o.now();let t=d(p);if(t&&(S(c.splice(0,t),e=>e.handler()),h-=t),!h){p=-1;return}s.flush(),i.flush(e?Math.min(64,p-e):16.667),l.flush(),a.flush(),u.flush()}function w(){let e=new Set,t=e;return{add(r){h+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(h-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,h-=t.size,S(t,t=>t(r)&&e.add(t)),h+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){o.catch(e)}})}var E=r(7294),k=Object.defineProperty,x={};function C(){}((e,t)=>{for(var r in t)k(e,r,{get:t[r],enumerable:!0})})(x,{assign:()=>$,colors:()=>N,createStringInterpolator:()=>j,skipAnimation:()=>D,to:()=>M,willAdvance:()=>z});var A=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),P={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function O(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let r=0;re.forEach(t);function T(e,t,r){if(P.arr(e)){for(let n=0;nP.und(e)?[]:P.arr(e)?e:[e];function I(e,t){if(e.size){let r=Array.from(e);e.clear(),_(r,t)}}var j,M,F=(e,...t)=>I(e,e=>e(...t)),L=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),N=null,D=!1,z=C,$=e=>{e.to&&(M=e.to),e.now&&(o.now=e.now),void 0!==e.colors&&(N=e.colors),null!=e.skipAnimation&&(D=e.skipAnimation),e.createStringInterpolator&&(j=e.createStringInterpolator),e.requestAnimationFrame&&o.use(e.requestAnimationFrame),e.batchedUpdates&&(o.batchedUpdates=e.batchedUpdates),e.willAdvance&&(z=e.willAdvance),e.frameLoop&&(o.frameLoop=e.frameLoop)},V=new Set,q=[],H=[],U=0,B={get idle(){return!V.size&&!q.length},start(e){U>e.priority?(V.add(e),o.onStart(Y)):(W(e),o(Q))},advance:Q,sort(e){if(U)o.onFrame(()=>B.sort(e));else{let t=q.indexOf(e);~t&&(q.splice(t,1),G(e))}},clear(){q=[],V.clear()}};function Y(){V.forEach(W),V.clear(),o(Q)}function W(e){q.includes(e)||G(e)}function G(e){var t;let r;q.splice((r=(t=q).findIndex(t=>t.priority>e.priority))<0?t.length:r,0,e)}function Q(e){let t=H;for(let r=0;r0}var Z="[-+]?\\d*\\.?\\d+",K=Z+"%";function X(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var J=RegExp("rgb"+X(Z,Z,Z)),ee=RegExp("rgba"+X(Z,Z,Z,Z)),et=RegExp("hsl"+X(Z,K,K)),er=RegExp("hsla"+X(Z,K,K,Z)),en=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ei=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eo=/^#([0-9a-fA-F]{6})$/,ea=/^#([0-9a-fA-F]{8})$/;function es(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function el(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,i=2*r-n;return Math.round(255*es(i,n,e+1/3))<<24|Math.round(255*es(i,n,e))<<16|Math.round(255*es(i,n,e-1/3))<<8}function eu(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function ed(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ef(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ep(e){let t;let r="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=eo.exec(e))?parseInt(t[1]+"ff",16)>>>0:N&&void 0!==N[e]?N[e]:(t=J.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|255)>>>0:(t=ee.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|ed(t[4]))>>>0:(t=en.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ea.exec(e))?parseInt(t[1],16)>>>0:(t=ei.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=et.exec(e))?(255|el(ec(t[1]),ef(t[2]),ef(t[3])))>>>0:(t=er.exec(e))?(el(ec(t[1]),ef(t[2]),ef(t[3]))|ed(t[4]))>>>0:null;return null===r?e:`rgba(${(4278190080&(r=r||0))>>>24}, ${(16711680&r)>>>16}, ${(65280&r)>>>8}, ${(255&r)/255})`}var eh=(e,t,r)=>{if(P.fun(e))return e;if(P.arr(e))return eh({range:e,output:t,extrapolate:r});if(P.str(e.output[0]))return j(e);let n=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r=e);++r);return r-1}(t,i);return function(e,t,r,n,i,o,a,s,l){let u=l?l(e):e;if(ur){if("identity"===s)return u;"clamp"===s&&(u=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=o(u),n===-1/0?u=-u:i===1/0?u+=n:u=u*(i-n)+n,u)}(t,i[r],i[r+1],n[r],n[r+1],s,o,a,e.map)}},em=Symbol.for("FluidValue.get"),eg=Symbol.for("FluidValue.observers"),ev=e=>!!(e&&e[em]),ey=e=>e&&e[em]?e[em]():e,eb=e=>e[eg]||null;function ew(e,t){let r=e[eg];r&&r.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var eS=class{[em];[eg];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eE(this,e)}},eE=(e,t)=>eA(e,em,t);function ek(e,t){if(e[em]){let r=e[eg];r||eA(e,eg,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function ex(e,t){let r=e[eg];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[eg]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var eC,eA=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),eP=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eO=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,e_=RegExp(`(${eP.source})(%|[a-z]+)`,"i"),eT=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eR=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eI=e=>{let[t,r]=ej(e);if(!t||L())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||e:r&&eR.test(r)?eI(r):r||e},ej=e=>{let t=eR.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]},eM=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,eF=e=>{eC||(eC=N?RegExp(`(${Object.keys(N).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ey(e).replace(eR,eI).replace(eO,ep).replace(eC,ep)),r=t.map(e=>e.match(eP).map(Number)),n=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eh({...e,output:t}));return e=>{let r=!e_.test(t[0])&&t.find(e=>e_.test(e))?.replace(eP,""),i=0;return t[0].replace(eP,()=>`${n[i++](e)}${r||""}`).replace(eT,eM)}},eL="react-spring: ",eN=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eL}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},eD=eN(console.warn),ez=eN(console.warn);function e$(e){return P.str(e)&&("#"==e[0]||/\d/.test(e)||!L()&&eR.test(e)||e in(N||{}))}new WeakMap,new WeakMap,new WeakMap,new WeakMap;var eV=L()?E.useEffect:E.useLayoutEffect,eq=()=>{let e=(0,E.useRef)(!1);return eV(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eH(){let e=(0,E.useState)()[1],t=eq();return()=>{t.current&&e(Math.random())}}var eU=e=>(0,E.useEffect)(e,eB),eB=[];function eY(e){let t=(0,E.useRef)();return(0,E.useEffect)(()=>{t.current=e}),t.current}var eW=Symbol.for("Animated:node"),eG=e=>!!e&&e[eW]===e,eQ=e=>e&&e[eW],eZ=(e,t)=>A(e,eW,t),eK=e=>e&&e[eW]&&e[eW].getPayload(),eX=class{payload;constructor(){eZ(this,this)}getPayload(){return this.payload||[]}},eJ=class extends eX{constructor(e){super(),this._value=e,P.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new eJ(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return P.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,P.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},e0=class extends eJ{_string=null;_toString;constructor(e){super(0),this._toString=eh({output:[e,e]})}static create(e){return new e0(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(P.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=eh({output:[this.getValue(),e]})),this._value=0,super.reset()}},e1={dependencies:null},e2=class extends eX{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return T(this.source,(r,n)=>{eG(r)?t[n]=r.getValue(e):ev(r)?t[n]=ey(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&_(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return T(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){e1.dependencies&&ev(e)&&e1.dependencies.add(e);let t=eK(e);t&&_(t,e=>this.add(e))}},e3=class extends e2{constructor(e){super(e)}static create(e){return new e3(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(e5)),!0)}};function e5(e){return(e$(e)?e0:eJ).create(e)}function e4(e){let t=eQ(e);return t?t.constructor:P.arr(e)?e3:e$(e)?e0:eJ}var e7=(e,t)=>{let r=!P.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,E.forwardRef)((n,i)=>{var a;let s;let l=(0,E.useRef)(null),u=r&&(0,E.useCallback)(e=>{var t;l.current=((t=i)&&(P.fun(t)?t(e):t.current=e),e)},[i]),[c,d]=(a=n,s=new Set,e1.dependencies=s,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new e2(a),e1.dependencies=null,[a,s]),f=eH(),p=()=>{let e=l.current;(!r||e)&&(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))===!1&&f()},h=new e9(p,d),m=(0,E.useRef)();eV(()=>(m.current=h,_(d,e=>ek(e,h)),()=>{m.current&&(_(m.current.deps,e=>ex(e,m.current)),o.cancel(m.current.update))})),(0,E.useEffect)(p,[]),eU(()=>()=>{let e=m.current;_(e.deps,t=>ex(t,e))});let g=t.getComponentProps(c.getValue());return E.createElement(e,{...g,ref:u})})},e9=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&o.write(this.update)}},e6=Symbol.for("AnimatedComponent"),e8=e=>P.str(e)?e:e&&P.str(e.displayName)?e.displayName:P.fun(e)&&e.name||null;function te(e,...t){return P.fun(e)?e(...t):e}var tt=(e,t)=>!0===e||!!(t&&e&&(P.fun(e)?e(t):R(e).includes(t))),tr=(e,t)=>P.obj(e)?t&&e[t]:e,tn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,ti=e=>e,to=(e,t=ti)=>{let r=ta;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let n={};for(let i of r){let r=t(e[i],i);P.und(r)||(n[i]=r)}return n},ta=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ts={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tl(e){let t=function(e){let t={},r=0;if(T(e,(e,n)=>{ts[n]||(t[n]=e,r++)}),r)return t}(e);if(t){let r={to:t};return T(e,(e,n)=>n in t||(r[n]=e)),r}return{...e}}function tu(e){return e=ey(e),P.arr(e)?e.map(tu):e$(e)?x.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tc(e){for(let t in e)return!0;return!1}function td(e){return P.fun(e)||P.arr(e)&&P.obj(e[0])}function tf(e,t){e.ref?.delete(e),t?.delete(e)}function tp(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var th={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},tm={...th.default,mass:1,damping:1,easing:e=>e,clamp:!1},tg=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,tm)}};function tv(e,t){if(P.und(t.decay)){let r=!P.und(t.tension)||!P.und(t.friction);!r&&P.und(t.frequency)&&P.und(t.damping)&&P.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var ty=[],tb=class{changed=!1;values=ty;toValues=null;fromValues=ty;to;from;config=new tg;immediate=!1};function tw(e,{key:t,props:r,defaultProps:n,state:i,actions:a}){return new Promise((s,l)=>{let u,c,d=tt(r.cancel??n?.cancel,t);if(d)h();else{P.und(r.pause)||(i.paused=tt(r.pause,t));let e=n?.pause;!0!==e&&(e=i.paused||tt(e,t)),u=te(r.delay||0,t),e?(i.resumeQueue.add(p),a.pause()):(a.resume(),p())}function f(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-o.now()}function p(){u>0&&!x.skipAnimation?(i.delayed=!0,c=o.setTimeout(h,u),i.pauseQueue.add(f),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(f),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{a.start({...r,callId:e,cancel:d},s)}catch(e){l(e)}}})}var tS=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tx(e.get()):t.every(e=>e.noop)?tE(e.get()):tk(e.get(),t.every(e=>e.finished)),tE=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tk=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),tx=e=>({value:e,cancelled:!0,finished:!1});function tC(e,t,r,n){let{callId:i,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=r;return a||e!==l||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let c=to(t,(e,t)=>"onRest"===t?void 0:e),d,f,p=new Promise((e,t)=>(d=e,f=t)),h=e=>{let t=i<=(r.cancelId||0)&&tx(n)||i!==r.asyncId&&tk(n,!1);if(t)throw e.result=t,f(e),e},m=(e,t)=>{let o=new tP,a=new tO;return(async()=>{if(x.skipAnimation)throw tA(r),a.result=tk(n,!1),f(a),a;h(o);let s=P.obj(e)?{...e}:{...t,to:e};s.parentId=i,T(c,(e,t)=>{P.und(s[t])&&(s[t]=e)});let l=await n.start(s);return h(o),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),l})()},g;if(x.skipAnimation)return tA(r),tk(n,!1);try{let t;t=P.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([t.then(d),p]),g=tk(n.get(),!0,!1)}catch(e){if(e instanceof tP)g=e.result;else if(e instanceof tO)g=e.result;else throw e}finally{i==r.asyncId&&(r.asyncId=a,r.asyncTo=a?l:void 0,r.promise=a?u:void 0)}return P.fun(s)&&o.batchedUpdates(()=>{s(g,n,n.item)}),g})():u}function tA(e,t){I(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tP=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tO=class extends Error{result;constructor(){super("SkipAnimationSignal")}},t_=e=>e instanceof tR,tT=1,tR=class extends eS{id=tT++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=eQ(this);return e&&e.getValue()}to(...e){return x.to(this,e)}interpolate(...e){return eD(`${eL}The "interpolate" function is deprecated in v9 (use "to" instead)`),x.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ew(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||B.sort(this),ew(this,{type:"priority",parent:this,priority:e})}},tI=Symbol.for("SpringPhase"),tj=e=>(1&e[tI])>0,tM=e=>(2&e[tI])>0,tF=e=>(4&e[tI])>0,tL=(e,t)=>t?e[tI]|=3:e[tI]&=-3,tN=(e,t)=>t?e[tI]|=4:e[tI]&=-5,tD=class extends tR{key;animation=new tb;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!P.und(e)||!P.und(t)){let r=P.obj(e)?{...e}:{...t,from:e};P.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(tM(this)||this._state.asyncTo)||tF(this)}get goal(){return ey(this.animation.to)}get velocity(){let e=eQ(this);return e instanceof eJ?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return tj(this)}get isAnimating(){return tM(this)}get isPaused(){return tF(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,n=this.animation,{toValues:i}=n,{config:o}=n,a=eK(n.to);!a&&ev(n.to)&&(i=R(ey(n.to))),n.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==e0?1:a?a[l].lastPosition:i[l],c=n.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=P.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(r==u?.005:Math.min(1,.001*Math.abs(u-r)));if(P.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),c=Math.abs(s.lastPosition-d)<=f,a=i*n}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,n=o.clamp?0:o.bounce,l=!P.und(n),p=r==u?s.v0>0:rt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==p)&&(a=-a*n,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let n=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(n=(o.progress||0)+t/this._memoizedDuration)>1?1:n<0?0:n,s.durationProgress=n),a=((d=r+o.easing(n)*(u-r))-s.lastPosition)/e,c=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(r=!0)});let s=eQ(this),l=s.getValue();if(t){let e=ey(n.to);(l!==e||r)&&!o.decay?(s.setValue(e),this._onChange(e)):r&&o.decay&&this._onChange(l),this._stop()}else r&&this._onChange(l)}set(e){return o.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tM(this)){let{to:e,config:t}=this.animation;o.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return P.und(e)?(r=this.queue||[],this.queue=[]):r=[P.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>tS(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tA(this._state,e&&this._lastCallId),o.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:r,from:n}=e;(null==(r=P.obj(r)?r[t]:r)||td(r))&&(r=void 0),null==(n=P.obj(n)?n[t]:n)&&(n=void 0);let i={to:r,from:n};return tj(this)||(e.reverse&&([r,n]=[n,r]),n=ey(n),P.und(n)?eQ(this)||this._set(r):this._set(n)),i}_update({...e},t){let{key:r,defaultProps:n}=this;e.default&&Object.assign(n,to(e,(e,t)=>/^on/.test(t)?tr(e,r):e)),tU(this,e,"onProps"),tB(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return tw(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{tF(this)||(tN(this,!0),F(o.pauseQueue),tB(this,"onPause",tk(this,tz(this,this.animation.to)),this))},resume:()=>{tF(this)&&(tN(this,!1),tM(this)&&this._resume(),F(o.resumeQueue),tB(this,"onResume",tk(this,tz(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){let t=t$(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(tx(this));let n=!P.und(e.to),i=!P.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(tx(this));this._lastToId=t.callId}let{key:a,defaultProps:s,animation:l}=this,{to:u,from:c}=l,{to:d=u,from:f=c}=e;i&&!n&&(!t.default||P.und(d))&&(d=f),t.reverse&&([d,f]=[f,d]);let p=!O(f,c);p&&(l.from=f),f=ey(f);let h=!O(d,u);h&&this._focus(d);let m=td(t.to),{config:g}=l,{decay:v,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!m&&function(e,t,r){for(let n in r&&(tv(r={...r},t),t={...r,...t}),tv(e,t),Object.assign(e,t),tm)null==e[n]&&(e[n]=tm[n]);let{frequency:n,damping:i}=e,{mass:o}=e;P.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*i*o/n)}(g,te(t.config,a),t.config!==s.config?te(s.config,a):void 0);let b=eQ(this);if(!b||P.und(d))return r(tk(this,!0));let w=P.und(t.reset)?i&&!t.default:!P.und(f)&&tt(t.reset,a),S=w?f:this.get(),E=tu(d),k=P.num(E)||P.arr(E)||e$(E),x=!m&&(!k||tt(s.immediate||t.immediate,a));if(h){let e=e4(d);if(e!==b.constructor){if(x)b=this._set(E);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,A=ev(d),T=!1;if(!A){let e=w||!tj(this)&&p;(h||e)&&(A=!(T=O(tu(S),E))),(O(l.immediate,x)||x)&&O(g.decay,v)&&O(g.velocity,y)||(A=!0)}if(T&&tM(this)&&(l.changed&&!w?A=!0:A||this._stop(u)),!m&&((A||ev(u))&&(l.values=b.getPayload(),l.toValues=ev(d)?null:C==e0?[1]:R(E)),l.immediate==x||(l.immediate=x,x||w||this._set(u)),A)){let{onRest:e}=l;_(tH,e=>tU(this,t,e));let n=tk(this,tz(this,u));F(this._pendingCalls,n),this._pendingCalls.add(r),l.changed&&o.batchedUpdates(()=>{l.changed=!w,e?.(n,this),w?te(s.onRest,n):l.onStart?.(n,this)})}w&&this._set(S),m?r(tC(t.to,t,this._state,this)):A?this._start():tM(this)&&!h?this._pendingCalls.add(r):r(tE(S))}_focus(e){let t=this.animation;e!==t.to&&(eb(this)&&this._detach(),t.to=e,eb(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;ev(t)&&(ek(t,this),t_(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;ev(e)&&ex(e,this)}_set(e,t=!0){let r=ey(e);if(!P.und(r)){let e=eQ(this);if(!e||!O(r,e.getValue())){let n=e4(r);e&&e.constructor==n?e.setValue(r):eZ(this,n.create(r)),e&&o.batchedUpdates(()=>{this._onChange(r,t)})}}return eQ(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tB(this,"onStart",tk(this,tz(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),te(this.animation.onChange,e,this)),te(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;eQ(this).reset(ey(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),tM(this)||(tL(this,!0),tF(this)||this._resume())}_resume(){x.skipAnimation?this.finish():B.start(this)}_stop(e,t){if(tM(this)){tL(this,!1);let r=this.animation;_(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),ew(this,{type:"idle",parent:this});let n=t?tx(this.get()):tk(this.get(),tz(this,e??r.to));F(this._pendingCalls,n),r.changed&&(r.changed=!1,tB(this,"onRest",n,this))}}};function tz(e,t){let r=tu(t);return O(tu(e.get()),r)}function t$(e,t=e.loop,r=e.to){let n=te(t);if(n){let i=!0!==n&&tl(n),o=(i||e).reverse,a=!i||i.reset;return tV({...e,loop:t,default:!1,pause:void 0,to:!o||td(r)?r:void 0,from:a?e.from:void 0,reset:a,...i})}}function tV(e){let{to:t,from:r}=e=tl(e),n=new Set;return P.obj(t)&&tq(t,n),P.obj(r)&&tq(r,n),e.keys=n.size?Array.from(n):null,e}function tq(e,t){T(e,(e,r)=>null!=e&&t.add(r))}var tH=["onStart","onRest","onChange","onPause","onResume"];function tU(e,t,r){e.animation[r]=t[r]!==tn(t,r)?tr(t[r],e.key):void 0}function tB(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var tY=["onStart","onChange","onRest"],tW=1,tG=class{id=tW++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];P.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(tV(e)),this}start(e){let{queue:t}=this;return e?t=R(e).map(tV):this.queue=[],this._flush?this._flush(this,t):(t1(this,t),tQ(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r=this.springs;_(R(t),t=>r[t].stop(!!e))}else tA(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(P.und(e))this.start({pause:!0});else{let t=this.springs;_(R(e),e=>t[e].pause())}return this}resume(e){if(P.und(e))this.start({pause:!1});else{let t=this.springs;_(R(e),e=>t[e].resume())}return this}each(e){T(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,I(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&I(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,I(r,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.onFrame(this._onFrame)}};function tQ(e,t){return Promise.all(t.map(t=>tZ(e,t))).then(t=>tS(e,t))}async function tZ(e,t,r){let{keys:n,to:i,from:a,loop:s,onRest:l,onResolve:u}=t,c=P.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let d=P.arr(i)||P.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):_(tY,r=>{let n=t[r];if(P.fun(n)){let i=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}});let f=e._state;!f.paused===t.pause?(f.paused=t.pause,F(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let p=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),h=!0===t.cancel||!0===tn(t,"cancel");(d||h&&f.asyncId)&&p.push(tw(++e._lastAsyncId,{props:t,state:f,actions:{pause:C,resume:C,start(t,r){h?(tA(f,e._lastAsyncId),r(tx(e))):(t.onRest=l,r(tC(d,t,f,e)))}}})),f.paused&&await new Promise(e=>{f.resumeQueue.add(e)});let m=tS(e,await Promise.all(p));if(s&&m.finished&&!(r&&m.noop)){let r=t$(t,s,i);if(r)return t1(e,[r]),tZ(e,r,!0)}return u&&o.batchedUpdates(()=>u(m,e,e.item)),m}function tK(e,t){let r={...e.springs};return t&&_(R(t),e=>{P.und(e.keys)&&(e=tV(e)),P.obj(e.to)||(e={...e,to:void 0}),t0(r,e,e=>tJ(e))}),tX(e,r),r}function tX(e,t){T(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,ek(t,e))})}function tJ(e,t){let r=new tD;return r.key=e,t&&ek(r,t),r}function t0(e,t,r){t.keys&&_(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function t1(e,t){_(t,t=>{t0(e.springs,t,t=>tJ(t,e))})}var t2=({children:e,...t})=>{let r=(0,E.useContext)(t3),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=function(e,t){let[r]=(0,E.useState)(()=>({inputs:t,result:e()})),n=(0,E.useRef)(),i=n.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}(()=>({pause:n,immediate:i}),[n,i]);let{Provider:o}=t3;return E.createElement(o,{value:t},e)},t3=(Object.assign(n=t2,E.createContext({})),n.Provider._context=n,n.Consumer._context=n,n);t2.Provider=t3.Provider,t2.Consumer=t3.Consumer;var t5=()=>{let e=[],t=function(t){ez(`${eL}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let n=[];return _(e,(e,i)=>{if(P.und(t))n.push(e.start());else{let o=r(t,e,i);o&&n.push(e.start(o))}}),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return _(e,e=>e.pause(...arguments)),this},t.resume=function(){return _(e,e=>e.resume(...arguments)),this},t.set=function(t){_(e,(e,r)=>{let n=P.fun(t)?t(r,e):t;n&&e.set(n)})},t.start=function(t){let r=[];return _(e,(e,n)=>{if(P.und(t))r.push(e.start());else{let i=this._getProps(t,e,n);i&&r.push(e.start(i))}}),r},t.stop=function(){return _(e,e=>e.stop(...arguments)),this},t.update=function(t){return _(e,(e,r)=>e.update(this._getProps(t,e,r))),this};let r=function(e,t,r){return P.fun(e)?e(r,t):e};return t._getProps=r,t},t4=1,t7=class extends tR{constructor(e,t){super(),this.source=e,this.calc=eh(...t);let r=this._get();eZ(this,e4(r).create(r))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();O(t,this.get())||(eQ(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&t6(this._active)&&t8(this)}_get(){let e=P.arr(this.source)?this.source.map(ey):R(ey(this.source));return this.calc(...e)}_start(){this.idle&&!t6(this._active)&&(this.idle=!1,_(eK(this),e=>{e.done=!1}),x.skipAnimation?(o.batchedUpdates(()=>this.advance()),t8(this)):B.start(this))}_attach(){let e=1;_(R(this.source),t=>{ev(t)&&ek(t,this),t_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){_(R(this.source),e=>{ev(e)&&ex(e,this)}),this._active.clear(),t8(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=R(this.source).reduce((e,t)=>Math.max(e,(t_(t)?t.priority:0)+1),0))}};function t9(e){return!1!==e.idle}function t6(e){return!e.size||Array.from(e).every(t9)}function t8(e){e.idle||(e.idle=!0,_(eK(e),e=>{e.done=!0}),ew(e,{type:"idle",parent:e}))}x.assign({createStringInterpolator:eF,to:(e,t)=>new t7(e,t)}),B.advance;var re=r(3935),rt=/^--/,rr={},rn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ri=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ro=["Webkit","Ms","Moz","O"];rn=Object.keys(rn).reduce((e,t)=>(ro.forEach(r=>e[ri(r,t)]=e[t]),e),rn);var ra=/^(matrix|translate|scale|rotate|skew)/,rs=/^(translate)/,rl=/^(rotate|skew)/,ru=(e,t)=>P.num(e)&&0!==e?e+t:e,rc=(e,t)=>P.arr(e)?e.every(e=>rc(e,t)):P.num(e)?e===t:parseFloat(e)===t,rd=class extends e2{constructor({x:e,y:t,z:r,...n}){let i=[],o=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),o.push(e=>[`translate3d(${e.map(e=>ru(e,"px")).join(",")})`,rc(e,0)])),T(n,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(ra.test(t)){if(delete n[t],P.und(e))return;let r=rs.test(t)?"px":rl.test(t)?"deg":"";i.push(R(e)),o.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${ru(i,r)})`,rc(i,0)]:e=>[`${t}(${e.map(e=>ru(e,r)).join(",")})`,rc(e,t.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new rf(i,o)),super(n)}},rf=class extends eS{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return _(this.inputs,(r,n)=>{let i=ey(r[0]),[o,a]=this.transforms[n](P.arr(i)?i:r.map(ey));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&_(this.inputs,e=>_(e,e=>ev(e)&&ek(e,this)))}observerRemoved(e){0==e&&_(this.inputs,e=>_(e,e=>ev(e)&&ex(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ew(this,e)}};x.assign({batchedUpdates:re.unstable_batchedUpdates,createStringInterpolator:eF,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var rp=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new e2(e),getComponentProps:n=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{let t=e8(e)||"Anonymous";return(e=P.str(e)?o[e]||(o[e]=e7(e,i)):e[e6]||(e[e6]=e7(e,i))).displayName=`Animated(${t})`,e};return T(e,(t,r)=>{P.arr(e)&&(r=e8(t)),o[r]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:rr[t]||(rr[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),n)if(n.hasOwnProperty(t)){var d,f;let r=(d=t,null==(f=n[t])||"boolean"==typeof f||""===f?"":"number"!=typeof f||0===f||rt.test(d)||rn.hasOwnProperty(d)&&rn[d]?(""+f).trim():f+"px");rt.test(t)?e.style.setProperty(t,r):e.style[t]=r}c.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new rd(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}).animated,rh=function(){return(rh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rn||3==arguments.length?t5():void 0,[]),p=R(e),h=[],m=(0,E.useRef)(null),g=i?null:m.current;eV(()=>{m.current=h}),eU(()=>(_(h,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{_(m.current,e=>{e.expired&&clearTimeout(e.expirationId),tf(e.ctrl,f),e.ctrl.stop(!0)})}));let v=function(e,{key:t,keys:r=t},n){if(null===r){let t=new Set;return e.map(e=>{let r=n&&n.find(r=>r.item===e&&"leave"!==r.phase&&!t.has(r));return r?(t.add(r),r.key):t4++})}return P.und(r)?e:P.fun(r)?e.map(r):R(r)}(p,n?n():t,g),y=i&&m.current||[];eV(()=>_(y,({ctrl:e,item:t,key:r})=>{tf(e,f),te(u,t,r)}));let b=[];if(g&&_(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=v.indexOf(e.key))&&(h[t]=e)}),_(p,(e,t)=>{h[t]||(h[t]={key:v[t],item:e,phase:"mount",ctrl:new tG},h[t].ctrl.item=e)}),b.length){let e=-1,{leave:r}=n?n():t;_(b,(t,n)=>{let i=g[n];~t?(e=h.indexOf(i),h[e]={...i,item:p[t]}):r&&h.splice(++e,0,i)})}P.fun(o)&&h.sort((e,t)=>o(e.item,t.item));let w=-a,S=eH(),k=to(t),x=new Map,C=(0,E.useRef)(new Map),A=(0,E.useRef)(!1);_(h,(e,r)=>{let i=e.key,o=e.phase,u=n?n():t,f,p,h=te(u.delay||0,i);if("mount"==o)f=u.enter,p="enter";else{let e=0>v.indexOf(i);if("leave"!=o){if(e)f=u.leave,p="leave";else{if(!(f=u.update))return;p="update"}}else{if(e)return;f=u.enter,p="enter"}}if(f=te(f,e.item,r),!(f=P.obj(f)?tl(f):{to:f}).config){let t=d||k.config;f.config=te(t,e.item,r,p)}w+=a;let y={...k,delay:h+w,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==p&&P.und(y.from)){let i=n?n():t,o=P.und(i.initial)||g?i.from:i.initial;y.from=te(o,e.item,r)}let{onResolve:b}=y;y.onResolve=e=>{te(b,e);let t=m.current,r=t.find(e=>e.key===i);if(r&&!(e.cancelled&&"update"!=r.phase)&&r.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==r.phase){let t=te(s,r.item);if(!1!==t){let n=!0===t?0:t;if(r.expired=!0,!e&&n>0){n<=2147483647&&(r.expirationId=setTimeout(S,n));return}}}e&&t.some(e=>e.expired)&&(C.current.delete(r),l&&(A.current=!0),S())}};let E=tK(e.ctrl,y);"leave"===p&&l?C.current.set(e,{phase:p,springs:E,payload:y}):x.set(e,{phase:p,springs:E,payload:y})});let O=(0,E.useContext)(t2),T=eY(O),I=O!==T&&tc(O);eV(()=>{I&&_(h,e=>{e.ctrl.start({default:O})})},[O]),_(x,(e,t)=>{if(C.current.size){let e=h.findIndex(e=>e.key===t.key);h.splice(e,1)}}),eV(()=>{_(C.current.size?C.current:x,({phase:e,payload:t},r)=>{let{ctrl:n}=r;r.phase=e,f?.add(n),I&&"enter"==e&&n.start({default:O}),t&&(tp(n,t.ref),(n.ref||f)&&!A.current?n.update(t):(n.start(t),A.current&&(A.current=!1)))})},void 0);let j=e=>E.createElement(E.Fragment,null,h.map((t,r)=>{let{springs:n}=x.get(t)||t.ctrl,i=e({...n},t.item,t,r);return i&&i.type?E.createElement(i.type,{...i.props,key:P.str(t.key)||P.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[j,f]:j}([p],{enter:{opacity:1,transform:"translateY(0%)"},from:{opacity:0,transform:"translateY(".concat("down"===r?"-".concat(f):f,")")},leave:{opacity:0,transform:"translateY(".concat("down"===r?f:"-".concat(f),")"),position:"absolute"},config:a,immediate:h.current,delay:h.current?void 0:l}),g=(0,E.useState)(0),v=g[0],y=g[1],b=(0,E.useRef)(null),w=(0,E.useRef)("auto");(0,E.useEffect)(function(){h.current=!1;var e=b.current;if(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;y(r),w.current=n}},[p,y,b]);var S=function(e,t){let r=P.fun(e),[[n],i]=function(e,t,r){let n=P.fun(t)&&t;n&&!r&&(r=[]);let i=(0,E.useMemo)(()=>n||3==arguments.length?t5():void 0,[]),o=(0,E.useRef)(0),a=eH(),s=(0,E.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=tK(e,t);return!(o.current>0)||s.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(n=>{tX(e,r),s.queue.push(()=>{n(tQ(e,t))}),a()}):tQ(e,t)}}),[]),l=(0,E.useRef)([...s.ctrls]),u=[],c=eY(e)||0;function d(e,r){for(let i=e;i{_(l.current.slice(e,c),e=>{tf(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,E.useMemo)(()=>{d(0,Math.min(c,e))},r);let f=l.current.map((e,t)=>tK(e,u[t])),p=(0,E.useContext)(t2),h=eY(p),m=p!==h&&tc(p);eV(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],_(e,e=>e())),_(l.current,(e,t)=>{i?.add(e),m&&e.start({default:p});let r=u[t];r&&(tp(e,r.ref),e.ref?e.queue.push(r):e.start(r))})}),eU(()=>()=>{_(s.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}({to:{width:v},config:a,immediate:h.current,delay:h.current?void 0:l});return E.createElement(rp.div,{className:"text-transition ".concat(u),style:rh(rh(rh({},i&&!h.current?S:void 0),c),{whiteSpace:i?"nowrap":"normal",display:i?"inline-flex":"flex",height:w.current})},m(function(e,t){return E.createElement(rp.div,{style:rh({},e),ref:t===p?b:void 0,children:t})}))}},6774:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l(e.current=!0,()=>{e.current=!1}),[]),e}var P=r(5466);function O(...e){return(0,f.useMemo)(()=>(0,P.r)(...e),[...e])}function _(e,t,r,n){let i=(0,k.E)(r);(0,f.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var T=r(1021);function R(e,t){let r=(0,f.useRef)([]),n=(0,E.z)(e);(0,f.useEffect)(()=>{let e=[...r.current];for(let[i,o]of t.entries())if(r.current[i]!==o){let i=n(t,e);return r.current=t,i}},[n,...t])}function I(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return(0,T.Y)(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=I();return e(t),this.add(()=>t.dispose())},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function j(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var M=((a=M||{})[a.None=1]="None",a[a.InitialFocus=2]="InitialFocus",a[a.TabLock=4]="TabLock",a[a.FocusLock=8]="FocusLock",a[a.RestoreFocus=16]="RestoreFocus",a[a.All=30]="All",a);let F=Object.assign((0,m.yV)(function(e,t){var r,n;let i,o,a=(0,f.useRef)(null),s=(0,g.T)(a,t),{initialFocus:l,containers:u,features:c=30,...d}=e;(0,b.H)()||(c=1);let p=O(a);!function({ownerDocument:e},t){let r=function(e=!0){let t=(0,f.useRef)(L.slice());return R(([e],[r])=>{!0===r&&!1===e&&(0,T.Y)(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=L.slice())},[e,L,t]),(0,E.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);R(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,S.C5)(r())},[t]);let n=(0,f.useRef)(!1);(0,f.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,T.Y)(()=>{n.current&&(0,S.C5)(r())})}),[])}({ownerDocument:p},!!(16&c));let v=function({ownerDocument:e,container:t,initialFocus:r},n){let i=(0,f.useRef)(null),o=A();return R(()=>{if(!n)return;let a=t.current;a&&(0,T.Y)(()=>{if(!o.current)return;let t=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===t){i.current=t;return}}else if(a.contains(t)){i.current=t;return}null!=r&&r.current?(0,S.C5)(r.current):(0,S.jA)(a,S.TO.First)===S.fE.Error&&console.warn("There are no focusable elements inside the "),i.current=null==e?void 0:e.activeElement})},[n]),i}({ownerDocument:p,container:a,initialFocus:l},!!(2&c));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},i){let o=A();_(null==e?void 0:e.defaultView,"focus",e=>{if(!i||!o.current)return;let a=j(r);t.current instanceof HTMLElement&&a.add(t.current);let s=n.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?N(a,l)?(n.current=l,(0,S.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,S.C5)(s)):(0,S.C5)(n.current)},!0)}({ownerDocument:p,container:a,containers:u,previousActiveElement:v},!!(8&c));let y=(i=(0,f.useRef)(0),r="keydown",n=e=>{"Tab"===e.key&&(i.current=e.shiftKey?1:0)},o=(0,k.E)(n),(0,f.useEffect)(()=>{function e(e){o.current(e)}return window.addEventListener(r,e,!0),()=>window.removeEventListener(r,e,!0)},[r,!0]),i),C=(0,E.z)(e=>{let t=a.current;t&&(0,h.E)(y.current,{[x.Forwards]:()=>{(0,S.jA)(t,S.TO.First,{skipElements:[e.relatedTarget]})},[x.Backwards]:()=>{(0,S.jA)(t,S.TO.Last,{skipElements:[e.relatedTarget]})}})}),P=function(){let[e]=(0,f.useState)(I);return(0,f.useEffect)(()=>()=>e.dispose(),[e]),e}(),M=(0,f.useRef)(!1);return f.createElement(f.Fragment,null,!!(4&c)&&f.createElement(w._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:C,features:w.A.Focusable}),(0,m.sY)({ourProps:{ref:s,onKeyDown(e){"Tab"==e.key&&(M.current=!0,P.requestAnimationFrame(()=>{M.current=!1}))},onBlur(e){let t=j(u);a.current instanceof HTMLElement&&t.add(a.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(N(t,r)||(M.current?(0,S.jA)(a.current,(0,h.E)(y.current,{[x.Forwards]:()=>S.TO.Next,[x.Backwards]:()=>S.TO.Previous})|S.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,S.C5)(e.target)))}},theirProps:d,defaultTag:"div",name:"FocusTrap"}),!!(4&c)&&f.createElement(w._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:C,features:w.A.Focusable}))}),{features:M}),L=[];function N(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!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&&L[0]!==e.target&&(L.unshift(e.target),(L=L.filter(e=>null!=e&&e.isConnected)).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 D=r(3935);let z=(0,f.createContext)(!1);function $(e){return f.createElement(z.Provider,{value:e.force},e.children)}var V=r(7896);let q=f.Fragment,H=f.Fragment,U=(0,f.createContext)(null),B=Object.assign((0,m.yV)(function(e,t){let r=(0,f.useRef)(null),n=(0,g.T)((0,g.h)(e=>{r.current=e}),t),i=O(r),o=function(e){let t=(0,f.useContext)(z),r=(0,f.useContext)(U),n=O(e),[i,o]=(0,f.useState)(()=>{if(!t&&null!==r||V.O.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,f.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,f.useEffect)(()=>{t||null!==r&&o(r.current)},[r,o,t]),i}(r),[a]=(0,f.useState)(()=>{var e;return V.O.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null}),s=(0,b.H)(),l=(0,f.useRef)(!1);return(0,C.e)(()=>{if(l.current=!1,!(!o||!a))return o.contains(a)||(a.setAttribute("data-headlessui-portal",""),o.appendChild(a)),()=>{l.current=!0,(0,T.Y)(()=>{var e;l.current&&o&&a&&(a instanceof Node&&o.contains(a)&&o.removeChild(a),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))})}},[o,a]),s&&o&&a?(0,D.createPortal)((0,m.sY)({ourProps:{ref:n},theirProps:e,defaultTag:q,name:"Portal"}),a):null}),{Group:(0,m.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,g.T)(t)};return f.createElement(U.Provider,{value:r},(0,m.sY)({ourProps:i,theirProps:n,defaultTag:H,name:"Popover.Group"}))})}),Y=(0,f.createContext)(null),W=Object.assign((0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-description-${r}`,...i}=e,o=function e(){let t=(0,f.useContext)(Y);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,g.T)(t);(0,C.e)(()=>o.register(n),[n,o.register]);let s={ref:a,...o.props,id:n};return(0,m.sY)({ourProps:s,theirProps:i,slot:o.slot||{},defaultTag:"p",name:o.name||"Description"})}),{}),G=(0,f.createContext)(null);G.displayName="OpenClosedContext";var Q=((s=Q||{})[s.Open=1]="Open",s[s.Closed=2]="Closed",s[s.Closing=4]="Closing",s[s.Opening=8]="Opening",s);let Z=(0,f.createContext)(()=>{});Z.displayName="StackContext";var K=((l=K||{})[l.Add=0]="Add",l[l.Remove=1]="Remove",l);function X({children:e,onUpdate:t,type:r,element:n,enabled:i}){let o=(0,f.useContext)(Z),a=(0,E.z)((...e)=>{null==t||t(...e),o(...e)});return(0,C.e)(()=>{let e=void 0===i||!0===i;return e&&a(0,r,n),()=>{e&&a(1,r,n)}},[a,r,n,i]),f.createElement(Z.Provider,{value:a},e)}function J(e,t,r){let n=(0,k.E)(t);(0,f.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}let{useState:ee,useEffect:et,useLayoutEffect:er,useDebugValue:en}=p;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let ei=p.useSyncExternalStore,eo=(u={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:I(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n,i;let o={doc:e,d:t,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(r)},a=[/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0?{before(){n=window.pageYOffset},after({doc:e,d:t,meta:r}){function i(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.style(e.body,"marginTop",`-${n}px`),window.scrollTo(0,0);let o=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),a=e.querySelector(n);a&&!i(a)&&(o=a)}catch{}},!0),t.addEventListener(e,"touchmove",e=>{e.target instanceof HTMLElement&&!i(e.target)&&e.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+n),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}:{},{before({doc:e}){var t;let r=e.documentElement;i=(null!=(t=e.defaultView)?t:window).innerWidth-r.clientWidth},after({doc:e,d:t}){let r=e.documentElement,n=i-(r.clientWidth-r.offsetWidth);t.style(r,"paddingRight",`${n}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach(({before:e})=>null==e?void 0:e(o)),a.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},n=new Map,i=new Set,{getSnapshot:()=>n,subscribe:e=>(i.add(e),()=>i.delete(e)),dispatch(e,...t){let r=u[e].call(n,...t);r&&(n=r,i.forEach(e=>e()))}});eo.subscribe(()=>{let e=eo.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&eo.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&eo.dispatch("TEARDOWN",r)}});let ea=new Map,es=new Map;function el(e,t=!0){(0,C.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=es.get(n))?r:0;return es.set(n,i+1),0!==i||(ea.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=es.get(n))?e:1;if(1===t?es.delete(n):es.set(n,t-1),1!==t)return;let r=ea.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,ea.delete(n))}},[e,t])}var eu=((c=eu||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),ec=((d=ec||{})[d.SetTitleId=0]="SetTitleId",d);let ed={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ef=(0,f.createContext)(null);function ep(e){let t=(0,f.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ep),t}return t}function eh(e,t){return(0,h.E)(t.type,ed,e,t)}ef.displayName="DialogContext";let em=m.AN.RenderStrategy|m.AN.Static,eg=Object.assign((0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:a,__demoMode:s=!1,...l}=e,[u,c]=(0,f.useState)(0),d=(0,f.useContext)(G);void 0===i&&null!==d&&(i=(d&Q.Open)===Q.Open);let p=(0,f.useRef)(null),k=(0,g.T)(p,t),x=(0,f.useRef)(null),A=O(p),P=e.hasOwnProperty("open")||null!==d,T=e.hasOwnProperty("onClose");if(!P&&!T)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!T)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof o)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let R=i?0:1,[I,j]=(0,f.useReducer)(eh,{titleId:null,descriptionId:null,panelRef:(0,f.createRef)()}),M=(0,E.z)(()=>o(!1)),L=(0,E.z)(e=>j({type:0,id:e})),N=!!(0,b.H)()&&!s&&0===R,D=u>1,z=null!==(0,f.useContext)(ef),V=null!==d&&(d&Q.Closing)===Q.Closing;el((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(x.current)&&e instanceof HTMLElement))?t:null},[x]),!z&&!V&&N),el((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(x.current)&&e instanceof HTMLElement))?t:null},[x]),!!D||N);let q=(0,E.z)(()=>{var e,t;return[...Array.from(null!=(e=null==A?void 0:A.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter(e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(x.current)||I.panelRef.current&&e.contains(I.panelRef.current))),null!=(t=I.panelRef.current)?t:p.current]});!function(e,t,r=!0){let n=(0,f.useRef)(!1);function i(r,i){if(!n.current||r.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=i(r);if(null!==a&&a.getRootNode().contains(a)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||r.composed&&r.composedPath().includes(t))return}return(0,S.sP)(a,S.tJ.Loose)||-1===a.tabIndex||r.preventDefault(),t(r,a)}}(0,f.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);let o=(0,f.useRef)(null);J("mousedown",e=>{var t,r;n.current&&(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),J("click",e=>{o.current&&(i(e,()=>o.current),o.current=null)},!0),J("blur",e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(()=>q(),M,!(!N||D));let H=!(D||0!==R);_(null==A?void 0:A.defaultView,"keydown",e=>{H&&(e.defaultPrevented||e.key===v.R.Escape&&(e.preventDefault(),e.stopPropagation(),M()))}),function(e,t,r=()=>[document.body]){var n;let i,o;n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}},i=ei(eo.subscribe,eo.getSnapshot,eo.getSnapshot),(o=e?i.get(e):void 0)&&o.count,(0,C.e)(()=>{if(!(!e||!t))return eo.dispatch("PUSH",e,n),()=>eo.dispatch("POP",e,n)},[t,e])}(A,!(V||0!==R||z),q),(0,f.useEffect)(()=>{if(0!==R||!p.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&M()}});return e.observe(p.current),()=>e.disconnect()},[R,p,M]);let[U,W]=function(){let[e,t]=(0,f.useState)([]);return[e.length>0?e.join(" "):void 0,(0,f.useMemo)(()=>function(e){let r=(0,E.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,f.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return f.createElement(Y.Provider,{value:n},e.children)},[t])]}(),Z=(0,f.useMemo)(()=>[{dialogState:R,close:M,setTitleId:L},I],[R,I,M,L]),ee=(0,f.useMemo)(()=>({open:0===R}),[R]),et={ref:k,id:n,role:"dialog","aria-modal":0===R||void 0,"aria-labelledby":I.titleId,"aria-describedby":U};return f.createElement(X,{type:"Dialog",enabled:0===R,element:p,onUpdate:(0,E.z)((e,t)=>{"Dialog"===t&&(0,h.E)(e,{[K.Add]:()=>c(e=>e+1),[K.Remove]:()=>c(e=>e-1)})})},f.createElement($,{force:!0},f.createElement(B,null,f.createElement(ef.Provider,{value:Z},f.createElement(B.Group,{target:p},f.createElement($,{force:!1},f.createElement(W,{slot:ee,name:"Dialog.Description"},f.createElement(F,{initialFocus:a,containers:q,features:N?(0,h.E)(D?"parent":"leaf",{parent:F.features.RestoreFocus,leaf:F.features.All&~F.features.FocusLock}):F.features.None},(0,m.sY)({ourProps:et,theirProps:l,slot:ee,defaultTag:"div",features:em,visible:0===R,name:"Dialog"})))))))),f.createElement(w._,{features:w.A.Hidden,ref:x}))}),{Backdrop:(0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-backdrop-${r}`,...i}=e,[{dialogState:o},a]=ep("Dialog.Backdrop"),s=(0,g.T)(t);(0,f.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A component is being used, but a component is missing.")},[a.panelRef]);let l=(0,f.useMemo)(()=>({open:0===o}),[o]);return f.createElement($,{force:!0},f.createElement(B,null,(0,m.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-panel-${r}`,...i}=e,[{dialogState:o},a]=ep("Dialog.Panel"),s=(0,g.T)(t,a.panelRef),l=(0,f.useMemo)(()=>({open:0===o}),[o]),u=(0,E.z)(e=>{e.stopPropagation()});return(0,m.sY)({ourProps:{ref:s,id:n,onClick:u},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-overlay-${r}`,...i}=e,[{dialogState:o,close:a}]=ep("Dialog.Overlay"),s=(0,g.T)(t),l=(0,E.z)(e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),u=(0,f.useMemo)(()=>({open:0===o}),[o]);return(0,m.sY)({ourProps:{ref:s,id:n,"aria-hidden":!0,onClick:l},theirProps:i,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,m.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-title-${r}`,...i}=e,[{dialogState:o,setTitleId:a}]=ep("Dialog.Title"),s=(0,g.T)(t);(0,f.useEffect)(()=>(a(n),()=>a(null)),[n,a]);let l=(0,f.useMemo)(()=>({open:0===o}),[o]);return(0,m.sY)({ourProps:{ref:s,id:n},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:W})},1363:function(e,t,r){"use strict";r.d(t,{R:function(){return i}});var n,i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},9211:function(e,t,r){"use strict";r.d(t,{O:function(){return F}});var n,i,o,a=r(7294),s=r(7237),l=r(9946),u=r(2984),c=r(1363),d=r(4575),f=r(6723),p=r(3784);function h(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}var m=r(3855),g=r(6045);function v({onFocus:e}){let[t,r]=(0,a.useState)(!0);return t?a.createElement(g._,{as:"button",type:"button",features:g.A.Focusable,onFocus:t=>{t.preventDefault();let n,i=50;n=requestAnimationFrame(function t(){if(i--<=0){n&&cancelAnimationFrame(n);return}if(e()){r(!1),cancelAnimationFrame(n);return}n=requestAnimationFrame(t)})}}):null}var y=r(3781),b=r(1021),w=r(5466);let S=a.createContext(null);function E({children:e}){let t=a.useRef({groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=null!=(r=n.get(t))?r:0;return n.set(t,i+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return a.createElement(S.Provider,{value:t},e)}function k(e){let t=a.useContext(S);if(!t)throw Error("You must wrap your component in a ");let r=function(){var e,t,r;let n=null!=(r=null==(t=null==(e=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?r:null;if(!n)return Symbol();let i=[],o=n;for(;o;)i.push(o.index),o=o.return;return"$."+i.join(".")}(),[n,i]=t.current.get(e,r);return a.useEffect(()=>i,[]),n}var x=((n=x||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n),C=((i=C||{})[i.Less=-1]="Less",i[i.Equal=0]="Equal",i[i.Greater=1]="Greater",i),A=((o=A||{})[o.SetSelectedIndex=0]="SetSelectedIndex",o[o.RegisterTab=1]="RegisterTab",o[o.UnregisterTab=2]="UnregisterTab",o[o.RegisterPanel=3]="RegisterPanel",o[o.UnregisterPanel=4]="UnregisterPanel",o);let P={0(e,t){var r;let n=(0,d.z2)(e.tabs,e=>e.current),i=(0,d.z2)(e.panels,e=>e.current),o=n.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),a={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let r=(0,u.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,u.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});return 0===o.length?a:{...a,selectedIndex:(0,u.E)(r,{0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])})}}let s=n.slice(0,t.index),l=[...n.slice(t.index),...s].find(e=>o.includes(e));if(!l)return a;let c=null!=(r=n.indexOf(l))?r:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var r;if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],i=(0,d.z2)([...e.tabs,t.tab],e=>e.current),o=null!=(r=i.indexOf(n))?r:e.selectedIndex;return -1===o&&(o=e.selectedIndex),{...e,tabs:i,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,d.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},O=(0,a.createContext)(null);function _(e){let t=(0,a.useContext)(O);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}O.displayName="TabsDataContext";let T=(0,a.createContext)(null);function R(e){let t=(0,a.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,R),t}return t}function I(e,t){return(0,u.E)(t.type,P,e,t)}T.displayName="TabsActionsContext";let j=a.Fragment,M=s.AN.RenderStrategy|s.AN.Static,F=Object.assign((0,s.yV)(function(e,t){var r,n;let i=(0,l.M)(),{id:o=`headlessui-tabs-tab-${i}`,...m}=e,{orientation:g,activation:v,selectedIndex:S,tabs:E,panels:x}=_("Tab"),C=R("Tab"),A=_("Tab"),P=(0,a.useRef)(null),O=(0,p.T)(P,t);(0,f.e)(()=>C.registerTab(P),[C,P]);let T=k("tabs"),I=E.indexOf(P);-1===I&&(I=T);let j=I===S,M=(0,y.z)(e=>{var t;let r=e();if(r===d.fE.Success&&"auto"===v){let e=null==(t=(0,w.r)(P))?void 0:t.activeElement,r=A.tabs.findIndex(t=>t.current===e);-1!==r&&C.change(r)}return r}),F=(0,y.z)(e=>{let t=E.map(e=>e.current).filter(Boolean);if(e.key===c.R.Space||e.key===c.R.Enter){e.preventDefault(),e.stopPropagation(),C.change(I);return}switch(e.key){case c.R.Home:case c.R.PageUp:return e.preventDefault(),e.stopPropagation(),M(()=>(0,d.jA)(t,d.TO.First));case c.R.End:case c.R.PageDown:return e.preventDefault(),e.stopPropagation(),M(()=>(0,d.jA)(t,d.TO.Last))}if(M(()=>(0,u.E)(g,{vertical:()=>e.key===c.R.ArrowUp?(0,d.jA)(t,d.TO.Previous|d.TO.WrapAround):e.key===c.R.ArrowDown?(0,d.jA)(t,d.TO.Next|d.TO.WrapAround):d.fE.Error,horizontal:()=>e.key===c.R.ArrowLeft?(0,d.jA)(t,d.TO.Previous|d.TO.WrapAround):e.key===c.R.ArrowRight?(0,d.jA)(t,d.TO.Next|d.TO.WrapAround):d.fE.Error}))===d.fE.Success)return e.preventDefault()}),L=(0,a.useRef)(!1),N=(0,y.z)(()=>{var e;L.current||(L.current=!0,null==(e=P.current)||e.focus(),C.change(I),(0,b.Y)(()=>{L.current=!1}))}),D=(0,y.z)(e=>{e.preventDefault()}),z=(0,a.useMemo)(()=>({selected:j}),[j]),$={ref:O,onKeyDown:F,onMouseDown:D,onClick:N,id:o,role:"tab",type:function(e,t){let[r,n]=(0,a.useState)(()=>h(e));return(0,f.e)(()=>{n(h(e))},[e.type,e.as]),(0,f.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}(e,P),"aria-controls":null==(n=null==(r=x[I])?void 0:r.current)?void 0:n.id,"aria-selected":j,tabIndex:j?0:-1};return(0,s.sY)({ourProps:$,theirProps:m,slot:z,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,s.yV)(function(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:o,selectedIndex:l=null,...u}=e,c=n?"vertical":"horizontal",h=i?"manual":"auto",g=null!==l,b=(0,p.T)(t),[w,S]=(0,a.useReducer)(I,{selectedIndex:null!=l?l:r,tabs:[],panels:[]}),k=(0,a.useMemo)(()=>({selectedIndex:w.selectedIndex}),[w.selectedIndex]),x=(0,m.E)(o||(()=>{})),C=(0,m.E)(w.tabs),A=(0,a.useMemo)(()=>({orientation:c,activation:h,...w}),[c,h,w]),P=(0,y.z)(e=>(S({type:1,tab:e}),()=>S({type:2,tab:e}))),_=(0,y.z)(e=>(S({type:3,panel:e}),()=>S({type:4,panel:e}))),R=(0,y.z)(e=>{M.current!==e&&x.current(e),g||S({type:0,index:e})}),M=(0,m.E)(g?e.selectedIndex:w.selectedIndex),F=(0,a.useMemo)(()=>({registerTab:P,registerPanel:_,change:R}),[]);return(0,f.e)(()=>{S({type:0,index:null!=l?l:r})},[l]),(0,f.e)(()=>{if(void 0===M.current||w.tabs.length<=0)return;let e=(0,d.z2)(w.tabs,e=>e.current);e.some((e,t)=>w.tabs[t]!==e)&&R(e.indexOf(w.tabs[M.current]))}),a.createElement(E,null,a.createElement(T.Provider,{value:F},a.createElement(O.Provider,{value:A},A.tabs.length<=0&&a.createElement(v,{onFocus:()=>{var e,t;for(let r of C.current)if((null==(e=r.current)?void 0:e.tabIndex)===0)return null==(t=r.current)||t.focus(),!0;return!1}}),(0,s.sY)({ourProps:{ref:b},theirProps:u,slot:k,defaultTag:j,name:"Tabs"}))))}),List:(0,s.yV)(function(e,t){let{orientation:r,selectedIndex:n}=_("Tab.List"),i=(0,p.T)(t);return(0,s.sY)({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:n},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,s.yV)(function(e,t){let{selectedIndex:r}=_("Tab.Panels"),n=(0,p.T)(t),i=(0,a.useMemo)(()=>({selectedIndex:r}),[r]);return(0,s.sY)({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,s.yV)(function(e,t){var r,n,i,o;let u=(0,l.M)(),{id:c=`headlessui-tabs-panel-${u}`,tabIndex:d=0,...h}=e,{selectedIndex:m,tabs:v,panels:y}=_("Tab.Panel"),b=R("Tab.Panel"),w=(0,a.useRef)(null),S=(0,p.T)(w,t);(0,f.e)(()=>b.registerPanel(w),[b,w]);let E=k("panels"),x=y.indexOf(w);-1===x&&(x=E);let C=x===m,A=(0,a.useMemo)(()=>({selected:C}),[C]),P={ref:S,id:c,role:"tabpanel","aria-labelledby":null==(n=null==(r=v[x])?void 0:r.current)?void 0:n.id,tabIndex:C?d:-1};return C||null!=(i=h.unmount)&&!i||null!=(o=h.static)&&o?(0,s.sY)({ourProps:P,theirProps:h,slot:A,defaultTag:"div",features:M,visible:C,name:"Tabs.Panel"}):a.createElement(g._,{as:"span",...P})})})},3781:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(7294),i=r(3855);let o=function(e){let t=(0,i.E)(e);return n.useCallback((...e)=>t.current(...e),[t])}},9946:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,i=r(7294),o=r(6723),a=r(2180),s=r(7896);let l=null!=(n=i.useId)?n:function(){let e=(0,a.H)(),[t,r]=i.useState(e?()=>s.O.nextId():null);return(0,o.e)(()=>{null===t&&r(s.O.nextId())},[t]),null!=t?""+t:void 0}},6723:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(7294),i=r(7896);let o=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},3855:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(7294),i=r(6723);function o(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},2180:function(e,t,r){"use strict";r.d(t,{H:function(){return o}});var n=r(7294),i=r(7896);function o(){let[e,t]=(0,n.useState)(i.O.isHandoffComplete);return e&&!1===i.O.isHandoffComplete&&t(!1),(0,n.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,n.useEffect)(()=>i.O.handoff(),[]),e}},3784:function(e,t,r){"use strict";r.d(t,{T:function(){return s},h:function(){return a}});var n=r(7294),i=r(3781);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i.z)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:r}},6045:function(e,t,r){"use strict";r.d(t,{A:function(){return o},_:function(){return a}});var n,i=r(7237),o=((n=o||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let a=(0,i.yV)(function(e,t){let{features:r=1,...n}=e,o={ref:t,"aria-hidden":(2&r)==2||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&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:o,theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})})},7896:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);let a=new class{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(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}}},4575:function(e,t,r){"use strict";r.d(t,{C5:function(){return v},TO:function(){return d},fE:function(){return f},jA:function(){return b},sP:function(){return m},tJ:function(){return h},z2:function(){return y}});var n,i,o,a,s,l=r(2984),u=r(5466);let c=["[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(",");var d=((n=d||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),f=((i=f||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),p=((o=p||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o),h=((a=h||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function m(e,t=0){var r;return e!==(null==(r=(0,u.r)(e))?void 0:r.body)&&(0,l.E)(t,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var g=((s=g||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function v(e){null==e||e.focus({preventScroll:!0})}function y(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var o,a,s;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?r?y(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);i.length>0&&u.length>1&&(u=u.filter(e=>!i.includes(e))),n=null!=n?n:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(n))-1;if(4&t)return Math.max(0,u.indexOf(n))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},h=0,m=u.length,g;do{if(h>=m||h+m<=0)return 0;let e=f+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(g=u[e])||g.focus(p),h+=d}while(g!==l.activeElement);return 6&t&&null!=(s=null==(a=null==(o=g)?void 0:o.matches)?void 0:a.call(o,"textarea,input"))&&s&&g.select(),2}"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))},2984:function(e,t,r){"use strict";function n(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let i=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,n),i}r.d(t,{E:function(){return n}})},1021:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},5466:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(7896);function i(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},7237:function(e,t,r){"use strict";r.d(t,{AN:function(){return l},yV:function(){return p},sY:function(){return c}});var n,i,o=r(7294);function a(...e){return e.filter(Boolean).join(" ")}var s=r(2984),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a}){let l=f(t,e);if(o)return d(l,r,n,a);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return d(t,r,n,a)}if(1&u){let{unmount:e=!0,...t}=l;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,n,a)})}return d(l,r,n,a)}function d(e,t={},r,n){let{as:i=r,children:s,refName:l="ref",...u}=m(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let p={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(p["data-headlessui-state"]=r.join(" "))}if(i===o.Fragment&&Object.keys(h(u)).length>0){if(!(0,o.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(e=>` - ${e}`).join(` `),"","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(` `)].join(` `));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>a(null==e?void 0:e.className(...t),u.className):a(null==e?void 0:e.className,u.className);return(0,o.cloneElement)(d,Object.assign({},f(d.props,h(m(u,["ref"]))),p,c,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(d.ref,c.ref),t?{className:t}:{}))}return(0,o.createElement)(i,Object.assign({},m(u,["ref"]),i!==o.Fragment&&c,i!==o.Fragment&&p),d)}function f(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function p(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},4589:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))});t.Z=i},3407:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=i},1415:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});t.Z=i}}]);